@sme.up/ketchup2 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{arc-Klgb378K.js → arc-D80gVCcI.js} +2 -2
- package/dist/{arc-CqG9Hxdf.cjs → arc-MUYNnJxV.cjs} +1 -1
- package/dist/architecture-7EHR7CIX-Bnyu5zgG.js +3 -0
- package/dist/architecture-7EHR7CIX-CKF7-4kH.cjs +1 -0
- package/dist/architectureDiagram-3BPJPVTR-BrmPrClJ.cjs +36 -0
- package/dist/{architectureDiagram-Q4EWVU46-u2vgZv3N.js → architectureDiagram-3BPJPVTR-EFK4DMha.js} +167 -166
- package/dist/assets/buttonListAssets.d.ts +8 -0
- package/dist/assets/buttonListAssets.d.ts.map +1 -1
- package/dist/basic-components/button/button-types.d.ts +4 -0
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
- package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
- package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
- package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
- package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts +13 -5
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/icon/icon.d.ts.map +1 -1
- package/dist/basic-components/image/image.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
- package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor-utils.d.ts +11 -0
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
- package/dist/basic-components/textarea/textarea-types.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/{blockDiagram-DXYQGD6D-BpB6_kTP.js → blockDiagram-GPEHLZMM-C3UgY0Z5.js} +999 -877
- package/dist/blockDiagram-GPEHLZMM-CuzoKhJT.cjs +132 -0
- package/dist/{c4Diagram-AHTNJAMY-CX5IjREU.cjs → c4Diagram-AAUBKEIU-DU8uXbgK.cjs} +6 -6
- package/dist/{c4Diagram-AHTNJAMY-B5Z8nO1s.js → c4Diagram-AAUBKEIU-klnmEOUo.js} +279 -279
- package/dist/channel-BbRDdbmM.js +5 -0
- package/dist/channel-intTktDQ.cjs +1 -0
- package/dist/chunk-2J33WTMH-EmvF7iYC.js +25 -0
- package/dist/chunk-2J33WTMH-PlcpVW8G.cjs +1 -0
- package/dist/{chunk-5FUZZQ4R-2kdZJWq2.js → chunk-3OPIFGDE-C7wE5oN7.js} +957 -929
- package/dist/chunk-3OPIFGDE-CT5oNC5X.cjs +62 -0
- package/dist/{chunk-4BX2VUAB-BW54-JWg.js → chunk-4BX2VUAB-BO1KRGb1.js} +1 -1
- package/dist/{chunk-4BX2VUAB-Qba52sxc.cjs → chunk-4BX2VUAB-CtDGlaPx.cjs} +1 -1
- package/dist/{chunk-7N4EOEYR-C-GuhRgW.js → chunk-4EGX6M5U-BMVrizoY.js} +12 -12
- package/dist/{chunk-7N4EOEYR-jNBQwvHx.cjs → chunk-4EGX6M5U-VENLmgBt.cjs} +1 -1
- package/dist/{chunk-55IACEB6-DPatBzu7.cjs → chunk-55IACEB6-VJP3Osm7.cjs} +1 -1
- package/dist/{chunk-55IACEB6-Bu3k0Yz5.js → chunk-55IACEB6-b_Ivgrk-.js} +1 -1
- package/dist/chunk-5DO6E6H7-Cx6Mfbjl.cjs +1 -0
- package/dist/chunk-5DO6E6H7-QuTLwcim.js +23 -0
- package/dist/chunk-5ZQYHXKU-BMnKD7Zq.cjs +2 -0
- package/dist/{chunk-5PVQY5BW-C5U7sJAA.js → chunk-5ZQYHXKU-C4uam08j.js} +527 -461
- package/dist/chunk-727SXJPM-DTmqhRKX.cjs +206 -0
- package/dist/{chunk-4TB4RGXK-CKyHmNcP.js → chunk-727SXJPM-Dof0vDVV.js} +650 -554
- package/dist/{chunk-OYMX7WX6-BCT45RPu.cjs → chunk-AQP2D5EJ-DdWeFQ4O.cjs} +5 -5
- package/dist/{chunk-OYMX7WX6-BQADsxYi.js → chunk-AQP2D5EJ-N9ii4fwJ.js} +349 -339
- package/dist/{chunk-LIHQZDEY-59I4-LWb.js → chunk-BR22UD5L-CS6hURQQ.js} +15 -15
- package/dist/{chunk-LIHQZDEY-CrogR3nT.cjs → chunk-BR22UD5L-wI1vkyAT.cjs} +1 -1
- package/dist/{chunk-BSJP7CBP-oNTXVRA7.js → chunk-BSJP7CBP-Bx5APwBA.js} +1 -1
- package/dist/{chunk-BSJP7CBP-CFzYPvgr.cjs → chunk-BSJP7CBP-CaeBFqNU.cjs} +1 -1
- package/dist/{chunk-ICPOFSXX-Sn6LWD0k.js → chunk-CSCIHK7Q-9WKhcDqw.js} +558 -460
- package/dist/chunk-CSCIHK7Q-BPMuICCz.cjs +123 -0
- package/dist/chunk-FHYWG6QK-CfRqYwCI.js +23 -0
- package/dist/chunk-FHYWG6QK-DxmnARsZ.cjs +1 -0
- package/dist/{chunk-FMBD7UC4-RRSc9jqt.js → chunk-FMBD7UC4-BbggSGOg.js} +1 -1
- package/dist/{chunk-FMBD7UC4-CS9_r76V.cjs → chunk-FMBD7UC4-CiO_59ls.cjs} +1 -1
- package/dist/{chunk-ENJZ2VHE-BluGQPyl.js → chunk-KSCS5N6A-BY1s4eGg.js} +205 -205
- package/dist/chunk-KSCS5N6A-DO8jEi0y.cjs +10 -0
- package/dist/{chunk-ZZ45TVLE-AQQsnXy4.cjs → chunk-L5ZTLDWV-BE9udiOh.cjs} +1 -1
- package/dist/{chunk-ZZ45TVLE-CIYrdg-O.js → chunk-L5ZTLDWV-D3UwMopa.js} +8 -8
- package/dist/{chunk-336JU56O-CuXRn1VH.cjs → chunk-LZXEDZCA-Dpz_wx3M.cjs} +1 -1
- package/dist/{chunk-336JU56O-xKPgkG3O.js → chunk-LZXEDZCA-KzBFuWPU.js} +18 -18
- package/dist/chunk-MPE355IW-4bpROspE.js +23 -0
- package/dist/chunk-MPE355IW-CxPw_dPP.cjs +1 -0
- package/dist/chunk-MZUSXYTE-DA5mUG5B.js +30 -0
- package/dist/chunk-MZUSXYTE-DIg1BPts.cjs +1 -0
- package/dist/chunk-N66VUXT2-DSbygtq1.cjs +1 -0
- package/dist/chunk-N66VUXT2-pDZ1b-B3.js +54 -0
- package/dist/{chunk-YZCP3GAM-9K9WNdyN.js → chunk-ND2GUHAM-CHTke4K8.js} +17 -17
- package/dist/{chunk-YZCP3GAM-BmaAafMm.cjs → chunk-ND2GUHAM-DdBSZTft.cjs} +1 -1
- package/dist/chunk-NNHCCRGN-D_orSz6n.js +20630 -0
- package/dist/chunk-NNHCCRGN-aKMHXBzL.cjs +159 -0
- package/dist/{chunk-X2U36JSP-CY7mJR8m.js → chunk-NZK2D7GU-BVOINLmx.js} +13 -13
- package/dist/{chunk-X2U36JSP-D1RYKjVc.cjs → chunk-NZK2D7GU-_twqedIe.cjs} +1 -1
- package/dist/{chunk-U2HBQHQK-D0AoQWxK.cjs → chunk-O5CBEL6O-CDvi2oZo.cjs} +6 -6
- package/dist/{chunk-U2HBQHQK-BZ3YFMXB.js → chunk-O5CBEL6O-VsMF4aZB.js} +108 -108
- package/dist/chunk-PUPMXCY4-CKjhJQnN.js +23 -0
- package/dist/chunk-PUPMXCY4-DsS_t57r.cjs +1 -0
- package/dist/{chunk-QZHKN3VN-CSMKL2rB.cjs → chunk-QZHKN3VN-CHjRGMI2.cjs} +1 -1
- package/dist/{chunk-QZHKN3VN-Bx8I6l3c.js → chunk-QZHKN3VN-DCddt14Q.js} +1 -1
- package/dist/chunk-UIBZB4QT-BZf7vqd9.cjs +1 -0
- package/dist/chunk-UIBZB4QT-BvFllM0Q.js +23 -0
- package/dist/chunk-WCWK7LTN-D_C1as0Y.js +31 -0
- package/dist/chunk-WCWK7LTN-Dl2uC9ZD.cjs +1 -0
- package/dist/chunk-WU5MYG2G-DgyP9QDj.cjs +1 -0
- package/dist/chunk-WU5MYG2G-mQn7Wt-i.js +9 -0
- package/dist/{chunk-XPW4576I-BcWkx-AL.js → chunk-XPW4576I-BCowsgDU.js} +1 -1
- package/dist/{chunk-XPW4576I-D8Pp6a3j.cjs → chunk-XPW4576I-D_mwgMVU.cjs} +1 -1
- package/dist/classDiagram-4FO5ZUOK-5DyhpZRK.cjs +1 -0
- package/dist/classDiagram-4FO5ZUOK-BHGLQIkz.js +29 -0
- package/dist/classDiagram-v2-Q7XG4LA2-CCAbBo05.js +29 -0
- package/dist/classDiagram-v2-Q7XG4LA2-D4TX4CLT.cjs +1 -0
- package/dist/components/dash-list/assets/dash-list.data.d.ts +1 -0
- package/dist/components/dash-list/assets/dash-list.data.d.ts.map +1 -1
- package/dist/components/dash-list/dash-list-types.d.ts +1 -0
- package/dist/components/dash-list/dash-list-types.d.ts.map +1 -1
- package/dist/components/dash-list/dash-list.d.ts.map +1 -1
- package/dist/components/dash-list/dash-list.utils.d.ts +0 -3
- package/dist/components/dash-list/dash-list.utils.d.ts.map +1 -1
- package/dist/components/drawer/drawer-types.d.ts +4 -0
- package/dist/components/drawer/drawer-types.d.ts.map +1 -1
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/htm/htm-types.d.ts +4 -0
- package/dist/components/htm/htm-types.d.ts.map +1 -1
- package/dist/components/htm/htm.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
- package/dist/components/pdf/pdf-types.d.ts +8 -0
- package/dist/components/pdf/pdf-types.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts +1 -1
- package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
- package/dist/components/pdf/pdf.d.ts.map +1 -1
- package/dist/components/planner/planner-assets.d.ts +2 -2
- package/dist/components/planner/planner-assets.d.ts.map +1 -1
- package/dist/components/planner/planner-types.d.ts +1 -1
- package/dist/components/planner/planner-types.d.ts.map +1 -1
- package/dist/components/planner/planner-utils.d.ts +7 -5
- package/dist/components/planner/planner-utils.d.ts.map +1 -1
- package/dist/components/planner/planner.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
- package/dist/components/scaffold/scaffold-types.d.ts +1 -0
- package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline-types.d.ts +6 -2
- package/dist/components/timeline/timeline-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-assets.d.ts +1 -0
- package/dist/components/tooltip/tooltip-assets.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-types.d.ts +4 -16
- package/dist/components/tooltip/tooltip-types.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-B30Rh9DR.js → cose-bilkent-S5V4N54A-Bfb7U01p.js} +26 -27
- package/dist/cose-bilkent-S5V4N54A-CE-7Sw0Y.cjs +1 -0
- package/dist/dagre-BM42HDAG-BhbA1R8l.cjs +4 -0
- package/dist/dagre-BM42HDAG-D87Rv2R4.js +297 -0
- package/dist/dagre-CC68z3y6.cjs +1 -0
- package/dist/dagre-Cg4CV48I.js +1936 -0
- package/dist/diagram-2AECGRRQ-C6vI3yau.cjs +43 -0
- package/dist/{diagram-MMDJMWI5-DUUVPi55.js → diagram-2AECGRRQ-OSYCK0tv.js} +36 -36
- package/dist/diagram-5GNKFQAL-BS9rRMAe.cjs +10 -0
- package/dist/diagram-5GNKFQAL-DnquluB9.js +101 -0
- package/dist/diagram-KO2AKTUF-CFi6eQYd.js +431 -0
- package/dist/diagram-KO2AKTUF-CjA_KTJj.cjs +3 -0
- package/dist/{diagram-TYMM5635-Cpj8wfoJ.js → diagram-LMA3HP47-Cwm5bzeM.js} +38 -38
- package/dist/diagram-LMA3HP47-DBwSTp2j.cjs +24 -0
- package/dist/diagram-OG6HWLK6-BdLnbUYy.cjs +24 -0
- package/dist/{diagram-G4DWMVQ6-BkQnbCLv.js → diagram-OG6HWLK6-DvGk1j55.js} +93 -93
- package/dist/{dist-DL30VIBI.js → dist-9MKIBfY4.js} +1 -1
- package/dist/dist-DC1YYeHc.cjs +1 -0
- package/dist/{erDiagram-SMLLAGMA-D_ByPk0C.js → erDiagram-TEJ5UH35-B17mqgD_.js} +164 -164
- package/dist/erDiagram-TEJ5UH35-NlRiP_bX.cjs +85 -0
- package/dist/eventmodeling-FCH6USID-BVaFiLQO.js +3 -0
- package/dist/eventmodeling-FCH6USID-leiC8dtX.cjs +1 -0
- package/dist/{flowDiagram-DWJPFMVM-BWrkDnqc.js → flowDiagram-I6XJVG4X-C2G6Tgw_.js} +444 -444
- package/dist/{flowDiagram-DWJPFMVM-BbK42NaF.cjs → flowDiagram-I6XJVG4X-ChI_6giU.cjs} +9 -9
- package/dist/functional-components/action/action-types.d.ts +26 -1
- package/dist/functional-components/action/action-types.d.ts.map +1 -1
- package/dist/functional-components/action/action-utils.d.ts +13 -1
- package/dist/functional-components/action/action-utils.d.ts.map +1 -1
- package/dist/functional-components/action/action.d.ts.map +1 -1
- package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
- package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts +106 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts +2 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts +38 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +60 -0
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
- package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
- package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts +79 -0
- package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
- package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
- package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +28 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +143 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
- package/dist/ganttDiagram-6RSMTGT7-B0DHqd7u.cjs +292 -0
- package/dist/{ganttDiagram-T4ZO3ILL-LuaYkUvj.js → ganttDiagram-6RSMTGT7-Bb6bqcaS.js} +278 -276
- package/dist/gitGraph-WXDBUCRP-BFFuTWG4.cjs +1 -0
- package/dist/gitGraph-WXDBUCRP-Fz2kRwJ-.js +3 -0
- package/dist/gitGraphDiagram-PVQCEYII-BzbgPrwe.cjs +106 -0
- package/dist/{gitGraphDiagram-UUTBAWPF-DKkENwcV.js → gitGraphDiagram-PVQCEYII-DiJUr7lO.js} +255 -255
- package/dist/graphlib-B1zohIOM.js +1266 -0
- package/dist/graphlib-B5AXIZA4.cjs +1 -0
- package/dist/hooks/useFloating.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useGanttMath.d.ts +1 -1
- package/dist/hooks/useGanttMath.d.ts.map +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/info-J43DQDTF-CLRXRK49.js +3 -0
- package/dist/info-J43DQDTF-CmpcAuH-.cjs +1 -0
- package/dist/infoDiagram-5YYISTIA-C8P9DHlE.js +19 -0
- package/dist/infoDiagram-5YYISTIA-fhwEAAjF.cjs +2 -0
- package/dist/{ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs → ishikawaDiagram-YF4QCWOH-j6IZz59g.cjs} +6 -6
- package/dist/{ishikawaDiagram-UXIWVN3A-DqbVPChK.js → ishikawaDiagram-YF4QCWOH-rqNbTKZp.js} +134 -134
- package/dist/{journeyDiagram-VCZTEJTY-XRc0J8gM.cjs → journeyDiagram-JHISSGLW-BhHdd4y3.cjs} +6 -6
- package/dist/{journeyDiagram-VCZTEJTY-DudduR0c.js → journeyDiagram-JHISSGLW-peUJlm3L.js} +180 -180
- package/dist/{kanban-definition-6JOO6SKY-DzEqE64J.js → kanban-definition-UN3LZRKU-DLxDqiQn.js} +151 -151
- package/dist/{kanban-definition-6JOO6SKY-Br87atRc.cjs → kanban-definition-UN3LZRKU-TUg1x5yJ.cjs} +8 -8
- package/dist/{katex-SAH56fvc.cjs → katex-HkVgAsLB.cjs} +1 -1
- package/dist/ketchup2.cjs.js +110 -106
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +68073 -69871
- package/dist/{line-JyRBGWft.js → line-BhAnxCE8.js} +3 -3
- package/dist/line-CpcTW4h-.cjs +1 -0
- package/dist/{linear-CxHa1DsM.cjs → linear-D0eFmsG1.cjs} +1 -1
- package/dist/{linear-BsPvNLJv.js → linear-lSeWuvgy.js} +3 -3
- package/dist/{mermaid-parser.core-CERDf-UG.js → mermaid-parser.core-Dz33ts1l.js} +24 -19
- package/dist/mermaid-parser.core-HQxPJrkY.cjs +3 -0
- package/dist/{mindmap-definition-QFDTVHPH-BCq8zmLt.cjs → mindmap-definition-RKZ34NQL-D9BOsg5W.cjs} +29 -29
- package/dist/{mindmap-definition-QFDTVHPH-NGjPQ5SM.js → mindmap-definition-RKZ34NQL-DHkmUkxh.js} +148 -148
- package/dist/{ordinal-Civr0hZL.cjs → ordinal-BnUYNBtU.cjs} +1 -1
- package/dist/{ordinal-C-VoL0XF.js → ordinal-MD9_ORcM.js} +1 -1
- package/dist/packet-YPE3B663-BwjweAZY.cjs +1 -0
- package/dist/packet-YPE3B663-D1Hr9AQm.js +3 -0
- package/dist/pie-LRSECV5Y-CpDfN1P0.js +3 -0
- package/dist/pie-LRSECV5Y-I1-OkIXi.cjs +1 -0
- package/dist/{pieDiagram-DEJITSTG-DTeyzHmB.js → pieDiagram-4H26LBE5-ByA7ytZx.js} +40 -40
- package/dist/pieDiagram-4H26LBE5-CrLJh4L9.cjs +30 -0
- package/dist/{quadrantDiagram-34T5L4WZ-CCcJIf91.js → quadrantDiagram-W4KKPZXB-CHHpmu1l.js} +547 -520
- package/dist/quadrantDiagram-W4KKPZXB-CalC_db_.cjs +7 -0
- package/dist/radar-GUYGQ44K-BXt3oO8c.cjs +1 -0
- package/dist/radar-GUYGQ44K-ByzrmbOz.js +3 -0
- package/dist/{requirementDiagram-MS252O5E-BdOanuYe.js → requirementDiagram-4Y6WPE33-BVcDFSx8.js} +165 -165
- package/dist/requirementDiagram-4Y6WPE33-SsePLT8d.cjs +84 -0
- package/dist/sankeyDiagram-5OEKKPKP-BgvTZ7jd.cjs +40 -0
- package/dist/{sankeyDiagram-XADWPNL6-3wviN_U4.js → sankeyDiagram-5OEKKPKP-C-ODz9lV.js} +202 -153
- package/dist/{sequenceDiagram-FGHM5R23-DC8SjhFN.js → sequenceDiagram-3UESZ5HK-Cnc0aDO4.js} +786 -779
- package/dist/sequenceDiagram-3UESZ5HK-DEVLteqD.cjs +162 -0
- package/dist/src-BgvDIw01.cjs +1 -0
- package/dist/{src-BQiFKP24.js → src-v9RrE_4h.js} +578 -563
- package/dist/stateDiagram-AJRCARHV-CuHe6Iji.js +217 -0
- package/dist/stateDiagram-AJRCARHV-D_yPvIRw.cjs +1 -0
- package/dist/stateDiagram-v2-BHNVJYJU-CTnE6fOT.cjs +1 -0
- package/dist/stateDiagram-v2-BHNVJYJU-DqstYMSl.js +27 -0
- package/dist/{timeline-definition-GMOUNBTQ-CBnYBWN0.js → timeline-definition-PNZ67QCA-Bj1BItRB.js} +324 -324
- package/dist/{timeline-definition-GMOUNBTQ-DWpngnE4.cjs → timeline-definition-PNZ67QCA-Cynbc96w.cjs} +48 -48
- package/dist/treeView-BLDUP644-CxLhpd93.js +3 -0
- package/dist/treeView-BLDUP644-DMwVx0AR.cjs +1 -0
- package/dist/treemap-LRROVOQU-BqmiLdFI.js +3 -0
- package/dist/treemap-LRROVOQU-XhaFZdvI.cjs +1 -0
- package/dist/types/data-structures.d.ts +9 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -0
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/utils/style.d.ts +13 -2
- package/dist/utils/style.d.ts.map +1 -1
- package/dist/v4-BpDBEhLK.js +30 -0
- package/dist/v4-CA8ev9YY.cjs +1 -0
- package/dist/{vennDiagram-DHZGUBPP-M-kkEkXj.js → vennDiagram-CIIHVFJN-CdmcxixA.js} +192 -192
- package/dist/vennDiagram-CIIHVFJN-Dm4D6omA.cjs +34 -0
- package/dist/wardley-L42UT6IY-C7UjBmVh.js +3 -0
- package/dist/wardley-L42UT6IY-DFAYOpjD.cjs +1 -0
- package/dist/{wardleyDiagram-NUSXRM2D-thoOuA_D.cjs → wardleyDiagram-YWT4CUSO-C-DdutxP.cjs} +61 -3
- package/dist/{wardleyDiagram-NUSXRM2D-CUX1SYhw.js → wardleyDiagram-YWT4CUSO-D1o116Wi.js} +272 -206
- package/dist/{xychartDiagram-5P7HB3ND-1cXRZ1bi.js → xychartDiagram-2RQKCTM6-Byw7djcg.js} +213 -213
- package/dist/{xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs → xychartDiagram-2RQKCTM6-D0D4PIQS.cjs} +6 -6
- package/package.json +1 -1
- package/dist/architecture-YZFGNWBL-BRqToLcm.js +0 -3
- package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +0 -1
- package/dist/architectureDiagram-Q4EWVU46-JSjagcXX.cjs +0 -36
- package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +0 -132
- package/dist/channel-BY9Lkyz7.cjs +0 -1
- package/dist/channel-BqNr2cYO.js +0 -5
- package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +0 -23
- package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +0 -1
- package/dist/chunk-426QAEUC-Df31vuwu.cjs +0 -1
- package/dist/chunk-426QAEUC-JjFVHKYG.js +0 -9
- package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +0 -206
- package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +0 -62
- package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +0 -2
- package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +0 -1
- package/dist/chunk-67CJDMHE-YMBkJcAO.js +0 -23
- package/dist/chunk-AA7GKIK3-B_ZB6dou.js +0 -30
- package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +0 -1
- package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +0 -1
- package/dist/chunk-CIAEETIT-XlxsAz-4.js +0 -23
- package/dist/chunk-D-IZpNpi.cjs +0 -1
- package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +0 -1
- package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +0 -25
- package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +0 -10
- package/dist/chunk-FOC6F5B3-DcZs851j.cjs +0 -1
- package/dist/chunk-FOC6F5B3-E9n6-juB.js +0 -23
- package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +0 -122
- package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +0 -94
- package/dist/chunk-K5T4RW27-DY7TOEqa.js +0 -16070
- package/dist/chunk-KGLVRYIC-5OJpfQCj.js +0 -23
- package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +0 -1
- package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +0 -1
- package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +0 -31
- package/dist/chunk-WQLz0Won.js +0 -20
- package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +0 -1
- package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +0 -29
- package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +0 -29
- package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +0 -1
- package/dist/clone-Dn__H8fX.js +0 -8
- package/dist/clone-lShkT11Q.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +0 -1
- package/dist/dagre-BjnWDdkw.cjs +0 -1
- package/dist/dagre-DVLnxd7n.js +0 -1606
- package/dist/dagre-KV5264BT-BjqayRYC.js +0 -293
- package/dist/dagre-KV5264BT-BvInGAUC.cjs +0 -4
- package/dist/diagram-5BDNPKRD-Bk7depC0.js +0 -101
- package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +0 -10
- package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +0 -24
- package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +0 -43
- package/dist/diagram-TYMM5635-5auoAFCi.cjs +0 -24
- package/dist/dist-BgvMZbfo.cjs +0 -1
- package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +0 -85
- package/dist/flatten-BE1bWL-7.js +0 -40
- package/dist/flatten-DxvYSoR8.cjs +0 -1
- package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
- package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
- package/dist/functional-components/gantt/gantt-assets.d.ts +0 -55
- package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
- package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
- package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
- package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
- package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
- package/dist/functional-components/gantt/types/gantt-types.d.ts +0 -47
- package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
- package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
- package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +0 -292
- package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +0 -1
- package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +0 -3
- package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +0 -106
- package/dist/graphlib-Cpifseqb.js +0 -373
- package/dist/graphlib-HdfvGLpV.cjs +0 -1
- package/dist/hooks/usePlannerSync.d.ts +0 -11
- package/dist/hooks/usePlannerSync.d.ts.map +0 -1
- package/dist/identity-KQSjemTb.cjs +0 -1
- package/dist/identity-g0dsMjx7.js +0 -393
- package/dist/info-OMHHGYJF-Bk0VWVNW.js +0 -3
- package/dist/info-OMHHGYJF-C8QtwF0k.cjs +0 -1
- package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +0 -2
- package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +0 -19
- package/dist/isEmpty-CA3kJuev.cjs +0 -1
- package/dist/isEmpty-RwX-oIQS.js +0 -35
- package/dist/line-BbHmiwbs.cjs +0 -1
- package/dist/mermaid-parser.core-DHpvGOZR.cjs +0 -3
- package/dist/packet-4T2RLAQJ-X0BMsNFj.js +0 -3
- package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +0 -1
- package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +0 -3
- package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +0 -1
- package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +0 -30
- package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +0 -7
- package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +0 -1
- package/dist/radar-PYXPWWZC-DgZIW9Ah.js +0 -3
- package/dist/reduce-B7WW9rkU.cjs +0 -1
- package/dist/reduce-DNnkcf3M.js +0 -532
- package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +0 -84
- package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +0 -10
- package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +0 -157
- package/dist/src-DFxq-N5I.cjs +0 -1
- package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +0 -217
- package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +0 -1
- package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +0 -27
- package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +0 -1
- package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +0 -1
- package/dist/treeView-SZITEDCU-Df3xzFtO.js +0 -3
- package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +0 -1
- package/dist/treemap-W4RFUUIX-ClUtdSdn.js +0 -3
- package/dist/utils/wbs-utils.d.ts +0 -143
- package/dist/utils/wbs-utils.d.ts.map +0 -1
- package/dist/v4-6yr83DbP.cjs +0 -1
- package/dist/v4-BR71w5_q.js +0 -33
- package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +0 -34
- package/dist/wardley-RL74JXVD-BtHQbnUy.js +0 -3
- package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +0 -1
- /package/dist/{array-D8NZ46Ht.js → array-CBdkHBGa.js} +0 -0
- /package/dist/{array-Dxz0O8Q3.cjs → array-Cx1JwiGD.cjs} +0 -0
- /package/dist/{cytoscape.esm-CrBwLFXE.cjs → cytoscape.esm-BzblyxzZ.cjs} +0 -0
- /package/dist/{cytoscape.esm-CPjF_mSK.js → cytoscape.esm-VShrX2U1.js} +0 -0
- /package/dist/{defaultLocale-DtzyZW63.cjs → defaultLocale-Bj_Ndo9V.cjs} +0 -0
- /package/dist/{defaultLocale-Dcyuaxxg.js → defaultLocale-dGy1YRID.js} +0 -0
- /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
- /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
- /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
- /package/dist/{init-BO60vQHJ.js → init-B7h4SEX5.js} +0 -0
- /package/dist/{init-B2MubQrj.cjs → init-CEL65JUo.cjs} +0 -0
- /package/dist/{katex-Du5WiYIy.js → katex-DWDh1q_h.js} +0 -0
- /package/dist/{path-CvfwEr8y.js → path-CAXMhBzK.js} +0 -0
- /package/dist/{path-Civic7PQ.cjs → path-CRahBUHI.cjs} +0 -0
- /package/dist/{rough.esm-BLKo1fIQ.cjs → rough.esm-BEA_SCZB.cjs} +0 -0
- /package/dist/{rough.esm-1mqTSjCt.js → rough.esm-TWNWL4Us.js} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as x } from "./dist-
|
|
4
|
-
import {
|
|
5
|
-
import { n as w, t as T } from "./chunk-XPW4576I-
|
|
6
|
-
import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-
|
|
7
|
-
import { t as M } from "./chunk-QZHKN3VN-
|
|
8
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-v9RrE_4h.js";
|
|
2
|
+
import { A as r, F as i, G as a, H as o, K as s, O as c, U as l, a as u, b as d, c as f, i as p, r as m, s as h, v as g, w as _, x as v, y, z as b } from "./chunk-CSCIHK7Q-9WKhcDqw.js";
|
|
3
|
+
import { t as x } from "./dist-9MKIBfY4.js";
|
|
4
|
+
import { g as S, p as C } from "./chunk-5ZQYHXKU-C4uam08j.js";
|
|
5
|
+
import { n as w, t as T } from "./chunk-XPW4576I-BCowsgDU.js";
|
|
6
|
+
import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-ND2GUHAM-CHTke4K8.js";
|
|
7
|
+
import { t as M } from "./chunk-QZHKN3VN-DCddt14Q.js";
|
|
8
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.mjs
|
|
9
9
|
var N = x(), P = (function() {
|
|
10
|
-
var e = /* @__PURE__ */
|
|
10
|
+
var e = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
11
11
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
12
12
|
return n;
|
|
13
|
-
}, "o"),
|
|
13
|
+
}, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
|
|
14
14
|
1,
|
|
15
15
|
4,
|
|
16
16
|
5,
|
|
@@ -190,7 +190,7 @@ var N = x(), P = (function() {
|
|
|
190
190
|
72,
|
|
191
191
|
73
|
|
192
192
|
], J = [1, 151], we = {
|
|
193
|
-
trace: /* @__PURE__ */
|
|
193
|
+
trace: /* @__PURE__ */ t(function() {}, "trace"),
|
|
194
194
|
yy: {},
|
|
195
195
|
symbols_: {
|
|
196
196
|
error: 2,
|
|
@@ -488,7 +488,7 @@ var N = x(), P = (function() {
|
|
|
488
488
|
[69, 1],
|
|
489
489
|
[58, 1]
|
|
490
490
|
],
|
|
491
|
-
performAction: /* @__PURE__ */
|
|
491
|
+
performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
|
|
492
492
|
var s = a.length - 1;
|
|
493
493
|
switch (i) {
|
|
494
494
|
case 3: return r.apply(a[s]), a[s];
|
|
@@ -985,22 +985,22 @@ var N = x(), P = (function() {
|
|
|
985
985
|
table: [
|
|
986
986
|
{
|
|
987
987
|
3: 1,
|
|
988
|
-
4:
|
|
989
|
-
5:
|
|
990
|
-
6:
|
|
988
|
+
4: n,
|
|
989
|
+
5: r,
|
|
990
|
+
6: i
|
|
991
991
|
},
|
|
992
992
|
{ 1: [3] },
|
|
993
993
|
{
|
|
994
994
|
3: 5,
|
|
995
|
-
4:
|
|
996
|
-
5:
|
|
997
|
-
6:
|
|
995
|
+
4: n,
|
|
996
|
+
5: r,
|
|
997
|
+
6: i
|
|
998
998
|
},
|
|
999
999
|
{
|
|
1000
1000
|
3: 6,
|
|
1001
|
-
4:
|
|
1002
|
-
5:
|
|
1003
|
-
6:
|
|
1001
|
+
4: n,
|
|
1002
|
+
5: r,
|
|
1003
|
+
6: i
|
|
1004
1004
|
},
|
|
1005
1005
|
e([
|
|
1006
1006
|
1,
|
|
@@ -1034,35 +1034,35 @@ var N = x(), P = (function() {
|
|
|
1034
1034
|
63,
|
|
1035
1035
|
64,
|
|
1036
1036
|
73
|
|
1037
|
-
],
|
|
1037
|
+
], a, { 7: 7 }),
|
|
1038
1038
|
{ 1: [2, 1] },
|
|
1039
1039
|
{ 1: [2, 2] },
|
|
1040
1040
|
{
|
|
1041
1041
|
1: [2, 3],
|
|
1042
|
-
4:
|
|
1043
|
-
5:
|
|
1042
|
+
4: o,
|
|
1043
|
+
5: s,
|
|
1044
1044
|
8: 8,
|
|
1045
1045
|
9: 10,
|
|
1046
|
-
10:
|
|
1046
|
+
10: c,
|
|
1047
1047
|
13: 13,
|
|
1048
|
-
14:
|
|
1049
|
-
15:
|
|
1048
|
+
14: l,
|
|
1049
|
+
15: u,
|
|
1050
1050
|
18: 16,
|
|
1051
|
-
19:
|
|
1052
|
-
22:
|
|
1051
|
+
19: d,
|
|
1052
|
+
22: f,
|
|
1053
1053
|
23: 41,
|
|
1054
|
-
24:
|
|
1054
|
+
24: p,
|
|
1055
1055
|
25: 20,
|
|
1056
1056
|
26: 21,
|
|
1057
1057
|
27: 22,
|
|
1058
1058
|
28: 23,
|
|
1059
1059
|
29: 24,
|
|
1060
|
-
30:
|
|
1061
|
-
31:
|
|
1062
|
-
32:
|
|
1063
|
-
34:
|
|
1064
|
-
36:
|
|
1065
|
-
37:
|
|
1060
|
+
30: m,
|
|
1061
|
+
31: h,
|
|
1062
|
+
32: g,
|
|
1063
|
+
34: _,
|
|
1064
|
+
36: v,
|
|
1065
|
+
37: y,
|
|
1066
1066
|
38: b,
|
|
1067
1067
|
39: x,
|
|
1068
1068
|
40: S,
|
|
@@ -1084,24 +1084,24 @@ var N = x(), P = (function() {
|
|
|
1084
1084
|
{
|
|
1085
1085
|
9: 48,
|
|
1086
1086
|
13: 13,
|
|
1087
|
-
14:
|
|
1088
|
-
15:
|
|
1087
|
+
14: l,
|
|
1088
|
+
15: u,
|
|
1089
1089
|
18: 16,
|
|
1090
|
-
19:
|
|
1091
|
-
22:
|
|
1090
|
+
19: d,
|
|
1091
|
+
22: f,
|
|
1092
1092
|
23: 41,
|
|
1093
|
-
24:
|
|
1093
|
+
24: p,
|
|
1094
1094
|
25: 20,
|
|
1095
1095
|
26: 21,
|
|
1096
1096
|
27: 22,
|
|
1097
1097
|
28: 23,
|
|
1098
1098
|
29: 24,
|
|
1099
|
-
30:
|
|
1100
|
-
31:
|
|
1101
|
-
32:
|
|
1102
|
-
34:
|
|
1103
|
-
36:
|
|
1104
|
-
37:
|
|
1099
|
+
30: m,
|
|
1100
|
+
31: h,
|
|
1101
|
+
32: g,
|
|
1102
|
+
34: _,
|
|
1103
|
+
36: v,
|
|
1104
|
+
37: y,
|
|
1105
1105
|
38: b,
|
|
1106
1106
|
39: x,
|
|
1107
1107
|
40: S,
|
|
@@ -1279,26 +1279,26 @@ var N = x(), P = (function() {
|
|
|
1279
1279
|
e(I, [2, 29]),
|
|
1280
1280
|
e(I, [2, 32]),
|
|
1281
1281
|
e(I, [2, 33]),
|
|
1282
|
-
e(ye,
|
|
1283
|
-
e(ye,
|
|
1284
|
-
e(ye,
|
|
1285
|
-
e(be,
|
|
1282
|
+
e(ye, a, { 7: 120 }),
|
|
1283
|
+
e(ye, a, { 7: 121 }),
|
|
1284
|
+
e(ye, a, { 7: 122 }),
|
|
1285
|
+
e(be, a, {
|
|
1286
1286
|
41: 123,
|
|
1287
1287
|
7: 124
|
|
1288
1288
|
}),
|
|
1289
|
-
e(xe,
|
|
1289
|
+
e(xe, a, {
|
|
1290
1290
|
43: 125,
|
|
1291
1291
|
7: 126
|
|
1292
1292
|
}),
|
|
1293
|
-
e(xe,
|
|
1293
|
+
e(xe, a, {
|
|
1294
1294
|
7: 126,
|
|
1295
1295
|
43: 127
|
|
1296
1296
|
}),
|
|
1297
|
-
e(Se,
|
|
1297
|
+
e(Se, a, {
|
|
1298
1298
|
46: 128,
|
|
1299
1299
|
7: 129
|
|
1300
1300
|
}),
|
|
1301
|
-
e(ye,
|
|
1301
|
+
e(ye, a, { 7: 130 }),
|
|
1302
1302
|
{
|
|
1303
1303
|
5: [1, 132],
|
|
1304
1304
|
52: [1, 131]
|
|
@@ -1425,31 +1425,31 @@ var N = x(), P = (function() {
|
|
|
1425
1425
|
e(I, [2, 23]),
|
|
1426
1426
|
e(I, [2, 24]),
|
|
1427
1427
|
{
|
|
1428
|
-
4:
|
|
1429
|
-
5:
|
|
1428
|
+
4: o,
|
|
1429
|
+
5: s,
|
|
1430
1430
|
8: 8,
|
|
1431
1431
|
9: 10,
|
|
1432
|
-
10:
|
|
1432
|
+
10: c,
|
|
1433
1433
|
13: 13,
|
|
1434
|
-
14:
|
|
1435
|
-
15:
|
|
1434
|
+
14: l,
|
|
1435
|
+
15: u,
|
|
1436
1436
|
17: [1, 161],
|
|
1437
1437
|
18: 16,
|
|
1438
|
-
19:
|
|
1439
|
-
22:
|
|
1438
|
+
19: d,
|
|
1439
|
+
22: f,
|
|
1440
1440
|
23: 41,
|
|
1441
|
-
24:
|
|
1441
|
+
24: p,
|
|
1442
1442
|
25: 20,
|
|
1443
1443
|
26: 21,
|
|
1444
1444
|
27: 22,
|
|
1445
1445
|
28: 23,
|
|
1446
1446
|
29: 24,
|
|
1447
|
-
30:
|
|
1448
|
-
31:
|
|
1449
|
-
32:
|
|
1450
|
-
34:
|
|
1451
|
-
36:
|
|
1452
|
-
37:
|
|
1447
|
+
30: m,
|
|
1448
|
+
31: h,
|
|
1449
|
+
32: g,
|
|
1450
|
+
34: _,
|
|
1451
|
+
36: v,
|
|
1452
|
+
37: y,
|
|
1453
1453
|
38: b,
|
|
1454
1454
|
39: x,
|
|
1455
1455
|
40: S,
|
|
@@ -1468,31 +1468,31 @@ var N = x(), P = (function() {
|
|
|
1468
1468
|
73: F
|
|
1469
1469
|
},
|
|
1470
1470
|
{
|
|
1471
|
-
4:
|
|
1472
|
-
5:
|
|
1471
|
+
4: o,
|
|
1472
|
+
5: s,
|
|
1473
1473
|
8: 8,
|
|
1474
1474
|
9: 10,
|
|
1475
|
-
10:
|
|
1475
|
+
10: c,
|
|
1476
1476
|
13: 13,
|
|
1477
|
-
14:
|
|
1478
|
-
15:
|
|
1477
|
+
14: l,
|
|
1478
|
+
15: u,
|
|
1479
1479
|
17: [1, 162],
|
|
1480
1480
|
18: 16,
|
|
1481
|
-
19:
|
|
1482
|
-
22:
|
|
1481
|
+
19: d,
|
|
1482
|
+
22: f,
|
|
1483
1483
|
23: 41,
|
|
1484
|
-
24:
|
|
1484
|
+
24: p,
|
|
1485
1485
|
25: 20,
|
|
1486
1486
|
26: 21,
|
|
1487
1487
|
27: 22,
|
|
1488
1488
|
28: 23,
|
|
1489
1489
|
29: 24,
|
|
1490
|
-
30:
|
|
1491
|
-
31:
|
|
1492
|
-
32:
|
|
1493
|
-
34:
|
|
1494
|
-
36:
|
|
1495
|
-
37:
|
|
1490
|
+
30: m,
|
|
1491
|
+
31: h,
|
|
1492
|
+
32: g,
|
|
1493
|
+
34: _,
|
|
1494
|
+
36: v,
|
|
1495
|
+
37: y,
|
|
1496
1496
|
38: b,
|
|
1497
1497
|
39: x,
|
|
1498
1498
|
40: S,
|
|
@@ -1511,31 +1511,31 @@ var N = x(), P = (function() {
|
|
|
1511
1511
|
73: F
|
|
1512
1512
|
},
|
|
1513
1513
|
{
|
|
1514
|
-
4:
|
|
1515
|
-
5:
|
|
1514
|
+
4: o,
|
|
1515
|
+
5: s,
|
|
1516
1516
|
8: 8,
|
|
1517
1517
|
9: 10,
|
|
1518
|
-
10:
|
|
1518
|
+
10: c,
|
|
1519
1519
|
13: 13,
|
|
1520
|
-
14:
|
|
1521
|
-
15:
|
|
1520
|
+
14: l,
|
|
1521
|
+
15: u,
|
|
1522
1522
|
17: [1, 163],
|
|
1523
1523
|
18: 16,
|
|
1524
|
-
19:
|
|
1525
|
-
22:
|
|
1524
|
+
19: d,
|
|
1525
|
+
22: f,
|
|
1526
1526
|
23: 41,
|
|
1527
|
-
24:
|
|
1527
|
+
24: p,
|
|
1528
1528
|
25: 20,
|
|
1529
1529
|
26: 21,
|
|
1530
1530
|
27: 22,
|
|
1531
1531
|
28: 23,
|
|
1532
1532
|
29: 24,
|
|
1533
|
-
30:
|
|
1534
|
-
31:
|
|
1535
|
-
32:
|
|
1536
|
-
34:
|
|
1537
|
-
36:
|
|
1538
|
-
37:
|
|
1533
|
+
30: m,
|
|
1534
|
+
31: h,
|
|
1535
|
+
32: g,
|
|
1536
|
+
34: _,
|
|
1537
|
+
36: v,
|
|
1538
|
+
37: y,
|
|
1539
1539
|
38: b,
|
|
1540
1540
|
39: x,
|
|
1541
1541
|
40: S,
|
|
@@ -1555,31 +1555,31 @@ var N = x(), P = (function() {
|
|
|
1555
1555
|
},
|
|
1556
1556
|
{ 17: [1, 164] },
|
|
1557
1557
|
{
|
|
1558
|
-
4:
|
|
1559
|
-
5:
|
|
1558
|
+
4: o,
|
|
1559
|
+
5: s,
|
|
1560
1560
|
8: 8,
|
|
1561
1561
|
9: 10,
|
|
1562
|
-
10:
|
|
1562
|
+
10: c,
|
|
1563
1563
|
13: 13,
|
|
1564
|
-
14:
|
|
1565
|
-
15:
|
|
1564
|
+
14: l,
|
|
1565
|
+
15: u,
|
|
1566
1566
|
17: [2, 47],
|
|
1567
1567
|
18: 16,
|
|
1568
|
-
19:
|
|
1569
|
-
22:
|
|
1568
|
+
19: d,
|
|
1569
|
+
22: f,
|
|
1570
1570
|
23: 41,
|
|
1571
|
-
24:
|
|
1571
|
+
24: p,
|
|
1572
1572
|
25: 20,
|
|
1573
1573
|
26: 21,
|
|
1574
1574
|
27: 22,
|
|
1575
1575
|
28: 23,
|
|
1576
1576
|
29: 24,
|
|
1577
|
-
30:
|
|
1578
|
-
31:
|
|
1579
|
-
32:
|
|
1580
|
-
34:
|
|
1581
|
-
36:
|
|
1582
|
-
37:
|
|
1577
|
+
30: m,
|
|
1578
|
+
31: h,
|
|
1579
|
+
32: g,
|
|
1580
|
+
34: _,
|
|
1581
|
+
36: v,
|
|
1582
|
+
37: y,
|
|
1583
1583
|
38: b,
|
|
1584
1584
|
39: x,
|
|
1585
1585
|
40: S,
|
|
@@ -1600,31 +1600,31 @@ var N = x(), P = (function() {
|
|
|
1600
1600
|
},
|
|
1601
1601
|
{ 17: [1, 166] },
|
|
1602
1602
|
{
|
|
1603
|
-
4:
|
|
1604
|
-
5:
|
|
1603
|
+
4: o,
|
|
1604
|
+
5: s,
|
|
1605
1605
|
8: 8,
|
|
1606
1606
|
9: 10,
|
|
1607
|
-
10:
|
|
1607
|
+
10: c,
|
|
1608
1608
|
13: 13,
|
|
1609
|
-
14:
|
|
1610
|
-
15:
|
|
1609
|
+
14: l,
|
|
1610
|
+
15: u,
|
|
1611
1611
|
17: [2, 45],
|
|
1612
1612
|
18: 16,
|
|
1613
|
-
19:
|
|
1614
|
-
22:
|
|
1613
|
+
19: d,
|
|
1614
|
+
22: f,
|
|
1615
1615
|
23: 41,
|
|
1616
|
-
24:
|
|
1616
|
+
24: p,
|
|
1617
1617
|
25: 20,
|
|
1618
1618
|
26: 21,
|
|
1619
1619
|
27: 22,
|
|
1620
1620
|
28: 23,
|
|
1621
1621
|
29: 24,
|
|
1622
|
-
30:
|
|
1623
|
-
31:
|
|
1624
|
-
32:
|
|
1625
|
-
34:
|
|
1626
|
-
36:
|
|
1627
|
-
37:
|
|
1622
|
+
30: m,
|
|
1623
|
+
31: h,
|
|
1624
|
+
32: g,
|
|
1625
|
+
34: _,
|
|
1626
|
+
36: v,
|
|
1627
|
+
37: y,
|
|
1628
1628
|
38: b,
|
|
1629
1629
|
39: x,
|
|
1630
1630
|
40: S,
|
|
@@ -1646,31 +1646,31 @@ var N = x(), P = (function() {
|
|
|
1646
1646
|
{ 17: [1, 168] },
|
|
1647
1647
|
{ 17: [1, 169] },
|
|
1648
1648
|
{
|
|
1649
|
-
4:
|
|
1650
|
-
5:
|
|
1649
|
+
4: o,
|
|
1650
|
+
5: s,
|
|
1651
1651
|
8: 8,
|
|
1652
1652
|
9: 10,
|
|
1653
|
-
10:
|
|
1653
|
+
10: c,
|
|
1654
1654
|
13: 13,
|
|
1655
|
-
14:
|
|
1656
|
-
15:
|
|
1655
|
+
14: l,
|
|
1656
|
+
15: u,
|
|
1657
1657
|
17: [2, 43],
|
|
1658
1658
|
18: 16,
|
|
1659
|
-
19:
|
|
1660
|
-
22:
|
|
1659
|
+
19: d,
|
|
1660
|
+
22: f,
|
|
1661
1661
|
23: 41,
|
|
1662
|
-
24:
|
|
1662
|
+
24: p,
|
|
1663
1663
|
25: 20,
|
|
1664
1664
|
26: 21,
|
|
1665
1665
|
27: 22,
|
|
1666
1666
|
28: 23,
|
|
1667
1667
|
29: 24,
|
|
1668
|
-
30:
|
|
1669
|
-
31:
|
|
1670
|
-
32:
|
|
1671
|
-
34:
|
|
1672
|
-
36:
|
|
1673
|
-
37:
|
|
1668
|
+
30: m,
|
|
1669
|
+
31: h,
|
|
1670
|
+
32: g,
|
|
1671
|
+
34: _,
|
|
1672
|
+
36: v,
|
|
1673
|
+
37: y,
|
|
1674
1674
|
38: b,
|
|
1675
1675
|
39: x,
|
|
1676
1676
|
40: S,
|
|
@@ -1690,31 +1690,31 @@ var N = x(), P = (function() {
|
|
|
1690
1690
|
73: F
|
|
1691
1691
|
},
|
|
1692
1692
|
{
|
|
1693
|
-
4:
|
|
1694
|
-
5:
|
|
1693
|
+
4: o,
|
|
1694
|
+
5: s,
|
|
1695
1695
|
8: 8,
|
|
1696
1696
|
9: 10,
|
|
1697
|
-
10:
|
|
1697
|
+
10: c,
|
|
1698
1698
|
13: 13,
|
|
1699
|
-
14:
|
|
1700
|
-
15:
|
|
1699
|
+
14: l,
|
|
1700
|
+
15: u,
|
|
1701
1701
|
17: [1, 171],
|
|
1702
1702
|
18: 16,
|
|
1703
|
-
19:
|
|
1704
|
-
22:
|
|
1703
|
+
19: d,
|
|
1704
|
+
22: f,
|
|
1705
1705
|
23: 41,
|
|
1706
|
-
24:
|
|
1706
|
+
24: p,
|
|
1707
1707
|
25: 20,
|
|
1708
1708
|
26: 21,
|
|
1709
1709
|
27: 22,
|
|
1710
1710
|
28: 23,
|
|
1711
1711
|
29: 24,
|
|
1712
|
-
30:
|
|
1713
|
-
31:
|
|
1714
|
-
32:
|
|
1715
|
-
34:
|
|
1716
|
-
36:
|
|
1717
|
-
37:
|
|
1712
|
+
30: m,
|
|
1713
|
+
31: h,
|
|
1714
|
+
32: g,
|
|
1715
|
+
34: _,
|
|
1716
|
+
36: v,
|
|
1717
|
+
37: y,
|
|
1718
1718
|
38: b,
|
|
1719
1719
|
39: x,
|
|
1720
1720
|
40: S,
|
|
@@ -1836,15 +1836,15 @@ var N = x(), P = (function() {
|
|
|
1836
1836
|
73: F
|
|
1837
1837
|
},
|
|
1838
1838
|
e(ve, [2, 12]),
|
|
1839
|
-
e(be,
|
|
1839
|
+
e(be, a, {
|
|
1840
1840
|
7: 124,
|
|
1841
1841
|
41: 201
|
|
1842
1842
|
}),
|
|
1843
|
-
e(xe,
|
|
1843
|
+
e(xe, a, {
|
|
1844
1844
|
7: 126,
|
|
1845
1845
|
43: 202
|
|
1846
1846
|
}),
|
|
1847
|
-
e(Se,
|
|
1847
|
+
e(Se, a, {
|
|
1848
1848
|
7: 129,
|
|
1849
1849
|
46: 203
|
|
1850
1850
|
}),
|
|
@@ -1890,63 +1890,63 @@ var N = x(), P = (function() {
|
|
|
1890
1890
|
203: [2, 44],
|
|
1891
1891
|
204: [2, 74]
|
|
1892
1892
|
},
|
|
1893
|
-
parseError: /* @__PURE__ */
|
|
1893
|
+
parseError: /* @__PURE__ */ t(function(e, t) {
|
|
1894
1894
|
if (t.recoverable) this.trace(e);
|
|
1895
1895
|
else {
|
|
1896
1896
|
var n = Error(e);
|
|
1897
1897
|
throw n.hash = t, n;
|
|
1898
1898
|
}
|
|
1899
1899
|
}, "parseError"),
|
|
1900
|
-
parse: /* @__PURE__ */
|
|
1901
|
-
var
|
|
1902
|
-
for (var
|
|
1903
|
-
|
|
1904
|
-
var
|
|
1905
|
-
|
|
1906
|
-
var
|
|
1907
|
-
typeof
|
|
1900
|
+
parse: /* @__PURE__ */ t(function(e) {
|
|
1901
|
+
var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
1902
|
+
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
1903
|
+
h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
1904
|
+
var v = h.yylloc;
|
|
1905
|
+
o.push(v);
|
|
1906
|
+
var y = h.options && h.options.ranges;
|
|
1907
|
+
typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1908
1908
|
function b(e) {
|
|
1909
|
-
|
|
1909
|
+
r.length -= 2 * e, a.length -= e, o.length -= e;
|
|
1910
1910
|
}
|
|
1911
|
-
|
|
1911
|
+
t(b, "popStack");
|
|
1912
1912
|
function x() {
|
|
1913
|
-
var e =
|
|
1914
|
-
return typeof e != "number" && (e instanceof Array && (
|
|
1913
|
+
var e = i.pop() || h.lex() || p;
|
|
1914
|
+
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
|
|
1915
1915
|
}
|
|
1916
|
-
|
|
1916
|
+
t(x, "lex");
|
|
1917
1917
|
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
1918
|
-
if (w =
|
|
1918
|
+
if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
1919
1919
|
var M = "";
|
|
1920
|
-
for (O in j = [],
|
|
1921
|
-
M =
|
|
1922
|
-
text:
|
|
1920
|
+
for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
|
|
1921
|
+
M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
|
|
1922
|
+
text: h.match,
|
|
1923
1923
|
token: this.terminals_[S] || S,
|
|
1924
|
-
line:
|
|
1925
|
-
loc:
|
|
1924
|
+
line: h.yylineno,
|
|
1925
|
+
loc: v,
|
|
1926
1926
|
expected: j
|
|
1927
1927
|
});
|
|
1928
1928
|
}
|
|
1929
1929
|
if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
|
|
1930
1930
|
switch (T[0]) {
|
|
1931
1931
|
case 1:
|
|
1932
|
-
|
|
1932
|
+
r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
|
|
1933
1933
|
break;
|
|
1934
1934
|
case 2:
|
|
1935
|
-
if (k = this.productions_[T[1]][1], D.$ =
|
|
1936
|
-
first_line:
|
|
1937
|
-
last_line:
|
|
1938
|
-
first_column:
|
|
1939
|
-
last_column:
|
|
1940
|
-
},
|
|
1941
|
-
s,
|
|
1942
|
-
l,
|
|
1935
|
+
if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
|
|
1936
|
+
first_line: o[o.length - (k || 1)].first_line,
|
|
1937
|
+
last_line: o[o.length - 1].last_line,
|
|
1938
|
+
first_column: o[o.length - (k || 1)].first_column,
|
|
1939
|
+
last_column: o[o.length - 1].last_column
|
|
1940
|
+
}, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
|
|
1943
1941
|
c,
|
|
1944
|
-
|
|
1942
|
+
u,
|
|
1943
|
+
l,
|
|
1944
|
+
g.yy,
|
|
1945
1945
|
T[1],
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
].concat(
|
|
1949
|
-
k && (
|
|
1946
|
+
a,
|
|
1947
|
+
o
|
|
1948
|
+
].concat(m)), E !== void 0) return E;
|
|
1949
|
+
k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
|
|
1950
1950
|
break;
|
|
1951
1951
|
case 3: return !0;
|
|
1952
1952
|
}
|
|
@@ -1957,11 +1957,11 @@ var N = x(), P = (function() {
|
|
|
1957
1957
|
we.lexer = /* @__PURE__ */ (function() {
|
|
1958
1958
|
return {
|
|
1959
1959
|
EOF: 1,
|
|
1960
|
-
parseError: /* @__PURE__ */
|
|
1960
|
+
parseError: /* @__PURE__ */ t(function(e, t) {
|
|
1961
1961
|
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
1962
1962
|
else throw Error(e);
|
|
1963
1963
|
}, "parseError"),
|
|
1964
|
-
setInput: /* @__PURE__ */
|
|
1964
|
+
setInput: /* @__PURE__ */ t(function(e, t) {
|
|
1965
1965
|
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
1966
1966
|
first_line: 1,
|
|
1967
1967
|
first_column: 0,
|
|
@@ -1969,11 +1969,11 @@ var N = x(), P = (function() {
|
|
|
1969
1969
|
last_column: 0
|
|
1970
1970
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
1971
1971
|
}, "setInput"),
|
|
1972
|
-
input: /* @__PURE__ */
|
|
1972
|
+
input: /* @__PURE__ */ t(function() {
|
|
1973
1973
|
var e = this._input[0];
|
|
1974
1974
|
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.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), e;
|
|
1975
1975
|
}, "input"),
|
|
1976
|
-
unput: /* @__PURE__ */
|
|
1976
|
+
unput: /* @__PURE__ */ t(function(e) {
|
|
1977
1977
|
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
1978
1978
|
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
1979
1979
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
@@ -1986,10 +1986,10 @@ var N = x(), P = (function() {
|
|
|
1986
1986
|
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
1987
1987
|
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
1988
1988
|
}, "unput"),
|
|
1989
|
-
more: /* @__PURE__ */
|
|
1989
|
+
more: /* @__PURE__ */ t(function() {
|
|
1990
1990
|
return this._more = !0, this;
|
|
1991
1991
|
}, "more"),
|
|
1992
|
-
reject: /* @__PURE__ */
|
|
1992
|
+
reject: /* @__PURE__ */ t(function() {
|
|
1993
1993
|
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
1994
1994
|
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).\n" + this.showPosition(), {
|
|
1995
1995
|
text: "",
|
|
@@ -1998,22 +1998,22 @@ var N = x(), P = (function() {
|
|
|
1998
1998
|
});
|
|
1999
1999
|
return this;
|
|
2000
2000
|
}, "reject"),
|
|
2001
|
-
less: /* @__PURE__ */
|
|
2001
|
+
less: /* @__PURE__ */ t(function(e) {
|
|
2002
2002
|
this.unput(this.match.slice(e));
|
|
2003
2003
|
}, "less"),
|
|
2004
|
-
pastInput: /* @__PURE__ */
|
|
2004
|
+
pastInput: /* @__PURE__ */ t(function() {
|
|
2005
2005
|
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
2006
2006
|
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
2007
2007
|
}, "pastInput"),
|
|
2008
|
-
upcomingInput: /* @__PURE__ */
|
|
2008
|
+
upcomingInput: /* @__PURE__ */ t(function() {
|
|
2009
2009
|
var e = this.match;
|
|
2010
2010
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
2011
2011
|
}, "upcomingInput"),
|
|
2012
|
-
showPosition: /* @__PURE__ */
|
|
2012
|
+
showPosition: /* @__PURE__ */ t(function() {
|
|
2013
2013
|
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
2014
2014
|
return e + this.upcomingInput() + "\n" + t + "^";
|
|
2015
2015
|
}, "showPosition"),
|
|
2016
|
-
test_match: /* @__PURE__ */
|
|
2016
|
+
test_match: /* @__PURE__ */ t(function(e, t) {
|
|
2017
2017
|
var n, r, i;
|
|
2018
2018
|
if (this.options.backtrack_lexer && (i = {
|
|
2019
2019
|
yylineno: this.yylineno,
|
|
@@ -2046,7 +2046,7 @@ var N = x(), P = (function() {
|
|
|
2046
2046
|
}
|
|
2047
2047
|
return !1;
|
|
2048
2048
|
}, "test_match"),
|
|
2049
|
-
next: /* @__PURE__ */
|
|
2049
|
+
next: /* @__PURE__ */ t(function() {
|
|
2050
2050
|
if (this.done) return this.EOF;
|
|
2051
2051
|
this._input || (this.done = !0);
|
|
2052
2052
|
var e, t, n, r;
|
|
@@ -2066,29 +2066,29 @@ var N = x(), P = (function() {
|
|
|
2066
2066
|
line: this.yylineno
|
|
2067
2067
|
});
|
|
2068
2068
|
}, "next"),
|
|
2069
|
-
lex: /* @__PURE__ */
|
|
2069
|
+
lex: /* @__PURE__ */ t(function() {
|
|
2070
2070
|
return this.next() || this.lex();
|
|
2071
2071
|
}, "lex"),
|
|
2072
|
-
begin: /* @__PURE__ */
|
|
2072
|
+
begin: /* @__PURE__ */ t(function(e) {
|
|
2073
2073
|
this.conditionStack.push(e);
|
|
2074
2074
|
}, "begin"),
|
|
2075
|
-
popState: /* @__PURE__ */
|
|
2075
|
+
popState: /* @__PURE__ */ t(function() {
|
|
2076
2076
|
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
2077
2077
|
}, "popState"),
|
|
2078
|
-
_currentRules: /* @__PURE__ */
|
|
2078
|
+
_currentRules: /* @__PURE__ */ t(function() {
|
|
2079
2079
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
2080
2080
|
}, "_currentRules"),
|
|
2081
|
-
topState: /* @__PURE__ */
|
|
2081
|
+
topState: /* @__PURE__ */ t(function(e) {
|
|
2082
2082
|
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
2083
2083
|
}, "topState"),
|
|
2084
|
-
pushState: /* @__PURE__ */
|
|
2084
|
+
pushState: /* @__PURE__ */ t(function(e) {
|
|
2085
2085
|
this.begin(e);
|
|
2086
2086
|
}, "pushState"),
|
|
2087
|
-
stateStackSize: /* @__PURE__ */
|
|
2087
|
+
stateStackSize: /* @__PURE__ */ t(function() {
|
|
2088
2088
|
return this.conditionStack.length;
|
|
2089
2089
|
}, "stateStackSize"),
|
|
2090
2090
|
options: { "case-insensitive": !0 },
|
|
2091
|
-
performAction: /* @__PURE__ */
|
|
2091
|
+
performAction: /* @__PURE__ */ t(function(e, t, n, r) {
|
|
2092
2092
|
switch (n) {
|
|
2093
2093
|
case 0: return 5;
|
|
2094
2094
|
case 1: break;
|
|
@@ -2197,7 +2197,7 @@ var N = x(), P = (function() {
|
|
|
2197
2197
|
/^(?:#[^\n]*)/i,
|
|
2198
2198
|
/^(?:%(?!\{)[^\n]*)/i,
|
|
2199
2199
|
/^(?:[^\}]%%[^\n]*)/i,
|
|
2200
|
-
/^(?:[0-9]+(?=[ \n]+))/i,
|
|
2200
|
+
/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,
|
|
2201
2201
|
/^(?:@\{)/i,
|
|
2202
2202
|
/^(?:[^\}]+)/i,
|
|
2203
2203
|
/^(?:\}(?=\s+as\s))/i,
|
|
@@ -2429,7 +2429,7 @@ var N = x(), P = (function() {
|
|
|
2429
2429
|
function Te() {
|
|
2430
2430
|
this.yy = {};
|
|
2431
2431
|
}
|
|
2432
|
-
return
|
|
2432
|
+
return t(Te, "Parser"), Te.prototype = we, we.Parser = Te, new Te();
|
|
2433
2433
|
})();
|
|
2434
2434
|
P.parser = P;
|
|
2435
2435
|
var F = P, I = {
|
|
@@ -2515,10 +2515,10 @@ var F = P, I = {
|
|
|
2515
2515
|
currentBox: void 0,
|
|
2516
2516
|
lastCreated: void 0,
|
|
2517
2517
|
lastDestroyed: void 0
|
|
2518
|
-
})), this.setAccTitle =
|
|
2518
|
+
})), this.setAccTitle = l, this.setAccDescription = o, this.setDiagramTitle = s, this.getAccTitle = y, this.getAccDescription = g, this.getDiagramTitle = _, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(v().wrap), this.LINETYPE = I, this.ARROWTYPE = L, this.PLACEMENT = ee;
|
|
2519
2519
|
}
|
|
2520
2520
|
static {
|
|
2521
|
-
|
|
2521
|
+
t(this, "SequenceDB");
|
|
2522
2522
|
}
|
|
2523
2523
|
addBox(e) {
|
|
2524
2524
|
this.state.records.boxes.push({
|
|
@@ -2659,30 +2659,30 @@ var F = P, I = {
|
|
|
2659
2659
|
};
|
|
2660
2660
|
}
|
|
2661
2661
|
autoWrap() {
|
|
2662
|
-
return this.state.records.wrapEnabled === void 0 ?
|
|
2662
|
+
return this.state.records.wrapEnabled === void 0 ? v().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
|
|
2663
2663
|
}
|
|
2664
2664
|
clear() {
|
|
2665
|
-
this.state.reset(),
|
|
2665
|
+
this.state.reset(), u();
|
|
2666
2666
|
}
|
|
2667
|
-
parseMessage(
|
|
2668
|
-
let
|
|
2669
|
-
text:
|
|
2670
|
-
wrap:
|
|
2667
|
+
parseMessage(t) {
|
|
2668
|
+
let n = t.trim(), { wrap: r, cleanedText: i } = this.extractWrap(n), a = {
|
|
2669
|
+
text: i,
|
|
2670
|
+
wrap: r
|
|
2671
2671
|
};
|
|
2672
|
-
return
|
|
2672
|
+
return e.debug(`parseMessage: ${JSON.stringify(a)}`), a;
|
|
2673
2673
|
}
|
|
2674
2674
|
parseBoxData(e) {
|
|
2675
|
-
let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent",
|
|
2676
|
-
if (window?.CSS) window.CSS.supports("color", n) || (n = "transparent",
|
|
2675
|
+
let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
|
|
2676
|
+
if (window?.CSS) window.CSS.supports("color", n) || (n = "transparent", r = e.trim());
|
|
2677
2677
|
else {
|
|
2678
2678
|
let t = new Option().style;
|
|
2679
|
-
t.color = n, t.color !== n && (n = "transparent",
|
|
2679
|
+
t.color = n, t.color !== n && (n = "transparent", r = e.trim());
|
|
2680
2680
|
}
|
|
2681
|
-
let { wrap:
|
|
2681
|
+
let { wrap: i, cleanedText: a } = this.extractWrap(r);
|
|
2682
2682
|
return {
|
|
2683
|
-
text:
|
|
2683
|
+
text: a ? b(a, v()) : void 0,
|
|
2684
2684
|
color: n,
|
|
2685
|
-
wrap:
|
|
2685
|
+
wrap: i
|
|
2686
2686
|
};
|
|
2687
2687
|
}
|
|
2688
2688
|
addNote(e, t, n) {
|
|
@@ -2702,39 +2702,39 @@ var F = P, I = {
|
|
|
2702
2702
|
placement: t
|
|
2703
2703
|
});
|
|
2704
2704
|
}
|
|
2705
|
-
addLinks(
|
|
2706
|
-
let
|
|
2705
|
+
addLinks(t, n) {
|
|
2706
|
+
let r = this.getActor(t);
|
|
2707
2707
|
try {
|
|
2708
|
-
let e =
|
|
2708
|
+
let e = b(n.text, v());
|
|
2709
2709
|
e = e.replace(/=/g, "="), e = e.replace(/&/g, "&");
|
|
2710
|
-
let
|
|
2711
|
-
this.insertLinks(
|
|
2712
|
-
} catch (
|
|
2713
|
-
|
|
2710
|
+
let t = JSON.parse(e);
|
|
2711
|
+
this.insertLinks(r, t);
|
|
2712
|
+
} catch (t) {
|
|
2713
|
+
e.error("error while parsing actor link text", t);
|
|
2714
2714
|
}
|
|
2715
2715
|
}
|
|
2716
|
-
addALink(
|
|
2717
|
-
let
|
|
2716
|
+
addALink(t, n) {
|
|
2717
|
+
let r = this.getActor(t);
|
|
2718
2718
|
try {
|
|
2719
|
-
let e = {},
|
|
2720
|
-
|
|
2721
|
-
let
|
|
2722
|
-
e[
|
|
2723
|
-
} catch (
|
|
2724
|
-
|
|
2719
|
+
let e = {}, t = b(n.text, v()), i = t.indexOf("@");
|
|
2720
|
+
t = t.replace(/=/g, "="), t = t.replace(/&/g, "&");
|
|
2721
|
+
let a = t.slice(0, i - 1).trim();
|
|
2722
|
+
e[a] = t.slice(i + 1).trim(), this.insertLinks(r, e);
|
|
2723
|
+
} catch (t) {
|
|
2724
|
+
e.error("error while parsing actor link text", t);
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
2727
|
insertLinks(e, t) {
|
|
2728
2728
|
if (e.links == null) e.links = t;
|
|
2729
2729
|
else for (let n in t) e.links[n] = t[n];
|
|
2730
2730
|
}
|
|
2731
|
-
addProperties(
|
|
2732
|
-
let
|
|
2731
|
+
addProperties(t, n) {
|
|
2732
|
+
let r = this.getActor(t);
|
|
2733
2733
|
try {
|
|
2734
|
-
let e =
|
|
2735
|
-
this.insertProperties(
|
|
2736
|
-
} catch (
|
|
2737
|
-
|
|
2734
|
+
let e = b(n.text, v()), t = JSON.parse(e);
|
|
2735
|
+
this.insertProperties(r, t);
|
|
2736
|
+
} catch (t) {
|
|
2737
|
+
e.error("error while parsing actor properties text", t);
|
|
2738
2738
|
}
|
|
2739
2739
|
}
|
|
2740
2740
|
insertProperties(e, t) {
|
|
@@ -2744,13 +2744,13 @@ var F = P, I = {
|
|
|
2744
2744
|
boxEnd() {
|
|
2745
2745
|
this.state.records.currentBox = void 0;
|
|
2746
2746
|
}
|
|
2747
|
-
addDetails(
|
|
2748
|
-
let
|
|
2747
|
+
addDetails(t, n) {
|
|
2748
|
+
let r = this.getActor(t), i = document.getElementById(n.text);
|
|
2749
2749
|
try {
|
|
2750
|
-
let e =
|
|
2751
|
-
t.properties && this.insertProperties(
|
|
2752
|
-
} catch (
|
|
2753
|
-
|
|
2750
|
+
let e = i.innerHTML, t = JSON.parse(e);
|
|
2751
|
+
t.properties && this.insertProperties(r, t.properties), t.links && this.insertLinks(r, t.links);
|
|
2752
|
+
} catch (t) {
|
|
2753
|
+
e.error("error while parsing actor details text", t);
|
|
2754
2754
|
}
|
|
2755
2755
|
}
|
|
2756
2756
|
getActorProperty(e, t) {
|
|
@@ -2856,7 +2856,7 @@ var F = P, I = {
|
|
|
2856
2856
|
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
2857
2857
|
break;
|
|
2858
2858
|
case "setAccTitle":
|
|
2859
|
-
|
|
2859
|
+
l(e.text);
|
|
2860
2860
|
break;
|
|
2861
2861
|
case "parStart":
|
|
2862
2862
|
this.addSignal(void 0, void 0, e.parText, e.signalType);
|
|
@@ -2885,10 +2885,10 @@ var F = P, I = {
|
|
|
2885
2885
|
}
|
|
2886
2886
|
}
|
|
2887
2887
|
getConfig() {
|
|
2888
|
-
return
|
|
2888
|
+
return v().sequence;
|
|
2889
2889
|
}
|
|
2890
|
-
}, ne = /* @__PURE__ */
|
|
2891
|
-
let t = e.dropShadow ?? "none", { look: n } =
|
|
2890
|
+
}, ne = /* @__PURE__ */ t((e) => {
|
|
2891
|
+
let t = e.dropShadow ?? "none", { look: n } = v();
|
|
2892
2892
|
return `.actor {
|
|
2893
2893
|
stroke: ${e.actorBorder};
|
|
2894
2894
|
fill: ${e.actorBkg};
|
|
@@ -2970,6 +2970,11 @@ var F = P, I = {
|
|
|
2970
2970
|
stroke: none;
|
|
2971
2971
|
}
|
|
2972
2972
|
|
|
2973
|
+
.sectionTitle, .sectionTitle > tspan {
|
|
2974
|
+
fill: ${e.loopTextColor};
|
|
2975
|
+
stroke: none;
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2973
2978
|
.loopLine {
|
|
2974
2979
|
stroke-width: 2px;
|
|
2975
2980
|
stroke-dasharray: 2, 2;
|
|
@@ -3024,10 +3029,10 @@ var F = P, I = {
|
|
|
3024
3029
|
stroke: ${e.nodeBorder};
|
|
3025
3030
|
}
|
|
3026
3031
|
`;
|
|
3027
|
-
}, "getStyles"), z = 36, B = "actor-top", V = "actor-bottom", re = "actor-box", H = "actor-man", U = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), W = /* @__PURE__ */
|
|
3032
|
+
}, "getStyles"), z = 36, B = "actor-top", V = "actor-bottom", re = "actor-box", H = "actor-man", U = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), W = /* @__PURE__ */ t(function(e, t) {
|
|
3028
3033
|
let n = E(e, t);
|
|
3029
|
-
return
|
|
3030
|
-
}, "drawRect"), ie = /* @__PURE__ */
|
|
3034
|
+
return d().look === "neo" && n.attr("data-look", "neo"), n;
|
|
3035
|
+
}, "drawRect"), ie = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
3031
3036
|
if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
|
|
3032
3037
|
height: 0,
|
|
3033
3038
|
width: 0
|
|
@@ -3051,10 +3056,10 @@ var F = P, I = {
|
|
|
3051
3056
|
height: s.height + p,
|
|
3052
3057
|
width: d
|
|
3053
3058
|
};
|
|
3054
|
-
}, "drawPopup"), ae = /* @__PURE__ */
|
|
3059
|
+
}, "drawPopup"), ae = /* @__PURE__ */ t(function(e) {
|
|
3055
3060
|
return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
3056
|
-
}, "popupMenuToggle"), oe = /* @__PURE__ */
|
|
3057
|
-
let r = e.append("foreignObject"), a = await i(t.text,
|
|
3061
|
+
}, "popupMenuToggle"), oe = /* @__PURE__ */ t(async function(e, t, n = null) {
|
|
3062
|
+
let r = e.append("foreignObject"), a = await i(t.text, d()), o = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(a).node().getBoundingClientRect();
|
|
3058
3063
|
if (r.attr("height", Math.round(o.height)).attr("width", Math.round(o.width)), t.class === "noteText") {
|
|
3059
3064
|
let n = e.node().firstChild;
|
|
3060
3065
|
n.setAttribute("height", o.height + 2 * t.textMargin);
|
|
@@ -3069,110 +3074,110 @@ var F = P, I = {
|
|
|
3069
3074
|
r.attr("x", Math.round(e + Math.abs(e - i) / 2 - o.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(a)) : r.attr("y", Math.round(a - o.height));
|
|
3070
3075
|
}
|
|
3071
3076
|
return [r];
|
|
3072
|
-
}, "drawKatex"), G = /* @__PURE__ */
|
|
3073
|
-
let
|
|
3074
|
-
if (
|
|
3077
|
+
}, "drawKatex"), G = /* @__PURE__ */ t(function(e, n) {
|
|
3078
|
+
let r = 0, i = 0, a = n.text.split(h.lineBreakRegex), [o, s] = C(n.fontSize), c = [], l = 0, u = /* @__PURE__ */ t(() => n.y, "yfunc");
|
|
3079
|
+
if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
|
|
3075
3080
|
case "top":
|
|
3076
3081
|
case "start":
|
|
3077
|
-
|
|
3082
|
+
u = /* @__PURE__ */ t(() => Math.round(n.y + n.textMargin), "yfunc");
|
|
3078
3083
|
break;
|
|
3079
3084
|
case "middle":
|
|
3080
3085
|
case "center":
|
|
3081
|
-
|
|
3086
|
+
u = /* @__PURE__ */ t(() => Math.round(n.y + (r + i + n.textMargin) / 2), "yfunc");
|
|
3082
3087
|
break;
|
|
3083
3088
|
case "bottom":
|
|
3084
3089
|
case "end":
|
|
3085
|
-
|
|
3090
|
+
u = /* @__PURE__ */ t(() => Math.round(n.y + (r + i + 2 * n.textMargin) - n.textMargin), "yfunc");
|
|
3086
3091
|
break;
|
|
3087
3092
|
}
|
|
3088
|
-
if (
|
|
3093
|
+
if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
|
|
3089
3094
|
case "left":
|
|
3090
3095
|
case "start":
|
|
3091
|
-
|
|
3096
|
+
n.x = Math.round(n.x + n.textMargin), n.anchor = "start", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
|
|
3092
3097
|
break;
|
|
3093
3098
|
case "middle":
|
|
3094
3099
|
case "center":
|
|
3095
|
-
|
|
3100
|
+
n.x = Math.round(n.x + n.width / 2), n.anchor = "middle", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
|
|
3096
3101
|
break;
|
|
3097
3102
|
case "right":
|
|
3098
3103
|
case "end":
|
|
3099
|
-
|
|
3104
|
+
n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
|
|
3100
3105
|
break;
|
|
3101
3106
|
}
|
|
3102
|
-
for (let [
|
|
3103
|
-
|
|
3104
|
-
let
|
|
3105
|
-
|
|
3107
|
+
for (let [t, d] of a.entries()) {
|
|
3108
|
+
n.textMargin !== void 0 && n.textMargin === 0 && o !== void 0 && (l = t * o);
|
|
3109
|
+
let a = e.append("text");
|
|
3110
|
+
a.attr("x", n.x), a.attr("y", u()), n.anchor !== void 0 && a.attr("text-anchor", n.anchor).attr("dominant-baseline", n.dominantBaseline).attr("alignment-baseline", n.alignmentBaseline), n.fontFamily !== void 0 && a.style("font-family", n.fontFamily), s !== void 0 && a.style("font-size", s), n.fontWeight !== void 0 && a.style("font-weight", n.fontWeight), n.fill !== void 0 && a.attr("fill", n.fill), n.class !== void 0 && a.attr("class", n.class), n.dy === void 0 ? l !== 0 && a.attr("dy", l) : a.attr("dy", n.dy);
|
|
3106
3111
|
let f = d || "";
|
|
3107
|
-
if (
|
|
3108
|
-
let e =
|
|
3109
|
-
e.attr("x",
|
|
3110
|
-
} else
|
|
3111
|
-
|
|
3112
|
+
if (n.tspan) {
|
|
3113
|
+
let e = a.append("tspan");
|
|
3114
|
+
e.attr("x", n.x), n.fill !== void 0 && e.attr("fill", n.fill), e.text(f);
|
|
3115
|
+
} else a.text(f);
|
|
3116
|
+
n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (i += (a._groups || a)[0][0].getBBox().height, r = i), c.push(a);
|
|
3112
3117
|
}
|
|
3113
|
-
return
|
|
3114
|
-
}, "drawText"), se = /* @__PURE__ */
|
|
3115
|
-
function
|
|
3118
|
+
return c;
|
|
3119
|
+
}, "drawText"), se = /* @__PURE__ */ t(function(e, n) {
|
|
3120
|
+
function r(e, t, n, r, i) {
|
|
3116
3121
|
return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
|
|
3117
3122
|
}
|
|
3118
|
-
|
|
3119
|
-
let
|
|
3120
|
-
return
|
|
3121
|
-
}, "drawLabel"), K = -1, ce = /* @__PURE__ */
|
|
3123
|
+
t(r, "genPoints");
|
|
3124
|
+
let i = e.append("polygon");
|
|
3125
|
+
return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2, G(e, n), i;
|
|
3126
|
+
}, "drawLabel"), K = -1, ce = /* @__PURE__ */ t((e, t, n, r) => {
|
|
3122
3127
|
e.select && n.forEach((n) => {
|
|
3123
3128
|
let i = t.get(n), a = e.select("#actor" + i.actorCnt);
|
|
3124
3129
|
!r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
|
|
3125
3130
|
});
|
|
3126
|
-
}, "fixLifeLineHeights"), le = /* @__PURE__ */
|
|
3127
|
-
let
|
|
3131
|
+
}, "fixLifeLineHeights"), le = /* @__PURE__ */ t(function(e, t, n, i, a) {
|
|
3132
|
+
let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower();
|
|
3128
3133
|
var h = m;
|
|
3129
|
-
|
|
3134
|
+
i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), l === "neo" && h.attr("data-look", "neo"));
|
|
3130
3135
|
let g = j();
|
|
3131
3136
|
var _ = "actor";
|
|
3132
|
-
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea",
|
|
3133
|
-
let v = W(h, g), y =
|
|
3134
|
-
if (U.has(
|
|
3137
|
+
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", i ? _ += ` ${V}` : _ += ` ${B}`, g.x = t.x, g.y = o, g.width = t.width, g.height = t.height, g.class = _, g.rx = 3, g.ry = 3, g.name = t.name, l === "neo" && (g.rx = 6, g.ry = 6);
|
|
3138
|
+
let v = W(h, g), y = a.get(t.name) ?? 0;
|
|
3139
|
+
if (U.has(u) && (v.style("stroke", p[y % p.length]), v.style("fill", f[y % p.length])), l === "neo" && v.attr("filter", "url(#drop-shadow)"), t.rectData = g, t.properties?.icon) {
|
|
3135
3140
|
let e = t.properties.icon.trim();
|
|
3136
3141
|
e.charAt(0) === "@" ? A(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : O(h, g.x + g.width - 20, g.y + 10, e);
|
|
3137
3142
|
}
|
|
3138
|
-
|
|
3143
|
+
i || (h.attr("data-et", "participant"), h.attr("data-type", "participant"), h.attr("data-id", t.name)), Y(n, r(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
|
|
3139
3144
|
let b = t.height;
|
|
3140
3145
|
if (v.node) {
|
|
3141
3146
|
let e = v.node().getBBox();
|
|
3142
3147
|
t.height = e.height, b = e.height;
|
|
3143
3148
|
}
|
|
3144
3149
|
return b;
|
|
3145
|
-
}, "drawActorTypeParticipant"), ue = /* @__PURE__ */
|
|
3146
|
-
let
|
|
3150
|
+
}, "drawActorTypeParticipant"), ue = /* @__PURE__ */ t(function(e, t, n, i, a) {
|
|
3151
|
+
let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower();
|
|
3147
3152
|
var h = m;
|
|
3148
|
-
|
|
3153
|
+
i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), l === "neo" && h.attr("data-look", "neo"));
|
|
3149
3154
|
let g = j();
|
|
3150
3155
|
var _ = "actor";
|
|
3151
|
-
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea",
|
|
3156
|
+
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", i ? _ += ` ${V}` : _ += ` ${B}`, g.x = t.x, g.y = o, g.width = t.width, g.height = t.height, g.class = _, g.name = t.name;
|
|
3152
3157
|
let v = {
|
|
3153
3158
|
...g,
|
|
3154
3159
|
x: g.x + -6,
|
|
3155
3160
|
y: g.y + 6,
|
|
3156
3161
|
class: "actor"
|
|
3157
3162
|
}, y = W(h, g), b = W(h, v);
|
|
3158
|
-
t.rectData = g,
|
|
3159
|
-
let x =
|
|
3160
|
-
if (U.has(
|
|
3163
|
+
t.rectData = g, l === "neo" && h.attr("filter", "url(#drop-shadow)");
|
|
3164
|
+
let x = a.get(t.name) ?? 0;
|
|
3165
|
+
if (U.has(u) && (y.style("stroke", p[x % p.length]), y.style("fill", f[x % p.length]), b.style("stroke", p[x % p.length]), b.style("fill", f[x % p.length])), t.properties?.icon) {
|
|
3161
3166
|
let e = t.properties.icon.trim();
|
|
3162
3167
|
e.charAt(0) === "@" ? A(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : O(h, g.x + g.width - 20, g.y + 10, e);
|
|
3163
3168
|
}
|
|
3164
|
-
Y(n,
|
|
3169
|
+
Y(n, r(t.description))(t.description, h, g.x - 6, g.y + 6, g.width, g.height, { class: `actor ${re}` }, n);
|
|
3165
3170
|
let S = t.height;
|
|
3166
3171
|
if (y.node) {
|
|
3167
3172
|
let e = y.node().getBBox();
|
|
3168
3173
|
t.height = e.height, S = e.height;
|
|
3169
3174
|
}
|
|
3170
|
-
return
|
|
3171
|
-
}, "drawActorTypeCollections"), de = /* @__PURE__ */
|
|
3172
|
-
let
|
|
3173
|
-
|
|
3175
|
+
return i || (h.attr("data-et", "participant"), h.attr("data-type", "collections"), h.attr("data-id", t.name)), S;
|
|
3176
|
+
}, "drawActorTypeCollections"), de = /* @__PURE__ */ t(function(e, t, n, i, a) {
|
|
3177
|
+
let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower(), h = m;
|
|
3178
|
+
i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), l === "neo" && h.attr("data-look", "neo"));
|
|
3174
3179
|
let g = j(), _ = "actor";
|
|
3175
|
-
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea",
|
|
3180
|
+
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", i ? _ += ` ${V}` : _ += ` ${B}`, h.attr("class", _), g.x = t.x, g.y = o, g.width = t.width, g.height = t.height, g.name = t.name;
|
|
3176
3181
|
let v = g.height / 2, y = v / (2.5 + g.height / 50), b = h.append("g"), x = h.append("g"), S = `M ${g.x},${g.y + v}
|
|
3177
3182
|
a ${y},${v} 0 0 0 0,${g.height}
|
|
3178
3183
|
h ${g.width - 2 * y}
|
|
@@ -3180,44 +3185,44 @@ var F = P, I = {
|
|
|
3180
3185
|
Z
|
|
3181
3186
|
`;
|
|
3182
3187
|
b.append("path").attr("d", S), x.append("path").attr("d", `M ${g.x},${g.y + v}
|
|
3183
|
-
a ${y},${v} 0 0 0 0,${g.height}`), b.attr("transform", `translate(${y}, ${-(g.height / 2)})`), x.attr("transform", `translate(${g.width - y}, ${-g.height / 2})`), t.rectData = g,
|
|
3184
|
-
let C =
|
|
3185
|
-
if (U.has(
|
|
3188
|
+
a ${y},${v} 0 0 0 0,${g.height}`), b.attr("transform", `translate(${y}, ${-(g.height / 2)})`), x.attr("transform", `translate(${g.width - y}, ${-g.height / 2})`), t.rectData = g, l === "neo" && b.attr("filter", "url(#drop-shadow)");
|
|
3189
|
+
let C = a.get(t.name) ?? 0;
|
|
3190
|
+
if (U.has(u) && (b.style("stroke", p[C % p.length]), b.style("fill", f[C % p.length]), x.style("stroke", p[C % p.length]), x.style("fill", f[C % p.length])), t.properties?.icon) {
|
|
3186
3191
|
let e = t.properties.icon.trim(), n = g.x + g.width - 20, r = g.y + 10;
|
|
3187
3192
|
e.charAt(0) === "@" ? A(h, n, r, e.substr(1)) : O(h, n, r, e);
|
|
3188
3193
|
}
|
|
3189
|
-
Y(n,
|
|
3194
|
+
Y(n, r(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
|
|
3190
3195
|
let w = t.height, T = b.select("path:last-child");
|
|
3191
3196
|
if (T.node()) {
|
|
3192
3197
|
let e = T.node().getBBox();
|
|
3193
3198
|
t.height = e.height, w = e.height;
|
|
3194
3199
|
}
|
|
3195
|
-
return
|
|
3196
|
-
}, "drawActorTypeQueue"), fe = /* @__PURE__ */
|
|
3197
|
-
let
|
|
3198
|
-
|
|
3200
|
+
return i || (h.attr("data-et", "participant"), h.attr("data-type", "queue"), h.attr("data-id", t.name)), w;
|
|
3201
|
+
}, "drawActorTypeQueue"), fe = /* @__PURE__ */ t(function(e, t, n, i, a, o) {
|
|
3202
|
+
let s = i ? t.stopy : t.starty, c = t.x + t.width / 2, l = s + 75, { look: u, theme: d, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m, actorBorder: h, actorBkg: g } = f, _ = e.append("g").lower();
|
|
3203
|
+
i || (K++, _.append("line").attr("id", "actor" + K).attr("x1", c).attr("y1", l).attr("x2", c).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
|
|
3199
3204
|
let v = e.append("g"), y = H;
|
|
3200
|
-
|
|
3205
|
+
i ? y += ` ${V}` : y += ` ${B}`, v.attr("class", y), v.attr("name", t.name);
|
|
3201
3206
|
let b = j();
|
|
3202
|
-
b.x = t.x, b.y =
|
|
3203
|
-
let x = t.x + t.width / 2, S =
|
|
3204
|
-
v.append("defs").append("marker").attr("id",
|
|
3205
|
-
let C =
|
|
3206
|
-
return U.has(
|
|
3207
|
-
}, "drawActorTypeControl"), pe = /* @__PURE__ */
|
|
3208
|
-
let
|
|
3209
|
-
|
|
3207
|
+
b.x = t.x, b.y = s, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor";
|
|
3208
|
+
let x = t.x + t.width / 2, S = s + 32;
|
|
3209
|
+
v.append("defs").append("marker").attr("id", a + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), v.append("circle").attr("cx", x).attr("cy", S).attr("r", 22).attr("filter", `${u === "neo" ? "url(#drop-shadow)" : ""}`), v.append("line").attr("marker-end", "url(#" + a + "-filled-head-control)").attr("transform", `translate(${x}, ${S - 22})`);
|
|
3210
|
+
let C = o.get(t.name) ?? 0;
|
|
3211
|
+
return U.has(d) ? (v.style("stroke", m[C % m.length]), v.style("fill", p[C % m.length])) : (v.style("stroke", h), v.style("fill", g)), t.height = v.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), Y(n, r(t.description))(t.description, v, b.x, b.y + 22 + (i ? 5 : 12), b.width, b.height, { class: `actor ${H}` }, n), i || (v.attr("data-et", "participant"), v.attr("data-type", "control"), v.attr("data-id", t.name)), t.height;
|
|
3212
|
+
}, "drawActorTypeControl"), pe = /* @__PURE__ */ t(function(e, t, n, i, a) {
|
|
3213
|
+
let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 75, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower(), h = e.append("g"), g = "actor";
|
|
3214
|
+
i ? g += ` ${V}` : g += ` ${B}`, h.attr("class", g), h.attr("name", t.name);
|
|
3210
3215
|
let _ = j();
|
|
3211
|
-
_.x = t.x, _.y =
|
|
3212
|
-
let v = t.x + t.width / 2, y =
|
|
3213
|
-
h.append("circle").attr("cx", v).attr("cy", y).attr("r", 22).attr("width", t.width).attr("height", t.height), h.append("line").attr("x1", v - 22).attr("x2", v + 22).attr("y1", y + 22).attr("y2", y + 22).attr("stroke-width", 2),
|
|
3214
|
-
let b =
|
|
3215
|
-
return U.has(
|
|
3216
|
-
}, "drawActorTypeEntity"), me = /* @__PURE__ */
|
|
3217
|
-
let
|
|
3218
|
-
|
|
3216
|
+
_.x = t.x, _.y = o, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor";
|
|
3217
|
+
let v = t.x + t.width / 2, y = o + (i ? 10 : 25);
|
|
3218
|
+
h.append("circle").attr("cx", v).attr("cy", y).attr("r", 22).attr("width", t.width).attr("height", t.height), h.append("line").attr("x1", v - 22).attr("x2", v + 22).attr("y1", y + 22).attr("y2", y + 22).attr("stroke-width", 2), l === "neo" && h.attr("filter", "url(#drop-shadow)");
|
|
3219
|
+
let b = a.get(t.name) ?? 0;
|
|
3220
|
+
return U.has(u) && (h.style("stroke", p[b % p.length]), h.style("fill", f[b % p.length])), t.height = h.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), i || (K++, m.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K), Y(n, r(t.description))(t.description, h, _.x, _.y + (i ? 15 : 30), _.width, _.height, { class: `actor ${H}` }, n), i ? h.attr("transform", "translate(0, 22)") : (h.attr("transform", `translate(0, ${22 / 2 - 5})`), h.attr("data-et", "participant"), h.attr("data-type", "entity"), h.attr("data-id", t.name)), t.height;
|
|
3221
|
+
}, "drawActorTypeEntity"), me = /* @__PURE__ */ t(function(e, t, n, i, a) {
|
|
3222
|
+
let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height + 2 * n.boxTextMargin, { theme: l, themeVariables: u, look: d } = n, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = u, h = e.append("g").lower(), g = h;
|
|
3223
|
+
i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = K, t.links != null && g.attr("id", "root-" + K), d === "neo" && g.attr("data-look", "neo"));
|
|
3219
3224
|
let _ = j(), v = "actor";
|
|
3220
|
-
t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea",
|
|
3225
|
+
t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", i ? v += ` ${V}` : v += ` ${B}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, _.x = t.x, _.y = o;
|
|
3221
3226
|
let y = _.width / 3, b = _.width / 3, x = y / 2, S = x / (2.5 + y / 50), C = g.append("g");
|
|
3222
3227
|
C.attr("class", v);
|
|
3223
3228
|
let w = `
|
|
@@ -3228,34 +3233,34 @@ var F = P, I = {
|
|
|
3228
3233
|
a ${x},${S} 0 0 0 ${y},0
|
|
3229
3234
|
l 0,-${b - 2 * S}
|
|
3230
3235
|
`;
|
|
3231
|
-
C.append("path").attr("d", w),
|
|
3232
|
-
let T =
|
|
3233
|
-
U.has(
|
|
3236
|
+
C.append("path").attr("d", w), d === "neo" && C.attr("filter", "url(#drop-shadow)");
|
|
3237
|
+
let T = a.get(t.name) ?? 0;
|
|
3238
|
+
U.has(l) ? (C.style("stroke", p[T % p.length]), C.style("fill", f[T % p.length])) : C.style("stroke", m), C.attr("transform", `translate(${y}, ${S})`), t.rectData = _, Y(n, r(t.description))(t.description, g, _.x, _.y + 35, _.width, _.height, { class: `actor ${re}` }, n);
|
|
3234
3239
|
let E = C.select("path:last-child");
|
|
3235
|
-
return E.node() && (t.height = E.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)),
|
|
3236
|
-
}, "drawActorTypeDatabase"), he = /* @__PURE__ */
|
|
3237
|
-
let
|
|
3238
|
-
|
|
3240
|
+
return E.node() && (t.height = E.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), i || (g.attr("data-et", "participant"), g.attr("data-type", "database"), g.attr("data-id", t.name)), t.height;
|
|
3241
|
+
}, "drawActorTypeDatabase"), he = /* @__PURE__ */ t(function(e, t, n, i, a) {
|
|
3242
|
+
let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, l = e.append("g").lower(), { look: u, theme: d, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m, actorBorder: h } = f;
|
|
3243
|
+
i || (K++, l.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
|
|
3239
3244
|
let g = e.append("g"), _ = H;
|
|
3240
|
-
|
|
3245
|
+
i ? _ += ` ${V}` : _ += ` ${B}`, g.attr("class", _), g.attr("name", t.name);
|
|
3241
3246
|
let v = j();
|
|
3242
|
-
v.x = t.x, v.y =
|
|
3243
|
-
let y =
|
|
3244
|
-
return U.has(
|
|
3245
|
-
}, "drawActorTypeBoundary"), ge = /* @__PURE__ */
|
|
3246
|
-
let
|
|
3247
|
-
|
|
3247
|
+
v.x = t.x, v.y = o, v.fill = "#eaeaea", v.width = t.width, v.height = t.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" + K).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", o + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", o + 12), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", o + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", o + 22), g.append("circle").attr("cx", t.x + t.width / 2).attr("cy", o + 12).attr("r", 22), u === "neo" && g.attr("filter", "url(#drop-shadow)");
|
|
3248
|
+
let y = a.get(t.name) ?? 0;
|
|
3249
|
+
return U.has(d) ? (g.style("stroke", m[y % m.length]), g.style("fill", p[y % m.length])) : g.style("stroke", h), t.height = g.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), Y(n, r(t.description))(t.description, g, v.x, v.y + 15, v.width, v.height, { class: `actor ${H}` }, n), g.attr("transform", "translate(0,21)"), i || (g.attr("data-et", "participant"), g.attr("data-type", "boundary"), g.attr("data-id", t.name)), t.height;
|
|
3250
|
+
}, "drawActorTypeBoundary"), ge = /* @__PURE__ */ t(function(e, t, n, i, a) {
|
|
3251
|
+
let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = d, h = e.append("g").lower();
|
|
3252
|
+
i || (K++, h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
|
|
3248
3253
|
let g = e.append("g"), _ = H;
|
|
3249
|
-
|
|
3250
|
-
let v =
|
|
3251
|
-
g.append("line").attr("id", "actor-man-torso" + K).attr("x1",
|
|
3254
|
+
i ? _ += ` ${V}` : _ += ` ${B}`, g.attr("class", _), g.attr("name", t.name), i || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
|
|
3255
|
+
let v = l === "neo" ? .5 : 1, y = l === "neo" ? o + (1 - v) * 30 : o;
|
|
3256
|
+
g.append("line").attr("id", "actor-man-torso" + K).attr("x1", s).attr("y1", y + 25 * v).attr("x2", s).attr("y2", y + 45 * v), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", s - z / 2 * v).attr("y1", y + 33 * v).attr("x2", s + z / 2 * v).attr("y2", y + 33 * v), g.append("line").attr("x1", s - z / 2 * v).attr("y1", y + 60 * v).attr("x2", s).attr("y2", y + 45 * v), g.append("line").attr("x1", s).attr("y1", y + 45 * v).attr("x2", s + (z / 2 - 2) * v).attr("y2", y + 60 * v);
|
|
3252
3257
|
let b = g.append("circle");
|
|
3253
3258
|
b.attr("cx", t.x + t.width / 2), b.attr("cy", y + 10 * v), b.attr("r", 15 * v), b.attr("width", t.width * v), b.attr("height", t.height * v), t.height = g.node().getBBox().height;
|
|
3254
3259
|
let x = j();
|
|
3255
3260
|
x.x = t.x, x.y = y, x.fill = "#eaeaea", x.width = t.width, x.height = t.height / v, x.class = "actor", x.rx = 3, x.ry = 3;
|
|
3256
|
-
let S =
|
|
3257
|
-
return U.has(
|
|
3258
|
-
}, "drawActorTypeActor"), _e = /* @__PURE__ */
|
|
3261
|
+
let S = a.get(t.name) ?? 0;
|
|
3262
|
+
return U.has(u) ? (g.style("stroke", p[S % p.length]), g.style("fill", f[S % p.length])) : g.style("stroke", m), Y(n, r(t.description))(t.description, g, x.x, y + 35 * v - (l === "neo" ? 10 : 0), x.width, x.height, { class: `actor ${H}` }, n), t.height;
|
|
3263
|
+
}, "drawActorTypeActor"), _e = /* @__PURE__ */ t(async function(e, t, n, r, i, a, o) {
|
|
3259
3264
|
let s = o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]));
|
|
3260
3265
|
switch (t.type) {
|
|
3261
3266
|
case "actor": return await ge(e, t, n, r, s);
|
|
@@ -3267,54 +3272,54 @@ var F = P, I = {
|
|
|
3267
3272
|
case "collections": return await ue(e, t, n, r, s);
|
|
3268
3273
|
case "queue": return await de(e, t, n, r, s);
|
|
3269
3274
|
}
|
|
3270
|
-
}, "drawActor"), ve = /* @__PURE__ */
|
|
3275
|
+
}, "drawActor"), ve = /* @__PURE__ */ t(function(e, t, n) {
|
|
3271
3276
|
let r = e.append("g");
|
|
3272
3277
|
Se(r, t), t.name && Y(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
|
|
3273
|
-
}, "drawBox"), ye = /* @__PURE__ */
|
|
3278
|
+
}, "drawBox"), ye = /* @__PURE__ */ t(function(e) {
|
|
3274
3279
|
return e.append("g");
|
|
3275
|
-
}, "anchorElement"), be = /* @__PURE__ */
|
|
3280
|
+
}, "anchorElement"), be = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
|
|
3276
3281
|
let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f = j(), p = t.anchored, m = t.actor;
|
|
3277
3282
|
f.x = t.startx, f.y = t.starty, f.class = "activation" + i % 3, f.width = t.stopx - t.startx, f.height = n - t.starty;
|
|
3278
3283
|
let h = W(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]))).get(m) ?? 0;
|
|
3279
3284
|
U.has(s) && (h.style("stroke", u[g % u.length]), h.style("fill", l[g % u.length] ?? d));
|
|
3280
|
-
}, "drawActivation"), xe = /* @__PURE__ */
|
|
3281
|
-
let { boxMargin:
|
|
3282
|
-
return
|
|
3285
|
+
}, "drawActivation"), xe = /* @__PURE__ */ t(async function(e, n, i, a, o) {
|
|
3286
|
+
let { boxMargin: s, boxTextMargin: c, labelBoxHeight: l, labelBoxWidth: u, messageFontFamily: d, messageFontSize: f, messageFontWeight: p } = a, m = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + o.id), h = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3287
|
+
return m.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
|
|
3283
3288
|
}, "drawLoopLine");
|
|
3284
|
-
|
|
3285
|
-
|
|
3289
|
+
h(n.startx, n.starty, n.stopx, n.starty), h(n.stopx, n.starty, n.stopx, n.stopy), h(n.startx, n.stopy, n.stopx, n.stopy), h(n.startx, n.starty, n.startx, n.stopy), n.sections !== void 0 && n.sections.forEach(function(e) {
|
|
3290
|
+
h(n.startx, e.y, n.stopx, e.y).style("stroke-dasharray", "3, 3");
|
|
3286
3291
|
});
|
|
3287
|
-
let
|
|
3288
|
-
|
|
3289
|
-
let
|
|
3290
|
-
if (
|
|
3291
|
-
for (let [e,
|
|
3292
|
-
|
|
3293
|
-
let
|
|
3294
|
-
|
|
3292
|
+
let g = D();
|
|
3293
|
+
g.text = i, g.x = n.startx, g.y = n.starty, g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.width = Math.max(u ?? 0, 50), g.height = l + (a.look === "neo" ? 15 : 0) || 20, g.textMargin = c, g.class = "labelText", se(m, g), g = ke(), g.text = n.title, g.x = n.startx + u / 2 + (n.stopx - n.startx) / 2, g.y = n.starty + s + c, g.anchor = "middle", g.valign = "middle", g.textMargin = c, g.class = "loopText", g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.wrap = !0;
|
|
3294
|
+
let _ = r(g.text) ? await oe(m, g, n) : G(m, g);
|
|
3295
|
+
if (n.sectionTitles !== void 0) {
|
|
3296
|
+
for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
|
|
3297
|
+
g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + s + c, g.class = "sectionTitle", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.wrap = n.wrap, r(g.text) ? (n.starty = n.sections[e].y, await oe(m, g, n)) : G(m, g);
|
|
3298
|
+
let i = Math.round(_.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
|
|
3299
|
+
n.sections[e].height += i - (s + c);
|
|
3295
3300
|
}
|
|
3296
3301
|
}
|
|
3297
|
-
return
|
|
3298
|
-
}, "drawLoop"), Se = /* @__PURE__ */
|
|
3302
|
+
return n.height = Math.round(n.stopy - n.starty), m;
|
|
3303
|
+
}, "drawLoop"), Se = /* @__PURE__ */ t(function(e, t) {
|
|
3299
3304
|
k(e, t);
|
|
3300
|
-
}, "drawBackgroundRect"), Ce = /* @__PURE__ */
|
|
3305
|
+
}, "drawBackgroundRect"), Ce = /* @__PURE__ */ t(function(e, t) {
|
|
3301
3306
|
e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
|
|
3302
|
-
}, "insertDatabaseIcon"), q = /* @__PURE__ */
|
|
3307
|
+
}, "insertDatabaseIcon"), q = /* @__PURE__ */ t(function(e, t) {
|
|
3303
3308
|
e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
|
|
3304
|
-
}, "insertComputerIcon"), J = /* @__PURE__ */
|
|
3309
|
+
}, "insertComputerIcon"), J = /* @__PURE__ */ t(function(e, t) {
|
|
3305
3310
|
e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
|
|
3306
|
-
}, "insertClockIcon"), we = /* @__PURE__ */
|
|
3311
|
+
}, "insertClockIcon"), we = /* @__PURE__ */ t(function(e, t) {
|
|
3307
3312
|
e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
|
|
3308
|
-
}, "insertArrowHead"), Te = /* @__PURE__ */
|
|
3313
|
+
}, "insertArrowHead"), Te = /* @__PURE__ */ t(function(e, t) {
|
|
3309
3314
|
e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
3310
|
-
}, "insertArrowFilledHead"), Ee = /* @__PURE__ */
|
|
3315
|
+
}, "insertArrowFilledHead"), Ee = /* @__PURE__ */ t(function(e, t) {
|
|
3311
3316
|
e.append("defs").append("marker").attr("id", t + "-sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
|
|
3312
|
-
}, "insertSequenceNumber"), De = /* @__PURE__ */
|
|
3317
|
+
}, "insertSequenceNumber"), De = /* @__PURE__ */ t(function(e, t) {
|
|
3313
3318
|
e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
|
|
3314
|
-
}, "insertArrowCrossHead"), Oe = /* @__PURE__ */
|
|
3319
|
+
}, "insertArrowCrossHead"), Oe = /* @__PURE__ */ t(function(e, t) {
|
|
3315
3320
|
let { theme: n } = t;
|
|
3316
3321
|
e.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${n === "redux" || n === "redux-color" ? "#000000" : "#FFFFFF"}`);
|
|
3317
|
-
}, "insertDropShadow"), ke = /* @__PURE__ */
|
|
3322
|
+
}, "insertDropShadow"), ke = /* @__PURE__ */ t(function() {
|
|
3318
3323
|
return {
|
|
3319
3324
|
x: 0,
|
|
3320
3325
|
y: 0,
|
|
@@ -3329,7 +3334,7 @@ var F = P, I = {
|
|
|
3329
3334
|
tspan: !0,
|
|
3330
3335
|
valign: void 0
|
|
3331
3336
|
};
|
|
3332
|
-
}, "getTextObj"), Ae = /* @__PURE__ */
|
|
3337
|
+
}, "getTextObj"), Ae = /* @__PURE__ */ t(function() {
|
|
3333
3338
|
return {
|
|
3334
3339
|
x: 0,
|
|
3335
3340
|
y: 0,
|
|
@@ -3342,57 +3347,57 @@ var F = P, I = {
|
|
|
3342
3347
|
ry: 0
|
|
3343
3348
|
};
|
|
3344
3349
|
}, "getNoteRect"), Y = /* @__PURE__ */ (function() {
|
|
3345
|
-
function e(e, t, n, r, i,
|
|
3346
|
-
|
|
3350
|
+
function e(e, t, n, r, i, a, s) {
|
|
3351
|
+
o(t.append("text").attr("x", n + i / 2).attr("y", r + a / 2 + 5).style("text-anchor", "middle").text(e), s);
|
|
3347
3352
|
}
|
|
3348
|
-
|
|
3349
|
-
function
|
|
3350
|
-
let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, [f, p] =
|
|
3353
|
+
t(e, "byText");
|
|
3354
|
+
function n(e, t, n, r, i, a, s, c) {
|
|
3355
|
+
let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, [f, p] = C(l), m = e.split(h.lineBreakRegex);
|
|
3351
3356
|
for (let e = 0; e < m.length; e++) {
|
|
3352
3357
|
let c = e * f - f * (m.length - 1) / 2, l = t.append("text").attr("x", n + i / 2).attr("y", r).style("text-anchor", "middle").style("font-size", p).style("font-weight", d).style("font-family", u);
|
|
3353
|
-
l.append("tspan").attr("x", n + i / 2).attr("dy", c).text(m[e]), l.attr("y", r +
|
|
3358
|
+
l.append("tspan").attr("x", n + i / 2).attr("dy", c).text(m[e]), l.attr("y", r + a / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), o(l, s);
|
|
3354
3359
|
}
|
|
3355
3360
|
}
|
|
3356
|
-
|
|
3357
|
-
function
|
|
3358
|
-
let u =
|
|
3359
|
-
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e),
|
|
3361
|
+
t(n, "byTspan");
|
|
3362
|
+
function r(e, t, r, i, a, s, c, l) {
|
|
3363
|
+
let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", a).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
3364
|
+
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, a, s, c, l), o(d, c);
|
|
3360
3365
|
}
|
|
3361
|
-
|
|
3362
|
-
async function
|
|
3363
|
-
let
|
|
3364
|
-
|
|
3366
|
+
t(r, "byFo");
|
|
3367
|
+
async function a(e, t, r, a, s, c, l, u) {
|
|
3368
|
+
let f = await p(e, d()), m = t.append("switch"), h = m.append("foreignObject").attr("x", r + s / 2 - f.width / 2).attr("y", a + c / 2 - f.height / 2).attr("width", f.width).attr("height", f.height).append("xhtml:div").style("height", "100%").style("width", "100%");
|
|
3369
|
+
h.append("div").style("text-align", "center").style("vertical-align", "middle").html(await i(e, d())), n(e, m, r, a, s, c, l, u), o(h, l);
|
|
3365
3370
|
}
|
|
3366
|
-
|
|
3367
|
-
function
|
|
3371
|
+
t(a, "byKatex");
|
|
3372
|
+
function o(e, t) {
|
|
3368
3373
|
for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
|
|
3369
3374
|
}
|
|
3370
|
-
return
|
|
3371
|
-
return
|
|
3375
|
+
return t(o, "_setTextAttrs"), function(t, i = !1) {
|
|
3376
|
+
return i ? a : t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
|
|
3372
3377
|
};
|
|
3373
3378
|
})(), je = /* @__PURE__ */ (function() {
|
|
3374
|
-
function e(e, t, n,
|
|
3375
|
-
|
|
3379
|
+
function e(e, t, n, r, a, o, s) {
|
|
3380
|
+
i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
|
|
3376
3381
|
}
|
|
3377
|
-
|
|
3378
|
-
function
|
|
3382
|
+
t(e, "byText");
|
|
3383
|
+
function n(e, t, n, r, a, o, s, c) {
|
|
3379
3384
|
let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(h.lineBreakRegex);
|
|
3380
3385
|
for (let e = 0; e < f.length; e++) {
|
|
3381
|
-
let a = e * l - l * (f.length - 1) / 2, c = t.append("text").attr("x", n).attr("y",
|
|
3382
|
-
c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y",
|
|
3386
|
+
let a = e * l - l * (f.length - 1) / 2, c = t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").style("font-size", l).style("font-weight", d).style("font-family", u);
|
|
3387
|
+
c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(c, s);
|
|
3383
3388
|
}
|
|
3384
3389
|
}
|
|
3385
|
-
|
|
3386
|
-
function
|
|
3387
|
-
let u =
|
|
3388
|
-
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e),
|
|
3390
|
+
t(n, "byTspan");
|
|
3391
|
+
function r(e, t, r, a, o, s, c, l) {
|
|
3392
|
+
let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
3393
|
+
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
|
|
3389
3394
|
}
|
|
3390
|
-
|
|
3391
|
-
function
|
|
3395
|
+
t(r, "byFo");
|
|
3396
|
+
function i(e, t) {
|
|
3392
3397
|
for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
|
|
3393
3398
|
}
|
|
3394
|
-
return
|
|
3395
|
-
return
|
|
3399
|
+
return t(i, "_setTextAttrs"), function(t) {
|
|
3400
|
+
return t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
|
|
3396
3401
|
};
|
|
3397
3402
|
})(), X = {
|
|
3398
3403
|
drawRect: W,
|
|
@@ -3417,16 +3422,16 @@ var F = P, I = {
|
|
|
3417
3422
|
fixLifeLineHeights: ce,
|
|
3418
3423
|
sanitizeUrl: N.sanitizeUrl,
|
|
3419
3424
|
insertDropShadow: Oe,
|
|
3420
|
-
insertSolidTopArrowHead: /* @__PURE__ */
|
|
3425
|
+
insertSolidTopArrowHead: /* @__PURE__ */ t(function(e, t) {
|
|
3421
3426
|
e.append("defs").append("marker").attr("id", t + "-solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
|
|
3422
3427
|
}, "insertSolidTopArrowHead"),
|
|
3423
|
-
insertSolidBottomArrowHead: /* @__PURE__ */
|
|
3428
|
+
insertSolidBottomArrowHead: /* @__PURE__ */ t(function(e, t) {
|
|
3424
3429
|
e.append("defs").append("marker").attr("id", t + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", .75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
|
|
3425
3430
|
}, "insertSolidBottomArrowHead"),
|
|
3426
|
-
insertStickTopArrowHead: /* @__PURE__ */
|
|
3431
|
+
insertStickTopArrowHead: /* @__PURE__ */ t(function(e, t) {
|
|
3427
3432
|
e.append("defs").append("marker").attr("id", t + "-stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
|
|
3428
3433
|
}, "insertStickTopArrowHead"),
|
|
3429
|
-
insertStickBottomArrowHead: /* @__PURE__ */
|
|
3434
|
+
insertStickBottomArrowHead: /* @__PURE__ */ t(function(e, t) {
|
|
3430
3435
|
e.append("defs").append("marker").attr("id", t + "-stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
|
|
3431
3436
|
}, "insertStickBottomArrowHead")
|
|
3432
3437
|
}, Z = {}, Q = {
|
|
@@ -3440,37 +3445,37 @@ var F = P, I = {
|
|
|
3440
3445
|
sequenceItems: [],
|
|
3441
3446
|
activations: [],
|
|
3442
3447
|
models: {
|
|
3443
|
-
getHeight: /* @__PURE__ */
|
|
3448
|
+
getHeight: /* @__PURE__ */ t(function() {
|
|
3444
3449
|
return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
|
|
3445
3450
|
}, "getHeight"),
|
|
3446
|
-
clear: /* @__PURE__ */
|
|
3451
|
+
clear: /* @__PURE__ */ t(function() {
|
|
3447
3452
|
this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
|
|
3448
3453
|
}, "clear"),
|
|
3449
|
-
addBox: /* @__PURE__ */
|
|
3454
|
+
addBox: /* @__PURE__ */ t(function(e) {
|
|
3450
3455
|
this.boxes.push(e);
|
|
3451
3456
|
}, "addBox"),
|
|
3452
|
-
addActor: /* @__PURE__ */
|
|
3457
|
+
addActor: /* @__PURE__ */ t(function(e) {
|
|
3453
3458
|
this.actors.push(e);
|
|
3454
3459
|
}, "addActor"),
|
|
3455
|
-
addLoop: /* @__PURE__ */
|
|
3460
|
+
addLoop: /* @__PURE__ */ t(function(e) {
|
|
3456
3461
|
this.loops.push(e);
|
|
3457
3462
|
}, "addLoop"),
|
|
3458
|
-
addMessage: /* @__PURE__ */
|
|
3463
|
+
addMessage: /* @__PURE__ */ t(function(e) {
|
|
3459
3464
|
this.messages.push(e);
|
|
3460
3465
|
}, "addMessage"),
|
|
3461
|
-
addNote: /* @__PURE__ */
|
|
3466
|
+
addNote: /* @__PURE__ */ t(function(e) {
|
|
3462
3467
|
this.notes.push(e);
|
|
3463
3468
|
}, "addNote"),
|
|
3464
|
-
lastActor: /* @__PURE__ */
|
|
3469
|
+
lastActor: /* @__PURE__ */ t(function() {
|
|
3465
3470
|
return this.actors[this.actors.length - 1];
|
|
3466
3471
|
}, "lastActor"),
|
|
3467
|
-
lastLoop: /* @__PURE__ */
|
|
3472
|
+
lastLoop: /* @__PURE__ */ t(function() {
|
|
3468
3473
|
return this.loops[this.loops.length - 1];
|
|
3469
3474
|
}, "lastLoop"),
|
|
3470
|
-
lastMessage: /* @__PURE__ */
|
|
3475
|
+
lastMessage: /* @__PURE__ */ t(function() {
|
|
3471
3476
|
return this.messages[this.messages.length - 1];
|
|
3472
3477
|
}, "lastMessage"),
|
|
3473
|
-
lastNote: /* @__PURE__ */
|
|
3478
|
+
lastNote: /* @__PURE__ */ t(function() {
|
|
3474
3479
|
return this.notes[this.notes.length - 1];
|
|
3475
3480
|
}, "lastNote"),
|
|
3476
3481
|
actors: [],
|
|
@@ -3479,33 +3484,33 @@ var F = P, I = {
|
|
|
3479
3484
|
messages: [],
|
|
3480
3485
|
notes: []
|
|
3481
3486
|
},
|
|
3482
|
-
init: /* @__PURE__ */
|
|
3487
|
+
init: /* @__PURE__ */ t(function() {
|
|
3483
3488
|
this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
|
|
3484
3489
|
startx: void 0,
|
|
3485
3490
|
stopx: void 0,
|
|
3486
3491
|
starty: void 0,
|
|
3487
3492
|
stopy: void 0
|
|
3488
|
-
}, this.verticalPos = 0, He(
|
|
3493
|
+
}, this.verticalPos = 0, He(v());
|
|
3489
3494
|
}, "init"),
|
|
3490
|
-
updateVal: /* @__PURE__ */
|
|
3495
|
+
updateVal: /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3491
3496
|
e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
|
|
3492
3497
|
}, "updateVal"),
|
|
3493
|
-
updateBounds: /* @__PURE__ */
|
|
3494
|
-
let
|
|
3495
|
-
function
|
|
3496
|
-
return /* @__PURE__ */
|
|
3497
|
-
|
|
3498
|
-
let c =
|
|
3499
|
-
|
|
3498
|
+
updateBounds: /* @__PURE__ */ t(function(e, n, r, i) {
|
|
3499
|
+
let a = this, o = 0;
|
|
3500
|
+
function s(s) {
|
|
3501
|
+
return /* @__PURE__ */ t(function(t) {
|
|
3502
|
+
o++;
|
|
3503
|
+
let c = a.sequenceItems.length - o + 1;
|
|
3504
|
+
a.updateVal(t, "starty", n - c * Z.boxMargin, Math.min), a.updateVal(t, "stopy", i + c * Z.boxMargin, Math.max), a.updateVal(Q.data, "startx", e - c * Z.boxMargin, Math.min), a.updateVal(Q.data, "stopx", r + c * Z.boxMargin, Math.max), s !== "activation" && (a.updateVal(t, "startx", e - c * Z.boxMargin, Math.min), a.updateVal(t, "stopx", r + c * Z.boxMargin, Math.max), a.updateVal(Q.data, "starty", n - c * Z.boxMargin, Math.min), a.updateVal(Q.data, "stopy", i + c * Z.boxMargin, Math.max));
|
|
3500
3505
|
}, "updateItemBounds");
|
|
3501
3506
|
}
|
|
3502
|
-
|
|
3507
|
+
t(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
|
|
3503
3508
|
}, "updateBounds"),
|
|
3504
|
-
insert: /* @__PURE__ */
|
|
3509
|
+
insert: /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3505
3510
|
let i = h.getMin(e, n), a = h.getMax(e, n), o = h.getMin(t, r), s = h.getMax(t, r);
|
|
3506
3511
|
this.updateVal(Q.data, "startx", i, Math.min), this.updateVal(Q.data, "starty", o, Math.min), this.updateVal(Q.data, "stopx", a, Math.max), this.updateVal(Q.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
|
|
3507
3512
|
}, "insert"),
|
|
3508
|
-
newActivation: /* @__PURE__ */
|
|
3513
|
+
newActivation: /* @__PURE__ */ t(function(e, t, n) {
|
|
3509
3514
|
let r = n.get(e.from), i = Ue(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * Z.activationWidth / 2;
|
|
3510
3515
|
this.activations.push({
|
|
3511
3516
|
startx: a,
|
|
@@ -3516,13 +3521,13 @@ var F = P, I = {
|
|
|
3516
3521
|
anchored: X.anchorElement(t)
|
|
3517
3522
|
});
|
|
3518
3523
|
}, "newActivation"),
|
|
3519
|
-
endActivation: /* @__PURE__ */
|
|
3524
|
+
endActivation: /* @__PURE__ */ t(function(e) {
|
|
3520
3525
|
let t = this.activations.map(function(e) {
|
|
3521
3526
|
return e.actor;
|
|
3522
3527
|
}).lastIndexOf(e.from);
|
|
3523
3528
|
return this.activations.splice(t, 1)[0];
|
|
3524
3529
|
}, "endActivation"),
|
|
3525
|
-
createLoop: /* @__PURE__ */
|
|
3530
|
+
createLoop: /* @__PURE__ */ t(function(e = {
|
|
3526
3531
|
message: void 0,
|
|
3527
3532
|
wrap: !1,
|
|
3528
3533
|
width: void 0
|
|
@@ -3539,140 +3544,142 @@ var F = P, I = {
|
|
|
3539
3544
|
fill: t
|
|
3540
3545
|
};
|
|
3541
3546
|
}, "createLoop"),
|
|
3542
|
-
newLoop: /* @__PURE__ */
|
|
3547
|
+
newLoop: /* @__PURE__ */ t(function(e = {
|
|
3543
3548
|
message: void 0,
|
|
3544
3549
|
wrap: !1,
|
|
3545
3550
|
width: void 0
|
|
3546
3551
|
}, t) {
|
|
3547
3552
|
this.sequenceItems.push(this.createLoop(e, t));
|
|
3548
3553
|
}, "newLoop"),
|
|
3549
|
-
endLoop: /* @__PURE__ */
|
|
3554
|
+
endLoop: /* @__PURE__ */ t(function() {
|
|
3550
3555
|
return this.sequenceItems.pop();
|
|
3551
3556
|
}, "endLoop"),
|
|
3552
|
-
isLoopOverlap: /* @__PURE__ */
|
|
3557
|
+
isLoopOverlap: /* @__PURE__ */ t(function() {
|
|
3553
3558
|
return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
|
|
3554
3559
|
}, "isLoopOverlap"),
|
|
3555
|
-
addSectionToLoop: /* @__PURE__ */
|
|
3560
|
+
addSectionToLoop: /* @__PURE__ */ t(function(e) {
|
|
3556
3561
|
let t = this.sequenceItems.pop();
|
|
3557
3562
|
t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
|
|
3558
3563
|
y: Q.getVerticalPos(),
|
|
3559
3564
|
height: 0
|
|
3560
3565
|
}), t.sectionTitles.push(e), this.sequenceItems.push(t);
|
|
3561
3566
|
}, "addSectionToLoop"),
|
|
3562
|
-
saveVerticalPos: /* @__PURE__ */
|
|
3567
|
+
saveVerticalPos: /* @__PURE__ */ t(function() {
|
|
3563
3568
|
this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
|
|
3564
3569
|
}, "saveVerticalPos"),
|
|
3565
|
-
resetVerticalPos: /* @__PURE__ */
|
|
3570
|
+
resetVerticalPos: /* @__PURE__ */ t(function() {
|
|
3566
3571
|
this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
|
|
3567
3572
|
}, "resetVerticalPos"),
|
|
3568
|
-
bumpVerticalPos: /* @__PURE__ */
|
|
3573
|
+
bumpVerticalPos: /* @__PURE__ */ t(function(e) {
|
|
3569
3574
|
this.verticalPos += e, this.data.stopy = h.getMax(this.data.stopy, this.verticalPos);
|
|
3570
3575
|
}, "bumpVerticalPos"),
|
|
3571
|
-
getVerticalPos: /* @__PURE__ */
|
|
3576
|
+
getVerticalPos: /* @__PURE__ */ t(function() {
|
|
3572
3577
|
return this.verticalPos;
|
|
3573
3578
|
}, "getVerticalPos"),
|
|
3574
|
-
getBounds: /* @__PURE__ */
|
|
3579
|
+
getBounds: /* @__PURE__ */ t(function() {
|
|
3575
3580
|
return {
|
|
3576
3581
|
bounds: this.data,
|
|
3577
3582
|
models: this.models
|
|
3578
3583
|
};
|
|
3579
3584
|
}, "getBounds")
|
|
3580
|
-
}, Me = /* @__PURE__ */
|
|
3585
|
+
}, Me = /* @__PURE__ */ t(async function(e, t, n) {
|
|
3581
3586
|
Q.bumpVerticalPos(Z.boxMargin), t.height = Z.boxMargin, t.starty = Q.getVerticalPos();
|
|
3582
|
-
let
|
|
3583
|
-
|
|
3584
|
-
let
|
|
3585
|
-
|
|
3586
|
-
let
|
|
3587
|
-
|
|
3588
|
-
let
|
|
3589
|
-
|
|
3590
|
-
}, "drawNote"), Ne = /* @__PURE__ */
|
|
3591
|
-
let
|
|
3592
|
-
let n = e ?
|
|
3587
|
+
let i = j();
|
|
3588
|
+
i.x = t.startx, i.y = t.starty, i.width = t.width || Z.width, i.class = "note";
|
|
3589
|
+
let a = e.append("g");
|
|
3590
|
+
a.attr("data-et", "note"), a.attr("data-id", "i" + n);
|
|
3591
|
+
let o = X.drawRect(a, i), s = D();
|
|
3592
|
+
s.x = t.startx, s.y = t.starty, s.width = i.width, s.dy = "1em", s.text = t.message, s.class = "noteText", s.fontFamily = Z.noteFontFamily, s.fontSize = Z.noteFontSize, s.fontWeight = Z.noteFontWeight, s.anchor = Z.noteAlign, s.textMargin = Z.noteMargin, s.valign = "center";
|
|
3593
|
+
let c = r(s.text) ? await oe(a, s) : G(a, s), l = Math.round(c.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
|
|
3594
|
+
o.attr("height", l + 2 * Z.noteMargin), t.height += l + 2 * Z.noteMargin, Q.bumpVerticalPos(l + 2 * Z.noteMargin), t.stopy = t.starty + l + 2 * Z.noteMargin, t.stopx = t.startx + i.width, Q.insert(t.startx, t.starty, t.stopx, t.stopy), Q.models.addNote(t);
|
|
3595
|
+
}, "drawNote"), Ne = /* @__PURE__ */ t(function(e, n, r, i, a, o, s) {
|
|
3596
|
+
let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = tt(n, i), g = e.append("g"), _ = 16.5, v = /* @__PURE__ */ t((e, t) => {
|
|
3597
|
+
let n = e ? _ : -_;
|
|
3593
3598
|
return t ? -n : n;
|
|
3594
|
-
}, "getCircleOffset"),
|
|
3595
|
-
|
|
3596
|
-
}, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } =
|
|
3597
|
-
if (
|
|
3599
|
+
}, "getCircleOffset"), y = /* @__PURE__ */ t((e) => {
|
|
3600
|
+
g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
|
|
3601
|
+
}, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = i.db.LINETYPE;
|
|
3602
|
+
if (d) switch (n.centralConnection) {
|
|
3598
3603
|
case b:
|
|
3599
|
-
|
|
3604
|
+
h && (p += v(m, !0));
|
|
3600
3605
|
break;
|
|
3601
3606
|
case x:
|
|
3602
|
-
|
|
3607
|
+
h || (f += v(m, !1));
|
|
3603
3608
|
break;
|
|
3604
3609
|
case S:
|
|
3605
|
-
|
|
3610
|
+
h ? p += v(m, !0) : f += v(m, !1);
|
|
3606
3611
|
break;
|
|
3607
3612
|
}
|
|
3608
|
-
switch (
|
|
3613
|
+
switch (n.centralConnection) {
|
|
3609
3614
|
case b:
|
|
3610
|
-
|
|
3615
|
+
y(p);
|
|
3611
3616
|
break;
|
|
3612
3617
|
case x:
|
|
3613
|
-
|
|
3618
|
+
y(f);
|
|
3614
3619
|
break;
|
|
3615
3620
|
case S:
|
|
3616
|
-
|
|
3621
|
+
y(f), y(p);
|
|
3617
3622
|
break;
|
|
3618
3623
|
}
|
|
3619
|
-
}, "drawCentralConnection"), Pe = /* @__PURE__ */
|
|
3624
|
+
}, "drawCentralConnection"), Pe = /* @__PURE__ */ t((e) => ({
|
|
3620
3625
|
fontFamily: e.messageFontFamily,
|
|
3621
3626
|
fontSize: e.messageFontSize,
|
|
3622
3627
|
fontWeight: e.messageFontWeight
|
|
3623
|
-
}), "messageFont"), Fe = /* @__PURE__ */
|
|
3628
|
+
}), "messageFont"), Fe = /* @__PURE__ */ t((e) => ({
|
|
3624
3629
|
fontFamily: e.noteFontFamily,
|
|
3625
3630
|
fontSize: e.noteFontSize,
|
|
3626
3631
|
fontWeight: e.noteFontWeight
|
|
3627
|
-
}), "noteFont"), Ie = /* @__PURE__ */
|
|
3632
|
+
}), "noteFont"), Ie = /* @__PURE__ */ t((e) => ({
|
|
3628
3633
|
fontFamily: e.actorFontFamily,
|
|
3629
3634
|
fontSize: e.actorFontSize,
|
|
3630
3635
|
fontWeight: e.actorFontWeight
|
|
3631
3636
|
}), "actorFont");
|
|
3632
3637
|
async function Le(e, t) {
|
|
3633
3638
|
Q.bumpVerticalPos(10);
|
|
3634
|
-
let { startx: n, stopx:
|
|
3635
|
-
if (!
|
|
3636
|
-
let e =
|
|
3639
|
+
let { startx: n, stopx: i, message: a } = t, o = h.splitBreaks(a).length, s = r(a), c = s ? await p(a, v()) : S.calculateTextDimensions(a, Pe(Z));
|
|
3640
|
+
if (!s) {
|
|
3641
|
+
let e = c.height / o;
|
|
3637
3642
|
t.height += e, Q.bumpVerticalPos(e);
|
|
3638
3643
|
}
|
|
3639
|
-
let
|
|
3640
|
-
if (n ===
|
|
3641
|
-
|
|
3644
|
+
let l, u = c.height - 10, d = c.width;
|
|
3645
|
+
if (n === i) {
|
|
3646
|
+
l = Q.getVerticalPos() + u, Z.rightAngles || (u += Z.boxMargin, l = Q.getVerticalPos() + u), u += 30;
|
|
3642
3647
|
let e = h.getMax(d / 2, Z.width / 2);
|
|
3643
|
-
Q.insert(n - e, Q.getVerticalPos() - 10 +
|
|
3644
|
-
} else
|
|
3645
|
-
return Q.bumpVerticalPos(
|
|
3648
|
+
Q.insert(n - e, Q.getVerticalPos() - 10 + u, i + e, Q.getVerticalPos() + 30 + u);
|
|
3649
|
+
} else u += Z.boxMargin, l = Q.getVerticalPos() + u, Q.insert(n, l - 10, i, l);
|
|
3650
|
+
return Q.bumpVerticalPos(u), t.height += u, t.stopy = t.starty + t.height, Q.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), l;
|
|
3646
3651
|
}
|
|
3647
|
-
|
|
3648
|
-
var Re = /* @__PURE__ */
|
|
3649
|
-
let { startx: s, stopx:
|
|
3650
|
-
_.x = s, _.y =
|
|
3652
|
+
t(Le, "boundMessage");
|
|
3653
|
+
var Re = /* @__PURE__ */ t(async function(e, t, n, i, a, o) {
|
|
3654
|
+
let { startx: s, stopx: l, starty: u, message: d, type: f, sequenceIndex: p, sequenceVisible: m } = t, g = S.calculateTextDimensions(d, Pe(Z)), _ = D();
|
|
3655
|
+
_.x = Math.min(s, l), _.y = u + 10, _.width = Math.abs(l - s), _.class = "messageText", _.dy = "1em", _.text = d, _.fontFamily = Z.messageFontFamily, _.fontSize = Z.messageFontSize, _.fontWeight = Z.messageFontWeight, _.anchor = Z.messageAlign, _.valign = "center", _.textMargin = Z.wrapPadding, _.tspan = !1, r(_.text) ? await oe(e, _, {
|
|
3651
3656
|
startx: s,
|
|
3652
|
-
stopx:
|
|
3653
|
-
starty:
|
|
3657
|
+
stopx: l,
|
|
3658
|
+
starty: n
|
|
3654
3659
|
}) : G(e, _);
|
|
3655
3660
|
let v = g.width, y;
|
|
3656
|
-
if (s ===
|
|
3657
|
-
let
|
|
3658
|
-
y = Z.rightAngles ? e.append("path").attr("d", `M ${u},${
|
|
3659
|
-
} else y = e.append("line"), y.attr("x1", s), y.attr("y1",
|
|
3660
|
-
|
|
3661
|
+
if (s === l) {
|
|
3662
|
+
let r = m || Z.showSequenceNumbers, o = tt(a, i), c = nt(a, i), u = s + (r && (o || c) ? 10 : 0);
|
|
3663
|
+
y = Z.rightAngles ? e.append("path").attr("d", `M ${u},${n} H ${s + h.getMax(Z.width / 2, v / 2)} V ${n + 25} H ${s}`) : e.append("path").attr("d", "M " + u + "," + n + " C " + (u + 60) + "," + (n - 10) + " " + (s + 60) + "," + (n + 30) + " " + s + "," + (n + 20)), $e(a, i) && Ne(e, a, t, i, s, l, n);
|
|
3664
|
+
} else y = e.append("line"), y.attr("x1", s), y.attr("y1", n), y.attr("x2", l), y.attr("y2", n), $e(a, i) && Ne(e, a, t, i, s, l, n);
|
|
3665
|
+
f === i.db.LINETYPE.DOTTED || f === i.db.LINETYPE.DOTTED_CROSS || f === i.db.LINETYPE.DOTTED_POINT || f === i.db.LINETYPE.DOTTED_OPEN || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED || f === i.db.LINETYPE.SOLID_TOP_DOTTED || f === i.db.LINETYPE.SOLID_BOTTOM_DOTTED || f === i.db.LINETYPE.STICK_TOP_DOTTED || f === i.db.LINETYPE.STICK_BOTTOM_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (y.style("stroke-dasharray", "3, 3"), y.attr("class", "messageLine1")) : y.attr("class", "messageLine0"), y.attr("data-et", "message"), y.attr("data-id", "i" + t.id), y.attr("data-from", t.from), y.attr("data-to", t.to);
|
|
3661
3666
|
let b = "";
|
|
3662
|
-
if (Z.arrowMarkerAbsolute && (b =
|
|
3663
|
-
let
|
|
3664
|
-
|
|
3665
|
-
let h = 0, g = s ===
|
|
3666
|
-
h = g ? t.fromBounds + 1 :
|
|
3667
|
+
if (Z.arrowMarkerAbsolute && (b = c(!0)), y.attr("stroke-width", 2), y.attr("stroke", "none"), y.style("fill", "none"), (f === i.db.LINETYPE.SOLID_TOP || f === i.db.LINETYPE.SOLID_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidTopArrowHead)"), (f === i.db.LINETYPE.SOLID_BOTTOM || f === i.db.LINETYPE.SOLID_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (f === i.db.LINETYPE.STICK_TOP || f === i.db.LINETYPE.STICK_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickTopArrowHead)"), (f === i.db.LINETYPE.STICK_BOTTOM || f === i.db.LINETYPE.STICK_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidTopArrowHead)"), (f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickTopArrowHead)"), (f === i.db.LINETYPE.SOLID || f === i.db.LINETYPE.DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)"), (f === i.db.LINETYPE.BIDIRECTIONAL_SOLID || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (y.attr("marker-start", "url(" + b + "#" + o + "-arrowhead)"), y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)")), (f === i.db.LINETYPE.SOLID_POINT || f === i.db.LINETYPE.DOTTED_POINT) && y.attr("marker-end", "url(" + b + "#" + o + "-filled-head)"), (f === i.db.LINETYPE.SOLID_CROSS || f === i.db.LINETYPE.DOTTED_CROSS) && y.attr("marker-end", "url(" + b + "#" + o + "-crosshead)"), m || Z.showSequenceNumbers) {
|
|
3668
|
+
let r = f === i.db.LINETYPE.BIDIRECTIONAL_SOLID || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED, c = f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = $e(a, i), d = s, m = l;
|
|
3669
|
+
r ? (s < l ? d = s + 12 : (d = s - 6 + (u ? -5 : 0), d += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), y.attr("x1", d)) : c ? (l > s ? m = l - 12 : (m = l - 6, d += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), m += u ? 15 : 0, y.attr("x2", m), y.attr("x1", d)) : y.attr("x1", s + 6);
|
|
3670
|
+
let h = 0, g = s === l, _ = s <= l;
|
|
3671
|
+
h = g ? t.fromBounds + 1 : c ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1;
|
|
3672
|
+
let v = "12px", x = p.toString().length;
|
|
3673
|
+
x > 5 ? v = "7px" : x > 3 && (v = "9px"), e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", v).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(p);
|
|
3667
3674
|
}
|
|
3668
|
-
}, "drawMessage"), ze = /* @__PURE__ */
|
|
3675
|
+
}, "drawMessage"), ze = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
|
|
3669
3676
|
let s = 0, c = 0, l, u = 0;
|
|
3670
3677
|
for (let e of r) {
|
|
3671
3678
|
let r = t.get(e), a = r.box;
|
|
3672
3679
|
l && l != a && (o || Q.models.addBox(l), c += Z.boxMargin + l.margin), a && a != l && (o || (a.x = s + c, a.y = i), c += a.margin), r.width = h.getMax(r.width || Z.width, Z.width), r.height = h.getMax(r.height || Z.height, Z.height), r.margin = r.margin || Z.actorMargin, u = h.getMax(u, r.height), n.get(r.name) && (c += r.width / 2), r.x = s + c, r.starty = Q.getVerticalPos(), Q.insert(r.x, i, r.x + r.width, r.height), s += r.width + c, r.box && (r.box.width = s + a.margin - r.box.x), c = r.margin, l = r.box, Q.models.addActor(r);
|
|
3673
3680
|
}
|
|
3674
3681
|
l && !o && Q.models.addBox(l), Q.bumpVerticalPos(u);
|
|
3675
|
-
}, "addActorRenderingData"), Be = /* @__PURE__ */
|
|
3682
|
+
}, "addActorRenderingData"), Be = /* @__PURE__ */ t(async function(e, t, n, r, i, a, o) {
|
|
3676
3683
|
if (r) {
|
|
3677
3684
|
let r = 0;
|
|
3678
3685
|
Q.bumpVerticalPos(Z.boxMargin * 2);
|
|
@@ -3687,7 +3694,7 @@ var Re = /* @__PURE__ */ y(async function(e, t, r, i, a, o) {
|
|
|
3687
3694
|
let n = t.get(r);
|
|
3688
3695
|
await X.drawActor(e, n, Z, !1, i, a, o);
|
|
3689
3696
|
}
|
|
3690
|
-
}, "drawActors"), Ve = /* @__PURE__ */
|
|
3697
|
+
}, "drawActors"), Ve = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3691
3698
|
let i = 0, a = 0;
|
|
3692
3699
|
for (let o of n) {
|
|
3693
3700
|
let n = t.get(o), s = Je(n), c = X.drawPopup(e, n, s, Z, Z.forceMenus, r);
|
|
@@ -3697,13 +3704,13 @@ var Re = /* @__PURE__ */ y(async function(e, t, r, i, a, o) {
|
|
|
3697
3704
|
maxHeight: i,
|
|
3698
3705
|
maxWidth: a
|
|
3699
3706
|
};
|
|
3700
|
-
}, "drawActorsPopup"), He = /* @__PURE__ */
|
|
3707
|
+
}, "drawActorsPopup"), He = /* @__PURE__ */ t(function(e) {
|
|
3701
3708
|
m(Z, e), e.fontFamily && (Z.actorFontFamily = Z.noteFontFamily = Z.messageFontFamily = e.fontFamily), e.fontSize && (Z.actorFontSize = Z.noteFontSize = Z.messageFontSize = e.fontSize), e.fontWeight && (Z.actorFontWeight = Z.noteFontWeight = Z.messageFontWeight = e.fontWeight);
|
|
3702
|
-
}, "setConf"), Ue = /* @__PURE__ */
|
|
3709
|
+
}, "setConf"), Ue = /* @__PURE__ */ t(function(e) {
|
|
3703
3710
|
return Q.activations.filter(function(t) {
|
|
3704
3711
|
return t.actor === e;
|
|
3705
3712
|
});
|
|
3706
|
-
}, "actorActivations"), We = /* @__PURE__ */
|
|
3713
|
+
}, "actorActivations"), We = /* @__PURE__ */ t(function(e, t) {
|
|
3707
3714
|
let n = t.get(e), r = Ue(e);
|
|
3708
3715
|
return [r.reduce(function(e, t) {
|
|
3709
3716
|
return h.getMin(e, t.startx);
|
|
@@ -3711,193 +3718,193 @@ var Re = /* @__PURE__ */ y(async function(e, t, r, i, a, o) {
|
|
|
3711
3718
|
return h.getMax(e, t.stopx);
|
|
3712
3719
|
}, n.x + n.width / 2 + 1)];
|
|
3713
3720
|
}, "activationBounds");
|
|
3714
|
-
function $(
|
|
3715
|
-
Q.bumpVerticalPos(
|
|
3716
|
-
let
|
|
3717
|
-
if (
|
|
3718
|
-
let
|
|
3719
|
-
|
|
3720
|
-
let
|
|
3721
|
-
|
|
3721
|
+
function $(t, n, r, i, a) {
|
|
3722
|
+
Q.bumpVerticalPos(r);
|
|
3723
|
+
let o = i;
|
|
3724
|
+
if (n.id && n.message && t[n.id]) {
|
|
3725
|
+
let r = t[n.id].width, a = Pe(Z);
|
|
3726
|
+
n.message = S.wrapLabel(`[${n.message}]`, r - 2 * Z.wrapPadding, a), n.width = r, n.wrap = !0;
|
|
3727
|
+
let s = S.calculateTextDimensions(n.message, a), c = h.getMax(s.height, Z.labelBoxHeight);
|
|
3728
|
+
o = i + c, e.debug(`${c} - ${n.message}`);
|
|
3722
3729
|
}
|
|
3723
|
-
|
|
3730
|
+
a(n), Q.bumpVerticalPos(o);
|
|
3724
3731
|
}
|
|
3725
|
-
|
|
3726
|
-
function Ge(e,
|
|
3727
|
-
function
|
|
3728
|
-
|
|
3732
|
+
t($, "adjustLoopHeightForWrap");
|
|
3733
|
+
function Ge(e, n, r, i, a, o, s) {
|
|
3734
|
+
function c(t, r) {
|
|
3735
|
+
t.x < a.get(e.from).x ? (Q.insert(n.stopx - r, n.starty, n.startx, n.stopy + t.height / 2 + Z.noteMargin), n.stopx += r) : (Q.insert(n.startx, n.starty, n.stopx + r, n.stopy + t.height / 2 + Z.noteMargin), n.stopx -= r);
|
|
3729
3736
|
}
|
|
3730
|
-
|
|
3731
|
-
function
|
|
3732
|
-
|
|
3737
|
+
t(c, "receiverAdjustment");
|
|
3738
|
+
function l(t, r) {
|
|
3739
|
+
t.x < a.get(e.to).x ? (Q.insert(n.startx - r, n.starty, n.stopx, n.stopy + t.height / 2 + Z.noteMargin), n.startx += r) : (Q.insert(n.stopx, n.starty, n.startx + r, n.stopy + t.height / 2 + Z.noteMargin), n.startx -= r);
|
|
3733
3740
|
}
|
|
3734
|
-
|
|
3735
|
-
let
|
|
3741
|
+
t(l, "senderAdjustment");
|
|
3742
|
+
let u = [
|
|
3736
3743
|
R.ACTOR,
|
|
3737
3744
|
R.CONTROL,
|
|
3738
3745
|
R.ENTITY,
|
|
3739
3746
|
R.DATABASE
|
|
3740
3747
|
];
|
|
3741
|
-
if (
|
|
3742
|
-
let t =
|
|
3743
|
-
|
|
3744
|
-
} else if (
|
|
3745
|
-
let t =
|
|
3746
|
-
Z.mirrorActors &&
|
|
3747
|
-
} else if (
|
|
3748
|
-
let t =
|
|
3749
|
-
Z.mirrorActors &&
|
|
3748
|
+
if (o.get(e.to) == i) {
|
|
3749
|
+
let t = a.get(e.to);
|
|
3750
|
+
c(t, u.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.starty = r - t.height / 2, Q.bumpVerticalPos(t.height / 2);
|
|
3751
|
+
} else if (s.get(e.from) == i) {
|
|
3752
|
+
let t = a.get(e.from);
|
|
3753
|
+
Z.mirrorActors && l(t, u.includes(t.type) ? z / 2 : t.width / 2), t.stopy = r - t.height / 2, Q.bumpVerticalPos(t.height / 2);
|
|
3754
|
+
} else if (s.get(e.to) == i) {
|
|
3755
|
+
let t = a.get(e.to);
|
|
3756
|
+
Z.mirrorActors && c(t, u.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.stopy = r - t.height / 2, Q.bumpVerticalPos(t.height / 2);
|
|
3750
3757
|
}
|
|
3751
3758
|
}
|
|
3752
|
-
|
|
3753
|
-
var Ke = /* @__PURE__ */
|
|
3754
|
-
let { securityLevel:
|
|
3755
|
-
Z =
|
|
3756
|
-
let
|
|
3757
|
-
|
|
3758
|
-
let
|
|
3759
|
-
Q.init(),
|
|
3760
|
-
let
|
|
3761
|
-
if (Z.height = await Ye(
|
|
3759
|
+
t(Ge, "adjustCreatedDestroyedData");
|
|
3760
|
+
var Ke = /* @__PURE__ */ t(async function(r, i, a, o) {
|
|
3761
|
+
let { securityLevel: s, sequence: c, look: l } = v();
|
|
3762
|
+
Z = c;
|
|
3763
|
+
let u;
|
|
3764
|
+
s === "sandbox" && (u = n("#i" + i));
|
|
3765
|
+
let d = n(s === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), p = s === "sandbox" ? u.nodes()[0].contentDocument : document;
|
|
3766
|
+
Q.init(), e.debug(o.db);
|
|
3767
|
+
let m = s === "sandbox" ? d.select(`[id="${i}"]`) : n(`[id="${i}"]`), h = o.db.getActors(), g = o.db.getCreatedActors(), _ = o.db.getDestroyedActors(), y = o.db.getBoxes(), b = o.db.getActorKeys(), x = o.db.getMessages(), S = o.db.getDiagramTitle(), C = o.db.hasAtLeastOneBox(), w = o.db.hasAtLeastOneBoxWithTitle(), T = await qe(h, x, o);
|
|
3768
|
+
if (Z.height = await Ye(h, T, y), X.insertComputerIcon(m, i), X.insertDatabaseIcon(m, i), X.insertClockIcon(m, i), C && (Q.bumpVerticalPos(Z.boxMargin), w && Q.bumpVerticalPos(y[0].textMaxHeight)), Z.hideUnusedParticipants === !0) {
|
|
3762
3769
|
let e = /* @__PURE__ */ new Set();
|
|
3763
3770
|
x.forEach((t) => {
|
|
3764
3771
|
e.add(t.from), e.add(t.to);
|
|
3765
|
-
}),
|
|
3772
|
+
}), b = b.filter((t) => e.has(t));
|
|
3766
3773
|
}
|
|
3767
|
-
let E = new Map(
|
|
3768
|
-
ze(
|
|
3769
|
-
let D = await it(x,
|
|
3770
|
-
X.insertArrowHead(
|
|
3774
|
+
let E = new Map(b.map((e, t) => [h.get(e)?.name ?? e, t]));
|
|
3775
|
+
ze(m, h, g, b, 0, x, !1);
|
|
3776
|
+
let D = await it(x, h, T, o);
|
|
3777
|
+
X.insertArrowHead(m, i), X.insertArrowCrossHead(m, i), X.insertArrowFilledHead(m, i), X.insertSequenceNumber(m, i), X.insertSolidTopArrowHead(m, i), X.insertSolidBottomArrowHead(m, i), X.insertStickTopArrowHead(m, i), X.insertStickBottomArrowHead(m, i), l === "neo" && X.insertDropShadow(m, Z);
|
|
3771
3778
|
function O(e, t) {
|
|
3772
3779
|
let n = Q.endActivation(e);
|
|
3773
|
-
n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(
|
|
3780
|
+
n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(m, n, t, Z, Ue(e.from).length, o, E), Q.insert(n.startx, t - 10, n.stopx, t);
|
|
3774
3781
|
}
|
|
3775
|
-
|
|
3782
|
+
t(O, "activeEnd");
|
|
3776
3783
|
let k = 1, A = 1, j = [], M = [], N = 0;
|
|
3777
|
-
for (let
|
|
3778
|
-
let
|
|
3779
|
-
switch (
|
|
3780
|
-
case
|
|
3781
|
-
Q.resetVerticalPos(),
|
|
3784
|
+
for (let t of x) {
|
|
3785
|
+
let n, r, i;
|
|
3786
|
+
switch (t.type) {
|
|
3787
|
+
case o.db.LINETYPE.NOTE:
|
|
3788
|
+
Q.resetVerticalPos(), r = t.noteModel, await Me(m, r, t.id);
|
|
3782
3789
|
break;
|
|
3783
|
-
case
|
|
3784
|
-
Q.newActivation(
|
|
3790
|
+
case o.db.LINETYPE.ACTIVE_START:
|
|
3791
|
+
Q.newActivation(t, m, h);
|
|
3785
3792
|
break;
|
|
3786
|
-
case
|
|
3787
|
-
Q.newActivation(
|
|
3793
|
+
case o.db.LINETYPE.CENTRAL_CONNECTION:
|
|
3794
|
+
Q.newActivation(t, m, h);
|
|
3788
3795
|
break;
|
|
3789
|
-
case
|
|
3790
|
-
Q.newActivation(
|
|
3796
|
+
case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
|
|
3797
|
+
Q.newActivation(t, m, h);
|
|
3791
3798
|
break;
|
|
3792
|
-
case
|
|
3793
|
-
O(
|
|
3799
|
+
case o.db.LINETYPE.ACTIVE_END:
|
|
3800
|
+
O(t, Q.getVerticalPos());
|
|
3794
3801
|
break;
|
|
3795
|
-
case
|
|
3796
|
-
$(D,
|
|
3802
|
+
case o.db.LINETYPE.LOOP_START:
|
|
3803
|
+
$(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
|
|
3797
3804
|
break;
|
|
3798
|
-
case
|
|
3799
|
-
|
|
3805
|
+
case o.db.LINETYPE.LOOP_END:
|
|
3806
|
+
n = Q.endLoop(), await X.drawLoop(m, n, "loop", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
|
|
3800
3807
|
break;
|
|
3801
|
-
case
|
|
3802
|
-
$(D,
|
|
3808
|
+
case o.db.LINETYPE.RECT_START:
|
|
3809
|
+
$(D, t, Z.boxMargin, Z.boxMargin, (e) => Q.newLoop(void 0, e.message));
|
|
3803
3810
|
break;
|
|
3804
|
-
case
|
|
3805
|
-
|
|
3811
|
+
case o.db.LINETYPE.RECT_END:
|
|
3812
|
+
n = Q.endLoop(), M.push(n), Q.models.addLoop(n), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos());
|
|
3806
3813
|
break;
|
|
3807
|
-
case
|
|
3808
|
-
$(D,
|
|
3814
|
+
case o.db.LINETYPE.OPT_START:
|
|
3815
|
+
$(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
|
|
3809
3816
|
break;
|
|
3810
|
-
case
|
|
3811
|
-
|
|
3817
|
+
case o.db.LINETYPE.OPT_END:
|
|
3818
|
+
n = Q.endLoop(), await X.drawLoop(m, n, "opt", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
|
|
3812
3819
|
break;
|
|
3813
|
-
case
|
|
3814
|
-
$(D,
|
|
3820
|
+
case o.db.LINETYPE.ALT_START:
|
|
3821
|
+
$(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
|
|
3815
3822
|
break;
|
|
3816
|
-
case
|
|
3817
|
-
$(D,
|
|
3823
|
+
case o.db.LINETYPE.ALT_ELSE:
|
|
3824
|
+
$(D, t, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
|
|
3818
3825
|
break;
|
|
3819
|
-
case
|
|
3820
|
-
|
|
3826
|
+
case o.db.LINETYPE.ALT_END:
|
|
3827
|
+
n = Q.endLoop(), await X.drawLoop(m, n, "alt", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
|
|
3821
3828
|
break;
|
|
3822
|
-
case
|
|
3823
|
-
case
|
|
3824
|
-
$(D,
|
|
3829
|
+
case o.db.LINETYPE.PAR_START:
|
|
3830
|
+
case o.db.LINETYPE.PAR_OVER_START:
|
|
3831
|
+
$(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e)), Q.saveVerticalPos();
|
|
3825
3832
|
break;
|
|
3826
|
-
case
|
|
3827
|
-
$(D,
|
|
3833
|
+
case o.db.LINETYPE.PAR_AND:
|
|
3834
|
+
$(D, t, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
|
|
3828
3835
|
break;
|
|
3829
|
-
case
|
|
3830
|
-
|
|
3836
|
+
case o.db.LINETYPE.PAR_END:
|
|
3837
|
+
n = Q.endLoop(), await X.drawLoop(m, n, "par", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
|
|
3831
3838
|
break;
|
|
3832
|
-
case
|
|
3833
|
-
k =
|
|
3839
|
+
case o.db.LINETYPE.AUTONUMBER:
|
|
3840
|
+
k = t.message.start || k, A = t.message.step || A, t.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
|
|
3834
3841
|
break;
|
|
3835
|
-
case
|
|
3836
|
-
$(D,
|
|
3842
|
+
case o.db.LINETYPE.CRITICAL_START:
|
|
3843
|
+
$(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
|
|
3837
3844
|
break;
|
|
3838
|
-
case
|
|
3839
|
-
$(D,
|
|
3845
|
+
case o.db.LINETYPE.CRITICAL_OPTION:
|
|
3846
|
+
$(D, t, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
|
|
3840
3847
|
break;
|
|
3841
|
-
case
|
|
3842
|
-
|
|
3848
|
+
case o.db.LINETYPE.CRITICAL_END:
|
|
3849
|
+
n = Q.endLoop(), await X.drawLoop(m, n, "critical", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
|
|
3843
3850
|
break;
|
|
3844
|
-
case
|
|
3845
|
-
$(D,
|
|
3851
|
+
case o.db.LINETYPE.BREAK_START:
|
|
3852
|
+
$(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
|
|
3846
3853
|
break;
|
|
3847
|
-
case
|
|
3848
|
-
|
|
3854
|
+
case o.db.LINETYPE.BREAK_END:
|
|
3855
|
+
n = Q.endLoop(), await X.drawLoop(m, n, "break", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
|
|
3849
3856
|
break;
|
|
3850
3857
|
default: try {
|
|
3851
|
-
i =
|
|
3852
|
-
let
|
|
3853
|
-
Ge(
|
|
3858
|
+
i = t.msgModel, i.starty = Q.getVerticalPos(), i.sequenceIndex = k, i.sequenceVisible = o.db.showSequenceNumbers(), i.id = t.id, i.from = t.from, i.to = t.to;
|
|
3859
|
+
let e = await Le(m, i);
|
|
3860
|
+
Ge(t, i, e, N, h, g, _), j.push({
|
|
3854
3861
|
messageModel: i,
|
|
3855
|
-
lineStartY:
|
|
3856
|
-
msg:
|
|
3862
|
+
lineStartY: e,
|
|
3863
|
+
msg: t
|
|
3857
3864
|
}), Q.models.addMessage(i);
|
|
3858
|
-
} catch (
|
|
3859
|
-
|
|
3865
|
+
} catch (t) {
|
|
3866
|
+
e.error("error while drawing message", t);
|
|
3860
3867
|
}
|
|
3861
3868
|
}
|
|
3862
3869
|
[
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
].includes(
|
|
3870
|
+
o.db.LINETYPE.SOLID_OPEN,
|
|
3871
|
+
o.db.LINETYPE.DOTTED_OPEN,
|
|
3872
|
+
o.db.LINETYPE.SOLID,
|
|
3873
|
+
o.db.LINETYPE.SOLID_TOP,
|
|
3874
|
+
o.db.LINETYPE.SOLID_BOTTOM,
|
|
3875
|
+
o.db.LINETYPE.STICK_TOP,
|
|
3876
|
+
o.db.LINETYPE.STICK_BOTTOM,
|
|
3877
|
+
o.db.LINETYPE.SOLID_TOP_DOTTED,
|
|
3878
|
+
o.db.LINETYPE.SOLID_BOTTOM_DOTTED,
|
|
3879
|
+
o.db.LINETYPE.STICK_TOP_DOTTED,
|
|
3880
|
+
o.db.LINETYPE.STICK_BOTTOM_DOTTED,
|
|
3881
|
+
o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
3882
|
+
o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
|
|
3883
|
+
o.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
|
|
3884
|
+
o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
|
|
3885
|
+
o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
|
|
3886
|
+
o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
3887
|
+
o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
|
|
3888
|
+
o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
3889
|
+
o.db.LINETYPE.DOTTED,
|
|
3890
|
+
o.db.LINETYPE.SOLID_CROSS,
|
|
3891
|
+
o.db.LINETYPE.DOTTED_CROSS,
|
|
3892
|
+
o.db.LINETYPE.SOLID_POINT,
|
|
3893
|
+
o.db.LINETYPE.DOTTED_POINT,
|
|
3894
|
+
o.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
3895
|
+
o.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
3896
|
+
].includes(t.type) && (k = Math.round((k + A) * 100) / 100), N++;
|
|
3890
3897
|
}
|
|
3891
|
-
|
|
3892
|
-
for (let e of j) await Re(
|
|
3893
|
-
Z.mirrorActors && await Be(
|
|
3898
|
+
e.debug("createdActors", g), e.debug("destroyedActors", _), await Be(m, h, b, !1, i, o, E);
|
|
3899
|
+
for (let e of j) await Re(m, e.messageModel, e.lineStartY, o, e.msg, i);
|
|
3900
|
+
Z.mirrorActors && await Be(m, h, b, !0, i, o, E), M.forEach((e) => X.drawBackgroundRect(m, e)), ce(m, h, b, Z);
|
|
3894
3901
|
for (let e of Q.models.boxes) {
|
|
3895
3902
|
e.height = Q.getVerticalPos() - e.y, Q.insert(e.x, e.y, e.x + e.width, e.height);
|
|
3896
3903
|
let t = Z.boxMargin * 2;
|
|
3897
|
-
e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", X.drawBox(
|
|
3904
|
+
e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", X.drawBox(m, e, Z);
|
|
3898
3905
|
}
|
|
3899
3906
|
C && Q.bumpVerticalPos(Z.boxMargin);
|
|
3900
|
-
let P = Ve(
|
|
3907
|
+
let P = Ve(m, h, b, p), { bounds: F } = Q.getBounds();
|
|
3901
3908
|
F.startx === void 0 && (F.startx = 0), F.starty === void 0 && (F.starty = 0), F.stopx === void 0 && (F.stopx = 0), F.stopy === void 0 && (F.stopy = 0);
|
|
3902
3909
|
let I = F.stopy - F.starty;
|
|
3903
3910
|
I < P.maxHeight && (I = P.maxHeight);
|
|
@@ -3906,36 +3913,36 @@ var Ke = /* @__PURE__ */ y(async function(e, t, n, r) {
|
|
|
3906
3913
|
let ee = F.stopx - F.startx;
|
|
3907
3914
|
ee < P.maxWidth && (ee = P.maxWidth);
|
|
3908
3915
|
let R = ee + 2 * Z.diagramMarginX;
|
|
3909
|
-
S &&
|
|
3910
|
-
let te = S ? 40 : 0, ne =
|
|
3911
|
-
|
|
3916
|
+
S && m.append("text").text(S).attr("x", (F.stopx - F.startx) / 2 - 2 * Z.diagramMarginX).attr("y", -25), f(m, L, R, Z.useMaxWidth);
|
|
3917
|
+
let te = S ? 40 : 0, ne = h.size && l === "neo" ? 30 : 0;
|
|
3918
|
+
m.attr("viewBox", F.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + te) + " " + R + " " + (L + te + ne)), e.debug("models:", Q.models);
|
|
3912
3919
|
}, "draw");
|
|
3913
|
-
async function qe(
|
|
3914
|
-
let
|
|
3915
|
-
for (let
|
|
3916
|
-
let
|
|
3917
|
-
if (
|
|
3918
|
-
let
|
|
3919
|
-
|
|
3920
|
+
async function qe(t, n, i) {
|
|
3921
|
+
let a = {};
|
|
3922
|
+
for (let e of n) if (t.get(e.to) && t.get(e.from)) {
|
|
3923
|
+
let n = t.get(e.to);
|
|
3924
|
+
if (e.placement === i.db.PLACEMENT.LEFTOF && !n.prevActor || e.placement === i.db.PLACEMENT.RIGHTOF && !n.nextActor) continue;
|
|
3925
|
+
let o = e.placement !== void 0, s = !o, c = o ? Fe(Z) : Pe(Z), l = e.wrap ? S.wrapLabel(e.message, Z.width - 2 * Z.wrapPadding, c) : e.message, u = (r(l) ? await p(e.message, v()) : S.calculateTextDimensions(l, c)).width + 2 * Z.wrapPadding;
|
|
3926
|
+
s && e.from === n.nextActor ? a[e.to] = h.getMax(a[e.to] || 0, u) : s && e.from === n.prevActor ? a[e.from] = h.getMax(a[e.from] || 0, u) : s && e.from === e.to ? (a[e.from] = h.getMax(a[e.from] || 0, u / 2), a[e.to] = h.getMax(a[e.to] || 0, u / 2)) : e.placement === i.db.PLACEMENT.RIGHTOF ? a[e.from] = h.getMax(a[e.from] || 0, u) : e.placement === i.db.PLACEMENT.LEFTOF ? a[n.prevActor] = h.getMax(a[n.prevActor] || 0, u) : e.placement === i.db.PLACEMENT.OVER && (n.prevActor && (a[n.prevActor] = h.getMax(a[n.prevActor] || 0, u / 2)), n.nextActor && (a[e.from] = h.getMax(a[e.from] || 0, u / 2)));
|
|
3920
3927
|
}
|
|
3921
|
-
return
|
|
3928
|
+
return e.debug("maxMessageWidthPerActor:", a), a;
|
|
3922
3929
|
}
|
|
3923
|
-
|
|
3924
|
-
var Je = /* @__PURE__ */
|
|
3930
|
+
t(qe, "getMaxMessageWidthPerActor");
|
|
3931
|
+
var Je = /* @__PURE__ */ t(function(e) {
|
|
3925
3932
|
let t = 0, n = Ie(Z);
|
|
3926
3933
|
for (let r in e.links) {
|
|
3927
|
-
let e =
|
|
3934
|
+
let e = S.calculateTextDimensions(r, n).width + 2 * Z.wrapPadding + 2 * Z.boxMargin;
|
|
3928
3935
|
t < e && (t = e);
|
|
3929
3936
|
}
|
|
3930
3937
|
return t;
|
|
3931
3938
|
}, "getRequiredPopupWidth");
|
|
3932
3939
|
async function Ye(e, t, n) {
|
|
3933
|
-
let
|
|
3940
|
+
let i = 0;
|
|
3934
3941
|
for (let t of e.keys()) {
|
|
3935
3942
|
let n = e.get(t);
|
|
3936
|
-
n.wrap && (n.description =
|
|
3937
|
-
let
|
|
3938
|
-
n.width = n.wrap ? Z.width : h.getMax(Z.width,
|
|
3943
|
+
n.wrap && (n.description = S.wrapLabel(n.description, Z.width - 2 * Z.wrapPadding, Ie(Z)));
|
|
3944
|
+
let a = r(n.description) ? await p(n.description, v()) : S.calculateTextDimensions(n.description, Ie(Z));
|
|
3945
|
+
n.width = n.wrap ? Z.width : h.getMax(Z.width, a.width + 2 * Z.wrapPadding), n.height = n.wrap ? h.getMax(a.height, Z.height) : Z.height, i = h.getMax(i, n.height);
|
|
3939
3946
|
}
|
|
3940
3947
|
for (let n in t) {
|
|
3941
3948
|
let r = e.get(n);
|
|
@@ -3949,42 +3956,42 @@ async function Ye(e, t, n) {
|
|
|
3949
3956
|
let a = t[n] + Z.actorMargin - r.width / 2 - i.width / 2;
|
|
3950
3957
|
r.margin = h.getMax(a, Z.actorMargin);
|
|
3951
3958
|
}
|
|
3952
|
-
let
|
|
3959
|
+
let a = 0;
|
|
3953
3960
|
return n.forEach((t) => {
|
|
3954
|
-
let n = Pe(Z), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0),
|
|
3955
|
-
r +=
|
|
3956
|
-
let o =
|
|
3957
|
-
|
|
3961
|
+
let n = Pe(Z), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), i = Z.boxMargin * 8;
|
|
3962
|
+
r += i, r -= 2 * Z.boxTextMargin, t.wrap && (t.name = S.wrapLabel(t.name, r - 2 * Z.wrapPadding, n));
|
|
3963
|
+
let o = S.calculateTextDimensions(t.name, n);
|
|
3964
|
+
a = h.getMax(o.height, a);
|
|
3958
3965
|
let s = h.getMax(r, o.width + 2 * Z.wrapPadding);
|
|
3959
3966
|
if (t.margin = Z.boxTextMargin, r < s) {
|
|
3960
3967
|
let e = (s - r) / 2;
|
|
3961
3968
|
t.margin += e;
|
|
3962
3969
|
}
|
|
3963
|
-
}), n.forEach((e) => e.textMaxHeight =
|
|
3970
|
+
}), n.forEach((e) => e.textMaxHeight = a), h.getMax(i, Z.height);
|
|
3964
3971
|
}
|
|
3965
|
-
|
|
3966
|
-
var Xe = /* @__PURE__ */
|
|
3967
|
-
let
|
|
3968
|
-
width:
|
|
3972
|
+
t(Ye, "calculateActorMargins");
|
|
3973
|
+
var Xe = /* @__PURE__ */ t(async function(t, n, i) {
|
|
3974
|
+
let a = n.get(t.from), o = n.get(t.to), s = a.x, c = o.x, l = t.wrap && t.message, u = r(t.message) ? await p(t.message, v()) : S.calculateTextDimensions(l ? S.wrapLabel(t.message, Z.width, Fe(Z)) : t.message, Fe(Z)), d = {
|
|
3975
|
+
width: l ? Z.width : h.getMax(Z.width, u.width + 2 * Z.noteMargin),
|
|
3969
3976
|
height: 0,
|
|
3970
|
-
startx:
|
|
3977
|
+
startx: a.x,
|
|
3971
3978
|
stopx: 0,
|
|
3972
3979
|
starty: 0,
|
|
3973
3980
|
stopy: 0,
|
|
3974
|
-
message:
|
|
3981
|
+
message: t.message
|
|
3975
3982
|
};
|
|
3976
|
-
return
|
|
3977
|
-
}, "buildNoteModel"), Ze = 4, Qe = 6, $e = /* @__PURE__ */
|
|
3983
|
+
return t.placement === i.db.PLACEMENT.RIGHTOF ? (d.width = l ? h.getMax(Z.width, u.width) : h.getMax(a.width / 2 + o.width / 2, u.width + 2 * Z.noteMargin), d.startx = s + (a.width + Z.actorMargin) / 2) : t.placement === i.db.PLACEMENT.LEFTOF ? (d.width = l ? h.getMax(Z.width, u.width + 2 * Z.noteMargin) : h.getMax(a.width / 2 + o.width / 2, u.width + 2 * Z.noteMargin), d.startx = s - d.width + (a.width - Z.actorMargin) / 2) : t.to === t.from ? (u = S.calculateTextDimensions(l ? S.wrapLabel(t.message, h.getMax(Z.width, a.width), Fe(Z)) : t.message, Fe(Z)), d.width = l ? h.getMax(Z.width, a.width) : h.getMax(a.width, Z.width, u.width + 2 * Z.noteMargin), d.startx = s + (a.width - d.width) / 2) : (d.width = Math.abs(s + a.width / 2 - (c + o.width / 2)) + Z.actorMargin, d.startx = s < c ? s + a.width / 2 - Z.actorMargin / 2 : c + o.width / 2 - Z.actorMargin / 2), l && (d.message = S.wrapLabel(t.message, d.width - 2 * Z.wrapPadding, Fe(Z))), e.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${t.message}]`), d;
|
|
3984
|
+
}, "buildNoteModel"), Ze = 4, Qe = 6, $e = /* @__PURE__ */ t(function(e, t) {
|
|
3978
3985
|
let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
|
|
3979
3986
|
return [
|
|
3980
3987
|
n,
|
|
3981
3988
|
r,
|
|
3982
3989
|
i
|
|
3983
3990
|
].includes(e.centralConnection);
|
|
3984
|
-
}, "hasCentralConnection"), et = /* @__PURE__ */
|
|
3991
|
+
}, "hasCentralConnection"), et = /* @__PURE__ */ t(function(e, t, n) {
|
|
3985
3992
|
let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
|
|
3986
3993
|
return (e.centralConnection === r || e.centralConnection === i) && (s += Ze), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -Qe), s;
|
|
3987
|
-
}, "calculateCentralConnectionOffset"), tt = /* @__PURE__ */
|
|
3994
|
+
}, "calculateCentralConnectionOffset"), tt = /* @__PURE__ */ t(function(e, t) {
|
|
3988
3995
|
let { SOLID_ARROW_TOP_REVERSE: n, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: a, STICK_ARROW_TOP_REVERSE: o, STICK_ARROW_TOP_REVERSE_DOTTED: s, STICK_ARROW_BOTTOM_REVERSE: c, STICK_ARROW_BOTTOM_REVERSE_DOTTED: l } = t.db.LINETYPE;
|
|
3989
3996
|
return [
|
|
3990
3997
|
n,
|
|
@@ -3996,77 +4003,77 @@ var Xe = /* @__PURE__ */ y(async function(e, t, n) {
|
|
|
3996
4003
|
c,
|
|
3997
4004
|
l
|
|
3998
4005
|
].includes(e.type);
|
|
3999
|
-
}, "isReverseArrowType"), nt = /* @__PURE__ */
|
|
4006
|
+
}, "isReverseArrowType"), nt = /* @__PURE__ */ t(function(e, t) {
|
|
4000
4007
|
let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
|
|
4001
4008
|
return [n, r].includes(e.type);
|
|
4002
|
-
}, "isBidirectionalArrowType"), rt = /* @__PURE__ */
|
|
4003
|
-
let { look:
|
|
4009
|
+
}, "isBidirectionalArrowType"), rt = /* @__PURE__ */ t(function(e, n, r) {
|
|
4010
|
+
let { look: i } = v();
|
|
4004
4011
|
if (![
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4012
|
+
r.db.LINETYPE.SOLID_OPEN,
|
|
4013
|
+
r.db.LINETYPE.DOTTED_OPEN,
|
|
4014
|
+
r.db.LINETYPE.SOLID,
|
|
4015
|
+
r.db.LINETYPE.SOLID_TOP,
|
|
4016
|
+
r.db.LINETYPE.SOLID_BOTTOM,
|
|
4017
|
+
r.db.LINETYPE.STICK_TOP,
|
|
4018
|
+
r.db.LINETYPE.STICK_BOTTOM,
|
|
4019
|
+
r.db.LINETYPE.SOLID_TOP_DOTTED,
|
|
4020
|
+
r.db.LINETYPE.SOLID_BOTTOM_DOTTED,
|
|
4021
|
+
r.db.LINETYPE.STICK_TOP_DOTTED,
|
|
4022
|
+
r.db.LINETYPE.STICK_BOTTOM_DOTTED,
|
|
4023
|
+
r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
4024
|
+
r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
|
|
4025
|
+
r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
|
|
4026
|
+
r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
|
|
4027
|
+
r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
|
|
4028
|
+
r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
4029
|
+
r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
|
|
4030
|
+
r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
4031
|
+
r.db.LINETYPE.DOTTED,
|
|
4032
|
+
r.db.LINETYPE.SOLID_CROSS,
|
|
4033
|
+
r.db.LINETYPE.DOTTED_CROSS,
|
|
4034
|
+
r.db.LINETYPE.SOLID_POINT,
|
|
4035
|
+
r.db.LINETYPE.DOTTED_POINT,
|
|
4036
|
+
r.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
4037
|
+
r.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
4031
4038
|
].includes(e.type)) return {};
|
|
4032
|
-
let [
|
|
4033
|
-
|
|
4034
|
-
let f = Math.abs(
|
|
4035
|
-
e.from === e.to ? d =
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4039
|
+
let [a, o] = We(e.from, n), [s, c] = We(e.to, n), l = a <= s, u = l ? o : a, d = l ? s : c;
|
|
4040
|
+
i === "neo" && (e.type !== r.db.LINETYPE.SOLID_OPEN && (d += l ? -3 : 3), (e.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (u += l ? 3 : -3)), u += et(e, r, l);
|
|
4041
|
+
let f = Math.abs(s - c) > 2, p = /* @__PURE__ */ t((e) => l ? -e : e, "adjustValue");
|
|
4042
|
+
e.from === e.to ? d = u : (e.activate && !f && (d += p(Z.activationWidth / 2 - 1)), [
|
|
4043
|
+
r.db.LINETYPE.SOLID_OPEN,
|
|
4044
|
+
r.db.LINETYPE.DOTTED_OPEN,
|
|
4045
|
+
r.db.LINETYPE.STICK_TOP,
|
|
4046
|
+
r.db.LINETYPE.STICK_BOTTOM,
|
|
4047
|
+
r.db.LINETYPE.STICK_TOP_DOTTED,
|
|
4048
|
+
r.db.LINETYPE.STICK_BOTTOM_DOTTED,
|
|
4049
|
+
r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
|
|
4050
|
+
r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
4051
|
+
r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
|
|
4052
|
+
r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
|
|
4053
|
+
r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
|
|
4054
|
+
r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
4055
|
+
r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
4056
|
+
r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
|
|
4050
4057
|
].includes(e.type) || (d += p(3)), [
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
].includes(e.type) && (
|
|
4058
|
+
r.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
4059
|
+
r.db.LINETYPE.BIDIRECTIONAL_DOTTED,
|
|
4060
|
+
r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
|
|
4061
|
+
r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
4062
|
+
r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
4063
|
+
r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
|
|
4064
|
+
].includes(e.type) && (u -= p(3)));
|
|
4058
4065
|
let m = [
|
|
4059
|
-
i,
|
|
4060
4066
|
a,
|
|
4061
4067
|
o,
|
|
4062
|
-
s
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4068
|
+
s,
|
|
4069
|
+
c
|
|
4070
|
+
], g = Math.abs(u - d);
|
|
4071
|
+
e.wrap && e.message && (e.message = S.wrapLabel(e.message, h.getMax(g + 2 * Z.wrapPadding, Z.width), Pe(Z)));
|
|
4072
|
+
let _ = S.calculateTextDimensions(e.message, Pe(Z));
|
|
4066
4073
|
return {
|
|
4067
4074
|
width: h.getMax(e.wrap ? 0 : _.width + 2 * Z.wrapPadding, g + 2 * Z.wrapPadding, Z.width),
|
|
4068
4075
|
height: 0,
|
|
4069
|
-
startx:
|
|
4076
|
+
startx: u,
|
|
4070
4077
|
stopx: d,
|
|
4071
4078
|
starty: 0,
|
|
4072
4079
|
stopy: 0,
|
|
@@ -4076,66 +4083,66 @@ var Xe = /* @__PURE__ */ y(async function(e, t, n) {
|
|
|
4076
4083
|
fromBounds: Math.min.apply(null, m),
|
|
4077
4084
|
toBounds: Math.max.apply(null, m)
|
|
4078
4085
|
};
|
|
4079
|
-
}, "buildMessageModel"), it = /* @__PURE__ */
|
|
4080
|
-
let
|
|
4081
|
-
for (let
|
|
4082
|
-
switch (
|
|
4083
|
-
case
|
|
4084
|
-
case
|
|
4085
|
-
case
|
|
4086
|
-
case
|
|
4087
|
-
case
|
|
4088
|
-
case
|
|
4089
|
-
case
|
|
4090
|
-
|
|
4091
|
-
id:
|
|
4092
|
-
msg:
|
|
4086
|
+
}, "buildMessageModel"), it = /* @__PURE__ */ t(async function(t, n, r, i) {
|
|
4087
|
+
let a = {}, o = [], s, c, l;
|
|
4088
|
+
for (let e of t) {
|
|
4089
|
+
switch (e.type) {
|
|
4090
|
+
case i.db.LINETYPE.LOOP_START:
|
|
4091
|
+
case i.db.LINETYPE.ALT_START:
|
|
4092
|
+
case i.db.LINETYPE.OPT_START:
|
|
4093
|
+
case i.db.LINETYPE.PAR_START:
|
|
4094
|
+
case i.db.LINETYPE.PAR_OVER_START:
|
|
4095
|
+
case i.db.LINETYPE.CRITICAL_START:
|
|
4096
|
+
case i.db.LINETYPE.BREAK_START:
|
|
4097
|
+
o.push({
|
|
4098
|
+
id: e.id,
|
|
4099
|
+
msg: e.message,
|
|
4093
4100
|
from: 2 ** 53 - 1,
|
|
4094
4101
|
to: -(2 ** 53 - 1),
|
|
4095
4102
|
width: 0
|
|
4096
4103
|
});
|
|
4097
4104
|
break;
|
|
4098
|
-
case
|
|
4099
|
-
case
|
|
4100
|
-
case
|
|
4101
|
-
|
|
4105
|
+
case i.db.LINETYPE.ALT_ELSE:
|
|
4106
|
+
case i.db.LINETYPE.PAR_AND:
|
|
4107
|
+
case i.db.LINETYPE.CRITICAL_OPTION:
|
|
4108
|
+
e.message && (s = o.pop(), a[s.id] = s, a[e.id] = s, o.push(s));
|
|
4102
4109
|
break;
|
|
4103
|
-
case
|
|
4104
|
-
case
|
|
4105
|
-
case
|
|
4106
|
-
case
|
|
4107
|
-
case
|
|
4108
|
-
case
|
|
4109
|
-
|
|
4110
|
+
case i.db.LINETYPE.LOOP_END:
|
|
4111
|
+
case i.db.LINETYPE.ALT_END:
|
|
4112
|
+
case i.db.LINETYPE.OPT_END:
|
|
4113
|
+
case i.db.LINETYPE.PAR_END:
|
|
4114
|
+
case i.db.LINETYPE.CRITICAL_END:
|
|
4115
|
+
case i.db.LINETYPE.BREAK_END:
|
|
4116
|
+
s = o.pop(), a[s.id] = s;
|
|
4110
4117
|
break;
|
|
4111
|
-
case
|
|
4118
|
+
case i.db.LINETYPE.ACTIVE_START:
|
|
4112
4119
|
{
|
|
4113
|
-
let
|
|
4120
|
+
let t = n.get(e.from ? e.from : e.to.actor), r = Ue(e.from ? e.from : e.to.actor).length, i = t.x + t.width / 2 + (r - 1) * Z.activationWidth / 2, a = {
|
|
4114
4121
|
startx: i,
|
|
4115
4122
|
stopx: i + Z.activationWidth,
|
|
4116
|
-
actor:
|
|
4123
|
+
actor: e.from,
|
|
4117
4124
|
enabled: !0
|
|
4118
4125
|
};
|
|
4119
4126
|
Q.activations.push(a);
|
|
4120
4127
|
}
|
|
4121
4128
|
break;
|
|
4122
|
-
case
|
|
4129
|
+
case i.db.LINETYPE.ACTIVE_END:
|
|
4123
4130
|
{
|
|
4124
|
-
let
|
|
4125
|
-
Q.activations.splice(
|
|
4131
|
+
let t = Q.activations.map((e) => e.actor).lastIndexOf(e.from);
|
|
4132
|
+
Q.activations.splice(t, 1).splice(0, 1);
|
|
4126
4133
|
}
|
|
4127
4134
|
break;
|
|
4128
4135
|
}
|
|
4129
|
-
|
|
4130
|
-
if (
|
|
4131
|
-
let
|
|
4132
|
-
|
|
4133
|
-
} else
|
|
4134
|
-
})) : (
|
|
4135
|
-
|
|
4136
|
+
e.placement === void 0 ? (l = rt(e, n, i), e.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((t) => {
|
|
4137
|
+
if (s = t, l.startx === l.stopx) {
|
|
4138
|
+
let t = n.get(e.from), r = n.get(e.to);
|
|
4139
|
+
s.from = h.getMin(t.x - l.width / 2, t.x - t.width / 2, s.from), s.to = h.getMax(r.x + l.width / 2, r.x + t.width / 2, s.to), s.width = h.getMax(s.width, Math.abs(s.to - s.from)) - Z.labelBoxWidth;
|
|
4140
|
+
} else s.from = h.getMin(l.startx, s.from), s.to = h.getMax(l.stopx, s.to), s.width = h.getMax(s.width, l.width) - Z.labelBoxWidth;
|
|
4141
|
+
})) : (c = await Xe(e, n, i), e.noteModel = c, o.forEach((e) => {
|
|
4142
|
+
s = e, s.from = h.getMin(s.from, c.startx), s.to = h.getMax(s.to, c.startx + c.width), s.width = h.getMax(s.width, Math.abs(s.from - s.to)) - Z.labelBoxWidth;
|
|
4136
4143
|
}));
|
|
4137
4144
|
}
|
|
4138
|
-
return Q.activations = [],
|
|
4145
|
+
return Q.activations = [], e.debug("Loop type widths:", a), a;
|
|
4139
4146
|
}, "calculateLoopBounds"), at = {
|
|
4140
4147
|
parser: F,
|
|
4141
4148
|
get db() {
|
|
@@ -4149,7 +4156,7 @@ var Xe = /* @__PURE__ */ y(async function(e, t, n) {
|
|
|
4149
4156
|
draw: Ke
|
|
4150
4157
|
},
|
|
4151
4158
|
styles: ne,
|
|
4152
|
-
init: /* @__PURE__ */
|
|
4159
|
+
init: /* @__PURE__ */ t((e) => {
|
|
4153
4160
|
e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, a({ sequence: { wrap: e.wrap } }));
|
|
4154
4161
|
}, "init")
|
|
4155
4162
|
};
|