@sme.up/ketchup2 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arc-CqG9Hxdf.cjs +1 -0
- package/dist/arc-Klgb378K.js +80 -0
- package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
- package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
- package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +36 -0
- package/dist/architectureDiagram-Q4EWVU46-CnzjcVBn.js +4057 -0
- package/dist/array-D8NZ46Ht.js +6 -0
- package/dist/array-Dxz0O8Q3.cjs +1 -0
- package/dist/assets/buttonListAssets.d.ts +8 -0
- package/dist/assets/buttonListAssets.d.ts.map +1 -1
- package/dist/assets/imageListAssets.d.ts +3 -1
- package/dist/assets/imageListAssets.d.ts.map +1 -1
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/button/button-types.d.ts +4 -0
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
- package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
- package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
- package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
- package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts +11 -4
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/image/image.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
- package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/list/list-types.d.ts +0 -1
- package/dist/basic-components/list/list-types.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/blockDiagram-DXYQGD6D-B0NvV2Ph.js +3033 -0
- package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +132 -0
- package/dist/c4Diagram-AHTNJAMY-DPijI3_r.js +2961 -0
- package/dist/c4Diagram-AHTNJAMY-Dgwv-e5O.cjs +10 -0
- package/dist/channel-CRWct3-i.js +5 -0
- package/dist/channel-DkTvdPpU.cjs +1 -0
- package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
- package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
- package/dist/chunk-336JU56O-DQhIGd25.cjs +1 -0
- package/dist/chunk-336JU56O-DkZvWJVe.js +49 -0
- package/dist/chunk-426QAEUC-CDXJVpQr.js +9 -0
- package/dist/chunk-426QAEUC-CqN26l3E.cjs +1 -0
- package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
- package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
- package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +206 -0
- package/dist/chunk-4TB4RGXK-D2LRzcEP.js +3253 -0
- package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
- package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
- package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +62 -0
- package/dist/chunk-5FUZZQ4R-D3C0F0Tr.js +3638 -0
- package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +2 -0
- package/dist/chunk-5PVQY5BW-Dn8n6moB.js +1299 -0
- package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
- package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
- package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
- package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
- package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
- package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
- package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
- package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
- package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
- package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
- package/dist/chunk-D-IZpNpi.cjs +1 -0
- package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +1 -0
- package/dist/chunk-EDXVE4YY-CGNVB686.js +25 -0
- package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +10 -0
- package/dist/chunk-ENJZ2VHE-CZ7BvL2h.js +560 -0
- package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
- package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
- package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
- package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
- package/dist/chunk-ICPOFSXX-fQJ5ufMR.js +3320 -0
- package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +122 -0
- package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
- package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
- package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
- package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
- package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
- package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
- package/dist/chunk-OYMX7WX6-CrK-lehh.cjs +231 -0
- package/dist/chunk-OYMX7WX6-DJkGVCqi.js +2014 -0
- package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
- package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
- package/dist/chunk-U2HBQHQK-CJ77uizk.cjs +70 -0
- package/dist/chunk-U2HBQHQK-Ceyeq0IV.js +1879 -0
- package/dist/chunk-WQLz0Won.js +20 -0
- package/dist/chunk-X2U36JSP-CtXjVqek.cjs +1 -0
- package/dist/chunk-X2U36JSP-VxRY65ea.js +67 -0
- package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
- package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
- package/dist/chunk-YZCP3GAM-D6P3SWmL.js +60 -0
- package/dist/chunk-YZCP3GAM-qxaNo0r8.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-BfSqZnT4.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-X2jolXSO.js +32 -0
- package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
- package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
- package/dist/clone-CQQwPjME.cjs +1 -0
- package/dist/clone-Dwbh_blD.js +8 -0
- package/dist/components/drawer/drawer-types.d.ts +4 -0
- package/dist/components/drawer/drawer-types.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
- package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
- package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
- package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
- package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
- package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
- package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
- package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
- package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
- package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
- package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-context.d.ts +5 -2
- package/dist/components/image-list/image-list-context.d.ts.map +1 -1
- package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
- package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
- package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-state-context.d.ts +5 -0
- package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-types.d.ts +45 -2
- package/dist/components/image-list/image-list-types.d.ts.map +1 -1
- package/dist/components/image-list/image-list-utils.d.ts +24 -1
- package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
- package/dist/components/image-list/image-list.d.ts +1 -1
- package/dist/components/image-list/image-list.d.ts.map +1 -1
- package/dist/components/planner/planner-assets.d.ts +1 -1
- package/dist/components/planner/planner-assets.d.ts.map +1 -1
- package/dist/components/planner/planner-types.d.ts +1 -1
- package/dist/components/planner/planner-types.d.ts.map +1 -1
- package/dist/components/planner/planner-utils.d.ts +6 -5
- package/dist/components/planner/planner-utils.d.ts.map +1 -1
- package/dist/components/planner/planner.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
- package/dist/components/scaffold/scaffold-types.d.ts +1 -0
- package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline-types.d.ts +6 -2
- package/dist/components/timeline/timeline-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
- package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
- package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
- package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
- package/dist/dagre-BcwvU6ZF.cjs +1 -0
- package/dist/dagre-D17h-Z-U.js +1606 -0
- package/dist/dagre-KV5264BT-BnEKAAAn.js +293 -0
- package/dist/dagre-KV5264BT-DRbiLA37.cjs +4 -0
- package/dist/defaultLocale-Dcyuaxxg.js +201 -0
- package/dist/defaultLocale-DtzyZW63.cjs +1 -0
- package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +101 -0
- package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +10 -0
- package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +24 -0
- package/dist/diagram-G4DWMVQ6-iYV58Drq.js +524 -0
- package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +43 -0
- package/dist/diagram-MMDJMWI5-DUpEI5ug.js +213 -0
- package/dist/diagram-TYMM5635-BH_-vSv9.cjs +24 -0
- package/dist/diagram-TYMM5635-DHHPZ5ZJ.js +133 -0
- package/dist/dist-BgvMZbfo.cjs +1 -0
- package/dist/dist-DL30VIBI.js +60 -0
- package/dist/erDiagram-SMLLAGMA-C8FM7wbJ.js +1700 -0
- package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +85 -0
- package/dist/flatten-BE1bWL-7.js +40 -0
- package/dist/flatten-DxvYSoR8.cjs +1 -0
- package/dist/flowDiagram-DWJPFMVM-BGtX2gw0.js +4145 -0
- package/dist/flowDiagram-DWJPFMVM-DWuKiJeo.cjs +162 -0
- package/dist/functional-components/action/action-types.d.ts +32 -2
- package/dist/functional-components/action/action-types.d.ts.map +1 -1
- package/dist/functional-components/action/action-utils.d.ts +13 -1
- package/dist/functional-components/action/action-utils.d.ts.map +1 -1
- package/dist/functional-components/action/action.d.ts.map +1 -1
- package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
- package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
- package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
- package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
- package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
- package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
- package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
- package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +292 -0
- package/dist/ganttDiagram-T4ZO3ILL-PY1BUp5b.js +3077 -0
- package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
- package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
- package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +106 -0
- package/dist/gitGraphDiagram-UUTBAWPF-CDIW9-sX.js +728 -0
- package/dist/graphlib-CdgJ32J_.cjs +1 -0
- package/dist/graphlib-DbQkSsC8.js +373 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useGanttMath.d.ts +1 -1
- package/dist/hooks/useGanttMath.d.ts.map +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/identity-KQSjemTb.cjs +1 -0
- package/dist/identity-g0dsMjx7.js +393 -0
- package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
- package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
- package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +19 -0
- package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +2 -0
- package/dist/init-B2MubQrj.cjs +1 -0
- package/dist/init-BO60vQHJ.js +15 -0
- package/dist/isEmpty-CA3kJuev.cjs +1 -0
- package/dist/isEmpty-RwX-oIQS.js +35 -0
- package/dist/ishikawaDiagram-UXIWVN3A-BblrAmns.js +718 -0
- package/dist/ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs +70 -0
- package/dist/journeyDiagram-VCZTEJTY-CCOZ1XFK.js +883 -0
- package/dist/journeyDiagram-VCZTEJTY-UwcVOFtb.cjs +139 -0
- package/dist/kanban-definition-6JOO6SKY-BWwfbdd6.js +973 -0
- package/dist/kanban-definition-6JOO6SKY-Coxpi43B.cjs +89 -0
- package/dist/katex-Du5WiYIy.js +22000 -0
- package/dist/katex-SAH56fvc.cjs +257 -0
- package/dist/ketchup2.cjs.js +197 -1
- package/dist/ketchup2.css +2 -1
- package/dist/ketchup2.es.js +132798 -52
- package/dist/line-C7oijaT4.cjs +1 -0
- package/dist/line-CrxZdHmO.js +34 -0
- package/dist/linear-BsPvNLJv.js +289 -0
- package/dist/linear-CxHa1DsM.cjs +1 -0
- package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
- package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
- package/dist/mindmap-definition-QFDTVHPH--xULjpFZ.cjs +96 -0
- package/dist/mindmap-definition-QFDTVHPH-dYQoMeA6.js +978 -0
- package/dist/ordinal-C-VoL0XF.js +65 -0
- package/dist/ordinal-Civr0hZL.cjs +1 -0
- package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
- package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
- package/dist/path-Civic7PQ.cjs +1 -0
- package/dist/path-CvfwEr8y.js +85 -0
- package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
- package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
- package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +30 -0
- package/dist/pieDiagram-DEJITSTG-Dj5pX4fC.js +165 -0
- package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +7 -0
- package/dist/quadrantDiagram-34T5L4WZ-BKNOJBiR.js +1974 -0
- package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
- package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
- package/dist/reduce-B7WW9rkU.cjs +1 -0
- package/dist/reduce-DNnkcf3M.js +532 -0
- package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +84 -0
- package/dist/requirementDiagram-MS252O5E-r3eZu57d.js +2221 -0
- package/dist/rough.esm-1mqTSjCt.js +1352 -0
- package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
- package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +10 -0
- package/dist/sankeyDiagram-XADWPNL6-ErTVVewH.js +920 -0
- package/dist/sequenceDiagram-FGHM5R23-BmqbzzHY.js +4157 -0
- package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +157 -0
- package/dist/src-BQiFKP24.js +2146 -0
- package/dist/src-DFxq-N5I.cjs +1 -0
- package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +217 -0
- package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +1 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +27 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
- package/dist/timeline-definition-GMOUNBTQ-BeTHmikc.cjs +120 -0
- package/dist/timeline-definition-GMOUNBTQ-DgcI7XnE.js +1068 -0
- package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
- package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
- package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
- package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
- package/dist/types/data-structures.d.ts +9 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -0
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/utils/style.d.ts +13 -2
- package/dist/utils/style.d.ts.map +1 -1
- package/dist/utils/translation.d.ts.map +1 -1
- package/dist/v4-6yr83DbP.cjs +1 -0
- package/dist/v4-BR71w5_q.js +33 -0
- package/dist/vennDiagram-DHZGUBPP-7tx3VVDU.js +1858 -0
- package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +34 -0
- package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
- package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
- package/dist/wardleyDiagram-NUSXRM2D-DGKU7A2U.js +578 -0
- package/dist/wardleyDiagram-NUSXRM2D-DY51LHBa.cjs +20 -0
- package/dist/xychartDiagram-5P7HB3ND--7RYyckP.js +2044 -0
- package/dist/xychartDiagram-5P7HB3ND-Cj0HUNew.cjs +7 -0
- package/package.json +31 -31
- package/dist/_basePickBy-CPekwY_Z.js +0 -151
- package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
- package/dist/_baseUniq-CAhfZr5S.js +0 -614
- package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
- package/dist/arc-CnmUepZA.cjs +0 -1
- package/dist/arc-Md6Ds0JZ.js +0 -83
- package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
- package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
- package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
- package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
- package/dist/channel-BGeX_R6w.cjs +0 -1
- package/dist/channel-lqmaHMPZ.js +0 -5
- package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
- package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
- package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
- package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
- package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
- package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
- package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
- package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
- package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
- package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
- package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
- package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
- package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
- package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
- package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
- package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
- package/dist/clone-B_MxWhab.js +0 -8
- package/dist/clone-D6gFD6F-.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
- package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
- package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
- package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
- package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
- package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
- package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
- package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
- package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
- package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
- package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
- package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
- package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
- package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
- package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
- package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
- package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
- package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
- package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
- package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
- package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
- package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
- package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
- package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
- package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
- package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
- package/dist/graph-BBPk5jyk.cjs +0 -1
- package/dist/graph-h6vsxKyr.js +0 -247
- package/dist/hooks/usePlannerSync.d.ts +0 -11
- package/dist/hooks/usePlannerSync.d.ts.map +0 -1
- package/dist/index-CYQM-t1d.cjs +0 -390
- package/dist/index-FiV1b00w.js +0 -133122
- package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
- package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
- package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
- package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
- package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
- package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
- package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
- package/dist/katex-C2g-EhzP.cjs +0 -261
- package/dist/katex-CUSbq6rG.js +0 -11692
- package/dist/layout-6z7-eUnZ.js +0 -1335
- package/dist/layout-DbcrMh5B.cjs +0 -1
- package/dist/linear-BKevCbhh.js +0 -259
- package/dist/linear-C7uVEtWW.cjs +0 -1
- package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
- package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
- package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
- package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
- package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
- package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
- package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
- package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
- package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
- package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
- package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
- package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
- package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
- package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
- package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
- package/dist/utils/wbs-utils.d.ts +0 -143
- package/dist/utils/wbs-utils.d.ts.map +0 -1
- package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
- /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
- /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
- /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h as e, p as t } from "./src-BQiFKP24.js";
|
|
2
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.mjs
|
|
3
|
+
var n = /* @__PURE__ */ e((e, n) => {
|
|
4
|
+
let r;
|
|
5
|
+
return n === "sandbox" && (r = t("#i" + e)), t(n === "sandbox" ? r.nodes()[0].contentDocument.body : "body").select(`[id="${e}"]`);
|
|
6
|
+
}, "getDiagramElement");
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./src-DFxq-N5I.cjs`);var t=e.h((t,n)=>{let r;return n===`sandbox`&&(r=e.p(`#i`+t)),(n===`sandbox`?e.p(r.nodes()[0].contentDocument.body):e.p(`body`)).select(`[id="${t}"]`)},`getDiagramElement`);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./chunk-ZZ45TVLE-BfSqZnT4.cjs`),i=require(`./chunk-X2U36JSP-CtXjVqek.cjs`),a=require(`./chunk-U2HBQHQK-CJ77uizk.cjs`),o=require(`./rough.esm-BLKo1fIQ.cjs`);var s=t.h(async(i,o,s)=>{let c,l=o.useHtmlLabels||e.h(e.b()?.htmlLabels);c=s||`node default`;let u=i.insert(`g`).attr(`class`,c).attr(`id`,o.domId||o.id),d=u.insert(`g`).attr(`class`,`label`).attr(`style`,n.l(o.labelStyle)),f;f=o.label===void 0?``:typeof o.label==`string`?o.label:o.label[0];let p=!!o.icon||!!o.img,m=o.labelType===`markdown`,h=await a.n(d,e.L(n.i(f),e.b()),{useHtmlLabels:l,width:o.width||e.b().flowchart?.wrappingWidth,classes:m?`markdown-node-label`:``,style:o.labelStyle,addSvgBackground:p,markdown:m},e.b()),g=h.getBBox(),_=(o?.padding??0)/2;if(l){let e=h.children[0],n=t.p(h);await r.t(e,f),g=e.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}return l?d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`):d.attr(`transform`,`translate(0, `+-g.height/2+`)`),o.centerLabel&&d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`),d.insert(`rect`,`:first-child`),{shapeSvg:u,bbox:g,halfPadding:_,label:d}},`labelHelper`),c=t.h(async(r,i,o)=>{let s=o.useHtmlLabels??e.w(e.b()),c=r.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,e.L(n.i(i),e.b()),{useHtmlLabels:s,width:o.width||e.b()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=l.getBBox(),d=o.padding/2;if(e.w(e.b())){let e=l.children[0],n=t.p(l);u=e.getBoundingClientRect(),n.attr(`width`,u.width),n.attr(`height`,u.height)}return s?c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`):c.attr(`transform`,`translate(0, `+-u.height/2+`)`),o.centerLabel&&c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`),c.insert(`rect`,`:first-child`),{shapeSvg:r,bbox:u,halfPadding:d,label:c}},`insertLabel`),l=t.h((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),u=t.h((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function d(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}t.h(d,`createPathFromPoints`);function f(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}t.h(f,`generateFullSineWavePoints`);function p(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}t.h(p,`generateCirclePoints`);function m(e){let n=Array.from(e.childNodes).filter(e=>e.tagName===`path`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),i=n.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);r.setAttribute(`d`,i);let a=n.find(e=>e.getAttribute(`fill`)!==`none`),o=n.find(e=>e.getAttribute(`stroke`)!==`none`),s=t.h((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(a){let e={fill:s(a,`fill`),"fill-opacity":s(a,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}if(o){let e={stroke:s(o,`stroke`),"stroke-width":s(o,`stroke-width`)??`1`,"stroke-opacity":s(o,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return c.appendChild(r),c}t.h(m,`mergePaths`);var h=t.h((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`),g=t.h(async(t,n,r,i=!1,o=!1)=>{let s=n||``;typeof s==`object`&&(s=s[0]);let c=e.b(),l=e.w(c);return await a.n(t,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`),_=t.h((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),v=t.h(async(n,s)=>{t.g.info(`Creating subgraph rect for `,s.id,s);let c=e.b(),{themeVariables:l,handDrawnSeed:u}=c,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:v,backgroundStyles:y}=i.i(s),b=n.insert(`g`).attr(`class`,`cluster `+s.cssClasses).attr(`id`,s.domId).attr(`data-look`,s.look),x=e.w(c),S=b.insert(`g`).attr(`class`,`cluster-label `),C;C=s.labelType===`markdown`?await a.n(S,s.label,{style:s.labelStyle,useHtmlLabels:x,isNode:!0,width:s.width}):await g(S,s.label,s.labelStyle||``,!1,!0);let w=C.getBBox();if(e.w(c)){let e=C.children[0],n=t.p(C);w=e.getBoundingClientRect(),n.attr(`width`,w.width),n.attr(`height`,w.height)}let T=s.width<=w.width+s.padding?w.width+s.padding:s.width;s.width<=w.width+s.padding?s.diff=(T-s.width)/2-s.padding:s.diff=-s.padding;let E=s.height,D=s.x-T/2,O=s.y-E/2;t.g.trace(`Data `,s,JSON.stringify(s));let k;if(s.look===`handDrawn`){let e=o.t.svg(b),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:3,seed:u}),r=e.path(_(D,O,T,E,0),n);k=b.insert(()=>(t.g.debug(`Rough node insert CXC`,r),r),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,v.join(`;`)),k.select(`path`).attr(`style`,y.join(`;`).replace(`fill`,`stroke`))}else k=b.insert(`rect`,`:first-child`),k.attr(`style`,m).attr(`rx`,s.rx).attr(`ry`,s.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=r.n(c);if(S.attr(`transform`,`translate(${s.x-w.width/2}, ${s.y-s.height/2+A})`),p){let e=S.select(`span`);e&&e.attr(`style`,p)}let j=k.node().getBBox();return s.offsetX=0,s.width=j.width,s.height=j.height,s.offsetY=w.height-s.padding/2,s.intersect=function(e){return h(s,e)},{cluster:b,labelBBox:w}},`rect`),y={rect:v,squareRect:v,roundedWithTitle:t.h(async(n,r)=>{let i=e.b(),{themeVariables:a,handDrawnSeed:s}=i,{altBackground:c,compositeBackground:l,compositeTitleBackground:u,nodeBorder:d}=a,f=n.insert(`g`).attr(`class`,r.cssClasses).attr(`id`,r.domId).attr(`data-id`,r.id).attr(`data-look`,r.look),p=f.insert(`g`,`:first-child`),m=f.insert(`g`).attr(`class`,`cluster-label`),v=f.append(`rect`),y=await g(m,r.label,r.labelStyle,void 0,!0),b=y.getBBox();if(e.w(i)){let e=y.children[0],n=t.p(y);b=e.getBoundingClientRect(),n.attr(`width`,b.width),n.attr(`height`,b.height)}let x=0*r.padding,S=x/2,C=(r.width<=b.width+r.padding?b.width+r.padding:r.width)+x;r.width<=b.width+r.padding?r.diff=(C-r.width)/2-r.padding:r.diff=-r.padding;let w=r.height+x,T=r.height+x-b.height-6,E=r.x-C/2,D=r.y-w/2;r.width=C;let O=r.y-r.height/2-S+b.height+2,k;if(r.look===`handDrawn`){let e=r.cssClasses.includes(`statediagram-cluster-alt`),t=o.t.svg(f),n=r.rx||r.ry?t.path(_(E,D,C,w,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:d,seed:s}):t.rectangle(E,D,C,w,{seed:s});k=f.insert(()=>n,`:first-child`);let i=t.rectangle(E,O,C,T,{fill:e?c:l,fillStyle:e?`hachure`:`solid`,stroke:d,seed:s});k=f.insert(()=>n,`:first-child`),v=f.insert(()=>i)}else k=p.insert(`rect`,`:first-child`),k.attr(`class`,`outer`).attr(`x`,E).attr(`y`,D).attr(`width`,C).attr(`height`,w).attr(`data-look`,r.look),v.attr(`class`,`inner`).attr(`x`,E).attr(`y`,O).attr(`width`,C).attr(`height`,T);return m.attr(`transform`,`translate(${r.x-b.width/2}, ${D+1-(e.w(i)?0:3)})`),r.height=k.node().getBBox().height,r.offsetX=0,r.offsetY=b.height-r.padding/2,r.labelBBox=b,r.intersect=function(e){return h(r,e)},{cluster:f,labelBBox:b}},`roundedWithTitle`),noteGroup:t.h((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return h(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:t.h((t,n)=>{let{themeVariables:r,handDrawnSeed:i}=e.b(),{nodeBorder:a}=r,s=t.insert(`g`).attr(`class`,n.cssClasses).attr(`id`,n.domId).attr(`data-look`,n.look),c=s.insert(`g`,`:first-child`),l=0*n.padding,u=n.width+l;n.diff=-n.padding;let d=n.height+l,f=n.x-u/2,p=n.y-d/2;n.width=u;let m;if(n.look===`handDrawn`){let e=o.t.svg(s).rectangle(f,p,u,d,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=s.insert(()=>e,`:first-child`)}else{m=c.insert(`rect`,`:first-child`);let e=`outer`;e=(n.look,`divider`),m.attr(`class`,e).attr(`x`,f).attr(`y`,p).attr(`width`,u).attr(`height`,d).attr(`data-look`,n.look)}return n.height=m.node().getBBox().height,n.offsetX=0,n.offsetY=0,n.intersect=function(e){return h(n,e)},{cluster:s,labelBBox:{}}},`divider`),kanbanSection:t.h(async(n,s)=>{t.g.info(`Creating subgraph rect for `,s.id,s);let c=e.b(),{themeVariables:l,handDrawnSeed:u}=c,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:g,backgroundStyles:v}=i.i(s),y=n.insert(`g`).attr(`class`,`cluster `+s.cssClasses).attr(`id`,s.domId).attr(`data-look`,s.look),b=e.w(c),x=y.insert(`g`).attr(`class`,`cluster-label `),S=await a.n(x,s.label,{style:s.labelStyle,useHtmlLabels:b,isNode:!0,width:s.width}),C=S.getBBox();if(e.w(c)){let e=S.children[0],n=t.p(S);C=e.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=s.width<=C.width+s.padding?C.width+s.padding:s.width;s.width<=C.width+s.padding?s.diff=(w-s.width)/2-s.padding:s.diff=-s.padding;let T=s.height,E=s.x-w/2,D=s.y-T/2;t.g.trace(`Data `,s,JSON.stringify(s));let O;if(s.look===`handDrawn`){let e=o.t.svg(y),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:4,seed:u}),r=e.path(_(E,D,w,T,s.rx),n);O=y.insert(()=>(t.g.debug(`Rough node insert CXC`,r),r),`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),O.select(`path`).attr(`style`,v.join(`;`).replace(`fill`,`stroke`))}else O=y.insert(`rect`,`:first-child`),O.attr(`style`,m).attr(`rx`,s.rx).attr(`ry`,s.ry).attr(`x`,E).attr(`y`,D).attr(`width`,w).attr(`height`,T);let{subGraphTitleTopMargin:k}=r.n(c);if(x.attr(`transform`,`translate(${s.x-C.width/2}, ${s.y-s.height/2+k})`),p){let e=x.select(`span`);e&&e.attr(`style`,p)}let A=O.node().getBBox();return s.offsetX=0,s.width=A.width,s.height=A.height,s.offsetY=C.height-s.padding/2,s.intersect=function(e){return h(s,e)},{cluster:y,labelBBox:C}},`kanbanSection`)},b=new Map,x=t.h(async(e,t)=>{let n=await y[t.shape||`rect`](e,t);return b.set(t.id,n),n},`insertCluster`),S=t.h(()=>{b=new Map},`clear`);function C(e,t){return e.intersect(t)}t.h(C,`intersectNode`);var w=C;function T(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}t.h(T,`intersectEllipse`);var E=T;function D(e,t,n){return E(e,t,t,n)}t.h(D,`intersectCircle`);var O=D;function k(e,t,n,r){{let i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=i*n.x+a*n.y+o,c=i*r.x+a*r.y+o,l=1e-6;if(s!==0&&c!==0&&A(s,c))return;let u=r.y-n.y,d=n.x-r.x,f=r.x*n.y-n.x*r.y,p=u*e.x+d*e.y+f,m=u*t.x+d*t.y+f;if(Math.abs(p)<l&&Math.abs(m)<l&&A(p,m))return;let h=i*d-u*a;if(h===0)return;let g=Math.abs(h/2),_=a*f-d*o,v=_<0?(_-g)/h:(_+g)/h;return _=u*o-i*f,{x:v,y:_<0?(_-g)/h:(_+g)/h}}}t.h(k,`intersectLine`);function A(e,t){return e*t>0}t.h(A,`sameSign`);var j=k;function M(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=j(e,n,{x:c+i.x,y:l+i.y},{x:c+o.x,y:l+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}t.h(M,`intersectPolygon`);var N={node:w,circle:O,ellipse:E,polygon:M,rect:h};function P(e,r){let{labelStyles:a}=i.i(r);r.labelStyle=a;let s=u(r),c=s;s||(c=`anchor`);let d=e.insert(`g`).attr(`class`,c).attr(`id`,r.domId||r.id),{cssStyles:f}=r,p=o.t.svg(d),m=i.a(r,{fill:`black`,stroke:`none`,fillStyle:`solid`});r.look!==`handDrawn`&&(m.roughness=0);let h=p.circle(0,0,2,m),g=d.insert(()=>h,`:first-child`);return g.attr(`class`,`anchor`).attr(`style`,n.l(f)),l(r,g),r.intersect=function(e){return t.g.info(`Circle intersect`,r,1,e),N.circle(r,1,e)},d}t.h(P,`anchor`);function F(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}t.h(F,`generateArcPoints`);function I(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}t.h(I,`calculateArcSagitta`);async function L(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r;let c=n.padding??0,f=n.look===`neo`?16:c,p=n.look===`neo`?12:c,m=t.h(e=>e+p,`calcTotalHeight`),h=t.h(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:g,bbox:_}=await s(e,n,u(n)),v=m(n?.height?n?.height:_.height),[y,b]=h(v),x=I(v,y,b),S=(n?.width?n?.width:_.width)+f*2+x-x,C=v,{cssStyles:w}=n,T=[{x:S/2,y:-C/2},{x:-S/2,y:-C/2},...F(-S/2,-C/2,-S/2,C/2,y,b,!1),{x:S/2,y:C/2},...F(S/2,C/2,S/2,-C/2,y,b,!0)],E=o.t.svg(g),D=i.a(n,{});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=d(T),k=E.path(O,D),A=g.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),w&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,w),a&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,a),A.attr(`transform`,`translate(${y/2}, 0)`),l(n,A),n.intersect=function(e){return N.polygon(n,T,e)},g}t.h(L,`bowTieRect`);function R(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}t.h(R,`insertPolygonShape`);var z=12;async function ee(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?28:a,f=t.look===`neo`?24:a,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.width??m.width)+(t.look===`neo`?c*2:c+z),g=(t?.height??m.height)+(t.look===`neo`?f*2:f),_=h,v=-g,y=[{x:0+z,y:v},{x:_,y:v},{x:_,y:0},{x:0,y:0},{x:0,y:v+z},{x:0+z,y:v}],b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=d(y),a=e.path(r,n);b=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-h/2}, ${g/2})`),x&&b.attr(`style`,x)}else b=R(p,h,g,y);return r&&b.attr(`style`,r),l(t,b),t.intersect=function(e){return N.polygon(t,y,e)},p}t.h(ee,`card`);function B(e,t){let{nodeStyles:n}=i.i(t);t.label=``;let r=e.insert(`g`).attr(`class`,u(t)).attr(`id`,t.domId??t.id),{cssStyles:a}=t,s=Math.max(28,t.width??0),c=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=o.t.svg(r),f=i.a(t,{});t.look!==`handDrawn`&&(f.roughness=0,f.fillStyle=`solid`);let p=d(c),m=l.path(p,f),h=r.insert(()=>m,`:first-child`);return a&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,a),n&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return N.polygon(t,c,e)},r}t.h(B,`choice`);async function V(e,r,a){let{labelStyles:c,nodeStyles:d}=i.i(r);r.labelStyle=c;let{shapeSvg:f,bbox:p,halfPadding:m}=await s(e,r,u(r)),h=a?.padding??m,g=r.look===`neo`?p.width/2+32:p.width/2+h,_,{cssStyles:v}=r;if(r.look===`handDrawn`){let e=o.t.svg(f),t=i.a(r,{}),a=e.circle(0,0,g*2,t);_=f.insert(()=>a,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,n.l(v))}else _=f.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,d).attr(`r`,g).attr(`cx`,0).attr(`cy`,0);return l(r,_),r.calcIntersect=function(e,t){let n=e.width/2;return N.circle(e,n,t)},r.intersect=function(e){return t.g.info(`Circle intersect`,r,g,e),N.circle(r,g,e)},f}t.h(V,`circle`);function H(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y}
|
|
2
|
+
M ${i.x},${i.y} L ${o.x},${o.y}`}t.h(H,`createLine`);function U(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r,n.label=``;let s=e.insert(`g`).attr(`class`,u(n)).attr(`id`,n.domId??n.id),c=Math.max(30,n?.width??0),{cssStyles:d}=n,f=o.t.svg(s),p=i.a(n,{});n.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=f.circle(0,0,c*2,p),h=H(c),g=f.path(h,p),_=s.insert(()=>m,`:first-child`);return _.insert(()=>g),_.attr(`class`,`outer-path`),d&&n.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,d),a&&n.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,a),l(n,_),n.intersect=function(e){return t.g.info(`crossedCircle intersect`,n,{radius:c,point:e}),N.circle(n,c,e)},s}t.h(U,`crossedCircle`);function W(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}t.h(W,`generateCirclePoints`);async function te(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=c.width+p,g=c.height+m,_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...W(h/2,-g/2,_,30,-90,0),{x:-h/2-_,y:_},...W(h/2+_*2,-_,_,20,-180,-270),...W(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:-g/2},...W(h/2,g/2,_,20,0,90)],b=[{x:h/2,y:-g/2-_},{x:-h/2,y:-g/2-_},...W(h/2,-g/2,_,20,-90,0),{x:-h/2-_,y:-_},...W(h/2+h*.1,-_,_,20,-180,-270),...W(h/2+h*.1,_,_,20,-90,-180),{x:-h/2-_,y:g/2},...W(h/2,g/2,_,20,0,90),{x:-h/2,y:g/2+_},{x:h/2,y:g/2+_}],x=o.t.svg(a),S=i.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=d(y).replace(`Z`,``),w=x.path(C,S),T=d(b),E=x.path(T,{...S}),D=a.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${_}, 0)`),f.attr(`transform`,`translate(${-h/2+_-(c.x-(c.left??0))},${-g/2+(t.padding??0)/2-(c.y-(c.top??0))})`),l(t,D),t.intersect=function(e){return N.polygon(t,b,e)},a}t.h(te,`curlyBraceLeft`);function G(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:a,y:l})}return o}t.h(G,`generateCirclePoints`);async function K(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=c.width+(t.look===`neo`?p*2:p),g=c.height+(t.look===`neo`?m*2:m),_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...G(h/2,-g/2,_,20,-90,0),{x:h/2+_,y:-_},...G(h/2+_*2,-_,_,20,-180,-270),...G(h/2+_*2,_,_,20,-90,-180),{x:h/2+_,y:g/2},...G(h/2,g/2,_,20,0,90)],b=[{x:-h/2,y:-g/2-_},{x:h/2,y:-g/2-_},...G(h/2,-g/2,_,20,-90,0),{x:h/2+_,y:-_},...G(h/2+_*2,-_,_,20,-180,-270),...G(h/2+_*2,_,_,20,-90,-180),{x:h/2+_,y:g/2},...G(h/2,g/2,_,20,0,90),{x:h/2,y:g/2+_},{x:-h/2,y:g/2+_}],x=o.t.svg(a),S=i.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=d(y).replace(`Z`,``),w=x.path(C,S),T=d(b),E=x.path(T,{...S}),D=a.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${-_}, 0)`),f.attr(`transform`,`translate(${-h/2+(t.padding??0)/2-(c.x-(c.left??0))},${-g/2+(t.padding??0)/2-(c.y-(c.top??0))})`),l(t,D),t.intersect=function(e){return N.polygon(t,b,e)},a}t.h(K,`curlyBraceRight`);function q(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}t.h(q,`generateCirclePoints`);async function ne(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=c.width+(t.look===`neo`?p*2:p),g=c.height+(t.look===`neo`?m*2:m),_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...q(h/2,-g/2,_,30,-90,0),{x:-h/2-_,y:_},...q(h/2+_*2,-_,_,20,-180,-270),...q(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:-g/2},...q(h/2,g/2,_,20,0,90)],b=[...q(-h/2+_+_/2,-g/2,_,20,-90,-180),{x:h/2-_/2,y:_},...q(-h/2-_/2,-_,_,20,0,90),...q(-h/2-_/2,_,_,20,-90,0),{x:h/2-_/2,y:-_},...q(-h/2+_+_/2,g/2,_,30,-180,-270)],x=[{x:h/2,y:-g/2-_},{x:-h/2,y:-g/2-_},...q(h/2,-g/2,_,20,-90,0),{x:-h/2-_,y:-_},...q(h/2+_*2,-_,_,20,-180,-270),...q(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:g/2},...q(h/2,g/2,_,20,0,90),{x:-h/2,y:g/2+_},{x:h/2-_-_/2,y:g/2+_},...q(-h/2+_+_/2,-g/2,_,20,-90,-180),{x:h/2-_/2,y:_},...q(-h/2-_/2,-_,_,20,0,90),...q(-h/2-_/2,_,_,20,-90,0),{x:h/2-_/2,y:-_},...q(-h/2+_+_/2,g/2,_,30,-180,-270)],S=o.t.svg(a),C=i.a(t,{fill:`none`});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=d(y).replace(`Z`,``),T=S.path(w,C),E=d(b).replace(`Z`,``),D=S.path(E,C),O=d(x),k=S.path(O,{...C}),A=a.insert(`g`,`:first-child`);return A.insert(()=>k,`:first-child`).attr(`stroke-opacity`,0),A.insert(()=>T,`:first-child`),A.insert(()=>D,`:first-child`),A.attr(`class`,`text`),v&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,r),A.attr(`transform`,`translate(${_-_/4}, 0)`),f.attr(`transform`,`translate(${-h/2+(t.padding??0)/2-(c.x-(c.left??0))},${-g/2+(t.padding??0)/2-(c.y-(c.top??0))})`),l(t,A),t.intersect=function(e){return N.polygon(t,x,e)},a}t.h(ne,`curlyBraces`);async function re(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,f=t.look===`neo`?12:a,{shapeSvg:m,bbox:h}=await s(e,t,u(t)),g=Math.max(20,(h.width+c*2)*1.25,t?.width??0),_=Math.max(5,h.height+f*2,t?.height??0),v=_/2,{cssStyles:y}=t,b=o.t.svg(m),x=i.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=g,C=_,w=S-v,T=C/4,E=[{x:w,y:0},{x:T,y:0},{x:0,y:C/2},{x:T,y:C},{x:w,y:C},...p(-w,-C/2,v,50,270,90)],D=d(E),O=b.path(D,x),k=m.insert(()=>O,`:first-child`);return k.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,r),k.attr(`transform`,`translate(${-g/2}, ${-_/2})`),l(t,k),t.intersect=function(e){return N.polygon(t,E,e)},m}t.h(re,`curvedTrapezoid`);var ie=t.h((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),ae=t.h((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),oe=t.h((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),se=8,ce=8;async function le(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let c=t.padding??0,d=t.look===`neo`?24:c,f=t.look===`neo`?24:c;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-f,t.width<ce&&(t.width=ce);let n=e/2/(2.5+e/50);t.height=(t.height??0)-d-n*3,t.height<se&&(t.height=se)}let{shapeSvg:p,bbox:m,label:h}=await s(e,t,u(t)),g=(t.width?t.width:m.width)+f,_=g/2,v=_/(2.5+g/50),y=(t.height?t.height:m.height)+d+v,b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=ae(0,0,g,y,_,v),r=oe(0,v,g,y,_,v),a=i.a(t,{}),s=e.path(n,a),c=e.path(r,i.a(t,{fill:`none`}));b=p.insert(()=>c,`:first-child`),b=p.insert(()=>s,`:first-child`),b.attr(`class`,`basic label-container`),x&&b.attr(`style`,x)}else{let e=ie(0,0,g,y,_,v);b=p.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,n.l(x)).attr(`style`,a)}return b.attr(`label-offset-y`,v),b.attr(`transform`,`translate(${-g/2}, ${-(y/2+v)})`),l(t,b),h.attr(`transform`,`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+(t.padding??0)/1.5-(m.y-(m.top??0))})`),t.intersect=function(e){let n=N.rect(t,e),r=n.x-(t.x??0);if(_!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-v)){let i=v*v*(1-r*r/(_*_));i>0&&(i=Math.sqrt(i)),i=v-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},p}t.h(le,`cylinder`);async function ue(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.look===`neo`?16:t.padding??0,c=t.look===`neo`?16:t.padding??0,{shapeSvg:d,bbox:f,label:p}=await s(e,t,u(t)),m=f.width+a,h=f.height+c,g=h*.2,_=-m/2,v=-h/2-g/2,{cssStyles:y}=t,b=o.t.svg(d),x=i.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:_,y:v+g},{x:-_,y:v+g},{x:-_,y:-v},{x:_,y:-v},{x:_,y:v},{x:-_,y:v},{x:-_,y:v+g}],C=b.polygon(S.map(e=>[e.x,e.y]),x),w=d.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),p.attr(`transform`,`translate(${_+(t.padding??0)/2-(f.x-(f.left??0))}, ${v+g+(t.padding??0)/2-(f.y-(f.top??0))})`),l(t,w),t.intersect=function(e){return N.rect(t,e)},d}t.h(ue,`dividedRectangle`);async function de(e,r){let{labelStyles:a,nodeStyles:c}=i.i(r),d=r.look===`neo`?12:5;r.labelStyle=a;let f=r.padding??0,p=r.look===`neo`?16:f,{shapeSvg:m,bbox:h}=await s(e,r,u(r)),g=(r?.width?r?.width/2:h.width/2)+(p??0),_=g-d,v,{cssStyles:y}=r;if(r.look===`handDrawn`){let e=o.t.svg(m),t=i.a(r,{roughness:.2,strokeWidth:2.5}),a=i.a(r,{roughness:.2,strokeWidth:1.5}),s=e.circle(0,0,g*2,t),c=e.circle(0,0,_*2,a);v=m.insert(`g`,`:first-child`),v.attr(`class`,n.l(r.cssClasses)).attr(`style`,n.l(y)),v.node()?.appendChild(s),v.node()?.appendChild(c)}else{v=m.insert(`g`,`:first-child`);let e=v.insert(`circle`,`:first-child`),t=v.insert(`circle`);v.attr(`class`,`basic label-container`).attr(`style`,c),e.attr(`class`,`outer-circle`).attr(`style`,c).attr(`r`,g).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,c).attr(`r`,_).attr(`cx`,0).attr(`cy`,0)}return l(r,v),r.intersect=function(e){return t.g.info(`DoubleCircle intersect`,r,g,e),N.circle(r,g,e)},m}t.h(de,`doublecircle`);function fe(e,n,{config:{themeVariables:r}}){let{labelStyles:a,nodeStyles:s}=i.i(n);n.label=``,n.labelStyle=a;let c=e.insert(`g`).attr(`class`,u(n)).attr(`id`,n.domId??n.id),{cssStyles:d}=n,f=o.t.svg(c),{nodeBorder:p}=r,m=i.a(n,{fillStyle:`solid`});n.look!==`handDrawn`&&(m.roughness=0);let h=f.circle(0,0,14,m),g=c.insert(()=>h,`:first-child`);return g.selectAll(`path`).attr(`style`,`fill: ${p} !important;`),d&&d.length>0&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,d),s&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,s),l(n,g),n.intersect=function(e){return t.g.info(`filledCircle intersect`,n,{radius:7,point:e}),N.circle(n,7,e)},c}t.h(fe,`filledCircle`);var pe=10,me=10;async function he(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r;let c=n.padding??0,f=n.look===`neo`?c*2:c;(n.width||n.height)&&(n.height=n?.height??0,n.height<pe&&(n.height=pe),n.width=(n?.width??0)-f-f/2,n.width<me&&(n.width=me));let{shapeSvg:p,bbox:m,label:h}=await s(e,n,u(n)),g=(n?.width?n?.width:m.width)+(f??0),_=n?.height?n?.height:g+m.height,v=_,y=[{x:0,y:-_},{x:v,y:-_},{x:v/2,y:0}],{cssStyles:b}=n,x=o.t.svg(p),S=i.a(n,{});n.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=d(y),w=x.path(C,S),T=p.insert(()=>w,`:first-child`).attr(`transform`,`translate(${-_/2}, ${_/2})`).attr(`class`,`outer-path`);return b&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,b),a&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,a),n.width=g,n.height=_,l(n,T),h.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))}, ${-_/2+(n.padding??0)/2+(m.y-(m.top??0))})`),n.intersect=function(e){return t.g.info(`Triangle intersect`,n,y,e),N.polygon(n,y,e)},p}t.h(he,`flippedTriangle`);function ge(e,t,{dir:n,config:{state:r,themeVariables:a}}){let{nodeStyles:s}=i.i(t);t.label=``;let c=e.insert(`g`).attr(`class`,u(t)).attr(`id`,t.domId??t.id),{cssStyles:d}=t,f=Math.max(70,t?.width??0),p=Math.max(10,t?.height??0);n===`LR`&&(f=Math.max(10,t?.width??0),p=Math.max(70,t?.height??0));let m=-1*f/2,h=-1*p/2,g=o.t.svg(c),_=i.a(t,{stroke:a.lineColor,fill:a.lineColor});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=g.rectangle(m,h,f,p,_),y=c.insert(()=>v,`:first-child`);d&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,d),s&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,s),l(t,y);let b=r?.padding??0;return t.width&&t.height&&(t.width+=b/2||0,t.height+=b/2||0),t.intersect=function(e){return N.rect(t,e)},c}t.h(ge,`forkJoin`);async function _e(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r;let c=n.look===`neo`?16:n.padding??0,f=n.look===`neo`?12:n.padding??0;(n.width||n.height)&&(n.height=(n?.height??0)-f*2,n.height<10&&(n.height=10),n.width=(n?.width??0)-c*2,n.width<15&&(n.width=15));let{shapeSvg:m,bbox:h}=await s(e,n,u(n)),g=(n?.width?n?.width:Math.max(15,h.width))+c*2,_=(n?.height?n?.height:Math.max(10,h.height))+f*2,v=_/2,{cssStyles:y}=n,b=o.t.svg(m),x=i.a(n,{});n.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:-g/2,y:-_/2},{x:g/2-v,y:-_/2},...p(-g/2+v,0,v,50,90,270),{x:g/2-v,y:_/2},{x:-g/2,y:_/2}],C=d(S),w=b.path(C,x),T=m.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),y&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,y),a&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,a),l(n,T),n.intersect=function(e){return t.g.info(`Pill intersect`,n,{radius:v,point:e}),N.polygon(n,S,e)},m}t.h(_e,`halfRoundedRectangle`);var ve=t.h((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`);async function ye(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t),a=t.look===`neo`?3.5:4;t.labelStyle=n;let c=t.padding??0,d=t.look===`neo`?70:c,f=t.look===`neo`?32:c;if(t.width||t.height){let e=(t.height??0)/a;t.width=(t?.width??0)-2*e-f,t.height=(t.height??0)-d}let{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.height?t?.height:m.height)+d,g=h/a,_=(t?.width?t?.width:m.width)+2*g+f,v=[{x:g,y:0},{x:_-g,y:0},{x:_,y:-h/2},{x:_-g,y:-h},{x:g,y:-h},{x:0,y:-h/2}],y,{cssStyles:b}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=ve(0,0,_,h,g),a=e.path(r,n);y=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-_/2}, ${h/2})`),b&&y.attr(`style`,b)}else y=R(p,_,h,v);return r&&y.attr(`style`,r),t.width=_,t.height=h,l(t,y),t.intersect=function(e){return N.polygon(t,v,e)},p}t.h(ye,`hexagon`);async function be(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.label=``,n.labelStyle=r;let{shapeSvg:c}=await s(e,n,u(n)),f=Math.max(30,n?.width??0),p=Math.max(30,n?.height??0),{cssStyles:m}=n,h=o.t.svg(c),g=i.a(n,{});n.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:0,y:0},{x:f,y:0},{x:0,y:p},{x:f,y:p}],v=d(_),y=h.path(v,g),b=c.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),m&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,m),a&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,a),b.attr(`transform`,`translate(${-f/2}, ${-p/2})`),l(n,b),n.intersect=function(e){return t.g.info(`Pill intersect`,n,{points:_}),N.polygon(n,_,e)},c}t.h(be,`hourglass`);async function xe(e,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,label:_}=await s(e,n,`icon-shape default`),v=n.pos===`t`,y=p,b=p,{nodeBorder:x}=r,{stylesMap:S}=i.t(n),C=-b/2,w=-y/2,T=n.label?8:0,E=o.t.svg(h),D=i.a(n,{stroke:`none`,fill:`none`});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=E.rectangle(C,w,b,y,D),k=Math.max(b,g.width),A=y+g.height+T,j=E.rectangle(-k/2,-A/2,k,A,{...D,fill:`transparent`,stroke:`none`}),M=h.insert(()=>O,`:first-child`),P=h.insert(()=>j);if(n.icon){let e=h.append(`g`);e.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,i=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${v?g.height/2+T/2-i/2-s:-g.height/2-T/2-i/2-s})`),e.attr(`style`,`color: ${S.get(`stroke`)??x};`)}return _.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${v?-A/2:A/2-g.height})`),M.attr(`transform`,`translate(0,${v?g.height/2+T/2:-g.height/2-T/2})`),l(n,P),n.intersect=function(e){if(t.g.info(`iconSquare intersect`,n,e),!n.label)return N.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=v?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+T},{x:r+b/2,y:i-a/2+g.height+T},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+g.height+T},{x:r-g.width/2,y:i-a/2+g.height+T}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+y},{x:r+g.width/2,y:i-a/2+y},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+y},{x:r-b/2,y:i-a/2+y}],N.polygon(n,o,e)},h}t.h(xe,`icon`);async function Se(e,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,label:_}=await s(e,n,`icon-shape default`),v=n.label?8:0,y=n.pos===`t`,{nodeBorder:b,mainBkg:x}=r,{stylesMap:S}=i.t(n),C=o.t.svg(h),w=i.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=S.get(`fill`)??x;let T=h.append(`g`);n.icon&&T.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let E=T.node().getBBox(),D=E.width,O=E.height,k=E.x,A=E.y,j=Math.max(D,O)*Math.SQRT2+40,M=C.circle(0,0,j,w),P=Math.max(j,g.width),F=j+g.height+v,I=C.rectangle(-P/2,-F/2,P,F,{...w,fill:`transparent`,stroke:`none`}),L=h.insert(()=>M,`:first-child`),R=h.insert(()=>I);return T.attr(`transform`,`translate(${-D/2-k},${y?g.height/2+v/2-O/2-A:-g.height/2-v/2-O/2-A})`),T.attr(`style`,`color: ${S.get(`stroke`)??b};`),_.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${y?-F/2:F/2-g.height})`),L.attr(`transform`,`translate(0,${y?g.height/2+v/2:-g.height/2-v/2})`),l(n,R),n.intersect=function(e){return t.g.info(`iconSquare intersect`,n,e),N.rect(n,e)},h}t.h(Se,`iconCircle`);async function Ce(e,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,halfPadding:v,label:y}=await s(e,n,`icon-shape default`),b=n.pos===`t`,x=p+v*2,S=p+v*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:T}=i.t(n),E=-S/2,D=-x/2,O=n.label?8:0,k=o.t.svg(h),A=i.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??w;let j=k.path(_(E,D,S,x,5),A),M=Math.max(S,g.width),P=x+g.height+O,F=k.rectangle(-M/2,-P/2,M,P,{...A,fill:`transparent`,stroke:`none`}),I=h.insert(()=>j,`:first-child`).attr(`class`,`icon-shape2`),L=h.insert(()=>F);if(n.icon){let e=h.append(`g`);e.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,i=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${b?g.height/2+O/2-i/2-s:-g.height/2-O/2-i/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??C};`)}return y.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${b?-P/2:P/2-g.height})`),I.attr(`transform`,`translate(0,${b?g.height/2+O/2:-g.height/2-O/2})`),l(n,L),n.intersect=function(e){if(t.g.info(`iconSquare intersect`,n,e),!n.label)return N.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=b?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+O},{x:r+S/2,y:i-a/2+g.height+O},{x:r+S/2,y:i+a/2},{x:r-S/2,y:i+a/2},{x:r-S/2,y:i-a/2+g.height+O},{x:r-g.width/2,y:i-a/2+g.height+O}]:[{x:r-S/2,y:i-a/2},{x:r+S/2,y:i-a/2},{x:r+S/2,y:i-a/2+x},{x:r+g.width/2,y:i-a/2+x},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+x},{x:r-S/2,y:i-a/2+x}],N.polygon(n,o,e)},h}t.h(Ce,`iconRounded`);async function we(e,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,halfPadding:v,label:y}=await s(e,n,`icon-shape default`),b=n.pos===`t`,x=p+v*2,S=p+v*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:T}=i.t(n),E=-S/2,D=-x/2,O=n.label?8:0,k=o.t.svg(h),A=i.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??w;let j=k.path(_(E,D,S,x,.1),A),M=Math.max(S,g.width),P=x+g.height+O,F=k.rectangle(-M/2,-P/2,M,P,{...A,fill:`transparent`,stroke:`none`}),I=h.insert(()=>j,`:first-child`),L=h.insert(()=>F);if(n.icon){let e=h.append(`g`);e.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,i=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${b?g.height/2+O/2-i/2-s:-g.height/2-O/2-i/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??C};`)}return y.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${b?-P/2:P/2-g.height})`),I.attr(`transform`,`translate(0,${b?g.height/2+O/2:-g.height/2-O/2})`),l(n,L),n.intersect=function(e){if(t.g.info(`iconSquare intersect`,n,e),!n.label)return N.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=b?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+O},{x:r+S/2,y:i-a/2+g.height+O},{x:r+S/2,y:i+a/2},{x:r-S/2,y:i+a/2},{x:r-S/2,y:i-a/2+g.height+O},{x:r-g.width/2,y:i-a/2+g.height+O}]:[{x:r-S/2,y:i-a/2},{x:r+S/2,y:i-a/2},{x:r+S/2,y:i-a/2+x},{x:r+g.width/2,y:i-a/2+x},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+x},{x:r-S/2,y:i-a/2+x}],N.polygon(n,o,e)},h}t.h(we,`iconSquare`);async function Te(e,n,{config:{flowchart:r}}){let a=new Image;a.src=n?.img??``,await a.decode();let c=Number(a.naturalWidth.toString().replace(`px`,``)),u=Number(a.naturalHeight.toString().replace(`px`,``));n.imageAspectRatio=c/u;let{labelStyles:d}=i.i(n);n.labelStyle=d;let f=r?.wrappingWidth;n.defaultWidth=r?.wrappingWidth;let p=Math.max(n.label?f??0:0,n?.assetWidth??c),m=n.constraint===`on`&&n?.assetHeight?n.assetHeight*n.imageAspectRatio:p,h=n.constraint===`on`?m/n.imageAspectRatio:n?.assetHeight??u;n.width=Math.max(m,f??0);let{shapeSvg:g,bbox:_,label:v}=await s(e,n,`image-shape default`),y=n.pos===`t`,b=-m/2,x=-h/2,S=n.label?8:0,C=o.t.svg(g),w=i.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=C.rectangle(b,x,m,h,w),E=Math.max(m,_.width),D=h+_.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`none`,stroke:`none`}),k=g.insert(()=>T,`:first-child`),A=g.insert(()=>O);if(n.img){let e=g.append(`image`);e.attr(`href`,n.img),e.attr(`width`,m),e.attr(`height`,h),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-m/2},${y?D/2-h:-D/2})`)}return v.attr(`transform`,`translate(${-_.width/2-(_.x-(_.left??0))},${y?-h/2-_.height/2-S/2:h/2-_.height/2+S/2})`),k.attr(`transform`,`translate(0,${y?_.height/2+S/2:-_.height/2-S/2})`),l(n,A),n.intersect=function(e){if(t.g.info(`iconSquare intersect`,n,e),!n.label)return N.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=y?[{x:r-_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2+_.height+S},{x:r+m/2,y:i-a/2+_.height+S},{x:r+m/2,y:i+a/2},{x:r-m/2,y:i+a/2},{x:r-m/2,y:i-a/2+_.height+S},{x:r-_.width/2,y:i-a/2+_.height+S}]:[{x:r-m/2,y:i-a/2},{x:r+m/2,y:i-a/2},{x:r+m/2,y:i-a/2+h},{x:r+_.width/2,y:i-a/2+h},{x:r+_.width/2/2,y:i+a/2},{x:r-_.width/2,y:i+a/2},{x:r-_.width/2,y:i-a/2+h},{x:r-m/2,y:i-a/2+h}],N.polygon(n,o,e)},g}t.h(Te,`imageSquare`);async function Ee(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=a,f=t.look===`neo`?a*2:a,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=Math.max(m.width+(f??0)*2,t?.width??0),g=Math.max(m.height+(c??0)*2,t?.height??0),_=[{x:0,y:0},{x:h,y:0},{x:h+3*g/6,y:-g},{x:-3*g/6,y:-g}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=d(_),a=e.path(r,n);v=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-h/2}, ${g/2})`),y&&v.attr(`style`,y)}else v=R(p,h,g,_);return r&&v.attr(`style`,r),t.width=h,t.height=g,l(t,v),t.intersect=function(e){return N.polygon(t,_,e)},p}t.h(Ee,`inv_trapezoid`);async function De(e,t,r){let{labelStyles:a,nodeStyles:c}=i.i(t);t.labelStyle=a;let{shapeSvg:d,bbox:f}=await s(e,t,u(t)),p=Math.max(f.width+r.labelPaddingX*2,t?.width||0),m=Math.max(f.height+r.labelPaddingY*2,t?.height||0),h=-p/2,g=-m/2,v,{rx:y,ry:b}=t,{cssStyles:x}=t;if(r?.rx&&r.ry&&(y=r.rx,b=r.ry),t.look===`handDrawn`){let e=o.t.svg(d),r=i.a(t,{}),a=y||b?e.path(_(h,g,p,m,y||0),r):e.rectangle(h,g,p,m,r);v=d.insert(()=>a,`:first-child`),v.attr(`class`,`basic label-container`).attr(`style`,n.l(x))}else v=d.insert(`rect`,`:first-child`),v.attr(`class`,`basic label-container`).attr(`style`,c).attr(`rx`,n.l(y)).attr(`ry`,n.l(b)).attr(`x`,h).attr(`y`,g).attr(`width`,p).attr(`height`,m);return l(t,v),t.calcIntersect=function(e,t){return N.rect(e,t)},t.intersect=function(e){return N.rect(t,e)},d}t.h(De,`drawRect`);async function Oe(e,t){let{shapeSvg:n,bbox:r,label:i}=await s(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),l(t,a),t.intersect=function(e){return N.rect(t,e)},n}t.h(Oe,`labelRect`);async function ke(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=a,f=t.look===`neo`?a*2:a,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.height??m.height)+c,g=(t?.width??m.width)+f,_=[{x:0,y:0},{x:g+3*h/6,y:0},{x:g,y:-h},{x:-(3*h)/6,y:-h}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=d(_),a=e.path(r,n);v=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-g/2}, ${h/2})`),y&&v.attr(`style`,y)}else v=R(p,g,h,_);return r&&v.attr(`style`,r),t.width=g,t.height=h,l(t,v),t.intersect=function(e){return N.polygon(t,_,e)},p}t.h(ke,`lean_left`);async function Ae(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=a,f=t.look===`neo`?a*2:a,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.height??m.height)+c,g=(t?.width??m.width)+f,_=[{x:-3*h/6,y:0},{x:g,y:0},{x:g+3*h/6,y:-h},{x:0,y:-h}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=d(_),a=e.path(r,n);v=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-g/2}, ${h/2})`),y&&v.attr(`style`,y)}else v=R(p,g,h,_);return r&&v.attr(`style`,r),t.width=g,t.height=h,l(t,v),t.intersect=function(e){return N.polygon(t,_,e)},p}t.h(Ae,`lean_right`);function je(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.label=``,n.labelStyle=r;let s=e.insert(`g`).attr(`class`,u(n)).attr(`id`,n.domId??n.id),{cssStyles:c}=n,f=Math.max(35,n?.width??0),p=Math.max(35,n?.height??0),m=[{x:f,y:0},{x:0,y:p+7/2},{x:f-14,y:p+7/2},{x:0,y:2*p},{x:f,y:p-7/2},{x:14,y:p-7/2}],h=o.t.svg(s),g=i.a(n,{});n.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=d(m),v=h.path(_,g),y=s.insert(()=>v,`:first-child`);return y.attr(`class`,`outer-path`),c&&n.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,c),a&&n.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,a),y.attr(`transform`,`translate(-${f/2},${-p})`),l(n,y),n.intersect=function(e){return t.g.info(`lightningBolt intersect`,n,e),N.polygon(n,m,e)},s}t.h(je,`lightningBolt`);var Me=t.h((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),Ne=t.h((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),Pe=t.h((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Fe=10,Ie=10;async function Le(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let c=t.padding??0,d=t.look===`neo`?16:c,f=t.look===`neo`?24:c;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-d,t.width<Ie&&(t.width=Ie);let n=e/2/(2.5+e/50);t.height=(t.height??0)-f-n*3,t.height<Fe&&(t.height=Fe)}let{shapeSvg:p,bbox:m,label:h}=await s(e,t,u(t)),g=(t?.width?t?.width:m.width)+d*2,_=g/2,v=_/(2.5+g/50),y=(t?.height?t?.height:m.height)+v+f*2,b=y*.1,x,{cssStyles:S}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=Ne(0,0,g,y,_,v,b),r=Pe(0,v,g,y,_,v),a=i.a(t,{}),s=e.path(n,a),c=e.path(r,a);p.insert(()=>c,`:first-child`).attr(`class`,`line`),x=p.insert(()=>s,`:first-child`),x.attr(`class`,`basic label-container`),S&&x.attr(`style`,S)}else{let e=Me(0,0,g,y,_,v,b);x=p.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,n.l(S)).attr(`style`,a)}return x.attr(`label-offset-y`,v),x.attr(`transform`,`translate(${-g/2}, ${-(y/2+v)})`),l(t,x),h.attr(`transform`,`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+v-(m.y-(m.top??0))})`),t.intersect=function(e){let n=N.rect(t,e),r=n.x-(t.x??0);if(_!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-v)){let i=v*v*(1-r*r/(_*_));i>0&&(i=Math.sqrt(i)),i=v-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},p}t.h(Le,`linedCylinder`);async function Re(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,d=t.look===`neo`?12:a;(t.width||t.height)&&(t.width=(t.width??0)*10/11-c*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-d*2,t.height<10&&(t.height=10));let{shapeSvg:p,bbox:m,label:h}=await s(e,t,u(t)),g=(t?.width?t?.width:m.width)+(c??0)*2,_=(t?.height?t?.height:m.height)+(d??0)*2,v=t.look===`neo`?_/4:_/8,y=_+v,{cssStyles:b}=t,x=o.t.svg(p),S=i.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-g/2-g/2*.1,y:-y/2},{x:-g/2-g/2*.1,y:y/2},...f(-g/2-g/2*.1,y/2,g/2+g/2*.1,y/2,v,.8),{x:g/2+g/2*.1,y:-y/2},{x:-g/2-g/2*.1,y:-y/2},{x:-g/2,y:-y/2},{x:-g/2,y:y/2*1.1},{x:-g/2,y:-y/2}],w=x.polygon(C.map(e=>[e.x,e.y]),S),T=p.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(0,${-v/2})`),h.attr(`transform`,`translate(${-g/2+(t.padding??0)+g/2*.1/2-(m.x-(m.left??0))},${-_/2+(t.padding??0)-v/2-(m.y-(m.top??0))})`),l(t,T),t.intersect=function(e){return N.polygon(t,C,e)},p}t.h(Re,`linedWaveEdgedRect`);async function ze(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,f=t.look===`neo`?12:a,p=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-c*2-2*p,10),t.height=Math.max((t?.height??0)-f*2-2*p,10));let{shapeSvg:h,bbox:g,label:_}=await s(e,t,u(t)),v=(t?.width?t?.width:g.width)+c*2+2*p,y=(t?.height?t?.height:g.height)+f*2+2*p,b=v-2*p,x=y-2*p,S=-b/2,C=-x/2,{cssStyles:w}=t,T=o.t.svg(h),E=i.a(t,{}),D=[{x:S-p,y:C+p},{x:S-p,y:C+x+p},{x:S+b-p,y:C+x+p},{x:S+b-p,y:C+x},{x:S+b,y:C+x},{x:S+b,y:C+x-p},{x:S+b+p,y:C+x-p},{x:S+b+p,y:C-p},{x:S+p,y:C-p},{x:S+p,y:C},{x:S,y:C},{x:S,y:C+p}],O=[{x:S,y:C+p},{x:S+b-p,y:C+p},{x:S+b-p,y:C+x},{x:S+b,y:C+x},{x:S+b,y:C},{x:S,y:C}];t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let k=d(D),A=T.path(k,E),j=d(O),M=T.path(j,E);t.look!==`handDrawn`&&(A=m(A),M=m(M));let P=h.insert(`g`,`:first-child`);return P.insert(()=>A),P.insert(()=>M),P.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&P.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&P.selectAll(`path`).attr(`style`,r),_.attr(`transform`,`translate(${-(g.width/2)-p-(g.x-(g.left??0))}, ${-(g.height/2)+p-(g.y-(g.top??0))})`),l(t,P),t.intersect=function(e){return N.polygon(t,D,e)},h}t.h(ze,`multiRect`);async function Be(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:p}=await s(e,t,u(t)),m=t.padding??0,h=t.look===`neo`?16:m,g=t.look===`neo`?12:m,_=!0;(t.width||t.height)&&(_=!1,t.width=(t?.width??0)-h*2,t.height=(t?.height??0)-g*3);let v=Math.max(c.width,t?.width??0)+h*2,y=Math.max(c.height,t?.height??0)+g*3,b=t.look===`neo`?y/4:y/8,x=y+(_?b/2:-b/2),S=-v/2,C=-x/2,{cssStyles:w}=t,T=f(S-10,C+x+10,S+v-10,C+x+10,b,.8),E=T?.[T.length-1],D=[{x:S-10,y:C+10},{x:S-10,y:C+x+10},...T,{x:S+v-10,y:E.y-10},{x:S+v,y:E.y-10},{x:S+v,y:E.y-20},{x:S+v+10,y:E.y-20},{x:S+v+10,y:C-10},{x:S+10,y:C-10},{x:S+10,y:C},{x:S,y:C},{x:S,y:C+10}],O=[{x:S,y:C+10},{x:S+v-10,y:C+10},{x:S+v-10,y:E.y-10},{x:S+v,y:E.y-10},{x:S+v,y:C},{x:S,y:C}],k=o.t.svg(a),A=i.a(t,{});t.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`);let j=d(D),M=k.path(j,A),P=d(O),F=k.path(P,A),I=a.insert(()=>M,`:first-child`);return I.insert(()=>F),I.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&I.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&I.selectAll(`path`).attr(`style`,r),I.attr(`transform`,`translate(0,${-b/2})`),p.attr(`transform`,`translate(${-(c.width/2)-10-(c.x-(c.left??0))}, ${-(c.height/2)+10-b/2-(c.y-(c.top??0))})`),l(t,I),t.intersect=function(e){return N.polygon(t,D,e)},a}t.h(Be,`multiWaveEdgedRectangle`);async function Ve(t,n,{config:{themeVariables:r}}){let{labelStyles:a,nodeStyles:c}=i.i(n);n.labelStyle=a,n.useHtmlLabels||e.w(e.y())||(n.centerLabel=!0);let{shapeSvg:d,bbox:f,label:p}=await s(t,n,u(n)),m=Math.max(f.width+(n.padding??0)*2,n?.width??0),h=Math.max(f.height+(n.padding??0)*2,n?.height??0),g=-m/2,_=-h/2,{cssStyles:v}=n,y=o.t.svg(d),b=i.a(n,{fill:r.noteBkgColor,stroke:r.noteBorderColor});n.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=y.rectangle(g,_,m,h,b),S=d.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container outer-path`),p.attr(`class`,`label noteLabel`),v&&n.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,v),c&&n.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,c),p.attr(`transform`,`translate(${-f.width/2-(f.x-(f.left??0))}, ${-(f.height/2)-(f.y-(f.top??0))})`),l(n,S),n.intersect=function(e){return N.rect(n,e)},d}t.h(Ve,`note`);var He=t.h((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`);async function Ue(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),d=c.width+(t.padding??0)+(c.height+(t.padding??0)),f=.5,p=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=o.t.svg(a),n=i.a(t,{}),r=He(0,0,d),s=e.path(r,n);m=a.insert(()=>s,`:first-child`).attr(`transform`,`translate(${-d/2+f}, ${d/2})`),h&&m.attr(`style`,h)}else m=R(a,d,d,p),m.attr(`transform`,`translate(${-d/2+f}, ${d/2})`);return r&&m.attr(`style`,r),l(t,m),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=N.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},a}t.h(Ue,`question`);async function We(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?21:a??0,f=t.look===`neo`?12:a??0,{shapeSvg:p,bbox:m,label:h}=await s(e,t,u(t)),g=(t?.width??m.width)+(t.look===`neo`?c*2:c),_=(t?.height??m.height)+(t.look===`neo`?f*2:f),v=-g/2,y=-_/2,b=y/2,x=[{x:v+b,y},{x:v,y:0},{x:v+b,y:-y},{x:-v,y:-y},{x:-v,y}],{cssStyles:S}=t,C=o.t.svg(p),w=i.a(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=d(x),E=C.path(T,w),D=p.insert(()=>E,`:first-child`);return D.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${-b/2},0)`),h.attr(`transform`,`translate(${-b/2-m.width/2-(m.x-(m.left??0))}, ${-(m.height/2)-(m.y-(m.top??0))})`),l(t,D),t.intersect=function(e){return N.polygon(t,x,e)},p}t.h(We,`rect_left_inv_arrow`);async function Ge(n,r){let{labelStyles:a,nodeStyles:s}=i.i(r);r.labelStyle=a;let c;c=r.cssClasses?`node `+r.cssClasses:`node default`;let u=n.insert(`g`).attr(`class`,c).attr(`id`,r.domId||r.id),d=u.insert(`g`),f=u.insert(`g`).attr(`class`,`label`).attr(`style`,s),p=r.description,m=r.label,h=await g(f,m,r.labelStyle,!0,!0),v={width:0,height:0};if(e.w(e.b())){let e=h.children[0],n=t.p(h);v=e.getBoundingClientRect(),n.attr(`width`,v.width),n.attr(`height`,v.height)}t.g.info(`Text 2`,p);let y=p||[],b=h.getBBox(),x=await g(f,Array.isArray(y)?y.join(`<br/>`):y,r.labelStyle,!0,!0),S=x.children[0],C=t.p(x);v=S.getBoundingClientRect(),C.attr(`width`,v.width),C.attr(`height`,v.height);let w=(r.padding||0)/2;t.p(x).attr(`transform`,`translate( `+(v.width>b.width?0:(b.width-v.width)/2)+`, `+(b.height+w+5)+`)`),t.p(h).attr(`transform`,`translate( `+(v.width<b.width?0:-(b.width-v.width)/2)+`, 0)`),v=f.node().getBBox(),f.attr(`transform`,`translate(`+-v.width/2+`, `+(-v.height/2-w+3)+`)`);let T=v.width+(r.padding||0),E=v.height+(r.padding||0),D=-v.width/2-w,O=-v.height/2-w,k,A;if(r.look===`handDrawn`){let e=o.t.svg(u),n=i.a(r,{}),a=e.path(_(D,O,T,E,r.rx||0),n),s=e.line(-v.width/2-w,-v.height/2-w+b.height+w,v.width/2+w,-v.height/2-w+b.height+w,n);A=u.insert(()=>(t.g.debug(`Rough node insert CXC`,a),s),`:first-child`),k=u.insert(()=>(t.g.debug(`Rough node insert CXC`,a),a),`:first-child`)}else k=d.insert(`rect`,`:first-child`),A=d.insert(`line`),k.attr(`class`,`outer title-state`).attr(`style`,s).attr(`x`,-v.width/2-w).attr(`y`,-v.height/2-w).attr(`width`,v.width+(r.padding||0)).attr(`height`,v.height+(r.padding||0)),A.attr(`class`,`divider`).attr(`x1`,-v.width/2-w).attr(`x2`,v.width/2+w).attr(`y1`,-v.height/2-w+b.height+w).attr(`y2`,-v.height/2-w+b.height+w);return l(r,k),r.intersect=function(e){return N.rect(r,e)},u}t.h(Ge,`rectWithTitle`);async function Ke(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return De(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}t.h(Ke,`roundedRect`);var J=8;async function qe(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let c=t.look===`neo`?16:t.padding??0,d=t.look===`neo`?12:t.padding??0,{shapeSvg:f,bbox:p,label:m}=await s(e,t,u(t)),h=(t?.width??p.width)+c*2+(t.look===`neo`?J:J*2),g=(t?.height??p.height)+d*2,_=h-J,v=g,y=J-h/2,b=-g/2,{cssStyles:x}=t,S=o.t.svg(f),C=i.a(t,{});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=[{x:y,y:b},{x:y+_,y:b},{x:y+_,y:b+v},{x:y-J,y:b+v},{x:y-J,y:b},{x:y,y:b},{x:y,y:b+v}],T=S.polygon(w.map(e=>[e.x,e.y]),C),E=f.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container outer-path`).attr(`style`,n.l(x)),a&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,a),x&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,a),m.attr(`transform`,`translate(${J/2-p.width/2-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),l(t,E),t.intersect=function(e){return N.rect(t,e)},f}t.h(qe,`shadedProcess`);async function Je(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,f=t.look===`neo`?12:a;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-c*2,10),t.height=Math.max((t?.height??0)/1.5-f*2,10));let{shapeSvg:p,bbox:m,label:h}=await s(e,t,u(t)),g=(t?.width?t?.width:m.width)+c*2,_=((t?.height?t?.height:m.height)+f*2)*1.5,v=g,y=_/1.5,b=-v/2,x=-y/2,{cssStyles:S}=t,C=o.t.svg(p),w=i.a(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=[{x:b,y:x},{x:b,y:x+y},{x:b+v,y:x+y},{x:b+v,y:x-y/2}],E=d(T),D=C.path(E,w),O=p.insert(()=>D,`:first-child`);return O.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,r),O.attr(`transform`,`translate(0, ${y/4})`),h.attr(`transform`,`translate(${-v/2+(t.padding??0)-(m.x-(m.left??0))}, ${-y/4+(t.padding??0)-(m.y-(m.top??0))})`),l(t,O),t.intersect=function(e){return N.polygon(t,T,e)},p}t.h(Je,`slopedRect`);async function Ye(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n;return De(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}t.h(Ye,`squareRect`);async function Xe(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?20:a,f=t.look===`neo`?12:a,{shapeSvg:m,bbox:h}=await s(e,t,u(t)),g=h.height+(t.look===`neo`?f*2:f),_=h.width+g/4+(t.look===`neo`?c*2:c),v=g/2,{cssStyles:y}=t,b=o.t.svg(m),x=i.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:-_/2+v,y:-g/2},{x:_/2-v,y:-g/2},...p(-_/2+v,0,v,50,90,270),{x:_/2-v,y:g/2},...p(_/2-v,0,v,50,270,450)],C=d(S),w=b.path(C,x),T=m.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,r),l(t,T),t.intersect=function(e){return N.polygon(t,S,e)},m}t.h(Xe,`stadium`);async function Ze(e,t){return De(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}t.h(Ze,`state`);function Qe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let{cssStyles:s}=t,{lineColor:c,stateBorder:u,nodeBorder:d,nodeShadow:f}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let p=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),m=o.t.svg(p),h=i.a(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.circle(0,0,t.width,{...h,stroke:c,strokeWidth:2}),_=u??d,v=(t.width??0)*5/14,y=m.circle(0,0,v,{...h,fill:_,stroke:_,strokeWidth:2,fillStyle:`solid`}),b=p.insert(()=>g,`:first-child`);if(b.insert(()=>y),t.look!==`handDrawn`&&b.attr(`class`,`outer-path`),s&&b.selectAll(`path`).attr(`style`,s),a&&b.selectAll(`path`).attr(`style`,a),t.width<25&&f&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;b.attr(`style`,`filter:url(#${n})`)}return l(t,b),t.intersect=function(e){return N.circle(t,(t.width??0)/2,e)},p}t.h(Qe,`stateEnd`);function $e(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:a}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let s=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),c;if(t.look===`handDrawn`){let e=o.t.svg(s).circle(0,0,t.width,i.r(r));c=s.insert(()=>e),c.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else c=s.insert(`circle`,`:first-child`),c.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&a&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;c.attr(`style`,`filter:url(#${n})`)}return l(t,c),t.intersect=function(e){return N.circle(t,(t.width??7)/2,e)},s}t.h($e,`stateStart`);var Y=8;async function et(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let c=t?.padding??8,d=t.look===`neo`?28:c,f=t.look===`neo`?12:c,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.width??m.width)+2*Y+d,g=(t?.height??m.height)+f,_=h-2*Y,v=g,y=-h/2,b=-g/2,x=[{x:0,y:0},{x:_,y:0},{x:_,y:-v},{x:0,y:-v},{x:0,y:0},{x:-8,y:0},{x:_+8,y:0},{x:_+8,y:-v},{x:-8,y:-v},{x:-8,y:0}];if(t.look===`handDrawn`){let e=o.t.svg(p),r=i.a(t,{}),a=e.rectangle(y,b,_+16,v,r),s=e.line(y+Y,b,y+Y,b+v,r),c=e.line(y+Y+_,b,y+Y+_,b+v,r);p.insert(()=>s,`:first-child`),p.insert(()=>c,`:first-child`);let u=p.insert(()=>a,`:first-child`),{cssStyles:d}=t;u.attr(`class`,`basic label-container`).attr(`style`,n.l(d)),l(t,u)}else{let e=R(p,_,v,x);a&&e.attr(`style`,a),l(t,e)}return t.intersect=function(e){return N.polygon(t,x,e)},p}t.h(et,`subroutine`);var tt=.2;async function nt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,f=t.look===`neo`?12:a;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-f*2,10),t.width=Math.max((t?.width??0)-c*2-tt*(t.height+f*2),10));let{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.height?t?.height:m.height)+f*2,g=tt*h,_=tt*h,v=(t?.width?t?.width:m.width)+c*2+g-g,y=h,b=-v/2,x=-y/2,{cssStyles:S}=t,C=o.t.svg(p),w=i.a(t,{}),T=[{x:b-g/2,y:x},{x:b+v+g/2,y:x},{x:b+v+g/2,y:x+y},{x:b-g/2,y:x+y}],E=[{x:b+v-g/2,y:x+y},{x:b+v+g/2,y:x+y},{x:b+v+g/2,y:x+y-_}];t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let D=d(T),O=C.path(D,w),k=d(E),A=C.path(k,{...w,fillStyle:`solid`}),j=p.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),l(t,j),t.intersect=function(e){return N.polygon(t,T,e)},p}t.h(nt,`taggedRect`);async function rt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:p}=await s(e,t,u(t)),m=Math.max(c.width+(t.padding??0)*2,t?.width??0),h=Math.max(c.height+(t.padding??0)*2,t?.height??0),g=h/8,_=.2*m,v=.2*h,y=h+g,{cssStyles:b}=t,x=o.t.svg(a),S=i.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-m/2-m/2*.1,y:y/2},...f(-m/2-m/2*.1,y/2,m/2+m/2*.1,y/2,g,.8),{x:m/2+m/2*.1,y:-y/2},{x:-m/2-m/2*.1,y:-y/2}],w=-m/2+m/2*.1,T=-y/2-v*.4,E=[{x:w+m-_,y:(T+h)*1.3},{x:w+m,y:T+h-v},{x:w+m,y:(T+h)*.9},...f(w+m,(T+h)*1.25,w+m-_,(T+h)*1.3,-h*.02,.5)],D=d(C),O=x.path(D,S),k=d(E),A=x.path(k,{...S,fillStyle:`solid`}),j=a.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(0,${-g/2})`),p.attr(`transform`,`translate(${-m/2+(t.padding??0)-(c.x-(c.left??0))},${-h/2+(t.padding??0)-g/2-(c.y-(c.top??0))})`),l(t,j),t.intersect=function(e){return N.polygon(t,C,e)},a}t.h(rt,`taggedWaveEdgedRectangle`);async function it(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:o}=await s(e,t,u(t)),c=Math.max(o.width+(t.padding??0),t?.width||0),d=Math.max(o.height+(t.padding??0),t?.height||0),f=-c/2,p=-d/2,m=a.insert(`rect`,`:first-child`);return m.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,f).attr(`y`,p).attr(`width`,c).attr(`height`,d),l(t,m),t.intersect=function(e){return N.rect(t,e)},a}t.h(it,`text`);var at=t.h((e,t,n,r,i,a)=>`M${e},${t}
|
|
3
|
+
a${i},${a} 0,0,1 0,${-r}
|
|
4
|
+
l${n},0
|
|
5
|
+
a${i},${a} 0,0,1 0,${r}
|
|
6
|
+
M${n},${-r}
|
|
7
|
+
a${i},${a} 0,0,0 0,${r}
|
|
8
|
+
l${-n},0`,`createCylinderPathD`),ot=t.h((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),st=t.h((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),ct=5,lt=10;async function ut(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let c=t.padding??0,d=t.look===`neo`?12:c/2;if(t.width||t.height){let e=t.height??0;t.height=(t.height??0)-d,t.height<ct&&(t.height=ct);let n=e/2/(2.5+e/50);t.width=(t.width??0)-d-n*3,t.width<lt&&(t.width=lt)}let{shapeSvg:f,bbox:p,label:m}=await s(e,t,u(t)),h=(t.height?t.height:p.height)+d,g=h/2,_=g/(2.5+h/50),v=(t.width?t.width:p.width)+_+d,{cssStyles:y}=t,b;if(t.look===`handDrawn`){let e=o.t.svg(f),n=ot(0,0,v,h,_,g),r=st(0,0,v,h,_,g),a=e.path(n,i.a(t,{})),s=e.path(r,i.a(t,{fill:`none`}));b=f.insert(()=>s,`:first-child`),b=f.insert(()=>a,`:first-child`),b.attr(`class`,`basic label-container`),y&&b.attr(`style`,y)}else{let e=at(0,0,v,h,_,g);b=f.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,n.l(y)).attr(`style`,a),b.attr(`class`,`basic label-container outer-path`),y&&b.selectAll(`path`).attr(`style`,y),a&&b.selectAll(`path`).attr(`style`,a)}return b.attr(`label-offset-x`,_),b.attr(`transform`,`translate(${-v/2}, ${h/2} )`),m.attr(`transform`,`translate(${-(p.width/2)-_-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),l(t,b),t.intersect=function(e){let n=N.rect(t,e),r=n.y-(t.y??0);if(g!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-_)){let i=_*_*(1-r*r/(g*g));i!=0&&(i=Math.sqrt(Math.abs(i))),i=_-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},f}t.h(ut,`tiltedCylinder`);async function dt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=(t.look,a),f=t.look===`neo`?a*2:a,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.height??m.height)+c,g=(t?.width??m.width)+f,_=[{x:-3*h/6,y:0},{x:g+3*h/6,y:0},{x:g,y:-h},{x:0,y:-h}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=d(_),a=e.path(r,n);v=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-g/2}, ${h/2})`),y&&v.attr(`style`,y)}else v=R(p,g,h,_);return r&&v.attr(`style`,r),t.width=g,t.height=h,l(t,v),t.intersect=function(e){return N.polygon(t,_,e)},p}t.h(dt,`trapezoid`);async function ft(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,f=t.look===`neo`?12:a;(t.width||t.height)&&(t.height=(t.height??0)-f*2,t.height<5&&(t.height=5),t.width=(t.width??0)-c*2,t.width<15&&(t.width=15));let{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.width?t?.width:m.width)+c*2,g=(t?.height?t?.height:m.height)+f*2,{cssStyles:_}=t,v=o.t.svg(p),y=i.a(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:-h/2*.8,y:-g/2},{x:h/2*.8,y:-g/2},{x:h/2,y:-g/2*.6},{x:h/2,y:g/2},{x:-h/2,y:g/2},{x:-h/2,y:-g/2*.6}],x=d(b),S=v.path(x,y),C=p.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),l(t,C),t.intersect=function(e){return N.polygon(t,b,e)},p}t.h(ft,`trapezoidalPentagon`);var pt=10,mt=10;async function ht(n,r){let{labelStyles:a,nodeStyles:c}=i.i(r);r.labelStyle=a;let f=r.padding??0,p=r.look===`neo`?f*2:f;(r.width||r.height)&&(r.width=((r?.width??0)-p)/2,r.width<mt&&(r.width=mt),r.height=r?.height??0,r.height<pt&&(r.height=pt));let{shapeSvg:m,bbox:h,label:g}=await s(n,r,u(r)),_=e.h(e.b().flowchart?.htmlLabels),v=(r?.width?r?.width:h.width)+p,y=r?.height?r?.height:v+h.height,b=y,x=[{x:0,y:0},{x:b,y:0},{x:b/2,y:-y}],{cssStyles:S}=r,C=o.t.svg(m),w=i.a(r,{});r.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=d(x),E=C.path(T,w),D=m.insert(()=>E,`:first-child`).attr(`transform`,`translate(${-y/2}, ${y/2})`).attr(`class`,`outer-path`);return S&&r.look!==`handDrawn`&&D.selectChildren(`path`).attr(`style`,S),c&&r.look!==`handDrawn`&&D.selectChildren(`path`).attr(`style`,c),r.width=v,r.height=y,l(r,D),g.attr(`transform`,`translate(${-h.width/2-(h.x-(h.left??0))}, ${y/2-(h.height+(r.padding??0)/(_?2:1)-(h.y-(h.top??0)))})`),r.intersect=function(e){return t.g.info(`Triangle intersect`,r,x,e),N.polygon(r,x,e)},m}t.h(ht,`triangle`);async function gt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,p=t.look===`neo`?12:a,m=!0;(t.width||t.height)&&(m=!1,t.width=(t?.width??0)-c*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-p*2,t.height<10&&(t.height=10));let{shapeSvg:h,bbox:g,label:_}=await s(e,t,u(t)),v=(t?.width?t?.width:g.width)+(c??0)*2,y=(t?.height?t?.height:g.height)+(p??0)*2,b=t.look===`neo`?y/4:y/8,x=y+(m?b:-b),{cssStyles:S}=t,C=14-v,w=C>0?C/2:0,T=o.t.svg(h),E=i.a(t,{});t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let D=[{x:-v/2-w,y:x/2},...f(-v/2-w,x/2,v/2+w,x/2,b,.8),{x:v/2+w,y:-x/2},{x:-v/2-w,y:-x/2}],O=d(D),k=T.path(O,E),A=h.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,r),A.attr(`transform`,`translate(0,${-b/2})`),_.attr(`transform`,`translate(${-v/2+(t.padding??0)-(g.x-(g.left??0))},${-y/2+(t.padding??0)-b-(g.y-(g.top??0))})`),l(t,A),t.intersect=function(e){return N.polygon(t,D,e)},h}t.h(gt,`waveEdgedRectangle`);async function _t(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,p=t.look===`neo`?20:a;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let e=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-p-20/9*e),t.width-=c*2}let{shapeSvg:m,bbox:h}=await s(e,t,u(t)),g=(t?.width?t?.width:h.width)+c*2,_=(t?.height?t?.height:h.height)+p,v=_/8,y=_+v*2,{cssStyles:b}=t,x=o.t.svg(m),S=i.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-g/2,y:y/2},...f(-g/2,y/2,g/2,y/2,v,1),{x:g/2,y:-y/2},...f(g/2,-y/2,-g/2,-y/2,v,-1)],w=d(C),T=x.path(w,S),E=m.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container`),b&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),l(t,E),t.intersect=function(e){return N.polygon(t,C,e)},m}t.h(_t,`waveRectangle`);var X=10;async function vt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.look===`neo`?16:t.padding??0,c=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-X,10),t.height=Math.max((t?.height??0)-c*2-X,10));let{shapeSvg:d,bbox:f,label:p}=await s(e,t,u(t)),m=(t?.width?t?.width:f.width)+a*2+X,h=(t?.height?t?.height:f.height)+c*2+X,g=m-X,_=h-X,v=-g/2,y=-_/2,{cssStyles:b}=t,x=o.t.svg(d),S=i.a(t,{}),C=[{x:v-X,y:y-X},{x:v-X,y:y+_},{x:v+g,y:y+_},{x:v+g,y:y-X}],w=`M${v-X},${y-X} L${v+g},${y-X} L${v+g},${y+_} L${v-X},${y+_} L${v-X},${y-X}
|
|
9
|
+
M${v-X},${y} L${v+g},${y}
|
|
10
|
+
M${v},${y-X} L${v},${y+_}`;t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let T=x.path(w,S),E=d.insert(()=>T,`:first-child`);return E.attr(`transform`,`translate(${X/2}, ${X/2})`),E.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),p.attr(`transform`,`translate(${-(f.width/2)+X/2-(f.x-(f.left??0))}, ${-(f.height/2)+X/2-(f.y-(f.top??0))})`),l(t,E),t.intersect=function(e){return N.polygon(t,C,e)},d}t.h(vt,`windowPane`);var yt=new Set([`redux-color`,`redux-dark-color`]),bt=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]);async function xt(r,a){let s=a;s.alias&&(a.label=s.alias);let{theme:c,themeVariables:d}=e.y(),{rowEven:f,rowOdd:p,nodeBorder:m,borderColorArray:h}=d;if(a.look===`handDrawn`){let{themeVariables:t}=e.y(),{background:n}=t;await xt(r,{...a,id:a.id+`-background`,domId:(a.domId||a.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${n}`]})}let g=e.y();a.useHtmlLabels=g.htmlLabels;let _=g.er?.diagramPadding??10,v=g.er?.entityPadding??6,{cssStyles:y}=a,{labelStyles:b,nodeStyles:x}=i.i(a);if(s.attributes.length===0&&a.label){let t={rx:0,ry:0,labelPaddingX:_,labelPaddingY:_*1.5,classes:``};n.n(a.label,g)+t.labelPaddingX*2<g.er.minEntityWidth&&(a.width=g.er.minEntityWidth);let i=await De(r,a,t);if(c!=null&&yt.has(c)){let e=s.colorIndex??0;i.attr(`data-color-id`,`color-${e%h.length}`)}if(!e.h(g.htmlLabels)){let e=i.select(`text`),t=e.node()?.getBBox();e.attr(`transform`,`translate(${-t.width/2}, 0)`)}return i}g.htmlLabels||(_*=1.25,v*=1.25);let S=u(a);S||=`node default`;let C=r.insert(`g`).attr(`class`,S).attr(`id`,a.domId||a.id),w=await Z(C,a.label??``,g,0,0,[`name`],b);w.height+=v;let T=0,E=[],D=[],O=0,k=0,A=0,j=0,M=!0,P=!0;for(let e of s.attributes){let t=await Z(C,e.type,g,0,T,[`attribute-type`],b);O=Math.max(O,t.width+_);let n=await Z(C,e.name,g,0,T,[`attribute-name`],b);k=Math.max(k,n.width+_);let r=await Z(C,e.keys.join(),g,0,T,[`attribute-keys`],b);A=Math.max(A,r.width+_);let i=await Z(C,e.comment,g,0,T,[`attribute-comment`],b);j=Math.max(j,i.width+_);let a=Math.max(t.height,n.height,r.height,i.height)+v;D.push({yOffset:T,rowHeight:a}),T+=a}let F=4;A<=_&&(M=!1,A=0,F--),j<=_&&(P=!1,j=0,F--);let I=C.node().getBBox();if(w.width+_*2-(O+k+A+j)>0){let e=w.width+_*2-(O+k+A+j);O+=e/F,k+=e/F,A>0&&(A+=e/F),j>0&&(j+=e/F)}let L=O+k+A+j,R=o.t.svg(C),z=i.a(a,{});a.look!==`handDrawn`&&(z.roughness=0,z.fillStyle=`solid`);let ee=0;D.length>0&&(ee=D.reduce((e,t)=>e+(t?.rowHeight??0),0));let B=Math.max(I.width+_*2,a?.width||0,L),V=Math.max((ee??0)+w.height,a?.height||0),H=-B/2,U=-V/2;if(C.selectAll(`g:not(:first-child)`).each((e,n,r)=>{let i=t.p(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]),i.attr(`class`).includes(`attribute-name`)?o+=O:i.attr(`class`).includes(`attribute-keys`)?o+=O+k:i.attr(`class`).includes(`attribute-comment`)&&(o+=O+k+A))}i.attr(`transform`,`translate(${H+_/2+o}, ${s+U+w.height+v/2})`)}),C.select(`.name`).attr(`transform`,`translate(`+-w.width/2+`, `+(U+v/2)+`)`),c!=null&&yt.has(c)){let e=s.colorIndex??0;C.attr(`data-color-id`,`color-${e%h.length}`)}let W=R.rectangle(H,U,B,V,z),te=C.insert(()=>W,`:first-child`).attr(`class`,`outer-path`).attr(`style`,y.join(``));E.push(0);for(let[e,t]of D.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=R.rectangle(H,w.height+U+t?.yOffset,B,t?.rowHeight,{...z,fill:n?f:p,stroke:m});C.insert(()=>r,`g.label`).attr(`style`,y.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let G=1e-4,K=Q(H,w.height+U,B+H,w.height+U,G),q=R.polygon(K.map(e=>[e.x,e.y]),z);if(C.insert(()=>q).attr(`class`,`divider`),K=Q(O+H,w.height+U,O+H,V+U,G),q=R.polygon(K.map(e=>[e.x,e.y]),z),C.insert(()=>q).attr(`class`,`divider`),M){let e=O+k+H;K=Q(e,w.height+U,e,V+U,G),q=R.polygon(K.map(e=>[e.x,e.y]),z),C.insert(()=>q).attr(`class`,`divider`)}if(P){let e=O+k+A+H;K=Q(e,w.height+U,e,V+U,G),q=R.polygon(K.map(e=>[e.x,e.y]),z),C.insert(()=>q).attr(`class`,`divider`)}for(let e of E){let t=w.height+U+e;K=Q(H,t,B+H,t,G),q=R.polygon(K.map(e=>[e.x,e.y]),z),C.insert(()=>q).attr(`class`,`divider`)}if(l(a,te),x&&a.look!==`handDrawn`)if(c!=null&&bt.has(c))C.selectAll(`path`).attr(`style`,x);else{let e=x.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);C.selectAll(`path`).attr(`style`,e??``),C.selectAll(`.row-rect-even path`).attr(`style`,x)}return a.intersect=function(e){return N.rect(a,e)},C}t.h(xt,`erBox`);async function Z(r,i,o,s=0,c=0,l=[],u=``){let d=r.insert(`g`).attr(`class`,`label ${l.join(` `)}`).attr(`transform`,`translate(${s}, ${c})`).attr(`style`,u);i!==e.j(i)&&(i=e.j(i),i=i.replaceAll(`<`,`<`).replaceAll(`>`,`>`));let f=d.node().appendChild(await a.n(d,i,{width:n.n(i,o)+100,style:u,useHtmlLabels:o.htmlLabels},o));if(i.includes(`<`)||i.includes(`>`)){let e=f.children[0];for(e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}let p=f.getBBox();if(e.h(o.htmlLabels)){let e=f.children[0];e.style.textAlign=`start`;let n=t.p(f);p=e.getBoundingClientRect(),n.attr(`width`,p.width),n.attr(`height`,p.height)}return p}t.h(Z,`addText`);function Q(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}t.h(Q,`lineToPolygon`);async function St(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,u(t)).attr(`id`,t.domId||t.id),s=null,c=null,l=null,d=null,f=0,p=0,m=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await Ct(s,{text:`\xAB${e}\xBB`},0),f=s.node().getBBox().height}c=o.insert(`g`).attr(`class`,`label-group text`),await Ct(c,t,0,[`font-weight: bolder`]);let h=c.node().getBBox();p=h.height,l=o.insert(`g`).attr(`class`,`members-group text`);let g=0;for(let e of t.members){let t=await Ct(l,e,g,[e.parseClassifier()]);g+=t+a}m=l.node().getBBox().height,m<=0&&(m=i/2),d=o.insert(`g`).attr(`class`,`methods-group text`);let _=0;for(let e of t.methods){let t=await Ct(d,e,_,[e.parseClassifier()]);_+=t+a}let v=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return c.attr(`transform`,`translate(${-h.width/2}, ${f})`),v=o.node().getBBox(),l.attr(`transform`,`translate(0, ${f+p+i*2})`),v=o.node().getBBox(),d.attr(`transform`,`translate(0, ${f+p+(m?m+i*4:i*2)})`),v=o.node().getBBox(),{shapeSvg:o,bbox:v}}t.h(St,`textHelper`);async function Ct(r,i,o,s=[]){let c=r.insert(`g`).attr(`class`,`label`).attr(`style`,s.join(`; `)),l=e.y(),u=`useHtmlLabels`in i?i.useHtmlLabels:e.h(l.htmlLabels)??!0,d=``;d=`text`in i?i.text:i.label,!u&&d.startsWith(`\\`)&&(d=d.substring(1)),e.k(d)&&(u=!0);let f=await a.n(c,e.R(n.i(d)),{width:n.n(d,l)+50,classes:`markdown-node-label`,useHtmlLabels:u},l),p,m=1;if(u){let e=f.children[0],n=t.p(f);m=e.innerHTML.split(`<br>`).length,e.innerHTML.includes(`</math>`)&&(m+=e.innerHTML.split(`<mrow>`).length-1);let r=e.getElementsByTagName(`img`);if(r){let e=d.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...r].map(n=>new Promise(r=>{function i(){if(n.style.display=`flex`,n.style.flexDirection=`column`,e){let e=l.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,t=parseInt(e,10)*5+`px`;n.style.minWidth=t,n.style.maxWidth=t}else n.style.width=`100%`;r(n)}t.h(i,`setupImage`),setTimeout(()=>{n.complete&&i()}),n.addEventListener(`error`,i),n.addEventListener(`load`,i)})))}p=e.getBoundingClientRect(),n.attr(`width`,p.width),n.attr(`height`,p.height)}else{s.includes(`font-weight: bolder`)&&t.p(f).selectAll(`tspan`).attr(`font-weight`,``),m=f.children.length;let e=f.children[0];(f.textContent===``||f.textContent.includes(`>`))&&(e.textContent=d[0]+d.substring(1).replaceAll(`>`,`>`).replaceAll(`<`,`<`).trim(),d[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),p=f.getBBox()}return c.attr(`transform`,`translate(0,`+(-p.height/(2*m)+o)+`)`),p.height}t.h(Ct,`addText`);async function wt(n,r){let a=e.b(),{themeVariables:s}=a,{useGradient:c}=s,u=a.class.padding??12,d=u,f=r.useHtmlLabels??e.h(a.htmlLabels)??!0,p=r;p.annotations=p.annotations??[],p.members=p.members??[],p.methods=p.methods??[];let{shapeSvg:m,bbox:h}=await St(n,r,a,f,d),{labelStyles:g,nodeStyles:_}=i.i(r);r.labelStyle=g,r.cssStyles=p.styles||``;let v=p.styles?.join(`;`)||_||``;r.cssStyles||=v.replaceAll(`!important`,``).split(`;`);let y=p.members.length===0&&p.methods.length===0&&!a.class?.hideEmptyMembersBox,b=o.t.svg(m),x=i.a(r,{});r.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=Math.max(r.width??0,h.width),C=Math.max(r.height??0,h.height),w=(r.height??0)>h.height;p.members.length===0&&p.methods.length===0?C+=d:p.members.length>0&&p.methods.length===0&&(C+=d*2);let T=-S/2,E=-C/2,D=y?u*2:p.members.length===0&&p.methods.length===0?-u:0;w&&(D=u*2);let O=b.rectangle(T-u,E-u-(y?u:p.members.length===0&&p.methods.length===0?-u/2:0),S+2*u,C+2*u+D,x),k=m.insert(()=>O,`:first-child`);k.attr(`class`,`basic label-container outer-path`);let A=k.node().getBBox(),j=m.select(`.annotation-group`).node().getBBox().height-(y?u/2:0)||0,M=m.select(`.label-group`).node().getBBox().height-(y?u/2:0)||0,P=m.select(`.members-group`).node().getBBox().height-(y?u/2:0)||0,F=(j+M+E+u-(E-u-(y?u:p.members.length===0&&p.methods.length===0?-u/2:0)))/2;if(m.selectAll(`.text`).each((e,n,r)=>{let i=t.p(r[n]),o=i.attr(`transform`),s=0;if(o){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);e&&(s=parseFloat(e[2]))}let c=s+E+u-(y?u:p.members.length===0&&p.methods.length===0?-u/2:0);if(i.attr(`class`).includes(`methods-group`)){let e=Math.max(P,d/2);c=w?Math.max(F,j+M+e+E+d*2+u)+d*2:j+M+e+E+d*4+u}p.members.length===0&&p.methods.length===0&&a.class?.hideEmptyMembersBox&&(c=p.annotations.length>0?s-d:s),f||(c-=4);let l=T;(i.attr(`class`).includes(`label-group`)||i.attr(`class`).includes(`annotation-group`))&&(l=-i.node()?.getBBox().width/2||0,m.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(l=0)})),i.attr(`transform`,`translate(${l}, ${c})`)}),p.members.length>0||p.methods.length>0||y){let e=j+M+E+u,t=b.line(A.x,e,A.x+A.width,e+.001,x);m.insert(()=>t).attr(`class`,`divider${r.look===`neo`&&!c?` neo-line`:``}`).attr(`style`,v)}if(y||p.members.length>0||p.methods.length>0){let e=j+M+P+E+d*2+u,t=b.line(A.x,w?Math.max(F,e):e,A.x+A.width,(w?Math.max(F,e):e)+.001,x);m.insert(()=>t).attr(`class`,`divider${r.look===`neo`&&!c?` neo-line`:``}`).attr(`style`,v)}if(p.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,v),k.select(`:nth-child(2)`).attr(`style`,v),m.selectAll(`.divider`).select(`path`).attr(`style`,v),r.labelStyle?m.selectAll(`span`).attr(`style`,r.labelStyle):m.selectAll(`span`).attr(`style`,v),!f){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(v);if(t){let e=t[0].replace(`color`,`fill`);m.selectAll(`tspan`).attr(`style`,e)}else if(g){let t=e.exec(g);if(t){let e=t[0].replace(`color`,`fill`);m.selectAll(`tspan`).attr(`style`,e)}}}return l(r,k),r.intersect=function(e){return N.rect(r,e)},m}t.h(wt,`classBox`);async function Tt(n,r){let{labelStyles:a,nodeStyles:s}=i.i(r);r.labelStyle=a;let c=r,d=r,f=`verifyMethod`in r,p=u(r),{themeVariables:m}=e.b(),{borderColorArray:h,requirementEdgeLabelBackground:g}=m,_=n.insert(`g`).attr(`class`,p).attr(`id`,r.domId??r.id),v;v=f?await $(_,`<<${c.type}>>`,0,r.labelStyle):await $(_,`<<Element>>`,0,r.labelStyle);let y=v,b=await $(_,c.name,y,r.labelStyle+`; font-weight: bold;`);if(y+=b+20,f){let e=await $(_,`${c.requirementId?`ID: ${c.requirementId}`:``}`,y,r.labelStyle);y+=e;let t=await $(_,`${c.text?`Text: ${c.text}`:``}`,y,r.labelStyle);y+=t;let n=await $(_,`${c.risk?`Risk: ${c.risk}`:``}`,y,r.labelStyle);y+=n,await $(_,`${c.verifyMethod?`Verification: ${c.verifyMethod}`:``}`,y,r.labelStyle)}else{let e=await $(_,`${d.type?`Type: ${d.type}`:``}`,y,r.labelStyle);y+=e,await $(_,`${d.docRef?`Doc Ref: ${d.docRef}`:``}`,y,r.labelStyle)}let x=(_.node()?.getBBox().width??200)+20,S=(_.node()?.getBBox().height??200)+20,C=-x/2,w=-S/2,T=o.t.svg(_),E=i.a(r,{});r.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let D=T.rectangle(C,w,x,S,E),O=_.insert(()=>D,`:first-child`);if(O.attr(`class`,`basic label-container outer-path`).attr(`style`,s),h?.length){let e=r.colorIndex??0;_.attr(`data-color-id`,`color-${e%h.length}`)}if(_.selectAll(`.label`).each((e,n,r)=>{let i=t.p(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]))}let c=s-S/2,l=C+20/2;(n===0||n===1)&&(l=o),i.attr(`transform`,`translate(${l}, ${c+20})`)}),y>v+b+20){let e=w+v+b+20,t;if(r.look===`neo`){let n=.001,r=[[C,e],[C+x,e],[C+x,e+n],[C,e+n]];t=T.polygon(r,E)}else t=T.line(C,e,C+x,e,E);_.insert(()=>t).attr(`class`,`divider`)}return l(r,O),r.intersect=function(e){return N.rect(r,e)},s&&r.look!==`handDrawn`&&(g||h?.length)&&_.selectAll(`path`).attr(`style`,s),_}t.h(Tt,`requirementBox`);async function $(r,i,o,s=``){if(i===``)return 0;let c=r.insert(`g`).attr(`class`,`label`).attr(`style`,s),l=e.b(),u=l.htmlLabels??!0,d=await a.n(c,e.R(n.i(i)),{width:n.n(i,l)+50,classes:`markdown-node-label`,useHtmlLabels:u,style:s},l),f;if(u){let e=d.children[0],n=t.p(d);f=e.getBoundingClientRect(),n.attr(`width`,f.width),n.attr(`height`,f.height)}else{let e=d.children[0];for(let t of e.children)s&&t.setAttribute(`style`,s);f=d.getBBox(),f.height+=6}return c.attr(`transform`,`translate(${-f.width/2},${-f.height/2+o})`),f.height}t.h($,`addText`);var Et=t.h(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`);async function Dt(e,t,{config:n}){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r||``;let d=t.width;t.width=(t.width??200)-10;let{shapeSvg:f,bbox:p,label:m}=await s(e,t,u(t)),h=t.padding||10,g=``,v;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(g=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),v=f.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,g).attr(`target`,`_blank`));let y={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},b,x;v?{label:b,bbox:x}=await c(v,`ticket`in t&&t.ticket||``,y):{label:b,bbox:x}=await c(f,`ticket`in t&&t.ticket||``,y);let{label:S,bbox:C}=await c(f,`assigned`in t&&t.assigned||``,y);t.width=d;let w=t?.width||0,T=Math.max(x.height,C.height)/2,E=Math.max(p.height+20,t?.height||0)+T,D=-w/2,O=-E/2;m.attr(`transform`,`translate(`+(h-w/2)+`, `+(-T-p.height/2)+`)`),b.attr(`transform`,`translate(`+(h-w/2)+`, `+(-T+p.height/2)+`)`),S.attr(`transform`,`translate(`+(h+w/2-C.width-20)+`, `+(-T+p.height/2)+`)`);let k,{rx:A,ry:j}=t,{cssStyles:M}=t;if(t.look===`handDrawn`){let e=o.t.svg(f),n=i.a(t,{}),r=A||j?e.path(_(D,O,w,E,A||0),n):e.rectangle(D,O,w,E,n);k=f.insert(()=>r,`:first-child`),k.attr(`class`,`basic label-container`).attr(`style`,M||null)}else{k=f.insert(`rect`,`:first-child`),k.attr(`class`,`basic label-container __APA__`).attr(`style`,a).attr(`rx`,A??5).attr(`ry`,j??5).attr(`x`,D).attr(`y`,O).attr(`width`,w).attr(`height`,E);let e=`priority`in t&&t.priority;if(e){let t=f.append(`line`),n=D+2,r=O+Math.floor((A??0)/2),i=O+E-Math.floor((A??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,Et(e))}}return l(t,k),t.height=E,t.intersect=function(e){return N.rect(t,e)},f}t.h(Dt,`kanbanItem`);async function Ot(e,r){let{labelStyles:a,nodeStyles:c}=i.i(r);r.labelStyle=a;let{shapeSvg:d,bbox:f,halfPadding:p,label:m}=await s(e,r,u(r)),h=f.width+10*p,g=f.height+8*p,_=.15*h,{cssStyles:v}=r,y=f.width+20,b=f.height+20,x=Math.max(h,y),S=Math.max(g,b);m.attr(`transform`,`translate(${-f.width/2}, ${-f.height/2})`);let C,w=`M0 0
|
|
11
|
+
a${_},${_} 1 0,0 ${x*.25},${-1*S*.1}
|
|
12
|
+
a${_},${_} 1 0,0 ${x*.25},0
|
|
13
|
+
a${_},${_} 1 0,0 ${x*.25},0
|
|
14
|
+
a${_},${_} 1 0,0 ${x*.25},${S*.1}
|
|
15
|
+
|
|
16
|
+
a${_},${_} 1 0,0 ${x*.15},${S*.33}
|
|
17
|
+
a${_*.8},${_*.8} 1 0,0 0,${S*.34}
|
|
18
|
+
a${_},${_} 1 0,0 ${-1*x*.15},${S*.33}
|
|
19
|
+
|
|
20
|
+
a${_},${_} 1 0,0 ${-1*x*.25},${S*.15}
|
|
21
|
+
a${_},${_} 1 0,0 ${-1*x*.25},0
|
|
22
|
+
a${_},${_} 1 0,0 ${-1*x*.25},0
|
|
23
|
+
a${_},${_} 1 0,0 ${-1*x*.25},${-1*S*.15}
|
|
24
|
+
|
|
25
|
+
a${_},${_} 1 0,0 ${-1*x*.1},${-1*S*.33}
|
|
26
|
+
a${_*.8},${_*.8} 1 0,0 0,${-1*S*.34}
|
|
27
|
+
a${_},${_} 1 0,0 ${x*.1},${-1*S*.33}
|
|
28
|
+
H0 V0 Z`;if(r.look===`handDrawn`){let e=o.t.svg(d),t=i.a(r,{}),a=e.path(w,t);C=d.insert(()=>a,`:first-child`),C.attr(`class`,`basic label-container`).attr(`style`,n.l(v))}else C=d.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,c).attr(`d`,w);return C.attr(`transform`,`translate(${-x/2}, ${-S/2})`),l(r,C),r.calcIntersect=function(e,t){return N.rect(e,t)},r.intersect=function(e){return t.g.info(`Bang intersect`,r,e),N.rect(r,e)},d}t.h(Ot,`bang`);async function kt(e,r){let{labelStyles:a,nodeStyles:c}=i.i(r);r.labelStyle=a;let{shapeSvg:d,bbox:f,halfPadding:p,label:m}=await s(e,r,u(r)),h=f.width+2*p,g=f.height+2*p,_=.15*h,v=.25*h,y=.35*h,b=.2*h,{cssStyles:x}=r,S,C=`M0 0
|
|
29
|
+
a${_},${_} 0 0,1 ${h*.25},${-1*h*.1}
|
|
30
|
+
a${y},${y} 1 0,1 ${h*.4},${-1*h*.1}
|
|
31
|
+
a${v},${v} 1 0,1 ${h*.35},${h*.2}
|
|
32
|
+
|
|
33
|
+
a${_},${_} 1 0,1 ${h*.15},${g*.35}
|
|
34
|
+
a${b},${b} 1 0,1 ${-1*h*.15},${g*.65}
|
|
35
|
+
|
|
36
|
+
a${v},${_} 1 0,1 ${-1*h*.25},${h*.15}
|
|
37
|
+
a${y},${y} 1 0,1 ${-1*h*.5},0
|
|
38
|
+
a${_},${_} 1 0,1 ${-1*h*.25},${-1*h*.15}
|
|
39
|
+
|
|
40
|
+
a${_},${_} 1 0,1 ${-1*h*.1},${-1*g*.35}
|
|
41
|
+
a${b},${b} 1 0,1 ${h*.1},${-1*g*.65}
|
|
42
|
+
H0 V0 Z`;if(r.look===`handDrawn`){let e=o.t.svg(d),t=i.a(r,{}),a=e.path(C,t);S=d.insert(()=>a,`:first-child`),S.attr(`class`,`basic label-container`).attr(`style`,n.l(x))}else S=d.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,c).attr(`d`,C);return m.attr(`transform`,`translate(${-f.width/2}, ${-f.height/2})`),S.attr(`transform`,`translate(${-h/2}, ${-g/2})`),l(r,S),r.calcIntersect=function(e,t){return N.rect(e,t)},r.intersect=function(e){return t.g.info(`Cloud intersect`,r,e),N.rect(r,e)},d}t.h(kt,`cloud`);async function At(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:o,halfPadding:c,label:d}=await s(e,t,u(t)),f=o.width+8*c,p=o.height+2*c,m=t.look===`neo`?`
|
|
43
|
+
M${-f/2} ${p/2-5}
|
|
44
|
+
v${-p+10}
|
|
45
|
+
q0,-5 5,-5
|
|
46
|
+
h${f-10}
|
|
47
|
+
q5,0 5,5
|
|
48
|
+
v${p-5}
|
|
49
|
+
H${-f/2}
|
|
50
|
+
Z
|
|
51
|
+
`:`
|
|
52
|
+
M${-f/2} ${p/2-5}
|
|
53
|
+
v${-p+10}
|
|
54
|
+
q0,-5 5,-5
|
|
55
|
+
h${f-10}
|
|
56
|
+
q5,0 5,5
|
|
57
|
+
v${p-10}
|
|
58
|
+
q0,5 -5,5
|
|
59
|
+
h${-(f-10)}
|
|
60
|
+
q-5,0 -5,-5
|
|
61
|
+
Z
|
|
62
|
+
`;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let h=a.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,m);return a.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-f/2).attr(`y1`,p/2).attr(`x2`,f/2).attr(`y2`,p/2),d.attr(`transform`,`translate(${-o.width/2}, ${-o.height/2})`),a.append(()=>d.node()),l(t,h),t.calcIntersect=function(e,t){return N.rect(e,t)},t.intersect=function(e){return N.rect(t,e)},a}t.h(At,`defaultMindmapNode`);async function jt(e,t){return V(e,t,{padding:t.padding??0})}t.h(jt,`mindmapCircle`);var Mt=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:Ye},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:Ke},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:Xe},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:et},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:le},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:V},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:Ot},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:kt},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:Ue},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:ye},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:Ae},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:ke},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:dt},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:Ee},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:de},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:it},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:ee},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:qe},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:$e},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:Qe},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:ge},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:be},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:te},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:K},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:ne},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:je},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:gt},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:_e},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:ut},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:Le},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:re},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:ue},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:ht},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:vt},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:fe},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:ft},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:he},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:Je},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:Be},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:ze},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:L},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:U},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:rt},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:nt},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:_t},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:We},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:Re}],Nt=t.h(()=>{let e=[...Object.entries({state:Ze,choice:B,note:Ve,rectWithTitle:Ge,labelRect:Oe,iconSquare:we,iconCircle:Se,icon:xe,iconRounded:Ce,imageSquare:Te,anchor:P,kanbanItem:Dt,mindmapCircle:jt,defaultMindmapNode:At,classBox:wt,erBox:xt,requirementBox:Tt}),...Mt.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)();function Pt(e){return e in Nt}t.h(Pt,`isValidShape`);var Ft=new Map;async function It(e,t,r){let i,a;t.shape===`rect`&&(t.rx&&t.ry?t.shape=`roundedRect`:t.shape=`squareRect`);let o=t.shape?Nt[t.shape]:void 0;if(!o)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let n;r.config.securityLevel===`sandbox`?n=`_top`:t.linkTarget&&(n=t.linkTarget||`_blank`),i=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,n??null),a=await o(i,t,r)}else a=await o(e,t,r),i=a;return i.attr(`data-look`,n.l(t.look)),t.tooltip&&a.attr(`title`,t.tooltip),Ft.set(t.id,i),t.haveCallback&&i.attr(`class`,i.attr(`class`)+` clickable`),i}t.h(It,`insertNode`);var Lt=t.h((e,t)=>{Ft.set(t.id,e)},`setNodeElem`),Rt=t.h(()=>{Ft.clear()},`clear`),zt=t.h(e=>{let n=Ft.get(e.id);t.g.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let r=e.diff||0;return e.clusterNode?n.attr(`transform`,`translate(`+(e.x+r-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):n.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),r},`positionNode`);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return l}});
|