@sme.up/ketchup2 2.7.0 → 2.8.1
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 +89 -0
- package/dist/{arc-CVbkjF8U.js → arc-DXfwi1YX.js} +8 -6
- package/dist/architecture-7GRP2DOG-BsytjMto.js +3 -0
- package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-N1aPr2hw.js} +636 -540
- package/dist/assets/svg/functions.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +5 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
- package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +15 -1
- 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/chips-input/chips-input-types.d.ts +5 -0
- package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload-hook.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.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-types.d.ts +5 -0
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/blockDiagram-I7D4REHJ-Cu18ws5-.js +1922 -0
- package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-B-uBy_NE.js} +899 -850
- package/dist/{channel-C-LAmObA.js → channel-CuEby436.js} +1 -1
- package/dist/chunk-2E4U76K2-ComA5SPA.js +348 -0
- package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
- package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-CZgIgrp_.js} +1667 -1145
- package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
- package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-Drsj7a97.js} +106 -136
- package/dist/chunk-CLGD4ZFX-CLGio9rD.js +14 -0
- package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-waeanndy.js} +1005 -768
- package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-jIrOJO87.js} +18 -17
- package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-LRqOLsSw.js} +5518 -4708
- package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-D80II4AD.js} +486 -520
- package/dist/chunk-GVQU2GXP-DP3t_9Rl.js +37 -0
- package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-8ItzAAcf.js} +336 -318
- package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
- package/dist/chunk-L3NEJ4N5-qPot4t6M.js +245 -0
- package/dist/chunk-LNGE3PJU-CtYcu9x8.js +1521 -0
- package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-CQhPF3Mc.js} +310 -198
- package/dist/chunk-P2QGCYS3-BUeNZ170.js +67 -0
- package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +26 -0
- package/dist/chunk-PWAF6VOD-D37VoZ8H.js +275 -0
- package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-Cri27Jke.js} +581 -543
- package/dist/chunk-SVP7TREG-CyJlOPau.js +490 -0
- package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-Cw2iT_VD.js} +191 -185
- package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-BdsLNXjt.js} +35 -25
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +30 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
- package/dist/components/app-bar/app-bar.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/chat/chat.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
- package/dist/components/data-table/data-table-types.d.ts +52 -1
- 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/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-types.d.ts +7 -1
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
- package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
- package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-Qs_Z6zBZ.js} +87 -83
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +3 -0
- package/dist/cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js +355 -0
- package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-C5TvPYYm.js} +2749 -2701
- package/dist/{dagre-3-RnF0EK.js → dagre-D5csT9sx.js} +144 -146
- package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +425 -0
- package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-N-0uLSyg.js} +1 -4
- package/dist/diagram-S7CK7UJ4-BuDHTdHA.js +301 -0
- package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-uvzJGj43.js} +82 -81
- package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CrQQCs-B.js} +66 -65
- package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-BNmG1sig.js} +92 -89
- package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-B6BrLhP0.js} +21 -20
- package/dist/{dist-Btd8EZyy.js → dist-CsrMlyO_.js} +2 -3
- package/dist/ebnfDiagram-PWID7BFC-DMx8xAFO.js +100 -0
- package/dist/erDiagram-RLTQ6QDP-bkJ9nzVK.js +1966 -0
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +3 -0
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +17 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -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 +5 -0
- 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/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
- package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-CL-ywzz_.js} +703 -710
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +3 -0
- package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-aXhNDG6P.js} +156 -151
- package/dist/{graphlib-VMWSbyYi.js → graphlib-XW-Jr8pF.js} +5 -5
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/info-A6RAGUB7-CmZJKEaW.js +3 -0
- package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +20 -0
- package/dist/{init-MwSGRDIl.js → init-CsQUQz36.js} +1 -3
- package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-DK7HlH95.js} +142 -141
- package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-CpuYEKcB.js} +192 -191
- package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-aK8uKmyY.js} +149 -146
- package/dist/{katex-D-2KeLwt.js → katex-CT2p8LXT.js} +1627 -1650
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +34744 -32755
- package/dist/{line-DIhSUgmA.js → line-DTqYMLoX.js} +2 -2
- package/dist/{linear-DUAteVwl.js → linear-CXc5xaa6.js} +8 -9
- package/dist/locale/en/translation.json.d.ts +16 -0
- package/dist/locale/it/translation.json.d.ts +16 -0
- package/dist/mermaid-parser.core-BwVmI_Rq.js +638 -0
- package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-ZMYcmi9J.js} +170 -170
- package/dist/{ordinal-D_ZgubzR.js → ordinal-BubEveRk.js} +1 -1
- package/dist/packet-AYTQ26CC-B3tgRshR.js +3 -0
- package/dist/{path-DGNPZRdx.js → path-CnWkkRiY.js} +10 -11
- package/dist/pegDiagram-XKGWAZYB-DsfILwZN.js +94 -0
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-DcSLcLdd.js +203 -0
- package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-DSx3teop.js} +300 -300
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +3 -0
- package/dist/railroad-74A4TZTK-oS840SLr.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-jOZRtNDi.js +76 -0
- package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-D14hkkez.js} +176 -173
- package/dist/{rough.esm-rcMoXTJj.js → rough.esm-DXYGHN3m.js} +60 -51
- package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-C0jmknYo.js} +123 -120
- package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-C00egnMz.js} +714 -722
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/{src-DjDATEq3.js → src-DQoflmwT.js} +499 -509
- package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +220 -0
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +30 -0
- package/dist/swimlanes-42K2YHIH-CJcMmxXf.js +4979 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +31 -0
- package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-D2xfYuSV.js} +220 -219
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +3 -0
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +3 -0
- package/dist/types/translation.d.ts +17 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -1
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/{v4-BK7K-jy_.js → v4-DIjJgmR0.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-C4XLgus_.js} +332 -310
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +3 -0
- package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-DFoKuS9s.js} +156 -155
- package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BzKKgVBe.js} +740 -574
- package/package.json +41 -38
- package/dist/arc-w3BipdfE.cjs +0 -1
- package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
- package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
- package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
- package/dist/array-DZSRzHA_.cjs +0 -1
- package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
- package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
- package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
- package/dist/channel-DJpMBAs-.cjs +0 -1
- package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
- package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
- package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
- package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
- package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
- package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
- package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
- package/dist/chunk-727SXJPM-Dj8nsm0O.cjs +0 -206
- package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
- package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
- package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
- package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
- package/dist/chunk-FMBD7UC4-BIKI8zae.cjs +0 -15
- package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
- package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
- package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
- package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
- package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
- package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
- package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
- package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
- package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
- package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
- package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
- package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
- package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
- package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
- package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
- package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
- package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
- package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
- package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
- package/dist/dagre-B2BBwKNb.cjs +0 -1
- package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
- package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
- package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
- package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
- package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
- package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
- package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
- package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
- package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
- package/dist/dist-D8RD2QWc.cjs +0 -1
- package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
- package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
- package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
- package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
- package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
- package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
- package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
- package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
- package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
- package/dist/graphlib-CkkG5MuS.cjs +0 -1
- package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
- package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
- package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
- package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
- package/dist/init-07zIhv_j.cjs +0 -1
- package/dist/ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs +0 -70
- package/dist/journeyDiagram-JHISSGLW-DfnmJPLn.cjs +0 -139
- package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
- package/dist/katex-CkiTumqg.cjs +0 -257
- package/dist/ketchup2.cjs.js +0 -485
- package/dist/line-CzwncDY3.cjs +0 -1
- package/dist/linear-1lpO_WlJ.cjs +0 -1
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
- package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
- package/dist/mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs +0 -96
- package/dist/ordinal-CUPR-p0T.cjs +0 -1
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
- package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
- package/dist/path-Kklx0M1v.cjs +0 -1
- package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
- package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
- package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
- package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
- package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
- package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
- package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
- package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
- package/dist/rough.esm-r0QOSzHM.cjs +0 -1
- package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
- package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
- package/dist/src-DEmZ9bFr.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
- package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
- package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
- package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
- package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
- package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
- package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
- package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
- package/dist/v4-Dyp-SQ1c.cjs +0 -1
- package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
- package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
- package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
- package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
- package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { H as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { m as e, p as t } from "./src-DQoflmwT.js";
|
|
2
|
+
import { H as n, U as r, c as i, r as a, s as o, v as s, x as l, y as u, z as d } from "./chunk-DU6HZSFF-waeanndy.js";
|
|
3
|
+
import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
+
import { _ as p, n as m, r as h } from "./chunk-75Z2AOVW-Drsj7a97.js";
|
|
5
|
+
import "./chunk-P2QGCYS3-BUeNZ170.js";
|
|
6
|
+
import "./chunk-PWAF6VOD-D37VoZ8H.js";
|
|
7
|
+
import "./chunk-GMAD6QVW-D80II4AD.js";
|
|
8
|
+
import { o as g } from "./chunk-4HAMMTFA-CZgIgrp_.js";
|
|
9
|
+
import { a as _ } from "./chunk-F27PBJKO-jIrOJO87.js";
|
|
10
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-7LVT6UL2.mjs
|
|
11
|
+
var v = (function() {
|
|
12
|
+
var e = /* @__PURE__ */ f(function(e, t, n, r) {
|
|
9
13
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
10
14
|
return n;
|
|
11
|
-
}, "o"),
|
|
15
|
+
}, "o"), t = [1, 24], n = [1, 25], r = [1, 26], i = [1, 27], a = [1, 28], o = [1, 63], s = [1, 64], l = [1, 65], u = [1, 66], d = [1, 67], p = [1, 68], m = [1, 69], h = [1, 29], g = [1, 30], _ = [1, 31], v = [1, 32], y = [1, 33], b = [1, 34], x = [1, 35], S = [1, 36], C = [1, 37], w = [1, 38], T = [1, 39], E = [1, 40], D = [1, 41], O = [1, 42], k = [1, 43], A = [1, 44], j = [1, 45], M = [1, 46], N = [1, 47], P = [1, 48], F = [1, 50], I = [1, 51], L = [1, 52], R = [1, 53], z = [1, 54], B = [1, 55], V = [1, 56], H = [1, 57], U = [1, 58], W = [1, 59], G = [1, 60], ee = [14, 42], te = [
|
|
12
16
|
14,
|
|
13
17
|
34,
|
|
14
18
|
36,
|
|
@@ -49,7 +53,7 @@ var y = p(), b = (function() {
|
|
|
49
53
|
72,
|
|
50
54
|
73,
|
|
51
55
|
74
|
|
52
|
-
],
|
|
56
|
+
], ne = [
|
|
53
57
|
12,
|
|
54
58
|
14,
|
|
55
59
|
34,
|
|
@@ -91,16 +95,16 @@ var y = p(), b = (function() {
|
|
|
91
95
|
72,
|
|
92
96
|
73,
|
|
93
97
|
74
|
|
94
|
-
],
|
|
98
|
+
], K = [1, 82], q = [1, 83], J = [1, 84], Y = [1, 85], X = [
|
|
95
99
|
12,
|
|
96
100
|
14,
|
|
97
101
|
42
|
|
98
|
-
],
|
|
102
|
+
], re = [
|
|
99
103
|
12,
|
|
100
104
|
14,
|
|
101
105
|
33,
|
|
102
106
|
42
|
|
103
|
-
],
|
|
107
|
+
], ie = [
|
|
104
108
|
12,
|
|
105
109
|
14,
|
|
106
110
|
33,
|
|
@@ -109,7 +113,7 @@ var y = p(), b = (function() {
|
|
|
109
113
|
77,
|
|
110
114
|
79,
|
|
111
115
|
80
|
|
112
|
-
],
|
|
116
|
+
], ae = [12, 33], oe = [
|
|
113
117
|
34,
|
|
114
118
|
36,
|
|
115
119
|
37,
|
|
@@ -148,8 +152,8 @@ var y = p(), b = (function() {
|
|
|
148
152
|
72,
|
|
149
153
|
73,
|
|
150
154
|
74
|
|
151
|
-
],
|
|
152
|
-
trace: /* @__PURE__ */
|
|
155
|
+
], se = {
|
|
156
|
+
trace: /* @__PURE__ */ f(function() {}, "trace"),
|
|
153
157
|
yy: {},
|
|
154
158
|
symbols_: {
|
|
155
159
|
error: 2,
|
|
@@ -379,7 +383,7 @@ var y = p(), b = (function() {
|
|
|
379
383
|
[75, 1],
|
|
380
384
|
[75, 1]
|
|
381
385
|
],
|
|
382
|
-
performAction: /* @__PURE__ */
|
|
386
|
+
performAction: /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
|
|
383
387
|
var s = a.length - 1;
|
|
384
388
|
switch (i) {
|
|
385
389
|
case 3:
|
|
@@ -545,9 +549,7 @@ var y = p(), b = (function() {
|
|
|
545
549
|
let e = {};
|
|
546
550
|
e[a[s - 1].trim()] = a[s].trim(), this.$ = e;
|
|
547
551
|
break;
|
|
548
|
-
case 76:
|
|
549
|
-
this.$ = "";
|
|
550
|
-
break;
|
|
552
|
+
case 76: this.$ = "";
|
|
551
553
|
}
|
|
552
554
|
}, "anonymous"),
|
|
553
555
|
table: [
|
|
@@ -584,19 +586,19 @@ var y = p(), b = (function() {
|
|
|
584
586
|
19: 20,
|
|
585
587
|
20: 21,
|
|
586
588
|
21: 22,
|
|
587
|
-
22:
|
|
588
|
-
23:
|
|
589
|
-
24:
|
|
590
|
-
26:
|
|
591
|
-
28:
|
|
589
|
+
22: t,
|
|
590
|
+
23: n,
|
|
591
|
+
24: r,
|
|
592
|
+
26: i,
|
|
593
|
+
28: a,
|
|
592
594
|
29: 49,
|
|
593
595
|
30: 61,
|
|
594
596
|
32: 62,
|
|
595
|
-
34:
|
|
596
|
-
36:
|
|
597
|
-
37:
|
|
598
|
-
38:
|
|
599
|
-
39:
|
|
597
|
+
34: o,
|
|
598
|
+
36: s,
|
|
599
|
+
37: l,
|
|
600
|
+
38: u,
|
|
601
|
+
39: d,
|
|
600
602
|
40: p,
|
|
601
603
|
41: m,
|
|
602
604
|
43: 23,
|
|
@@ -628,28 +630,28 @@ var y = p(), b = (function() {
|
|
|
628
630
|
69: B,
|
|
629
631
|
70: V,
|
|
630
632
|
71: H,
|
|
631
|
-
72:
|
|
632
|
-
73:
|
|
633
|
-
74:
|
|
633
|
+
72: U,
|
|
634
|
+
73: W,
|
|
635
|
+
74: G
|
|
634
636
|
},
|
|
635
637
|
{
|
|
636
638
|
13: 70,
|
|
637
639
|
19: 20,
|
|
638
640
|
20: 21,
|
|
639
641
|
21: 22,
|
|
640
|
-
22:
|
|
641
|
-
23:
|
|
642
|
-
24:
|
|
643
|
-
26:
|
|
644
|
-
28:
|
|
642
|
+
22: t,
|
|
643
|
+
23: n,
|
|
644
|
+
24: r,
|
|
645
|
+
26: i,
|
|
646
|
+
28: a,
|
|
645
647
|
29: 49,
|
|
646
648
|
30: 61,
|
|
647
649
|
32: 62,
|
|
648
|
-
34:
|
|
649
|
-
36:
|
|
650
|
-
37:
|
|
651
|
-
38:
|
|
652
|
-
39:
|
|
650
|
+
34: o,
|
|
651
|
+
36: s,
|
|
652
|
+
37: l,
|
|
653
|
+
38: u,
|
|
654
|
+
39: d,
|
|
653
655
|
40: p,
|
|
654
656
|
41: m,
|
|
655
657
|
43: 23,
|
|
@@ -681,28 +683,28 @@ var y = p(), b = (function() {
|
|
|
681
683
|
69: B,
|
|
682
684
|
70: V,
|
|
683
685
|
71: H,
|
|
684
|
-
72:
|
|
685
|
-
73:
|
|
686
|
-
74:
|
|
686
|
+
72: U,
|
|
687
|
+
73: W,
|
|
688
|
+
74: G
|
|
687
689
|
},
|
|
688
690
|
{
|
|
689
691
|
13: 71,
|
|
690
692
|
19: 20,
|
|
691
693
|
20: 21,
|
|
692
694
|
21: 22,
|
|
693
|
-
22:
|
|
694
|
-
23:
|
|
695
|
-
24:
|
|
696
|
-
26:
|
|
697
|
-
28:
|
|
695
|
+
22: t,
|
|
696
|
+
23: n,
|
|
697
|
+
24: r,
|
|
698
|
+
26: i,
|
|
699
|
+
28: a,
|
|
698
700
|
29: 49,
|
|
699
701
|
30: 61,
|
|
700
702
|
32: 62,
|
|
701
|
-
34:
|
|
702
|
-
36:
|
|
703
|
-
37:
|
|
704
|
-
38:
|
|
705
|
-
39:
|
|
703
|
+
34: o,
|
|
704
|
+
36: s,
|
|
705
|
+
37: l,
|
|
706
|
+
38: u,
|
|
707
|
+
39: d,
|
|
706
708
|
40: p,
|
|
707
709
|
41: m,
|
|
708
710
|
43: 23,
|
|
@@ -734,28 +736,28 @@ var y = p(), b = (function() {
|
|
|
734
736
|
69: B,
|
|
735
737
|
70: V,
|
|
736
738
|
71: H,
|
|
737
|
-
72:
|
|
738
|
-
73:
|
|
739
|
-
74:
|
|
739
|
+
72: U,
|
|
740
|
+
73: W,
|
|
741
|
+
74: G
|
|
740
742
|
},
|
|
741
743
|
{
|
|
742
744
|
13: 72,
|
|
743
745
|
19: 20,
|
|
744
746
|
20: 21,
|
|
745
747
|
21: 22,
|
|
746
|
-
22:
|
|
747
|
-
23:
|
|
748
|
-
24:
|
|
749
|
-
26:
|
|
750
|
-
28:
|
|
748
|
+
22: t,
|
|
749
|
+
23: n,
|
|
750
|
+
24: r,
|
|
751
|
+
26: i,
|
|
752
|
+
28: a,
|
|
751
753
|
29: 49,
|
|
752
754
|
30: 61,
|
|
753
755
|
32: 62,
|
|
754
|
-
34:
|
|
755
|
-
36:
|
|
756
|
-
37:
|
|
757
|
-
38:
|
|
758
|
-
39:
|
|
756
|
+
34: o,
|
|
757
|
+
36: s,
|
|
758
|
+
37: l,
|
|
759
|
+
38: u,
|
|
760
|
+
39: d,
|
|
759
761
|
40: p,
|
|
760
762
|
41: m,
|
|
761
763
|
43: 23,
|
|
@@ -787,28 +789,28 @@ var y = p(), b = (function() {
|
|
|
787
789
|
69: B,
|
|
788
790
|
70: V,
|
|
789
791
|
71: H,
|
|
790
|
-
72:
|
|
791
|
-
73:
|
|
792
|
-
74:
|
|
792
|
+
72: U,
|
|
793
|
+
73: W,
|
|
794
|
+
74: G
|
|
793
795
|
},
|
|
794
796
|
{
|
|
795
797
|
13: 73,
|
|
796
798
|
19: 20,
|
|
797
799
|
20: 21,
|
|
798
800
|
21: 22,
|
|
799
|
-
22:
|
|
800
|
-
23:
|
|
801
|
-
24:
|
|
802
|
-
26:
|
|
803
|
-
28:
|
|
801
|
+
22: t,
|
|
802
|
+
23: n,
|
|
803
|
+
24: r,
|
|
804
|
+
26: i,
|
|
805
|
+
28: a,
|
|
804
806
|
29: 49,
|
|
805
807
|
30: 61,
|
|
806
808
|
32: 62,
|
|
807
|
-
34:
|
|
808
|
-
36:
|
|
809
|
-
37:
|
|
810
|
-
38:
|
|
811
|
-
39:
|
|
809
|
+
34: o,
|
|
810
|
+
36: s,
|
|
811
|
+
37: l,
|
|
812
|
+
38: u,
|
|
813
|
+
39: d,
|
|
812
814
|
40: p,
|
|
813
815
|
41: m,
|
|
814
816
|
43: 23,
|
|
@@ -840,22 +842,22 @@ var y = p(), b = (function() {
|
|
|
840
842
|
69: B,
|
|
841
843
|
70: V,
|
|
842
844
|
71: H,
|
|
843
|
-
72:
|
|
844
|
-
73:
|
|
845
|
-
74:
|
|
845
|
+
72: U,
|
|
846
|
+
73: W,
|
|
847
|
+
74: G
|
|
846
848
|
},
|
|
847
849
|
{ 14: [1, 74] },
|
|
848
|
-
e(
|
|
850
|
+
e(ee, [2, 13], {
|
|
849
851
|
43: 23,
|
|
850
852
|
29: 49,
|
|
851
853
|
30: 61,
|
|
852
854
|
32: 62,
|
|
853
855
|
20: 75,
|
|
854
|
-
34:
|
|
855
|
-
36:
|
|
856
|
-
37:
|
|
857
|
-
38:
|
|
858
|
-
39:
|
|
856
|
+
34: o,
|
|
857
|
+
36: s,
|
|
858
|
+
37: l,
|
|
859
|
+
38: u,
|
|
860
|
+
39: d,
|
|
859
861
|
40: p,
|
|
860
862
|
41: m,
|
|
861
863
|
44: h,
|
|
@@ -886,277 +888,277 @@ var y = p(), b = (function() {
|
|
|
886
888
|
69: B,
|
|
887
889
|
70: V,
|
|
888
890
|
71: H,
|
|
889
|
-
72:
|
|
890
|
-
73:
|
|
891
|
-
74:
|
|
891
|
+
72: U,
|
|
892
|
+
73: W,
|
|
893
|
+
74: G
|
|
892
894
|
}),
|
|
893
|
-
e(
|
|
894
|
-
e(
|
|
895
|
-
e(
|
|
896
|
-
e(
|
|
897
|
-
e(
|
|
895
|
+
e(ee, [2, 14]),
|
|
896
|
+
e(te, [2, 16], { 12: [1, 76] }),
|
|
897
|
+
e(ee, [2, 36], { 12: [1, 77] }),
|
|
898
|
+
e(ne, [2, 19]),
|
|
899
|
+
e(ne, [2, 20]),
|
|
898
900
|
{ 25: [1, 78] },
|
|
899
901
|
{ 27: [1, 79] },
|
|
900
|
-
e(
|
|
902
|
+
e(ne, [2, 23]),
|
|
901
903
|
{
|
|
902
904
|
35: 80,
|
|
903
905
|
75: 81,
|
|
904
|
-
76:
|
|
905
|
-
77:
|
|
906
|
-
79:
|
|
907
|
-
80:
|
|
906
|
+
76: K,
|
|
907
|
+
77: q,
|
|
908
|
+
79: J,
|
|
909
|
+
80: Y
|
|
908
910
|
},
|
|
909
911
|
{
|
|
910
912
|
35: 86,
|
|
911
913
|
75: 81,
|
|
912
|
-
76:
|
|
913
|
-
77:
|
|
914
|
-
79:
|
|
915
|
-
80:
|
|
914
|
+
76: K,
|
|
915
|
+
77: q,
|
|
916
|
+
79: J,
|
|
917
|
+
80: Y
|
|
916
918
|
},
|
|
917
919
|
{
|
|
918
920
|
35: 87,
|
|
919
921
|
75: 81,
|
|
920
|
-
76:
|
|
921
|
-
77:
|
|
922
|
-
79:
|
|
923
|
-
80:
|
|
922
|
+
76: K,
|
|
923
|
+
77: q,
|
|
924
|
+
79: J,
|
|
925
|
+
80: Y
|
|
924
926
|
},
|
|
925
927
|
{
|
|
926
928
|
35: 88,
|
|
927
929
|
75: 81,
|
|
928
|
-
76:
|
|
929
|
-
77:
|
|
930
|
-
79:
|
|
931
|
-
80:
|
|
930
|
+
76: K,
|
|
931
|
+
77: q,
|
|
932
|
+
79: J,
|
|
933
|
+
80: Y
|
|
932
934
|
},
|
|
933
935
|
{
|
|
934
936
|
35: 89,
|
|
935
937
|
75: 81,
|
|
936
|
-
76:
|
|
937
|
-
77:
|
|
938
|
-
79:
|
|
939
|
-
80:
|
|
938
|
+
76: K,
|
|
939
|
+
77: q,
|
|
940
|
+
79: J,
|
|
941
|
+
80: Y
|
|
940
942
|
},
|
|
941
943
|
{
|
|
942
944
|
35: 90,
|
|
943
945
|
75: 81,
|
|
944
|
-
76:
|
|
945
|
-
77:
|
|
946
|
-
79:
|
|
947
|
-
80:
|
|
946
|
+
76: K,
|
|
947
|
+
77: q,
|
|
948
|
+
79: J,
|
|
949
|
+
80: Y
|
|
948
950
|
},
|
|
949
951
|
{
|
|
950
952
|
35: 91,
|
|
951
953
|
75: 81,
|
|
952
|
-
76:
|
|
953
|
-
77:
|
|
954
|
-
79:
|
|
955
|
-
80:
|
|
954
|
+
76: K,
|
|
955
|
+
77: q,
|
|
956
|
+
79: J,
|
|
957
|
+
80: Y
|
|
956
958
|
},
|
|
957
959
|
{
|
|
958
960
|
35: 92,
|
|
959
961
|
75: 81,
|
|
960
|
-
76:
|
|
961
|
-
77:
|
|
962
|
-
79:
|
|
963
|
-
80:
|
|
962
|
+
76: K,
|
|
963
|
+
77: q,
|
|
964
|
+
79: J,
|
|
965
|
+
80: Y
|
|
964
966
|
},
|
|
965
967
|
{
|
|
966
968
|
35: 93,
|
|
967
969
|
75: 81,
|
|
968
|
-
76:
|
|
969
|
-
77:
|
|
970
|
-
79:
|
|
971
|
-
80:
|
|
970
|
+
76: K,
|
|
971
|
+
77: q,
|
|
972
|
+
79: J,
|
|
973
|
+
80: Y
|
|
972
974
|
},
|
|
973
975
|
{
|
|
974
976
|
35: 94,
|
|
975
977
|
75: 81,
|
|
976
|
-
76:
|
|
977
|
-
77:
|
|
978
|
-
79:
|
|
979
|
-
80:
|
|
978
|
+
76: K,
|
|
979
|
+
77: q,
|
|
980
|
+
79: J,
|
|
981
|
+
80: Y
|
|
980
982
|
},
|
|
981
983
|
{
|
|
982
984
|
35: 95,
|
|
983
985
|
75: 81,
|
|
984
|
-
76:
|
|
985
|
-
77:
|
|
986
|
-
79:
|
|
987
|
-
80:
|
|
986
|
+
76: K,
|
|
987
|
+
77: q,
|
|
988
|
+
79: J,
|
|
989
|
+
80: Y
|
|
988
990
|
},
|
|
989
991
|
{
|
|
990
992
|
35: 96,
|
|
991
993
|
75: 81,
|
|
992
|
-
76:
|
|
993
|
-
77:
|
|
994
|
-
79:
|
|
995
|
-
80:
|
|
994
|
+
76: K,
|
|
995
|
+
77: q,
|
|
996
|
+
79: J,
|
|
997
|
+
80: Y
|
|
996
998
|
},
|
|
997
999
|
{
|
|
998
1000
|
35: 97,
|
|
999
1001
|
75: 81,
|
|
1000
|
-
76:
|
|
1001
|
-
77:
|
|
1002
|
-
79:
|
|
1003
|
-
80:
|
|
1002
|
+
76: K,
|
|
1003
|
+
77: q,
|
|
1004
|
+
79: J,
|
|
1005
|
+
80: Y
|
|
1004
1006
|
},
|
|
1005
1007
|
{
|
|
1006
1008
|
35: 98,
|
|
1007
1009
|
75: 81,
|
|
1008
|
-
76:
|
|
1009
|
-
77:
|
|
1010
|
-
79:
|
|
1011
|
-
80:
|
|
1010
|
+
76: K,
|
|
1011
|
+
77: q,
|
|
1012
|
+
79: J,
|
|
1013
|
+
80: Y
|
|
1012
1014
|
},
|
|
1013
1015
|
{
|
|
1014
1016
|
35: 99,
|
|
1015
1017
|
75: 81,
|
|
1016
|
-
76:
|
|
1017
|
-
77:
|
|
1018
|
-
79:
|
|
1019
|
-
80:
|
|
1018
|
+
76: K,
|
|
1019
|
+
77: q,
|
|
1020
|
+
79: J,
|
|
1021
|
+
80: Y
|
|
1020
1022
|
},
|
|
1021
1023
|
{
|
|
1022
1024
|
35: 100,
|
|
1023
1025
|
75: 81,
|
|
1024
|
-
76:
|
|
1025
|
-
77:
|
|
1026
|
-
79:
|
|
1027
|
-
80:
|
|
1026
|
+
76: K,
|
|
1027
|
+
77: q,
|
|
1028
|
+
79: J,
|
|
1029
|
+
80: Y
|
|
1028
1030
|
},
|
|
1029
1031
|
{
|
|
1030
1032
|
35: 101,
|
|
1031
1033
|
75: 81,
|
|
1032
|
-
76:
|
|
1033
|
-
77:
|
|
1034
|
-
79:
|
|
1035
|
-
80:
|
|
1034
|
+
76: K,
|
|
1035
|
+
77: q,
|
|
1036
|
+
79: J,
|
|
1037
|
+
80: Y
|
|
1036
1038
|
},
|
|
1037
1039
|
{
|
|
1038
1040
|
35: 102,
|
|
1039
1041
|
75: 81,
|
|
1040
|
-
76:
|
|
1041
|
-
77:
|
|
1042
|
-
79:
|
|
1043
|
-
80:
|
|
1042
|
+
76: K,
|
|
1043
|
+
77: q,
|
|
1044
|
+
79: J,
|
|
1045
|
+
80: Y
|
|
1044
1046
|
},
|
|
1045
1047
|
{
|
|
1046
1048
|
35: 103,
|
|
1047
1049
|
75: 81,
|
|
1048
|
-
76:
|
|
1049
|
-
77:
|
|
1050
|
-
79:
|
|
1051
|
-
80:
|
|
1050
|
+
76: K,
|
|
1051
|
+
77: q,
|
|
1052
|
+
79: J,
|
|
1053
|
+
80: Y
|
|
1052
1054
|
},
|
|
1053
1055
|
{
|
|
1054
1056
|
35: 104,
|
|
1055
1057
|
75: 81,
|
|
1056
|
-
76:
|
|
1057
|
-
77:
|
|
1058
|
-
79:
|
|
1059
|
-
80:
|
|
1058
|
+
76: K,
|
|
1059
|
+
77: q,
|
|
1060
|
+
79: J,
|
|
1061
|
+
80: Y
|
|
1060
1062
|
},
|
|
1061
|
-
e(
|
|
1063
|
+
e(X, [2, 59]),
|
|
1062
1064
|
{
|
|
1063
1065
|
35: 105,
|
|
1064
1066
|
75: 81,
|
|
1065
|
-
76:
|
|
1066
|
-
77:
|
|
1067
|
-
79:
|
|
1068
|
-
80:
|
|
1067
|
+
76: K,
|
|
1068
|
+
77: q,
|
|
1069
|
+
79: J,
|
|
1070
|
+
80: Y
|
|
1069
1071
|
},
|
|
1070
1072
|
{
|
|
1071
1073
|
35: 106,
|
|
1072
1074
|
75: 81,
|
|
1073
|
-
76:
|
|
1074
|
-
77:
|
|
1075
|
-
79:
|
|
1076
|
-
80:
|
|
1075
|
+
76: K,
|
|
1076
|
+
77: q,
|
|
1077
|
+
79: J,
|
|
1078
|
+
80: Y
|
|
1077
1079
|
},
|
|
1078
1080
|
{
|
|
1079
1081
|
35: 107,
|
|
1080
1082
|
75: 81,
|
|
1081
|
-
76:
|
|
1082
|
-
77:
|
|
1083
|
-
79:
|
|
1084
|
-
80:
|
|
1083
|
+
76: K,
|
|
1084
|
+
77: q,
|
|
1085
|
+
79: J,
|
|
1086
|
+
80: Y
|
|
1085
1087
|
},
|
|
1086
1088
|
{
|
|
1087
1089
|
35: 108,
|
|
1088
1090
|
75: 81,
|
|
1089
|
-
76:
|
|
1090
|
-
77:
|
|
1091
|
-
79:
|
|
1092
|
-
80:
|
|
1091
|
+
76: K,
|
|
1092
|
+
77: q,
|
|
1093
|
+
79: J,
|
|
1094
|
+
80: Y
|
|
1093
1095
|
},
|
|
1094
1096
|
{
|
|
1095
1097
|
35: 109,
|
|
1096
1098
|
75: 81,
|
|
1097
|
-
76:
|
|
1098
|
-
77:
|
|
1099
|
-
79:
|
|
1100
|
-
80:
|
|
1099
|
+
76: K,
|
|
1100
|
+
77: q,
|
|
1101
|
+
79: J,
|
|
1102
|
+
80: Y
|
|
1101
1103
|
},
|
|
1102
1104
|
{
|
|
1103
1105
|
35: 110,
|
|
1104
1106
|
75: 81,
|
|
1105
|
-
76:
|
|
1106
|
-
77:
|
|
1107
|
-
79:
|
|
1108
|
-
80:
|
|
1107
|
+
76: K,
|
|
1108
|
+
77: q,
|
|
1109
|
+
79: J,
|
|
1110
|
+
80: Y
|
|
1109
1111
|
},
|
|
1110
1112
|
{
|
|
1111
1113
|
35: 111,
|
|
1112
1114
|
75: 81,
|
|
1113
|
-
76:
|
|
1114
|
-
77:
|
|
1115
|
-
79:
|
|
1116
|
-
80:
|
|
1115
|
+
76: K,
|
|
1116
|
+
77: q,
|
|
1117
|
+
79: J,
|
|
1118
|
+
80: Y
|
|
1117
1119
|
},
|
|
1118
1120
|
{
|
|
1119
1121
|
35: 112,
|
|
1120
1122
|
75: 81,
|
|
1121
|
-
76:
|
|
1122
|
-
77:
|
|
1123
|
-
79:
|
|
1124
|
-
80:
|
|
1123
|
+
76: K,
|
|
1124
|
+
77: q,
|
|
1125
|
+
79: J,
|
|
1126
|
+
80: Y
|
|
1125
1127
|
},
|
|
1126
1128
|
{
|
|
1127
1129
|
35: 113,
|
|
1128
1130
|
75: 81,
|
|
1129
|
-
76:
|
|
1130
|
-
77:
|
|
1131
|
-
79:
|
|
1132
|
-
80:
|
|
1131
|
+
76: K,
|
|
1132
|
+
77: q,
|
|
1133
|
+
79: J,
|
|
1134
|
+
80: Y
|
|
1133
1135
|
},
|
|
1134
1136
|
{
|
|
1135
1137
|
35: 114,
|
|
1136
1138
|
75: 81,
|
|
1137
|
-
76:
|
|
1138
|
-
77:
|
|
1139
|
-
79:
|
|
1140
|
-
80:
|
|
1139
|
+
76: K,
|
|
1140
|
+
77: q,
|
|
1141
|
+
79: J,
|
|
1142
|
+
80: Y
|
|
1141
1143
|
},
|
|
1142
1144
|
{
|
|
1143
1145
|
35: 115,
|
|
1144
1146
|
75: 81,
|
|
1145
|
-
76:
|
|
1146
|
-
77:
|
|
1147
|
-
79:
|
|
1148
|
-
80:
|
|
1147
|
+
76: K,
|
|
1148
|
+
77: q,
|
|
1149
|
+
79: J,
|
|
1150
|
+
80: Y
|
|
1149
1151
|
},
|
|
1150
1152
|
{
|
|
1151
1153
|
20: 116,
|
|
1152
1154
|
29: 49,
|
|
1153
1155
|
30: 61,
|
|
1154
1156
|
32: 62,
|
|
1155
|
-
34:
|
|
1156
|
-
36:
|
|
1157
|
-
37:
|
|
1158
|
-
38:
|
|
1159
|
-
39:
|
|
1157
|
+
34: o,
|
|
1158
|
+
36: s,
|
|
1159
|
+
37: l,
|
|
1160
|
+
38: u,
|
|
1161
|
+
39: d,
|
|
1160
1162
|
40: p,
|
|
1161
1163
|
41: m,
|
|
1162
1164
|
43: 23,
|
|
@@ -1188,9 +1190,9 @@ var y = p(), b = (function() {
|
|
|
1188
1190
|
69: B,
|
|
1189
1191
|
70: V,
|
|
1190
1192
|
71: H,
|
|
1191
|
-
72:
|
|
1192
|
-
73:
|
|
1193
|
-
74:
|
|
1193
|
+
72: U,
|
|
1194
|
+
73: W,
|
|
1195
|
+
74: G
|
|
1194
1196
|
},
|
|
1195
1197
|
{
|
|
1196
1198
|
12: [1, 118],
|
|
@@ -1199,75 +1201,75 @@ var y = p(), b = (function() {
|
|
|
1199
1201
|
{
|
|
1200
1202
|
35: 119,
|
|
1201
1203
|
75: 81,
|
|
1202
|
-
76:
|
|
1203
|
-
77:
|
|
1204
|
-
79:
|
|
1205
|
-
80:
|
|
1204
|
+
76: K,
|
|
1205
|
+
77: q,
|
|
1206
|
+
79: J,
|
|
1207
|
+
80: Y
|
|
1206
1208
|
},
|
|
1207
1209
|
{
|
|
1208
1210
|
35: 120,
|
|
1209
1211
|
75: 81,
|
|
1210
|
-
76:
|
|
1211
|
-
77:
|
|
1212
|
-
79:
|
|
1213
|
-
80:
|
|
1212
|
+
76: K,
|
|
1213
|
+
77: q,
|
|
1214
|
+
79: J,
|
|
1215
|
+
80: Y
|
|
1214
1216
|
},
|
|
1215
1217
|
{
|
|
1216
1218
|
35: 121,
|
|
1217
1219
|
75: 81,
|
|
1218
|
-
76:
|
|
1219
|
-
77:
|
|
1220
|
-
79:
|
|
1221
|
-
80:
|
|
1220
|
+
76: K,
|
|
1221
|
+
77: q,
|
|
1222
|
+
79: J,
|
|
1223
|
+
80: Y
|
|
1222
1224
|
},
|
|
1223
1225
|
{
|
|
1224
1226
|
35: 122,
|
|
1225
1227
|
75: 81,
|
|
1226
|
-
76:
|
|
1227
|
-
77:
|
|
1228
|
-
79:
|
|
1229
|
-
80:
|
|
1228
|
+
76: K,
|
|
1229
|
+
77: q,
|
|
1230
|
+
79: J,
|
|
1231
|
+
80: Y
|
|
1230
1232
|
},
|
|
1231
1233
|
{
|
|
1232
1234
|
35: 123,
|
|
1233
1235
|
75: 81,
|
|
1234
|
-
76:
|
|
1235
|
-
77:
|
|
1236
|
-
79:
|
|
1237
|
-
80:
|
|
1236
|
+
76: K,
|
|
1237
|
+
77: q,
|
|
1238
|
+
79: J,
|
|
1239
|
+
80: Y
|
|
1238
1240
|
},
|
|
1239
1241
|
{
|
|
1240
1242
|
35: 124,
|
|
1241
1243
|
75: 81,
|
|
1242
|
-
76:
|
|
1243
|
-
77:
|
|
1244
|
-
79:
|
|
1245
|
-
80:
|
|
1244
|
+
76: K,
|
|
1245
|
+
77: q,
|
|
1246
|
+
79: J,
|
|
1247
|
+
80: Y
|
|
1246
1248
|
},
|
|
1247
1249
|
{
|
|
1248
1250
|
35: 125,
|
|
1249
1251
|
75: 81,
|
|
1250
|
-
76:
|
|
1251
|
-
77:
|
|
1252
|
-
79:
|
|
1253
|
-
80:
|
|
1252
|
+
76: K,
|
|
1253
|
+
77: q,
|
|
1254
|
+
79: J,
|
|
1255
|
+
80: Y
|
|
1254
1256
|
},
|
|
1255
1257
|
{ 14: [1, 126] },
|
|
1256
1258
|
{ 14: [1, 127] },
|
|
1257
1259
|
{ 14: [1, 128] },
|
|
1258
1260
|
{ 14: [1, 129] },
|
|
1259
1261
|
{ 1: [2, 8] },
|
|
1260
|
-
e(
|
|
1261
|
-
e(
|
|
1262
|
+
e(ee, [2, 15]),
|
|
1263
|
+
e(te, [2, 17], {
|
|
1262
1264
|
21: 22,
|
|
1263
1265
|
19: 130,
|
|
1264
|
-
22:
|
|
1265
|
-
23:
|
|
1266
|
-
24:
|
|
1267
|
-
26:
|
|
1268
|
-
28:
|
|
1266
|
+
22: t,
|
|
1267
|
+
23: n,
|
|
1268
|
+
24: r,
|
|
1269
|
+
26: i,
|
|
1270
|
+
28: a
|
|
1269
1271
|
}),
|
|
1270
|
-
e(
|
|
1272
|
+
e(ee, [2, 37], {
|
|
1271
1273
|
19: 20,
|
|
1272
1274
|
20: 21,
|
|
1273
1275
|
21: 22,
|
|
@@ -1276,16 +1278,16 @@ var y = p(), b = (function() {
|
|
|
1276
1278
|
30: 61,
|
|
1277
1279
|
32: 62,
|
|
1278
1280
|
13: 131,
|
|
1279
|
-
22:
|
|
1280
|
-
23:
|
|
1281
|
-
24:
|
|
1282
|
-
26:
|
|
1283
|
-
28:
|
|
1284
|
-
34:
|
|
1285
|
-
36:
|
|
1286
|
-
37:
|
|
1287
|
-
38:
|
|
1288
|
-
39:
|
|
1281
|
+
22: t,
|
|
1282
|
+
23: n,
|
|
1283
|
+
24: r,
|
|
1284
|
+
26: i,
|
|
1285
|
+
28: a,
|
|
1286
|
+
34: o,
|
|
1287
|
+
36: s,
|
|
1288
|
+
37: l,
|
|
1289
|
+
38: u,
|
|
1290
|
+
39: d,
|
|
1289
1291
|
40: p,
|
|
1290
1292
|
41: m,
|
|
1291
1293
|
44: h,
|
|
@@ -1316,81 +1318,81 @@ var y = p(), b = (function() {
|
|
|
1316
1318
|
69: B,
|
|
1317
1319
|
70: V,
|
|
1318
1320
|
71: H,
|
|
1319
|
-
72:
|
|
1320
|
-
73:
|
|
1321
|
-
74:
|
|
1321
|
+
72: U,
|
|
1322
|
+
73: W,
|
|
1323
|
+
74: G
|
|
1322
1324
|
}),
|
|
1323
|
-
e(
|
|
1324
|
-
e(
|
|
1325
|
-
e(
|
|
1326
|
-
e(
|
|
1325
|
+
e(ne, [2, 21]),
|
|
1326
|
+
e(ne, [2, 22]),
|
|
1327
|
+
e(X, [2, 39]),
|
|
1328
|
+
e(re, [2, 71], {
|
|
1327
1329
|
75: 81,
|
|
1328
1330
|
35: 132,
|
|
1329
|
-
76:
|
|
1330
|
-
77:
|
|
1331
|
-
79:
|
|
1332
|
-
80:
|
|
1331
|
+
76: K,
|
|
1332
|
+
77: q,
|
|
1333
|
+
79: J,
|
|
1334
|
+
80: Y
|
|
1333
1335
|
}),
|
|
1334
|
-
e(
|
|
1336
|
+
e(ie, [2, 73]),
|
|
1335
1337
|
{ 78: [1, 133] },
|
|
1336
|
-
e(
|
|
1337
|
-
e(
|
|
1338
|
-
e(
|
|
1339
|
-
e(
|
|
1340
|
-
e(
|
|
1341
|
-
e(
|
|
1342
|
-
e(
|
|
1343
|
-
e(
|
|
1344
|
-
e(
|
|
1345
|
-
e(
|
|
1346
|
-
e(
|
|
1347
|
-
e(
|
|
1348
|
-
e(
|
|
1349
|
-
e(
|
|
1350
|
-
e(
|
|
1351
|
-
e(
|
|
1352
|
-
e(
|
|
1353
|
-
e(
|
|
1354
|
-
e(
|
|
1355
|
-
e(
|
|
1356
|
-
e(
|
|
1357
|
-
e(
|
|
1358
|
-
e(
|
|
1359
|
-
e(
|
|
1360
|
-
e(
|
|
1361
|
-
e(
|
|
1362
|
-
e(
|
|
1363
|
-
e(
|
|
1364
|
-
e(
|
|
1365
|
-
e(
|
|
1366
|
-
e(
|
|
1367
|
-
e(
|
|
1338
|
+
e(ie, [2, 75]),
|
|
1339
|
+
e(ie, [2, 76]),
|
|
1340
|
+
e(X, [2, 40]),
|
|
1341
|
+
e(X, [2, 41]),
|
|
1342
|
+
e(X, [2, 42]),
|
|
1343
|
+
e(X, [2, 43]),
|
|
1344
|
+
e(X, [2, 44]),
|
|
1345
|
+
e(X, [2, 45]),
|
|
1346
|
+
e(X, [2, 46]),
|
|
1347
|
+
e(X, [2, 47]),
|
|
1348
|
+
e(X, [2, 48]),
|
|
1349
|
+
e(X, [2, 49]),
|
|
1350
|
+
e(X, [2, 50]),
|
|
1351
|
+
e(X, [2, 51]),
|
|
1352
|
+
e(X, [2, 52]),
|
|
1353
|
+
e(X, [2, 53]),
|
|
1354
|
+
e(X, [2, 54]),
|
|
1355
|
+
e(X, [2, 55]),
|
|
1356
|
+
e(X, [2, 56]),
|
|
1357
|
+
e(X, [2, 57]),
|
|
1358
|
+
e(X, [2, 58]),
|
|
1359
|
+
e(X, [2, 60]),
|
|
1360
|
+
e(X, [2, 61]),
|
|
1361
|
+
e(X, [2, 62]),
|
|
1362
|
+
e(X, [2, 63]),
|
|
1363
|
+
e(X, [2, 64]),
|
|
1364
|
+
e(X, [2, 65]),
|
|
1365
|
+
e(X, [2, 66]),
|
|
1366
|
+
e(X, [2, 67]),
|
|
1367
|
+
e(X, [2, 68]),
|
|
1368
|
+
e(X, [2, 69]),
|
|
1369
|
+
e(X, [2, 70]),
|
|
1368
1370
|
{
|
|
1369
1371
|
31: 134,
|
|
1370
1372
|
42: [1, 135]
|
|
1371
1373
|
},
|
|
1372
1374
|
{ 12: [1, 136] },
|
|
1373
1375
|
{ 33: [1, 137] },
|
|
1374
|
-
e(
|
|
1375
|
-
e(
|
|
1376
|
-
e(
|
|
1377
|
-
e(
|
|
1378
|
-
e(
|
|
1379
|
-
e(
|
|
1380
|
-
e(
|
|
1376
|
+
e(ae, [2, 28]),
|
|
1377
|
+
e(ae, [2, 29]),
|
|
1378
|
+
e(ae, [2, 30]),
|
|
1379
|
+
e(ae, [2, 31]),
|
|
1380
|
+
e(ae, [2, 32]),
|
|
1381
|
+
e(ae, [2, 33]),
|
|
1382
|
+
e(ae, [2, 34]),
|
|
1381
1383
|
{ 1: [2, 9] },
|
|
1382
1384
|
{ 1: [2, 10] },
|
|
1383
1385
|
{ 1: [2, 11] },
|
|
1384
1386
|
{ 1: [2, 12] },
|
|
1385
|
-
e(
|
|
1386
|
-
e(
|
|
1387
|
-
e(
|
|
1388
|
-
e(
|
|
1389
|
-
e(
|
|
1390
|
-
e(
|
|
1391
|
-
e(
|
|
1392
|
-
e(
|
|
1393
|
-
e(
|
|
1387
|
+
e(te, [2, 18]),
|
|
1388
|
+
e(ee, [2, 38]),
|
|
1389
|
+
e(re, [2, 72]),
|
|
1390
|
+
e(ie, [2, 74]),
|
|
1391
|
+
e(X, [2, 24]),
|
|
1392
|
+
e(X, [2, 35]),
|
|
1393
|
+
e(oe, [2, 25]),
|
|
1394
|
+
e(oe, [2, 26], { 12: [1, 138] }),
|
|
1395
|
+
e(oe, [2, 27])
|
|
1394
1396
|
],
|
|
1395
1397
|
defaultActions: {
|
|
1396
1398
|
2: [2, 1],
|
|
@@ -1406,35 +1408,35 @@ var y = p(), b = (function() {
|
|
|
1406
1408
|
128: [2, 11],
|
|
1407
1409
|
129: [2, 12]
|
|
1408
1410
|
},
|
|
1409
|
-
parseError: /* @__PURE__ */
|
|
1411
|
+
parseError: /* @__PURE__ */ f(function(e, t) {
|
|
1410
1412
|
if (t.recoverable) this.trace(e);
|
|
1411
1413
|
else {
|
|
1412
1414
|
var n = Error(e);
|
|
1413
1415
|
throw n.hash = t, n;
|
|
1414
1416
|
}
|
|
1415
1417
|
}, "parseError"),
|
|
1416
|
-
parse: /* @__PURE__ */
|
|
1417
|
-
var
|
|
1418
|
+
parse: /* @__PURE__ */ f(function(e) {
|
|
1419
|
+
var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", l = 0, u = 0, d = 0, p = 2, m = 1, h = a.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
|
|
1418
1420
|
for (var v in this.yy) Object.prototype.hasOwnProperty.call(this.yy, v) && (_.yy[v] = this.yy[v]);
|
|
1419
1421
|
g.setInput(e, _.yy), _.yy.lexer = g, _.yy.parser = this, g.yylloc === void 0 && (g.yylloc = {});
|
|
1420
1422
|
var y = g.yylloc;
|
|
1421
|
-
|
|
1423
|
+
a.push(y);
|
|
1422
1424
|
var b = g.options && g.options.ranges;
|
|
1423
|
-
typeof _.yy.parseError == "function" ?
|
|
1425
|
+
this.parseError = typeof _.yy.parseError == "function" ? _.yy.parseError : Object.getPrototypeOf(this).parseError;
|
|
1424
1426
|
function x(e) {
|
|
1425
|
-
|
|
1427
|
+
n.length -= 2 * e, i.length -= e, a.length -= e;
|
|
1426
1428
|
}
|
|
1427
|
-
|
|
1429
|
+
f(x, "popStack");
|
|
1428
1430
|
function S() {
|
|
1429
|
-
var e =
|
|
1430
|
-
return typeof e != "number" && (e instanceof Array && (
|
|
1431
|
+
var e = r.pop() || g.lex() || m;
|
|
1432
|
+
return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
|
|
1431
1433
|
}
|
|
1432
|
-
|
|
1434
|
+
f(S, "lex");
|
|
1433
1435
|
for (var C, w, T, E, D, O = {}, k, A, j, M;;) {
|
|
1434
|
-
if (T =
|
|
1436
|
+
if (T = n[n.length - 1], this.defaultActions[T] ? E = this.defaultActions[T] : (C ??= S(), E = o[T] && o[T][C]), E === void 0 || !E.length || !E[0]) {
|
|
1435
1437
|
var N = "";
|
|
1436
|
-
for (k in M = [],
|
|
1437
|
-
N = g.showPosition ? "Parse error on line " + (
|
|
1438
|
+
for (k in M = [], o[T]) this.terminals_[k] && k > p && M.push("'" + this.terminals_[k] + "'");
|
|
1439
|
+
N = g.showPosition ? "Parse error on line " + (l + 1) + ":\n" + g.showPosition() + "\nExpecting " + M.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (C == m ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(N, {
|
|
1438
1440
|
text: g.match,
|
|
1439
1441
|
token: this.terminals_[C] || C,
|
|
1440
1442
|
line: g.yylineno,
|
|
@@ -1445,24 +1447,24 @@ var y = p(), b = (function() {
|
|
|
1445
1447
|
if (E[0] instanceof Array && E.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + C);
|
|
1446
1448
|
switch (E[0]) {
|
|
1447
1449
|
case 1:
|
|
1448
|
-
|
|
1450
|
+
n.push(C), i.push(g.yytext), a.push(g.yylloc), n.push(E[1]), C = null, w ? (C = w, w = null) : (u = g.yyleng, s = g.yytext, l = g.yylineno, y = g.yylloc, d > 0 && d--);
|
|
1449
1451
|
break;
|
|
1450
1452
|
case 2:
|
|
1451
|
-
if (A = this.productions_[E[1]][1], O.$ =
|
|
1452
|
-
first_line:
|
|
1453
|
-
last_line:
|
|
1454
|
-
first_column:
|
|
1455
|
-
last_column:
|
|
1456
|
-
}, b && (O._$.range = [
|
|
1457
|
-
|
|
1458
|
-
d,
|
|
1453
|
+
if (A = this.productions_[E[1]][1], O.$ = i[i.length - A], O._$ = {
|
|
1454
|
+
first_line: a[a.length - (A || 1)].first_line,
|
|
1455
|
+
last_line: a[a.length - 1].last_line,
|
|
1456
|
+
first_column: a[a.length - (A || 1)].first_column,
|
|
1457
|
+
last_column: a[a.length - 1].last_column
|
|
1458
|
+
}, b && (O._$.range = [a[a.length - (A || 1)].range[0], a[a.length - 1].range[1]]), D = this.performAction.apply(O, [
|
|
1459
|
+
s,
|
|
1459
1460
|
u,
|
|
1461
|
+
l,
|
|
1460
1462
|
_.yy,
|
|
1461
1463
|
E[1],
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
+
i,
|
|
1465
|
+
a
|
|
1464
1466
|
].concat(h)), D !== void 0) return D;
|
|
1465
|
-
A && (
|
|
1467
|
+
A && (n = n.slice(0, -1 * A * 2), i = i.slice(0, -1 * A), a = a.slice(0, -1 * A)), n.push(this.productions_[E[1]][0]), i.push(O.$), a.push(O._$), j = o[n[n.length - 2]][n[n.length - 1]], n.push(j);
|
|
1466
1468
|
break;
|
|
1467
1469
|
case 3: return !0;
|
|
1468
1470
|
}
|
|
@@ -1470,14 +1472,14 @@ var y = p(), b = (function() {
|
|
|
1470
1472
|
return !0;
|
|
1471
1473
|
}, "parse")
|
|
1472
1474
|
};
|
|
1473
|
-
|
|
1475
|
+
se.lexer = /* @__PURE__ */ (function() {
|
|
1474
1476
|
return {
|
|
1475
1477
|
EOF: 1,
|
|
1476
|
-
parseError: /* @__PURE__ */
|
|
1478
|
+
parseError: /* @__PURE__ */ f(function(e, t) {
|
|
1477
1479
|
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
1478
1480
|
else throw Error(e);
|
|
1479
1481
|
}, "parseError"),
|
|
1480
|
-
setInput: /* @__PURE__ */
|
|
1482
|
+
setInput: /* @__PURE__ */ f(function(e, t) {
|
|
1481
1483
|
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 = {
|
|
1482
1484
|
first_line: 1,
|
|
1483
1485
|
first_column: 0,
|
|
@@ -1485,11 +1487,11 @@ var y = p(), b = (function() {
|
|
|
1485
1487
|
last_column: 0
|
|
1486
1488
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
1487
1489
|
}, "setInput"),
|
|
1488
|
-
input: /* @__PURE__ */
|
|
1490
|
+
input: /* @__PURE__ */ f(function() {
|
|
1489
1491
|
var e = this._input[0];
|
|
1490
1492
|
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;
|
|
1491
1493
|
}, "input"),
|
|
1492
|
-
unput: /* @__PURE__ */
|
|
1494
|
+
unput: /* @__PURE__ */ f(function(e) {
|
|
1493
1495
|
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
1494
1496
|
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
1495
1497
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
@@ -1502,10 +1504,10 @@ var y = p(), b = (function() {
|
|
|
1502
1504
|
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
|
|
1503
1505
|
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
1504
1506
|
}, "unput"),
|
|
1505
|
-
more: /* @__PURE__ */
|
|
1507
|
+
more: /* @__PURE__ */ f(function() {
|
|
1506
1508
|
return this._more = !0, this;
|
|
1507
1509
|
}, "more"),
|
|
1508
|
-
reject: /* @__PURE__ */
|
|
1510
|
+
reject: /* @__PURE__ */ f(function() {
|
|
1509
1511
|
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
1510
1512
|
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(), {
|
|
1511
1513
|
text: "",
|
|
@@ -1514,22 +1516,22 @@ var y = p(), b = (function() {
|
|
|
1514
1516
|
});
|
|
1515
1517
|
return this;
|
|
1516
1518
|
}, "reject"),
|
|
1517
|
-
less: /* @__PURE__ */
|
|
1519
|
+
less: /* @__PURE__ */ f(function(e) {
|
|
1518
1520
|
this.unput(this.match.slice(e));
|
|
1519
1521
|
}, "less"),
|
|
1520
|
-
pastInput: /* @__PURE__ */
|
|
1522
|
+
pastInput: /* @__PURE__ */ f(function() {
|
|
1521
1523
|
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
1522
1524
|
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
1523
1525
|
}, "pastInput"),
|
|
1524
|
-
upcomingInput: /* @__PURE__ */
|
|
1526
|
+
upcomingInput: /* @__PURE__ */ f(function() {
|
|
1525
1527
|
var e = this.match;
|
|
1526
1528
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1527
1529
|
}, "upcomingInput"),
|
|
1528
|
-
showPosition: /* @__PURE__ */
|
|
1530
|
+
showPosition: /* @__PURE__ */ f(function() {
|
|
1529
1531
|
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
1530
1532
|
return e + this.upcomingInput() + "\n" + t + "^";
|
|
1531
1533
|
}, "showPosition"),
|
|
1532
|
-
test_match: /* @__PURE__ */
|
|
1534
|
+
test_match: /* @__PURE__ */ f(function(e, t) {
|
|
1533
1535
|
var n, r, i;
|
|
1534
1536
|
if (this.options.backtrack_lexer && (i = {
|
|
1535
1537
|
yylineno: this.yylineno,
|
|
@@ -1562,7 +1564,7 @@ var y = p(), b = (function() {
|
|
|
1562
1564
|
}
|
|
1563
1565
|
return !1;
|
|
1564
1566
|
}, "test_match"),
|
|
1565
|
-
next: /* @__PURE__ */
|
|
1567
|
+
next: /* @__PURE__ */ f(function() {
|
|
1566
1568
|
if (this.done) return this.EOF;
|
|
1567
1569
|
this._input || (this.done = !0);
|
|
1568
1570
|
var e, t, n, r;
|
|
@@ -1573,38 +1575,40 @@ var y = p(), b = (function() {
|
|
|
1573
1575
|
if (this._backtrack) {
|
|
1574
1576
|
t = !1;
|
|
1575
1577
|
continue;
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
+
}
|
|
1579
|
+
return !1;
|
|
1580
|
+
}
|
|
1581
|
+
if (!this.options.flex) break;
|
|
1578
1582
|
}
|
|
1579
|
-
return t ? (e = this.test_match(t, i[r]), e
|
|
1583
|
+
return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
1580
1584
|
text: "",
|
|
1581
1585
|
token: null,
|
|
1582
1586
|
line: this.yylineno
|
|
1583
1587
|
});
|
|
1584
1588
|
}, "next"),
|
|
1585
|
-
lex: /* @__PURE__ */
|
|
1589
|
+
lex: /* @__PURE__ */ f(function() {
|
|
1586
1590
|
return this.next() || this.lex();
|
|
1587
1591
|
}, "lex"),
|
|
1588
|
-
begin: /* @__PURE__ */
|
|
1592
|
+
begin: /* @__PURE__ */ f(function(e) {
|
|
1589
1593
|
this.conditionStack.push(e);
|
|
1590
1594
|
}, "begin"),
|
|
1591
|
-
popState: /* @__PURE__ */
|
|
1595
|
+
popState: /* @__PURE__ */ f(function() {
|
|
1592
1596
|
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
1593
1597
|
}, "popState"),
|
|
1594
|
-
_currentRules: /* @__PURE__ */
|
|
1598
|
+
_currentRules: /* @__PURE__ */ f(function() {
|
|
1595
1599
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
1596
1600
|
}, "_currentRules"),
|
|
1597
|
-
topState: /* @__PURE__ */
|
|
1601
|
+
topState: /* @__PURE__ */ f(function(e) {
|
|
1598
1602
|
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
1599
1603
|
}, "topState"),
|
|
1600
|
-
pushState: /* @__PURE__ */
|
|
1604
|
+
pushState: /* @__PURE__ */ f(function(e) {
|
|
1601
1605
|
this.begin(e);
|
|
1602
1606
|
}, "pushState"),
|
|
1603
|
-
stateStackSize: /* @__PURE__ */
|
|
1607
|
+
stateStackSize: /* @__PURE__ */ f(function() {
|
|
1604
1608
|
return this.conditionStack.length;
|
|
1605
1609
|
}, "stateStackSize"),
|
|
1606
1610
|
options: {},
|
|
1607
|
-
performAction: /* @__PURE__ */
|
|
1611
|
+
performAction: /* @__PURE__ */ f(function(e, t, n, r) {
|
|
1608
1612
|
switch (n) {
|
|
1609
1613
|
case 0: return 6;
|
|
1610
1614
|
case 1: return 7;
|
|
@@ -2267,27 +2271,34 @@ var y = p(), b = (function() {
|
|
|
2267
2271
|
}
|
|
2268
2272
|
};
|
|
2269
2273
|
})();
|
|
2270
|
-
function
|
|
2274
|
+
function Z() {
|
|
2271
2275
|
this.yy = {};
|
|
2272
2276
|
}
|
|
2273
|
-
return
|
|
2277
|
+
return f(Z, "Parser"), Z.prototype = se, se.Parser = Z, new Z();
|
|
2274
2278
|
})();
|
|
2275
|
-
|
|
2276
|
-
var
|
|
2279
|
+
v.parser = v;
|
|
2280
|
+
var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__PURE__ */ f((e, t) => {
|
|
2281
|
+
for (let [n, r] of Object.entries(t)) if (r !== void 0) {
|
|
2282
|
+
if (typeof r == "object") {
|
|
2283
|
+
let [t, n] = Object.entries(r)[0];
|
|
2284
|
+
e[t] = n;
|
|
2285
|
+
} else e[n] = r;
|
|
2286
|
+
}
|
|
2287
|
+
}, "assignAttributes"), S = /* @__PURE__ */ f(() => ({
|
|
2277
2288
|
alias: "global",
|
|
2278
2289
|
label: { text: "global" },
|
|
2279
2290
|
type: { text: "global" },
|
|
2280
2291
|
tags: null,
|
|
2281
2292
|
link: null,
|
|
2282
2293
|
parentBoundary: ""
|
|
2283
|
-
}], D = [], O = "",
|
|
2284
|
-
return
|
|
2285
|
-
}, "getC4Type"),
|
|
2286
|
-
|
|
2287
|
-
}, "setC4Type"),
|
|
2294
|
+
}), "createGlobalBoundary"), C = [], w = [""], T = "global", E = "", D = [S()], O = [], k = "", A = !1, j = 4, M = 2, N, P = /* @__PURE__ */ f(function() {
|
|
2295
|
+
return N;
|
|
2296
|
+
}, "getC4Type"), F = /* @__PURE__ */ f(function(e) {
|
|
2297
|
+
N = d(e, l());
|
|
2298
|
+
}, "setC4Type"), I = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s, l) {
|
|
2288
2299
|
if (e == null || t == null || n == null || r == null) return;
|
|
2289
|
-
let u = {}, d =
|
|
2290
|
-
if (d ? u = d :
|
|
2300
|
+
let u = {}, d = O.find((e) => e.from === t && e.to === n);
|
|
2301
|
+
if (d ? u = d : O.push(u), u.type = e, u.from = t, u.to = n, u.label = { text: r }, i == null) u.techn = { text: "" };
|
|
2291
2302
|
else if (typeof i == "object") {
|
|
2292
2303
|
let [e, t] = Object.entries(i)[0];
|
|
2293
2304
|
u[e] = { text: t };
|
|
@@ -2297,44 +2308,28 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
|
|
|
2297
2308
|
let [e, t] = Object.entries(a)[0];
|
|
2298
2309
|
u[e] = { text: t };
|
|
2299
2310
|
} else u.descr = { text: a };
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
u[e] = t;
|
|
2307
|
-
} else u.tags = s;
|
|
2308
|
-
if (typeof l == "object") {
|
|
2309
|
-
let [e, t] = Object.entries(l)[0];
|
|
2310
|
-
u[e] = t;
|
|
2311
|
-
} else u.link = l;
|
|
2312
|
-
u.wrap = J();
|
|
2313
|
-
}, "addRel"), I = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
|
|
2311
|
+
x(u, {
|
|
2312
|
+
sprite: o,
|
|
2313
|
+
tags: s,
|
|
2314
|
+
link: l
|
|
2315
|
+
}), u.wrap = Z();
|
|
2316
|
+
}, "addRel"), L = /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
|
|
2314
2317
|
if (t === null || n === null) return;
|
|
2315
|
-
let s = {}, l =
|
|
2316
|
-
if (l && t === l.alias ? s = l : (s.alias = t,
|
|
2318
|
+
let s = {}, l = C.find((e) => e.alias === t);
|
|
2319
|
+
if (l && t === l.alias ? s = l : (s.alias = t, C.push(s)), n == null ? s.label = { text: "" } : s.label = { text: n }, r == null) s.descr = { text: "" };
|
|
2317
2320
|
else if (typeof r == "object") {
|
|
2318
2321
|
let [e, t] = Object.entries(r)[0];
|
|
2319
2322
|
s[e] = { text: t };
|
|
2320
2323
|
} else s.descr = { text: r };
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
s[e] = t;
|
|
2328
|
-
} else s.tags = a;
|
|
2329
|
-
if (typeof o == "object") {
|
|
2330
|
-
let [e, t] = Object.entries(o)[0];
|
|
2331
|
-
s[e] = t;
|
|
2332
|
-
} else s.link = o;
|
|
2333
|
-
s.typeC4Shape = { text: e }, s.parentBoundary = w, s.wrap = J();
|
|
2334
|
-
}, "addPersonOrSystem"), L = /* @__PURE__ */ t(function(e, t, n, r, i, a, o, s) {
|
|
2324
|
+
x(s, {
|
|
2325
|
+
sprite: i,
|
|
2326
|
+
tags: a,
|
|
2327
|
+
link: o
|
|
2328
|
+
}), s.typeC4Shape = { text: e }, s.parentBoundary = T, s.wrap = Z();
|
|
2329
|
+
}, "addPersonOrSystem"), R = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s) {
|
|
2335
2330
|
if (t === null || n === null) return;
|
|
2336
|
-
let l = {}, u =
|
|
2337
|
-
if (u && t === u.alias ? l = u : (l.alias = t,
|
|
2331
|
+
let l = {}, u = C.find((e) => e.alias === t);
|
|
2332
|
+
if (u && t === u.alias ? l = u : (l.alias = t, C.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
|
|
2338
2333
|
else if (typeof r == "object") {
|
|
2339
2334
|
let [e, t] = Object.entries(r)[0];
|
|
2340
2335
|
l[e] = { text: t };
|
|
@@ -2344,23 +2339,15 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
|
|
|
2344
2339
|
let [e, t] = Object.entries(i)[0];
|
|
2345
2340
|
l[e] = { text: t };
|
|
2346
2341
|
} else l.descr = { text: i };
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
l[e] = t;
|
|
2354
|
-
} else l.tags = o;
|
|
2355
|
-
if (typeof s == "object") {
|
|
2356
|
-
let [e, t] = Object.entries(s)[0];
|
|
2357
|
-
l[e] = t;
|
|
2358
|
-
} else l.link = s;
|
|
2359
|
-
l.wrap = J(), l.typeC4Shape = { text: e }, l.parentBoundary = w;
|
|
2360
|
-
}, "addContainer"), R = /* @__PURE__ */ t(function(e, t, n, r, i, a, o, s) {
|
|
2342
|
+
x(l, {
|
|
2343
|
+
sprite: a,
|
|
2344
|
+
tags: o,
|
|
2345
|
+
link: s
|
|
2346
|
+
}), l.wrap = Z(), l.typeC4Shape = { text: e }, l.parentBoundary = T;
|
|
2347
|
+
}, "addContainer"), z = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s) {
|
|
2361
2348
|
if (t === null || n === null) return;
|
|
2362
|
-
let l = {}, u =
|
|
2363
|
-
if (u && t === u.alias ? l = u : (l.alias = t,
|
|
2349
|
+
let l = {}, u = C.find((e) => e.alias === t);
|
|
2350
|
+
if (u && t === u.alias ? l = u : (l.alias = t, C.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
|
|
2364
2351
|
else if (typeof r == "object") {
|
|
2365
2352
|
let [e, t] = Object.entries(r)[0];
|
|
2366
2353
|
l[e] = { text: t };
|
|
@@ -2370,57 +2357,39 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
|
|
|
2370
2357
|
let [e, t] = Object.entries(i)[0];
|
|
2371
2358
|
l[e] = { text: t };
|
|
2372
2359
|
} else l.descr = { text: i };
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
l[e] = t;
|
|
2380
|
-
} else l.tags = o;
|
|
2381
|
-
if (typeof s == "object") {
|
|
2382
|
-
let [e, t] = Object.entries(s)[0];
|
|
2383
|
-
l[e] = t;
|
|
2384
|
-
} else l.link = s;
|
|
2385
|
-
l.wrap = J(), l.typeC4Shape = { text: e }, l.parentBoundary = w;
|
|
2386
|
-
}, "addComponent"), z = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
2360
|
+
x(l, {
|
|
2361
|
+
sprite: a,
|
|
2362
|
+
tags: o,
|
|
2363
|
+
link: s
|
|
2364
|
+
}), l.wrap = Z(), l.typeC4Shape = { text: e }, l.parentBoundary = T;
|
|
2365
|
+
}, "addComponent"), B = /* @__PURE__ */ f(function(e, t, n, r, i) {
|
|
2387
2366
|
if (e === null || t === null) return;
|
|
2388
|
-
let a = {}, o =
|
|
2389
|
-
if (o && e === o.alias ? a = o : (a.alias = e,
|
|
2367
|
+
let a = {}, o = D.find((t) => t.alias === e);
|
|
2368
|
+
if (o && e === o.alias ? a = o : (a.alias = e, D.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "system" };
|
|
2390
2369
|
else if (typeof n == "object") {
|
|
2391
2370
|
let [e, t] = Object.entries(n)[0];
|
|
2392
2371
|
a[e] = { text: t };
|
|
2393
2372
|
} else a.type = { text: n };
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
|
-
let [e, t] = Object.entries(i)[0];
|
|
2400
|
-
a[e] = t;
|
|
2401
|
-
} else a.link = i;
|
|
2402
|
-
a.parentBoundary = w, a.wrap = J(), T = w, w = e, C.push(T);
|
|
2403
|
-
}, "addPersonOrSystemBoundary"), B = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
2373
|
+
x(a, {
|
|
2374
|
+
tags: r,
|
|
2375
|
+
link: i
|
|
2376
|
+
}), a.parentBoundary = T, a.wrap = Z(), E = T, T = e, w.push(E);
|
|
2377
|
+
}, "addPersonOrSystemBoundary"), V = /* @__PURE__ */ f(function(e, t, n, r, i) {
|
|
2404
2378
|
if (e === null || t === null) return;
|
|
2405
|
-
let a = {}, o =
|
|
2406
|
-
if (o && e === o.alias ? a = o : (a.alias = e,
|
|
2379
|
+
let a = {}, o = D.find((t) => t.alias === e);
|
|
2380
|
+
if (o && e === o.alias ? a = o : (a.alias = e, D.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "container" };
|
|
2407
2381
|
else if (typeof n == "object") {
|
|
2408
2382
|
let [e, t] = Object.entries(n)[0];
|
|
2409
2383
|
a[e] = { text: t };
|
|
2410
2384
|
} else a.type = { text: n };
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
|
-
let [e, t] = Object.entries(i)[0];
|
|
2417
|
-
a[e] = t;
|
|
2418
|
-
} else a.link = i;
|
|
2419
|
-
a.parentBoundary = w, a.wrap = J(), T = w, w = e, C.push(T);
|
|
2420
|
-
}, "addContainerBoundary"), V = /* @__PURE__ */ t(function(e, t, n, r, i, a, o, s) {
|
|
2385
|
+
x(a, {
|
|
2386
|
+
tags: r,
|
|
2387
|
+
link: i
|
|
2388
|
+
}), a.parentBoundary = T, a.wrap = Z(), E = T, T = e, w.push(E);
|
|
2389
|
+
}, "addContainerBoundary"), H = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s) {
|
|
2421
2390
|
if (t === null || n === null) return;
|
|
2422
|
-
let l = {}, u =
|
|
2423
|
-
if (u && t === u.alias ? l = u : (l.alias = t,
|
|
2391
|
+
let l = {}, u = D.find((e) => e.alias === t);
|
|
2392
|
+
if (u && t === u.alias ? l = u : (l.alias = t, D.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.type = { text: "node" };
|
|
2424
2393
|
else if (typeof r == "object") {
|
|
2425
2394
|
let [e, t] = Object.entries(r)[0];
|
|
2426
2395
|
l[e] = { text: t };
|
|
@@ -2430,79 +2399,100 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
|
|
|
2430
2399
|
let [e, t] = Object.entries(i)[0];
|
|
2431
2400
|
l[e] = { text: t };
|
|
2432
2401
|
} else l.descr = { text: i };
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2402
|
+
x(l, {
|
|
2403
|
+
tags: o,
|
|
2404
|
+
link: s
|
|
2405
|
+
}), l.nodeType = e, l.parentBoundary = T, l.wrap = Z(), E = T, T = t, w.push(E);
|
|
2406
|
+
}, "addDeploymentNode"), U = /* @__PURE__ */ f(function() {
|
|
2407
|
+
T = E, w.pop(), E = w.pop(), w.push(E);
|
|
2408
|
+
}, "popBoundaryParseStack"), W = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s, l, u, d) {
|
|
2409
|
+
let f = C.find((e) => e.alias === t);
|
|
2410
|
+
if (!(f === void 0 && (f = D.find((e) => e.alias === t), f === void 0))) {
|
|
2411
|
+
if (n != null) {
|
|
2412
|
+
if (typeof n == "object") {
|
|
2413
|
+
let [e, t] = Object.entries(n)[0];
|
|
2414
|
+
f[e] = t;
|
|
2415
|
+
} else f.bgColor = n;
|
|
2416
|
+
}
|
|
2417
|
+
if (r != null) {
|
|
2418
|
+
if (typeof r == "object") {
|
|
2419
|
+
let [e, t] = Object.entries(r)[0];
|
|
2420
|
+
f[e] = t;
|
|
2421
|
+
} else f.fontColor = r;
|
|
2422
|
+
}
|
|
2423
|
+
if (i != null) {
|
|
2424
|
+
if (typeof i == "object") {
|
|
2425
|
+
let [e, t] = Object.entries(i)[0];
|
|
2426
|
+
f[e] = t;
|
|
2427
|
+
} else f.borderColor = i;
|
|
2428
|
+
}
|
|
2429
|
+
if (a != null) {
|
|
2430
|
+
if (typeof a == "object") {
|
|
2431
|
+
let [e, t] = Object.entries(a)[0];
|
|
2432
|
+
f[e] = t;
|
|
2433
|
+
} else f.shadowing = a;
|
|
2434
|
+
}
|
|
2435
|
+
if (o != null) {
|
|
2436
|
+
if (typeof o == "object") {
|
|
2437
|
+
let [e, t] = Object.entries(o)[0];
|
|
2438
|
+
f[e] = t;
|
|
2439
|
+
} else f.shape = o;
|
|
2440
|
+
}
|
|
2441
|
+
if (s != null) {
|
|
2442
|
+
if (typeof s == "object") {
|
|
2443
|
+
let [e, t] = Object.entries(s)[0];
|
|
2444
|
+
f[e] = t;
|
|
2445
|
+
} else f.sprite = s;
|
|
2446
|
+
}
|
|
2447
|
+
if (l != null) {
|
|
2448
|
+
if (typeof l == "object") {
|
|
2449
|
+
let [e, t] = Object.entries(l)[0];
|
|
2450
|
+
f[e] = t;
|
|
2451
|
+
} else f.techn = l;
|
|
2452
|
+
}
|
|
2453
|
+
if (u != null) {
|
|
2454
|
+
if (typeof u == "object") {
|
|
2455
|
+
let [e, t] = Object.entries(u)[0];
|
|
2456
|
+
f[e] = t;
|
|
2457
|
+
} else f.legendText = u;
|
|
2458
|
+
}
|
|
2459
|
+
if (d != null) {
|
|
2460
|
+
if (typeof d == "object") {
|
|
2461
|
+
let [e, t] = Object.entries(d)[0];
|
|
2462
|
+
f[e] = t;
|
|
2463
|
+
} else f.legendSprite = d;
|
|
2464
|
+
}
|
|
2483
2465
|
}
|
|
2484
|
-
}, "updateElStyle"),
|
|
2485
|
-
let s =
|
|
2466
|
+
}, "updateElStyle"), G = /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
|
|
2467
|
+
let s = O.find((e) => e.from === t && e.to === n);
|
|
2486
2468
|
if (s !== void 0) {
|
|
2487
|
-
if (r != null)
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
s
|
|
2498
|
-
}
|
|
2499
|
-
if (
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2469
|
+
if (r != null) {
|
|
2470
|
+
if (typeof r == "object") {
|
|
2471
|
+
let [e, t] = Object.entries(r)[0];
|
|
2472
|
+
s[e] = t;
|
|
2473
|
+
} else s.textColor = r;
|
|
2474
|
+
}
|
|
2475
|
+
if (i != null) {
|
|
2476
|
+
if (typeof i == "object") {
|
|
2477
|
+
let [e, t] = Object.entries(i)[0];
|
|
2478
|
+
s[e] = t;
|
|
2479
|
+
} else s.lineColor = i;
|
|
2480
|
+
}
|
|
2481
|
+
if (a != null) {
|
|
2482
|
+
if (typeof a == "object") {
|
|
2483
|
+
let [e, t] = Object.entries(a)[0];
|
|
2484
|
+
s[e] = parseInt(t);
|
|
2485
|
+
} else s.offsetX = parseInt(a);
|
|
2486
|
+
}
|
|
2487
|
+
if (o != null) {
|
|
2488
|
+
if (typeof o == "object") {
|
|
2489
|
+
let [e, t] = Object.entries(o)[0];
|
|
2490
|
+
s[e] = parseInt(t);
|
|
2491
|
+
} else s.offsetY = parseInt(o);
|
|
2492
|
+
}
|
|
2503
2493
|
}
|
|
2504
|
-
}, "updateRelStyle"),
|
|
2505
|
-
let r =
|
|
2494
|
+
}, "updateRelStyle"), ee = /* @__PURE__ */ f(function(e, t, n) {
|
|
2495
|
+
let r = j, i = M;
|
|
2506
2496
|
if (typeof t == "object") {
|
|
2507
2497
|
let e = Object.values(t)[0];
|
|
2508
2498
|
r = parseInt(e);
|
|
@@ -2511,71 +2501,64 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
|
|
|
2511
2501
|
let e = Object.values(n)[0];
|
|
2512
2502
|
i = parseInt(e);
|
|
2513
2503
|
} else i = parseInt(n);
|
|
2514
|
-
r >= 1 && (
|
|
2515
|
-
}, "updateLayoutConfig"),
|
|
2516
|
-
return A;
|
|
2517
|
-
}, "getC4ShapeInRow"), ie = /* @__PURE__ */ t(function() {
|
|
2504
|
+
r >= 1 && (j = r), i >= 1 && (M = i);
|
|
2505
|
+
}, "updateLayoutConfig"), te = /* @__PURE__ */ f(function() {
|
|
2518
2506
|
return j;
|
|
2519
|
-
}, "
|
|
2520
|
-
return
|
|
2521
|
-
}, "
|
|
2507
|
+
}, "getC4ShapeInRow"), ne = /* @__PURE__ */ f(function() {
|
|
2508
|
+
return M;
|
|
2509
|
+
}, "getC4BoundaryInRow"), K = /* @__PURE__ */ f(function() {
|
|
2522
2510
|
return T;
|
|
2523
|
-
}, "
|
|
2524
|
-
return
|
|
2525
|
-
}, "
|
|
2526
|
-
return
|
|
2527
|
-
}, "
|
|
2528
|
-
return
|
|
2529
|
-
}, "
|
|
2530
|
-
return
|
|
2531
|
-
}, "
|
|
2532
|
-
return D;
|
|
2533
|
-
}, "
|
|
2511
|
+
}, "getCurrentBoundaryParse"), q = /* @__PURE__ */ f(function() {
|
|
2512
|
+
return E;
|
|
2513
|
+
}, "getParentBoundaryParse"), J = /* @__PURE__ */ f(function(e) {
|
|
2514
|
+
return e == null ? C : C.filter((t) => t.parentBoundary === e);
|
|
2515
|
+
}, "getC4ShapeArray"), Y = /* @__PURE__ */ f(function(e) {
|
|
2516
|
+
return C.find((t) => t.alias === e);
|
|
2517
|
+
}, "getC4Shape"), X = /* @__PURE__ */ f(function(e) {
|
|
2518
|
+
return Object.keys(J(e));
|
|
2519
|
+
}, "getC4ShapeKeys"), re = /* @__PURE__ */ f(function(e) {
|
|
2520
|
+
return e == null ? D : D.filter((t) => t.parentBoundary === e);
|
|
2521
|
+
}, "getBoundaries"), ie = re, ae = /* @__PURE__ */ f(function() {
|
|
2534
2522
|
return O;
|
|
2535
|
-
}, "
|
|
2536
|
-
k = e;
|
|
2537
|
-
}, "setWrap"), J = /* @__PURE__ */ t(function() {
|
|
2523
|
+
}, "getRels"), oe = /* @__PURE__ */ f(function() {
|
|
2538
2524
|
return k;
|
|
2539
|
-
}, "
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
link: null,
|
|
2577
|
-
parentBoundary: ""
|
|
2578
|
-
}], T = "", w = "global", C = [""], D = [], C = [""], O = "", k = !1, A = 4, j = 2;
|
|
2525
|
+
}, "getTitle"), se = /* @__PURE__ */ f(function(e) {
|
|
2526
|
+
A = e;
|
|
2527
|
+
}, "setWrap"), Z = /* @__PURE__ */ f(function() {
|
|
2528
|
+
return A;
|
|
2529
|
+
}, "autoWrap"), ce = {
|
|
2530
|
+
addPersonOrSystem: L,
|
|
2531
|
+
addPersonOrSystemBoundary: B,
|
|
2532
|
+
addContainer: R,
|
|
2533
|
+
addContainerBoundary: V,
|
|
2534
|
+
addComponent: z,
|
|
2535
|
+
addDeploymentNode: H,
|
|
2536
|
+
popBoundaryParseStack: U,
|
|
2537
|
+
addRel: I,
|
|
2538
|
+
updateElStyle: W,
|
|
2539
|
+
updateRelStyle: G,
|
|
2540
|
+
updateLayoutConfig: ee,
|
|
2541
|
+
autoWrap: Z,
|
|
2542
|
+
setWrap: se,
|
|
2543
|
+
getC4ShapeArray: J,
|
|
2544
|
+
getC4Shape: Y,
|
|
2545
|
+
getC4ShapeKeys: X,
|
|
2546
|
+
getBoundaries: re,
|
|
2547
|
+
getBoundarys: ie,
|
|
2548
|
+
getCurrentBoundaryParse: K,
|
|
2549
|
+
getParentBoundaryParse: q,
|
|
2550
|
+
getRels: ae,
|
|
2551
|
+
getTitle: oe,
|
|
2552
|
+
getC4Type: P,
|
|
2553
|
+
getC4ShapeInRow: te,
|
|
2554
|
+
getC4BoundaryInRow: ne,
|
|
2555
|
+
setAccTitle: r,
|
|
2556
|
+
getAccTitle: u,
|
|
2557
|
+
getAccDescription: s,
|
|
2558
|
+
setAccDescription: n,
|
|
2559
|
+
getConfig: /* @__PURE__ */ f(() => b("c4"), "getConfig"),
|
|
2560
|
+
clear: /* @__PURE__ */ f(function() {
|
|
2561
|
+
C = [], D = [S()], E = "", T = "global", w = [""], O = [], w = [""], k = "", A = !1, j = 4, M = 2;
|
|
2579
2562
|
}, "clear"),
|
|
2580
2563
|
LINETYPE: {
|
|
2581
2564
|
SOLID: 0,
|
|
@@ -2611,21 +2594,16 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
|
|
|
2611
2594
|
RIGHTOF: 1,
|
|
2612
2595
|
OVER: 2
|
|
2613
2596
|
},
|
|
2614
|
-
setTitle: /* @__PURE__ */
|
|
2615
|
-
|
|
2597
|
+
setTitle: /* @__PURE__ */ f(function(e) {
|
|
2598
|
+
k = d(e, l());
|
|
2616
2599
|
}, "setTitle"),
|
|
2617
|
-
setC4Type:
|
|
2618
|
-
},
|
|
2600
|
+
setC4Type: F
|
|
2601
|
+
}, le = /* @__PURE__ */ f(function(e, t) {
|
|
2619
2602
|
return _(e, t);
|
|
2620
|
-
}, "drawRect"),
|
|
2621
|
-
let o = e.append("image");
|
|
2622
|
-
o.attr("width", t), o.attr("height", n), o.attr("x", r), o.attr("y", i);
|
|
2623
|
-
let s = a.startsWith("data:image/png;base64") ? a : (0, y.sanitizeUrl)(a);
|
|
2624
|
-
o.attr("xlink:href", s);
|
|
2625
|
-
}, "drawImage"), pe = /* @__PURE__ */ t((e, t, n, r) => {
|
|
2603
|
+
}, "drawRect"), ue = /* @__PURE__ */ f((e, t, n, r) => {
|
|
2626
2604
|
let i = e.append("g"), a = 0;
|
|
2627
2605
|
for (let e of t) {
|
|
2628
|
-
let t = e.textColor ? e.textColor : "#444444", o = e.lineColor ? e.lineColor : "#444444", s = e.offsetX ? parseInt(e.offsetX) : 0, l = e.offsetY ? parseInt(e.offsetY) : 0;
|
|
2606
|
+
let t = e.textColor ? e.textColor : "#444444", o = e.lineColor ? e.lineColor : "#444444", s = e.offsetX ? parseInt(String(e.offsetX)) : 0, l = e.offsetY ? parseInt(String(e.offsetY)) : 0;
|
|
2629
2607
|
if (a === 0) {
|
|
2630
2608
|
let t = i.append("line");
|
|
2631
2609
|
t.attr("x1", e.startPoint.x), t.attr("y1", e.startPoint.y), t.attr("x2", e.endPoint.x), t.attr("y2", e.endPoint.y), t.attr("stroke-width", "1"), t.attr("stroke", o), t.style("fill", "none"), e.type !== "rel_b" && t.attr("marker-end", "url(#" + r + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#" + r + "-arrowend)"), a = -1;
|
|
@@ -2633,18 +2611,18 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
|
|
|
2633
2611
|
let t = i.append("path");
|
|
2634
2612
|
t.attr("fill", "none").attr("stroke-width", "1").attr("stroke", o).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", e.startPoint.x).replaceAll("starty", e.startPoint.y).replaceAll("controlx", e.startPoint.x + (e.endPoint.x - e.startPoint.x) / 2 - (e.endPoint.x - e.startPoint.x) / 4).replaceAll("controly", e.startPoint.y + (e.endPoint.y - e.startPoint.y) / 2).replaceAll("stopx", e.endPoint.x).replaceAll("stopy", e.endPoint.y)), e.type !== "rel_b" && t.attr("marker-end", "url(#" + r + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#" + r + "-arrowend)");
|
|
2635
2613
|
}
|
|
2636
|
-
let u = n.messageFont();
|
|
2637
|
-
|
|
2614
|
+
let u = e.label.width, d = n.messageFont();
|
|
2615
|
+
ye(n)(e.label.text, i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + l, u, e.label.height, { fill: t }, d), e.techn && e.techn.text !== "" && (d = n.messageFont(), ye(n)("[" + e.techn.text + "]", i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + n.messageFontSize + 5 + l, Math.max(u, e.techn.width), e.techn.height, {
|
|
2638
2616
|
fill: t,
|
|
2639
2617
|
"font-style": "italic"
|
|
2640
|
-
},
|
|
2618
|
+
}, d));
|
|
2641
2619
|
}
|
|
2642
|
-
}, "drawRels"),
|
|
2620
|
+
}, "drawRels"), de = /* @__PURE__ */ f(function(e, t, n) {
|
|
2643
2621
|
let r = e.append("g"), i = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", o = t.fontColor ? t.fontColor : "black", s = {
|
|
2644
2622
|
"stroke-width": 1,
|
|
2645
2623
|
"stroke-dasharray": "7.0,7.0"
|
|
2646
2624
|
};
|
|
2647
|
-
t.nodeType && (s = { "stroke-width": 1 }),
|
|
2625
|
+
t.nodeType && (s = { "stroke-width": 1 }), le(r, {
|
|
2648
2626
|
x: t.x,
|
|
2649
2627
|
y: t.y,
|
|
2650
2628
|
fill: i,
|
|
@@ -2656,138 +2634,166 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
|
|
|
2656
2634
|
attrs: s
|
|
2657
2635
|
});
|
|
2658
2636
|
let l = n.boundaryFont();
|
|
2659
|
-
l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o,
|
|
2660
|
-
}, "drawBoundary"),
|
|
2661
|
-
let r = t.bgColor ? t.bgColor : n[t.typeC4Shape.text + "_bg_color"], i = t.borderColor ? t.borderColor : n[t.typeC4Shape.text + "_border_color"], a = t.fontColor ? t.fontColor : "#FFFFFF", o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
|
|
2662
|
-
switch (t.typeC4Shape.text) {
|
|
2663
|
-
case "person":
|
|
2664
|
-
o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
|
|
2665
|
-
break;
|
|
2666
|
-
case "external_person":
|
|
2667
|
-
o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
|
|
2668
|
-
break;
|
|
2669
|
-
}
|
|
2670
|
-
let s = e.append("g");
|
|
2671
|
-
s.attr("class", "person-man");
|
|
2672
|
-
let l = v();
|
|
2673
|
-
switch (t.typeC4Shape.text) {
|
|
2674
|
-
case "person":
|
|
2675
|
-
case "external_person":
|
|
2676
|
-
case "system":
|
|
2677
|
-
case "external_system":
|
|
2678
|
-
case "container":
|
|
2679
|
-
case "external_container":
|
|
2680
|
-
case "component":
|
|
2681
|
-
case "external_component":
|
|
2682
|
-
l.x = t.x, l.y = t.y, l.fill = r, l.width = t.width, l.height = t.height, l.stroke = i, l.rx = 2.5, l.ry = 2.5, l.attrs = { "stroke-width": .5 }, de(s, l);
|
|
2683
|
-
break;
|
|
2684
|
-
case "system_db":
|
|
2685
|
-
case "external_system_db":
|
|
2686
|
-
case "container_db":
|
|
2687
|
-
case "external_container_db":
|
|
2688
|
-
case "component_db":
|
|
2689
|
-
case "external_component_db":
|
|
2690
|
-
s.append("path").attr("fill", r).attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2).replaceAll("height", t.height)), s.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2));
|
|
2691
|
-
break;
|
|
2692
|
-
case "system_queue":
|
|
2693
|
-
case "external_system_queue":
|
|
2694
|
-
case "container_queue":
|
|
2695
|
-
case "external_container_queue":
|
|
2696
|
-
case "component_queue":
|
|
2697
|
-
case "external_component_queue":
|
|
2698
|
-
s.append("path").attr("fill", r).attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("width", t.width).replaceAll("half", t.height / 2)), s.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", t.x + t.width).replaceAll("starty", t.y).replaceAll("half", t.height / 2));
|
|
2699
|
-
break;
|
|
2700
|
-
}
|
|
2701
|
-
let u = Ce(n, t.typeC4Shape.text);
|
|
2702
|
-
switch (s.append("text").attr("fill", a).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
|
|
2703
|
-
case "person":
|
|
2704
|
-
case "external_person":
|
|
2705
|
-
fe(s, 48, 48, t.x + t.width / 2 - 24, t.y + t.image.Y, o);
|
|
2706
|
-
break;
|
|
2707
|
-
}
|
|
2708
|
-
let d = n[t.typeC4Shape.text + "Font"]();
|
|
2709
|
-
return d.fontWeight = "bold", d.fontSize += 2, d.fontColor = a, Y(n)(t.label.text, s, t.x, t.y + t.label.Y, t.width, t.height, { fill: a }, d), d = n[t.typeC4Shape.text + "Font"](), d.fontColor = a, t.techn && t.techn?.text !== "" ? Y(n)(t.techn.text, s, t.x, t.y + t.techn.Y, t.width, t.height, {
|
|
2710
|
-
fill: a,
|
|
2711
|
-
"font-style": "italic"
|
|
2712
|
-
}, d) : t.type && t.type.text !== "" && Y(n)(t.type.text, s, t.x, t.y + t.type.Y, t.width, t.height, {
|
|
2713
|
-
fill: a,
|
|
2714
|
-
"font-style": "italic"
|
|
2715
|
-
}, d), t.descr && t.descr.text !== "" && (d = n.personFont(), d.fontColor = a, Y(n)(t.descr.text, s, t.x, t.y + t.descr.Y, t.width, t.height, { fill: a }, d)), t.height;
|
|
2716
|
-
}, "drawC4Shape"), ge = /* @__PURE__ */ t(function(e, t) {
|
|
2637
|
+
l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o, ye(n)(t.label.text, r, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, l), t.type && t.type.text !== "" && (l = n.boundaryFont(), l.fontColor = o, ye(n)(t.type.text, r, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, l)), t.descr && t.descr.text !== "" && (l = n.boundaryFont(), l.fontSize -= 2, l.fontColor = o, ye(n)(t.descr.text, r, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, l));
|
|
2638
|
+
}, "drawBoundary"), fe = /* @__PURE__ */ f(function(e, t) {
|
|
2717
2639
|
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");
|
|
2718
|
-
}, "insertDatabaseIcon"),
|
|
2640
|
+
}, "insertDatabaseIcon"), pe = /* @__PURE__ */ f(function(e, t) {
|
|
2719
2641
|
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");
|
|
2720
|
-
}, "insertComputerIcon"),
|
|
2642
|
+
}, "insertComputerIcon"), me = /* @__PURE__ */ f(function(e, t) {
|
|
2721
2643
|
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");
|
|
2722
|
-
}, "insertClockIcon"),
|
|
2644
|
+
}, "insertClockIcon"), he = /* @__PURE__ */ f(function(e, t) {
|
|
2723
2645
|
e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
|
|
2724
|
-
}, "insertArrowHead"),
|
|
2646
|
+
}, "insertArrowHead"), ge = /* @__PURE__ */ f(function(e, t) {
|
|
2725
2647
|
e.append("defs").append("marker").attr("id", t + "-arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
|
|
2726
|
-
}, "insertArrowEnd"),
|
|
2648
|
+
}, "insertArrowEnd"), _e = /* @__PURE__ */ f(function(e, t) {
|
|
2727
2649
|
e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 18).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");
|
|
2728
|
-
}, "insertArrowFilledHead"),
|
|
2650
|
+
}, "insertArrowFilledHead"), ve = /* @__PURE__ */ f(function(e, t) {
|
|
2729
2651
|
let n = e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
|
|
2730
2652
|
n.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), n.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
|
|
2731
|
-
}, "insertArrowCrossHead"),
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
fontWeight: e[t + "FontWeight"]
|
|
2735
|
-
}), "getC4ShapeFont"), Y = /* @__PURE__ */ (function() {
|
|
2736
|
-
function e(e, t, n, r, a, o, s) {
|
|
2737
|
-
i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("text-anchor", "middle").text(e), s);
|
|
2653
|
+
}, "insertArrowCrossHead"), ye = /* @__PURE__ */ (function() {
|
|
2654
|
+
function e(e, t, n, i, a, o, s) {
|
|
2655
|
+
r(t.append("text").attr("x", n + a / 2).attr("y", i + o / 2 + 5).style("text-anchor", "middle").text(e), s);
|
|
2738
2656
|
}
|
|
2739
|
-
|
|
2740
|
-
function
|
|
2741
|
-
let { fontSize: d, fontFamily: f, fontWeight: p } = u, m = e.split(
|
|
2657
|
+
f(e, "byText");
|
|
2658
|
+
function t(e, t, n, i, a, s, l, u) {
|
|
2659
|
+
let { fontSize: d, fontFamily: f, fontWeight: p } = u, m = e.split(o.lineBreakRegex);
|
|
2742
2660
|
for (let e = 0; e < m.length; e++) {
|
|
2743
|
-
let o = e * d - d * (m.length - 1) / 2, s = t.append("text").attr("x", n + a / 2).attr("y",
|
|
2744
|
-
s.append("tspan").attr("dy", o).text(m[e]).attr("alignment-baseline", "mathematical"),
|
|
2661
|
+
let o = e * d - d * (m.length - 1) / 2, s = t.append("text").attr("x", n + a / 2).attr("y", i).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", d).style("font-weight", p).style("font-family", f);
|
|
2662
|
+
s.append("tspan").attr("dy", o).text(m[e]).attr("alignment-baseline", "mathematical"), r(s, l);
|
|
2745
2663
|
}
|
|
2746
2664
|
}
|
|
2747
|
-
t
|
|
2748
|
-
function
|
|
2749
|
-
let d =
|
|
2750
|
-
f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e),
|
|
2665
|
+
f(t, "byTspan");
|
|
2666
|
+
function n(e, n, i, a, o, s, l, u) {
|
|
2667
|
+
let d = n.append("switch"), f = d.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%");
|
|
2668
|
+
f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, d, i, a, o, s, l, u), r(f, l);
|
|
2751
2669
|
}
|
|
2752
|
-
|
|
2753
|
-
function
|
|
2670
|
+
f(n, "byFo");
|
|
2671
|
+
function r(e, t) {
|
|
2754
2672
|
for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
|
|
2755
2673
|
}
|
|
2756
|
-
return
|
|
2757
|
-
return
|
|
2674
|
+
return f(r, "_setTextAttrs"), function(r) {
|
|
2675
|
+
return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
|
|
2758
2676
|
};
|
|
2759
|
-
})(),
|
|
2760
|
-
drawRect:
|
|
2761
|
-
drawBoundary:
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2677
|
+
})(), Q = {
|
|
2678
|
+
drawRect: le,
|
|
2679
|
+
drawBoundary: de,
|
|
2680
|
+
drawRels: ue,
|
|
2681
|
+
insertArrowHead: he,
|
|
2682
|
+
insertArrowEnd: ge,
|
|
2683
|
+
insertArrowFilledHead: _e,
|
|
2684
|
+
insertArrowCrossHead: ve,
|
|
2685
|
+
insertDatabaseIcon: fe,
|
|
2686
|
+
insertComputerIcon: pe,
|
|
2687
|
+
insertClockIcon: me
|
|
2688
|
+
}, be = /* @__PURE__ */ f((e, n) => {
|
|
2689
|
+
if (n === "sandbox") {
|
|
2690
|
+
let n = t("#i" + e).node()?.contentDocument;
|
|
2691
|
+
if (!n) throw Error(`Sandbox iframe #i${e} is missing its content document`);
|
|
2692
|
+
return {
|
|
2693
|
+
root: t(n.body),
|
|
2694
|
+
doc: n
|
|
2695
|
+
};
|
|
2696
|
+
}
|
|
2697
|
+
return {
|
|
2698
|
+
root: t("body"),
|
|
2699
|
+
doc: document
|
|
2700
|
+
};
|
|
2701
|
+
}, "getDiagramRoot"), xe = /* @__PURE__ */ new Set([
|
|
2702
|
+
"system_queue",
|
|
2703
|
+
"external_system_queue",
|
|
2704
|
+
"container_queue",
|
|
2705
|
+
"external_container_queue",
|
|
2706
|
+
"component_queue",
|
|
2707
|
+
"external_component_queue"
|
|
2708
|
+
]), Se = /* @__PURE__ */ new Set([
|
|
2709
|
+
"system_db",
|
|
2710
|
+
"external_system_db",
|
|
2711
|
+
"container_db",
|
|
2712
|
+
"external_container_db",
|
|
2713
|
+
"component_db",
|
|
2714
|
+
"external_component_db"
|
|
2715
|
+
]), Ce = {
|
|
2716
|
+
person: "person",
|
|
2717
|
+
box: "rounded",
|
|
2718
|
+
rounded: "rounded",
|
|
2719
|
+
cylinder: "cylinder",
|
|
2720
|
+
database: "cylinder",
|
|
2721
|
+
db: "cylinder",
|
|
2722
|
+
queue: "h-cyl",
|
|
2723
|
+
pipe: "h-cyl",
|
|
2724
|
+
component: "fr-rect"
|
|
2725
|
+
}, we = /* @__PURE__ */ f((e) => e ? Ce[e.toLowerCase()] : void 0, "keywordShape"), Te = /* @__PURE__ */ f((e) => {
|
|
2726
|
+
let t = we(e.shape) ?? we(e.sprite);
|
|
2727
|
+
if (t) return t;
|
|
2728
|
+
if (e.tags) for (let t of e.tags.split(",")) {
|
|
2729
|
+
let e = we(t.trim());
|
|
2730
|
+
if (e) return e;
|
|
2731
|
+
}
|
|
2732
|
+
let n = e.typeC4Shape.text;
|
|
2733
|
+
return n === "person" || n === "external_person" ? "person" : Se.has(n) ? "cylinder" : xe.has(n) ? "h-cyl" : "rounded";
|
|
2734
|
+
}, "resolveNodeShape"), Ee = {
|
|
2735
|
+
person: "Person",
|
|
2736
|
+
system: "Software System",
|
|
2737
|
+
container: "Container",
|
|
2738
|
+
component: "Component"
|
|
2739
|
+
}, De = /* @__PURE__ */ f((e) => {
|
|
2740
|
+
let t = e.replace(/^external_/, "").replace(/_(db|queue)$/, "");
|
|
2741
|
+
return Ee[t] ?? t.replace(/_/g, " ");
|
|
2742
|
+
}, "stereotypeLabel"), Oe = /* @__PURE__ */ f((e) => e.startsWith("external_"), "isExternal"), ke = /* @__PURE__ */ f((e) => {
|
|
2743
|
+
let t = De(e.typeC4Shape.text);
|
|
2744
|
+
return e.techn?.text ? `[${t}: ${e.techn.text}]` : `[${t}]`;
|
|
2745
|
+
}, "stereotypeText"), Ae = [
|
|
2746
|
+
"person",
|
|
2747
|
+
"system",
|
|
2748
|
+
"system_db",
|
|
2749
|
+
"system_queue",
|
|
2750
|
+
"container",
|
|
2751
|
+
"container_db",
|
|
2752
|
+
"container_queue",
|
|
2753
|
+
"component",
|
|
2754
|
+
"component_db",
|
|
2755
|
+
"component_queue"
|
|
2756
|
+
].flatMap((e) => [e, `external_${e}`]), je = new Set(Ae), Me = /* @__PURE__ */ f((e) => je.has(e), "isC4ElementType"), Ne = /* @__PURE__ */ f((e, t) => {
|
|
2757
|
+
let n = e.typeC4Shape.text, r = e.bgColor ?? (Me(n) && t[`${n}_bg_color`]), i = e.borderColor ?? (Me(n) && t[`${n}_border_color`]), a = [];
|
|
2758
|
+
return r && a.push(`fill:${r}`), i && a.push(`stroke:${i}`), a.push(`color:${e.fontColor ?? "#FFFFFF"}`), a;
|
|
2759
|
+
}, "elementCssStyles"), Pe = /* @__PURE__ */ f((e, t, n, r, i) => {
|
|
2760
|
+
let a = e.typeC4Shape.text, o = ["c4-shape", `c4-${a}`];
|
|
2761
|
+
Oe(a) && o.push("c4-external");
|
|
2762
|
+
let s = Te(e), l = Ne(e, t);
|
|
2763
|
+
return (s === "rounded" || s === "fr-rect") && l.push("rx:12px", "ry:12px"), {
|
|
2764
|
+
id: e.alias,
|
|
2765
|
+
label: e.label.text,
|
|
2766
|
+
stereotype: ke(e),
|
|
2767
|
+
description: e.descr?.text ? [e.descr.text] : void 0,
|
|
2768
|
+
labelType: "string",
|
|
2769
|
+
isGroup: !1,
|
|
2770
|
+
shape: s,
|
|
2771
|
+
cssClasses: o.join(" "),
|
|
2772
|
+
cssStyles: l,
|
|
2773
|
+
padding: n,
|
|
2774
|
+
look: r,
|
|
2775
|
+
useHtmlLabels: !1,
|
|
2776
|
+
width: i
|
|
2777
|
+
};
|
|
2778
|
+
}, "buildC4Node"), Fe = 0, Ie = 0, Le = 4, Re = 2;
|
|
2779
|
+
v.yy = ce;
|
|
2780
|
+
var $ = {}, ze = class {
|
|
2775
2781
|
static {
|
|
2776
|
-
|
|
2782
|
+
f(this, "Bounds");
|
|
2777
2783
|
}
|
|
2778
2784
|
constructor(e) {
|
|
2779
|
-
this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0,
|
|
2785
|
+
this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, Be(e.db.getConfig());
|
|
2780
2786
|
}
|
|
2781
2787
|
setData(e, t, n, r) {
|
|
2782
2788
|
this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = t, this.nextData.starty = this.data.starty = n, this.nextData.stopy = this.data.stopy = r;
|
|
2783
2789
|
}
|
|
2784
2790
|
updateVal(e, t, n, r) {
|
|
2785
|
-
e[t] === void 0 ?
|
|
2791
|
+
e[t] = e[t] === void 0 ? n : r(n, e[t]);
|
|
2786
2792
|
}
|
|
2787
2793
|
insert(e) {
|
|
2788
2794
|
this.nextData.cnt = this.nextData.cnt + 1;
|
|
2789
|
-
let t = this.nextData.
|
|
2790
|
-
(
|
|
2795
|
+
let t = this.nextData.stopx, n = this.data.widthLimit, r = this.nextData.startx === this.nextData.stopx ? t + e.margin : t + e.margin * 2, i = r + e.width, a = this.nextData.starty + e.margin * 2, o = a + e.height;
|
|
2796
|
+
(r >= n || i >= n || this.nextData.cnt > Le) && (r = this.nextData.startx + e.margin + $.nextLinePaddingX, a = this.nextData.stopy + e.margin * 2, this.nextData.stopx = i = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = o = a + e.height, this.nextData.cnt = 1), e.x = r, e.y = a, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", a, Math.min), this.updateVal(this.data, "stopx", i, Math.max), this.updateVal(this.data, "stopy", o, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", a, Math.min), this.updateVal(this.nextData, "stopx", i, Math.max), this.updateVal(this.nextData, "stopy", o, Math.max);
|
|
2791
2797
|
}
|
|
2792
2798
|
init(e) {
|
|
2793
2799
|
this.name = "", this.data = {
|
|
@@ -2802,160 +2808,203 @@ var Z = {}, Oe = class {
|
|
|
2802
2808
|
starty: void 0,
|
|
2803
2809
|
stopy: void 0,
|
|
2804
2810
|
cnt: 0
|
|
2805
|
-
},
|
|
2811
|
+
}, Be(e.db.getConfig());
|
|
2806
2812
|
}
|
|
2807
2813
|
bumpLastMargin(e) {
|
|
2808
2814
|
this.data.stopx += e, this.data.stopy += e;
|
|
2809
2815
|
}
|
|
2810
|
-
},
|
|
2811
|
-
|
|
2812
|
-
}, "setConf"),
|
|
2813
|
-
fontFamily: e[t + "FontFamily"],
|
|
2814
|
-
fontSize: e[t + "FontSize"],
|
|
2815
|
-
fontWeight: e[t + "FontWeight"]
|
|
2816
|
-
}), "c4ShapeFont"), je = /* @__PURE__ */ t((e) => ({
|
|
2816
|
+
}, Be = /* @__PURE__ */ f(function(e) {
|
|
2817
|
+
a($, e), e?.fontFamily && ($.personFontFamily = $.systemFontFamily = $.messageFontFamily = e.fontFamily), e?.fontSize && ($.personFontSize = $.systemFontSize = $.messageFontSize = e.fontSize), e?.fontWeight && ($.personFontWeight = $.systemFontWeight = $.messageFontWeight = e.fontWeight);
|
|
2818
|
+
}, "setConf"), Ve = /* @__PURE__ */ f((e) => ({
|
|
2817
2819
|
fontFamily: e.boundaryFontFamily,
|
|
2818
2820
|
fontSize: e.boundaryFontSize,
|
|
2819
2821
|
fontWeight: e.boundaryFontWeight
|
|
2820
|
-
}), "boundaryFont"),
|
|
2822
|
+
}), "boundaryFont"), He = /* @__PURE__ */ f((e) => ({
|
|
2821
2823
|
fontFamily: e.messageFontFamily,
|
|
2822
2824
|
fontSize: e.messageFontSize,
|
|
2823
2825
|
fontWeight: e.messageFontWeight
|
|
2824
2826
|
}), "messageFont");
|
|
2825
|
-
function
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
t(Q, "calcC4ShapeTextWH");
|
|
2836
|
-
var Ne = /* @__PURE__ */ t(function(e, t, n) {
|
|
2837
|
-
t.x = n.data.startx, t.y = n.data.starty, t.width = n.data.stopx - n.data.startx, t.height = n.data.stopy - n.data.starty, t.label.y = Z.c4ShapeMargin - 35;
|
|
2838
|
-
let r = t.wrap && Z.wrap, i = je(Z);
|
|
2839
|
-
i.fontSize += 2, i.fontWeight = "bold", Q("label", t, r, i, g(t.label.text, i)), X.drawBoundary(e, t, Z);
|
|
2840
|
-
}, "drawBoundary"), Pe = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
2841
|
-
let i = 0;
|
|
2842
|
-
for (let a of r) {
|
|
2843
|
-
i = 0;
|
|
2844
|
-
let r = n[a], o = Ae(Z, r.typeC4Shape.text);
|
|
2845
|
-
switch (o.fontSize -= 2, r.typeC4Shape.width = g("«" + r.typeC4Shape.text + "»", o), r.typeC4Shape.height = o.fontSize + 2, r.typeC4Shape.Y = Z.c4ShapePadding, i = r.typeC4Shape.Y + r.typeC4Shape.height - 4, r.image = {
|
|
2846
|
-
width: 0,
|
|
2847
|
-
height: 0,
|
|
2848
|
-
Y: 0
|
|
2849
|
-
}, r.typeC4Shape.text) {
|
|
2850
|
-
case "person":
|
|
2851
|
-
case "external_person":
|
|
2852
|
-
r.image.width = 48, r.image.height = 48, r.image.Y = i, i = r.image.Y + r.image.height;
|
|
2853
|
-
break;
|
|
2827
|
+
function Ue(e, t, n, r, i) {
|
|
2828
|
+
let a = t[e];
|
|
2829
|
+
if (!a.width) {
|
|
2830
|
+
if (n) a.text = p(a.text, i, r), a.textLines = a.text.split(o.lineBreakRegex).length, a.width = i, a.height = m(a.text, r);
|
|
2831
|
+
else {
|
|
2832
|
+
let e = a.text.split(o.lineBreakRegex);
|
|
2833
|
+
a.textLines = e.length;
|
|
2834
|
+
let t = 0;
|
|
2835
|
+
a.height = 0, a.width = 0;
|
|
2836
|
+
for (let n of e) a.width = Math.max(h(n, r), a.width), t = m(n, r), a.height += t;
|
|
2854
2837
|
}
|
|
2855
|
-
r.sprite && (r.image.width = 48, r.image.height = 48, r.image.Y = i, i = r.image.Y + r.image.height);
|
|
2856
|
-
let s = r.wrap && Z.wrap, l = Z.width - Z.c4ShapePadding * 2, u = Ae(Z, r.typeC4Shape.text);
|
|
2857
|
-
u.fontSize += 2, u.fontWeight = "bold", Q("label", r, s, u, l), r.label.Y = i + 8, i = r.label.Y + r.label.height, r.type && r.type.text !== "" ? (r.type.text = "[" + r.type.text + "]", Q("type", r, s, Ae(Z, r.typeC4Shape.text), l), r.type.Y = i + 5, i = r.type.Y + r.type.height) : r.techn && r.techn.text !== "" && (r.techn.text = "[" + r.techn.text + "]", Q("techn", r, s, Ae(Z, r.techn.text), l), r.techn.Y = i + 5, i = r.techn.Y + r.techn.height);
|
|
2858
|
-
let d = i, f = r.label.width;
|
|
2859
|
-
r.descr && r.descr.text !== "" && (Q("descr", r, s, Ae(Z, r.typeC4Shape.text), l), r.descr.Y = i + 20, i = r.descr.Y + r.descr.height, f = Math.max(r.label.width, r.descr.width), d = i - r.descr.textLines * 5), f += Z.c4ShapePadding, r.width = Math.max(r.width || Z.width, f, Z.width), r.height = Math.max(r.height || Z.height, d, Z.height), r.margin = r.margin || Z.c4ShapeMargin, e.insert(r), X.drawC4Shape(t, r, Z);
|
|
2860
2838
|
}
|
|
2861
|
-
|
|
2862
|
-
}
|
|
2839
|
+
return a;
|
|
2840
|
+
}
|
|
2841
|
+
f(Ue, "calcC4ShapeTextWH");
|
|
2842
|
+
var We = /* @__PURE__ */ f(function(e, t, n) {
|
|
2843
|
+
let r = n.data.startx, i = n.data.starty;
|
|
2844
|
+
t.x = r, t.y = i, t.width = n.data.stopx - r, t.height = n.data.stopy - i, t.label.y = $.c4ShapeMargin - 35;
|
|
2845
|
+
let a = t.wrap && $.wrap, o = Ve($);
|
|
2846
|
+
o.fontSize += 2, o.fontWeight = "bold", Ue("label", t, a, o, h(t.label.text, o)), Q.drawBoundary(e, t, $);
|
|
2847
|
+
}, "drawBoundary"), Ge = /* @__PURE__ */ f(async function(e, t, n, r) {
|
|
2848
|
+
let i = l(), a = i.look ?? "classic", o = { config: i }, s = t.attr("id") ?? "", u = r.map((e) => n[Number(e)]), d = /* @__PURE__ */ f((e) => {
|
|
2849
|
+
let t = e.shape ? g[e.shape] : void 0;
|
|
2850
|
+
if (!t) throw Error(`C4: no shape handler for "${e.shape}"`);
|
|
2851
|
+
return t;
|
|
2852
|
+
}, "shapeHandlerFor");
|
|
2853
|
+
await Promise.all(u.map(async (e) => {
|
|
2854
|
+
let n = Pe(e, $, $.c4ShapePadding, a, $.width);
|
|
2855
|
+
n.domId = `${s}-${n.id}`;
|
|
2856
|
+
let r = await d(n)(t, n, o);
|
|
2857
|
+
e.width = n.width ?? $.width, e.height = n.height ?? $.height, e.margin = $.c4ShapeMargin, r.remove();
|
|
2858
|
+
}));
|
|
2859
|
+
for (let t of u) e.insert(t);
|
|
2860
|
+
await Promise.all(u.map(async (e) => {
|
|
2861
|
+
let n = Pe(e, $, $.c4ShapePadding, a, $.width);
|
|
2862
|
+
n.domId = `${s}-${n.id}`, n.x = e.x + e.width / 2, n.y = e.y + e.height / 2;
|
|
2863
|
+
let r = t.append("g").attr("transform", `translate(${e.x + e.width / 2}, ${e.y + e.height / 2})`);
|
|
2864
|
+
await d(n)(r, n, o), e.intersect = n.intersect;
|
|
2865
|
+
})), e.bumpLastMargin($.c4ShapeMargin);
|
|
2866
|
+
}, "drawC4ShapeArray"), Ke = class {
|
|
2863
2867
|
static {
|
|
2864
|
-
|
|
2868
|
+
f(this, "Point");
|
|
2865
2869
|
}
|
|
2866
2870
|
constructor(e, t) {
|
|
2867
2871
|
this.x = e, this.y = t;
|
|
2868
2872
|
}
|
|
2869
|
-
},
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
+
}, qe = /* @__PURE__ */ f(function(e, t) {
|
|
2874
|
+
if (!e.intersect) throw Error(`C4 shape "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);
|
|
2875
|
+
let { x: n, y: r } = e.intersect(t);
|
|
2876
|
+
return new Ke(n, r);
|
|
2877
|
+
}, "getIntersectPoint"), Je = /* @__PURE__ */ f(function(e, t) {
|
|
2873
2878
|
let n = {
|
|
2874
2879
|
x: 0,
|
|
2875
2880
|
y: 0
|
|
2876
2881
|
};
|
|
2877
2882
|
n.x = t.x + t.width / 2, n.y = t.y + t.height / 2;
|
|
2878
|
-
let r =
|
|
2883
|
+
let r = qe(e, n);
|
|
2879
2884
|
return n.x = e.x + e.width / 2, n.y = e.y + e.height / 2, {
|
|
2880
2885
|
startPoint: r,
|
|
2881
|
-
endPoint:
|
|
2886
|
+
endPoint: qe(t, n)
|
|
2882
2887
|
};
|
|
2883
|
-
}, "getIntersectPoints"),
|
|
2884
|
-
let a = 0;
|
|
2888
|
+
}, "getIntersectPoints"), Ye = /* @__PURE__ */ f(function(e, t, n, r, i) {
|
|
2889
|
+
let a = r.db.getC4Type(), o = 0;
|
|
2885
2890
|
for (let e of t) {
|
|
2886
|
-
|
|
2887
|
-
let t = e.wrap &&
|
|
2888
|
-
|
|
2889
|
-
let
|
|
2890
|
-
|
|
2891
|
-
let s =
|
|
2892
|
-
e.
|
|
2891
|
+
o += 1;
|
|
2892
|
+
let t = e.wrap && $.wrap, r = He($);
|
|
2893
|
+
a === "C4Dynamic" && (e.label.text = o + ": " + e.label.text);
|
|
2894
|
+
let i = h(e.label.text, r);
|
|
2895
|
+
Ue("label", e, t, r, i), e.techn && e.techn.text !== "" && (i = h(e.techn.text, r), Ue("techn", e, t, r, i)), e.descr && e.descr.text !== "" && (i = h(e.descr.text, r), Ue("descr", e, t, r, i));
|
|
2896
|
+
let s = n(e.from), l = n(e.to);
|
|
2897
|
+
if (!s || !l) throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape`);
|
|
2898
|
+
let u = Je(s, l);
|
|
2899
|
+
if (!u.startPoint || !u.endPoint) throw Error(`Could not calculate intersection points for rel "${e.from}" -> "${e.to}"`);
|
|
2900
|
+
e.startPoint = u.startPoint, e.endPoint = u.endPoint;
|
|
2893
2901
|
}
|
|
2894
|
-
|
|
2902
|
+
Q.drawRels(e, t, $, i);
|
|
2895
2903
|
}, "drawRels");
|
|
2896
|
-
function
|
|
2897
|
-
let a = new
|
|
2898
|
-
|
|
2899
|
-
for (let [
|
|
2904
|
+
async function Xe(e, t, n, r, i) {
|
|
2905
|
+
let a = i.db, o = new ze(i);
|
|
2906
|
+
o.data.widthLimit = n.data.widthLimit / Math.min(Re, r.length);
|
|
2907
|
+
for (let [s, l] of r.entries()) {
|
|
2900
2908
|
let r = 0;
|
|
2901
|
-
|
|
2909
|
+
l.image = {
|
|
2902
2910
|
width: 0,
|
|
2903
2911
|
height: 0,
|
|
2904
2912
|
Y: 0
|
|
2905
|
-
},
|
|
2906
|
-
let
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2913
|
+
}, l.sprite && (l.image.width = 48, l.image.height = 48, l.image.Y = r, r = l.image.Y + l.image.height);
|
|
2914
|
+
let u = l.wrap && $.wrap, d = Ve($);
|
|
2915
|
+
d.fontSize += 2, d.fontWeight = "bold";
|
|
2916
|
+
let f = Ue("label", l, u, d, o.data.widthLimit);
|
|
2917
|
+
if (f.Y = r + 8, r = f.Y + f.height, l.type && l.type.text !== "") {
|
|
2918
|
+
l.type.text = "[" + l.type.text + "]";
|
|
2919
|
+
let e = Ue("type", l, u, Ve($), o.data.widthLimit);
|
|
2920
|
+
e.Y = r + 5, r = e.Y + e.height;
|
|
2921
|
+
}
|
|
2922
|
+
if (l.descr && l.descr.text !== "") {
|
|
2923
|
+
let e = Ve($);
|
|
2924
|
+
e.fontSize -= 2;
|
|
2925
|
+
let t = Ue("descr", l, u, e, o.data.widthLimit);
|
|
2926
|
+
t.Y = r + 20, r = t.Y + t.height;
|
|
2910
2927
|
}
|
|
2911
|
-
if (
|
|
2912
|
-
let e = n.data.startx +
|
|
2913
|
-
|
|
2928
|
+
if (s == 0 || s % Re === 0) {
|
|
2929
|
+
let e = n.data.startx + $.diagramMarginX, t = n.data.stopy + $.diagramMarginY + r;
|
|
2930
|
+
o.setData(e, e, t, t);
|
|
2914
2931
|
} else {
|
|
2915
|
-
let e =
|
|
2916
|
-
|
|
2932
|
+
let e = o.data.stopx === o.data.startx ? o.data.startx : o.data.stopx + $.diagramMarginX, t = o.data.starty;
|
|
2933
|
+
o.setData(e, e, t, t);
|
|
2917
2934
|
}
|
|
2918
|
-
|
|
2919
|
-
let
|
|
2920
|
-
|
|
2921
|
-
let
|
|
2922
|
-
|
|
2935
|
+
o.name = l.alias;
|
|
2936
|
+
let p = a.getC4ShapeArray(l.alias), m = a.getC4ShapeKeys(l.alias);
|
|
2937
|
+
m.length > 0 && await Ge(o, e, p, m), t = l.alias;
|
|
2938
|
+
let h = a.getBoundaries(t);
|
|
2939
|
+
h.length > 0 && await Xe(e, t, o, h, i), l.alias !== "global" && We(e, l, o), n.data.stopy = Math.max(o.data.stopy + $.c4ShapeMargin, n.data.stopy), n.data.stopx = Math.max(o.data.stopx + $.c4ShapeMargin, n.data.stopx), Fe = Math.max(Fe, n.data.stopx), Ie = Math.max(Ie, n.data.stopy);
|
|
2923
2940
|
}
|
|
2924
2941
|
}
|
|
2925
|
-
|
|
2926
|
-
var
|
|
2927
|
-
drawPersonOrSystemArray:
|
|
2928
|
-
drawBoundary:
|
|
2929
|
-
setConf:
|
|
2930
|
-
draw: /* @__PURE__ */
|
|
2931
|
-
|
|
2932
|
-
let
|
|
2933
|
-
|
|
2934
|
-
let d =
|
|
2935
|
-
|
|
2936
|
-
let
|
|
2937
|
-
|
|
2938
|
-
let
|
|
2939
|
-
|
|
2940
|
-
let h =
|
|
2941
|
-
|
|
2942
|
-
let
|
|
2943
|
-
|
|
2944
|
-
let y = h ? 60 : 0;
|
|
2945
|
-
p.attr("viewBox", g.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + y) + " " + v + " " + (_ + y)), e.debug("models:", g);
|
|
2942
|
+
f(Xe, "drawInsideBoundary");
|
|
2943
|
+
var Ze = {
|
|
2944
|
+
drawPersonOrSystemArray: Ge,
|
|
2945
|
+
drawBoundary: We,
|
|
2946
|
+
setConf: Be,
|
|
2947
|
+
draw: /* @__PURE__ */ f(async function(t, n, r, a) {
|
|
2948
|
+
$ = b("c4");
|
|
2949
|
+
let o = l().securityLevel, { root: s } = be(n, o), u = a.db;
|
|
2950
|
+
u.setWrap($.wrap), Le = u.getC4ShapeInRow(), Re = u.getC4BoundaryInRow(), e.debug(`C:${JSON.stringify($, null, 2)}`);
|
|
2951
|
+
let d = s.select(`[id="${n}"]`);
|
|
2952
|
+
Q.insertComputerIcon(d, n), Q.insertDatabaseIcon(d, n), Q.insertClockIcon(d, n);
|
|
2953
|
+
let f = new ze(a);
|
|
2954
|
+
f.setData($.diagramMarginX, $.diagramMarginX, $.diagramMarginY, $.diagramMarginY), f.data.widthLimit = screen.availWidth, Fe = $.diagramMarginX, Ie = $.diagramMarginY;
|
|
2955
|
+
let p = u.getTitle();
|
|
2956
|
+
await Xe(d, "", f, u.getBoundaries(""), a), Q.insertArrowHead(d, n), Q.insertArrowEnd(d, n), Q.insertArrowCrossHead(d, n), Q.insertArrowFilledHead(d, n), Ye(d, u.getRels(), u.getC4Shape, a, n), f.data.stopx = Fe, f.data.stopy = Ie;
|
|
2957
|
+
let m = f.data, h = m.startx, g = m.starty, _ = Ie - g + 2 * $.diagramMarginY, v = Fe - h, y = v + 2 * $.diagramMarginX;
|
|
2958
|
+
p && d.append("text").text(p).attr("x", v / 2 - 4 * $.diagramMarginX).attr("y", g + $.diagramMarginY), i(d, _, y, $.useMaxWidth);
|
|
2959
|
+
let x = p ? 60 : 0;
|
|
2960
|
+
d.attr("viewBox", h - $.diagramMarginX + " -" + ($.diagramMarginY + x) + " " + y + " " + (_ + x)), e.debug("models:", m);
|
|
2946
2961
|
}, "draw")
|
|
2947
|
-
},
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2962
|
+
}, Qe = /* @__PURE__ */ f(() => {
|
|
2963
|
+
let e = l().c4 ?? {}, t = new CSSStyleSheet();
|
|
2964
|
+
for (let n of Ae) {
|
|
2965
|
+
let r = t.cssRules[t.insertRule(`.c4-shape.c4-${n} .label {}`, t.cssRules.length)], i = e[`${n}FontFamily`], a = e[`${n}FontSize`], o = e[`${n}FontWeight`];
|
|
2966
|
+
i && r.style.setProperty("font-family", i), a && r.style.setProperty("font-size", typeof a == "number" ? `${a}px` : a), o && r.style.setProperty("font-weight", String(o));
|
|
2967
|
+
}
|
|
2968
|
+
return [...t.cssRules].filter((e) => e.style.length > 0).map((e) => ` ${e.cssText}`).join("\n");
|
|
2969
|
+
}, "elementFontStyles"), $e = {
|
|
2970
|
+
parser: y,
|
|
2971
|
+
db: ce,
|
|
2972
|
+
renderer: Ze,
|
|
2973
|
+
styles: /* @__PURE__ */ f((e) => `.person {
|
|
2952
2974
|
stroke: ${e.personBorder};
|
|
2953
2975
|
fill: ${e.personBkg};
|
|
2954
2976
|
}
|
|
2977
|
+
${Qe()}
|
|
2978
|
+
|
|
2979
|
+
/* The element font colour is set inline per element (default white); the
|
|
2980
|
+
label text takes it via currentColor. */
|
|
2981
|
+
.c4-shape .label,
|
|
2982
|
+
.c4-shape .label text {
|
|
2983
|
+
color: inherit;
|
|
2984
|
+
fill: currentColor;
|
|
2985
|
+
}
|
|
2986
|
+
/* Structurizr typography: bold name, smaller stereotype/type and description lines. */
|
|
2987
|
+
.c4-shape .label .c4-name {
|
|
2988
|
+
font-weight: bold;
|
|
2989
|
+
}
|
|
2990
|
+
.c4-shape .label .c4-type {
|
|
2991
|
+
font-size: 0.75em;
|
|
2992
|
+
}
|
|
2993
|
+
.c4-shape .label .c4-descr {
|
|
2994
|
+
font-size: 0.82em;
|
|
2995
|
+
}
|
|
2996
|
+
.c4-shape .basic,
|
|
2997
|
+
.c4-shape rect,
|
|
2998
|
+
.c4-shape path,
|
|
2999
|
+
.c4-shape circle,
|
|
3000
|
+
.c4-shape ellipse,
|
|
3001
|
+
.c4-shape line {
|
|
3002
|
+
stroke-width: 2px;
|
|
3003
|
+
}
|
|
2955
3004
|
`, "getStyles"),
|
|
2956
|
-
init: /* @__PURE__ */
|
|
2957
|
-
|
|
3005
|
+
init: /* @__PURE__ */ f(({ c4: e, wrap: t }) => {
|
|
3006
|
+
Ze.setConf(e), ce.setWrap(t);
|
|
2958
3007
|
}, "init")
|
|
2959
3008
|
};
|
|
2960
3009
|
//#endregion
|
|
2961
|
-
export {
|
|
3010
|
+
export { $e as diagram };
|