@sme.up/ketchup2 2.9.0 → 2.11.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/{abnfDiagram-VCTEODGH-DwAVRNNu.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
- package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
- package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
- package/dist/{architectureDiagram-5GKGNRK7-N1aPr2hw.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
- package/dist/assets/svg/magnify-minus.svg +1 -0
- package/dist/assets/svg/magnify-plus.svg +1 -0
- package/dist/basic-components/button/button-types.d.ts +2 -2
- package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +15 -6
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts +10 -4
- 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/checkbox/checkbox.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +13 -0
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/date-picker/date-picker-types.d.ts +6 -2
- package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload-types.d.ts +2 -2
- package/dist/basic-components/file-upload/file-upload-types.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload.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/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/basic-components/radio/radio.d.ts.map +1 -1
- package/dist/basic-components/slider/slider.d.ts.map +1 -1
- package/dist/basic-components/text/text-types.d.ts +3 -1
- package/dist/basic-components/text/text-types.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +10 -5
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/{blockDiagram-I7D4REHJ-Cu18ws5-.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
- package/dist/{c4Diagram-7LVT6UL2-B-uBy_NE.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
- package/dist/channel-CcHUzwZl.js +5 -0
- package/dist/{chunk-SVP7TREG-CyJlOPau.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
- package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
- package/dist/{chunk-F27PBJKO-jIrOJO87.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
- package/dist/{chunk-75Z2AOVW-Drsj7a97.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
- package/dist/{chunk-GMAD6QVW-D80II4AD.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
- package/dist/{chunk-DU6HZSFF-waeanndy.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1227 -1043
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
- package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
- package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
- package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
- package/dist/{chunk-SHT3W25Y-Cri27Jke.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
- package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
- package/dist/{chunk-P2QGCYS3-BUeNZ170.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
- package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
- package/dist/{chunk-OSK3NFVY-CQhPF3Mc.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
- package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
- package/dist/{chunk-PWAF6VOD-D37VoZ8H.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
- package/dist/{chunk-GVQU2GXP-DP3t_9Rl.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
- package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
- package/dist/{chunk-TICWLB2K-Cw2iT_VD.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
- package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
- package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
- package/dist/components/box-list/box-list.d.ts.map +1 -1
- package/dist/components/calendar/calendar-available-height.d.ts +14 -0
- package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
- package/dist/components/calendar/calendar-types.d.ts +49 -4
- package/dist/components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/components/calendar/calendar-utils.d.ts +160 -16
- package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-event-text.d.ts +23 -0
- package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -0
- package/dist/components/calendar/views/calendar-month-grid.d.ts +12 -4
- package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts +19 -0
- package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -0
- package/dist/components/calendar/views/calendar-time-grid.d.ts +16 -2
- package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
- package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
- package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
- package/dist/components/data-table/data-table-types.d.ts +206 -38
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +19 -2
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
- package/dist/components/data-table/fixed/fixed-utils.d.ts +69 -0
- package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -0
- package/dist/components/data-table/footer/footer-types.d.ts +23 -6
- package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
- package/dist/components/data-table/footer/footer.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts +38 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +20 -5
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
- package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
- package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/header/header-types.d.ts +37 -21
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
- package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
- package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
- package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
- package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
- package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
- package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
- package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
- package/dist/components/data-table/state/datatable-state.d.ts +15 -8
- package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
- package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
- package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts +26 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts.map +1 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts +17 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +151 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts +164 -0
- package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-math.d.ts +26 -0
- package/dist/components/echarts-graph/data/echarts-graph-math.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-time.d.ts +42 -0
- package/dist/components/echarts-graph/data/echarts-graph-time.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts +197 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts +229 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph.d.ts +18 -0
- package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts +20 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts +2 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts +58 -0
- package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts.map +1 -0
- package/dist/components/input-panel/assets/data.d.ts +1 -0
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-types.d.ts +7 -1
- package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/json-form/document-adapter.test.d.ts +2 -0
- package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
- package/dist/components/json-form/model/document-adapter.d.ts +54 -0
- package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
- package/dist/components/json-form/model/json-pointer.d.ts +20 -0
- package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
- package/dist/components/json-form/model/native-json-types.d.ts +5 -0
- package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
- package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
- package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
- package/dist/components/json-form/rule-controller.test.d.ts +2 -0
- package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
- package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
- package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
- package/dist/components/pdf/pdf-types.d.ts +17 -2
- package/dist/components/pdf/pdf-types.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts +30 -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/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -1
- package/dist/context/interaction-context.d.ts +16 -0
- package/dist/context/interaction-context.d.ts.map +1 -0
- package/dist/context/test-utils.d.ts.map +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
- package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
- package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
- package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
- package/dist/{diagram-VX7I27RA-BNmG1sig.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
- package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
- package/dist/{diagram-S7CK7UJ4-BuDHTdHA.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
- package/dist/{diagram-VSXAHHWV-CrQQCs-B.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
- package/dist/{diagram-UQ7AKVKN-uvzJGj43.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
- package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
- package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-DMx8xAFO.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
- package/dist/echarts-C7ehbnCk.js +15485 -0
- package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
- package/dist/{erDiagram-RLTQ6QDP-bkJ9nzVK.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
- package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
- package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
- package/dist/functional-components/badge/badge-assets.d.ts +1 -0
- package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
- package/dist/functional-components/badge/badge-utils.d.ts +5 -0
- package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
- package/dist/functional-components/badge/badge.d.ts.map +1 -1
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
- package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
- package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
- package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
- package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +1 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +50 -1
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +5 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-CL-ywzz_.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
- package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-aXhNDG6P.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
- package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts +14 -0
- package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts.map +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useFloating.d.ts.map +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts +14 -2
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
- package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
- package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
- package/dist/{ishikawaDiagram-5VMMS53U-DK7HlH95.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
- package/dist/{journeyDiagram-3NMN7TZE-CpuYEKcB.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
- package/dist/{kanban-definition-UXKFOSKX-aK8uKmyY.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
- package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +25778 -68770
- package/dist/{line-DTqYMLoX.js → line-ltPB6XbC.js} +1 -1
- package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
- package/dist/locale/en/translation.json.d.ts +40 -4
- package/dist/locale/it/translation.json.d.ts +40 -4
- package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
- package/dist/{mindmap-definition-YA3MSWOX-ZMYcmi9J.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
- package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
- package/dist/{pegDiagram-XKGWAZYB-DsfILwZN.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
- package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
- package/dist/{pieDiagram-E7YTZNPT-DcSLcLdd.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
- package/dist/{quadrantDiagram-AXDQQJYC-DSx3teop.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
- package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
- package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
- package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
- package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
- package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
- package/dist/{railroadDiagram-O6MQD6OU-jOZRtNDi.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
- package/dist/{requirementDiagram-BXWQKSXE-D14hkkez.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
- package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
- package/dist/{sankeyDiagram-P5KCCOFB-C0jmknYo.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
- package/dist/{sequenceDiagram-WJ2MYXX4-C00egnMz.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
- package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
- package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
- package/dist/{chunk-IMKFNOWR-8ItzAAcf.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
- package/dist/{swimlanes-42K2YHIH-CJcMmxXf.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
- package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
- package/dist/{timeline-definition-24CTP7MA-D2xfYuSV.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
- package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
- package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
- package/dist/types/data-structures.d.ts +16 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +7 -2
- package/dist/types/global.d.ts.map +1 -1
- package/dist/types/translation.d.ts +40 -5
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
- package/dist/utils/floating-layer.d.ts +11 -0
- package/dist/utils/floating-layer.d.ts.map +1 -0
- package/dist/utils/legacy.d.ts +7 -0
- package/dist/utils/legacy.d.ts.map +1 -1
- package/dist/utils/object-styles.d.ts +12 -0
- package/dist/utils/object-styles.d.ts.map +1 -0
- package/dist/utils/object-styles.test.d.ts +2 -0
- package/dist/utils/object-styles.test.d.ts.map +1 -0
- package/dist/utils/objects.d.ts +20 -1
- package/dist/utils/objects.d.ts.map +1 -1
- package/dist/utils/totals/totals-registry.d.ts +17 -0
- package/dist/utils/totals/totals-registry.d.ts.map +1 -0
- package/dist/utils/totals/totals-utils.d.ts +70 -7
- package/dist/utils/totals/totals-utils.d.ts.map +1 -1
- package/dist/utils/wrapper-types/list.d.ts.map +1 -1
- package/dist/{vennDiagram-4TSXK5OY-C4XLgus_.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
- package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
- package/dist/{wardleyDiagram-VM6X3IG4-DFoKuS9s.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
- package/dist/{xychartDiagram-S5SC5T6Z-BzKKgVBe.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
- package/package.json +7 -5
- package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
- package/dist/channel-CuEby436.js +0 -5
- package/dist/chunk-2E4U76K2-ComA5SPA.js +0 -348
- package/dist/chunk-4HAMMTFA-CZgIgrp_.js +0 -4188
- package/dist/chunk-CLGD4ZFX-CLGio9rD.js +0 -14
- package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
- package/dist/chunk-L3NEJ4N5-qPot4t6M.js +0 -245
- package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +0 -26
- package/dist/chunk-TLUHSLCS-BdsLNXjt.js +0 -59
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +0 -30
- package/dist/components/echarts/echarts-graph-types.d.ts +0 -8
- package/dist/components/echarts/echarts-graph-types.d.ts.map +0 -1
- package/dist/components/echarts/echarts-graph.d.ts +0 -4
- package/dist/components/echarts/echarts-graph.d.ts.map +0 -1
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
- package/dist/dagre-D5csT9sx.js +0 -1934
- package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +0 -425
- package/dist/diagram-Z3DM3KII-B6BrLhP0.js +0 -134
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +0 -17
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
- package/dist/hooks/useClickOutside.d.ts.map +0 -1
- package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
- package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +0 -20
- package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
- package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
- package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +0 -220
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +0 -31
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
- /package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as x } from "./dist-
|
|
5
|
-
import {
|
|
6
|
-
import { n as w, t as T } from "./chunk-LNGE3PJU-
|
|
7
|
-
import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-
|
|
1
|
+
import { C as e, D as t, F as n, G as r, H as i, U as a, _ as o, a as s, b as c, c as l, i as u, k as d, q as f, r as p, s as m, v as h, y as g, z as _ } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
|
|
2
|
+
import { n as v } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
3
|
+
import { m as y, p as b } from "./src-CY9Rz0Sf.js";
|
|
4
|
+
import { t as x } from "./dist-Bj7IMbKd.js";
|
|
5
|
+
import { _ as S, m as C } from "./chunk-7S6XSTFO-CN6S2H1-.js";
|
|
6
|
+
import { n as w, t as T } from "./chunk-LNGE3PJU-ByFTjlja.js";
|
|
7
|
+
import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-55XCU76K-B1HtPImz.js";
|
|
8
8
|
import { t as M } from "./chunk-2Q5K7J3B-kzxEEeTu.js";
|
|
9
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-
|
|
9
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-BLEHNHQU.mjs
|
|
10
10
|
var N = x(), P = (function() {
|
|
11
|
-
var e = /* @__PURE__ */
|
|
11
|
+
var e = /* @__PURE__ */ v(function(e, t, n, r) {
|
|
12
12
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
13
13
|
return n;
|
|
14
|
-
}, "o"), t = [1, 2], n = [1, 3], r = [1, 4], i = [2, 4], a = [1, 9], o = [1, 11], s = [1, 12], c = [1, 14], l = [1, 15], u = [1, 17], d = [1, 18], f = [1, 19], p = [1, 25], m = [1, 26], h = [1, 27], g = [1, 28], _ = [1, 29],
|
|
14
|
+
}, "o"), t = [1, 2], n = [1, 3], r = [1, 4], i = [2, 4], a = [1, 9], o = [1, 11], s = [1, 12], c = [1, 14], l = [1, 15], u = [1, 17], d = [1, 18], f = [1, 19], p = [1, 25], m = [1, 26], h = [1, 27], g = [1, 28], _ = [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 = [
|
|
15
15
|
1,
|
|
16
16
|
4,
|
|
17
17
|
5,
|
|
@@ -47,14 +47,14 @@ var N = x(), P = (function() {
|
|
|
47
47
|
63,
|
|
48
48
|
64,
|
|
49
49
|
73
|
|
50
|
-
],
|
|
50
|
+
], L = [1, 56], ee = [1, 75], R = [1, 81], te = [1, 82], ne = [1, 83], re = [1, 84], ie = [1, 85], ae = [1, 86], oe = [1, 87], se = [1, 88], ce = [1, 89], le = [1, 90], z = [1, 91], ue = [1, 92], de = [1, 93], fe = [1, 94], pe = [1, 95], B = [1, 96], V = [1, 97], me = [1, 98], H = [1, 99], U = [1, 100], W = [1, 101], he = [1, 102], ge = [1, 103], _e = [1, 104], ve = [1, 105], G = [1, 106], ye = [2, 79], K = [2, 78], be = [
|
|
51
51
|
4,
|
|
52
52
|
5,
|
|
53
53
|
17,
|
|
54
54
|
51,
|
|
55
55
|
53,
|
|
56
56
|
54
|
|
57
|
-
],
|
|
57
|
+
], xe = [
|
|
58
58
|
4,
|
|
59
59
|
5,
|
|
60
60
|
10,
|
|
@@ -86,7 +86,7 @@ var N = x(), P = (function() {
|
|
|
86
86
|
63,
|
|
87
87
|
64,
|
|
88
88
|
73
|
|
89
|
-
],
|
|
89
|
+
], Se = [
|
|
90
90
|
4,
|
|
91
91
|
5,
|
|
92
92
|
10,
|
|
@@ -119,7 +119,7 @@ var N = x(), P = (function() {
|
|
|
119
119
|
63,
|
|
120
120
|
64,
|
|
121
121
|
73
|
|
122
|
-
],
|
|
122
|
+
], Ce = [
|
|
123
123
|
4,
|
|
124
124
|
5,
|
|
125
125
|
10,
|
|
@@ -152,7 +152,7 @@ var N = x(), P = (function() {
|
|
|
152
152
|
63,
|
|
153
153
|
64,
|
|
154
154
|
73
|
|
155
|
-
],
|
|
155
|
+
], we = [
|
|
156
156
|
4,
|
|
157
157
|
5,
|
|
158
158
|
10,
|
|
@@ -185,13 +185,14 @@ var N = x(), P = (function() {
|
|
|
185
185
|
63,
|
|
186
186
|
64,
|
|
187
187
|
73
|
|
188
|
-
],
|
|
188
|
+
], Te = [5, 52], q = [
|
|
189
|
+
62,
|
|
189
190
|
70,
|
|
190
191
|
71,
|
|
191
192
|
72,
|
|
192
193
|
73
|
|
193
|
-
], J = [1,
|
|
194
|
-
trace: /* @__PURE__ */
|
|
194
|
+
], Ee = [62, 73], J = [1, 152], De = {
|
|
195
|
+
trace: /* @__PURE__ */ v(function() {}, "trace"),
|
|
195
196
|
yy: {},
|
|
196
197
|
symbols_: {
|
|
197
198
|
error: 2,
|
|
@@ -461,6 +462,7 @@ var N = x(), P = (function() {
|
|
|
461
462
|
[55, 2],
|
|
462
463
|
[74, 3],
|
|
463
464
|
[23, 1],
|
|
465
|
+
[23, 1],
|
|
464
466
|
[69, 1],
|
|
465
467
|
[69, 1],
|
|
466
468
|
[69, 1],
|
|
@@ -489,7 +491,7 @@ var N = x(), P = (function() {
|
|
|
489
491
|
[69, 1],
|
|
490
492
|
[58, 1]
|
|
491
493
|
],
|
|
492
|
-
performAction: /* @__PURE__ */
|
|
494
|
+
performAction: /* @__PURE__ */ v(function(e, t, n, r, i, a, o) {
|
|
493
495
|
var s = a.length - 1;
|
|
494
496
|
switch (i) {
|
|
495
497
|
case 3: return r.apply(a[s]), a[s];
|
|
@@ -895,90 +897,91 @@ var N = x(), P = (function() {
|
|
|
895
897
|
this.$ = a[s - 1].trim();
|
|
896
898
|
break;
|
|
897
899
|
case 78:
|
|
900
|
+
case 79:
|
|
898
901
|
this.$ = {
|
|
899
902
|
type: "addParticipant",
|
|
900
903
|
actor: a[s]
|
|
901
904
|
};
|
|
902
905
|
break;
|
|
903
|
-
case
|
|
906
|
+
case 80:
|
|
904
907
|
this.$ = r.LINETYPE.SOLID_OPEN;
|
|
905
908
|
break;
|
|
906
|
-
case
|
|
909
|
+
case 81:
|
|
907
910
|
this.$ = r.LINETYPE.DOTTED_OPEN;
|
|
908
911
|
break;
|
|
909
|
-
case
|
|
912
|
+
case 82:
|
|
910
913
|
this.$ = r.LINETYPE.SOLID;
|
|
911
914
|
break;
|
|
912
|
-
case
|
|
915
|
+
case 83:
|
|
913
916
|
this.$ = r.LINETYPE.SOLID_TOP;
|
|
914
917
|
break;
|
|
915
|
-
case
|
|
918
|
+
case 84:
|
|
916
919
|
this.$ = r.LINETYPE.SOLID_BOTTOM;
|
|
917
920
|
break;
|
|
918
|
-
case
|
|
921
|
+
case 85:
|
|
919
922
|
this.$ = r.LINETYPE.STICK_TOP;
|
|
920
923
|
break;
|
|
921
|
-
case
|
|
924
|
+
case 86:
|
|
922
925
|
this.$ = r.LINETYPE.STICK_BOTTOM;
|
|
923
926
|
break;
|
|
924
|
-
case
|
|
927
|
+
case 87:
|
|
925
928
|
this.$ = r.LINETYPE.SOLID_TOP_DOTTED;
|
|
926
929
|
break;
|
|
927
|
-
case
|
|
930
|
+
case 88:
|
|
928
931
|
this.$ = r.LINETYPE.SOLID_BOTTOM_DOTTED;
|
|
929
932
|
break;
|
|
930
|
-
case
|
|
933
|
+
case 89:
|
|
931
934
|
this.$ = r.LINETYPE.STICK_TOP_DOTTED;
|
|
932
935
|
break;
|
|
933
|
-
case
|
|
936
|
+
case 90:
|
|
934
937
|
this.$ = r.LINETYPE.STICK_BOTTOM_DOTTED;
|
|
935
938
|
break;
|
|
936
|
-
case
|
|
939
|
+
case 91:
|
|
937
940
|
this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE;
|
|
938
941
|
break;
|
|
939
|
-
case
|
|
942
|
+
case 92:
|
|
940
943
|
this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
|
|
941
944
|
break;
|
|
942
|
-
case
|
|
945
|
+
case 93:
|
|
943
946
|
this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE;
|
|
944
947
|
break;
|
|
945
|
-
case
|
|
948
|
+
case 94:
|
|
946
949
|
this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
|
|
947
950
|
break;
|
|
948
|
-
case
|
|
951
|
+
case 95:
|
|
949
952
|
this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
|
|
950
953
|
break;
|
|
951
|
-
case
|
|
954
|
+
case 96:
|
|
952
955
|
this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
|
|
953
956
|
break;
|
|
954
|
-
case
|
|
957
|
+
case 97:
|
|
955
958
|
this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
|
|
956
959
|
break;
|
|
957
|
-
case
|
|
960
|
+
case 98:
|
|
958
961
|
this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
|
|
959
962
|
break;
|
|
960
|
-
case
|
|
963
|
+
case 99:
|
|
961
964
|
this.$ = r.LINETYPE.BIDIRECTIONAL_SOLID;
|
|
962
965
|
break;
|
|
963
|
-
case
|
|
966
|
+
case 100:
|
|
964
967
|
this.$ = r.LINETYPE.DOTTED;
|
|
965
968
|
break;
|
|
966
|
-
case
|
|
969
|
+
case 101:
|
|
967
970
|
this.$ = r.LINETYPE.BIDIRECTIONAL_DOTTED;
|
|
968
971
|
break;
|
|
969
|
-
case
|
|
972
|
+
case 102:
|
|
970
973
|
this.$ = r.LINETYPE.SOLID_CROSS;
|
|
971
974
|
break;
|
|
972
|
-
case
|
|
975
|
+
case 103:
|
|
973
976
|
this.$ = r.LINETYPE.DOTTED_CROSS;
|
|
974
977
|
break;
|
|
975
|
-
case
|
|
978
|
+
case 104:
|
|
976
979
|
this.$ = r.LINETYPE.SOLID_POINT;
|
|
977
980
|
break;
|
|
978
|
-
case
|
|
981
|
+
case 105:
|
|
979
982
|
this.$ = r.LINETYPE.DOTTED_POINT;
|
|
980
983
|
break;
|
|
981
|
-
case
|
|
984
|
+
case 106: this.$ = r.parseMessage(a[s].trim().substring(1));
|
|
982
985
|
}
|
|
983
986
|
}, "anonymous"),
|
|
984
987
|
table: [
|
|
@@ -1061,8 +1064,8 @@ var N = x(), P = (function() {
|
|
|
1061
1064
|
32: h,
|
|
1062
1065
|
34: g,
|
|
1063
1066
|
36: _,
|
|
1064
|
-
37:
|
|
1065
|
-
38:
|
|
1067
|
+
37: y,
|
|
1068
|
+
38: b,
|
|
1066
1069
|
39: x,
|
|
1067
1070
|
40: S,
|
|
1068
1071
|
42: C,
|
|
@@ -1100,8 +1103,8 @@ var N = x(), P = (function() {
|
|
|
1100
1103
|
32: h,
|
|
1101
1104
|
34: g,
|
|
1102
1105
|
36: _,
|
|
1103
|
-
37:
|
|
1104
|
-
38:
|
|
1106
|
+
37: y,
|
|
1107
|
+
38: b,
|
|
1105
1108
|
39: x,
|
|
1106
1109
|
40: S,
|
|
1107
1110
|
42: C,
|
|
@@ -1137,23 +1140,24 @@ var N = x(), P = (function() {
|
|
|
1137
1140
|
},
|
|
1138
1141
|
{
|
|
1139
1142
|
23: 55,
|
|
1143
|
+
62: L,
|
|
1140
1144
|
73: F
|
|
1141
1145
|
},
|
|
1142
1146
|
{
|
|
1143
|
-
23:
|
|
1147
|
+
23: 57,
|
|
1148
|
+
62: L,
|
|
1144
1149
|
73: F
|
|
1145
1150
|
},
|
|
1146
|
-
{ 5: [1, 57] },
|
|
1147
1151
|
{ 5: [1, 58] },
|
|
1148
1152
|
{ 5: [1, 59] },
|
|
1149
1153
|
{ 5: [1, 60] },
|
|
1150
1154
|
{ 5: [1, 61] },
|
|
1155
|
+
{ 5: [1, 62] },
|
|
1151
1156
|
e(I, [2, 30]),
|
|
1152
1157
|
e(I, [2, 31]),
|
|
1153
|
-
{ 33: [1,
|
|
1154
|
-
{ 35: [1,
|
|
1158
|
+
{ 33: [1, 63] },
|
|
1159
|
+
{ 35: [1, 64] },
|
|
1155
1160
|
e(I, [2, 34]),
|
|
1156
|
-
{ 16: [1, 64] },
|
|
1157
1161
|
{ 16: [1, 65] },
|
|
1158
1162
|
{ 16: [1, 66] },
|
|
1159
1163
|
{ 16: [1, 67] },
|
|
@@ -1161,70 +1165,106 @@ var N = x(), P = (function() {
|
|
|
1161
1165
|
{ 16: [1, 69] },
|
|
1162
1166
|
{ 16: [1, 70] },
|
|
1163
1167
|
{ 16: [1, 71] },
|
|
1168
|
+
{ 16: [1, 72] },
|
|
1164
1169
|
{
|
|
1165
|
-
23:
|
|
1166
|
-
55:
|
|
1170
|
+
23: 73,
|
|
1171
|
+
55: 74,
|
|
1172
|
+
62: L,
|
|
1167
1173
|
73: ee
|
|
1168
1174
|
},
|
|
1169
1175
|
{
|
|
1170
|
-
23:
|
|
1171
|
-
55:
|
|
1176
|
+
23: 76,
|
|
1177
|
+
55: 77,
|
|
1178
|
+
62: L,
|
|
1172
1179
|
73: ee
|
|
1173
1180
|
},
|
|
1174
1181
|
{
|
|
1175
|
-
23:
|
|
1182
|
+
23: 78,
|
|
1183
|
+
62: L,
|
|
1176
1184
|
73: F
|
|
1177
1185
|
},
|
|
1178
1186
|
{
|
|
1179
|
-
69:
|
|
1180
|
-
72: [1,
|
|
1181
|
-
78:
|
|
1182
|
-
79:
|
|
1183
|
-
80:
|
|
1184
|
-
81:
|
|
1185
|
-
82:
|
|
1186
|
-
83:
|
|
1187
|
-
84:
|
|
1188
|
-
85:
|
|
1189
|
-
86:
|
|
1190
|
-
87:
|
|
1191
|
-
88:
|
|
1192
|
-
89:
|
|
1193
|
-
90:
|
|
1194
|
-
91:
|
|
1195
|
-
92:
|
|
1196
|
-
93:
|
|
1197
|
-
94:
|
|
1198
|
-
95:
|
|
1199
|
-
96:
|
|
1200
|
-
97:
|
|
1201
|
-
98:
|
|
1202
|
-
99:
|
|
1203
|
-
100:
|
|
1204
|
-
101:
|
|
1205
|
-
102:
|
|
1206
|
-
103:
|
|
1187
|
+
69: 79,
|
|
1188
|
+
72: [1, 80],
|
|
1189
|
+
78: R,
|
|
1190
|
+
79: te,
|
|
1191
|
+
80: ne,
|
|
1192
|
+
81: re,
|
|
1193
|
+
82: ie,
|
|
1194
|
+
83: ae,
|
|
1195
|
+
84: oe,
|
|
1196
|
+
85: se,
|
|
1197
|
+
86: ce,
|
|
1198
|
+
87: le,
|
|
1199
|
+
88: z,
|
|
1200
|
+
89: ue,
|
|
1201
|
+
90: de,
|
|
1202
|
+
91: fe,
|
|
1203
|
+
92: pe,
|
|
1204
|
+
93: B,
|
|
1205
|
+
94: V,
|
|
1206
|
+
95: me,
|
|
1207
|
+
96: H,
|
|
1208
|
+
97: U,
|
|
1209
|
+
98: W,
|
|
1210
|
+
99: he,
|
|
1211
|
+
100: ge,
|
|
1212
|
+
101: _e,
|
|
1213
|
+
102: ve,
|
|
1214
|
+
103: G
|
|
1207
1215
|
},
|
|
1208
1216
|
{
|
|
1209
|
-
57:
|
|
1210
|
-
59: [1,
|
|
1211
|
-
67: [1,
|
|
1212
|
-
68: [1,
|
|
1213
|
-
},
|
|
1214
|
-
{
|
|
1215
|
-
23: 110,
|
|
1216
|
-
73: F
|
|
1217
|
+
57: 107,
|
|
1218
|
+
59: [1, 108],
|
|
1219
|
+
67: [1, 109],
|
|
1220
|
+
68: [1, 110]
|
|
1217
1221
|
},
|
|
1218
1222
|
{
|
|
1219
1223
|
23: 111,
|
|
1224
|
+
62: L,
|
|
1220
1225
|
73: F
|
|
1221
1226
|
},
|
|
1222
|
-
|
|
1227
|
+
e([
|
|
1228
|
+
72,
|
|
1229
|
+
78,
|
|
1230
|
+
79,
|
|
1231
|
+
80,
|
|
1232
|
+
81,
|
|
1233
|
+
82,
|
|
1234
|
+
83,
|
|
1235
|
+
84,
|
|
1236
|
+
85,
|
|
1237
|
+
86,
|
|
1238
|
+
87,
|
|
1239
|
+
88,
|
|
1240
|
+
89,
|
|
1241
|
+
90,
|
|
1242
|
+
91,
|
|
1243
|
+
92,
|
|
1244
|
+
93,
|
|
1245
|
+
94,
|
|
1246
|
+
95,
|
|
1247
|
+
96,
|
|
1248
|
+
97,
|
|
1249
|
+
98,
|
|
1250
|
+
99,
|
|
1251
|
+
100,
|
|
1252
|
+
101,
|
|
1253
|
+
102,
|
|
1254
|
+
103
|
|
1255
|
+
], ye, {
|
|
1223
1256
|
23: 112,
|
|
1257
|
+
62: L,
|
|
1224
1258
|
73: F
|
|
1225
|
-
},
|
|
1259
|
+
}),
|
|
1226
1260
|
{
|
|
1227
1261
|
23: 113,
|
|
1262
|
+
62: L,
|
|
1263
|
+
73: F
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
23: 114,
|
|
1267
|
+
62: L,
|
|
1228
1268
|
73: F
|
|
1229
1269
|
},
|
|
1230
1270
|
e([
|
|
@@ -1258,19 +1298,25 @@ var N = x(), P = (function() {
|
|
|
1258
1298
|
102,
|
|
1259
1299
|
103,
|
|
1260
1300
|
104
|
|
1261
|
-
],
|
|
1301
|
+
], K),
|
|
1262
1302
|
e(I, [2, 6]),
|
|
1263
1303
|
e(I, [2, 16]),
|
|
1264
|
-
e(
|
|
1304
|
+
e(be, [2, 10], { 11: 115 }),
|
|
1265
1305
|
e(I, [2, 18]),
|
|
1266
1306
|
{
|
|
1267
|
-
5: [1,
|
|
1268
|
-
20: [1,
|
|
1307
|
+
5: [1, 117],
|
|
1308
|
+
20: [1, 116]
|
|
1269
1309
|
},
|
|
1270
|
-
{ 5: [1, 117] },
|
|
1271
|
-
e(I, [2, 22]),
|
|
1272
1310
|
{ 5: [1, 118] },
|
|
1311
|
+
e(I, [2, 22]),
|
|
1273
1312
|
{ 5: [1, 119] },
|
|
1313
|
+
e([
|
|
1314
|
+
5,
|
|
1315
|
+
52,
|
|
1316
|
+
66,
|
|
1317
|
+
104
|
|
1318
|
+
], ye),
|
|
1319
|
+
{ 5: [1, 120] },
|
|
1274
1320
|
e(I, [2, 25]),
|
|
1275
1321
|
e(I, [2, 26]),
|
|
1276
1322
|
e(I, [2, 27]),
|
|
@@ -1278,84 +1324,84 @@ var N = x(), P = (function() {
|
|
|
1278
1324
|
e(I, [2, 29]),
|
|
1279
1325
|
e(I, [2, 32]),
|
|
1280
1326
|
e(I, [2, 33]),
|
|
1281
|
-
e(
|
|
1282
|
-
e(
|
|
1283
|
-
e(
|
|
1284
|
-
e(
|
|
1285
|
-
41:
|
|
1286
|
-
7:
|
|
1327
|
+
e(xe, i, { 7: 121 }),
|
|
1328
|
+
e(xe, i, { 7: 122 }),
|
|
1329
|
+
e(xe, i, { 7: 123 }),
|
|
1330
|
+
e(Se, i, {
|
|
1331
|
+
41: 124,
|
|
1332
|
+
7: 125
|
|
1287
1333
|
}),
|
|
1288
|
-
e(
|
|
1289
|
-
43:
|
|
1290
|
-
7:
|
|
1334
|
+
e(Ce, i, {
|
|
1335
|
+
43: 126,
|
|
1336
|
+
7: 127
|
|
1291
1337
|
}),
|
|
1292
|
-
e(
|
|
1293
|
-
7:
|
|
1294
|
-
43:
|
|
1338
|
+
e(Ce, i, {
|
|
1339
|
+
7: 127,
|
|
1340
|
+
43: 128
|
|
1295
1341
|
}),
|
|
1296
|
-
e(
|
|
1297
|
-
46:
|
|
1298
|
-
7:
|
|
1342
|
+
e(we, i, {
|
|
1343
|
+
46: 129,
|
|
1344
|
+
7: 130
|
|
1299
1345
|
}),
|
|
1300
|
-
e(
|
|
1346
|
+
e(xe, i, { 7: 131 }),
|
|
1301
1347
|
{
|
|
1302
|
-
5: [1,
|
|
1303
|
-
52: [1,
|
|
1348
|
+
5: [1, 133],
|
|
1349
|
+
52: [1, 132]
|
|
1304
1350
|
},
|
|
1305
1351
|
{
|
|
1306
|
-
5: [1,
|
|
1307
|
-
52: [1,
|
|
1352
|
+
5: [1, 135],
|
|
1353
|
+
52: [1, 134]
|
|
1308
1354
|
},
|
|
1309
|
-
e(
|
|
1310
|
-
74:
|
|
1311
|
-
75: [1,
|
|
1355
|
+
e(Te, K, {
|
|
1356
|
+
74: 136,
|
|
1357
|
+
75: [1, 137]
|
|
1312
1358
|
}),
|
|
1313
1359
|
{
|
|
1314
|
-
5: [1,
|
|
1315
|
-
52: [1,
|
|
1360
|
+
5: [1, 139],
|
|
1361
|
+
52: [1, 138]
|
|
1316
1362
|
},
|
|
1317
1363
|
{
|
|
1318
|
-
5: [1,
|
|
1319
|
-
52: [1,
|
|
1364
|
+
5: [1, 141],
|
|
1365
|
+
52: [1, 140]
|
|
1320
1366
|
},
|
|
1321
|
-
{ 5: [1,
|
|
1367
|
+
{ 5: [1, 142] },
|
|
1322
1368
|
{
|
|
1323
|
-
23:
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1369
|
+
23: 146,
|
|
1370
|
+
62: L,
|
|
1371
|
+
70: [1, 143],
|
|
1372
|
+
71: [1, 144],
|
|
1373
|
+
72: [1, 145],
|
|
1327
1374
|
73: F
|
|
1328
1375
|
},
|
|
1329
1376
|
{
|
|
1330
|
-
69:
|
|
1331
|
-
78:
|
|
1332
|
-
79:
|
|
1333
|
-
80:
|
|
1334
|
-
81:
|
|
1335
|
-
82:
|
|
1336
|
-
83:
|
|
1337
|
-
84:
|
|
1338
|
-
85:
|
|
1339
|
-
86:
|
|
1340
|
-
87:
|
|
1341
|
-
88:
|
|
1342
|
-
89:
|
|
1343
|
-
90:
|
|
1344
|
-
91:
|
|
1345
|
-
92:
|
|
1346
|
-
93:
|
|
1347
|
-
94:
|
|
1348
|
-
95:
|
|
1349
|
-
96:
|
|
1350
|
-
97:
|
|
1351
|
-
98:
|
|
1352
|
-
99:
|
|
1353
|
-
100:
|
|
1354
|
-
101:
|
|
1355
|
-
102:
|
|
1356
|
-
103:
|
|
1377
|
+
69: 147,
|
|
1378
|
+
78: R,
|
|
1379
|
+
79: te,
|
|
1380
|
+
80: ne,
|
|
1381
|
+
81: re,
|
|
1382
|
+
82: ie,
|
|
1383
|
+
83: ae,
|
|
1384
|
+
84: oe,
|
|
1385
|
+
85: se,
|
|
1386
|
+
86: ce,
|
|
1387
|
+
87: le,
|
|
1388
|
+
88: z,
|
|
1389
|
+
89: ue,
|
|
1390
|
+
90: de,
|
|
1391
|
+
91: fe,
|
|
1392
|
+
92: pe,
|
|
1393
|
+
93: B,
|
|
1394
|
+
94: V,
|
|
1395
|
+
95: me,
|
|
1396
|
+
96: H,
|
|
1397
|
+
97: U,
|
|
1398
|
+
98: W,
|
|
1399
|
+
99: he,
|
|
1400
|
+
100: ge,
|
|
1401
|
+
101: _e,
|
|
1402
|
+
102: ve,
|
|
1403
|
+
103: G
|
|
1357
1404
|
},
|
|
1358
|
-
e(q, [2, 79]),
|
|
1359
1405
|
e(q, [2, 80]),
|
|
1360
1406
|
e(q, [2, 81]),
|
|
1361
1407
|
e(q, [2, 82]),
|
|
@@ -1381,44 +1427,47 @@ var N = x(), P = (function() {
|
|
|
1381
1427
|
e(q, [2, 102]),
|
|
1382
1428
|
e(q, [2, 103]),
|
|
1383
1429
|
e(q, [2, 104]),
|
|
1430
|
+
e(q, [2, 105]),
|
|
1384
1431
|
{
|
|
1385
|
-
23:
|
|
1432
|
+
23: 148,
|
|
1433
|
+
62: L,
|
|
1386
1434
|
73: F
|
|
1387
1435
|
},
|
|
1388
1436
|
{
|
|
1389
|
-
23:
|
|
1390
|
-
60:
|
|
1437
|
+
23: 150,
|
|
1438
|
+
60: 149,
|
|
1439
|
+
62: L,
|
|
1391
1440
|
73: F
|
|
1392
1441
|
},
|
|
1393
|
-
|
|
1394
|
-
|
|
1442
|
+
e(Ee, [2, 68]),
|
|
1443
|
+
e(Ee, [2, 69]),
|
|
1395
1444
|
{
|
|
1396
|
-
58:
|
|
1445
|
+
58: 151,
|
|
1397
1446
|
104: J
|
|
1398
1447
|
},
|
|
1399
1448
|
{
|
|
1400
|
-
58:
|
|
1449
|
+
58: 153,
|
|
1401
1450
|
104: J
|
|
1402
1451
|
},
|
|
1403
1452
|
{
|
|
1404
|
-
58:
|
|
1453
|
+
58: 154,
|
|
1405
1454
|
104: J
|
|
1406
1455
|
},
|
|
1407
1456
|
{
|
|
1408
|
-
58:
|
|
1457
|
+
58: 155,
|
|
1409
1458
|
104: J
|
|
1410
1459
|
},
|
|
1411
1460
|
{
|
|
1412
|
-
4: [1,
|
|
1413
|
-
5: [1,
|
|
1414
|
-
12:
|
|
1415
|
-
13:
|
|
1416
|
-
17: [1,
|
|
1461
|
+
4: [1, 158],
|
|
1462
|
+
5: [1, 160],
|
|
1463
|
+
12: 157,
|
|
1464
|
+
13: 159,
|
|
1465
|
+
17: [1, 156],
|
|
1417
1466
|
51: D,
|
|
1418
1467
|
53: O,
|
|
1419
1468
|
54: k
|
|
1420
1469
|
},
|
|
1421
|
-
{ 5: [1,
|
|
1470
|
+
{ 5: [1, 161] },
|
|
1422
1471
|
e(I, [2, 20]),
|
|
1423
1472
|
e(I, [2, 21]),
|
|
1424
1473
|
e(I, [2, 23]),
|
|
@@ -1432,7 +1481,7 @@ var N = x(), P = (function() {
|
|
|
1432
1481
|
13: 13,
|
|
1433
1482
|
14: c,
|
|
1434
1483
|
15: l,
|
|
1435
|
-
17: [1,
|
|
1484
|
+
17: [1, 162],
|
|
1436
1485
|
18: 16,
|
|
1437
1486
|
19: u,
|
|
1438
1487
|
22: d,
|
|
@@ -1448,8 +1497,8 @@ var N = x(), P = (function() {
|
|
|
1448
1497
|
32: h,
|
|
1449
1498
|
34: g,
|
|
1450
1499
|
36: _,
|
|
1451
|
-
37:
|
|
1452
|
-
38:
|
|
1500
|
+
37: y,
|
|
1501
|
+
38: b,
|
|
1453
1502
|
39: x,
|
|
1454
1503
|
40: S,
|
|
1455
1504
|
42: C,
|
|
@@ -1475,7 +1524,7 @@ var N = x(), P = (function() {
|
|
|
1475
1524
|
13: 13,
|
|
1476
1525
|
14: c,
|
|
1477
1526
|
15: l,
|
|
1478
|
-
17: [1,
|
|
1527
|
+
17: [1, 163],
|
|
1479
1528
|
18: 16,
|
|
1480
1529
|
19: u,
|
|
1481
1530
|
22: d,
|
|
@@ -1491,8 +1540,8 @@ var N = x(), P = (function() {
|
|
|
1491
1540
|
32: h,
|
|
1492
1541
|
34: g,
|
|
1493
1542
|
36: _,
|
|
1494
|
-
37:
|
|
1495
|
-
38:
|
|
1543
|
+
37: y,
|
|
1544
|
+
38: b,
|
|
1496
1545
|
39: x,
|
|
1497
1546
|
40: S,
|
|
1498
1547
|
42: C,
|
|
@@ -1518,7 +1567,7 @@ var N = x(), P = (function() {
|
|
|
1518
1567
|
13: 13,
|
|
1519
1568
|
14: c,
|
|
1520
1569
|
15: l,
|
|
1521
|
-
17: [1,
|
|
1570
|
+
17: [1, 164],
|
|
1522
1571
|
18: 16,
|
|
1523
1572
|
19: u,
|
|
1524
1573
|
22: d,
|
|
@@ -1534,8 +1583,8 @@ var N = x(), P = (function() {
|
|
|
1534
1583
|
32: h,
|
|
1535
1584
|
34: g,
|
|
1536
1585
|
36: _,
|
|
1537
|
-
37:
|
|
1538
|
-
38:
|
|
1586
|
+
37: y,
|
|
1587
|
+
38: b,
|
|
1539
1588
|
39: x,
|
|
1540
1589
|
40: S,
|
|
1541
1590
|
42: C,
|
|
@@ -1552,7 +1601,7 @@ var N = x(), P = (function() {
|
|
|
1552
1601
|
64: P,
|
|
1553
1602
|
73: F
|
|
1554
1603
|
},
|
|
1555
|
-
{ 17: [1,
|
|
1604
|
+
{ 17: [1, 165] },
|
|
1556
1605
|
{
|
|
1557
1606
|
4: a,
|
|
1558
1607
|
5: o,
|
|
@@ -1578,15 +1627,15 @@ var N = x(), P = (function() {
|
|
|
1578
1627
|
32: h,
|
|
1579
1628
|
34: g,
|
|
1580
1629
|
36: _,
|
|
1581
|
-
37:
|
|
1582
|
-
38:
|
|
1630
|
+
37: y,
|
|
1631
|
+
38: b,
|
|
1583
1632
|
39: x,
|
|
1584
1633
|
40: S,
|
|
1585
1634
|
42: C,
|
|
1586
1635
|
44: w,
|
|
1587
1636
|
45: T,
|
|
1588
1637
|
47: E,
|
|
1589
|
-
50: [1,
|
|
1638
|
+
50: [1, 166],
|
|
1590
1639
|
51: D,
|
|
1591
1640
|
53: O,
|
|
1592
1641
|
54: k,
|
|
@@ -1597,7 +1646,7 @@ var N = x(), P = (function() {
|
|
|
1597
1646
|
64: P,
|
|
1598
1647
|
73: F
|
|
1599
1648
|
},
|
|
1600
|
-
{ 17: [1,
|
|
1649
|
+
{ 17: [1, 167] },
|
|
1601
1650
|
{
|
|
1602
1651
|
4: a,
|
|
1603
1652
|
5: o,
|
|
@@ -1623,15 +1672,15 @@ var N = x(), P = (function() {
|
|
|
1623
1672
|
32: h,
|
|
1624
1673
|
34: g,
|
|
1625
1674
|
36: _,
|
|
1626
|
-
37:
|
|
1627
|
-
38:
|
|
1675
|
+
37: y,
|
|
1676
|
+
38: b,
|
|
1628
1677
|
39: x,
|
|
1629
1678
|
40: S,
|
|
1630
1679
|
42: C,
|
|
1631
1680
|
44: w,
|
|
1632
1681
|
45: T,
|
|
1633
1682
|
47: E,
|
|
1634
|
-
49: [1,
|
|
1683
|
+
49: [1, 168],
|
|
1635
1684
|
51: D,
|
|
1636
1685
|
53: O,
|
|
1637
1686
|
54: k,
|
|
@@ -1642,8 +1691,8 @@ var N = x(), P = (function() {
|
|
|
1642
1691
|
64: P,
|
|
1643
1692
|
73: F
|
|
1644
1693
|
},
|
|
1645
|
-
{ 17: [1, 168] },
|
|
1646
1694
|
{ 17: [1, 169] },
|
|
1695
|
+
{ 17: [1, 170] },
|
|
1647
1696
|
{
|
|
1648
1697
|
4: a,
|
|
1649
1698
|
5: o,
|
|
@@ -1669,15 +1718,15 @@ var N = x(), P = (function() {
|
|
|
1669
1718
|
32: h,
|
|
1670
1719
|
34: g,
|
|
1671
1720
|
36: _,
|
|
1672
|
-
37:
|
|
1673
|
-
38:
|
|
1721
|
+
37: y,
|
|
1722
|
+
38: b,
|
|
1674
1723
|
39: x,
|
|
1675
1724
|
40: S,
|
|
1676
1725
|
42: C,
|
|
1677
1726
|
44: w,
|
|
1678
1727
|
45: T,
|
|
1679
1728
|
47: E,
|
|
1680
|
-
48: [1,
|
|
1729
|
+
48: [1, 171],
|
|
1681
1730
|
51: D,
|
|
1682
1731
|
53: O,
|
|
1683
1732
|
54: k,
|
|
@@ -1697,7 +1746,7 @@ var N = x(), P = (function() {
|
|
|
1697
1746
|
13: 13,
|
|
1698
1747
|
14: c,
|
|
1699
1748
|
15: l,
|
|
1700
|
-
17: [1,
|
|
1749
|
+
17: [1, 172],
|
|
1701
1750
|
18: 16,
|
|
1702
1751
|
19: u,
|
|
1703
1752
|
22: d,
|
|
@@ -1713,8 +1762,8 @@ var N = x(), P = (function() {
|
|
|
1713
1762
|
32: h,
|
|
1714
1763
|
34: g,
|
|
1715
1764
|
36: _,
|
|
1716
|
-
37:
|
|
1717
|
-
38:
|
|
1765
|
+
37: y,
|
|
1766
|
+
38: b,
|
|
1718
1767
|
39: x,
|
|
1719
1768
|
40: S,
|
|
1720
1769
|
42: C,
|
|
@@ -1731,125 +1780,131 @@ var N = x(), P = (function() {
|
|
|
1731
1780
|
64: P,
|
|
1732
1781
|
73: F
|
|
1733
1782
|
},
|
|
1734
|
-
{ 16: [1, 172] },
|
|
1735
|
-
e(I, [2, 50]),
|
|
1736
1783
|
{ 16: [1, 173] },
|
|
1784
|
+
e(I, [2, 50]),
|
|
1785
|
+
{ 16: [1, 174] },
|
|
1737
1786
|
e(I, [2, 55]),
|
|
1738
|
-
e(
|
|
1739
|
-
{ 76: [1,
|
|
1740
|
-
{ 16: [1, 175] },
|
|
1741
|
-
e(I, [2, 52]),
|
|
1787
|
+
e(Te, [2, 76]),
|
|
1788
|
+
{ 76: [1, 175] },
|
|
1742
1789
|
{ 16: [1, 176] },
|
|
1790
|
+
e(I, [2, 52]),
|
|
1791
|
+
{ 16: [1, 177] },
|
|
1743
1792
|
e(I, [2, 57]),
|
|
1744
1793
|
e(I, [2, 53]),
|
|
1745
1794
|
{
|
|
1746
|
-
23:
|
|
1795
|
+
23: 178,
|
|
1796
|
+
62: L,
|
|
1747
1797
|
73: F
|
|
1748
1798
|
},
|
|
1749
1799
|
{
|
|
1750
|
-
23:
|
|
1800
|
+
23: 179,
|
|
1801
|
+
62: L,
|
|
1751
1802
|
73: F
|
|
1752
1803
|
},
|
|
1753
1804
|
{
|
|
1754
|
-
23:
|
|
1805
|
+
23: 180,
|
|
1806
|
+
62: L,
|
|
1755
1807
|
73: F
|
|
1756
1808
|
},
|
|
1757
1809
|
{
|
|
1758
|
-
58:
|
|
1810
|
+
58: 181,
|
|
1759
1811
|
104: J
|
|
1760
1812
|
},
|
|
1761
1813
|
{
|
|
1762
|
-
23:
|
|
1763
|
-
|
|
1814
|
+
23: 182,
|
|
1815
|
+
62: L,
|
|
1816
|
+
72: [1, 183],
|
|
1764
1817
|
73: F
|
|
1765
1818
|
},
|
|
1766
1819
|
{
|
|
1767
|
-
58:
|
|
1820
|
+
58: 184,
|
|
1768
1821
|
104: J
|
|
1769
1822
|
},
|
|
1770
1823
|
{
|
|
1771
|
-
58:
|
|
1824
|
+
58: 185,
|
|
1772
1825
|
104: J
|
|
1773
1826
|
},
|
|
1774
1827
|
{
|
|
1775
|
-
66: [1,
|
|
1828
|
+
66: [1, 186],
|
|
1776
1829
|
104: [2, 67]
|
|
1777
1830
|
},
|
|
1778
1831
|
{ 5: [2, 60] },
|
|
1779
|
-
{ 5: [2,
|
|
1832
|
+
{ 5: [2, 106] },
|
|
1780
1833
|
{ 5: [2, 61] },
|
|
1781
1834
|
{ 5: [2, 62] },
|
|
1782
1835
|
{ 5: [2, 63] },
|
|
1783
1836
|
e(I, [2, 17]),
|
|
1784
|
-
e(
|
|
1837
|
+
e(be, [2, 11]),
|
|
1785
1838
|
{
|
|
1786
|
-
13:
|
|
1839
|
+
13: 187,
|
|
1787
1840
|
51: D,
|
|
1788
1841
|
53: O,
|
|
1789
1842
|
54: k
|
|
1790
1843
|
},
|
|
1791
|
-
e(
|
|
1792
|
-
e(
|
|
1844
|
+
e(be, [2, 13]),
|
|
1845
|
+
e(be, [2, 14]),
|
|
1793
1846
|
e(I, [2, 19]),
|
|
1794
1847
|
e(I, [2, 35]),
|
|
1795
1848
|
e(I, [2, 36]),
|
|
1796
1849
|
e(I, [2, 37]),
|
|
1797
1850
|
e(I, [2, 38]),
|
|
1798
|
-
{ 16: [1, 187] },
|
|
1799
|
-
e(I, [2, 39]),
|
|
1800
1851
|
{ 16: [1, 188] },
|
|
1852
|
+
e(I, [2, 39]),
|
|
1853
|
+
{ 16: [1, 189] },
|
|
1801
1854
|
e(I, [2, 40]),
|
|
1802
1855
|
e(I, [2, 41]),
|
|
1803
|
-
{ 16: [1,
|
|
1856
|
+
{ 16: [1, 190] },
|
|
1804
1857
|
e(I, [2, 42]),
|
|
1805
|
-
{ 5: [1, 190] },
|
|
1806
1858
|
{ 5: [1, 191] },
|
|
1807
|
-
{
|
|
1808
|
-
{
|
|
1859
|
+
{ 5: [1, 192] },
|
|
1860
|
+
{ 77: [1, 193] },
|
|
1809
1861
|
{ 5: [1, 194] },
|
|
1862
|
+
{ 5: [1, 195] },
|
|
1810
1863
|
{
|
|
1811
|
-
58:
|
|
1864
|
+
58: 196,
|
|
1812
1865
|
104: J
|
|
1813
1866
|
},
|
|
1814
1867
|
{
|
|
1815
|
-
58:
|
|
1868
|
+
58: 197,
|
|
1816
1869
|
104: J
|
|
1817
1870
|
},
|
|
1818
1871
|
{
|
|
1819
|
-
58:
|
|
1872
|
+
58: 198,
|
|
1820
1873
|
104: J
|
|
1821
1874
|
},
|
|
1822
1875
|
{ 5: [2, 75] },
|
|
1823
1876
|
{
|
|
1824
|
-
58:
|
|
1877
|
+
58: 199,
|
|
1825
1878
|
104: J
|
|
1826
1879
|
},
|
|
1827
1880
|
{
|
|
1828
|
-
23:
|
|
1881
|
+
23: 200,
|
|
1882
|
+
62: L,
|
|
1829
1883
|
73: F
|
|
1830
1884
|
},
|
|
1831
1885
|
{ 5: [2, 58] },
|
|
1832
1886
|
{ 5: [2, 59] },
|
|
1833
1887
|
{
|
|
1834
|
-
23:
|
|
1888
|
+
23: 201,
|
|
1889
|
+
62: L,
|
|
1835
1890
|
73: F
|
|
1836
1891
|
},
|
|
1837
|
-
e(
|
|
1838
|
-
e(
|
|
1839
|
-
7:
|
|
1840
|
-
41:
|
|
1892
|
+
e(be, [2, 12]),
|
|
1893
|
+
e(Se, i, {
|
|
1894
|
+
7: 125,
|
|
1895
|
+
41: 202
|
|
1841
1896
|
}),
|
|
1842
|
-
e(
|
|
1843
|
-
7:
|
|
1844
|
-
43:
|
|
1897
|
+
e(Ce, i, {
|
|
1898
|
+
7: 127,
|
|
1899
|
+
43: 203
|
|
1845
1900
|
}),
|
|
1846
|
-
e(
|
|
1847
|
-
7:
|
|
1848
|
-
46:
|
|
1901
|
+
e(we, i, {
|
|
1902
|
+
7: 130,
|
|
1903
|
+
46: 204
|
|
1849
1904
|
}),
|
|
1850
1905
|
e(I, [2, 49]),
|
|
1851
1906
|
e(I, [2, 54]),
|
|
1852
|
-
e(
|
|
1907
|
+
e(Te, [2, 77]),
|
|
1853
1908
|
e(I, [2, 51]),
|
|
1854
1909
|
e(I, [2, 56]),
|
|
1855
1910
|
{ 5: [2, 70] },
|
|
@@ -1857,7 +1912,7 @@ var N = x(), P = (function() {
|
|
|
1857
1912
|
{ 5: [2, 72] },
|
|
1858
1913
|
{ 5: [2, 73] },
|
|
1859
1914
|
{
|
|
1860
|
-
58:
|
|
1915
|
+
58: 205,
|
|
1861
1916
|
104: J
|
|
1862
1917
|
},
|
|
1863
1918
|
{ 104: [2, 66] },
|
|
@@ -1869,50 +1924,48 @@ var N = x(), P = (function() {
|
|
|
1869
1924
|
defaultActions: {
|
|
1870
1925
|
5: [2, 1],
|
|
1871
1926
|
6: [2, 2],
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
203: [2, 44],
|
|
1890
|
-
204: [2, 74]
|
|
1927
|
+
151: [2, 60],
|
|
1928
|
+
152: [2, 106],
|
|
1929
|
+
153: [2, 61],
|
|
1930
|
+
154: [2, 62],
|
|
1931
|
+
155: [2, 63],
|
|
1932
|
+
181: [2, 75],
|
|
1933
|
+
184: [2, 58],
|
|
1934
|
+
185: [2, 59],
|
|
1935
|
+
196: [2, 70],
|
|
1936
|
+
197: [2, 71],
|
|
1937
|
+
198: [2, 72],
|
|
1938
|
+
199: [2, 73],
|
|
1939
|
+
201: [2, 66],
|
|
1940
|
+
202: [2, 48],
|
|
1941
|
+
203: [2, 46],
|
|
1942
|
+
204: [2, 44],
|
|
1943
|
+
205: [2, 74]
|
|
1891
1944
|
},
|
|
1892
|
-
parseError: /* @__PURE__ */
|
|
1945
|
+
parseError: /* @__PURE__ */ v(function(e, t) {
|
|
1893
1946
|
if (t.recoverable) this.trace(e);
|
|
1894
1947
|
else {
|
|
1895
1948
|
var n = Error(e);
|
|
1896
1949
|
throw n.hash = t, n;
|
|
1897
1950
|
}
|
|
1898
1951
|
}, "parseError"),
|
|
1899
|
-
parse: /* @__PURE__ */
|
|
1952
|
+
parse: /* @__PURE__ */ v(function(e) {
|
|
1900
1953
|
var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0, u = 0, d = 2, f = 1, p = a.slice.call(arguments, 1), m = Object.create(this.lexer), h = { yy: {} };
|
|
1901
1954
|
for (var g in this.yy) Object.prototype.hasOwnProperty.call(this.yy, g) && (h.yy[g] = this.yy[g]);
|
|
1902
1955
|
m.setInput(e, h.yy), h.yy.lexer = m, h.yy.parser = this, m.yylloc === void 0 && (m.yylloc = {});
|
|
1903
1956
|
var _ = m.yylloc;
|
|
1904
1957
|
a.push(_);
|
|
1905
|
-
var
|
|
1958
|
+
var y = m.options && m.options.ranges;
|
|
1906
1959
|
this.parseError = typeof h.yy.parseError == "function" ? h.yy.parseError : Object.getPrototypeOf(this).parseError;
|
|
1907
|
-
function
|
|
1960
|
+
function b(e) {
|
|
1908
1961
|
n.length -= 2 * e, i.length -= e, a.length -= e;
|
|
1909
1962
|
}
|
|
1910
|
-
b
|
|
1963
|
+
v(b, "popStack");
|
|
1911
1964
|
function x() {
|
|
1912
1965
|
var e = r.pop() || m.lex() || f;
|
|
1913
1966
|
return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
|
|
1914
1967
|
}
|
|
1915
|
-
|
|
1968
|
+
v(x, "lex");
|
|
1916
1969
|
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
1917
1970
|
if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
1918
1971
|
var M = "";
|
|
@@ -1936,7 +1989,7 @@ var N = x(), P = (function() {
|
|
|
1936
1989
|
last_line: a[a.length - 1].last_line,
|
|
1937
1990
|
first_column: a[a.length - (k || 1)].first_column,
|
|
1938
1991
|
last_column: a[a.length - 1].last_column
|
|
1939
|
-
},
|
|
1992
|
+
}, y && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
|
|
1940
1993
|
s,
|
|
1941
1994
|
l,
|
|
1942
1995
|
c,
|
|
@@ -1953,14 +2006,14 @@ var N = x(), P = (function() {
|
|
|
1953
2006
|
return !0;
|
|
1954
2007
|
}, "parse")
|
|
1955
2008
|
};
|
|
1956
|
-
|
|
2009
|
+
De.lexer = /* @__PURE__ */ (function() {
|
|
1957
2010
|
return {
|
|
1958
2011
|
EOF: 1,
|
|
1959
|
-
parseError: /* @__PURE__ */
|
|
2012
|
+
parseError: /* @__PURE__ */ v(function(e, t) {
|
|
1960
2013
|
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
1961
2014
|
else throw Error(e);
|
|
1962
2015
|
}, "parseError"),
|
|
1963
|
-
setInput: /* @__PURE__ */
|
|
2016
|
+
setInput: /* @__PURE__ */ v(function(e, t) {
|
|
1964
2017
|
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 = {
|
|
1965
2018
|
first_line: 1,
|
|
1966
2019
|
first_column: 0,
|
|
@@ -1968,11 +2021,11 @@ var N = x(), P = (function() {
|
|
|
1968
2021
|
last_column: 0
|
|
1969
2022
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
1970
2023
|
}, "setInput"),
|
|
1971
|
-
input: /* @__PURE__ */
|
|
2024
|
+
input: /* @__PURE__ */ v(function() {
|
|
1972
2025
|
var e = this._input[0];
|
|
1973
2026
|
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;
|
|
1974
2027
|
}, "input"),
|
|
1975
|
-
unput: /* @__PURE__ */
|
|
2028
|
+
unput: /* @__PURE__ */ v(function(e) {
|
|
1976
2029
|
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
1977
2030
|
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
1978
2031
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
@@ -1985,10 +2038,10 @@ var N = x(), P = (function() {
|
|
|
1985
2038
|
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
|
|
1986
2039
|
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
1987
2040
|
}, "unput"),
|
|
1988
|
-
more: /* @__PURE__ */
|
|
2041
|
+
more: /* @__PURE__ */ v(function() {
|
|
1989
2042
|
return this._more = !0, this;
|
|
1990
2043
|
}, "more"),
|
|
1991
|
-
reject: /* @__PURE__ */
|
|
2044
|
+
reject: /* @__PURE__ */ v(function() {
|
|
1992
2045
|
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
1993
2046
|
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(), {
|
|
1994
2047
|
text: "",
|
|
@@ -1997,22 +2050,22 @@ var N = x(), P = (function() {
|
|
|
1997
2050
|
});
|
|
1998
2051
|
return this;
|
|
1999
2052
|
}, "reject"),
|
|
2000
|
-
less: /* @__PURE__ */
|
|
2053
|
+
less: /* @__PURE__ */ v(function(e) {
|
|
2001
2054
|
this.unput(this.match.slice(e));
|
|
2002
2055
|
}, "less"),
|
|
2003
|
-
pastInput: /* @__PURE__ */
|
|
2056
|
+
pastInput: /* @__PURE__ */ v(function() {
|
|
2004
2057
|
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
2005
2058
|
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
2006
2059
|
}, "pastInput"),
|
|
2007
|
-
upcomingInput: /* @__PURE__ */
|
|
2060
|
+
upcomingInput: /* @__PURE__ */ v(function() {
|
|
2008
2061
|
var e = this.match;
|
|
2009
2062
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
2010
2063
|
}, "upcomingInput"),
|
|
2011
|
-
showPosition: /* @__PURE__ */
|
|
2064
|
+
showPosition: /* @__PURE__ */ v(function() {
|
|
2012
2065
|
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
2013
2066
|
return e + this.upcomingInput() + "\n" + t + "^";
|
|
2014
2067
|
}, "showPosition"),
|
|
2015
|
-
test_match: /* @__PURE__ */
|
|
2068
|
+
test_match: /* @__PURE__ */ v(function(e, t) {
|
|
2016
2069
|
var n, r, i;
|
|
2017
2070
|
if (this.options.backtrack_lexer && (i = {
|
|
2018
2071
|
yylineno: this.yylineno,
|
|
@@ -2045,7 +2098,7 @@ var N = x(), P = (function() {
|
|
|
2045
2098
|
}
|
|
2046
2099
|
return !1;
|
|
2047
2100
|
}, "test_match"),
|
|
2048
|
-
next: /* @__PURE__ */
|
|
2101
|
+
next: /* @__PURE__ */ v(function() {
|
|
2049
2102
|
if (this.done) return this.EOF;
|
|
2050
2103
|
this._input || (this.done = !0);
|
|
2051
2104
|
var e, t, n, r;
|
|
@@ -2067,29 +2120,29 @@ var N = x(), P = (function() {
|
|
|
2067
2120
|
line: this.yylineno
|
|
2068
2121
|
});
|
|
2069
2122
|
}, "next"),
|
|
2070
|
-
lex: /* @__PURE__ */
|
|
2123
|
+
lex: /* @__PURE__ */ v(function() {
|
|
2071
2124
|
return this.next() || this.lex();
|
|
2072
2125
|
}, "lex"),
|
|
2073
|
-
begin: /* @__PURE__ */
|
|
2126
|
+
begin: /* @__PURE__ */ v(function(e) {
|
|
2074
2127
|
this.conditionStack.push(e);
|
|
2075
2128
|
}, "begin"),
|
|
2076
|
-
popState: /* @__PURE__ */
|
|
2129
|
+
popState: /* @__PURE__ */ v(function() {
|
|
2077
2130
|
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
2078
2131
|
}, "popState"),
|
|
2079
|
-
_currentRules: /* @__PURE__ */
|
|
2132
|
+
_currentRules: /* @__PURE__ */ v(function() {
|
|
2080
2133
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
2081
2134
|
}, "_currentRules"),
|
|
2082
|
-
topState: /* @__PURE__ */
|
|
2135
|
+
topState: /* @__PURE__ */ v(function(e) {
|
|
2083
2136
|
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
2084
2137
|
}, "topState"),
|
|
2085
|
-
pushState: /* @__PURE__ */
|
|
2138
|
+
pushState: /* @__PURE__ */ v(function(e) {
|
|
2086
2139
|
this.begin(e);
|
|
2087
2140
|
}, "pushState"),
|
|
2088
|
-
stateStackSize: /* @__PURE__ */
|
|
2141
|
+
stateStackSize: /* @__PURE__ */ v(function() {
|
|
2089
2142
|
return this.conditionStack.length;
|
|
2090
2143
|
}, "stateStackSize"),
|
|
2091
2144
|
options: { "case-insensitive": !0 },
|
|
2092
|
-
performAction: /* @__PURE__ */
|
|
2145
|
+
performAction: /* @__PURE__ */ v(function(e, t, n, r) {
|
|
2093
2146
|
switch (n) {
|
|
2094
2147
|
case 0: return 5;
|
|
2095
2148
|
case 1: break;
|
|
@@ -2203,7 +2256,7 @@ var N = x(), P = (function() {
|
|
|
2203
2256
|
/^(?:[^\}]+)/i,
|
|
2204
2257
|
/^(?:\}(?=\s+as\s))/i,
|
|
2205
2258
|
/^(?:\})/i,
|
|
2206
|
-
/^(?:[
|
|
2259
|
+
/^(?:[^<>:\n,;@\s]+(?=\s*@\{))/i,
|
|
2207
2260
|
/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,
|
|
2208
2261
|
/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,
|
|
2209
2262
|
/^(?:[^<>:\n,;@]*<[^\n]*)/i,
|
|
@@ -2230,10 +2283,10 @@ var N = x(), P = (function() {
|
|
|
2230
2283
|
/^(?:end\b)/i,
|
|
2231
2284
|
/^(?:left of\b)/i,
|
|
2232
2285
|
/^(?:right of\b)/i,
|
|
2233
|
-
/^(?:links\
|
|
2234
|
-
/^(?:link\
|
|
2235
|
-
/^(?:properties\
|
|
2236
|
-
/^(?:details\
|
|
2286
|
+
/^(?:links(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,
|
|
2287
|
+
/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,
|
|
2288
|
+
/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,
|
|
2289
|
+
/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,
|
|
2237
2290
|
/^(?:over\b)/i,
|
|
2238
2291
|
/^(?:note\b)/i,
|
|
2239
2292
|
/^(?:activate\b)/i,
|
|
@@ -2427,10 +2480,10 @@ var N = x(), P = (function() {
|
|
|
2427
2480
|
}
|
|
2428
2481
|
};
|
|
2429
2482
|
})();
|
|
2430
|
-
function
|
|
2483
|
+
function Oe() {
|
|
2431
2484
|
this.yy = {};
|
|
2432
2485
|
}
|
|
2433
|
-
return
|
|
2486
|
+
return v(Oe, "Parser"), Oe.prototype = De, De.Parser = Oe, new Oe();
|
|
2434
2487
|
})();
|
|
2435
2488
|
P.parser = P;
|
|
2436
2489
|
var F = P, I = {
|
|
@@ -2485,10 +2538,10 @@ var F = P, I = {
|
|
|
2485
2538
|
CENTRAL_CONNECTION: 59,
|
|
2486
2539
|
CENTRAL_CONNECTION_REVERSE: 60,
|
|
2487
2540
|
CENTRAL_CONNECTION_DUAL: 61
|
|
2488
|
-
},
|
|
2541
|
+
}, L = {
|
|
2489
2542
|
FILLED: 0,
|
|
2490
2543
|
OPEN: 1
|
|
2491
|
-
},
|
|
2544
|
+
}, ee = {
|
|
2492
2545
|
LEFTOF: 0,
|
|
2493
2546
|
RIGHTOF: 1,
|
|
2494
2547
|
OVER: 2
|
|
@@ -2516,10 +2569,10 @@ var F = P, I = {
|
|
|
2516
2569
|
currentBox: void 0,
|
|
2517
2570
|
lastCreated: void 0,
|
|
2518
2571
|
lastDestroyed: void 0
|
|
2519
|
-
})), this.setAccTitle =
|
|
2572
|
+
})), this.setAccTitle = a, this.setAccDescription = i, this.setDiagramTitle = f, this.getAccTitle = h, this.getAccDescription = o, this.getDiagramTitle = e, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(c().wrap), this.LINETYPE = I, this.ARROWTYPE = L, this.PLACEMENT = ee;
|
|
2520
2573
|
}
|
|
2521
2574
|
static {
|
|
2522
|
-
|
|
2575
|
+
v(this, "SequenceDB");
|
|
2523
2576
|
}
|
|
2524
2577
|
addBox(e) {
|
|
2525
2578
|
this.state.records.boxes.push({
|
|
@@ -2660,17 +2713,17 @@ var F = P, I = {
|
|
|
2660
2713
|
};
|
|
2661
2714
|
}
|
|
2662
2715
|
autoWrap() {
|
|
2663
|
-
return this.state.records.wrapEnabled === void 0 ?
|
|
2716
|
+
return this.state.records.wrapEnabled === void 0 ? c().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
|
|
2664
2717
|
}
|
|
2665
2718
|
clear() {
|
|
2666
|
-
this.state.reset(),
|
|
2719
|
+
this.state.reset(), s();
|
|
2667
2720
|
}
|
|
2668
|
-
parseMessage(
|
|
2669
|
-
let
|
|
2670
|
-
text:
|
|
2671
|
-
wrap:
|
|
2721
|
+
parseMessage(e) {
|
|
2722
|
+
let t = e.trim(), { wrap: n, cleanedText: r } = this.extractWrap(t), i = {
|
|
2723
|
+
text: r,
|
|
2724
|
+
wrap: n
|
|
2672
2725
|
};
|
|
2673
|
-
return
|
|
2726
|
+
return y.debug(`parseMessage: ${JSON.stringify(i)}`), i;
|
|
2674
2727
|
}
|
|
2675
2728
|
parseBoxData(e) {
|
|
2676
2729
|
let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
|
|
@@ -2681,7 +2734,7 @@ var F = P, I = {
|
|
|
2681
2734
|
}
|
|
2682
2735
|
let { wrap: i, cleanedText: a } = this.extractWrap(r);
|
|
2683
2736
|
return {
|
|
2684
|
-
text: a ?
|
|
2737
|
+
text: a ? _(a, c()) : void 0,
|
|
2685
2738
|
color: n,
|
|
2686
2739
|
wrap: i
|
|
2687
2740
|
};
|
|
@@ -2703,39 +2756,39 @@ var F = P, I = {
|
|
|
2703
2756
|
placement: t
|
|
2704
2757
|
});
|
|
2705
2758
|
}
|
|
2706
|
-
addLinks(
|
|
2707
|
-
let
|
|
2759
|
+
addLinks(e, t) {
|
|
2760
|
+
let n = this.getActor(e);
|
|
2708
2761
|
try {
|
|
2709
|
-
let e =
|
|
2762
|
+
let e = _(t.text, c());
|
|
2710
2763
|
e = e.replace(/=/g, "="), e = e.replace(/&/g, "&");
|
|
2711
|
-
let
|
|
2712
|
-
this.insertLinks(
|
|
2713
|
-
} catch (
|
|
2714
|
-
|
|
2764
|
+
let r = JSON.parse(e);
|
|
2765
|
+
this.insertLinks(n, r);
|
|
2766
|
+
} catch (e) {
|
|
2767
|
+
y.error("error while parsing actor link text", e);
|
|
2715
2768
|
}
|
|
2716
2769
|
}
|
|
2717
|
-
addALink(
|
|
2718
|
-
let
|
|
2770
|
+
addALink(e, t) {
|
|
2771
|
+
let n = this.getActor(e);
|
|
2719
2772
|
try {
|
|
2720
|
-
let e = {},
|
|
2721
|
-
|
|
2722
|
-
let a =
|
|
2723
|
-
e[a] =
|
|
2724
|
-
} catch (
|
|
2725
|
-
|
|
2773
|
+
let e = {}, r = _(t.text, c()), i = r.indexOf("@");
|
|
2774
|
+
r = r.replace(/=/g, "="), r = r.replace(/&/g, "&");
|
|
2775
|
+
let a = r.slice(0, i - 1).trim();
|
|
2776
|
+
e[a] = r.slice(i + 1).trim(), this.insertLinks(n, e);
|
|
2777
|
+
} catch (e) {
|
|
2778
|
+
y.error("error while parsing actor link text", e);
|
|
2726
2779
|
}
|
|
2727
2780
|
}
|
|
2728
2781
|
insertLinks(e, t) {
|
|
2729
2782
|
if (e.links == null) e.links = t;
|
|
2730
2783
|
else for (let n in t) e.links[n] = t[n];
|
|
2731
2784
|
}
|
|
2732
|
-
addProperties(
|
|
2733
|
-
let
|
|
2785
|
+
addProperties(e, t) {
|
|
2786
|
+
let n = this.getActor(e);
|
|
2734
2787
|
try {
|
|
2735
|
-
let e =
|
|
2736
|
-
this.insertProperties(
|
|
2737
|
-
} catch (
|
|
2738
|
-
|
|
2788
|
+
let e = _(t.text, c()), r = JSON.parse(e);
|
|
2789
|
+
this.insertProperties(n, r);
|
|
2790
|
+
} catch (e) {
|
|
2791
|
+
y.error("error while parsing actor properties text", e);
|
|
2739
2792
|
}
|
|
2740
2793
|
}
|
|
2741
2794
|
insertProperties(e, t) {
|
|
@@ -2745,13 +2798,13 @@ var F = P, I = {
|
|
|
2745
2798
|
boxEnd() {
|
|
2746
2799
|
this.state.records.currentBox = void 0;
|
|
2747
2800
|
}
|
|
2748
|
-
addDetails(
|
|
2749
|
-
let
|
|
2801
|
+
addDetails(e, t) {
|
|
2802
|
+
let n = this.getActor(e), r = document.getElementById(t.text);
|
|
2750
2803
|
try {
|
|
2751
|
-
let e =
|
|
2752
|
-
t.properties && this.insertProperties(
|
|
2753
|
-
} catch (
|
|
2754
|
-
|
|
2804
|
+
let e = r.innerHTML, t = JSON.parse(e);
|
|
2805
|
+
t.properties && this.insertProperties(n, t.properties), t.links && this.insertLinks(n, t.links);
|
|
2806
|
+
} catch (e) {
|
|
2807
|
+
y.error("error while parsing actor details text", e);
|
|
2755
2808
|
}
|
|
2756
2809
|
}
|
|
2757
2810
|
getActorProperty(e, t) {
|
|
@@ -2857,7 +2910,7 @@ var F = P, I = {
|
|
|
2857
2910
|
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
2858
2911
|
break;
|
|
2859
2912
|
case "setAccTitle":
|
|
2860
|
-
|
|
2913
|
+
a(e.text);
|
|
2861
2914
|
break;
|
|
2862
2915
|
case "parStart":
|
|
2863
2916
|
this.addSignal(void 0, void 0, e.parText, e.signalType);
|
|
@@ -2884,10 +2937,10 @@ var F = P, I = {
|
|
|
2884
2937
|
}
|
|
2885
2938
|
}
|
|
2886
2939
|
getConfig() {
|
|
2887
|
-
return
|
|
2940
|
+
return c().sequence;
|
|
2888
2941
|
}
|
|
2889
|
-
}, ne = /* @__PURE__ */
|
|
2890
|
-
let t = e.dropShadow ?? "none", { look: n } =
|
|
2942
|
+
}, ne = /* @__PURE__ */ v((e) => {
|
|
2943
|
+
let t = e.dropShadow ?? "none", { look: n } = c();
|
|
2891
2944
|
return `.actor {
|
|
2892
2945
|
stroke: ${e.actorBorder};
|
|
2893
2946
|
fill: ${e.actorBkg};
|
|
@@ -2987,10 +3040,17 @@ var F = P, I = {
|
|
|
2987
3040
|
fill: ${e.noteBkgColor};
|
|
2988
3041
|
}
|
|
2989
3042
|
|
|
3043
|
+
/*
|
|
3044
|
+
* No font-weight here, deliberately. Note text renders inside tspan elements, and a weight emitted at
|
|
3045
|
+
* tspan level outranks the inline style drawText puts on the parent text element from the
|
|
3046
|
+
* sequence.noteFontWeight config key -- so that documented key would never reach the glyphs.
|
|
3047
|
+
* The theme variable formerly emitted here is a different value from that config key, and
|
|
3048
|
+
* git/styles.js reads it as its own bold-label weight under redux and neo, so it cannot be
|
|
3049
|
+
* lowered there either.
|
|
3050
|
+
*/
|
|
2990
3051
|
.noteText, .noteText > tspan {
|
|
2991
3052
|
fill: ${e.noteTextColor};
|
|
2992
3053
|
stroke: none;
|
|
2993
|
-
${e.noteFontWeight ? `font-weight: ${e.noteFontWeight};` : ""}
|
|
2994
3054
|
}
|
|
2995
3055
|
|
|
2996
3056
|
.activation0 {
|
|
@@ -3028,10 +3088,33 @@ var F = P, I = {
|
|
|
3028
3088
|
stroke: ${e.nodeBorder};
|
|
3029
3089
|
}
|
|
3030
3090
|
`;
|
|
3031
|
-
}, "getStyles"),
|
|
3091
|
+
}, "getStyles"), re = 44, ie = 6, ae = 6, oe = /* @__PURE__ */ v((e, t) => e.actorTextHeight ?? S.calculateTextDimensions(e.description ?? "", {
|
|
3092
|
+
fontFamily: t.actorFontFamily,
|
|
3093
|
+
fontSize: t.actorFontSize,
|
|
3094
|
+
fontWeight: t.actorFontWeight
|
|
3095
|
+
}).height, "actorLabelHeight"), se = /* @__PURE__ */ v((e) => re + ie + e + ae, "actorStackHeight"), ce = /* @__PURE__ */ v((e, t, n) => {
|
|
3096
|
+
let r = e + t, i = r - ae - n / 2;
|
|
3097
|
+
return {
|
|
3098
|
+
lifelineStartY: r,
|
|
3099
|
+
glyphBottomY: r - ae - n - ie,
|
|
3100
|
+
labelCenterY: i
|
|
3101
|
+
};
|
|
3102
|
+
}, "headerBands"), le = /* @__PURE__ */ v((e, t) => {
|
|
3103
|
+
let n = e + ae, r = n + re;
|
|
3104
|
+
return {
|
|
3105
|
+
glyphTopY: n,
|
|
3106
|
+
glyphBottomY: r,
|
|
3107
|
+
labelCenterY: r + ie + t / 2,
|
|
3108
|
+
stackHeight: se(t)
|
|
3109
|
+
};
|
|
3110
|
+
}, "footerBands"), z = 36, ue = -5, de = 60, fe = de - ue, pe = /* @__PURE__ */ v((e, t, n, r) => {
|
|
3111
|
+
if (t.look !== "neo") return null;
|
|
3112
|
+
let i = oe(e, t);
|
|
3113
|
+
return n ? le(r, i) : ce(r, e.height, i);
|
|
3114
|
+
}, "neoBands"), B = "actor-top", V = "actor-bottom", me = "actor-box", H = "actor-man", U = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), W = /* @__PURE__ */ v((e, t) => e?.length ? e[t % e.length] : void 0, "paletteColor"), he = /* @__PURE__ */ v(function(e, t) {
|
|
3032
3115
|
let n = E(e, t);
|
|
3033
|
-
return
|
|
3034
|
-
}, "drawRect"),
|
|
3116
|
+
return g().look === "neo" && n.attr("data-look", "neo"), n;
|
|
3117
|
+
}, "drawRect"), ge = /* @__PURE__ */ v(function(e, t, n, r, i) {
|
|
3035
3118
|
if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
|
|
3036
3119
|
height: 0,
|
|
3037
3120
|
width: 0
|
|
@@ -3048,44 +3131,44 @@ var F = P, I = {
|
|
|
3048
3131
|
var p = 20;
|
|
3049
3132
|
for (let e in a) {
|
|
3050
3133
|
var m = l.append("a"), h = (0, N.sanitizeUrl)(a[e]);
|
|
3051
|
-
m.attr("xlink:href", h), m.attr("target", "_blank"),
|
|
3134
|
+
m.attr("xlink:href", h), m.attr("target", "_blank"), We(r)(e, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
|
|
3052
3135
|
}
|
|
3053
3136
|
}
|
|
3054
3137
|
return f.attr("height", p), {
|
|
3055
3138
|
height: s.height + p,
|
|
3056
3139
|
width: d
|
|
3057
3140
|
};
|
|
3058
|
-
}, "drawPopup"),
|
|
3141
|
+
}, "drawPopup"), _e = /* @__PURE__ */ v(function(e) {
|
|
3059
3142
|
return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
3060
|
-
}, "popupMenuToggle"),
|
|
3061
|
-
let i = e.append("foreignObject"), a = await
|
|
3143
|
+
}, "popupMenuToggle"), ve = /* @__PURE__ */ v(async function(e, t, r = null) {
|
|
3144
|
+
let i = e.append("foreignObject"), a = await n(t.text, g()), o = i.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(a).node().getBoundingClientRect();
|
|
3062
3145
|
if (i.attr("height", Math.round(o.height)).attr("width", Math.round(o.width)), t.class === "noteText") {
|
|
3063
3146
|
let n = e.node().firstChild;
|
|
3064
3147
|
n.setAttribute("height", o.height + 2 * t.textMargin);
|
|
3065
3148
|
let r = n.getBBox();
|
|
3066
3149
|
i.attr("x", Math.round(r.x + r.width / 2 - o.width / 2)).attr("y", Math.round(r.y + r.height / 2 - o.height / 2));
|
|
3067
|
-
} else if (
|
|
3068
|
-
let { startx: e, stopx:
|
|
3069
|
-
if (e >
|
|
3150
|
+
} else if (r) {
|
|
3151
|
+
let { startx: e, stopx: n, starty: a } = r;
|
|
3152
|
+
if (e > n) {
|
|
3070
3153
|
let t = e;
|
|
3071
|
-
e =
|
|
3154
|
+
e = n, n = t;
|
|
3072
3155
|
}
|
|
3073
|
-
i.attr("x", Math.round(e + Math.abs(e -
|
|
3156
|
+
i.attr("x", Math.round(e + Math.abs(e - n) / 2 - o.width / 2)), t.class === "loopText" ? i.attr("y", Math.round(a)) : i.attr("y", Math.round(a - o.height));
|
|
3074
3157
|
}
|
|
3075
3158
|
return [i];
|
|
3076
|
-
}, "drawKatex"), G = /* @__PURE__ */
|
|
3077
|
-
let n = 0, r = 0, i = t.text.split(m.lineBreakRegex), [a, o] = C(t.fontSize), s = [], c = 0, l = /* @__PURE__ */
|
|
3159
|
+
}, "drawKatex"), G = /* @__PURE__ */ v(function(e, t) {
|
|
3160
|
+
let n = 0, r = 0, i = t.text.split(m.lineBreakRegex), [a, o] = C(t.fontSize), s = [], c = 0, l = /* @__PURE__ */ v(() => t.y, "yfunc");
|
|
3078
3161
|
if (t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0) switch (t.valign) {
|
|
3079
3162
|
case "top":
|
|
3080
3163
|
case "start":
|
|
3081
|
-
l = /* @__PURE__ */
|
|
3164
|
+
l = /* @__PURE__ */ v(() => Math.round(t.y + t.textMargin), "yfunc");
|
|
3082
3165
|
break;
|
|
3083
3166
|
case "middle":
|
|
3084
3167
|
case "center":
|
|
3085
|
-
l = /* @__PURE__ */
|
|
3168
|
+
l = /* @__PURE__ */ v(() => Math.round(t.y + (n + r + t.textMargin) / 2), "yfunc");
|
|
3086
3169
|
break;
|
|
3087
3170
|
case "bottom":
|
|
3088
|
-
case "end": l = /* @__PURE__ */
|
|
3171
|
+
case "end": l = /* @__PURE__ */ v(() => Math.round(t.y + (n + r + 2 * t.textMargin) - t.textMargin), "yfunc");
|
|
3089
3172
|
}
|
|
3090
3173
|
if (t.anchor !== void 0 && t.textMargin !== void 0 && t.width !== void 0) switch (t.anchor) {
|
|
3091
3174
|
case "left":
|
|
@@ -3111,210 +3194,212 @@ var F = P, I = {
|
|
|
3111
3194
|
t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (r += (i._groups || i)[0][0].getBBox().height, n = r), s.push(i);
|
|
3112
3195
|
}
|
|
3113
3196
|
return s;
|
|
3114
|
-
}, "drawText"),
|
|
3197
|
+
}, "drawText"), ye = /* @__PURE__ */ v(function(e, t) {
|
|
3115
3198
|
function n(e, t, n, r, i) {
|
|
3116
3199
|
return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
|
|
3117
3200
|
}
|
|
3118
|
-
|
|
3201
|
+
v(n, "genPoints");
|
|
3119
3202
|
let r = e.append("polygon");
|
|
3120
3203
|
return r.attr("points", n(t.x, t.y, t.width, t.height, 7)), r.attr("class", "labelBox"), t.y += t.height / 2, G(e, t), r;
|
|
3121
|
-
}, "drawLabel"), K = -1,
|
|
3204
|
+
}, "drawLabel"), K = -1, be = /* @__PURE__ */ v((e, t, n, r) => {
|
|
3122
3205
|
e.select && n.forEach((n) => {
|
|
3123
3206
|
let i = t.get(n), a = e.select("#actor" + i.actorCnt);
|
|
3124
3207
|
!r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
|
|
3125
3208
|
});
|
|
3126
|
-
}, "fixLifeLineHeights"),
|
|
3127
|
-
let o =
|
|
3128
|
-
var
|
|
3129
|
-
|
|
3130
|
-
let
|
|
3131
|
-
var
|
|
3132
|
-
t.properties?.class ?
|
|
3133
|
-
let
|
|
3134
|
-
if (U.has(u) && (
|
|
3209
|
+
}, "fixLifeLineHeights"), xe = /* @__PURE__ */ v(function(e, t, n, r, i, a) {
|
|
3210
|
+
let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m } = f, h = e.append("g").lower();
|
|
3211
|
+
var g = h;
|
|
3212
|
+
r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", _e(`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), l === "neo" && g.attr("data-look", "neo"));
|
|
3213
|
+
let _ = j();
|
|
3214
|
+
var v = "actor";
|
|
3215
|
+
t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", v += r ? ` ${V}` : ` ${B}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = v, _.rx = 3, _.ry = 3, _.name = t.name, l === "neo" && (_.rx = 6, _.ry = 6);
|
|
3216
|
+
let y = he(g, _), b = a.get(t.name) ?? 0;
|
|
3217
|
+
if (U.has(u) && (y.style("stroke", W(m, b)), y.style("fill", W(p, b))), l === "neo" && y.attr("filter", `url(#${Be(i)})`), t.rectData = _, t.properties?.icon) {
|
|
3135
3218
|
let e = t.properties.icon.trim();
|
|
3136
|
-
e.charAt(0) === "@" ? A(
|
|
3219
|
+
e.charAt(0) === "@" ? A(g, _.x + _.width - 20, _.y + 10, e.substr(1)) : O(g, _.x + _.width - 20, _.y + 10, e);
|
|
3137
3220
|
}
|
|
3138
|
-
|
|
3139
|
-
let
|
|
3140
|
-
if (
|
|
3141
|
-
let e =
|
|
3142
|
-
t.height = e.height,
|
|
3221
|
+
r || (g.attr("data-et", "participant"), g.attr("data-type", "participant"), g.attr("data-id", t.name)), Y(n, d(t.description))(t.description, g, _.x, _.y, _.width, _.height, { class: `actor ${me}` }, n);
|
|
3222
|
+
let x = t.height;
|
|
3223
|
+
if (y.node) {
|
|
3224
|
+
let e = y.node().getBBox();
|
|
3225
|
+
n.look !== "neo" && (t.height = e.height, x = e.height);
|
|
3143
3226
|
}
|
|
3144
|
-
return
|
|
3145
|
-
}, "drawActorTypeParticipant"),
|
|
3146
|
-
let o =
|
|
3147
|
-
var
|
|
3148
|
-
|
|
3149
|
-
let
|
|
3150
|
-
var
|
|
3151
|
-
t.properties?.class ?
|
|
3152
|
-
let
|
|
3153
|
-
...
|
|
3154
|
-
x:
|
|
3155
|
-
y:
|
|
3227
|
+
return x;
|
|
3228
|
+
}, "drawActorTypeParticipant"), Se = /* @__PURE__ */ v(function(e, t, n, r, i, a) {
|
|
3229
|
+
let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m } = f, h = e.append("g").lower();
|
|
3230
|
+
var g = h;
|
|
3231
|
+
r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", _e(`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), l === "neo" && g.attr("data-look", "neo"));
|
|
3232
|
+
let _ = j();
|
|
3233
|
+
var v = "actor";
|
|
3234
|
+
t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", v += r ? ` ${V}` : ` ${B}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, n.look === "neo" && (_.height = t.height - 6);
|
|
3235
|
+
let y = {
|
|
3236
|
+
..._,
|
|
3237
|
+
x: _.x + -6,
|
|
3238
|
+
y: _.y + 6,
|
|
3156
3239
|
class: "actor"
|
|
3157
|
-
},
|
|
3158
|
-
t.rectData =
|
|
3159
|
-
let
|
|
3160
|
-
if (U.has(u) && (
|
|
3240
|
+
}, b = he(g, _), x = he(g, y);
|
|
3241
|
+
t.rectData = _, l === "neo" && g.attr("filter", `url(#${Be(i)})`);
|
|
3242
|
+
let S = a.get(t.name) ?? 0;
|
|
3243
|
+
if (U.has(u) && (b.style("stroke", W(m, S)), b.style("fill", W(p, S)), x.style("stroke", W(m, S)), x.style("fill", W(p, S))), t.properties?.icon) {
|
|
3161
3244
|
let e = t.properties.icon.trim();
|
|
3162
|
-
e.charAt(0) === "@" ? A(
|
|
3245
|
+
e.charAt(0) === "@" ? A(g, _.x + _.width - 20, _.y + 10, e.substr(1)) : O(g, _.x + _.width - 20, _.y + 10, e);
|
|
3163
3246
|
}
|
|
3164
|
-
Y(
|
|
3165
|
-
let
|
|
3166
|
-
if (
|
|
3167
|
-
let e =
|
|
3168
|
-
t.height = e.height,
|
|
3247
|
+
Y(n, d(t.description))(t.description, g, _.x - 6, _.y + 6, _.width, _.height, { class: `actor ${me}` }, n);
|
|
3248
|
+
let C = t.height;
|
|
3249
|
+
if (b.node) {
|
|
3250
|
+
let e = b.node().getBBox();
|
|
3251
|
+
n.look !== "neo" && (t.height = e.height, C = e.height);
|
|
3169
3252
|
}
|
|
3170
|
-
return
|
|
3171
|
-
}, "drawActorTypeCollections"),
|
|
3172
|
-
let o =
|
|
3173
|
-
|
|
3174
|
-
let
|
|
3175
|
-
t.properties?.class ?
|
|
3176
|
-
let
|
|
3177
|
-
a ${
|
|
3178
|
-
h ${
|
|
3179
|
-
a ${
|
|
3253
|
+
return r || (g.attr("data-et", "participant"), g.attr("data-type", "collections"), g.attr("data-id", t.name)), C;
|
|
3254
|
+
}, "drawActorTypeCollections"), Ce = /* @__PURE__ */ v(function(e, t, n, r, i, a) {
|
|
3255
|
+
let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m } = f, h = e.append("g").lower(), g = h;
|
|
3256
|
+
r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", _e(`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), l === "neo" && g.attr("data-look", "neo"));
|
|
3257
|
+
let _ = j(), v = "actor";
|
|
3258
|
+
t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", v += r ? ` ${V}` : ` ${B}`, g.attr("class", v), _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.name = t.name;
|
|
3259
|
+
let y = _.height / 2, b = y / (2.5 + _.height / 50), x = g.append("g"), S = g.append("g"), C = `M ${_.x},${_.y + y}
|
|
3260
|
+
a ${b},${y} 0 0 0 0,${_.height}
|
|
3261
|
+
h ${_.width - 2 * b}
|
|
3262
|
+
a ${b},${y} 0 0 0 0,-${_.height}
|
|
3180
3263
|
Z
|
|
3181
3264
|
`;
|
|
3182
|
-
|
|
3183
|
-
a ${
|
|
3184
|
-
let
|
|
3185
|
-
if (U.has(u) && (
|
|
3186
|
-
let e = t.properties.icon.trim(), n =
|
|
3187
|
-
e.charAt(0) === "@" ? A(
|
|
3265
|
+
x.append("path").attr("d", C), S.append("path").attr("d", `M ${_.x},${_.y + y}
|
|
3266
|
+
a ${b},${y} 0 0 0 0,${_.height}`), x.attr("transform", `translate(${b}, ${-(_.height / 2)})`), S.attr("transform", `translate(${_.width - b}, ${-_.height / 2})`), t.rectData = _, l === "neo" && x.attr("filter", `url(#${Be(i)})`);
|
|
3267
|
+
let w = a.get(t.name) ?? 0;
|
|
3268
|
+
if (U.has(u) && (x.style("stroke", W(m, w)), x.style("fill", W(p, w)), S.style("stroke", W(m, w)), S.style("fill", W(p, w))), t.properties?.icon) {
|
|
3269
|
+
let e = t.properties.icon.trim(), n = _.x + _.width - 20, r = _.y + 10;
|
|
3270
|
+
e.charAt(0) === "@" ? A(g, n, r, e.substr(1)) : O(g, n, r, e);
|
|
3188
3271
|
}
|
|
3189
|
-
Y(
|
|
3190
|
-
let
|
|
3191
|
-
if (
|
|
3192
|
-
let e =
|
|
3193
|
-
t.height = e.height,
|
|
3272
|
+
Y(n, d(t.description))(t.description, g, _.x, _.y, _.width, _.height, { class: `actor ${me}` }, n);
|
|
3273
|
+
let T = t.height, E = x.select("path:last-child");
|
|
3274
|
+
if (E.node()) {
|
|
3275
|
+
let e = E.node().getBBox();
|
|
3276
|
+
n.look !== "neo" && (t.height = e.height, T = e.height);
|
|
3194
3277
|
}
|
|
3195
|
-
return
|
|
3196
|
-
}, "drawActorTypeQueue"),
|
|
3197
|
-
let
|
|
3198
|
-
|
|
3199
|
-
let
|
|
3200
|
-
|
|
3201
|
-
let
|
|
3202
|
-
|
|
3203
|
-
let
|
|
3204
|
-
|
|
3205
|
-
let
|
|
3206
|
-
return U.has(
|
|
3207
|
-
}, "drawActorTypeControl"),
|
|
3208
|
-
let o =
|
|
3209
|
-
|
|
3210
|
-
let
|
|
3211
|
-
|
|
3212
|
-
let
|
|
3213
|
-
|
|
3214
|
-
let
|
|
3215
|
-
return U.has(
|
|
3216
|
-
}, "drawActorTypeEntity"),
|
|
3217
|
-
let o =
|
|
3218
|
-
|
|
3219
|
-
let
|
|
3220
|
-
t.properties?.class ?
|
|
3221
|
-
let
|
|
3222
|
-
|
|
3223
|
-
let
|
|
3224
|
-
M ${
|
|
3225
|
-
a ${
|
|
3226
|
-
a ${
|
|
3227
|
-
l 0,${
|
|
3228
|
-
a ${
|
|
3229
|
-
l 0,-${
|
|
3278
|
+
return r || (g.attr("data-et", "participant"), g.attr("data-type", "queue"), g.attr("data-id", t.name)), T;
|
|
3279
|
+
}, "drawActorTypeQueue"), we = /* @__PURE__ */ v(function(e, t, n, r, i, a) {
|
|
3280
|
+
let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = pe(t, n, r, o), l = c ? c.lifelineStartY : o + 75, { look: u, theme: f, themeVariables: p } = n, { bkgColorArray: m, borderColorArray: h, actorBorder: g, actorBkg: _ } = p, v = e.append("g").lower();
|
|
3281
|
+
r || (K++, v.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", l).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);
|
|
3282
|
+
let y = e.append("g"), b = H;
|
|
3283
|
+
b += r ? ` ${V}` : ` ${B}`, y.attr("class", b), y.attr("name", t.name);
|
|
3284
|
+
let x = j();
|
|
3285
|
+
x.x = t.x, x.y = o, x.fill = "#eaeaea", x.width = t.width, x.height = t.height, x.class = "actor";
|
|
3286
|
+
let S = t.x + t.width / 2, C = c ? c.glyphBottomY - 22 : o + 32;
|
|
3287
|
+
y.append("defs").append("marker").attr("id", i + "-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"), y.append("circle").attr("cx", S).attr("cy", C).attr("r", 22).attr("filter", `${u === "neo" ? `url(#${Be(i)})` : ""}`), y.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${S}, ${C - 22})`);
|
|
3288
|
+
let w = a.get(t.name) ?? 0;
|
|
3289
|
+
return U.has(f) ? (y.style("stroke", W(h, w)), y.style("fill", W(m, w))) : (y.style("stroke", g), y.style("fill", _)), c || (t.height = y.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0)), Y(n, d(t.description))(t.description, y, x.x, c ? c.labelCenterY - x.height / 2 : x.y + 22 + (r ? 5 : 12), x.width, x.height, { class: `actor ${H}` }, n), r || (y.attr("data-et", "participant"), y.attr("data-type", "control"), y.attr("data-id", t.name)), t.height;
|
|
3290
|
+
}, "drawActorTypeControl"), Te = /* @__PURE__ */ v(function(e, t, n, r, i, a) {
|
|
3291
|
+
let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = pe(t, n, r, o), l = c ? c.lifelineStartY : o + 75, { look: u, theme: f, themeVariables: p } = n, { bkgColorArray: m, borderColorArray: h } = p, g = e.append("g").lower(), _ = e.append("g"), v = "actor";
|
|
3292
|
+
v += r ? ` ${V}` : ` ${B}`, _.attr("class", v), _.attr("name", t.name);
|
|
3293
|
+
let y = j();
|
|
3294
|
+
y.x = t.x, y.y = o, y.fill = "#eaeaea", y.width = t.width, y.height = t.height, y.class = "actor";
|
|
3295
|
+
let b = t.x + t.width / 2, x = c ? c.glyphBottomY - 22 : o + (r ? 10 : 25);
|
|
3296
|
+
_.append("circle").attr("cx", b).attr("cy", x).attr("r", 22).attr("width", t.width).attr("height", t.height), _.append("line").attr("x1", b - 22).attr("x2", b + 22).attr("y1", x + 22).attr("y2", x + 22).attr("stroke-width", 2), u === "neo" && _.attr("filter", `url(#${Be(i)})`);
|
|
3297
|
+
let S = a.get(t.name) ?? 0;
|
|
3298
|
+
return U.has(f) && (_.style("stroke", W(h, S)), _.style("fill", W(m, S))), c || (t.height = _.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0)), r || (K++, g.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", l).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, d(t.description))(t.description, _, y.x, c ? c.labelCenterY - y.height / 2 : y.y + (r ? 15 : 30), y.width, y.height, { class: `actor ${H}` }, n), c || _.attr("transform", `translate(0, ${r ? 22 : 6})`), r || (_.attr("data-et", "participant"), _.attr("data-type", "entity"), _.attr("data-id", t.name)), t.height;
|
|
3299
|
+
}, "drawActorTypeEntity"), q = /* @__PURE__ */ v(function(e, t, n, r, i, a) {
|
|
3300
|
+
let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = pe(t, n, r, o), l = c ? c.lifelineStartY : o + t.height + 2 * n.boxTextMargin, { theme: u, themeVariables: f, look: p } = n, { bkgColorArray: m, borderColorArray: h, actorBorder: g } = f, _ = e.append("g").lower(), v = _;
|
|
3301
|
+
r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && v.attr("onclick", _e(`actor${K}_popup`)).attr("cursor", "pointer"), v.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", l).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), v = _.append("g"), t.actorCnt = K, t.links != null && v.attr("id", "root-" + K), p === "neo" && v.attr("data-look", "neo"));
|
|
3302
|
+
let y = j(), b = "actor";
|
|
3303
|
+
t.properties?.class ? b = t.properties.class : y.fill = "#eaeaea", b += r ? ` ${V}` : ` ${B}`, y.x = t.x, y.y = o, y.width = t.width, y.height = t.height, y.class = b, y.name = t.name, y.x = t.x, y.y = o;
|
|
3304
|
+
let x = y.width / 3, S = x / 2, C = S / (2.5 + x / 50), w = c ? re : y.width / 3, T = c ? c.glyphBottomY - w - C : y.y, E = v.append("g");
|
|
3305
|
+
E.attr("class", b);
|
|
3306
|
+
let D = `
|
|
3307
|
+
M ${y.x},${T + C}
|
|
3308
|
+
a ${S},${C} 0 0 0 ${x},0
|
|
3309
|
+
a ${S},${C} 0 0 0 -${x},0
|
|
3310
|
+
l 0,${w - 2 * C}
|
|
3311
|
+
a ${S},${C} 0 0 0 ${x},0
|
|
3312
|
+
l 0,-${w - 2 * C}
|
|
3230
3313
|
`;
|
|
3231
|
-
|
|
3232
|
-
let
|
|
3233
|
-
U.has(
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
}
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
let
|
|
3240
|
-
|
|
3241
|
-
let
|
|
3242
|
-
|
|
3243
|
-
let y = a.get(t.name) ?? 0;
|
|
3244
|
-
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 + (r.sequence.labelBoxHeight ?? 0), Y(r, n(t.description))(t.description, g, v.x, v.y + 15, v.width, v.height, { class: `actor ${H}` }, r), 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;
|
|
3245
|
-
}, "drawActorTypeBoundary"), ge = /* @__PURE__ */ b(function(e, t, r, i, a) {
|
|
3246
|
-
let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, { look: l, theme: u, themeVariables: d } = r, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = d, h = e.append("g").lower();
|
|
3247
|
-
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
|
-
let g = e.append("g"), _ = H;
|
|
3249
|
-
_ += 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);
|
|
3250
|
-
let v = l === "neo" ? .5 : 1, y = l === "neo" ? o + (1 - v) * 30 : o;
|
|
3251
|
-
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
|
-
let b = g.append("circle");
|
|
3253
|
-
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;
|
|
3314
|
+
E.append("path").attr("d", D), p === "neo" && E.attr("filter", `url(#${Be(i)})`);
|
|
3315
|
+
let O = a.get(t.name) ?? 0;
|
|
3316
|
+
if (U.has(u) ? (E.style("stroke", W(h, O)), E.style("fill", W(m, O))) : E.style("stroke", g), E.attr("transform", `translate(${x}, ${C})`), t.rectData = y, Y(n, d(t.description))(t.description, v, y.x, c ? c.labelCenterY - y.height / 2 : y.y + 35, y.width, y.height, { class: `actor ${me}` }, n), !c) {
|
|
3317
|
+
let e = E.select("path:last-child");
|
|
3318
|
+
e.node() && (t.height = e.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0));
|
|
3319
|
+
}
|
|
3320
|
+
return r || (v.attr("data-et", "participant"), v.attr("data-type", "database"), v.attr("data-id", t.name)), t.height;
|
|
3321
|
+
}, "drawActorTypeDatabase"), Ee = /* @__PURE__ */ v(function(e, t, n, r, i, a) {
|
|
3322
|
+
let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = pe(t, n, r, o), l = c ? c.lifelineStartY : o + 80, u = c ? c.glyphBottomY - 22 : o + 12, f = e.append("g").lower(), { look: p, theme: m, themeVariables: h } = n, { bkgColorArray: g, borderColorArray: _, actorBorder: v } = h;
|
|
3323
|
+
r || (K++, f.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", l).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);
|
|
3324
|
+
let y = e.append("g"), b = H;
|
|
3325
|
+
b += r ? ` ${V}` : ` ${B}`, y.attr("class", b), y.attr("name", t.name);
|
|
3254
3326
|
let x = j();
|
|
3255
|
-
x.x = t.x, x.y =
|
|
3327
|
+
x.x = t.x, x.y = o, x.fill = "#eaeaea", x.width = t.width, x.height = t.height, x.class = "actor", y.append("line").attr("id", "actor-man-torso" + K).attr("x1", t.x + t.width / 2 - 55).attr("y1", u).attr("x2", t.x + t.width / 2 - 15).attr("y2", u), y.append("line").attr("id", "actor-man-arms" + K).attr("x1", t.x + t.width / 2 - 55).attr("y1", u - 10).attr("x2", t.x + t.width / 2 - 55).attr("y2", u + 10), y.append("circle").attr("cx", t.x + t.width / 2).attr("cy", u).attr("r", 22), p === "neo" && y.attr("filter", `url(#${Be(i)})`);
|
|
3256
3328
|
let S = a.get(t.name) ?? 0;
|
|
3257
|
-
return U.has(
|
|
3258
|
-
}, "
|
|
3329
|
+
return U.has(m) ? (y.style("stroke", W(_, S)), y.style("fill", W(g, S))) : y.style("stroke", v), c || (t.height = y.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), Y(n, d(t.description))(t.description, y, x.x, c ? c.labelCenterY - x.height / 2 : x.y + 15, x.width, x.height, { class: `actor ${H}` }, n), c || y.attr("transform", "translate(0,21)"), r || (y.attr("data-et", "participant"), y.attr("data-type", "boundary"), y.attr("data-id", t.name)), t.height;
|
|
3330
|
+
}, "drawActorTypeBoundary"), J = /* @__PURE__ */ v(function(e, t, n, r, i) {
|
|
3331
|
+
let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = pe(t, n, r, a), c = s ? s.lifelineStartY : a + 80, { theme: l, themeVariables: u } = n, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = u, h = e.append("g").lower();
|
|
3332
|
+
r || (K++, h.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", c).attr("x2", o).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);
|
|
3333
|
+
let g = e.append("g"), _ = H;
|
|
3334
|
+
_ += r ? ` ${V}` : ` ${B}`, g.attr("class", _), g.attr("name", t.name), r || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
|
|
3335
|
+
let y = s ? re / fe : 1, b = /* @__PURE__ */ v((e) => s ? s.glyphBottomY - (de - e) * y : a + e, "gy"), x = /* @__PURE__ */ v((e) => o + e * y, "gx");
|
|
3336
|
+
g.append("line").attr("id", "actor-man-torso" + K).attr("x1", o).attr("y1", b(25)).attr("x2", o).attr("y2", b(45)), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", x(-z / 2)).attr("y1", b(33)).attr("x2", x(z / 2)).attr("y2", b(33)), g.append("line").attr("x1", x(-z / 2)).attr("y1", b(60)).attr("x2", o).attr("y2", b(45)), g.append("line").attr("x1", o).attr("y1", b(45)).attr("x2", x(z / 2 - 2)).attr("y2", b(60));
|
|
3337
|
+
let S = g.append("circle");
|
|
3338
|
+
S.attr("cx", t.x + t.width / 2), S.attr("cy", b(10)), S.attr("r", 15 * y), S.attr("width", t.width), S.attr("height", t.height), s || (t.height = fe);
|
|
3339
|
+
let C = j();
|
|
3340
|
+
C.x = t.x, C.y = a, C.fill = "#eaeaea", C.width = t.width, C.height = t.height, C.class = "actor", C.rx = 3, C.ry = 3;
|
|
3341
|
+
let w = i.get(t.name) ?? 0;
|
|
3342
|
+
return U.has(l) ? (g.style("stroke", W(p, w)), g.style("fill", W(f, w))) : g.style("stroke", m), Y(n, d(t.description))(t.description, g, C.x, s ? s.labelCenterY - C.height / 2 : a + 35, C.width, C.height, { class: `actor ${H}` }, n), t.height;
|
|
3343
|
+
}, "drawActorTypeActor"), De = /* @__PURE__ */ v(async function(e, t, n, r, i, a, o) {
|
|
3259
3344
|
let s = o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]));
|
|
3260
3345
|
switch (t.type) {
|
|
3261
|
-
case "actor": return await
|
|
3262
|
-
case "participant": return await
|
|
3263
|
-
case "boundary": return await
|
|
3264
|
-
case "control": return await
|
|
3265
|
-
case "entity": return await
|
|
3266
|
-
case "database": return await
|
|
3267
|
-
case "collections": return await
|
|
3268
|
-
case "queue": return await
|
|
3346
|
+
case "actor": return await J(e, t, n, r, s);
|
|
3347
|
+
case "participant": return await xe(e, t, n, r, i, s);
|
|
3348
|
+
case "boundary": return await Ee(e, t, n, r, i, s);
|
|
3349
|
+
case "control": return await we(e, t, n, r, i, s);
|
|
3350
|
+
case "entity": return await Te(e, t, n, r, i, s);
|
|
3351
|
+
case "database": return await q(e, t, n, r, i, s);
|
|
3352
|
+
case "collections": return await Se(e, t, n, r, i, s);
|
|
3353
|
+
case "queue": return await Ce(e, t, n, r, i, s);
|
|
3269
3354
|
}
|
|
3270
|
-
}, "drawActor"),
|
|
3355
|
+
}, "drawActor"), Oe = /* @__PURE__ */ v(function(e, t, n) {
|
|
3271
3356
|
let r = e.append("g");
|
|
3272
|
-
|
|
3273
|
-
}, "drawBox"),
|
|
3357
|
+
Me(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();
|
|
3358
|
+
}, "drawBox"), ke = /* @__PURE__ */ v(function(e) {
|
|
3274
3359
|
return e.append("g");
|
|
3275
|
-
}, "anchorElement"),
|
|
3360
|
+
}, "anchorElement"), Ae = /* @__PURE__ */ v(function(e, t, n, r, i, a, o) {
|
|
3276
3361
|
let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f = j(), p = t.anchored, m = t.actor;
|
|
3277
3362
|
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
|
-
let h =
|
|
3279
|
-
U.has(s) && (h.style("stroke", u
|
|
3280
|
-
}, "drawActivation"),
|
|
3281
|
-
let { boxMargin:
|
|
3363
|
+
let h = he(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]))).get(m) ?? 0;
|
|
3364
|
+
U.has(s) && (h.style("stroke", W(u, g)), h.style("fill", W(l, g) ?? d));
|
|
3365
|
+
}, "drawActivation"), je = /* @__PURE__ */ v(async function(e, t, n, r, i) {
|
|
3366
|
+
let { boxMargin: a, boxTextMargin: o, labelBoxHeight: s, labelBoxWidth: c, messageFontFamily: l, messageFontSize: u, messageFontWeight: f } = r, p = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + i.id), m = /* @__PURE__ */ v(function(e, t, n, r) {
|
|
3282
3367
|
return p.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
|
|
3283
3368
|
}, "drawLoopLine");
|
|
3284
3369
|
m(t.startx, t.starty, t.stopx, t.starty), m(t.stopx, t.starty, t.stopx, t.stopy), m(t.startx, t.stopy, t.stopx, t.stopy), m(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(e) {
|
|
3285
3370
|
m(t.startx, e.y, t.stopx, e.y).style("stroke-dasharray", "3, 3");
|
|
3286
3371
|
});
|
|
3287
3372
|
let h = D();
|
|
3288
|
-
h.text =
|
|
3289
|
-
let g =
|
|
3373
|
+
h.text = n, h.x = t.startx, h.y = t.starty, h.fontFamily = l, h.fontSize = u, h.fontWeight = f, h.anchor = "middle", h.valign = "middle", h.tspan = !1, h.width = Math.max(c ?? 0, 50), h.height = s + (r.look === "neo" ? 15 : 0) || 20, h.textMargin = o, h.class = "labelText", ye(p, h), h = He(), h.text = t.title, h.x = t.startx + c / 2 + (t.stopx - t.startx) / 2, h.y = t.starty + a + o, h.anchor = "middle", h.valign = "middle", h.textMargin = o, h.class = "loopText", h.fontFamily = l, h.fontSize = u, h.fontWeight = f, h.wrap = !0;
|
|
3374
|
+
let g = d(h.text) ? await ve(p, h, t) : G(p, h);
|
|
3290
3375
|
if (t.sectionTitles !== void 0) {
|
|
3291
|
-
for (let [e,
|
|
3292
|
-
h.text =
|
|
3293
|
-
let
|
|
3294
|
-
t.sections[e].height +=
|
|
3376
|
+
for (let [e, n] of Object.entries(t.sectionTitles)) if (n.message) {
|
|
3377
|
+
h.text = n.message, h.x = t.startx + (t.stopx - t.startx) / 2, h.y = t.sections[e].y + a + o, h.class = "sectionTitle", h.anchor = "middle", h.valign = "middle", h.tspan = !1, h.fontFamily = l, h.fontSize = u, h.fontWeight = f, h.wrap = t.wrap, d(h.text) ? (t.starty = t.sections[e].y, await ve(p, h, t)) : G(p, h);
|
|
3378
|
+
let r = Math.round(g.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
|
|
3379
|
+
t.sections[e].height += r - (a + o);
|
|
3295
3380
|
}
|
|
3296
3381
|
}
|
|
3297
3382
|
return t.height = Math.round(t.stopy - t.starty), p;
|
|
3298
|
-
}, "drawLoop"),
|
|
3383
|
+
}, "drawLoop"), Me = /* @__PURE__ */ v(function(e, t) {
|
|
3299
3384
|
k(e, t);
|
|
3300
|
-
}, "drawBackgroundRect"),
|
|
3385
|
+
}, "drawBackgroundRect"), Ne = /* @__PURE__ */ v(function(e, t) {
|
|
3301
3386
|
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"),
|
|
3387
|
+
}, "insertDatabaseIcon"), Pe = /* @__PURE__ */ v(function(e, t) {
|
|
3303
3388
|
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"),
|
|
3389
|
+
}, "insertComputerIcon"), Fe = /* @__PURE__ */ v(function(e, t) {
|
|
3305
3390
|
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"),
|
|
3391
|
+
}, "insertClockIcon"), Ie = /* @__PURE__ */ v(function(e, t) {
|
|
3307
3392
|
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"),
|
|
3393
|
+
}, "insertArrowHead"), Le = /* @__PURE__ */ v(function(e, t) {
|
|
3309
3394
|
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"),
|
|
3395
|
+
}, "insertArrowFilledHead"), Re = /* @__PURE__ */ v(function(e, t) {
|
|
3311
3396
|
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"),
|
|
3397
|
+
}, "insertSequenceNumber"), ze = /* @__PURE__ */ v(function(e, t) {
|
|
3313
3398
|
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"),
|
|
3315
|
-
let { theme:
|
|
3316
|
-
e.append("defs").append("filter").attr("id",
|
|
3317
|
-
}, "insertDropShadow"),
|
|
3399
|
+
}, "insertArrowCrossHead"), Be = /* @__PURE__ */ v((e) => e ? `${e}-drop-shadow` : "drop-shadow", "dropShadowId"), Ve = /* @__PURE__ */ v(function(e, t, n) {
|
|
3400
|
+
let { theme: r } = t;
|
|
3401
|
+
e.append("defs").append("filter").attr("id", Be(n)).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", `${r === "redux" || r === "redux-color" ? "#000000" : "#FFFFFF"}`);
|
|
3402
|
+
}, "insertDropShadow"), He = /* @__PURE__ */ v(function() {
|
|
3318
3403
|
return {
|
|
3319
3404
|
x: 0,
|
|
3320
3405
|
y: 0,
|
|
@@ -3329,7 +3414,7 @@ var F = P, I = {
|
|
|
3329
3414
|
tspan: !0,
|
|
3330
3415
|
valign: void 0
|
|
3331
3416
|
};
|
|
3332
|
-
}, "getTextObj"),
|
|
3417
|
+
}, "getTextObj"), Ue = /* @__PURE__ */ v(function() {
|
|
3333
3418
|
return {
|
|
3334
3419
|
x: 0,
|
|
3335
3420
|
y: 0,
|
|
@@ -3345,7 +3430,7 @@ var F = P, I = {
|
|
|
3345
3430
|
function e(e, t, n, r, i, o, s) {
|
|
3346
3431
|
a(t.append("text").attr("x", n + i / 2).attr("y", r + o / 2 + 5).style("text-anchor", "middle").text(e), s);
|
|
3347
3432
|
}
|
|
3348
|
-
|
|
3433
|
+
v(e, "byText");
|
|
3349
3434
|
function t(e, t, n, r, i, o, s, c) {
|
|
3350
3435
|
let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, [f, p] = C(l), h = e.split(m.lineBreakRegex);
|
|
3351
3436
|
for (let e = 0; e < h.length; e++) {
|
|
@@ -3353,28 +3438,28 @@ var F = P, I = {
|
|
|
3353
3438
|
l.append("tspan").attr("x", n + i / 2).attr("dy", c).text(h[e]), l.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(l, s);
|
|
3354
3439
|
}
|
|
3355
3440
|
}
|
|
3356
|
-
|
|
3357
|
-
function
|
|
3441
|
+
v(t, "byTspan");
|
|
3442
|
+
function r(e, n, r, i, o, s, c, l) {
|
|
3358
3443
|
let u = n.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
3359
3444
|
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, r, i, o, s, c, l), a(d, c);
|
|
3360
3445
|
}
|
|
3361
|
-
|
|
3362
|
-
async function i(e,
|
|
3363
|
-
let
|
|
3364
|
-
|
|
3446
|
+
v(r, "byFo");
|
|
3447
|
+
async function i(e, r, i, o, s, c, l, d) {
|
|
3448
|
+
let f = await u(e, g()), p = r.append("switch"), m = p.append("foreignObject").attr("x", i + s / 2 - f.width / 2).attr("y", o + c / 2 - f.height / 2).attr("width", f.width).attr("height", f.height).append("xhtml:div").style("height", "100%").style("width", "100%");
|
|
3449
|
+
m.append("div").style("text-align", "center").style("vertical-align", "middle").html(await n(e, g())), t(e, p, i, o, s, c, l, d), a(m, l);
|
|
3365
3450
|
}
|
|
3366
|
-
|
|
3451
|
+
v(i, "byKatex");
|
|
3367
3452
|
function a(e, t) {
|
|
3368
3453
|
for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
|
|
3369
3454
|
}
|
|
3370
|
-
return
|
|
3371
|
-
return a ? i :
|
|
3455
|
+
return v(a, "_setTextAttrs"), function(n, a = !1) {
|
|
3456
|
+
return a ? i : n.textPlacement === "fo" ? r : n.textPlacement === "old" ? e : t;
|
|
3372
3457
|
};
|
|
3373
|
-
})(),
|
|
3458
|
+
})(), We = /* @__PURE__ */ (function() {
|
|
3374
3459
|
function e(e, t, n, i, a, o, s) {
|
|
3375
3460
|
r(t.append("text").attr("x", n).attr("y", i).style("text-anchor", "start").text(e), s);
|
|
3376
3461
|
}
|
|
3377
|
-
|
|
3462
|
+
v(e, "byText");
|
|
3378
3463
|
function t(e, t, n, i, a, o, s, c) {
|
|
3379
3464
|
let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(m.lineBreakRegex);
|
|
3380
3465
|
for (let e = 0; e < f.length; e++) {
|
|
@@ -3382,51 +3467,51 @@ var F = P, I = {
|
|
|
3382
3467
|
c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y", i + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(c, s);
|
|
3383
3468
|
}
|
|
3384
3469
|
}
|
|
3385
|
-
|
|
3470
|
+
v(t, "byTspan");
|
|
3386
3471
|
function n(e, n, i, a, o, s, c, l) {
|
|
3387
3472
|
let u = n.append("switch"), d = u.append("foreignObject").attr("x", i).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
3388
3473
|
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, i, a, o, s, c, l), r(d, c);
|
|
3389
3474
|
}
|
|
3390
|
-
|
|
3475
|
+
v(n, "byFo");
|
|
3391
3476
|
function r(e, t) {
|
|
3392
3477
|
for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
|
|
3393
3478
|
}
|
|
3394
|
-
return
|
|
3479
|
+
return v(r, "_setTextAttrs"), function(r) {
|
|
3395
3480
|
return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
|
|
3396
3481
|
};
|
|
3397
3482
|
})(), X = {
|
|
3398
|
-
drawRect:
|
|
3483
|
+
drawRect: he,
|
|
3399
3484
|
drawText: G,
|
|
3400
|
-
drawLabel:
|
|
3401
|
-
drawActor:
|
|
3402
|
-
drawBox:
|
|
3403
|
-
drawPopup:
|
|
3404
|
-
anchorElement:
|
|
3405
|
-
drawActivation:
|
|
3406
|
-
drawLoop:
|
|
3407
|
-
drawBackgroundRect:
|
|
3408
|
-
insertArrowHead:
|
|
3409
|
-
insertArrowFilledHead:
|
|
3410
|
-
insertSequenceNumber:
|
|
3411
|
-
insertArrowCrossHead:
|
|
3412
|
-
insertDatabaseIcon:
|
|
3413
|
-
insertComputerIcon:
|
|
3414
|
-
insertClockIcon:
|
|
3415
|
-
getTextObj:
|
|
3416
|
-
getNoteRect:
|
|
3417
|
-
fixLifeLineHeights:
|
|
3485
|
+
drawLabel: ye,
|
|
3486
|
+
drawActor: De,
|
|
3487
|
+
drawBox: Oe,
|
|
3488
|
+
drawPopup: ge,
|
|
3489
|
+
anchorElement: ke,
|
|
3490
|
+
drawActivation: Ae,
|
|
3491
|
+
drawLoop: je,
|
|
3492
|
+
drawBackgroundRect: Me,
|
|
3493
|
+
insertArrowHead: Ie,
|
|
3494
|
+
insertArrowFilledHead: Le,
|
|
3495
|
+
insertSequenceNumber: Re,
|
|
3496
|
+
insertArrowCrossHead: ze,
|
|
3497
|
+
insertDatabaseIcon: Ne,
|
|
3498
|
+
insertComputerIcon: Pe,
|
|
3499
|
+
insertClockIcon: Fe,
|
|
3500
|
+
getTextObj: He,
|
|
3501
|
+
getNoteRect: Ue,
|
|
3502
|
+
fixLifeLineHeights: be,
|
|
3418
3503
|
sanitizeUrl: N.sanitizeUrl,
|
|
3419
|
-
insertDropShadow:
|
|
3420
|
-
insertSolidTopArrowHead: /* @__PURE__ */
|
|
3504
|
+
insertDropShadow: Ve,
|
|
3505
|
+
insertSolidTopArrowHead: /* @__PURE__ */ v(function(e, t) {
|
|
3421
3506
|
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
3507
|
}, "insertSolidTopArrowHead"),
|
|
3423
|
-
insertSolidBottomArrowHead: /* @__PURE__ */
|
|
3508
|
+
insertSolidBottomArrowHead: /* @__PURE__ */ v(function(e, t) {
|
|
3424
3509
|
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
3510
|
}, "insertSolidBottomArrowHead"),
|
|
3426
|
-
insertStickTopArrowHead: /* @__PURE__ */
|
|
3511
|
+
insertStickTopArrowHead: /* @__PURE__ */ v(function(e, t) {
|
|
3427
3512
|
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
3513
|
}, "insertStickTopArrowHead"),
|
|
3429
|
-
insertStickBottomArrowHead: /* @__PURE__ */
|
|
3514
|
+
insertStickBottomArrowHead: /* @__PURE__ */ v(function(e, t) {
|
|
3430
3515
|
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
3516
|
}, "insertStickBottomArrowHead")
|
|
3432
3517
|
}, Z = {}, Q = {
|
|
@@ -3440,37 +3525,37 @@ var F = P, I = {
|
|
|
3440
3525
|
sequenceItems: [],
|
|
3441
3526
|
activations: [],
|
|
3442
3527
|
models: {
|
|
3443
|
-
getHeight: /* @__PURE__ */
|
|
3528
|
+
getHeight: /* @__PURE__ */ v(function() {
|
|
3444
3529
|
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
3530
|
}, "getHeight"),
|
|
3446
|
-
clear: /* @__PURE__ */
|
|
3531
|
+
clear: /* @__PURE__ */ v(function() {
|
|
3447
3532
|
this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
|
|
3448
3533
|
}, "clear"),
|
|
3449
|
-
addBox: /* @__PURE__ */
|
|
3534
|
+
addBox: /* @__PURE__ */ v(function(e) {
|
|
3450
3535
|
this.boxes.push(e);
|
|
3451
3536
|
}, "addBox"),
|
|
3452
|
-
addActor: /* @__PURE__ */
|
|
3537
|
+
addActor: /* @__PURE__ */ v(function(e) {
|
|
3453
3538
|
this.actors.push(e);
|
|
3454
3539
|
}, "addActor"),
|
|
3455
|
-
addLoop: /* @__PURE__ */
|
|
3540
|
+
addLoop: /* @__PURE__ */ v(function(e) {
|
|
3456
3541
|
this.loops.push(e);
|
|
3457
3542
|
}, "addLoop"),
|
|
3458
|
-
addMessage: /* @__PURE__ */
|
|
3543
|
+
addMessage: /* @__PURE__ */ v(function(e) {
|
|
3459
3544
|
this.messages.push(e);
|
|
3460
3545
|
}, "addMessage"),
|
|
3461
|
-
addNote: /* @__PURE__ */
|
|
3546
|
+
addNote: /* @__PURE__ */ v(function(e) {
|
|
3462
3547
|
this.notes.push(e);
|
|
3463
3548
|
}, "addNote"),
|
|
3464
|
-
lastActor: /* @__PURE__ */
|
|
3549
|
+
lastActor: /* @__PURE__ */ v(function() {
|
|
3465
3550
|
return this.actors[this.actors.length - 1];
|
|
3466
3551
|
}, "lastActor"),
|
|
3467
|
-
lastLoop: /* @__PURE__ */
|
|
3552
|
+
lastLoop: /* @__PURE__ */ v(function() {
|
|
3468
3553
|
return this.loops[this.loops.length - 1];
|
|
3469
3554
|
}, "lastLoop"),
|
|
3470
|
-
lastMessage: /* @__PURE__ */
|
|
3555
|
+
lastMessage: /* @__PURE__ */ v(function() {
|
|
3471
3556
|
return this.messages[this.messages.length - 1];
|
|
3472
3557
|
}, "lastMessage"),
|
|
3473
|
-
lastNote: /* @__PURE__ */
|
|
3558
|
+
lastNote: /* @__PURE__ */ v(function() {
|
|
3474
3559
|
return this.notes[this.notes.length - 1];
|
|
3475
3560
|
}, "lastNote"),
|
|
3476
3561
|
actors: [],
|
|
@@ -3479,34 +3564,34 @@ var F = P, I = {
|
|
|
3479
3564
|
messages: [],
|
|
3480
3565
|
notes: []
|
|
3481
3566
|
},
|
|
3482
|
-
init: /* @__PURE__ */
|
|
3567
|
+
init: /* @__PURE__ */ v(function() {
|
|
3483
3568
|
this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
|
|
3484
3569
|
startx: void 0,
|
|
3485
3570
|
stopx: void 0,
|
|
3486
3571
|
starty: void 0,
|
|
3487
3572
|
stopy: void 0
|
|
3488
|
-
}, this.verticalPos = 0,
|
|
3573
|
+
}, this.verticalPos = 0, tt(c());
|
|
3489
3574
|
}, "init"),
|
|
3490
|
-
updateVal: /* @__PURE__ */
|
|
3575
|
+
updateVal: /* @__PURE__ */ v(function(e, t, n, r) {
|
|
3491
3576
|
e[t] = e[t] === void 0 ? n : r(n, e[t]);
|
|
3492
3577
|
}, "updateVal"),
|
|
3493
|
-
updateBounds: /* @__PURE__ */
|
|
3578
|
+
updateBounds: /* @__PURE__ */ v(function(e, t, n, r) {
|
|
3494
3579
|
let i = this, a = 0;
|
|
3495
3580
|
function o(o) {
|
|
3496
|
-
return /* @__PURE__ */
|
|
3581
|
+
return /* @__PURE__ */ v(function(s) {
|
|
3497
3582
|
a++;
|
|
3498
3583
|
let c = i.sequenceItems.length - a + 1;
|
|
3499
3584
|
i.updateVal(s, "starty", t - c * Z.boxMargin, Math.min), i.updateVal(s, "stopy", r + c * Z.boxMargin, Math.max), i.updateVal(Q.data, "startx", e - c * Z.boxMargin, Math.min), i.updateVal(Q.data, "stopx", n + c * Z.boxMargin, Math.max), o !== "activation" && (i.updateVal(s, "startx", e - c * Z.boxMargin, Math.min), i.updateVal(s, "stopx", n + c * Z.boxMargin, Math.max), i.updateVal(Q.data, "starty", t - c * Z.boxMargin, Math.min), i.updateVal(Q.data, "stopy", r + c * Z.boxMargin, Math.max));
|
|
3500
3585
|
}, "updateItemBounds");
|
|
3501
3586
|
}
|
|
3502
|
-
|
|
3587
|
+
v(o, "updateFn"), this.sequenceItems.forEach(o()), this.activations.forEach(o("activation"));
|
|
3503
3588
|
}, "updateBounds"),
|
|
3504
|
-
insert: /* @__PURE__ */
|
|
3589
|
+
insert: /* @__PURE__ */ v(function(e, t, n, r) {
|
|
3505
3590
|
let i = m.getMin(e, n), a = m.getMax(e, n), o = m.getMin(t, r), s = m.getMax(t, r);
|
|
3506
3591
|
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
3592
|
}, "insert"),
|
|
3508
|
-
newActivation: /* @__PURE__ */
|
|
3509
|
-
let r = n.get(e.from), i =
|
|
3593
|
+
newActivation: /* @__PURE__ */ v(function(e, t, n) {
|
|
3594
|
+
let r = n.get(e.from), i = nt(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * Z.activationWidth / 2;
|
|
3510
3595
|
this.activations.push({
|
|
3511
3596
|
startx: a,
|
|
3512
3597
|
starty: this.verticalPos + 2,
|
|
@@ -3516,13 +3601,13 @@ var F = P, I = {
|
|
|
3516
3601
|
anchored: X.anchorElement(t)
|
|
3517
3602
|
});
|
|
3518
3603
|
}, "newActivation"),
|
|
3519
|
-
endActivation: /* @__PURE__ */
|
|
3604
|
+
endActivation: /* @__PURE__ */ v(function(e) {
|
|
3520
3605
|
let t = this.activations.map(function(e) {
|
|
3521
3606
|
return e.actor;
|
|
3522
3607
|
}).lastIndexOf(e.from);
|
|
3523
3608
|
return this.activations.splice(t, 1)[0];
|
|
3524
3609
|
}, "endActivation"),
|
|
3525
|
-
createLoop: /* @__PURE__ */
|
|
3610
|
+
createLoop: /* @__PURE__ */ v(function(e = {
|
|
3526
3611
|
message: void 0,
|
|
3527
3612
|
wrap: !1,
|
|
3528
3613
|
width: void 0
|
|
@@ -3539,138 +3624,138 @@ var F = P, I = {
|
|
|
3539
3624
|
fill: t
|
|
3540
3625
|
};
|
|
3541
3626
|
}, "createLoop"),
|
|
3542
|
-
newLoop: /* @__PURE__ */
|
|
3627
|
+
newLoop: /* @__PURE__ */ v(function(e = {
|
|
3543
3628
|
message: void 0,
|
|
3544
3629
|
wrap: !1,
|
|
3545
3630
|
width: void 0
|
|
3546
3631
|
}, t) {
|
|
3547
3632
|
this.sequenceItems.push(this.createLoop(e, t));
|
|
3548
3633
|
}, "newLoop"),
|
|
3549
|
-
endLoop: /* @__PURE__ */
|
|
3634
|
+
endLoop: /* @__PURE__ */ v(function() {
|
|
3550
3635
|
return this.sequenceItems.pop();
|
|
3551
3636
|
}, "endLoop"),
|
|
3552
|
-
isLoopOverlap: /* @__PURE__ */
|
|
3637
|
+
isLoopOverlap: /* @__PURE__ */ v(function() {
|
|
3553
3638
|
return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
|
|
3554
3639
|
}, "isLoopOverlap"),
|
|
3555
|
-
addSectionToLoop: /* @__PURE__ */
|
|
3640
|
+
addSectionToLoop: /* @__PURE__ */ v(function(e) {
|
|
3556
3641
|
let t = this.sequenceItems.pop();
|
|
3557
3642
|
t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
|
|
3558
3643
|
y: Q.getVerticalPos(),
|
|
3559
3644
|
height: 0
|
|
3560
3645
|
}), t.sectionTitles.push(e), this.sequenceItems.push(t);
|
|
3561
3646
|
}, "addSectionToLoop"),
|
|
3562
|
-
saveVerticalPos: /* @__PURE__ */
|
|
3647
|
+
saveVerticalPos: /* @__PURE__ */ v(function() {
|
|
3563
3648
|
this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
|
|
3564
3649
|
}, "saveVerticalPos"),
|
|
3565
|
-
resetVerticalPos: /* @__PURE__ */
|
|
3650
|
+
resetVerticalPos: /* @__PURE__ */ v(function() {
|
|
3566
3651
|
this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
|
|
3567
3652
|
}, "resetVerticalPos"),
|
|
3568
|
-
bumpVerticalPos: /* @__PURE__ */
|
|
3653
|
+
bumpVerticalPos: /* @__PURE__ */ v(function(e) {
|
|
3569
3654
|
this.verticalPos += e, this.data.stopy = m.getMax(this.data.stopy, this.verticalPos);
|
|
3570
3655
|
}, "bumpVerticalPos"),
|
|
3571
|
-
getVerticalPos: /* @__PURE__ */
|
|
3656
|
+
getVerticalPos: /* @__PURE__ */ v(function() {
|
|
3572
3657
|
return this.verticalPos;
|
|
3573
3658
|
}, "getVerticalPos"),
|
|
3574
|
-
getBounds: /* @__PURE__ */
|
|
3659
|
+
getBounds: /* @__PURE__ */ v(function() {
|
|
3575
3660
|
return {
|
|
3576
3661
|
bounds: this.data,
|
|
3577
3662
|
models: this.models
|
|
3578
3663
|
};
|
|
3579
3664
|
}, "getBounds")
|
|
3580
|
-
},
|
|
3665
|
+
}, Ge = /* @__PURE__ */ v(async function(e, t, n) {
|
|
3581
3666
|
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"),
|
|
3591
|
-
let s = r.db.getActors(), c = s.get(t.from), l = s.get(t.to), u = n.sequenceVisible, d = c.x + c.width / 2, f = l.x + l.width / 2, p = d <= f, m =
|
|
3667
|
+
let r = j();
|
|
3668
|
+
r.x = t.startx, r.y = t.starty, r.width = t.width || Z.width, r.class = "note";
|
|
3669
|
+
let i = e.append("g");
|
|
3670
|
+
i.attr("data-et", "note"), i.attr("data-id", "i" + n);
|
|
3671
|
+
let a = X.drawRect(i, r), o = D();
|
|
3672
|
+
o.x = t.startx, o.y = t.starty, o.width = r.width, o.dy = "1em", o.text = t.message, o.class = "noteText", o.fontFamily = Z.noteFontFamily, o.fontSize = Z.noteFontSize, o.fontWeight = Z.noteFontWeight, o.anchor = Z.noteAlign, o.textMargin = Z.noteMargin, o.valign = "center";
|
|
3673
|
+
let s = d(o.text) ? await ve(i, o) : G(i, o), c = Math.round(s.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
|
|
3674
|
+
a.attr("height", c + 2 * Z.noteMargin), t.height += c + 2 * Z.noteMargin, Q.bumpVerticalPos(c + 2 * Z.noteMargin), t.stopy = t.starty + c + 2 * Z.noteMargin, t.stopx = t.startx + r.width, Q.insert(t.startx, t.starty, t.stopx, t.stopy), Q.models.addNote(t);
|
|
3675
|
+
}, "drawNote"), Ke = /* @__PURE__ */ v(function(e, t, n, r, i, a, o) {
|
|
3676
|
+
let s = r.db.getActors(), c = s.get(t.from), l = s.get(t.to), u = n.sequenceVisible, d = c.x + c.width / 2, f = l.x + l.width / 2, p = d <= f, m = mt(t, r), h = e.append("g"), g = /* @__PURE__ */ v((e, t) => {
|
|
3592
3677
|
let n = e ? 16.5 : -16.5;
|
|
3593
3678
|
return t ? -n : n;
|
|
3594
|
-
}, "getCircleOffset"), _ = /* @__PURE__ */
|
|
3679
|
+
}, "getCircleOffset"), _ = /* @__PURE__ */ v((e) => {
|
|
3595
3680
|
h.append("circle").attr("cx", e).attr("cy", o).attr("r", 5).attr("width", 10).attr("height", 10);
|
|
3596
|
-
}, "drawCircle"), { CENTRAL_CONNECTION:
|
|
3681
|
+
}, "drawCircle"), { CENTRAL_CONNECTION: y, CENTRAL_CONNECTION_REVERSE: b, CENTRAL_CONNECTION_DUAL: x } = r.db.LINETYPE;
|
|
3597
3682
|
if (u) switch (t.centralConnection) {
|
|
3598
|
-
case
|
|
3683
|
+
case y:
|
|
3599
3684
|
m && (f += g(p, !0));
|
|
3600
3685
|
break;
|
|
3601
|
-
case
|
|
3686
|
+
case b:
|
|
3602
3687
|
m || (d += g(p, !1));
|
|
3603
3688
|
break;
|
|
3604
3689
|
case x: m ? f += g(p, !0) : d += g(p, !1);
|
|
3605
3690
|
}
|
|
3606
3691
|
switch (t.centralConnection) {
|
|
3607
|
-
case
|
|
3692
|
+
case y:
|
|
3608
3693
|
_(f);
|
|
3609
3694
|
break;
|
|
3610
|
-
case
|
|
3695
|
+
case b:
|
|
3611
3696
|
_(d);
|
|
3612
3697
|
break;
|
|
3613
3698
|
case x: _(d), _(f);
|
|
3614
3699
|
}
|
|
3615
|
-
}, "drawCentralConnection"),
|
|
3700
|
+
}, "drawCentralConnection"), qe = /* @__PURE__ */ v((e) => ({
|
|
3616
3701
|
fontFamily: e.messageFontFamily,
|
|
3617
3702
|
fontSize: e.messageFontSize,
|
|
3618
3703
|
fontWeight: e.messageFontWeight
|
|
3619
|
-
}), "messageFont"),
|
|
3704
|
+
}), "messageFont"), Je = /* @__PURE__ */ v((e) => ({
|
|
3620
3705
|
fontFamily: e.noteFontFamily,
|
|
3621
3706
|
fontSize: e.noteFontSize,
|
|
3622
3707
|
fontWeight: e.noteFontWeight
|
|
3623
|
-
}), "noteFont"),
|
|
3708
|
+
}), "noteFont"), Ye = /* @__PURE__ */ v((e) => ({
|
|
3624
3709
|
fontFamily: e.actorFontFamily,
|
|
3625
3710
|
fontSize: e.actorFontSize,
|
|
3626
3711
|
fontWeight: e.actorFontWeight
|
|
3627
3712
|
}), "actorFont");
|
|
3628
|
-
async function
|
|
3713
|
+
async function Xe(e, t) {
|
|
3629
3714
|
Q.bumpVerticalPos(10);
|
|
3630
|
-
let { startx:
|
|
3631
|
-
if (!
|
|
3632
|
-
let e =
|
|
3715
|
+
let { startx: n, stopx: r, message: i } = t, a = m.splitBreaks(i).length, o = d(i), s = o ? await u(i, c()) : S.calculateTextDimensions(i, qe(Z));
|
|
3716
|
+
if (!o) {
|
|
3717
|
+
let e = s.height / a;
|
|
3633
3718
|
t.height += e, Q.bumpVerticalPos(e);
|
|
3634
3719
|
}
|
|
3635
|
-
let l,
|
|
3636
|
-
if (
|
|
3637
|
-
l = Q.getVerticalPos() +
|
|
3638
|
-
let e = m.getMax(
|
|
3639
|
-
Q.insert(
|
|
3640
|
-
} else
|
|
3641
|
-
return Q.bumpVerticalPos(
|
|
3720
|
+
let l, f = s.height - 10, p = s.width;
|
|
3721
|
+
if (n === r) {
|
|
3722
|
+
l = Q.getVerticalPos() + f, Z.rightAngles || (f += Z.boxMargin, l = Q.getVerticalPos() + f), f += 30;
|
|
3723
|
+
let e = m.getMax(p / 2, Z.width / 2);
|
|
3724
|
+
Q.insert(n - e, Q.getVerticalPos() - 10 + f, r + e, Q.getVerticalPos() + 30 + f);
|
|
3725
|
+
} else f += Z.boxMargin, l = Q.getVerticalPos() + f, Q.insert(n, l - 10, r, l);
|
|
3726
|
+
return Q.bumpVerticalPos(f), t.height += f, t.stopy = t.starty + t.height, Q.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), l;
|
|
3642
3727
|
}
|
|
3643
|
-
|
|
3644
|
-
var
|
|
3645
|
-
let { startx:
|
|
3646
|
-
_.x = Math.min(
|
|
3647
|
-
startx:
|
|
3648
|
-
stopx:
|
|
3728
|
+
v(Xe, "boundMessage");
|
|
3729
|
+
var Ze = /* @__PURE__ */ v(async function(e, n, r, i, a, o) {
|
|
3730
|
+
let { startx: s, stopx: c, starty: l, message: u, type: f, sequenceIndex: p, sequenceVisible: h } = n, g = S.calculateTextDimensions(u, qe(Z)), _ = D();
|
|
3731
|
+
_.x = Math.min(s, c), _.y = l + 10, _.width = Math.abs(c - s), _.class = "messageText", _.dy = "1em", _.text = u, _.fontFamily = Z.messageFontFamily, _.fontSize = Z.messageFontSize, _.fontWeight = Z.messageFontWeight, _.anchor = Z.messageAlign, _.valign = "center", _.textMargin = Z.wrapPadding, _.tspan = !1, d(_.text) ? await ve(e, _, {
|
|
3732
|
+
startx: s,
|
|
3733
|
+
stopx: c,
|
|
3649
3734
|
starty: r
|
|
3650
3735
|
}) : G(e, _);
|
|
3651
3736
|
let v = g.width, y;
|
|
3652
|
-
if (
|
|
3653
|
-
let
|
|
3654
|
-
y = Z.rightAngles ? e.append("path").attr("d", `M ${u},${r} H ${
|
|
3655
|
-
} else y = e.append("line"), y.attr("x1",
|
|
3656
|
-
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" +
|
|
3737
|
+
if (s === c) {
|
|
3738
|
+
let t = h || Z.showSequenceNumbers, o = mt(a, i), l = ht(a, i), u = s + (t && (o || l) ? 10 : 0);
|
|
3739
|
+
y = Z.rightAngles ? e.append("path").attr("d", `M ${u},${r} H ${s + m.getMax(Z.width / 2, v / 2)} V ${r + 25} H ${s}`) : e.append("path").attr("d", "M " + u + "," + r + " C " + (u + 60) + "," + (r - 10) + " " + (s + 60) + "," + (r + 30) + " " + s + "," + (r + 20)), ft(a, i) && Ke(e, a, n, i, s, c, r);
|
|
3740
|
+
} else y = e.append("line"), y.attr("x1", s), y.attr("y1", r), y.attr("x2", c), y.attr("y2", r), ft(a, i) && Ke(e, a, n, i, s, c, r);
|
|
3741
|
+
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" + n.id), y.attr("data-from", n.from), y.attr("data-to", n.to);
|
|
3657
3742
|
let b = "";
|
|
3658
|
-
if (Z.arrowMarkerAbsolute && (b =
|
|
3659
|
-
let
|
|
3660
|
-
|
|
3661
|
-
let h = 0, g =
|
|
3662
|
-
h = g ?
|
|
3743
|
+
if (Z.arrowMarkerAbsolute && (b = t(!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)"), h || Z.showSequenceNumbers) {
|
|
3744
|
+
let t = f === i.db.LINETYPE.BIDIRECTIONAL_SOLID || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED, l = 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 = ft(a, i), d = s, m = c;
|
|
3745
|
+
t ? (s < c ? 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)) : l ? (c > s ? m = c - 12 : (m = c - 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);
|
|
3746
|
+
let h = 0, g = s === c, _ = s <= c;
|
|
3747
|
+
h = g ? n.fromBounds + 1 : l ? _ ? n.toBounds - 1 : n.fromBounds + 1 : _ ? n.fromBounds + 1 : n.toBounds - 1;
|
|
3663
3748
|
let v = "12px", x = p.toString().length;
|
|
3664
3749
|
x > 5 ? v = "7px" : x > 3 && (v = "9px"), e.append("line").attr("x1", h).attr("y1", r).attr("x2", h).attr("y2", r).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", v).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(p);
|
|
3665
3750
|
}
|
|
3666
|
-
}, "drawMessage"),
|
|
3751
|
+
}, "drawMessage"), Qe = /* @__PURE__ */ v(function(e, t, n, r, i, a, o) {
|
|
3667
3752
|
let s = 0, c = 0, l, u = 0;
|
|
3668
3753
|
for (let e of r) {
|
|
3669
3754
|
let r = t.get(e), a = r.box;
|
|
3670
3755
|
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 = m.getMax(r.width || Z.width, Z.width), r.height = m.getMax(r.height || Z.height, Z.height), r.margin = r.margin || Z.actorMargin, u = m.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);
|
|
3671
3756
|
}
|
|
3672
3757
|
l && !o && Q.models.addBox(l), Q.bumpVerticalPos(u);
|
|
3673
|
-
}, "addActorRenderingData"),
|
|
3758
|
+
}, "addActorRenderingData"), $e = /* @__PURE__ */ v(async function(e, t, n, r, i, a, o) {
|
|
3674
3759
|
if (r) {
|
|
3675
3760
|
let r = 0;
|
|
3676
3761
|
Q.bumpVerticalPos(Z.boxMargin * 2);
|
|
@@ -3685,51 +3770,51 @@ var Re = /* @__PURE__ */ b(async function(e, t, r, i, a, o) {
|
|
|
3685
3770
|
let n = t.get(r);
|
|
3686
3771
|
await X.drawActor(e, n, Z, !1, i, a, o);
|
|
3687
3772
|
}
|
|
3688
|
-
}, "drawActors"),
|
|
3773
|
+
}, "drawActors"), et = /* @__PURE__ */ v(function(e, t, n, r) {
|
|
3689
3774
|
let i = 0, a = 0;
|
|
3690
3775
|
for (let o of n) {
|
|
3691
|
-
let n = t.get(o), s =
|
|
3776
|
+
let n = t.get(o), s = st(n), c = X.drawPopup(e, n, s, Z, Z.forceMenus, r);
|
|
3692
3777
|
c.height > i && (i = c.height), c.width + n.x > a && (a = c.width + n.x);
|
|
3693
3778
|
}
|
|
3694
3779
|
return {
|
|
3695
3780
|
maxHeight: i,
|
|
3696
3781
|
maxWidth: a
|
|
3697
3782
|
};
|
|
3698
|
-
}, "drawActorsPopup"),
|
|
3783
|
+
}, "drawActorsPopup"), tt = /* @__PURE__ */ v(function(e) {
|
|
3699
3784
|
p(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);
|
|
3700
|
-
}, "setConf"),
|
|
3785
|
+
}, "setConf"), nt = /* @__PURE__ */ v(function(e) {
|
|
3701
3786
|
return Q.activations.filter(function(t) {
|
|
3702
3787
|
return t.actor === e;
|
|
3703
3788
|
});
|
|
3704
|
-
}, "actorActivations"),
|
|
3705
|
-
let n = t.get(e), r =
|
|
3789
|
+
}, "actorActivations"), rt = /* @__PURE__ */ v(function(e, t) {
|
|
3790
|
+
let n = t.get(e), r = nt(e);
|
|
3706
3791
|
return [r.reduce(function(e, t) {
|
|
3707
3792
|
return m.getMin(e, t.startx);
|
|
3708
3793
|
}, n.x + n.width / 2 - 1), r.reduce(function(e, t) {
|
|
3709
3794
|
return m.getMax(e, t.stopx);
|
|
3710
3795
|
}, n.x + n.width / 2 + 1)];
|
|
3711
3796
|
}, "activationBounds");
|
|
3712
|
-
function $(t, n, r, i
|
|
3713
|
-
Q.bumpVerticalPos(
|
|
3714
|
-
let
|
|
3715
|
-
if (
|
|
3716
|
-
let
|
|
3717
|
-
|
|
3718
|
-
let
|
|
3719
|
-
|
|
3797
|
+
function $(e, t, n, r, i) {
|
|
3798
|
+
Q.bumpVerticalPos(n);
|
|
3799
|
+
let a = r;
|
|
3800
|
+
if (t.id && t.message && e[t.id]) {
|
|
3801
|
+
let n = e[t.id].width, i = qe(Z);
|
|
3802
|
+
t.message = S.wrapLabel(`[${t.message}]`, n - 2 * Z.wrapPadding, i), t.width = n, t.wrap = !0;
|
|
3803
|
+
let o = S.calculateTextDimensions(t.message, i), s = m.getMax(o.height, Z.labelBoxHeight);
|
|
3804
|
+
a = r + s, y.debug(`${s} - ${t.message}`);
|
|
3720
3805
|
}
|
|
3721
|
-
|
|
3806
|
+
i(t), Q.bumpVerticalPos(a);
|
|
3722
3807
|
}
|
|
3723
|
-
|
|
3724
|
-
function
|
|
3808
|
+
v($, "adjustLoopHeightForWrap");
|
|
3809
|
+
function it(e, t, n, r, i, a, o) {
|
|
3725
3810
|
function s(n, r) {
|
|
3726
3811
|
n.x < i.get(e.from).x ? (Q.insert(t.stopx - r, t.starty, t.startx, t.stopy + n.height / 2 + Z.noteMargin), t.stopx += r) : (Q.insert(t.startx, t.starty, t.stopx + r, t.stopy + n.height / 2 + Z.noteMargin), t.stopx -= r);
|
|
3727
3812
|
}
|
|
3728
|
-
|
|
3813
|
+
v(s, "receiverAdjustment");
|
|
3729
3814
|
function c(n, r) {
|
|
3730
3815
|
n.x < i.get(e.to).x ? (Q.insert(t.startx - r, t.starty, t.stopx, t.stopy + n.height / 2 + Z.noteMargin), t.startx += r) : (Q.insert(t.stopx, t.starty, t.startx + r, t.stopy + n.height / 2 + Z.noteMargin), t.startx -= r);
|
|
3731
3816
|
}
|
|
3732
|
-
|
|
3817
|
+
v(c, "senderAdjustment");
|
|
3733
3818
|
let l = [
|
|
3734
3819
|
R.ACTOR,
|
|
3735
3820
|
R.CONTROL,
|
|
@@ -3747,196 +3832,196 @@ function Ge(e, t, n, r, i, a, o) {
|
|
|
3747
3832
|
Z.mirrorActors && s(t, l.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.stopy = n - t.height / 2, Q.bumpVerticalPos(t.height / 2);
|
|
3748
3833
|
}
|
|
3749
3834
|
}
|
|
3750
|
-
|
|
3751
|
-
var
|
|
3752
|
-
let { securityLevel:
|
|
3753
|
-
Z =
|
|
3835
|
+
v(it, "adjustCreatedDestroyedData");
|
|
3836
|
+
var at = /* @__PURE__ */ v(async function(e, t, n, r) {
|
|
3837
|
+
let { securityLevel: i, sequence: a, look: o, themeVariables: s } = c();
|
|
3838
|
+
Z = a;
|
|
3754
3839
|
let u;
|
|
3755
|
-
|
|
3756
|
-
let
|
|
3757
|
-
Q.init(),
|
|
3758
|
-
let
|
|
3759
|
-
if (Z.height = await
|
|
3840
|
+
i === "sandbox" && (u = b("#i" + t));
|
|
3841
|
+
let d = b(i === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), f = i === "sandbox" ? u.nodes()[0].contentDocument : document;
|
|
3842
|
+
Q.init(), y.debug(r.db);
|
|
3843
|
+
let p = i === "sandbox" ? d.select(`[id="${t}"]`) : b(`[id="${t}"]`), m = r.db.getActors(), h = r.db.getCreatedActors(), g = r.db.getDestroyedActors(), _ = r.db.getBoxes(), x = r.db.getActorKeys(), S = r.db.getMessages(), C = r.db.getDiagramTitle(), w = r.db.hasAtLeastOneBox(), T = r.db.hasAtLeastOneBoxWithTitle(), E = await ot(m, S, r);
|
|
3844
|
+
if (Z.height = await ct(m, E, _), X.insertComputerIcon(p, t), X.insertDatabaseIcon(p, t), X.insertClockIcon(p, t), w && (Q.bumpVerticalPos(Z.boxMargin), T && Q.bumpVerticalPos(_[0].textMaxHeight)), Z.hideUnusedParticipants === !0) {
|
|
3760
3845
|
let e = /* @__PURE__ */ new Set();
|
|
3761
3846
|
S.forEach((t) => {
|
|
3762
3847
|
e.add(t.from), e.add(t.to);
|
|
3763
3848
|
}), x = x.filter((t) => e.has(t));
|
|
3764
3849
|
}
|
|
3765
|
-
let D = new Map(x.map((e, t) => [
|
|
3766
|
-
|
|
3767
|
-
let O = await
|
|
3768
|
-
X.insertArrowHead(
|
|
3850
|
+
let D = new Map(x.map((e, t) => [m.get(e)?.name ?? e, t]));
|
|
3851
|
+
Qe(p, m, h, x, 0, S, !1);
|
|
3852
|
+
let O = await _t(S, m, E, r);
|
|
3853
|
+
X.insertArrowHead(p, t), X.insertArrowCrossHead(p, t), X.insertArrowFilledHead(p, t), X.insertSequenceNumber(p, t), X.insertSolidTopArrowHead(p, t), X.insertSolidBottomArrowHead(p, t), X.insertStickTopArrowHead(p, t), X.insertStickBottomArrowHead(p, t), o === "neo" && X.insertDropShadow(p, Z, t);
|
|
3769
3854
|
function k(e, t) {
|
|
3770
3855
|
let n = Q.endActivation(e);
|
|
3771
|
-
n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(
|
|
3856
|
+
n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(p, n, t, Z, nt(e.from).length, r, D), Q.insert(n.startx, t - 10, n.stopx, t);
|
|
3772
3857
|
}
|
|
3773
|
-
|
|
3858
|
+
v(k, "activeEnd");
|
|
3774
3859
|
let A = 1, j = 1, M = [], N = [], P = 0;
|
|
3775
|
-
for (let
|
|
3776
|
-
let
|
|
3777
|
-
switch (
|
|
3778
|
-
case
|
|
3779
|
-
Q.resetVerticalPos(),
|
|
3860
|
+
for (let e of S) {
|
|
3861
|
+
let t, n, i;
|
|
3862
|
+
switch (e.type) {
|
|
3863
|
+
case r.db.LINETYPE.NOTE:
|
|
3864
|
+
Q.resetVerticalPos(), n = e.noteModel, await Ge(p, n, e.id);
|
|
3780
3865
|
break;
|
|
3781
|
-
case
|
|
3782
|
-
Q.newActivation(
|
|
3866
|
+
case r.db.LINETYPE.ACTIVE_START:
|
|
3867
|
+
Q.newActivation(e, p, m);
|
|
3783
3868
|
break;
|
|
3784
|
-
case
|
|
3785
|
-
Q.newActivation(
|
|
3869
|
+
case r.db.LINETYPE.CENTRAL_CONNECTION:
|
|
3870
|
+
Q.newActivation(e, p, m);
|
|
3786
3871
|
break;
|
|
3787
|
-
case
|
|
3788
|
-
Q.newActivation(
|
|
3872
|
+
case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
|
|
3873
|
+
Q.newActivation(e, p, m);
|
|
3789
3874
|
break;
|
|
3790
|
-
case
|
|
3791
|
-
k(
|
|
3875
|
+
case r.db.LINETYPE.ACTIVE_END:
|
|
3876
|
+
k(e, Q.getVerticalPos());
|
|
3792
3877
|
break;
|
|
3793
|
-
case
|
|
3794
|
-
$(O,
|
|
3878
|
+
case r.db.LINETYPE.LOOP_START:
|
|
3879
|
+
$(O, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
|
|
3795
3880
|
break;
|
|
3796
|
-
case
|
|
3797
|
-
|
|
3881
|
+
case r.db.LINETYPE.LOOP_END:
|
|
3882
|
+
t = Q.endLoop(), await X.drawLoop(p, t, "loop", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
|
|
3798
3883
|
break;
|
|
3799
|
-
case
|
|
3800
|
-
$(O,
|
|
3884
|
+
case r.db.LINETYPE.RECT_START:
|
|
3885
|
+
$(O, e, Z.boxMargin, Z.boxMargin, (e) => {
|
|
3801
3886
|
let t = e.message;
|
|
3802
|
-
t ||=
|
|
3887
|
+
t ||= s?.rectBkgColor || s?.actorBkg || "rgba(128, 128, 128, 0.5)", Q.newLoop(void 0, t);
|
|
3803
3888
|
});
|
|
3804
3889
|
break;
|
|
3805
|
-
case
|
|
3806
|
-
|
|
3890
|
+
case r.db.LINETYPE.RECT_END:
|
|
3891
|
+
t = Q.endLoop(), N.push(t), Q.models.addLoop(t), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos());
|
|
3807
3892
|
break;
|
|
3808
|
-
case
|
|
3809
|
-
$(O,
|
|
3893
|
+
case r.db.LINETYPE.OPT_START:
|
|
3894
|
+
$(O, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
|
|
3810
3895
|
break;
|
|
3811
|
-
case
|
|
3812
|
-
|
|
3896
|
+
case r.db.LINETYPE.OPT_END:
|
|
3897
|
+
t = Q.endLoop(), await X.drawLoop(p, t, "opt", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
|
|
3813
3898
|
break;
|
|
3814
|
-
case
|
|
3815
|
-
$(O,
|
|
3899
|
+
case r.db.LINETYPE.ALT_START:
|
|
3900
|
+
$(O, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
|
|
3816
3901
|
break;
|
|
3817
|
-
case
|
|
3818
|
-
$(O,
|
|
3902
|
+
case r.db.LINETYPE.ALT_ELSE:
|
|
3903
|
+
$(O, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
|
|
3819
3904
|
break;
|
|
3820
|
-
case
|
|
3821
|
-
|
|
3905
|
+
case r.db.LINETYPE.ALT_END:
|
|
3906
|
+
t = Q.endLoop(), await X.drawLoop(p, t, "alt", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
|
|
3822
3907
|
break;
|
|
3823
|
-
case
|
|
3824
|
-
case
|
|
3825
|
-
$(O,
|
|
3908
|
+
case r.db.LINETYPE.PAR_START:
|
|
3909
|
+
case r.db.LINETYPE.PAR_OVER_START:
|
|
3910
|
+
$(O, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e)), Q.saveVerticalPos();
|
|
3826
3911
|
break;
|
|
3827
|
-
case
|
|
3828
|
-
$(O,
|
|
3912
|
+
case r.db.LINETYPE.PAR_AND:
|
|
3913
|
+
$(O, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
|
|
3829
3914
|
break;
|
|
3830
|
-
case
|
|
3831
|
-
|
|
3915
|
+
case r.db.LINETYPE.PAR_END:
|
|
3916
|
+
t = Q.endLoop(), await X.drawLoop(p, t, "par", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
|
|
3832
3917
|
break;
|
|
3833
|
-
case
|
|
3834
|
-
A =
|
|
3918
|
+
case r.db.LINETYPE.AUTONUMBER:
|
|
3919
|
+
A = e.message.start || A, j = e.message.step || j, e.message.visible ? r.db.enableSequenceNumbers() : r.db.disableSequenceNumbers();
|
|
3835
3920
|
break;
|
|
3836
|
-
case
|
|
3837
|
-
$(O,
|
|
3921
|
+
case r.db.LINETYPE.CRITICAL_START:
|
|
3922
|
+
$(O, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
|
|
3838
3923
|
break;
|
|
3839
|
-
case
|
|
3840
|
-
$(O,
|
|
3924
|
+
case r.db.LINETYPE.CRITICAL_OPTION:
|
|
3925
|
+
$(O, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
|
|
3841
3926
|
break;
|
|
3842
|
-
case
|
|
3843
|
-
|
|
3927
|
+
case r.db.LINETYPE.CRITICAL_END:
|
|
3928
|
+
t = Q.endLoop(), await X.drawLoop(p, t, "critical", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
|
|
3844
3929
|
break;
|
|
3845
|
-
case
|
|
3846
|
-
$(O,
|
|
3930
|
+
case r.db.LINETYPE.BREAK_START:
|
|
3931
|
+
$(O, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
|
|
3847
3932
|
break;
|
|
3848
|
-
case
|
|
3849
|
-
|
|
3933
|
+
case r.db.LINETYPE.BREAK_END:
|
|
3934
|
+
t = Q.endLoop(), await X.drawLoop(p, t, "break", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
|
|
3850
3935
|
break;
|
|
3851
3936
|
default: try {
|
|
3852
|
-
i =
|
|
3853
|
-
let
|
|
3854
|
-
|
|
3937
|
+
i = e.msgModel, i.starty = Q.getVerticalPos(), i.sequenceIndex = A, i.sequenceVisible = r.db.showSequenceNumbers(), i.id = e.id, i.from = e.from, i.to = e.to;
|
|
3938
|
+
let t = await Xe(p, i);
|
|
3939
|
+
it(e, i, t, P, m, h, g), M.push({
|
|
3855
3940
|
messageModel: i,
|
|
3856
|
-
lineStartY:
|
|
3857
|
-
msg:
|
|
3941
|
+
lineStartY: t,
|
|
3942
|
+
msg: e
|
|
3858
3943
|
}), Q.models.addMessage(i);
|
|
3859
|
-
} catch (
|
|
3860
|
-
|
|
3944
|
+
} catch (e) {
|
|
3945
|
+
y.error("error while drawing message", e);
|
|
3861
3946
|
}
|
|
3862
3947
|
}
|
|
3863
3948
|
[
|
|
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
|
-
|
|
3890
|
-
].includes(
|
|
3949
|
+
r.db.LINETYPE.SOLID_OPEN,
|
|
3950
|
+
r.db.LINETYPE.DOTTED_OPEN,
|
|
3951
|
+
r.db.LINETYPE.SOLID,
|
|
3952
|
+
r.db.LINETYPE.SOLID_TOP,
|
|
3953
|
+
r.db.LINETYPE.SOLID_BOTTOM,
|
|
3954
|
+
r.db.LINETYPE.STICK_TOP,
|
|
3955
|
+
r.db.LINETYPE.STICK_BOTTOM,
|
|
3956
|
+
r.db.LINETYPE.SOLID_TOP_DOTTED,
|
|
3957
|
+
r.db.LINETYPE.SOLID_BOTTOM_DOTTED,
|
|
3958
|
+
r.db.LINETYPE.STICK_TOP_DOTTED,
|
|
3959
|
+
r.db.LINETYPE.STICK_BOTTOM_DOTTED,
|
|
3960
|
+
r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
3961
|
+
r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
|
|
3962
|
+
r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
|
|
3963
|
+
r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
|
|
3964
|
+
r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
|
|
3965
|
+
r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
3966
|
+
r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
|
|
3967
|
+
r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
3968
|
+
r.db.LINETYPE.DOTTED,
|
|
3969
|
+
r.db.LINETYPE.SOLID_CROSS,
|
|
3970
|
+
r.db.LINETYPE.DOTTED_CROSS,
|
|
3971
|
+
r.db.LINETYPE.SOLID_POINT,
|
|
3972
|
+
r.db.LINETYPE.DOTTED_POINT,
|
|
3973
|
+
r.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
3974
|
+
r.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
3975
|
+
].includes(e.type) && (A = Math.round((A + j) * 100) / 100), P++;
|
|
3891
3976
|
}
|
|
3892
|
-
|
|
3893
|
-
for (let e of M) await
|
|
3894
|
-
Z.mirrorActors && await
|
|
3977
|
+
y.debug("createdActors", h), y.debug("destroyedActors", g), await $e(p, m, x, !1, t, r, D);
|
|
3978
|
+
for (let e of M) await Ze(p, e.messageModel, e.lineStartY, r, e.msg, t);
|
|
3979
|
+
Z.mirrorActors && await $e(p, m, x, !0, t, r, D), N.forEach((e) => X.drawBackgroundRect(p, e)), be(p, m, x, Z);
|
|
3895
3980
|
for (let e of Q.models.boxes) {
|
|
3896
3981
|
e.height = Q.getVerticalPos() - e.y, Q.insert(e.x, e.y, e.x + e.width, e.height);
|
|
3897
3982
|
let t = Z.boxMargin * 2;
|
|
3898
|
-
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(
|
|
3983
|
+
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(p, e, Z);
|
|
3899
3984
|
}
|
|
3900
3985
|
w && Q.bumpVerticalPos(Z.boxMargin);
|
|
3901
|
-
let F =
|
|
3986
|
+
let F = et(p, m, x, f), { bounds: I } = Q.getBounds();
|
|
3902
3987
|
I.startx === void 0 && (I.startx = 0), I.starty === void 0 && (I.starty = 0), I.stopx === void 0 && (I.stopx = 0), I.stopy === void 0 && (I.stopy = 0);
|
|
3903
|
-
let
|
|
3904
|
-
|
|
3905
|
-
let
|
|
3906
|
-
Z.mirrorActors && (
|
|
3988
|
+
let L = I.stopy - I.starty;
|
|
3989
|
+
L < F.maxHeight && (L = F.maxHeight);
|
|
3990
|
+
let ee = L + 2 * Z.diagramMarginY;
|
|
3991
|
+
Z.mirrorActors && (ee = ee - Z.boxMargin + Z.bottomMarginAdj);
|
|
3907
3992
|
let R = I.stopx - I.startx;
|
|
3908
3993
|
R < F.maxWidth && (R = F.maxWidth);
|
|
3909
3994
|
let te = R + 2 * Z.diagramMarginX;
|
|
3910
|
-
C &&
|
|
3911
|
-
let ne = C ? 40 : 0,
|
|
3912
|
-
|
|
3995
|
+
C && p.append("text").text(C).attr("x", (I.stopx - I.startx) / 2 - 2 * Z.diagramMarginX).attr("y", -25), l(p, ee, te, Z.useMaxWidth);
|
|
3996
|
+
let ne = C ? 40 : 0, re = m.size && o === "neo" ? 30 : 0;
|
|
3997
|
+
p.attr("viewBox", I.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + ne) + " " + te + " " + (ee + ne + re)), y.debug("models:", Q.models);
|
|
3913
3998
|
}, "draw");
|
|
3914
|
-
async function
|
|
3915
|
-
let
|
|
3916
|
-
for (let
|
|
3917
|
-
let
|
|
3918
|
-
if (
|
|
3919
|
-
let
|
|
3920
|
-
|
|
3999
|
+
async function ot(e, t, n) {
|
|
4000
|
+
let r = {};
|
|
4001
|
+
for (let i of t) if (e.get(i.to) && e.get(i.from)) {
|
|
4002
|
+
let t = e.get(i.to);
|
|
4003
|
+
if (i.placement === n.db.PLACEMENT.LEFTOF && !t.prevActor || i.placement === n.db.PLACEMENT.RIGHTOF && !t.nextActor) continue;
|
|
4004
|
+
let a = i.placement !== void 0, o = !a, s = a ? Je(Z) : qe(Z), l = i.wrap ? S.wrapLabel(i.message, Z.width - 2 * Z.wrapPadding, s) : i.message, f = (d(l) ? await u(i.message, c()) : S.calculateTextDimensions(l, s)).width + 2 * Z.wrapPadding;
|
|
4005
|
+
o && i.from === t.nextActor ? r[i.to] = m.getMax(r[i.to] || 0, f) : o && i.from === t.prevActor ? r[i.from] = m.getMax(r[i.from] || 0, f) : o && i.from === i.to ? (r[i.from] = m.getMax(r[i.from] || 0, f / 2), r[i.to] = m.getMax(r[i.to] || 0, f / 2)) : i.placement === n.db.PLACEMENT.RIGHTOF ? r[i.from] = m.getMax(r[i.from] || 0, f) : i.placement === n.db.PLACEMENT.LEFTOF ? r[t.prevActor] = m.getMax(r[t.prevActor] || 0, f) : i.placement === n.db.PLACEMENT.OVER && (t.prevActor && (r[t.prevActor] = m.getMax(r[t.prevActor] || 0, f / 2)), t.nextActor && (r[i.from] = m.getMax(r[i.from] || 0, f / 2)));
|
|
3921
4006
|
}
|
|
3922
|
-
return
|
|
4007
|
+
return y.debug("maxMessageWidthPerActor:", r), r;
|
|
3923
4008
|
}
|
|
3924
|
-
|
|
3925
|
-
var
|
|
3926
|
-
let t = 0, n =
|
|
4009
|
+
v(ot, "getMaxMessageWidthPerActor");
|
|
4010
|
+
var st = /* @__PURE__ */ v(function(e) {
|
|
4011
|
+
let t = 0, n = Ye(Z);
|
|
3927
4012
|
for (let r in e.links) {
|
|
3928
4013
|
let e = S.calculateTextDimensions(r, n).width + 2 * Z.wrapPadding + 2 * Z.boxMargin;
|
|
3929
4014
|
t < e && (t = e);
|
|
3930
4015
|
}
|
|
3931
4016
|
return t;
|
|
3932
4017
|
}, "getRequiredPopupWidth");
|
|
3933
|
-
async function
|
|
3934
|
-
let
|
|
4018
|
+
async function ct(e, t, n) {
|
|
4019
|
+
let r = 0;
|
|
3935
4020
|
for (let t of e.keys()) {
|
|
3936
|
-
let
|
|
3937
|
-
|
|
3938
|
-
let
|
|
3939
|
-
|
|
4021
|
+
let n = e.get(t);
|
|
4022
|
+
n.wrap && (n.description = S.wrapLabel(n.description, Z.width - 2 * Z.wrapPadding, Ye(Z)));
|
|
4023
|
+
let i = d(n.description) ? await u(n.description, c()) : S.calculateTextDimensions(n.description, Ye(Z));
|
|
4024
|
+
n.width = n.wrap ? Z.width : m.getMax(Z.width, i.width + 2 * Z.wrapPadding), c().look === "neo" ? (n.actorTextHeight = i.height, n.height = m.getMax(se(i.height), Z.height)) : n.height = n.wrap ? m.getMax(i.height, Z.height) : Z.height, r = m.getMax(r, n.height);
|
|
3940
4025
|
}
|
|
3941
4026
|
for (let n in t) {
|
|
3942
4027
|
let r = e.get(n);
|
|
@@ -3950,42 +4035,42 @@ async function Ye(e, t, r) {
|
|
|
3950
4035
|
let a = t[n] + Z.actorMargin - r.width / 2 - i.width / 2;
|
|
3951
4036
|
r.margin = m.getMax(a, Z.actorMargin);
|
|
3952
4037
|
}
|
|
3953
|
-
let
|
|
3954
|
-
return
|
|
3955
|
-
let n =
|
|
3956
|
-
r +=
|
|
4038
|
+
let i = 0;
|
|
4039
|
+
return n.forEach((t) => {
|
|
4040
|
+
let n = qe(Z), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), a = Z.boxMargin * 8;
|
|
4041
|
+
r += a, r -= 2 * Z.boxTextMargin, t.wrap && (t.name = S.wrapLabel(t.name, r - 2 * Z.wrapPadding, n));
|
|
3957
4042
|
let o = S.calculateTextDimensions(t.name, n);
|
|
3958
|
-
|
|
4043
|
+
i = m.getMax(o.height, i);
|
|
3959
4044
|
let s = m.getMax(r, o.width + 2 * Z.wrapPadding);
|
|
3960
4045
|
if (t.margin = Z.boxTextMargin, r < s) {
|
|
3961
4046
|
let e = (s - r) / 2;
|
|
3962
4047
|
t.margin += e;
|
|
3963
4048
|
}
|
|
3964
|
-
}),
|
|
4049
|
+
}), n.forEach((e) => e.textMaxHeight = i), m.getMax(r, Z.height);
|
|
3965
4050
|
}
|
|
3966
|
-
|
|
3967
|
-
var
|
|
3968
|
-
let
|
|
3969
|
-
width:
|
|
4051
|
+
v(ct, "calculateActorMargins");
|
|
4052
|
+
var lt = /* @__PURE__ */ v(async function(e, t, n) {
|
|
4053
|
+
let r = t.get(e.from), i = t.get(e.to), a = r.x, o = i.x, s = e.wrap && e.message, l = d(e.message) ? await u(e.message, c()) : S.calculateTextDimensions(s ? S.wrapLabel(e.message, Z.width, Je(Z)) : e.message, Je(Z)), f = {
|
|
4054
|
+
width: s ? Z.width : m.getMax(Z.width, l.width + 2 * Z.noteMargin),
|
|
3970
4055
|
height: 0,
|
|
3971
|
-
startx:
|
|
4056
|
+
startx: r.x,
|
|
3972
4057
|
stopx: 0,
|
|
3973
4058
|
starty: 0,
|
|
3974
4059
|
stopy: 0,
|
|
3975
|
-
message:
|
|
4060
|
+
message: e.message
|
|
3976
4061
|
};
|
|
3977
|
-
return
|
|
3978
|
-
}, "buildNoteModel"),
|
|
4062
|
+
return e.placement === n.db.PLACEMENT.RIGHTOF ? (f.width = s ? m.getMax(Z.width, l.width) : m.getMax(r.width / 2 + i.width / 2, l.width + 2 * Z.noteMargin), f.startx = a + (r.width + Z.actorMargin) / 2) : e.placement === n.db.PLACEMENT.LEFTOF ? (f.width = s ? m.getMax(Z.width, l.width + 2 * Z.noteMargin) : m.getMax(r.width / 2 + i.width / 2, l.width + 2 * Z.noteMargin), f.startx = a - f.width + (r.width - Z.actorMargin) / 2) : e.to === e.from ? (l = S.calculateTextDimensions(s ? S.wrapLabel(e.message, m.getMax(Z.width, r.width), Je(Z)) : e.message, Je(Z)), f.width = s ? m.getMax(Z.width, r.width) : m.getMax(r.width, Z.width, l.width + 2 * Z.noteMargin), f.startx = a + (r.width - f.width) / 2) : (f.width = Math.abs(a + r.width / 2 - (o + i.width / 2)) + Z.actorMargin, f.startx = a < o ? a + r.width / 2 - Z.actorMargin / 2 : o + i.width / 2 - Z.actorMargin / 2), s && (f.message = S.wrapLabel(e.message, f.width - 2 * Z.wrapPadding, Je(Z))), y.debug(`NM:[${f.startx},${f.stopx},${f.starty},${f.stopy}:${f.width},${f.height}=${e.message}]`), f;
|
|
4063
|
+
}, "buildNoteModel"), ut = 4, dt = 6, ft = /* @__PURE__ */ v(function(e, t) {
|
|
3979
4064
|
let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
|
|
3980
4065
|
return [
|
|
3981
4066
|
n,
|
|
3982
4067
|
r,
|
|
3983
4068
|
i
|
|
3984
4069
|
].includes(e.centralConnection);
|
|
3985
|
-
}, "hasCentralConnection"),
|
|
4070
|
+
}, "hasCentralConnection"), pt = /* @__PURE__ */ v(function(e, t, n) {
|
|
3986
4071
|
let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
|
|
3987
|
-
return (e.centralConnection === r || e.centralConnection === i) && (s +=
|
|
3988
|
-
}, "calculateCentralConnectionOffset"),
|
|
4072
|
+
return (e.centralConnection === r || e.centralConnection === i) && (s += ut), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -dt), s;
|
|
4073
|
+
}, "calculateCentralConnectionOffset"), mt = /* @__PURE__ */ v(function(e, t) {
|
|
3989
4074
|
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;
|
|
3990
4075
|
return [
|
|
3991
4076
|
n,
|
|
@@ -3997,11 +4082,11 @@ var Xe = /* @__PURE__ */ b(async function(t, r, i) {
|
|
|
3997
4082
|
c,
|
|
3998
4083
|
l
|
|
3999
4084
|
].includes(e.type);
|
|
4000
|
-
}, "isReverseArrowType"),
|
|
4085
|
+
}, "isReverseArrowType"), ht = /* @__PURE__ */ v(function(e, t) {
|
|
4001
4086
|
let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
|
|
4002
4087
|
return [n, r].includes(e.type);
|
|
4003
|
-
}, "isBidirectionalArrowType"),
|
|
4004
|
-
let { look: r } =
|
|
4088
|
+
}, "isBidirectionalArrowType"), gt = /* @__PURE__ */ v(function(e, t, n) {
|
|
4089
|
+
let { look: r } = c();
|
|
4005
4090
|
if (![
|
|
4006
4091
|
n.db.LINETYPE.SOLID_OPEN,
|
|
4007
4092
|
n.db.LINETYPE.DOTTED_OPEN,
|
|
@@ -4030,10 +4115,10 @@ var Xe = /* @__PURE__ */ b(async function(t, r, i) {
|
|
|
4030
4115
|
n.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
4031
4116
|
n.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
4032
4117
|
].includes(e.type)) return {};
|
|
4033
|
-
let [i, a] =
|
|
4034
|
-
r === "neo" && (e.type !== n.db.LINETYPE.SOLID_OPEN && (
|
|
4035
|
-
let
|
|
4036
|
-
e.from === e.to ?
|
|
4118
|
+
let [i, a] = rt(e.from, t), [o, s] = rt(e.to, t), l = i <= o, u = l ? a : i, d = l ? o : s;
|
|
4119
|
+
r === "neo" && (e.type !== n.db.LINETYPE.SOLID_OPEN && (d += l ? -3 : 3), (e.type === n.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === n.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (u += l ? 3 : -3)), u += pt(e, n, l);
|
|
4120
|
+
let f = Math.abs(o - s) > 2, p = /* @__PURE__ */ v((e) => l ? -e : e, "adjustValue");
|
|
4121
|
+
e.from === e.to ? d = u : (e.activate && !f && (d += p(Z.activationWidth / 2 - 1)), [
|
|
4037
4122
|
n.db.LINETYPE.SOLID_OPEN,
|
|
4038
4123
|
n.db.LINETYPE.DOTTED_OPEN,
|
|
4039
4124
|
n.db.LINETYPE.STICK_TOP,
|
|
@@ -4048,109 +4133,109 @@ var Xe = /* @__PURE__ */ b(async function(t, r, i) {
|
|
|
4048
4133
|
n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
4049
4134
|
n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
4050
4135
|
n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
|
|
4051
|
-
].includes(e.type) || (
|
|
4136
|
+
].includes(e.type) || (d += p(3)), [
|
|
4052
4137
|
n.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
4053
4138
|
n.db.LINETYPE.BIDIRECTIONAL_DOTTED,
|
|
4054
4139
|
n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
|
|
4055
4140
|
n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
4056
4141
|
n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
4057
4142
|
n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
|
|
4058
|
-
].includes(e.type) && (
|
|
4059
|
-
let
|
|
4143
|
+
].includes(e.type) && (u -= p(3)));
|
|
4144
|
+
let h = [
|
|
4060
4145
|
i,
|
|
4061
4146
|
a,
|
|
4062
4147
|
o,
|
|
4063
4148
|
s
|
|
4064
|
-
],
|
|
4065
|
-
e.wrap && e.message && (e.message = S.wrapLabel(e.message, m.getMax(
|
|
4066
|
-
let
|
|
4149
|
+
], g = Math.abs(u - d);
|
|
4150
|
+
e.wrap && e.message && (e.message = S.wrapLabel(e.message, m.getMax(g + 2 * Z.wrapPadding, Z.width), qe(Z)));
|
|
4151
|
+
let _ = S.calculateTextDimensions(e.message, qe(Z));
|
|
4067
4152
|
return {
|
|
4068
|
-
width: m.getMax(e.wrap ? 0 :
|
|
4153
|
+
width: m.getMax(e.wrap ? 0 : _.width + 2 * Z.wrapPadding, g + 2 * Z.wrapPadding, Z.width),
|
|
4069
4154
|
height: 0,
|
|
4070
|
-
startx:
|
|
4071
|
-
stopx:
|
|
4155
|
+
startx: u,
|
|
4156
|
+
stopx: d,
|
|
4072
4157
|
starty: 0,
|
|
4073
4158
|
stopy: 0,
|
|
4074
4159
|
message: e.message,
|
|
4075
4160
|
type: e.type,
|
|
4076
4161
|
wrap: e.wrap,
|
|
4077
|
-
fromBounds: Math.min.apply(null,
|
|
4078
|
-
toBounds: Math.max.apply(null,
|
|
4162
|
+
fromBounds: Math.min.apply(null, h),
|
|
4163
|
+
toBounds: Math.max.apply(null, h)
|
|
4079
4164
|
};
|
|
4080
|
-
}, "buildMessageModel"),
|
|
4081
|
-
let
|
|
4082
|
-
for (let
|
|
4083
|
-
switch (
|
|
4084
|
-
case
|
|
4085
|
-
case
|
|
4086
|
-
case
|
|
4087
|
-
case
|
|
4088
|
-
case
|
|
4089
|
-
case
|
|
4090
|
-
case
|
|
4091
|
-
|
|
4092
|
-
id:
|
|
4093
|
-
msg:
|
|
4165
|
+
}, "buildMessageModel"), _t = /* @__PURE__ */ v(async function(e, t, n, r) {
|
|
4166
|
+
let i = {}, a = [], o, s, c;
|
|
4167
|
+
for (let n of e) {
|
|
4168
|
+
switch (n.type) {
|
|
4169
|
+
case r.db.LINETYPE.LOOP_START:
|
|
4170
|
+
case r.db.LINETYPE.ALT_START:
|
|
4171
|
+
case r.db.LINETYPE.OPT_START:
|
|
4172
|
+
case r.db.LINETYPE.PAR_START:
|
|
4173
|
+
case r.db.LINETYPE.PAR_OVER_START:
|
|
4174
|
+
case r.db.LINETYPE.CRITICAL_START:
|
|
4175
|
+
case r.db.LINETYPE.BREAK_START:
|
|
4176
|
+
a.push({
|
|
4177
|
+
id: n.id,
|
|
4178
|
+
msg: n.message,
|
|
4094
4179
|
from: 2 ** 53 - 1,
|
|
4095
4180
|
to: -(2 ** 53 - 1),
|
|
4096
4181
|
width: 0
|
|
4097
4182
|
});
|
|
4098
4183
|
break;
|
|
4099
|
-
case
|
|
4100
|
-
case
|
|
4101
|
-
case
|
|
4102
|
-
|
|
4184
|
+
case r.db.LINETYPE.ALT_ELSE:
|
|
4185
|
+
case r.db.LINETYPE.PAR_AND:
|
|
4186
|
+
case r.db.LINETYPE.CRITICAL_OPTION:
|
|
4187
|
+
n.message && (o = a.pop(), i[o.id] = o, i[n.id] = o, a.push(o));
|
|
4103
4188
|
break;
|
|
4104
|
-
case
|
|
4105
|
-
case
|
|
4106
|
-
case
|
|
4107
|
-
case
|
|
4108
|
-
case
|
|
4109
|
-
case
|
|
4110
|
-
|
|
4189
|
+
case r.db.LINETYPE.LOOP_END:
|
|
4190
|
+
case r.db.LINETYPE.ALT_END:
|
|
4191
|
+
case r.db.LINETYPE.OPT_END:
|
|
4192
|
+
case r.db.LINETYPE.PAR_END:
|
|
4193
|
+
case r.db.LINETYPE.CRITICAL_END:
|
|
4194
|
+
case r.db.LINETYPE.BREAK_END:
|
|
4195
|
+
o = a.pop(), i[o.id] = o;
|
|
4111
4196
|
break;
|
|
4112
|
-
case
|
|
4197
|
+
case r.db.LINETYPE.ACTIVE_START:
|
|
4113
4198
|
{
|
|
4114
|
-
let
|
|
4199
|
+
let e = t.get(n.from ? n.from : n.to.actor), r = nt(n.from ? n.from : n.to.actor).length, i = e.x + e.width / 2 + (r - 1) * Z.activationWidth / 2, a = {
|
|
4115
4200
|
startx: i,
|
|
4116
4201
|
stopx: i + Z.activationWidth,
|
|
4117
|
-
actor:
|
|
4202
|
+
actor: n.from,
|
|
4118
4203
|
enabled: !0
|
|
4119
4204
|
};
|
|
4120
4205
|
Q.activations.push(a);
|
|
4121
4206
|
}
|
|
4122
4207
|
break;
|
|
4123
|
-
case
|
|
4124
|
-
let
|
|
4125
|
-
Q.activations.splice(
|
|
4208
|
+
case r.db.LINETYPE.ACTIVE_END: {
|
|
4209
|
+
let e = Q.activations.map((e) => e.actor).lastIndexOf(n.from);
|
|
4210
|
+
Q.activations.splice(e, 1).splice(0, 1);
|
|
4126
4211
|
}
|
|
4127
4212
|
}
|
|
4128
|
-
|
|
4129
|
-
if (
|
|
4130
|
-
let
|
|
4131
|
-
|
|
4132
|
-
} else
|
|
4133
|
-
})) : (
|
|
4134
|
-
|
|
4213
|
+
n.placement === void 0 ? (c = gt(n, t, r), n.msgModel = c, c.startx && c.stopx && a.length > 0 && a.forEach((e) => {
|
|
4214
|
+
if (o = e, c.startx === c.stopx) {
|
|
4215
|
+
let e = t.get(n.from), r = t.get(n.to);
|
|
4216
|
+
o.from = m.getMin(e.x - c.width / 2, e.x - e.width / 2, o.from), o.to = m.getMax(r.x + c.width / 2, r.x + e.width / 2, o.to), o.width = m.getMax(o.width, Math.abs(o.to - o.from)) - Z.labelBoxWidth;
|
|
4217
|
+
} else o.from = m.getMin(c.startx, o.from), o.to = m.getMax(c.stopx, o.to), o.width = m.getMax(o.width, c.width) - Z.labelBoxWidth;
|
|
4218
|
+
})) : (s = await lt(n, t, r), n.noteModel = s, a.forEach((e) => {
|
|
4219
|
+
o = e, o.from = m.getMin(o.from, s.startx), o.to = m.getMax(o.to, s.startx + s.width), o.width = m.getMax(o.width, Math.abs(o.from - o.to)) - Z.labelBoxWidth;
|
|
4135
4220
|
}));
|
|
4136
4221
|
}
|
|
4137
|
-
return Q.activations = [],
|
|
4138
|
-
}, "calculateLoopBounds"),
|
|
4222
|
+
return Q.activations = [], y.debug("Loop type widths:", i), i;
|
|
4223
|
+
}, "calculateLoopBounds"), vt = {
|
|
4139
4224
|
parser: F,
|
|
4140
4225
|
get db() {
|
|
4141
4226
|
return new te();
|
|
4142
4227
|
},
|
|
4143
4228
|
renderer: {
|
|
4144
4229
|
bounds: Q,
|
|
4145
|
-
drawActors:
|
|
4146
|
-
drawActorsPopup:
|
|
4147
|
-
setConf:
|
|
4148
|
-
draw:
|
|
4230
|
+
drawActors: $e,
|
|
4231
|
+
drawActorsPopup: et,
|
|
4232
|
+
setConf: tt,
|
|
4233
|
+
draw: at
|
|
4149
4234
|
},
|
|
4150
4235
|
styles: ne,
|
|
4151
|
-
init: /* @__PURE__ */
|
|
4152
|
-
e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap,
|
|
4236
|
+
init: /* @__PURE__ */ v((e) => {
|
|
4237
|
+
e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, r({ sequence: { wrap: e.wrap } }));
|
|
4153
4238
|
}, "init")
|
|
4154
4239
|
};
|
|
4155
4240
|
//#endregion
|
|
4156
|
-
export {
|
|
4241
|
+
export { vt as diagram };
|