dominds 1.25.1 → 1.25.2
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/README.md +4 -3
- package/README.zh.md +4 -3
- package/dist/team.js +4 -1
- package/dist/tools/builtins.js +30 -0
- package/dist/tools/fs.d.ts +2 -0
- package/dist/tools/fs.js +281 -2
- package/dist/tools/os.d.ts +11 -0
- package/dist/tools/os.js +20 -9
- package/dist/tools/picture.d.ts +1 -0
- package/dist/tools/picture.js +64 -1
- package/dist/tools/prompts/codex_inspect_and_patch_tools/en/tools.md +5 -0
- package/dist/tools/prompts/codex_inspect_and_patch_tools/zh/tools.md +5 -0
- package/dist/tools/prompts/fs_read/en/errors.md +6 -0
- package/dist/tools/prompts/fs_read/en/index.md +17 -0
- package/dist/tools/prompts/fs_read/en/principles.md +5 -0
- package/dist/tools/prompts/fs_read/en/scenarios.md +3 -0
- package/dist/tools/prompts/fs_read/en/tools.md +11 -0
- package/dist/tools/prompts/fs_read/zh/errors.md +6 -0
- package/dist/tools/prompts/fs_read/zh/index.md +17 -0
- package/dist/tools/prompts/fs_read/zh/principles.md +5 -0
- package/dist/tools/prompts/fs_read/zh/scenarios.md +3 -0
- package/dist/tools/prompts/fs_read/zh/tools.md +11 -0
- package/dist/tools/prompts/os/en/index.md +1 -1
- package/dist/tools/prompts/os/en/principles.md +1 -1
- package/dist/tools/prompts/os/en/scenarios.md +21 -0
- package/dist/tools/prompts/os/en/tools.md +6 -0
- package/dist/tools/prompts/os/zh/index.md +1 -1
- package/dist/tools/prompts/os/zh/principles.md +1 -1
- package/dist/tools/prompts/os/zh/scenarios.md +21 -0
- package/dist/tools/prompts/os/zh/tools.md +6 -0
- package/dist/tools/registry.d.ts +6 -0
- package/dist/tools/ripgrep.d.ts +5 -0
- package/dist/tools/ripgrep.js +482 -1
- package/dist/tools/txt.d.ts +34 -0
- package/dist/tools/txt.js +221 -1
- package/package.json +3 -3
- package/webapp/dist/assets/{_basePickBy-CG55qWp2.js → _basePickBy-CbWZ8qnS.js} +3 -3
- package/webapp/dist/assets/_basePickBy-CbWZ8qnS.js.map +1 -0
- package/webapp/dist/assets/{_baseUniq-Dd4UGB2O.js → _baseUniq-IY-Vfzx1.js} +2 -2
- package/webapp/dist/assets/_baseUniq-IY-Vfzx1.js.map +1 -0
- package/webapp/dist/assets/{arc-C2qiF4r3.js → arc--U2Vks6y.js} +2 -2
- package/webapp/dist/assets/arc--U2Vks6y.js.map +1 -0
- package/webapp/dist/assets/{architectureDiagram-2XIMDMQ5-DQ4Z8fy_.js → architectureDiagram-VXUJARFQ-DpryGqjy.js} +8 -26
- package/webapp/dist/assets/architectureDiagram-VXUJARFQ-DpryGqjy.js.map +1 -0
- package/webapp/dist/assets/{blockDiagram-WCTKOSBZ-CPvOuMZA.js → blockDiagram-VD42YOAC-TTufCfiE.js} +170 -187
- package/webapp/dist/assets/blockDiagram-VD42YOAC-TTufCfiE.js.map +1 -0
- package/webapp/dist/assets/{c4Diagram-IC4MRINW-DElaFpnJ.js → c4Diagram-YG6GDRKO-B4RPsw5H.js} +4 -4
- package/webapp/dist/assets/c4Diagram-YG6GDRKO-B4RPsw5H.js.map +1 -0
- package/webapp/dist/assets/{channel-BR7mZa90.js → channel-DAtGYJHZ.js} +2 -2
- package/webapp/dist/assets/channel-DAtGYJHZ.js.map +1 -0
- package/webapp/dist/assets/{chunk-4BX2VUAB-DTmXCBYX.js → chunk-4BX2VUAB-JtO__vAF.js} +2 -2
- package/webapp/dist/assets/chunk-4BX2VUAB-JtO__vAF.js.map +1 -0
- package/webapp/dist/assets/{chunk-55IACEB6-DeBB4aJ4.js → chunk-55IACEB6-JMRC8yG1.js} +2 -2
- package/webapp/dist/assets/chunk-55IACEB6-JMRC8yG1.js.map +1 -0
- package/webapp/dist/assets/{chunk-WL4C6EOR-V3Fq1ULq.js → chunk-B4BG7PRW-BDIpf8Iz.js} +121 -171
- package/webapp/dist/assets/chunk-B4BG7PRW-BDIpf8Iz.js.map +1 -0
- package/webapp/dist/assets/{chunk-NQ4KR5QH-DRcsqoac.js → chunk-DI55MBZ5-j9B4rifK.js} +7 -9
- package/webapp/dist/assets/chunk-DI55MBZ5-j9B4rifK.js.map +1 -0
- package/webapp/dist/assets/{chunk-FMBD7UC4-CXpgeev4.js → chunk-FMBD7UC4-DFXKLjHC.js} +2 -2
- package/webapp/dist/assets/chunk-FMBD7UC4-DFXKLjHC.js.map +1 -0
- package/webapp/dist/assets/{chunk-KX2RTZJC-DWG_wpHB.js → chunk-QN33PNHL-BKzkeJ-b.js} +2 -2
- package/webapp/dist/assets/chunk-QN33PNHL-BKzkeJ-b.js.map +1 -0
- package/webapp/dist/assets/{chunk-QZHKN3VN-B9GPAJ2s.js → chunk-QZHKN3VN-DiZd3UNl.js} +2 -2
- package/webapp/dist/assets/chunk-QZHKN3VN-DiZd3UNl.js.map +1 -0
- package/webapp/dist/assets/{chunk-JSJVCQXG-DWfckfhO.js → chunk-TZMSLE5B-BaE4C244.js} +6 -14
- package/webapp/dist/assets/chunk-TZMSLE5B-BaE4C244.js.map +1 -0
- package/webapp/dist/assets/{classDiagram-VBA2DB6C-DspG486Z.js → classDiagram-2ON5EDUG-CNF8ZohD.js} +6 -7
- package/webapp/dist/assets/classDiagram-2ON5EDUG-CNF8ZohD.js.map +1 -0
- package/webapp/dist/assets/{classDiagram-v2-RAHNMMFH-DspG486Z.js → classDiagram-v2-WZHVMYZB-CNF8ZohD.js} +6 -7
- package/webapp/dist/assets/classDiagram-v2-WZHVMYZB-CNF8ZohD.js.map +1 -0
- package/webapp/dist/assets/{clone-M8ztABN5.js → clone-Nq0Ko0Gv.js} +2 -2
- package/webapp/dist/assets/clone-Nq0Ko0Gv.js.map +1 -0
- package/webapp/dist/assets/{cose-bilkent-S5V4N54A-DZihobe3.js → cose-bilkent-S5V4N54A-uHPLSeKv.js} +2 -2
- package/webapp/dist/assets/cose-bilkent-S5V4N54A-uHPLSeKv.js.map +1 -0
- package/webapp/dist/assets/cytoscape.esm-Bm8DJGmZ.js.map +1 -1
- package/webapp/dist/assets/{dagre-KLK3FWXG-DBLWy3vi.js → dagre-6UL2VRFP-C1awWpU3.js} +7 -7
- package/webapp/dist/assets/dagre-6UL2VRFP-C1awWpU3.js.map +1 -0
- package/webapp/dist/assets/defaultLocale-B2RvLBDe.js.map +1 -1
- package/webapp/dist/assets/{diagram-E7M64L7V-D7IrPWaY.js → diagram-PSM6KHXK-Bf69p76M.js} +10 -10
- package/webapp/dist/assets/diagram-PSM6KHXK-Bf69p76M.js.map +1 -0
- package/webapp/dist/assets/{diagram-IFDJBPK2-DbF-vN3U.js → diagram-QEK2KX5R-Bvlbx8Jp.js} +8 -9
- package/webapp/dist/assets/diagram-QEK2KX5R-Bvlbx8Jp.js.map +1 -0
- package/webapp/dist/assets/{diagram-P4PSJMXO-BxBVRVaM.js → diagram-S2PKOQOG-CGjGalBu.js} +8 -8
- package/webapp/dist/assets/diagram-S2PKOQOG-CGjGalBu.js.map +1 -0
- package/webapp/dist/assets/{erDiagram-INFDFZHY-ny9JoOhV.js → erDiagram-Q2GNP2WA-Ds3qhwkG.js} +75 -96
- package/webapp/dist/assets/erDiagram-Q2GNP2WA-Ds3qhwkG.js.map +1 -0
- package/webapp/dist/assets/{flowDiagram-PKNHOUZH-BMgWUlvY.js → flowDiagram-NV44I4VS-B1wDG_l5.js} +81 -98
- package/webapp/dist/assets/flowDiagram-NV44I4VS-B1wDG_l5.js.map +1 -0
- package/webapp/dist/assets/{ganttDiagram-A5KZAMGK-CCYpj3PM.js → ganttDiagram-JELNMOA3-BwuYt2bO.js} +3 -28
- package/webapp/dist/assets/ganttDiagram-JELNMOA3-BwuYt2bO.js.map +1 -0
- package/webapp/dist/assets/{gitGraphDiagram-K3NZZRJ6-BFJGaDtk.js → gitGraphDiagram-V2S2FVAM-B2Tw773z.js} +46 -38
- package/webapp/dist/assets/gitGraphDiagram-V2S2FVAM-B2Tw773z.js.map +1 -0
- package/webapp/dist/assets/graph-CS_H7jBi.js +425 -0
- package/webapp/dist/assets/graph-CS_H7jBi.js.map +1 -0
- package/webapp/dist/assets/{index-EvfDN91D.js → index-arD81Nnh.js} +1056 -1031
- package/webapp/dist/assets/{index-EvfDN91D.js.map → index-arD81Nnh.js.map} +1 -1
- package/webapp/dist/assets/{index-BQoNJEGT.css → index-yycTJNYb.css} +1 -1
- package/webapp/dist/assets/{infoDiagram-LFFYTUFH-Dnve0aOc.js → infoDiagram-HS3SLOUP-C9_JKYhm.js} +7 -7
- package/webapp/dist/assets/infoDiagram-HS3SLOUP-C9_JKYhm.js.map +1 -0
- package/webapp/dist/assets/init-ZxktEp_H.js.map +1 -1
- package/webapp/dist/assets/{journeyDiagram-4ABVD52K-D8_2EbDV.js → journeyDiagram-XKPGCS4Q-BhZggYOL.js} +5 -5
- package/webapp/dist/assets/journeyDiagram-XKPGCS4Q-BhZggYOL.js.map +1 -0
- package/webapp/dist/assets/{kanban-definition-K7BYSVSG-BdmMXQQk.js → kanban-definition-3W4ZIXB7-B-R2Xm4Y.js} +3 -5
- package/webapp/dist/assets/kanban-definition-3W4ZIXB7-B-R2Xm4Y.js.map +1 -0
- package/webapp/dist/assets/{layout-3tA84hoP.js → layout-BzMatxDa.js} +5 -5
- package/webapp/dist/assets/layout-BzMatxDa.js.map +1 -0
- package/webapp/dist/assets/{linear-CpN6Japh.js → linear-BuuJkw_U.js} +2 -2
- package/webapp/dist/assets/linear-BuuJkw_U.js.map +1 -0
- package/webapp/dist/assets/{mindmap-definition-YRQLILUH-HiYNz7qL.js → mindmap-definition-VGOIOE7T-BR7oDKBR.js} +5 -7
- package/webapp/dist/assets/mindmap-definition-VGOIOE7T-BR7oDKBR.js.map +1 -0
- package/webapp/dist/assets/ordinal-CxptdPJm.js.map +1 -1
- package/webapp/dist/assets/{pieDiagram-SKSYHLDU-DCVp50CX.js → pieDiagram-ADFJNKIX--QWeT2vZ.js} +8 -8
- package/webapp/dist/assets/pieDiagram-ADFJNKIX--QWeT2vZ.js.map +1 -0
- package/webapp/dist/assets/{quadrantDiagram-337W2JSQ-CCX7dwY0.js → quadrantDiagram-AYHSOK5B-BpqtmN3r.js} +3 -3
- package/webapp/dist/assets/quadrantDiagram-AYHSOK5B-BpqtmN3r.js.map +1 -0
- package/webapp/dist/assets/{requirementDiagram-Z7DCOOCP-Cba7jjkf.js → requirementDiagram-UZGBJVZJ-CIXjIi4F.js} +6 -16
- package/webapp/dist/assets/requirementDiagram-UZGBJVZJ-CIXjIi4F.js.map +1 -0
- package/webapp/dist/assets/{sankeyDiagram-WA2Y5GQK-Bz4iUubD.js → sankeyDiagram-TZEHDZUN-DJIt7SRz.js} +2 -2
- package/webapp/dist/assets/sankeyDiagram-TZEHDZUN-DJIt7SRz.js.map +1 -0
- package/webapp/dist/assets/{sequenceDiagram-2WXFIKYE-DsFI9bic.js → sequenceDiagram-WL72ISMW-BpDK1ROT.js} +201 -601
- package/webapp/dist/assets/sequenceDiagram-WL72ISMW-BpDK1ROT.js.map +1 -0
- package/webapp/dist/assets/{stateDiagram-RAJIS63D-DLv9OSg4.js → stateDiagram-FKZM4ZOC-BoKGfmHf.js} +9 -9
- package/webapp/dist/assets/stateDiagram-FKZM4ZOC-BoKGfmHf.js.map +1 -0
- package/webapp/dist/assets/{stateDiagram-v2-FVOUBMTO-DVlwzCvy.js → stateDiagram-v2-4FDKWEC3--haXC2JK.js} +5 -5
- package/webapp/dist/assets/stateDiagram-v2-4FDKWEC3--haXC2JK.js.map +1 -0
- package/webapp/dist/assets/{timeline-definition-YZTLITO2-DnKbq6n0.js → timeline-definition-IT6M3QCI-BmSg3Hjf.js} +3 -3
- package/webapp/dist/assets/timeline-definition-IT6M3QCI-BmSg3Hjf.js.map +1 -0
- package/webapp/dist/assets/{treemap-KZPCXAKY-D9fYHZ__.js → treemap-GDKQZRPO-D9OuyDVA.js} +24 -37
- package/webapp/dist/assets/treemap-GDKQZRPO-D9OuyDVA.js.map +1 -0
- package/webapp/dist/assets/{xychartDiagram-JWTSCODW-Bt-gKvam.js → xychartDiagram-PRI3JC2R-CVqSvO_S.js} +4 -4
- package/webapp/dist/assets/xychartDiagram-PRI3JC2R-CVqSvO_S.js.map +1 -0
- package/webapp/dist/index.html +2 -2
- package/webapp/dist/assets/_basePickBy-CG55qWp2.js.map +0 -1
- package/webapp/dist/assets/_baseUniq-Dd4UGB2O.js.map +0 -1
- package/webapp/dist/assets/arc-C2qiF4r3.js.map +0 -1
- package/webapp/dist/assets/architectureDiagram-2XIMDMQ5-DQ4Z8fy_.js.map +0 -1
- package/webapp/dist/assets/blockDiagram-WCTKOSBZ-CPvOuMZA.js.map +0 -1
- package/webapp/dist/assets/c4Diagram-IC4MRINW-DElaFpnJ.js.map +0 -1
- package/webapp/dist/assets/channel-BR7mZa90.js.map +0 -1
- package/webapp/dist/assets/chunk-4BX2VUAB-DTmXCBYX.js.map +0 -1
- package/webapp/dist/assets/chunk-55IACEB6-DeBB4aJ4.js.map +0 -1
- package/webapp/dist/assets/chunk-FMBD7UC4-CXpgeev4.js.map +0 -1
- package/webapp/dist/assets/chunk-JSJVCQXG-DWfckfhO.js.map +0 -1
- package/webapp/dist/assets/chunk-KX2RTZJC-DWG_wpHB.js.map +0 -1
- package/webapp/dist/assets/chunk-NQ4KR5QH-DRcsqoac.js.map +0 -1
- package/webapp/dist/assets/chunk-QZHKN3VN-B9GPAJ2s.js.map +0 -1
- package/webapp/dist/assets/chunk-WL4C6EOR-V3Fq1ULq.js.map +0 -1
- package/webapp/dist/assets/classDiagram-VBA2DB6C-DspG486Z.js.map +0 -1
- package/webapp/dist/assets/classDiagram-v2-RAHNMMFH-DspG486Z.js.map +0 -1
- package/webapp/dist/assets/clone-M8ztABN5.js.map +0 -1
- package/webapp/dist/assets/cose-bilkent-S5V4N54A-DZihobe3.js.map +0 -1
- package/webapp/dist/assets/dagre-KLK3FWXG-DBLWy3vi.js.map +0 -1
- package/webapp/dist/assets/diagram-E7M64L7V-D7IrPWaY.js.map +0 -1
- package/webapp/dist/assets/diagram-IFDJBPK2-DbF-vN3U.js.map +0 -1
- package/webapp/dist/assets/diagram-P4PSJMXO-BxBVRVaM.js.map +0 -1
- package/webapp/dist/assets/erDiagram-INFDFZHY-ny9JoOhV.js.map +0 -1
- package/webapp/dist/assets/flowDiagram-PKNHOUZH-BMgWUlvY.js.map +0 -1
- package/webapp/dist/assets/ganttDiagram-A5KZAMGK-CCYpj3PM.js.map +0 -1
- package/webapp/dist/assets/gitGraphDiagram-K3NZZRJ6-BFJGaDtk.js.map +0 -1
- package/webapp/dist/assets/graph-Cp0m7fHH.js +0 -782
- package/webapp/dist/assets/graph-Cp0m7fHH.js.map +0 -1
- package/webapp/dist/assets/infoDiagram-LFFYTUFH-Dnve0aOc.js.map +0 -1
- package/webapp/dist/assets/ishikawaDiagram-PHBUUO56-DkSZM5sz.js +0 -966
- package/webapp/dist/assets/ishikawaDiagram-PHBUUO56-DkSZM5sz.js.map +0 -1
- package/webapp/dist/assets/journeyDiagram-4ABVD52K-D8_2EbDV.js.map +0 -1
- package/webapp/dist/assets/kanban-definition-K7BYSVSG-BdmMXQQk.js.map +0 -1
- package/webapp/dist/assets/layout-3tA84hoP.js.map +0 -1
- package/webapp/dist/assets/linear-CpN6Japh.js.map +0 -1
- package/webapp/dist/assets/mindmap-definition-YRQLILUH-HiYNz7qL.js.map +0 -1
- package/webapp/dist/assets/pieDiagram-SKSYHLDU-DCVp50CX.js.map +0 -1
- package/webapp/dist/assets/quadrantDiagram-337W2JSQ-CCX7dwY0.js.map +0 -1
- package/webapp/dist/assets/requirementDiagram-Z7DCOOCP-Cba7jjkf.js.map +0 -1
- package/webapp/dist/assets/sankeyDiagram-WA2Y5GQK-Bz4iUubD.js.map +0 -1
- package/webapp/dist/assets/sequenceDiagram-2WXFIKYE-DsFI9bic.js.map +0 -1
- package/webapp/dist/assets/stateDiagram-RAJIS63D-DLv9OSg4.js.map +0 -1
- package/webapp/dist/assets/stateDiagram-v2-FVOUBMTO-DVlwzCvy.js.map +0 -1
- package/webapp/dist/assets/timeline-definition-YZTLITO2-DnKbq6n0.js.map +0 -1
- package/webapp/dist/assets/treemap-KZPCXAKY-D9fYHZ__.js.map +0 -1
- package/webapp/dist/assets/vennDiagram-LZ73GAT5-CzKI47Ba.js +0 -2487
- package/webapp/dist/assets/vennDiagram-LZ73GAT5-CzKI47Ba.js.map +0 -1
- package/webapp/dist/assets/xychartDiagram-JWTSCODW-Bt-gKvam.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-C1awWpU3.js","assets/graph-CS_H7jBi.js","assets/_baseUniq-IY-Vfzx1.js","assets/layout-BzMatxDa.js","assets/_basePickBy-CbWZ8qnS.js","assets/clone-Nq0Ko0Gv.js","assets/cose-bilkent-S5V4N54A-uHPLSeKv.js","assets/cytoscape.esm-Bm8DJGmZ.js","assets/c4Diagram-YG6GDRKO-B4RPsw5H.js","assets/chunk-TZMSLE5B-BaE4C244.js","assets/flowDiagram-NV44I4VS-B1wDG_l5.js","assets/chunk-FMBD7UC4-DFXKLjHC.js","assets/chunk-55IACEB6-JMRC8yG1.js","assets/chunk-QN33PNHL-BKzkeJ-b.js","assets/channel-DAtGYJHZ.js","assets/erDiagram-Q2GNP2WA-Ds3qhwkG.js","assets/gitGraphDiagram-V2S2FVAM-B2Tw773z.js","assets/chunk-4BX2VUAB-JtO__vAF.js","assets/chunk-QZHKN3VN-DiZd3UNl.js","assets/treemap-GDKQZRPO-D9OuyDVA.js","assets/ganttDiagram-JELNMOA3-BwuYt2bO.js","assets/linear-BuuJkw_U.js","assets/init-ZxktEp_H.js","assets/defaultLocale-B2RvLBDe.js","assets/infoDiagram-HS3SLOUP-C9_JKYhm.js","assets/pieDiagram-ADFJNKIX--QWeT2vZ.js","assets/arc--U2Vks6y.js","assets/ordinal-CxptdPJm.js","assets/quadrantDiagram-AYHSOK5B-BpqtmN3r.js","assets/xychartDiagram-PRI3JC2R-CVqSvO_S.js","assets/requirementDiagram-UZGBJVZJ-CIXjIi4F.js","assets/sequenceDiagram-WL72ISMW-BpDK1ROT.js","assets/classDiagram-2ON5EDUG-CNF8ZohD.js","assets/chunk-B4BG7PRW-BDIpf8Iz.js","assets/classDiagram-v2-WZHVMYZB-CNF8ZohD.js","assets/stateDiagram-FKZM4ZOC-BoKGfmHf.js","assets/chunk-DI55MBZ5-j9B4rifK.js","assets/stateDiagram-v2-4FDKWEC3--haXC2JK.js","assets/journeyDiagram-XKPGCS4Q-BhZggYOL.js","assets/timeline-definition-IT6M3QCI-BmSg3Hjf.js","assets/mindmap-definition-VGOIOE7T-BR7oDKBR.js","assets/kanban-definition-3W4ZIXB7-B-R2Xm4Y.js","assets/sankeyDiagram-TZEHDZUN-DJIt7SRz.js","assets/diagram-S2PKOQOG-CGjGalBu.js","assets/diagram-QEK2KX5R-Bvlbx8Jp.js","assets/blockDiagram-VD42YOAC-TTufCfiE.js","assets/architectureDiagram-VXUJARFQ-DpryGqjy.js","assets/diagram-PSM6KHXK-Bf69p76M.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -5661,7 +5661,7 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
5661
5661
|
function createDOMPurify() {
|
|
5662
5662
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
5663
5663
|
const DOMPurify = (root2) => createDOMPurify(root2);
|
|
5664
|
-
DOMPurify.version = "3.3.
|
|
5664
|
+
DOMPurify.version = "3.3.2";
|
|
5665
5665
|
DOMPurify.removed = [];
|
|
5666
5666
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
5667
5667
|
DOMPurify.isSupported = false;
|
|
@@ -11597,9 +11597,9 @@ MarkdownIt.prototype.disable = function(list2, ignoreInvalid) {
|
|
|
11597
11597
|
}
|
|
11598
11598
|
return this;
|
|
11599
11599
|
};
|
|
11600
|
-
MarkdownIt.prototype.use = function(
|
|
11600
|
+
MarkdownIt.prototype.use = function(plugin22) {
|
|
11601
11601
|
const args = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
11602
|
-
|
|
11602
|
+
plugin22.apply(plugin22, args);
|
|
11603
11603
|
return this;
|
|
11604
11604
|
};
|
|
11605
11605
|
MarkdownIt.prototype.parse = function(src, env) {
|
|
@@ -13075,37 +13075,37 @@ function requireCore() {
|
|
|
13075
13075
|
const lang = getLanguage(name);
|
|
13076
13076
|
return lang && !lang.disableAutodetect;
|
|
13077
13077
|
}
|
|
13078
|
-
function upgradePluginAPI(
|
|
13079
|
-
if (
|
|
13080
|
-
|
|
13081
|
-
|
|
13078
|
+
function upgradePluginAPI(plugin22) {
|
|
13079
|
+
if (plugin22["before:highlightBlock"] && !plugin22["before:highlightElement"]) {
|
|
13080
|
+
plugin22["before:highlightElement"] = (data) => {
|
|
13081
|
+
plugin22["before:highlightBlock"](
|
|
13082
13082
|
Object.assign({ block: data.el }, data)
|
|
13083
13083
|
);
|
|
13084
13084
|
};
|
|
13085
13085
|
}
|
|
13086
|
-
if (
|
|
13087
|
-
|
|
13088
|
-
|
|
13086
|
+
if (plugin22["after:highlightBlock"] && !plugin22["after:highlightElement"]) {
|
|
13087
|
+
plugin22["after:highlightElement"] = (data) => {
|
|
13088
|
+
plugin22["after:highlightBlock"](
|
|
13089
13089
|
Object.assign({ block: data.el }, data)
|
|
13090
13090
|
);
|
|
13091
13091
|
};
|
|
13092
13092
|
}
|
|
13093
13093
|
}
|
|
13094
|
-
function addPlugin(
|
|
13095
|
-
upgradePluginAPI(
|
|
13096
|
-
plugins.push(
|
|
13094
|
+
function addPlugin(plugin22) {
|
|
13095
|
+
upgradePluginAPI(plugin22);
|
|
13096
|
+
plugins.push(plugin22);
|
|
13097
13097
|
}
|
|
13098
|
-
function removePlugin(
|
|
13099
|
-
const index = plugins.indexOf(
|
|
13098
|
+
function removePlugin(plugin22) {
|
|
13099
|
+
const index = plugins.indexOf(plugin22);
|
|
13100
13100
|
if (index !== -1) {
|
|
13101
13101
|
plugins.splice(index, 1);
|
|
13102
13102
|
}
|
|
13103
13103
|
}
|
|
13104
13104
|
function fire(event, args) {
|
|
13105
13105
|
const cb = event;
|
|
13106
|
-
plugins.forEach(function(
|
|
13107
|
-
if (
|
|
13108
|
-
|
|
13106
|
+
plugins.forEach(function(plugin22) {
|
|
13107
|
+
if (plugin22[cb]) {
|
|
13108
|
+
plugin22[cb](args);
|
|
13109
13109
|
}
|
|
13110
13110
|
});
|
|
13111
13111
|
}
|
|
@@ -64733,8 +64733,8 @@ class Settings {
|
|
|
64733
64733
|
}
|
|
64734
64734
|
}
|
|
64735
64735
|
class Style {
|
|
64736
|
-
constructor(
|
|
64737
|
-
this.id =
|
|
64736
|
+
constructor(id28, size, cramped) {
|
|
64737
|
+
this.id = id28;
|
|
64738
64738
|
this.size = size;
|
|
64739
64739
|
this.cramped = cramped;
|
|
64740
64740
|
}
|
|
@@ -65062,44 +65062,6 @@ var tallDelim = function tallDelim2(label, midHeight) {
|
|
|
65062
65062
|
throw new Error("Unknown stretchy delimiter.");
|
|
65063
65063
|
}
|
|
65064
65064
|
};
|
|
65065
|
-
class DocumentFragment {
|
|
65066
|
-
// Never used; needed for satisfying interface.
|
|
65067
|
-
constructor(children2) {
|
|
65068
|
-
this.children = children2;
|
|
65069
|
-
this.classes = [];
|
|
65070
|
-
this.height = 0;
|
|
65071
|
-
this.depth = 0;
|
|
65072
|
-
this.maxFontSize = 0;
|
|
65073
|
-
this.style = {};
|
|
65074
|
-
}
|
|
65075
|
-
hasClass(className) {
|
|
65076
|
-
return this.classes.includes(className);
|
|
65077
|
-
}
|
|
65078
|
-
/** Convert the fragment into a node. */
|
|
65079
|
-
toNode() {
|
|
65080
|
-
var frag = document.createDocumentFragment();
|
|
65081
|
-
for (var i2 = 0; i2 < this.children.length; i2++) {
|
|
65082
|
-
frag.appendChild(this.children[i2].toNode());
|
|
65083
|
-
}
|
|
65084
|
-
return frag;
|
|
65085
|
-
}
|
|
65086
|
-
/** Convert the fragment into HTML markup. */
|
|
65087
|
-
toMarkup() {
|
|
65088
|
-
var markup = "";
|
|
65089
|
-
for (var i2 = 0; i2 < this.children.length; i2++) {
|
|
65090
|
-
markup += this.children[i2].toMarkup();
|
|
65091
|
-
}
|
|
65092
|
-
return markup;
|
|
65093
|
-
}
|
|
65094
|
-
/**
|
|
65095
|
-
* Converts the math node into a string, similar to innerText. Applies to
|
|
65096
|
-
* MathDomNode's only.
|
|
65097
|
-
*/
|
|
65098
|
-
toText() {
|
|
65099
|
-
var toText = (child) => child.toText();
|
|
65100
|
-
return this.children.map(toText).join("");
|
|
65101
|
-
}
|
|
65102
|
-
}
|
|
65103
65065
|
var ptPerUnit = {
|
|
65104
65066
|
// https://en.wikibooks.org/wiki/LaTeX/Lengths and
|
|
65105
65067
|
// https://tex.stackexchange.com/a/8263
|
|
@@ -65483,7 +65445,6 @@ function assertSpan(group) {
|
|
|
65483
65445
|
throw new Error("Expected span<HtmlDomNode> but got " + String(group) + ".");
|
|
65484
65446
|
}
|
|
65485
65447
|
}
|
|
65486
|
-
var hasHtmlDomChildren = (node2) => node2 instanceof Span || node2 instanceof Anchor || node2 instanceof DocumentFragment;
|
|
65487
65448
|
var fontMetricsData = {
|
|
65488
65449
|
"AMS-Regular": {
|
|
65489
65450
|
"32": [0, 0, 0, 0, 0.25],
|
|
@@ -68591,6 +68552,44 @@ var wideCharacterFont = (wideChar2, mode) => {
|
|
|
68591
68552
|
throw new ParseError("Unsupported character: " + wideChar2);
|
|
68592
68553
|
}
|
|
68593
68554
|
};
|
|
68555
|
+
class DocumentFragment {
|
|
68556
|
+
// Never used; needed for satisfying interface.
|
|
68557
|
+
constructor(children2) {
|
|
68558
|
+
this.children = children2;
|
|
68559
|
+
this.classes = [];
|
|
68560
|
+
this.height = 0;
|
|
68561
|
+
this.depth = 0;
|
|
68562
|
+
this.maxFontSize = 0;
|
|
68563
|
+
this.style = {};
|
|
68564
|
+
}
|
|
68565
|
+
hasClass(className) {
|
|
68566
|
+
return this.classes.includes(className);
|
|
68567
|
+
}
|
|
68568
|
+
/** Convert the fragment into a node. */
|
|
68569
|
+
toNode() {
|
|
68570
|
+
var frag = document.createDocumentFragment();
|
|
68571
|
+
for (var i2 = 0; i2 < this.children.length; i2++) {
|
|
68572
|
+
frag.appendChild(this.children[i2].toNode());
|
|
68573
|
+
}
|
|
68574
|
+
return frag;
|
|
68575
|
+
}
|
|
68576
|
+
/** Convert the fragment into HTML markup. */
|
|
68577
|
+
toMarkup() {
|
|
68578
|
+
var markup = "";
|
|
68579
|
+
for (var i2 = 0; i2 < this.children.length; i2++) {
|
|
68580
|
+
markup += this.children[i2].toMarkup();
|
|
68581
|
+
}
|
|
68582
|
+
return markup;
|
|
68583
|
+
}
|
|
68584
|
+
/**
|
|
68585
|
+
* Converts the math node into a string, similar to innerText. Applies to
|
|
68586
|
+
* MathDomNode's only.
|
|
68587
|
+
*/
|
|
68588
|
+
toText() {
|
|
68589
|
+
var toText = (child) => child.toText();
|
|
68590
|
+
return this.children.map(toText).join("");
|
|
68591
|
+
}
|
|
68592
|
+
}
|
|
68594
68593
|
var lookupSymbol = function lookupSymbol2(value, fontName, mode) {
|
|
68595
68594
|
if (symbols[mode][value]) {
|
|
68596
68595
|
var replacement = symbols[mode][value].replace;
|
|
@@ -70291,14 +70290,6 @@ function checkSymbolNodeType(node2) {
|
|
|
70291
70290
|
}
|
|
70292
70291
|
return null;
|
|
70293
70292
|
}
|
|
70294
|
-
var getBaseSymbol = (group) => {
|
|
70295
|
-
if (group instanceof SymbolNode) {
|
|
70296
|
-
return group;
|
|
70297
|
-
}
|
|
70298
|
-
if (hasHtmlDomChildren(group) && group.children.length === 1) {
|
|
70299
|
-
return getBaseSymbol(group.children[0]);
|
|
70300
|
-
}
|
|
70301
|
-
};
|
|
70302
70293
|
var htmlBuilder$a = (grp, options) => {
|
|
70303
70294
|
var base2;
|
|
70304
70295
|
var group;
|
|
@@ -70317,8 +70308,9 @@ var htmlBuilder$a = (grp, options) => {
|
|
|
70317
70308
|
var mustShift = group.isShifty && isCharacterBox(base2);
|
|
70318
70309
|
var skew2 = 0;
|
|
70319
70310
|
if (mustShift) {
|
|
70320
|
-
var
|
|
70321
|
-
|
|
70311
|
+
var baseChar = getBaseElem(base2);
|
|
70312
|
+
var baseGroup = buildGroup$1(baseChar, options.havingCrampedStyle());
|
|
70313
|
+
skew2 = assertSymbolDomNode(baseGroup).skew;
|
|
70322
70314
|
}
|
|
70323
70315
|
var accentBelow = group.label === "\\c";
|
|
70324
70316
|
var clearance = accentBelow ? body.height + body.depth : Math.min(body.height, options.fontMetrics().xHeight);
|
|
@@ -78615,7 +78607,7 @@ var renderToHTMLTree = function renderToHTMLTree2(expression, options) {
|
|
|
78615
78607
|
return renderError(error2, expression, settings);
|
|
78616
78608
|
}
|
|
78617
78609
|
};
|
|
78618
|
-
var version = "0.16.
|
|
78610
|
+
var version = "0.16.37";
|
|
78619
78611
|
var __domTree = {
|
|
78620
78612
|
Span,
|
|
78621
78613
|
Anchor,
|
|
@@ -78845,6 +78837,147 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
78845
78837
|
return baseModule().catch(handlePreloadError);
|
|
78846
78838
|
});
|
|
78847
78839
|
};
|
|
78840
|
+
var package_default = {
|
|
78841
|
+
name: "mermaid",
|
|
78842
|
+
version: "11.12.3",
|
|
78843
|
+
description: "Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",
|
|
78844
|
+
type: "module",
|
|
78845
|
+
module: "./dist/mermaid.core.mjs",
|
|
78846
|
+
types: "./dist/mermaid.d.ts",
|
|
78847
|
+
exports: {
|
|
78848
|
+
".": {
|
|
78849
|
+
types: "./dist/mermaid.d.ts",
|
|
78850
|
+
import: "./dist/mermaid.core.mjs",
|
|
78851
|
+
default: "./dist/mermaid.core.mjs"
|
|
78852
|
+
},
|
|
78853
|
+
"./*": "./*"
|
|
78854
|
+
},
|
|
78855
|
+
keywords: [
|
|
78856
|
+
"diagram",
|
|
78857
|
+
"markdown",
|
|
78858
|
+
"flowchart",
|
|
78859
|
+
"sequence diagram",
|
|
78860
|
+
"gantt",
|
|
78861
|
+
"class diagram",
|
|
78862
|
+
"git graph",
|
|
78863
|
+
"mindmap",
|
|
78864
|
+
"packet diagram",
|
|
78865
|
+
"c4 diagram",
|
|
78866
|
+
"er diagram",
|
|
78867
|
+
"pie chart",
|
|
78868
|
+
"pie diagram",
|
|
78869
|
+
"quadrant chart",
|
|
78870
|
+
"requirement diagram",
|
|
78871
|
+
"graph"
|
|
78872
|
+
],
|
|
78873
|
+
scripts: {
|
|
78874
|
+
clean: "rimraf dist",
|
|
78875
|
+
dev: "pnpm -w dev",
|
|
78876
|
+
"docs:code": "typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup",
|
|
78877
|
+
"docs:build": "rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts",
|
|
78878
|
+
"docs:verify": "pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify",
|
|
78879
|
+
"docs:pre:vitepress": "pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts",
|
|
78880
|
+
"docs:build:vitepress": "pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing",
|
|
78881
|
+
"docs:dev": 'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',
|
|
78882
|
+
"docs:dev:docker": 'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',
|
|
78883
|
+
"docs:serve": "pnpm docs:build:vitepress && vitepress serve src/vitepress",
|
|
78884
|
+
"docs:spellcheck": 'cspell "src/docs/**/*.md"',
|
|
78885
|
+
"docs:release-version": "tsx scripts/update-release-version.mts",
|
|
78886
|
+
"docs:verify-version": "tsx scripts/update-release-version.mts --verify",
|
|
78887
|
+
"types:build-config": "tsx scripts/create-types-from-json-schema.mts",
|
|
78888
|
+
"types:verify-config": "tsx scripts/create-types-from-json-schema.mts --verify",
|
|
78889
|
+
checkCircle: "npx madge --circular ./src",
|
|
78890
|
+
prepublishOnly: "pnpm docs:verify-version"
|
|
78891
|
+
},
|
|
78892
|
+
repository: {
|
|
78893
|
+
type: "git",
|
|
78894
|
+
url: "https://github.com/mermaid-js/mermaid"
|
|
78895
|
+
},
|
|
78896
|
+
author: "Knut Sveidqvist",
|
|
78897
|
+
license: "MIT",
|
|
78898
|
+
standard: {
|
|
78899
|
+
ignore: [
|
|
78900
|
+
"**/parser/*.js",
|
|
78901
|
+
"dist/**/*.js",
|
|
78902
|
+
"cypress/**/*.js"
|
|
78903
|
+
],
|
|
78904
|
+
globals: [
|
|
78905
|
+
"page"
|
|
78906
|
+
]
|
|
78907
|
+
},
|
|
78908
|
+
dependencies: {
|
|
78909
|
+
"@braintree/sanitize-url": "^7.1.1",
|
|
78910
|
+
"@iconify/utils": "^3.0.1",
|
|
78911
|
+
"@mermaid-js/parser": "workspace:^",
|
|
78912
|
+
"@types/d3": "^7.4.3",
|
|
78913
|
+
cytoscape: "^3.29.3",
|
|
78914
|
+
"cytoscape-cose-bilkent": "^4.1.0",
|
|
78915
|
+
"cytoscape-fcose": "^2.2.0",
|
|
78916
|
+
d3: "^7.9.0",
|
|
78917
|
+
"d3-sankey": "^0.12.3",
|
|
78918
|
+
"dagre-d3-es": "7.0.13",
|
|
78919
|
+
dayjs: "^1.11.18",
|
|
78920
|
+
dompurify: "^3.2.5",
|
|
78921
|
+
katex: "^0.16.22",
|
|
78922
|
+
khroma: "^2.1.0",
|
|
78923
|
+
"lodash-es": "^4.17.23",
|
|
78924
|
+
marked: "^16.2.1",
|
|
78925
|
+
roughjs: "^4.6.6",
|
|
78926
|
+
stylis: "^4.3.6",
|
|
78927
|
+
"ts-dedent": "^2.2.0",
|
|
78928
|
+
uuid: "^11.1.0"
|
|
78929
|
+
},
|
|
78930
|
+
devDependencies: {
|
|
78931
|
+
"@adobe/jsonschema2md": "^8.0.5",
|
|
78932
|
+
"@iconify/types": "^2.0.0",
|
|
78933
|
+
"@types/cytoscape": "^3.21.9",
|
|
78934
|
+
"@types/cytoscape-fcose": "^2.2.4",
|
|
78935
|
+
"@types/d3-sankey": "^0.12.4",
|
|
78936
|
+
"@types/d3-scale": "^4.0.9",
|
|
78937
|
+
"@types/d3-scale-chromatic": "^3.1.0",
|
|
78938
|
+
"@types/d3-selection": "^3.0.11",
|
|
78939
|
+
"@types/d3-shape": "^3.1.7",
|
|
78940
|
+
"@types/jsdom": "^21.1.7",
|
|
78941
|
+
"@types/katex": "^0.16.7",
|
|
78942
|
+
"@types/lodash-es": "^4.17.12",
|
|
78943
|
+
"@types/micromatch": "^4.0.9",
|
|
78944
|
+
"@types/stylis": "^4.2.7",
|
|
78945
|
+
"@types/uuid": "^10.0.0",
|
|
78946
|
+
ajv: "^8.17.1",
|
|
78947
|
+
canvas: "^3.1.2",
|
|
78948
|
+
chokidar: "3.6.0",
|
|
78949
|
+
concurrently: "^9.1.2",
|
|
78950
|
+
"csstree-validator": "^4.0.1",
|
|
78951
|
+
globby: "^14.1.0",
|
|
78952
|
+
jison: "^0.4.18",
|
|
78953
|
+
"js-base64": "^3.7.8",
|
|
78954
|
+
jsdom: "^26.1.0",
|
|
78955
|
+
"json-schema-to-typescript": "^15.0.4",
|
|
78956
|
+
micromatch: "^4.0.8",
|
|
78957
|
+
"path-browserify": "^1.0.1",
|
|
78958
|
+
prettier: "^3.5.3",
|
|
78959
|
+
remark: "^15.0.1",
|
|
78960
|
+
"remark-frontmatter": "^5.0.0",
|
|
78961
|
+
"remark-gfm": "^4.0.1",
|
|
78962
|
+
rimraf: "^6.0.1",
|
|
78963
|
+
"start-server-and-test": "^2.0.13",
|
|
78964
|
+
"type-fest": "^4.35.0",
|
|
78965
|
+
typedoc: "^0.28.12",
|
|
78966
|
+
"typedoc-plugin-markdown": "^4.8.1",
|
|
78967
|
+
typescript: "~5.7.3",
|
|
78968
|
+
"unist-util-flatmap": "^1.0.0",
|
|
78969
|
+
"unist-util-visit": "^5.0.0",
|
|
78970
|
+
vitepress: "^1.6.4",
|
|
78971
|
+
"vitepress-plugin-search": "1.0.4-alpha.22"
|
|
78972
|
+
},
|
|
78973
|
+
files: [
|
|
78974
|
+
"dist/",
|
|
78975
|
+
"README.md"
|
|
78976
|
+
],
|
|
78977
|
+
publishConfig: {
|
|
78978
|
+
access: "public"
|
|
78979
|
+
}
|
|
78980
|
+
};
|
|
78848
78981
|
var dayjs_min$1 = { exports: {} };
|
|
78849
78982
|
var dayjs_min = dayjs_min$1.exports;
|
|
78850
78983
|
var hasRequiredDayjs_min;
|
|
@@ -79865,8 +79998,8 @@ var UnknownDiagramError = (_a2 = class extends Error {
|
|
|
79865
79998
|
var detectors = {};
|
|
79866
79999
|
var detectType$1 = /* @__PURE__ */ __name(function(text2, config2) {
|
|
79867
80000
|
text2 = text2.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
|
|
79868
|
-
for (const [key, { detector:
|
|
79869
|
-
const diagram2 =
|
|
80001
|
+
for (const [key, { detector: detector28 }] of Object.entries(detectors)) {
|
|
80002
|
+
const diagram2 = detector28(text2, config2);
|
|
79870
80003
|
if (diagram2) {
|
|
79871
80004
|
return key;
|
|
79872
80005
|
}
|
|
@@ -79876,16 +80009,16 @@ var detectType$1 = /* @__PURE__ */ __name(function(text2, config2) {
|
|
|
79876
80009
|
);
|
|
79877
80010
|
}, "detectType");
|
|
79878
80011
|
var registerLazyLoadedDiagrams = /* @__PURE__ */ __name((...diagrams2) => {
|
|
79879
|
-
for (const { id:
|
|
79880
|
-
addDetector(
|
|
80012
|
+
for (const { id: id28, detector: detector28, loader: loader28 } of diagrams2) {
|
|
80013
|
+
addDetector(id28, detector28, loader28);
|
|
79881
80014
|
}
|
|
79882
80015
|
}, "registerLazyLoadedDiagrams");
|
|
79883
|
-
var addDetector = /* @__PURE__ */ __name((key,
|
|
80016
|
+
var addDetector = /* @__PURE__ */ __name((key, detector28, loader28) => {
|
|
79884
80017
|
if (detectors[key]) {
|
|
79885
80018
|
log.warn(`Detector with key ${key} already exists. Overwriting.`);
|
|
79886
80019
|
}
|
|
79887
|
-
detectors[key] = { detector:
|
|
79888
|
-
log.debug(`Detector with key ${key} added${
|
|
80020
|
+
detectors[key] = { detector: detector28, loader: loader28 };
|
|
80021
|
+
log.debug(`Detector with key ${key} added${loader28 ? " with loader" : ""}`);
|
|
79889
80022
|
}, "addDetector");
|
|
79890
80023
|
var getDiagramLoader = /* @__PURE__ */ __name((key) => {
|
|
79891
80024
|
return detectors[key].loader;
|
|
@@ -79912,7 +80045,7 @@ var assignWithDepth = /* @__PURE__ */ __name((dst, src, { depth = 2, clobber = f
|
|
|
79912
80045
|
}
|
|
79913
80046
|
if (src !== void 0 && typeof dst === "object" && typeof src === "object") {
|
|
79914
80047
|
Object.keys(src).forEach((key) => {
|
|
79915
|
-
if (typeof src[key] === "object" &&
|
|
80048
|
+
if (typeof src[key] === "object" && (dst[key] === void 0 || typeof dst[key] === "object")) {
|
|
79916
80049
|
if (dst[key] === void 0) {
|
|
79917
80050
|
dst[key] = Array.isArray(src[key]) ? [] : {};
|
|
79918
80051
|
}
|
|
@@ -80093,16 +80226,6 @@ var Theme = (_b = class {
|
|
|
80093
80226
|
this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
|
|
80094
80227
|
this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
|
|
80095
80228
|
this.pieOpacity = this.pieOpacity || "0.7";
|
|
80096
|
-
this.venn1 = this.venn1 ?? adjust(this.primaryColor, { l: -30 });
|
|
80097
|
-
this.venn2 = this.venn2 ?? adjust(this.secondaryColor, { l: -30 });
|
|
80098
|
-
this.venn3 = this.venn3 ?? adjust(this.tertiaryColor, { l: -30 });
|
|
80099
|
-
this.venn4 = this.venn4 ?? adjust(this.primaryColor, { h: 60, l: -30 });
|
|
80100
|
-
this.venn5 = this.venn5 ?? adjust(this.primaryColor, { h: -60, l: -30 });
|
|
80101
|
-
this.venn6 = this.venn6 ?? adjust(this.secondaryColor, { h: 60, l: -30 });
|
|
80102
|
-
this.venn7 = this.venn7 ?? adjust(this.primaryColor, { h: 120, l: -30 });
|
|
80103
|
-
this.venn8 = this.venn8 ?? adjust(this.secondaryColor, { h: 120, l: -30 });
|
|
80104
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
|
|
80105
|
-
this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
|
|
80106
80229
|
this.radar = {
|
|
80107
80230
|
axisColor: this.radar?.axisColor || this.lineColor,
|
|
80108
80231
|
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
@@ -80344,7 +80467,7 @@ var Theme2 = (_c = class {
|
|
|
80344
80467
|
this.taskTextOutsideColor = this.taskTextLightColor;
|
|
80345
80468
|
this.gridColor = this.mainContrastColor;
|
|
80346
80469
|
this.doneTaskBkgColor = this.mainContrastColor;
|
|
80347
|
-
this.taskTextDarkColor =
|
|
80470
|
+
this.taskTextDarkColor = this.darkTextColor;
|
|
80348
80471
|
this.archEdgeColor = this.lineColor;
|
|
80349
80472
|
this.archEdgeArrowColor = this.lineColor;
|
|
80350
80473
|
this.transitionColor = this.transitionColor || this.lineColor;
|
|
@@ -80410,21 +80533,16 @@ var Theme2 = (_c = class {
|
|
|
80410
80533
|
this["pie" + i2] = this["cScale" + i2];
|
|
80411
80534
|
}
|
|
80412
80535
|
this.pieTitleTextSize = this.pieTitleTextSize || "25px";
|
|
80413
|
-
this.pieTitleTextColor = this.pieTitleTextColor || this.
|
|
80536
|
+
this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor;
|
|
80414
80537
|
this.pieSectionTextSize = this.pieSectionTextSize || "17px";
|
|
80415
80538
|
this.pieSectionTextColor = this.pieSectionTextColor || this.textColor;
|
|
80416
80539
|
this.pieLegendTextSize = this.pieLegendTextSize || "17px";
|
|
80417
|
-
this.pieLegendTextColor = this.pieLegendTextColor || this.
|
|
80540
|
+
this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor;
|
|
80418
80541
|
this.pieStrokeColor = this.pieStrokeColor || "black";
|
|
80419
80542
|
this.pieStrokeWidth = this.pieStrokeWidth || "2px";
|
|
80420
80543
|
this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
|
|
80421
80544
|
this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
|
|
80422
80545
|
this.pieOpacity = this.pieOpacity || "0.7";
|
|
80423
|
-
for (let i2 = 0; i2 < 8; i2++) {
|
|
80424
|
-
this["venn" + (i2 + 1)] = this["venn" + (i2 + 1)] ?? lighten(this["cScale" + i2], 30);
|
|
80425
|
-
}
|
|
80426
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
|
|
80427
|
-
this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
|
|
80428
80546
|
this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
|
|
80429
80547
|
this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
|
|
80430
80548
|
this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
|
|
@@ -80743,16 +80861,6 @@ var Theme3 = (_d = class {
|
|
|
80743
80861
|
this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
|
|
80744
80862
|
this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
|
|
80745
80863
|
this.pieOpacity = this.pieOpacity || "0.7";
|
|
80746
|
-
this.venn1 = this.venn1 ?? adjust(this.primaryColor, { l: -30 });
|
|
80747
|
-
this.venn2 = this.venn2 ?? adjust(this.secondaryColor, { l: -30 });
|
|
80748
|
-
this.venn3 = this.venn3 ?? adjust(this.tertiaryColor, { l: -40 });
|
|
80749
|
-
this.venn4 = this.venn4 ?? adjust(this.primaryColor, { h: 60, l: -30 });
|
|
80750
|
-
this.venn5 = this.venn5 ?? adjust(this.primaryColor, { h: -60, l: -30 });
|
|
80751
|
-
this.venn6 = this.venn6 ?? adjust(this.secondaryColor, { h: 60, l: -30 });
|
|
80752
|
-
this.venn7 = this.venn7 ?? adjust(this.primaryColor, { h: 120, l: -30 });
|
|
80753
|
-
this.venn8 = this.venn8 ?? adjust(this.secondaryColor, { h: 120, l: -30 });
|
|
80754
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
|
|
80755
|
-
this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
|
|
80756
80864
|
this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
|
|
80757
80865
|
this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
|
|
80758
80866
|
this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
|
|
@@ -81054,16 +81162,6 @@ var Theme4 = (_e2 = class {
|
|
|
81054
81162
|
this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
|
|
81055
81163
|
this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
|
|
81056
81164
|
this.pieOpacity = this.pieOpacity || "0.7";
|
|
81057
|
-
this.venn1 = this.venn1 ?? adjust(this.primaryColor, { l: -30 });
|
|
81058
|
-
this.venn2 = this.venn2 ?? adjust(this.secondaryColor, { l: -30 });
|
|
81059
|
-
this.venn3 = this.venn3 ?? adjust(this.tertiaryColor, { l: -30 });
|
|
81060
|
-
this.venn4 = this.venn4 ?? adjust(this.primaryColor, { h: 60, l: -30 });
|
|
81061
|
-
this.venn5 = this.venn5 ?? adjust(this.primaryColor, { h: -60, l: -30 });
|
|
81062
|
-
this.venn6 = this.venn6 ?? adjust(this.secondaryColor, { h: 60, l: -30 });
|
|
81063
|
-
this.venn7 = this.venn7 ?? adjust(this.primaryColor, { h: 120, l: -30 });
|
|
81064
|
-
this.venn8 = this.venn8 ?? adjust(this.secondaryColor, { h: 120, l: -30 });
|
|
81065
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
|
|
81066
|
-
this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
|
|
81067
81165
|
this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
|
|
81068
81166
|
this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
|
|
81069
81167
|
this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
|
|
@@ -81385,11 +81483,6 @@ var Theme5 = (_f = class {
|
|
|
81385
81483
|
this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
|
|
81386
81484
|
this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
|
|
81387
81485
|
this.pieOpacity = this.pieOpacity || "0.7";
|
|
81388
|
-
for (let i2 = 0; i2 < 8; i2++) {
|
|
81389
|
-
this["venn" + (i2 + 1)] = this["venn" + (i2 + 1)] ?? this["cScale" + i2];
|
|
81390
|
-
}
|
|
81391
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
|
|
81392
|
-
this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
|
|
81393
81486
|
this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
|
|
81394
81487
|
this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
|
|
81395
81488
|
this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
|
|
@@ -81518,7 +81611,7 @@ var config_schema_default = {
|
|
|
81518
81611
|
"bottom": 0
|
|
81519
81612
|
},
|
|
81520
81613
|
"diagramPadding": 8,
|
|
81521
|
-
"htmlLabels":
|
|
81614
|
+
"htmlLabels": true,
|
|
81522
81615
|
"nodeSpacing": 50,
|
|
81523
81616
|
"rankSpacing": 50,
|
|
81524
81617
|
"curve": "basis",
|
|
@@ -81749,10 +81842,6 @@ var config_schema_default = {
|
|
|
81749
81842
|
"maxNodeWidth": 200,
|
|
81750
81843
|
"layoutAlgorithm": "cose-bilkent"
|
|
81751
81844
|
},
|
|
81752
|
-
"ishikawa": {
|
|
81753
|
-
"useMaxWidth": true,
|
|
81754
|
-
"diagramPadding": 20
|
|
81755
|
-
},
|
|
81756
81845
|
"kanban": {
|
|
81757
81846
|
"useMaxWidth": true,
|
|
81758
81847
|
"padding": 8,
|
|
@@ -81980,13 +82069,6 @@ var config_schema_default = {
|
|
|
81980
82069
|
"axisLabelFactor": 1.05,
|
|
81981
82070
|
"curveTension": 0.17
|
|
81982
82071
|
},
|
|
81983
|
-
"venn": {
|
|
81984
|
-
"useMaxWidth": true,
|
|
81985
|
-
"width": 800,
|
|
81986
|
-
"height": 450,
|
|
81987
|
-
"padding": 8,
|
|
81988
|
-
"useDebugLayout": false
|
|
81989
|
-
},
|
|
81990
82072
|
"theme": "default",
|
|
81991
82073
|
"look": "classic",
|
|
81992
82074
|
"handDrawnSeed": 0,
|
|
@@ -82243,9 +82325,6 @@ var config = {
|
|
|
82243
82325
|
radar: {
|
|
82244
82326
|
...config_schema_default.radar
|
|
82245
82327
|
},
|
|
82246
|
-
ishikawa: {
|
|
82247
|
-
...config_schema_default.ishikawa
|
|
82248
|
-
},
|
|
82249
82328
|
treemap: {
|
|
82250
82329
|
useMaxWidth: true,
|
|
82251
82330
|
padding: 10,
|
|
@@ -82257,9 +82336,6 @@ var config = {
|
|
|
82257
82336
|
valueFontSize: 12,
|
|
82258
82337
|
labelFontSize: 14,
|
|
82259
82338
|
valueFormat: ","
|
|
82260
|
-
},
|
|
82261
|
-
venn: {
|
|
82262
|
-
...config_schema_default.venn
|
|
82263
82339
|
}
|
|
82264
82340
|
};
|
|
82265
82341
|
var keyify = /* @__PURE__ */ __name((obj, prefix = "") => Object.keys(obj).reduce((res, el) => {
|
|
@@ -82330,7 +82406,6 @@ var sanitizeCss = /* @__PURE__ */ __name((str2) => {
|
|
|
82330
82406
|
return str2;
|
|
82331
82407
|
}, "sanitizeCss");
|
|
82332
82408
|
var defaultConfig = Object.freeze(defaultConfig_default);
|
|
82333
|
-
var evaluate = /* @__PURE__ */ __name((val) => val === false || ["false", "null", "0"].includes(String(val).trim().toLowerCase()) ? false : true, "evaluate");
|
|
82334
82409
|
var siteConfig = assignWithDepth_default({}, defaultConfig);
|
|
82335
82410
|
var configFromInitialize;
|
|
82336
82411
|
var directives = [];
|
|
@@ -82425,8 +82500,7 @@ var reset = /* @__PURE__ */ __name((config2 = siteConfig) => {
|
|
|
82425
82500
|
updateCurrentConfig(config2, directives);
|
|
82426
82501
|
}, "reset");
|
|
82427
82502
|
var ConfigWarning = {
|
|
82428
|
-
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."
|
|
82429
|
-
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
82503
|
+
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."
|
|
82430
82504
|
};
|
|
82431
82505
|
var issuedWarnings = {};
|
|
82432
82506
|
var issueWarning = /* @__PURE__ */ __name((warning) => {
|
|
@@ -82454,12 +82528,6 @@ var getUserDefinedConfig = /* @__PURE__ */ __name(() => {
|
|
|
82454
82528
|
}
|
|
82455
82529
|
return userConfig;
|
|
82456
82530
|
}, "getUserDefinedConfig");
|
|
82457
|
-
var getEffectiveHtmlLabels = /* @__PURE__ */ __name((config2) => {
|
|
82458
|
-
if (config2.flowchart?.htmlLabels != void 0) {
|
|
82459
|
-
issueWarning("FLOWCHART_HTML_LABELS_DEPRECATED");
|
|
82460
|
-
}
|
|
82461
|
-
return evaluate(config2.htmlLabels ?? config2.flowchart?.htmlLabels ?? true);
|
|
82462
|
-
}, "getEffectiveHtmlLabels");
|
|
82463
82531
|
var lineBreakRegex = /<br\s*\/?>/gi;
|
|
82464
82532
|
var getRows = /* @__PURE__ */ __name((s2) => {
|
|
82465
82533
|
if (!s2) {
|
|
@@ -82501,9 +82569,9 @@ var removeScript = /* @__PURE__ */ __name((txt) => {
|
|
|
82501
82569
|
return sanitizedText;
|
|
82502
82570
|
}, "removeScript");
|
|
82503
82571
|
var sanitizeMore = /* @__PURE__ */ __name((text2, config2) => {
|
|
82504
|
-
if (
|
|
82572
|
+
if (config2.flowchart?.htmlLabels !== false) {
|
|
82505
82573
|
const level = config2.securityLevel;
|
|
82506
|
-
if (level === "antiscript" || level === "strict"
|
|
82574
|
+
if (level === "antiscript" || level === "strict") {
|
|
82507
82575
|
text2 = removeScript(text2);
|
|
82508
82576
|
} else if (level !== "loose") {
|
|
82509
82577
|
text2 = breakToPlaceholder(text2);
|
|
@@ -82553,6 +82621,7 @@ var getUrl = /* @__PURE__ */ __name((useAbsolute) => {
|
|
|
82553
82621
|
}
|
|
82554
82622
|
return url;
|
|
82555
82623
|
}, "getUrl");
|
|
82624
|
+
var evaluate = /* @__PURE__ */ __name((val) => val === false || ["false", "null", "0"].includes(String(val).trim().toLowerCase()) ? false : true, "evaluate");
|
|
82556
82625
|
var getMax = /* @__PURE__ */ __name(function(...values) {
|
|
82557
82626
|
const newValues = values.filter((value) => {
|
|
82558
82627
|
return !isNaN(value);
|
|
@@ -82841,15 +82910,15 @@ var getCommonDb = /* @__PURE__ */ __name(() => {
|
|
|
82841
82910
|
return commonDb_exports;
|
|
82842
82911
|
}, "getCommonDb");
|
|
82843
82912
|
var diagrams = {};
|
|
82844
|
-
var registerDiagram = /* @__PURE__ */ __name((
|
|
82845
|
-
if (diagrams[
|
|
82846
|
-
log2.warn(`Diagram with id ${
|
|
82913
|
+
var registerDiagram = /* @__PURE__ */ __name((id28, diagram2, detector28) => {
|
|
82914
|
+
if (diagrams[id28]) {
|
|
82915
|
+
log2.warn(`Diagram with id ${id28} already registered. Overwriting.`);
|
|
82847
82916
|
}
|
|
82848
|
-
diagrams[
|
|
82849
|
-
if (
|
|
82850
|
-
addDetector(
|
|
82917
|
+
diagrams[id28] = diagram2;
|
|
82918
|
+
if (detector28) {
|
|
82919
|
+
addDetector(id28, detector28);
|
|
82851
82920
|
}
|
|
82852
|
-
addStylesForDiagram(
|
|
82921
|
+
addStylesForDiagram(id28, diagram2.styles);
|
|
82853
82922
|
diagram2.injectUtils?.(
|
|
82854
82923
|
log2,
|
|
82855
82924
|
setLogLevel2,
|
|
@@ -84250,11 +84319,11 @@ var STARTED = 3;
|
|
|
84250
84319
|
var RUNNING = 4;
|
|
84251
84320
|
var ENDING = 5;
|
|
84252
84321
|
var ENDED = 6;
|
|
84253
|
-
function schedule(node2, name,
|
|
84322
|
+
function schedule(node2, name, id28, index, group, timing) {
|
|
84254
84323
|
var schedules = node2.__transition;
|
|
84255
84324
|
if (!schedules) node2.__transition = {};
|
|
84256
|
-
else if (
|
|
84257
|
-
create(node2,
|
|
84325
|
+
else if (id28 in schedules) return;
|
|
84326
|
+
create(node2, id28, {
|
|
84258
84327
|
name,
|
|
84259
84328
|
index,
|
|
84260
84329
|
// For context during callback.
|
|
@@ -84270,24 +84339,24 @@ function schedule(node2, name, id30, index, group, timing) {
|
|
|
84270
84339
|
state: CREATED
|
|
84271
84340
|
});
|
|
84272
84341
|
}
|
|
84273
|
-
function init$1(node2,
|
|
84274
|
-
var schedule2 = get(node2,
|
|
84342
|
+
function init$1(node2, id28) {
|
|
84343
|
+
var schedule2 = get(node2, id28);
|
|
84275
84344
|
if (schedule2.state > CREATED) throw new Error("too late; already scheduled");
|
|
84276
84345
|
return schedule2;
|
|
84277
84346
|
}
|
|
84278
|
-
function set$1(node2,
|
|
84279
|
-
var schedule2 = get(node2,
|
|
84347
|
+
function set$1(node2, id28) {
|
|
84348
|
+
var schedule2 = get(node2, id28);
|
|
84280
84349
|
if (schedule2.state > STARTED) throw new Error("too late; already running");
|
|
84281
84350
|
return schedule2;
|
|
84282
84351
|
}
|
|
84283
|
-
function get(node2,
|
|
84352
|
+
function get(node2, id28) {
|
|
84284
84353
|
var schedule2 = node2.__transition;
|
|
84285
|
-
if (!schedule2 || !(schedule2 = schedule2[
|
|
84354
|
+
if (!schedule2 || !(schedule2 = schedule2[id28])) throw new Error("transition not found");
|
|
84286
84355
|
return schedule2;
|
|
84287
84356
|
}
|
|
84288
|
-
function create(node2,
|
|
84357
|
+
function create(node2, id28, self2) {
|
|
84289
84358
|
var schedules = node2.__transition, tween;
|
|
84290
|
-
schedules[
|
|
84359
|
+
schedules[id28] = self2;
|
|
84291
84360
|
self2.timer = timer(schedule2, 0, self2.time);
|
|
84292
84361
|
function schedule2(elapsed) {
|
|
84293
84362
|
self2.state = SCHEDULED;
|
|
@@ -84306,7 +84375,7 @@ function create(node2, id30, self2) {
|
|
|
84306
84375
|
o2.timer.stop();
|
|
84307
84376
|
o2.on.call("interrupt", node2, node2.__data__, o2.index, o2.group);
|
|
84308
84377
|
delete schedules[i2];
|
|
84309
|
-
} else if (+i2 <
|
|
84378
|
+
} else if (+i2 < id28) {
|
|
84310
84379
|
o2.state = ENDED;
|
|
84311
84380
|
o2.timer.stop();
|
|
84312
84381
|
o2.on.call("cancel", node2, node2.__data__, o2.index, o2.group);
|
|
@@ -84345,7 +84414,7 @@ function create(node2, id30, self2) {
|
|
|
84345
84414
|
function stop() {
|
|
84346
84415
|
self2.state = ENDED;
|
|
84347
84416
|
self2.timer.stop();
|
|
84348
|
-
delete schedules[
|
|
84417
|
+
delete schedules[id28];
|
|
84349
84418
|
for (var i2 in schedules) return;
|
|
84350
84419
|
delete node2.__transition;
|
|
84351
84420
|
}
|
|
@@ -84372,10 +84441,10 @@ function selection_interrupt(name) {
|
|
|
84372
84441
|
interrupt(this, name);
|
|
84373
84442
|
});
|
|
84374
84443
|
}
|
|
84375
|
-
function tweenRemove(
|
|
84444
|
+
function tweenRemove(id28, name) {
|
|
84376
84445
|
var tween0, tween1;
|
|
84377
84446
|
return function() {
|
|
84378
|
-
var schedule2 = set$1(this,
|
|
84447
|
+
var schedule2 = set$1(this, id28), tween = schedule2.tween;
|
|
84379
84448
|
if (tween !== tween0) {
|
|
84380
84449
|
tween1 = tween0 = tween;
|
|
84381
84450
|
for (var i2 = 0, n2 = tween1.length; i2 < n2; ++i2) {
|
|
@@ -84389,11 +84458,11 @@ function tweenRemove(id30, name) {
|
|
|
84389
84458
|
schedule2.tween = tween1;
|
|
84390
84459
|
};
|
|
84391
84460
|
}
|
|
84392
|
-
function tweenFunction(
|
|
84461
|
+
function tweenFunction(id28, name, value) {
|
|
84393
84462
|
var tween0, tween1;
|
|
84394
84463
|
if (typeof value !== "function") throw new Error();
|
|
84395
84464
|
return function() {
|
|
84396
|
-
var schedule2 = set$1(this,
|
|
84465
|
+
var schedule2 = set$1(this, id28), tween = schedule2.tween;
|
|
84397
84466
|
if (tween !== tween0) {
|
|
84398
84467
|
tween1 = (tween0 = tween).slice();
|
|
84399
84468
|
for (var t2 = { name, value }, i2 = 0, n2 = tween1.length; i2 < n2; ++i2) {
|
|
@@ -84408,10 +84477,10 @@ function tweenFunction(id30, name, value) {
|
|
|
84408
84477
|
};
|
|
84409
84478
|
}
|
|
84410
84479
|
function transition_tween(name, value) {
|
|
84411
|
-
var
|
|
84480
|
+
var id28 = this._id;
|
|
84412
84481
|
name += "";
|
|
84413
84482
|
if (arguments.length < 2) {
|
|
84414
|
-
var tween = get(this.node(),
|
|
84483
|
+
var tween = get(this.node(), id28).tween;
|
|
84415
84484
|
for (var i2 = 0, n2 = tween.length, t2; i2 < n2; ++i2) {
|
|
84416
84485
|
if ((t2 = tween[i2]).name === name) {
|
|
84417
84486
|
return t2.value;
|
|
@@ -84419,16 +84488,16 @@ function transition_tween(name, value) {
|
|
|
84419
84488
|
}
|
|
84420
84489
|
return null;
|
|
84421
84490
|
}
|
|
84422
|
-
return this.each((value == null ? tweenRemove : tweenFunction)(
|
|
84491
|
+
return this.each((value == null ? tweenRemove : tweenFunction)(id28, name, value));
|
|
84423
84492
|
}
|
|
84424
84493
|
function tweenValue(transition, name, value) {
|
|
84425
|
-
var
|
|
84494
|
+
var id28 = transition._id;
|
|
84426
84495
|
transition.each(function() {
|
|
84427
|
-
var schedule2 = set$1(this,
|
|
84496
|
+
var schedule2 = set$1(this, id28);
|
|
84428
84497
|
(schedule2.value || (schedule2.value = {}))[name] = value.apply(this, arguments);
|
|
84429
84498
|
});
|
|
84430
84499
|
return function(node2) {
|
|
84431
|
-
return get(node2,
|
|
84500
|
+
return get(node2, id28).value[name];
|
|
84432
84501
|
};
|
|
84433
84502
|
}
|
|
84434
84503
|
function interpolate(a2, b2) {
|
|
@@ -84521,49 +84590,49 @@ function transition_attrTween(name, value) {
|
|
|
84521
84590
|
var fullname = namespace(name);
|
|
84522
84591
|
return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
|
|
84523
84592
|
}
|
|
84524
|
-
function delayFunction(
|
|
84593
|
+
function delayFunction(id28, value) {
|
|
84525
84594
|
return function() {
|
|
84526
|
-
init$1(this,
|
|
84595
|
+
init$1(this, id28).delay = +value.apply(this, arguments);
|
|
84527
84596
|
};
|
|
84528
84597
|
}
|
|
84529
|
-
function delayConstant(
|
|
84598
|
+
function delayConstant(id28, value) {
|
|
84530
84599
|
return value = +value, function() {
|
|
84531
|
-
init$1(this,
|
|
84600
|
+
init$1(this, id28).delay = value;
|
|
84532
84601
|
};
|
|
84533
84602
|
}
|
|
84534
84603
|
function transition_delay(value) {
|
|
84535
|
-
var
|
|
84536
|
-
return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(
|
|
84604
|
+
var id28 = this._id;
|
|
84605
|
+
return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(id28, value)) : get(this.node(), id28).delay;
|
|
84537
84606
|
}
|
|
84538
|
-
function durationFunction(
|
|
84607
|
+
function durationFunction(id28, value) {
|
|
84539
84608
|
return function() {
|
|
84540
|
-
set$1(this,
|
|
84609
|
+
set$1(this, id28).duration = +value.apply(this, arguments);
|
|
84541
84610
|
};
|
|
84542
84611
|
}
|
|
84543
|
-
function durationConstant(
|
|
84612
|
+
function durationConstant(id28, value) {
|
|
84544
84613
|
return value = +value, function() {
|
|
84545
|
-
set$1(this,
|
|
84614
|
+
set$1(this, id28).duration = value;
|
|
84546
84615
|
};
|
|
84547
84616
|
}
|
|
84548
84617
|
function transition_duration(value) {
|
|
84549
|
-
var
|
|
84550
|
-
return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(
|
|
84618
|
+
var id28 = this._id;
|
|
84619
|
+
return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id28, value)) : get(this.node(), id28).duration;
|
|
84551
84620
|
}
|
|
84552
|
-
function easeConstant(
|
|
84621
|
+
function easeConstant(id28, value) {
|
|
84553
84622
|
if (typeof value !== "function") throw new Error();
|
|
84554
84623
|
return function() {
|
|
84555
|
-
set$1(this,
|
|
84624
|
+
set$1(this, id28).ease = value;
|
|
84556
84625
|
};
|
|
84557
84626
|
}
|
|
84558
84627
|
function transition_ease(value) {
|
|
84559
|
-
var
|
|
84560
|
-
return arguments.length ? this.each(easeConstant(
|
|
84628
|
+
var id28 = this._id;
|
|
84629
|
+
return arguments.length ? this.each(easeConstant(id28, value)) : get(this.node(), id28).ease;
|
|
84561
84630
|
}
|
|
84562
|
-
function easeVarying(
|
|
84631
|
+
function easeVarying(id28, value) {
|
|
84563
84632
|
return function() {
|
|
84564
84633
|
var v2 = value.apply(this, arguments);
|
|
84565
84634
|
if (typeof v2 !== "function") throw new Error();
|
|
84566
|
-
set$1(this,
|
|
84635
|
+
set$1(this, id28).ease = v2;
|
|
84567
84636
|
};
|
|
84568
84637
|
}
|
|
84569
84638
|
function transition_easeVarying(value) {
|
|
@@ -84602,22 +84671,22 @@ function start(name) {
|
|
|
84602
84671
|
return !t2 || t2 === "start";
|
|
84603
84672
|
});
|
|
84604
84673
|
}
|
|
84605
|
-
function onFunction(
|
|
84674
|
+
function onFunction(id28, name, listener) {
|
|
84606
84675
|
var on0, on1, sit = start(name) ? init$1 : set$1;
|
|
84607
84676
|
return function() {
|
|
84608
|
-
var schedule2 = sit(this,
|
|
84677
|
+
var schedule2 = sit(this, id28), on = schedule2.on;
|
|
84609
84678
|
if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);
|
|
84610
84679
|
schedule2.on = on1;
|
|
84611
84680
|
};
|
|
84612
84681
|
}
|
|
84613
84682
|
function transition_on(name, listener) {
|
|
84614
|
-
var
|
|
84615
|
-
return arguments.length < 2 ? get(this.node(),
|
|
84683
|
+
var id28 = this._id;
|
|
84684
|
+
return arguments.length < 2 ? get(this.node(), id28).on.on(name) : this.each(onFunction(id28, name, listener));
|
|
84616
84685
|
}
|
|
84617
|
-
function removeFunction(
|
|
84686
|
+
function removeFunction(id28) {
|
|
84618
84687
|
return function() {
|
|
84619
84688
|
var parent = this.parentNode;
|
|
84620
|
-
for (var i2 in this.__transition) if (+i2 !==
|
|
84689
|
+
for (var i2 in this.__transition) if (+i2 !== id28) return;
|
|
84621
84690
|
if (parent) parent.removeChild(this);
|
|
84622
84691
|
};
|
|
84623
84692
|
}
|
|
@@ -84625,28 +84694,28 @@ function transition_remove() {
|
|
|
84625
84694
|
return this.on("end.remove", removeFunction(this._id));
|
|
84626
84695
|
}
|
|
84627
84696
|
function transition_select(select2) {
|
|
84628
|
-
var name = this._name,
|
|
84697
|
+
var name = this._name, id28 = this._id;
|
|
84629
84698
|
if (typeof select2 !== "function") select2 = selector(select2);
|
|
84630
84699
|
for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
|
|
84631
84700
|
for (var group = groups[j2], n2 = group.length, subgroup = subgroups[j2] = new Array(n2), node2, subnode, i2 = 0; i2 < n2; ++i2) {
|
|
84632
84701
|
if ((node2 = group[i2]) && (subnode = select2.call(node2, node2.__data__, i2, group))) {
|
|
84633
84702
|
if ("__data__" in node2) subnode.__data__ = node2.__data__;
|
|
84634
84703
|
subgroup[i2] = subnode;
|
|
84635
|
-
schedule(subgroup[i2], name,
|
|
84704
|
+
schedule(subgroup[i2], name, id28, i2, subgroup, get(node2, id28));
|
|
84636
84705
|
}
|
|
84637
84706
|
}
|
|
84638
84707
|
}
|
|
84639
|
-
return new Transition(subgroups, this._parents, name,
|
|
84708
|
+
return new Transition(subgroups, this._parents, name, id28);
|
|
84640
84709
|
}
|
|
84641
84710
|
function transition_selectAll(select2) {
|
|
84642
|
-
var name = this._name,
|
|
84711
|
+
var name = this._name, id28 = this._id;
|
|
84643
84712
|
if (typeof select2 !== "function") select2 = selectorAll(select2);
|
|
84644
84713
|
for (var groups = this._groups, m2 = groups.length, subgroups = [], parents = [], j2 = 0; j2 < m2; ++j2) {
|
|
84645
84714
|
for (var group = groups[j2], n2 = group.length, node2, i2 = 0; i2 < n2; ++i2) {
|
|
84646
84715
|
if (node2 = group[i2]) {
|
|
84647
|
-
for (var children2 = select2.call(node2, node2.__data__, i2, group), child, inherit2 = get(node2,
|
|
84716
|
+
for (var children2 = select2.call(node2, node2.__data__, i2, group), child, inherit2 = get(node2, id28), k2 = 0, l4 = children2.length; k2 < l4; ++k2) {
|
|
84648
84717
|
if (child = children2[k2]) {
|
|
84649
|
-
schedule(child, name,
|
|
84718
|
+
schedule(child, name, id28, k2, children2, inherit2);
|
|
84650
84719
|
}
|
|
84651
84720
|
}
|
|
84652
84721
|
subgroups.push(children2);
|
|
@@ -84654,7 +84723,7 @@ function transition_selectAll(select2) {
|
|
|
84654
84723
|
}
|
|
84655
84724
|
}
|
|
84656
84725
|
}
|
|
84657
|
-
return new Transition(subgroups, parents, name,
|
|
84726
|
+
return new Transition(subgroups, parents, name, id28);
|
|
84658
84727
|
}
|
|
84659
84728
|
var Selection = selection.prototype.constructor;
|
|
84660
84729
|
function transition_selection() {
|
|
@@ -84687,10 +84756,10 @@ function styleFunction(name, interpolate2, value) {
|
|
|
84687
84756
|
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate2(string00 = string0, value1));
|
|
84688
84757
|
};
|
|
84689
84758
|
}
|
|
84690
|
-
function styleMaybeRemove(
|
|
84759
|
+
function styleMaybeRemove(id28, name) {
|
|
84691
84760
|
var on0, on1, listener0, key = "style." + name, event = "end." + key, remove2;
|
|
84692
84761
|
return function() {
|
|
84693
|
-
var schedule2 = set$1(this,
|
|
84762
|
+
var schedule2 = set$1(this, id28), on = schedule2.on, listener = schedule2.value[key] == null ? remove2 || (remove2 = styleRemove(name)) : void 0;
|
|
84694
84763
|
if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);
|
|
84695
84764
|
schedule2.on = on1;
|
|
84696
84765
|
};
|
|
@@ -84775,13 +84844,13 @@ function transition_transition() {
|
|
|
84775
84844
|
return new Transition(groups, this._parents, name, id1);
|
|
84776
84845
|
}
|
|
84777
84846
|
function transition_end() {
|
|
84778
|
-
var on0, on1, that = this,
|
|
84847
|
+
var on0, on1, that = this, id28 = that._id, size = that.size();
|
|
84779
84848
|
return new Promise(function(resolve, reject) {
|
|
84780
84849
|
var cancel = { value: reject }, end = { value: function() {
|
|
84781
84850
|
if (--size === 0) resolve();
|
|
84782
84851
|
} };
|
|
84783
84852
|
that.each(function() {
|
|
84784
|
-
var schedule2 = set$1(this,
|
|
84853
|
+
var schedule2 = set$1(this, id28), on = schedule2.on;
|
|
84785
84854
|
if (on !== on0) {
|
|
84786
84855
|
on1 = (on0 = on).copy();
|
|
84787
84856
|
on1._.cancel.push(cancel);
|
|
@@ -84794,11 +84863,11 @@ function transition_end() {
|
|
|
84794
84863
|
});
|
|
84795
84864
|
}
|
|
84796
84865
|
var id$2 = 0;
|
|
84797
|
-
function Transition(groups, parents, name,
|
|
84866
|
+
function Transition(groups, parents, name, id28) {
|
|
84798
84867
|
this._groups = groups;
|
|
84799
84868
|
this._parents = parents;
|
|
84800
84869
|
this._name = name;
|
|
84801
|
-
this._id =
|
|
84870
|
+
this._id = id28;
|
|
84802
84871
|
}
|
|
84803
84872
|
function newId() {
|
|
84804
84873
|
return ++id$2;
|
|
@@ -84846,30 +84915,30 @@ var defaultTiming = {
|
|
|
84846
84915
|
duration: 250,
|
|
84847
84916
|
ease: cubicInOut
|
|
84848
84917
|
};
|
|
84849
|
-
function inherit(node2,
|
|
84918
|
+
function inherit(node2, id28) {
|
|
84850
84919
|
var timing;
|
|
84851
|
-
while (!(timing = node2.__transition) || !(timing = timing[
|
|
84920
|
+
while (!(timing = node2.__transition) || !(timing = timing[id28])) {
|
|
84852
84921
|
if (!(node2 = node2.parentNode)) {
|
|
84853
|
-
throw new Error(`transition ${
|
|
84922
|
+
throw new Error(`transition ${id28} not found`);
|
|
84854
84923
|
}
|
|
84855
84924
|
}
|
|
84856
84925
|
return timing;
|
|
84857
84926
|
}
|
|
84858
84927
|
function selection_transition(name) {
|
|
84859
|
-
var
|
|
84928
|
+
var id28, timing;
|
|
84860
84929
|
if (name instanceof Transition) {
|
|
84861
|
-
|
|
84930
|
+
id28 = name._id, name = name._name;
|
|
84862
84931
|
} else {
|
|
84863
|
-
|
|
84932
|
+
id28 = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + "";
|
|
84864
84933
|
}
|
|
84865
84934
|
for (var groups = this._groups, m2 = groups.length, j2 = 0; j2 < m2; ++j2) {
|
|
84866
84935
|
for (var group = groups[j2], n2 = group.length, node2, i2 = 0; i2 < n2; ++i2) {
|
|
84867
84936
|
if (node2 = group[i2]) {
|
|
84868
|
-
schedule(node2, name,
|
|
84937
|
+
schedule(node2, name, id28, i2, group, timing || inherit(node2, id28));
|
|
84869
84938
|
}
|
|
84870
84939
|
}
|
|
84871
84940
|
}
|
|
84872
|
-
return new Transition(groups, this._parents, name,
|
|
84941
|
+
return new Transition(groups, this._parents, name, id28);
|
|
84873
84942
|
}
|
|
84874
84943
|
selection.prototype.interrupt = selection_interrupt;
|
|
84875
84944
|
selection.prototype.transition = selection_transition;
|
|
@@ -85974,15 +86043,15 @@ Transform.prototype = {
|
|
|
85974
86043
|
}
|
|
85975
86044
|
};
|
|
85976
86045
|
Transform.prototype;
|
|
85977
|
-
var selectSvgElement = /* @__PURE__ */ __name((
|
|
86046
|
+
var selectSvgElement = /* @__PURE__ */ __name((id28) => {
|
|
85978
86047
|
const { securityLevel } = getConfig2();
|
|
85979
86048
|
let root2 = select("body");
|
|
85980
86049
|
if (securityLevel === "sandbox") {
|
|
85981
|
-
const sandboxElement = select(`#i${
|
|
86050
|
+
const sandboxElement = select(`#i${id28}`);
|
|
85982
86051
|
const doc = sandboxElement.node()?.contentDocument ?? document;
|
|
85983
86052
|
root2 = select(doc.body);
|
|
85984
86053
|
}
|
|
85985
|
-
const svg2 = root2.select(`#${
|
|
86054
|
+
const svg2 = root2.select(`#${id28}`);
|
|
85986
86055
|
return svg2;
|
|
85987
86056
|
}, "selectSvgElement");
|
|
85988
86057
|
function isNothing(subject) {
|
|
@@ -86905,19 +86974,6 @@ function charFromCodepoint(c2) {
|
|
|
86905
86974
|
);
|
|
86906
86975
|
}
|
|
86907
86976
|
__name(charFromCodepoint, "charFromCodepoint");
|
|
86908
|
-
function setProperty(object, key, value) {
|
|
86909
|
-
if (key === "__proto__") {
|
|
86910
|
-
Object.defineProperty(object, key, {
|
|
86911
|
-
configurable: true,
|
|
86912
|
-
enumerable: true,
|
|
86913
|
-
writable: true,
|
|
86914
|
-
value
|
|
86915
|
-
});
|
|
86916
|
-
} else {
|
|
86917
|
-
object[key] = value;
|
|
86918
|
-
}
|
|
86919
|
-
}
|
|
86920
|
-
__name(setProperty, "setProperty");
|
|
86921
86977
|
var simpleEscapeCheck = new Array(256);
|
|
86922
86978
|
var simpleEscapeMap = new Array(256);
|
|
86923
86979
|
for (i$1 = 0; i$1 < 256; i$1++) {
|
|
@@ -87042,7 +87098,7 @@ function mergeMappings(state2, destination, source, overridableKeys) {
|
|
|
87042
87098
|
for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
87043
87099
|
key = sourceKeys[index];
|
|
87044
87100
|
if (!_hasOwnProperty$1.call(destination, key)) {
|
|
87045
|
-
|
|
87101
|
+
destination[key] = source[key];
|
|
87046
87102
|
overridableKeys[key] = true;
|
|
87047
87103
|
}
|
|
87048
87104
|
}
|
|
@@ -87083,7 +87139,16 @@ function storeMappingPair(state2, _result, overridableKeys, keyTag, keyNode, val
|
|
|
87083
87139
|
state2.position = startPos || state2.position;
|
|
87084
87140
|
throwError(state2, "duplicated mapping key");
|
|
87085
87141
|
}
|
|
87086
|
-
|
|
87142
|
+
if (keyNode === "__proto__") {
|
|
87143
|
+
Object.defineProperty(_result, keyNode, {
|
|
87144
|
+
configurable: true,
|
|
87145
|
+
enumerable: true,
|
|
87146
|
+
writable: true,
|
|
87147
|
+
value: valueNode
|
|
87148
|
+
});
|
|
87149
|
+
} else {
|
|
87150
|
+
_result[keyNode] = valueNode;
|
|
87151
|
+
}
|
|
87087
87152
|
delete overridableKeys[keyNode];
|
|
87088
87153
|
}
|
|
87089
87154
|
return _result;
|
|
@@ -88675,14 +88740,6 @@ function renamed(from2, to) {
|
|
|
88675
88740
|
__name(renamed, "renamed");
|
|
88676
88741
|
var JSON_SCHEMA = json;
|
|
88677
88742
|
var load = loader$1.load;
|
|
88678
|
-
var computeLabelTransform = /* @__PURE__ */ __name((bbox, useHtmlLabels) => {
|
|
88679
|
-
if (useHtmlLabels) {
|
|
88680
|
-
return "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")";
|
|
88681
|
-
}
|
|
88682
|
-
const x2 = bbox.x ?? 0;
|
|
88683
|
-
const y3 = bbox.y ?? 0;
|
|
88684
|
-
return "translate(" + -(x2 + bbox.width / 2) + ", " + -(y3 + bbox.height / 2) + ")";
|
|
88685
|
-
}, "computeLabelTransform");
|
|
88686
88743
|
var markerOffsets = {
|
|
88687
88744
|
aggregation: 17.25,
|
|
88688
88745
|
extension: 17.25,
|
|
@@ -88792,6 +88849,113 @@ var getLineFunctionsWithOffset = /* @__PURE__ */ __name((edge) => {
|
|
|
88792
88849
|
}, "y")
|
|
88793
88850
|
};
|
|
88794
88851
|
}, "getLineFunctionsWithOffset");
|
|
88852
|
+
var getSubGraphTitleMargins = /* @__PURE__ */ __name(({
|
|
88853
|
+
flowchart
|
|
88854
|
+
}) => {
|
|
88855
|
+
const subGraphTitleTopMargin = flowchart?.subGraphTitleMargin?.top ?? 0;
|
|
88856
|
+
const subGraphTitleBottomMargin = flowchart?.subGraphTitleMargin?.bottom ?? 0;
|
|
88857
|
+
const subGraphTitleTotalMargin = subGraphTitleTopMargin + subGraphTitleBottomMargin;
|
|
88858
|
+
return {
|
|
88859
|
+
subGraphTitleTopMargin,
|
|
88860
|
+
subGraphTitleBottomMargin,
|
|
88861
|
+
subGraphTitleTotalMargin
|
|
88862
|
+
};
|
|
88863
|
+
}, "getSubGraphTitleMargins");
|
|
88864
|
+
var solidStateFill = /* @__PURE__ */ __name((color2) => {
|
|
88865
|
+
const { handDrawnSeed } = getConfig2();
|
|
88866
|
+
return {
|
|
88867
|
+
fill: color2,
|
|
88868
|
+
hachureAngle: 120,
|
|
88869
|
+
// angle of hachure,
|
|
88870
|
+
hachureGap: 4,
|
|
88871
|
+
fillWeight: 2,
|
|
88872
|
+
roughness: 0.7,
|
|
88873
|
+
stroke: color2,
|
|
88874
|
+
seed: handDrawnSeed
|
|
88875
|
+
};
|
|
88876
|
+
}, "solidStateFill");
|
|
88877
|
+
var compileStyles = /* @__PURE__ */ __name((node2) => {
|
|
88878
|
+
const stylesMap = styles2Map([
|
|
88879
|
+
...node2.cssCompiledStyles || [],
|
|
88880
|
+
...node2.cssStyles || [],
|
|
88881
|
+
...node2.labelStyle || []
|
|
88882
|
+
]);
|
|
88883
|
+
return { stylesMap, stylesArray: [...stylesMap] };
|
|
88884
|
+
}, "compileStyles");
|
|
88885
|
+
var styles2Map = /* @__PURE__ */ __name((styles2) => {
|
|
88886
|
+
const styleMap2 = /* @__PURE__ */ new Map();
|
|
88887
|
+
styles2.forEach((style2) => {
|
|
88888
|
+
const [key, value] = style2.split(":");
|
|
88889
|
+
styleMap2.set(key.trim(), value?.trim());
|
|
88890
|
+
});
|
|
88891
|
+
return styleMap2;
|
|
88892
|
+
}, "styles2Map");
|
|
88893
|
+
var isLabelStyle = /* @__PURE__ */ __name((key) => {
|
|
88894
|
+
return key === "color" || key === "font-size" || key === "font-family" || key === "font-weight" || key === "font-style" || key === "text-decoration" || key === "text-align" || key === "text-transform" || key === "line-height" || key === "letter-spacing" || key === "word-spacing" || key === "text-shadow" || key === "text-overflow" || key === "white-space" || key === "word-wrap" || key === "word-break" || key === "overflow-wrap" || key === "hyphens";
|
|
88895
|
+
}, "isLabelStyle");
|
|
88896
|
+
var styles2String = /* @__PURE__ */ __name((node2) => {
|
|
88897
|
+
const { stylesArray } = compileStyles(node2);
|
|
88898
|
+
const labelStyles = [];
|
|
88899
|
+
const nodeStyles = [];
|
|
88900
|
+
const borderStyles = [];
|
|
88901
|
+
const backgroundStyles = [];
|
|
88902
|
+
stylesArray.forEach((style2) => {
|
|
88903
|
+
const key = style2[0];
|
|
88904
|
+
if (isLabelStyle(key)) {
|
|
88905
|
+
labelStyles.push(style2.join(":") + " !important");
|
|
88906
|
+
} else {
|
|
88907
|
+
nodeStyles.push(style2.join(":") + " !important");
|
|
88908
|
+
if (key.includes("stroke")) {
|
|
88909
|
+
borderStyles.push(style2.join(":") + " !important");
|
|
88910
|
+
}
|
|
88911
|
+
if (key === "fill") {
|
|
88912
|
+
backgroundStyles.push(style2.join(":") + " !important");
|
|
88913
|
+
}
|
|
88914
|
+
}
|
|
88915
|
+
});
|
|
88916
|
+
return {
|
|
88917
|
+
labelStyles: labelStyles.join(";"),
|
|
88918
|
+
nodeStyles: nodeStyles.join(";"),
|
|
88919
|
+
stylesArray,
|
|
88920
|
+
borderStyles,
|
|
88921
|
+
backgroundStyles
|
|
88922
|
+
};
|
|
88923
|
+
}, "styles2String");
|
|
88924
|
+
var userNodeOverrides = /* @__PURE__ */ __name((node2, options) => {
|
|
88925
|
+
const { themeVariables, handDrawnSeed } = getConfig2();
|
|
88926
|
+
const { nodeBorder, mainBkg } = themeVariables;
|
|
88927
|
+
const { stylesMap } = compileStyles(node2);
|
|
88928
|
+
const result = Object.assign(
|
|
88929
|
+
{
|
|
88930
|
+
roughness: 0.7,
|
|
88931
|
+
fill: stylesMap.get("fill") || mainBkg,
|
|
88932
|
+
fillStyle: "hachure",
|
|
88933
|
+
// solid fill
|
|
88934
|
+
fillWeight: 4,
|
|
88935
|
+
hachureGap: 5.2,
|
|
88936
|
+
stroke: stylesMap.get("stroke") || nodeBorder,
|
|
88937
|
+
seed: handDrawnSeed,
|
|
88938
|
+
strokeWidth: stylesMap.get("stroke-width")?.replace("px", "") || 1.3,
|
|
88939
|
+
fillLineDash: [0, 0],
|
|
88940
|
+
strokeLineDash: getStrokeDashArray(stylesMap.get("stroke-dasharray"))
|
|
88941
|
+
},
|
|
88942
|
+
options
|
|
88943
|
+
);
|
|
88944
|
+
return result;
|
|
88945
|
+
}, "userNodeOverrides");
|
|
88946
|
+
var getStrokeDashArray = /* @__PURE__ */ __name((strokeDasharrayStyle) => {
|
|
88947
|
+
if (!strokeDasharrayStyle) {
|
|
88948
|
+
return [0, 0];
|
|
88949
|
+
}
|
|
88950
|
+
const dashArray = strokeDasharrayStyle.trim().split(/\s+/).map(Number);
|
|
88951
|
+
if (dashArray.length === 1) {
|
|
88952
|
+
const val = isNaN(dashArray[0]) ? 0 : dashArray[0];
|
|
88953
|
+
return [val, val];
|
|
88954
|
+
}
|
|
88955
|
+
const first = isNaN(dashArray[0]) ? 0 : dashArray[0];
|
|
88956
|
+
const second = isNaN(dashArray[1]) ? 0 : dashArray[1];
|
|
88957
|
+
return [first, second];
|
|
88958
|
+
}, "getStrokeDashArray");
|
|
88795
88959
|
var dist$1 = {};
|
|
88796
88960
|
var constants = {};
|
|
88797
88961
|
var hasRequiredConstants;
|
|
@@ -90123,9 +90287,9 @@ var getEdgeId = /* @__PURE__ */ __name((from2, to, {
|
|
|
90123
90287
|
counter = 0,
|
|
90124
90288
|
prefix,
|
|
90125
90289
|
suffix
|
|
90126
|
-
},
|
|
90127
|
-
if (
|
|
90128
|
-
return
|
|
90290
|
+
}, id28) => {
|
|
90291
|
+
if (id28) {
|
|
90292
|
+
return id28;
|
|
90129
90293
|
}
|
|
90130
90294
|
return `${prefix ? `${prefix}_` : ""}${from2}_${to}_${counter}${suffix ? `_${suffix}` : ""}`;
|
|
90131
90295
|
}, "getEdgeId");
|
|
@@ -90143,150 +90307,6 @@ function isLabelCoordinateInPath(point2, dAttr) {
|
|
|
90143
90307
|
return sanitizedD.includes(roundedX.toString()) || sanitizedD.includes(roundedY.toString());
|
|
90144
90308
|
}
|
|
90145
90309
|
__name(isLabelCoordinateInPath, "isLabelCoordinateInPath");
|
|
90146
|
-
var getSubGraphTitleMargins = /* @__PURE__ */ __name(({
|
|
90147
|
-
flowchart
|
|
90148
|
-
}) => {
|
|
90149
|
-
const subGraphTitleTopMargin = flowchart?.subGraphTitleMargin?.top ?? 0;
|
|
90150
|
-
const subGraphTitleBottomMargin = flowchart?.subGraphTitleMargin?.bottom ?? 0;
|
|
90151
|
-
const subGraphTitleTotalMargin = subGraphTitleTopMargin + subGraphTitleBottomMargin;
|
|
90152
|
-
return {
|
|
90153
|
-
subGraphTitleTopMargin,
|
|
90154
|
-
subGraphTitleBottomMargin,
|
|
90155
|
-
subGraphTitleTotalMargin
|
|
90156
|
-
};
|
|
90157
|
-
}, "getSubGraphTitleMargins");
|
|
90158
|
-
async function configureLabelImages(container, labelText) {
|
|
90159
|
-
const images = container.getElementsByTagName("img");
|
|
90160
|
-
if (!images || images.length === 0) {
|
|
90161
|
-
return;
|
|
90162
|
-
}
|
|
90163
|
-
const noImgText = labelText.replace(/<img[^>]*>/g, "").trim() === "";
|
|
90164
|
-
await Promise.all(
|
|
90165
|
-
[...images].map(
|
|
90166
|
-
(img) => new Promise((res) => {
|
|
90167
|
-
function setupImage() {
|
|
90168
|
-
img.style.display = "flex";
|
|
90169
|
-
img.style.flexDirection = "column";
|
|
90170
|
-
if (noImgText) {
|
|
90171
|
-
const bodyFontSize = getConfig2().fontSize ? getConfig2().fontSize : window.getComputedStyle(document.body).fontSize;
|
|
90172
|
-
const enlargingFactor = 5;
|
|
90173
|
-
const [parsedBodyFontSize = defaultConfig_default.fontSize] = parseFontSize(bodyFontSize);
|
|
90174
|
-
const width = parsedBodyFontSize * enlargingFactor + "px";
|
|
90175
|
-
img.style.minWidth = width;
|
|
90176
|
-
img.style.maxWidth = width;
|
|
90177
|
-
} else {
|
|
90178
|
-
img.style.width = "100%";
|
|
90179
|
-
}
|
|
90180
|
-
res(img);
|
|
90181
|
-
}
|
|
90182
|
-
__name(setupImage, "setupImage");
|
|
90183
|
-
setTimeout(() => {
|
|
90184
|
-
if (img.complete) {
|
|
90185
|
-
setupImage();
|
|
90186
|
-
}
|
|
90187
|
-
});
|
|
90188
|
-
img.addEventListener("error", setupImage);
|
|
90189
|
-
img.addEventListener("load", setupImage);
|
|
90190
|
-
})
|
|
90191
|
-
)
|
|
90192
|
-
);
|
|
90193
|
-
}
|
|
90194
|
-
__name(configureLabelImages, "configureLabelImages");
|
|
90195
|
-
var solidStateFill = /* @__PURE__ */ __name((color2) => {
|
|
90196
|
-
const { handDrawnSeed } = getConfig2();
|
|
90197
|
-
return {
|
|
90198
|
-
fill: color2,
|
|
90199
|
-
hachureAngle: 120,
|
|
90200
|
-
// angle of hachure,
|
|
90201
|
-
hachureGap: 4,
|
|
90202
|
-
fillWeight: 2,
|
|
90203
|
-
roughness: 0.7,
|
|
90204
|
-
stroke: color2,
|
|
90205
|
-
seed: handDrawnSeed
|
|
90206
|
-
};
|
|
90207
|
-
}, "solidStateFill");
|
|
90208
|
-
var compileStyles = /* @__PURE__ */ __name((node2) => {
|
|
90209
|
-
const stylesMap = styles2Map([
|
|
90210
|
-
...node2.cssCompiledStyles || [],
|
|
90211
|
-
...node2.cssStyles || [],
|
|
90212
|
-
...node2.labelStyle || []
|
|
90213
|
-
]);
|
|
90214
|
-
return { stylesMap, stylesArray: [...stylesMap] };
|
|
90215
|
-
}, "compileStyles");
|
|
90216
|
-
var styles2Map = /* @__PURE__ */ __name((styles2) => {
|
|
90217
|
-
const styleMap2 = /* @__PURE__ */ new Map();
|
|
90218
|
-
styles2.forEach((style2) => {
|
|
90219
|
-
const [key, value] = style2.split(":");
|
|
90220
|
-
styleMap2.set(key.trim(), value?.trim());
|
|
90221
|
-
});
|
|
90222
|
-
return styleMap2;
|
|
90223
|
-
}, "styles2Map");
|
|
90224
|
-
var isLabelStyle = /* @__PURE__ */ __name((key) => {
|
|
90225
|
-
return key === "color" || key === "font-size" || key === "font-family" || key === "font-weight" || key === "font-style" || key === "text-decoration" || key === "text-align" || key === "text-transform" || key === "line-height" || key === "letter-spacing" || key === "word-spacing" || key === "text-shadow" || key === "text-overflow" || key === "white-space" || key === "word-wrap" || key === "word-break" || key === "overflow-wrap" || key === "hyphens";
|
|
90226
|
-
}, "isLabelStyle");
|
|
90227
|
-
var styles2String = /* @__PURE__ */ __name((node2) => {
|
|
90228
|
-
const { stylesArray } = compileStyles(node2);
|
|
90229
|
-
const labelStyles = [];
|
|
90230
|
-
const nodeStyles = [];
|
|
90231
|
-
const borderStyles = [];
|
|
90232
|
-
const backgroundStyles = [];
|
|
90233
|
-
stylesArray.forEach((style2) => {
|
|
90234
|
-
const key = style2[0];
|
|
90235
|
-
if (isLabelStyle(key)) {
|
|
90236
|
-
labelStyles.push(style2.join(":") + " !important");
|
|
90237
|
-
} else {
|
|
90238
|
-
nodeStyles.push(style2.join(":") + " !important");
|
|
90239
|
-
if (key.includes("stroke")) {
|
|
90240
|
-
borderStyles.push(style2.join(":") + " !important");
|
|
90241
|
-
}
|
|
90242
|
-
if (key === "fill") {
|
|
90243
|
-
backgroundStyles.push(style2.join(":") + " !important");
|
|
90244
|
-
}
|
|
90245
|
-
}
|
|
90246
|
-
});
|
|
90247
|
-
return {
|
|
90248
|
-
labelStyles: labelStyles.join(";"),
|
|
90249
|
-
nodeStyles: nodeStyles.join(";"),
|
|
90250
|
-
stylesArray,
|
|
90251
|
-
borderStyles,
|
|
90252
|
-
backgroundStyles
|
|
90253
|
-
};
|
|
90254
|
-
}, "styles2String");
|
|
90255
|
-
var userNodeOverrides = /* @__PURE__ */ __name((node2, options) => {
|
|
90256
|
-
const { themeVariables, handDrawnSeed } = getConfig2();
|
|
90257
|
-
const { nodeBorder, mainBkg } = themeVariables;
|
|
90258
|
-
const { stylesMap } = compileStyles(node2);
|
|
90259
|
-
const result = Object.assign(
|
|
90260
|
-
{
|
|
90261
|
-
roughness: 0.7,
|
|
90262
|
-
fill: stylesMap.get("fill") || mainBkg,
|
|
90263
|
-
fillStyle: "hachure",
|
|
90264
|
-
// solid fill
|
|
90265
|
-
fillWeight: 4,
|
|
90266
|
-
hachureGap: 5.2,
|
|
90267
|
-
stroke: stylesMap.get("stroke") || nodeBorder,
|
|
90268
|
-
seed: handDrawnSeed,
|
|
90269
|
-
strokeWidth: stylesMap.get("stroke-width")?.replace("px", "") || 1.3,
|
|
90270
|
-
fillLineDash: [0, 0],
|
|
90271
|
-
strokeLineDash: getStrokeDashArray(stylesMap.get("stroke-dasharray"))
|
|
90272
|
-
},
|
|
90273
|
-
options
|
|
90274
|
-
);
|
|
90275
|
-
return result;
|
|
90276
|
-
}, "userNodeOverrides");
|
|
90277
|
-
var getStrokeDashArray = /* @__PURE__ */ __name((strokeDasharrayStyle) => {
|
|
90278
|
-
if (!strokeDasharrayStyle) {
|
|
90279
|
-
return [0, 0];
|
|
90280
|
-
}
|
|
90281
|
-
const dashArray = strokeDasharrayStyle.trim().split(/\s+/).map(Number);
|
|
90282
|
-
if (dashArray.length === 1) {
|
|
90283
|
-
const val = isNaN(dashArray[0]) ? 0 : dashArray[0];
|
|
90284
|
-
return [val, val];
|
|
90285
|
-
}
|
|
90286
|
-
const first = isNaN(dashArray[0]) ? 0 : dashArray[0];
|
|
90287
|
-
const second = isNaN(dashArray[1]) ? 0 : dashArray[1];
|
|
90288
|
-
return [first, second];
|
|
90289
|
-
}, "getStrokeDashArray");
|
|
90290
90310
|
const defaultIconDimensions = Object.freeze({
|
|
90291
90311
|
left: 0,
|
|
90292
90312
|
top: 0,
|
|
@@ -90549,11 +90569,11 @@ function iconToSVG(icon2, customisations) {
|
|
|
90549
90569
|
}
|
|
90550
90570
|
const regex = /\sid="(\S+)"/g;
|
|
90551
90571
|
const counters = /* @__PURE__ */ new Map();
|
|
90552
|
-
function nextID(
|
|
90553
|
-
|
|
90554
|
-
const count = counters.get(
|
|
90555
|
-
counters.set(
|
|
90556
|
-
return count ? `${
|
|
90572
|
+
function nextID(id28) {
|
|
90573
|
+
id28 = id28.replace(/[0-9]+$/, "") || "a";
|
|
90574
|
+
const count = counters.get(id28) || 0;
|
|
90575
|
+
counters.set(id28, count + 1);
|
|
90576
|
+
return count ? `${id28}${count}` : id28;
|
|
90557
90577
|
}
|
|
90558
90578
|
function replaceIDs(body) {
|
|
90559
90579
|
const ids = [];
|
|
@@ -90561,9 +90581,9 @@ function replaceIDs(body) {
|
|
|
90561
90581
|
while (match2 = regex.exec(body)) ids.push(match2[1]);
|
|
90562
90582
|
if (!ids.length) return body;
|
|
90563
90583
|
const suffix = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
90564
|
-
ids.forEach((
|
|
90565
|
-
const newID = nextID(
|
|
90566
|
-
const escapedID =
|
|
90584
|
+
ids.forEach((id28) => {
|
|
90585
|
+
const newID = nextID(id28);
|
|
90586
|
+
const escapedID = id28.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
90567
90587
|
body = body.replace(new RegExp('([#;"])(' + escapedID + ')([")]|\\.[a-z])', "g"), "$1" + newID + suffix + "$3");
|
|
90568
90588
|
});
|
|
90569
90589
|
body = body.replace(new RegExp(suffix, "g"), "");
|
|
@@ -91740,12 +91760,12 @@ var getRegisteredIconData = /* @__PURE__ */ __name(async (iconName, fallbackPref
|
|
|
91740
91760
|
}
|
|
91741
91761
|
let icons = iconsStore.get(prefix);
|
|
91742
91762
|
if (!icons) {
|
|
91743
|
-
const
|
|
91744
|
-
if (!
|
|
91763
|
+
const loader28 = loaderStore.get(prefix);
|
|
91764
|
+
if (!loader28) {
|
|
91745
91765
|
throw new Error(`Icon set not found: ${data.prefix}`);
|
|
91746
91766
|
}
|
|
91747
91767
|
try {
|
|
91748
|
-
const loaded = await
|
|
91768
|
+
const loaded = await loader28();
|
|
91749
91769
|
icons = { ...loaded, prefix };
|
|
91750
91770
|
iconsStore.set(prefix, icons);
|
|
91751
91771
|
} catch (e2) {
|
|
@@ -91786,15 +91806,12 @@ function preprocessMarkdown(markdown, { markdownAutoWrap }) {
|
|
|
91786
91806
|
const withoutBR = markdown.replace(/<br\/>/g, "\n");
|
|
91787
91807
|
const withoutMultipleNewlines = withoutBR.replace(/\n{2,}/g, "\n");
|
|
91788
91808
|
const withoutExtraSpaces = dedent(withoutMultipleNewlines);
|
|
91809
|
+
if (markdownAutoWrap === false) {
|
|
91810
|
+
return withoutExtraSpaces.replace(/ /g, " ");
|
|
91811
|
+
}
|
|
91789
91812
|
return withoutExtraSpaces;
|
|
91790
91813
|
}
|
|
91791
91814
|
__name(preprocessMarkdown, "preprocessMarkdown");
|
|
91792
|
-
function nonMarkdownToLines(nonMarkdownText) {
|
|
91793
|
-
return nonMarkdownText.split(/\\n|\n|<br\s*\/?>/gi).map(
|
|
91794
|
-
(line2) => line2.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((word) => ({ content: word, type: "normal" })) ?? []
|
|
91795
|
-
);
|
|
91796
|
-
}
|
|
91797
|
-
__name(nonMarkdownToLines, "nonMarkdownToLines");
|
|
91798
91815
|
function markdownToLines(markdown, config2 = {}) {
|
|
91799
91816
|
const preprocessedMarkdown = preprocessMarkdown(markdown, config2);
|
|
91800
91817
|
const nodes = k$1.lexer(preprocessedMarkdown);
|
|
@@ -91838,18 +91855,6 @@ function markdownToLines(markdown, config2 = {}) {
|
|
|
91838
91855
|
return lines;
|
|
91839
91856
|
}
|
|
91840
91857
|
__name(markdownToLines, "markdownToLines");
|
|
91841
|
-
function nonMarkdownToHTML(text2) {
|
|
91842
|
-
if (!text2) {
|
|
91843
|
-
return "";
|
|
91844
|
-
}
|
|
91845
|
-
return `<p>${/**
|
|
91846
|
-
* Replace new lines with <br /> tags.
|
|
91847
|
-
*
|
|
91848
|
-
* Unlike in markdown text, `\n` sequences are treated as line breaks here.
|
|
91849
|
-
*/
|
|
91850
|
-
text2.replace(/\\n|\n/g, "<br />")}</p>`;
|
|
91851
|
-
}
|
|
91852
|
-
__name(nonMarkdownToHTML, "nonMarkdownToHTML");
|
|
91853
91858
|
function markdownToHTML(markdown, { markdownAutoWrap } = {}) {
|
|
91854
91859
|
const nodes = k$1.lexer(markdown);
|
|
91855
91860
|
function output(node2) {
|
|
@@ -91953,32 +91958,29 @@ function splitLineToFitWidthRecursion(words, checkFit, lines = [], newLine = [])
|
|
|
91953
91958
|
return splitLineToFitWidthRecursion(words, checkFit, lines);
|
|
91954
91959
|
}
|
|
91955
91960
|
__name(splitLineToFitWidthRecursion, "splitLineToFitWidthRecursion");
|
|
91956
|
-
function applyStyle(dom, styleFn) {
|
|
91961
|
+
function applyStyle$1(dom, styleFn) {
|
|
91957
91962
|
if (styleFn) {
|
|
91958
91963
|
dom.attr("style", styleFn);
|
|
91959
91964
|
}
|
|
91960
91965
|
}
|
|
91961
|
-
__name(applyStyle, "applyStyle");
|
|
91962
|
-
var maxSafeSizeForWidth = 16384;
|
|
91966
|
+
__name(applyStyle$1, "applyStyle");
|
|
91963
91967
|
async function addHtmlSpan(element, node2, width, classes, addBackground = false, config2 = getConfig()) {
|
|
91964
91968
|
const fo = element.append("foreignObject");
|
|
91965
|
-
fo.attr("width", `${
|
|
91966
|
-
fo.attr("height", `${
|
|
91969
|
+
fo.attr("width", `${10 * width}px`);
|
|
91970
|
+
fo.attr("height", `${10 * width}px`);
|
|
91967
91971
|
const div = fo.append("xhtml:div");
|
|
91968
91972
|
const sanitizedLabel = hasKatex(node2.label) ? await renderKatexSanitized(node2.label.replace(common_default.lineBreakRegex, "\n"), config2) : sanitizeText(node2.label, config2);
|
|
91969
91973
|
const labelClass = node2.isNode ? "nodeLabel" : "edgeLabel";
|
|
91970
91974
|
const span = div.append("span");
|
|
91971
91975
|
span.html(sanitizedLabel);
|
|
91972
|
-
applyStyle(span, node2.labelStyle);
|
|
91976
|
+
applyStyle$1(span, node2.labelStyle);
|
|
91973
91977
|
span.attr("class", `${labelClass} ${classes}`);
|
|
91974
|
-
applyStyle(div, node2.labelStyle);
|
|
91978
|
+
applyStyle$1(div, node2.labelStyle);
|
|
91975
91979
|
div.style("display", "table-cell");
|
|
91976
91980
|
div.style("white-space", "nowrap");
|
|
91977
91981
|
div.style("line-height", "1.5");
|
|
91978
|
-
|
|
91979
|
-
|
|
91980
|
-
div.style("text-align", "center");
|
|
91981
|
-
}
|
|
91982
|
+
div.style("max-width", width + "px");
|
|
91983
|
+
div.style("text-align", "center");
|
|
91982
91984
|
div.attr("xmlns", "http://www.w3.org/1999/xhtml");
|
|
91983
91985
|
if (addBackground) {
|
|
91984
91986
|
div.attr("class", "labelBkg");
|
|
@@ -91993,12 +91995,8 @@ async function addHtmlSpan(element, node2, width, classes, addBackground = false
|
|
|
91993
91995
|
return fo.node();
|
|
91994
91996
|
}
|
|
91995
91997
|
__name(addHtmlSpan, "addHtmlSpan");
|
|
91996
|
-
function createTspan(textElement, lineIndex, lineHeight
|
|
91997
|
-
|
|
91998
|
-
if (centerText) {
|
|
91999
|
-
tspan.attr("text-anchor", "middle");
|
|
92000
|
-
}
|
|
92001
|
-
return tspan;
|
|
91998
|
+
function createTspan(textElement, lineIndex, lineHeight) {
|
|
91999
|
+
return textElement.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", lineIndex * lineHeight - 0.1 + "em").attr("dy", lineHeight + "em");
|
|
92002
92000
|
}
|
|
92003
92001
|
__name(createTspan, "createTspan");
|
|
92004
92002
|
function computeWidthOfText(parentNode, lineHeight, line2) {
|
|
@@ -92021,20 +92019,17 @@ function computeDimensionOfText(parentNode, lineHeight, text2) {
|
|
|
92021
92019
|
return textDimension;
|
|
92022
92020
|
}
|
|
92023
92021
|
__name(computeDimensionOfText, "computeDimensionOfText");
|
|
92024
|
-
function createFormattedText(width, g2, structuredText, addBackground = false
|
|
92022
|
+
function createFormattedText(width, g2, structuredText, addBackground = false) {
|
|
92025
92023
|
const lineHeight = 1.1;
|
|
92026
92024
|
const labelGroup = g2.append("g");
|
|
92027
92025
|
const bkg = labelGroup.insert("rect").attr("class", "background").attr("style", "stroke: none");
|
|
92028
92026
|
const textElement = labelGroup.append("text").attr("y", "-10.1");
|
|
92029
|
-
if (centerText) {
|
|
92030
|
-
textElement.attr("text-anchor", "middle");
|
|
92031
|
-
}
|
|
92032
92027
|
let lineIndex = 0;
|
|
92033
92028
|
for (const line2 of structuredText) {
|
|
92034
92029
|
const checkWidth = /* @__PURE__ */ __name((line22) => computeWidthOfText(labelGroup, lineHeight, line22) <= width, "checkWidth");
|
|
92035
92030
|
const linesUnderWidth = checkWidth(line2) ? [line2] : splitLineToFitWidth(line2, checkWidth);
|
|
92036
92031
|
for (const preparedLine of linesUnderWidth) {
|
|
92037
|
-
const tspan = createTspan(textElement, lineIndex, lineHeight
|
|
92032
|
+
const tspan = createTspan(textElement, lineIndex, lineHeight);
|
|
92038
92033
|
updateTextContentAndStyles(tspan, preparedLine);
|
|
92039
92034
|
lineIndex++;
|
|
92040
92035
|
}
|
|
@@ -92085,11 +92080,7 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
|
|
|
92085
92080
|
isTitle = false,
|
|
92086
92081
|
classes = "",
|
|
92087
92082
|
useHtmlLabels = true,
|
|
92088
|
-
markdown = true,
|
|
92089
92083
|
isNode = true,
|
|
92090
|
-
/**
|
|
92091
|
-
* The width to wrap the text within. Set to `Number.POSITIVE_INFINITY` for no wrapping.
|
|
92092
|
-
*/
|
|
92093
92084
|
width = 200,
|
|
92094
92085
|
addSvgBackground = false
|
|
92095
92086
|
} = {}, config2) => {
|
|
@@ -92105,7 +92096,7 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
|
|
|
92105
92096
|
addSvgBackground
|
|
92106
92097
|
);
|
|
92107
92098
|
if (useHtmlLabels) {
|
|
92108
|
-
const htmlText =
|
|
92099
|
+
const htmlText = markdownToHTML(text2, config2);
|
|
92109
92100
|
const decodedReplacedText = await replaceIconSubstring(decodeEntities(htmlText), config2);
|
|
92110
92101
|
const inputForKatex = text2.replace(/\\\\/g, "\\");
|
|
92111
92102
|
const node2 = {
|
|
@@ -92117,13 +92108,12 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
|
|
|
92117
92108
|
return vertexNode;
|
|
92118
92109
|
} else {
|
|
92119
92110
|
const sanitizeBR = text2.replace(/<br\s*\/?>/g, "<br/>");
|
|
92120
|
-
const structuredText =
|
|
92111
|
+
const structuredText = markdownToLines(sanitizeBR.replace("<br>", "<br/>"), config2);
|
|
92121
92112
|
const svgLabel = createFormattedText(
|
|
92122
92113
|
width,
|
|
92123
92114
|
el,
|
|
92124
92115
|
structuredText,
|
|
92125
|
-
text2 ? addSvgBackground : false
|
|
92126
|
-
!isNode
|
|
92116
|
+
text2 ? addSvgBackground : false
|
|
92127
92117
|
);
|
|
92128
92118
|
if (isNode) {
|
|
92129
92119
|
if (/stroke:/.exec(style2)) {
|
|
@@ -92137,11 +92127,6 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
|
|
|
92137
92127
|
const edgeLabelTextStyle = style2.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
92138
92128
|
select(svgLabel).select("text").attr("style", edgeLabelTextStyle);
|
|
92139
92129
|
}
|
|
92140
|
-
if (isTitle) {
|
|
92141
|
-
select(svgLabel).selectAll("tspan.text-outer-tspan").classed("title-row", true);
|
|
92142
|
-
} else {
|
|
92143
|
-
select(svgLabel).selectAll("tspan.text-outer-tspan").classed("row", true);
|
|
92144
|
-
}
|
|
92145
92130
|
return svgLabel;
|
|
92146
92131
|
}
|
|
92147
92132
|
}, "createText");
|
|
@@ -93159,28 +93144,52 @@ var labelHelper = /* @__PURE__ */ __name(async (parent, node2, _classes) => {
|
|
|
93159
93144
|
} else {
|
|
93160
93145
|
label = typeof node2.label === "string" ? node2.label : node2.label[0];
|
|
93161
93146
|
}
|
|
93162
|
-
const
|
|
93163
|
-
|
|
93164
|
-
|
|
93165
|
-
|
|
93166
|
-
|
|
93167
|
-
|
|
93168
|
-
|
|
93169
|
-
|
|
93170
|
-
// @ts-expect-error -- This is currently not used. Should this be `classes` instead?
|
|
93171
|
-
cssClasses: isMarkdown ? "markdown-node-label" : void 0,
|
|
93172
|
-
style: node2.labelStyle,
|
|
93173
|
-
addSvgBackground: addBackground,
|
|
93174
|
-
markdown: isMarkdown
|
|
93175
|
-
},
|
|
93176
|
-
getConfig2()
|
|
93177
|
-
);
|
|
93147
|
+
const text2 = await createText(labelEl, sanitizeText(decodeEntities(label), getConfig2()), {
|
|
93148
|
+
useHtmlLabels,
|
|
93149
|
+
width: node2.width || getConfig2().flowchart?.wrappingWidth,
|
|
93150
|
+
// @ts-expect-error -- This is currently not used. Should this be `classes` instead?
|
|
93151
|
+
cssClasses: "markdown-node-label",
|
|
93152
|
+
style: node2.labelStyle,
|
|
93153
|
+
addSvgBackground: !!node2.icon || !!node2.img
|
|
93154
|
+
});
|
|
93178
93155
|
let bbox = text2.getBBox();
|
|
93179
93156
|
const halfPadding = (node2?.padding ?? 0) / 2;
|
|
93180
93157
|
if (useHtmlLabels) {
|
|
93181
93158
|
const div = text2.children[0];
|
|
93182
93159
|
const dv = select(text2);
|
|
93183
|
-
|
|
93160
|
+
const images = div.getElementsByTagName("img");
|
|
93161
|
+
if (images) {
|
|
93162
|
+
const noImgText = label.replace(/<img[^>]*>/g, "").trim() === "";
|
|
93163
|
+
await Promise.all(
|
|
93164
|
+
[...images].map(
|
|
93165
|
+
(img) => new Promise((res) => {
|
|
93166
|
+
function setupImage() {
|
|
93167
|
+
img.style.display = "flex";
|
|
93168
|
+
img.style.flexDirection = "column";
|
|
93169
|
+
if (noImgText) {
|
|
93170
|
+
const bodyFontSize = getConfig2().fontSize ? getConfig2().fontSize : window.getComputedStyle(document.body).fontSize;
|
|
93171
|
+
const enlargingFactor = 5;
|
|
93172
|
+
const [parsedBodyFontSize = defaultConfig_default.fontSize] = parseFontSize(bodyFontSize);
|
|
93173
|
+
const width = parsedBodyFontSize * enlargingFactor + "px";
|
|
93174
|
+
img.style.minWidth = width;
|
|
93175
|
+
img.style.maxWidth = width;
|
|
93176
|
+
} else {
|
|
93177
|
+
img.style.width = "100%";
|
|
93178
|
+
}
|
|
93179
|
+
res(img);
|
|
93180
|
+
}
|
|
93181
|
+
__name(setupImage, "setupImage");
|
|
93182
|
+
setTimeout(() => {
|
|
93183
|
+
if (img.complete) {
|
|
93184
|
+
setupImage();
|
|
93185
|
+
}
|
|
93186
|
+
});
|
|
93187
|
+
img.addEventListener("error", setupImage);
|
|
93188
|
+
img.addEventListener("load", setupImage);
|
|
93189
|
+
})
|
|
93190
|
+
)
|
|
93191
|
+
);
|
|
93192
|
+
}
|
|
93184
93193
|
bbox = div.getBoundingClientRect();
|
|
93185
93194
|
dv.attr("width", bbox.width);
|
|
93186
93195
|
dv.attr("height", bbox.height);
|
|
@@ -93197,7 +93206,7 @@ var labelHelper = /* @__PURE__ */ __name(async (parent, node2, _classes) => {
|
|
|
93197
93206
|
return { shapeSvg, bbox, halfPadding, label: labelEl };
|
|
93198
93207
|
}, "labelHelper");
|
|
93199
93208
|
var insertLabel = /* @__PURE__ */ __name(async (parent, label, options) => {
|
|
93200
|
-
const useHtmlLabels = options.useHtmlLabels
|
|
93209
|
+
const useHtmlLabels = options.useHtmlLabels || evaluate(getConfig2()?.flowchart?.htmlLabels);
|
|
93201
93210
|
const labelEl = parent.insert("g").attr("class", "label").attr("style", options.labelStyle || "");
|
|
93202
93211
|
const text2 = await createText(labelEl, sanitizeText(decodeEntities(label), getConfig2()), {
|
|
93203
93212
|
useHtmlLabels,
|
|
@@ -93207,7 +93216,7 @@ var insertLabel = /* @__PURE__ */ __name(async (parent, label, options) => {
|
|
|
93207
93216
|
});
|
|
93208
93217
|
let bbox = text2.getBBox();
|
|
93209
93218
|
const halfPadding = options.padding / 2;
|
|
93210
|
-
if (
|
|
93219
|
+
if (evaluate(getConfig2()?.flowchart?.htmlLabels)) {
|
|
93211
93220
|
const div = text2.children[0];
|
|
93212
93221
|
const dv = select(text2);
|
|
93213
93222
|
bbox = div.getBoundingClientRect();
|
|
@@ -93293,26 +93302,76 @@ var intersectRect = /* @__PURE__ */ __name((node2, point2) => {
|
|
|
93293
93302
|
return { x: x2 + sx, y: y3 + sy };
|
|
93294
93303
|
}, "intersectRect");
|
|
93295
93304
|
var intersect_rect_default = intersectRect;
|
|
93296
|
-
|
|
93305
|
+
function applyStyle(dom, styleFn) {
|
|
93306
|
+
if (styleFn) {
|
|
93307
|
+
dom.attr("style", styleFn);
|
|
93308
|
+
}
|
|
93309
|
+
}
|
|
93310
|
+
__name(applyStyle, "applyStyle");
|
|
93311
|
+
async function addHtmlLabel(node2) {
|
|
93312
|
+
const fo = select(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject"));
|
|
93313
|
+
const div = fo.append("xhtml:div");
|
|
93314
|
+
const config2 = getConfig2();
|
|
93315
|
+
let label = node2.label;
|
|
93316
|
+
if (node2.label && hasKatex(node2.label)) {
|
|
93317
|
+
label = await renderKatexSanitized(node2.label.replace(common_default.lineBreakRegex, "\n"), config2);
|
|
93318
|
+
}
|
|
93319
|
+
const labelClass = node2.isNode ? "nodeLabel" : "edgeLabel";
|
|
93320
|
+
const labelSpan = '<span class="' + labelClass + '" ' + (node2.labelStyle ? 'style="' + node2.labelStyle + '"' : "") + // codeql [js/html-constructed-from-input] : false positive
|
|
93321
|
+
">" + label + "</span>";
|
|
93322
|
+
div.html(sanitizeText(labelSpan, config2));
|
|
93323
|
+
applyStyle(div, node2.labelStyle);
|
|
93324
|
+
div.style("display", "inline-block");
|
|
93325
|
+
div.style("padding-right", "1px");
|
|
93326
|
+
div.style("white-space", "nowrap");
|
|
93327
|
+
div.attr("xmlns", "http://www.w3.org/1999/xhtml");
|
|
93328
|
+
return fo.node();
|
|
93329
|
+
}
|
|
93330
|
+
__name(addHtmlLabel, "addHtmlLabel");
|
|
93331
|
+
var createLabel = /* @__PURE__ */ __name(async (_vertexText, style2, isTitle, isNode) => {
|
|
93297
93332
|
let vertexText = _vertexText || "";
|
|
93298
93333
|
if (typeof vertexText === "object") {
|
|
93299
93334
|
vertexText = vertexText[0];
|
|
93300
93335
|
}
|
|
93301
|
-
|
|
93302
|
-
|
|
93303
|
-
|
|
93304
|
-
|
|
93305
|
-
vertexText,
|
|
93306
|
-
{
|
|
93307
|
-
style: style2,
|
|
93308
|
-
isTitle,
|
|
93309
|
-
useHtmlLabels,
|
|
93310
|
-
markdown: false,
|
|
93336
|
+
if (evaluate(getConfig2().flowchart.htmlLabels)) {
|
|
93337
|
+
vertexText = vertexText.replace(/\\n|\n/g, "<br />");
|
|
93338
|
+
log.info("vertexText" + vertexText);
|
|
93339
|
+
const node2 = {
|
|
93311
93340
|
isNode,
|
|
93312
|
-
|
|
93313
|
-
|
|
93314
|
-
|
|
93315
|
-
|
|
93341
|
+
label: decodeEntities(vertexText).replace(
|
|
93342
|
+
/fa[blrs]?:fa-[\w-]+/g,
|
|
93343
|
+
(s2) => `<i class='${s2.replace(":", " ")}'></i>`
|
|
93344
|
+
),
|
|
93345
|
+
labelStyle: style2 ? style2.replace("fill:", "color:") : style2
|
|
93346
|
+
};
|
|
93347
|
+
let vertexNode = await addHtmlLabel(node2);
|
|
93348
|
+
return vertexNode;
|
|
93349
|
+
} else {
|
|
93350
|
+
const svgLabel = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
93351
|
+
svgLabel.setAttribute("style", style2.replace("color:", "fill:"));
|
|
93352
|
+
let rows = [];
|
|
93353
|
+
if (typeof vertexText === "string") {
|
|
93354
|
+
rows = vertexText.split(/\\n|\n|<br\s*\/?>/gi);
|
|
93355
|
+
} else if (Array.isArray(vertexText)) {
|
|
93356
|
+
rows = vertexText;
|
|
93357
|
+
} else {
|
|
93358
|
+
rows = [];
|
|
93359
|
+
}
|
|
93360
|
+
for (const row of rows) {
|
|
93361
|
+
const tspan = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
93362
|
+
tspan.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
93363
|
+
tspan.setAttribute("dy", "1em");
|
|
93364
|
+
tspan.setAttribute("x", "0");
|
|
93365
|
+
if (isTitle) {
|
|
93366
|
+
tspan.setAttribute("class", "title-row");
|
|
93367
|
+
} else {
|
|
93368
|
+
tspan.setAttribute("class", "row");
|
|
93369
|
+
}
|
|
93370
|
+
tspan.textContent = row.trim();
|
|
93371
|
+
svgLabel.appendChild(tspan);
|
|
93372
|
+
}
|
|
93373
|
+
return svgLabel;
|
|
93374
|
+
}
|
|
93316
93375
|
}, "createLabel");
|
|
93317
93376
|
var createLabel_default = createLabel;
|
|
93318
93377
|
var createRoundedRectPathD = /* @__PURE__ */ __name((x2, y3, totalWidth, totalHeight, radius) => [
|
|
@@ -93378,21 +93437,15 @@ var rect = /* @__PURE__ */ __name(async (parent, node2) => {
|
|
|
93378
93437
|
const { clusterBkg, clusterBorder } = themeVariables;
|
|
93379
93438
|
const { labelStyles, nodeStyles, borderStyles, backgroundStyles } = styles2String(node2);
|
|
93380
93439
|
const shapeSvg = parent.insert("g").attr("class", "cluster " + node2.cssClasses).attr("id", node2.id).attr("data-look", node2.look);
|
|
93381
|
-
const useHtmlLabels =
|
|
93440
|
+
const useHtmlLabels = evaluate(siteConfig2.flowchart.htmlLabels);
|
|
93382
93441
|
const labelEl = shapeSvg.insert("g").attr("class", "cluster-label ");
|
|
93383
|
-
|
|
93384
|
-
|
|
93385
|
-
|
|
93386
|
-
|
|
93387
|
-
|
|
93388
|
-
isNode: true,
|
|
93389
|
-
width: node2.width
|
|
93390
|
-
});
|
|
93391
|
-
} else {
|
|
93392
|
-
text2 = await createLabel_default(labelEl, node2.label, node2.labelStyle || "", false, true);
|
|
93393
|
-
}
|
|
93442
|
+
const text2 = await createText(labelEl, node2.label, {
|
|
93443
|
+
style: node2.labelStyle,
|
|
93444
|
+
useHtmlLabels,
|
|
93445
|
+
isNode: true
|
|
93446
|
+
});
|
|
93394
93447
|
let bbox = text2.getBBox();
|
|
93395
|
-
if (
|
|
93448
|
+
if (evaluate(siteConfig2.flowchart.htmlLabels)) {
|
|
93396
93449
|
const div = text2.children[0];
|
|
93397
93450
|
const dv = select(text2);
|
|
93398
93451
|
bbox = div.getBoundingClientRect();
|
|
@@ -93475,9 +93528,9 @@ var roundedWithTitle = /* @__PURE__ */ __name(async (parent, node2) => {
|
|
|
93475
93528
|
const outerRectG = shapeSvg.insert("g", ":first-child");
|
|
93476
93529
|
const label = shapeSvg.insert("g").attr("class", "cluster-label");
|
|
93477
93530
|
let innerRect = shapeSvg.append("rect");
|
|
93478
|
-
const text2 = await createLabel_default(
|
|
93531
|
+
const text2 = label.node().appendChild(await createLabel_default(node2.label, node2.labelStyle, void 0, true));
|
|
93479
93532
|
let bbox = text2.getBBox();
|
|
93480
|
-
if (
|
|
93533
|
+
if (evaluate(siteConfig2.flowchart.htmlLabels)) {
|
|
93481
93534
|
const div = text2.children[0];
|
|
93482
93535
|
const dv = select(text2);
|
|
93483
93536
|
bbox = div.getBoundingClientRect();
|
|
@@ -93526,7 +93579,7 @@ var roundedWithTitle = /* @__PURE__ */ __name(async (parent, node2) => {
|
|
|
93526
93579
|
}
|
|
93527
93580
|
label.attr(
|
|
93528
93581
|
"transform",
|
|
93529
|
-
`translate(${node2.x - bbox.width / 2}, ${y3 + 1 - (
|
|
93582
|
+
`translate(${node2.x - bbox.width / 2}, ${y3 + 1 - (evaluate(siteConfig2.flowchart.htmlLabels) ? 0 : 3)})`
|
|
93530
93583
|
);
|
|
93531
93584
|
const rectBox = rect2.node().getBBox();
|
|
93532
93585
|
node2.height = rectBox.height;
|
|
@@ -93545,7 +93598,7 @@ var kanbanSection = /* @__PURE__ */ __name(async (parent, node2) => {
|
|
|
93545
93598
|
const { clusterBkg, clusterBorder } = themeVariables;
|
|
93546
93599
|
const { labelStyles, nodeStyles, borderStyles, backgroundStyles } = styles2String(node2);
|
|
93547
93600
|
const shapeSvg = parent.insert("g").attr("class", "cluster " + node2.cssClasses).attr("id", node2.id).attr("data-look", node2.look);
|
|
93548
|
-
const useHtmlLabels =
|
|
93601
|
+
const useHtmlLabels = evaluate(siteConfig2.flowchart.htmlLabels);
|
|
93549
93602
|
const labelEl = shapeSvg.insert("g").attr("class", "cluster-label ");
|
|
93550
93603
|
const text2 = await createText(labelEl, node2.label, {
|
|
93551
93604
|
style: node2.labelStyle,
|
|
@@ -93554,7 +93607,7 @@ var kanbanSection = /* @__PURE__ */ __name(async (parent, node2) => {
|
|
|
93554
93607
|
width: node2.width
|
|
93555
93608
|
});
|
|
93556
93609
|
let bbox = text2.getBBox();
|
|
93557
|
-
if (
|
|
93610
|
+
if (evaluate(siteConfig2.flowchart.htmlLabels)) {
|
|
93558
93611
|
const div = text2.children[0];
|
|
93559
93612
|
const dv = select(text2);
|
|
93560
93613
|
bbox = div.getBoundingClientRect();
|
|
@@ -94666,49 +94719,44 @@ async function halfRoundedRectangle(parent, node2) {
|
|
|
94666
94719
|
return shapeSvg;
|
|
94667
94720
|
}
|
|
94668
94721
|
__name(halfRoundedRectangle, "halfRoundedRectangle");
|
|
94669
|
-
var createHexagonPathD = /* @__PURE__ */ __name((x2, y3, width, height, m2) => {
|
|
94670
|
-
return [
|
|
94671
|
-
`M${x2 + m2},${y3}`,
|
|
94672
|
-
`L${x2 + width - m2},${y3}`,
|
|
94673
|
-
`L${x2 + width},${y3 - height / 2}`,
|
|
94674
|
-
`L${x2 + width - m2},${y3 - height}`,
|
|
94675
|
-
`L${x2 + m2},${y3 - height}`,
|
|
94676
|
-
`L${x2},${y3 - height / 2}`,
|
|
94677
|
-
"Z"
|
|
94678
|
-
].join(" ");
|
|
94679
|
-
}, "createHexagonPathD");
|
|
94680
94722
|
async function hexagon(parent, node2) {
|
|
94681
94723
|
const { labelStyles, nodeStyles } = styles2String(node2);
|
|
94682
94724
|
node2.labelStyle = labelStyles;
|
|
94683
94725
|
const { shapeSvg, bbox } = await labelHelper(parent, node2, getNodeClasses(node2));
|
|
94684
|
-
const
|
|
94685
|
-
const
|
|
94686
|
-
const
|
|
94687
|
-
const
|
|
94726
|
+
const h2 = bbox.height + (node2.padding ?? 0);
|
|
94727
|
+
const w2 = bbox.width + (node2.padding ?? 0) * 2.5;
|
|
94728
|
+
const { cssStyles } = node2;
|
|
94729
|
+
const rc = at.svg(shapeSvg);
|
|
94730
|
+
const options = userNodeOverrides(node2, {});
|
|
94731
|
+
if (node2.look !== "handDrawn") {
|
|
94732
|
+
options.roughness = 0;
|
|
94733
|
+
options.fillStyle = "solid";
|
|
94734
|
+
}
|
|
94735
|
+
let halfWidth = w2 / 2;
|
|
94736
|
+
const m2 = halfWidth / 6;
|
|
94737
|
+
halfWidth = halfWidth + m2;
|
|
94738
|
+
const halfHeight = h2 / 2;
|
|
94739
|
+
const fixedLength = halfHeight / 2;
|
|
94740
|
+
const deducedWidth = halfWidth - fixedLength;
|
|
94688
94741
|
const points = [
|
|
94689
|
-
{ x:
|
|
94690
|
-
{ x:
|
|
94691
|
-
{ x:
|
|
94692
|
-
{ x:
|
|
94693
|
-
{ x:
|
|
94694
|
-
{ x: 0, y:
|
|
94742
|
+
{ x: -deducedWidth, y: -halfHeight },
|
|
94743
|
+
{ x: 0, y: -halfHeight },
|
|
94744
|
+
{ x: deducedWidth, y: -halfHeight },
|
|
94745
|
+
{ x: halfWidth, y: 0 },
|
|
94746
|
+
{ x: deducedWidth, y: halfHeight },
|
|
94747
|
+
{ x: 0, y: halfHeight },
|
|
94748
|
+
{ x: -deducedWidth, y: halfHeight },
|
|
94749
|
+
{ x: -halfWidth, y: 0 }
|
|
94695
94750
|
];
|
|
94696
|
-
|
|
94697
|
-
const
|
|
94698
|
-
|
|
94699
|
-
|
|
94700
|
-
|
|
94701
|
-
|
|
94702
|
-
const roughNode = rc.path(pathData, options);
|
|
94703
|
-
polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-w2 / 2}, ${h2 / 2})`);
|
|
94704
|
-
if (cssStyles) {
|
|
94705
|
-
polygon.attr("style", cssStyles);
|
|
94706
|
-
}
|
|
94707
|
-
} else {
|
|
94708
|
-
polygon = insertPolygonShape(shapeSvg, w2, h2, points);
|
|
94751
|
+
const pathData = createPathFromPoints(points);
|
|
94752
|
+
const shapeNode = rc.path(pathData, options);
|
|
94753
|
+
const polygon = shapeSvg.insert(() => shapeNode, ":first-child");
|
|
94754
|
+
polygon.attr("class", "basic label-container");
|
|
94755
|
+
if (cssStyles && node2.look !== "handDrawn") {
|
|
94756
|
+
polygon.selectChildren("path").attr("style", cssStyles);
|
|
94709
94757
|
}
|
|
94710
|
-
if (nodeStyles) {
|
|
94711
|
-
polygon.attr("style", nodeStyles);
|
|
94758
|
+
if (nodeStyles && node2.look !== "handDrawn") {
|
|
94759
|
+
polygon.selectChildren("path").attr("style", nodeStyles);
|
|
94712
94760
|
}
|
|
94713
94761
|
node2.width = w2;
|
|
94714
94762
|
node2.height = h2;
|
|
@@ -95727,7 +95775,7 @@ __name(multiWaveEdgedRectangle, "multiWaveEdgedRectangle");
|
|
|
95727
95775
|
async function note(parent, node2, { config: { themeVariables } }) {
|
|
95728
95776
|
const { labelStyles, nodeStyles } = styles2String(node2);
|
|
95729
95777
|
node2.labelStyle = labelStyles;
|
|
95730
|
-
const useHtmlLabels = node2.useHtmlLabels ||
|
|
95778
|
+
const useHtmlLabels = node2.useHtmlLabels || getConfig().flowchart?.htmlLabels !== false;
|
|
95731
95779
|
if (!useHtmlLabels) {
|
|
95732
95780
|
node2.centerLabel = true;
|
|
95733
95781
|
}
|
|
@@ -95884,9 +95932,9 @@ async function rectWithTitle(parent, node2) {
|
|
|
95884
95932
|
const label = shapeSvg.insert("g").attr("class", "label").attr("style", nodeStyles);
|
|
95885
95933
|
const description = node2.description;
|
|
95886
95934
|
const title = node2.label;
|
|
95887
|
-
const text2 = await createLabel_default(
|
|
95935
|
+
const text2 = label.node().appendChild(await createLabel_default(title, node2.labelStyle, true, true));
|
|
95888
95936
|
let bbox = { width: 0, height: 0 };
|
|
95889
|
-
if (
|
|
95937
|
+
if (evaluate(getConfig2()?.flowchart?.htmlLabels)) {
|
|
95890
95938
|
const div2 = text2.children[0];
|
|
95891
95939
|
const dv2 = select(text2);
|
|
95892
95940
|
bbox = div2.getBoundingClientRect();
|
|
@@ -95896,12 +95944,13 @@ async function rectWithTitle(parent, node2) {
|
|
|
95896
95944
|
log.info("Text 2", description);
|
|
95897
95945
|
const textRows = description || [];
|
|
95898
95946
|
const titleBox = text2.getBBox();
|
|
95899
|
-
const descr =
|
|
95900
|
-
|
|
95901
|
-
|
|
95902
|
-
|
|
95903
|
-
|
|
95904
|
-
|
|
95947
|
+
const descr = label.node().appendChild(
|
|
95948
|
+
await createLabel_default(
|
|
95949
|
+
textRows.join ? textRows.join("<br/>") : textRows,
|
|
95950
|
+
node2.labelStyle,
|
|
95951
|
+
true,
|
|
95952
|
+
true
|
|
95953
|
+
)
|
|
95905
95954
|
);
|
|
95906
95955
|
const div = descr.children[0];
|
|
95907
95956
|
const dv = select(descr);
|
|
@@ -95963,14 +96012,108 @@ async function rectWithTitle(parent, node2) {
|
|
|
95963
96012
|
return shapeSvg;
|
|
95964
96013
|
}
|
|
95965
96014
|
__name(rectWithTitle, "rectWithTitle");
|
|
96015
|
+
function generateArcPoints2(x1, y1, x2, y22, rx, ry, clockwise) {
|
|
96016
|
+
const numPoints = 20;
|
|
96017
|
+
const midX = (x1 + x2) / 2;
|
|
96018
|
+
const midY = (y1 + y22) / 2;
|
|
96019
|
+
const angle = Math.atan2(y22 - y1, x2 - x1);
|
|
96020
|
+
const dx = (x2 - x1) / 2;
|
|
96021
|
+
const dy = (y22 - y1) / 2;
|
|
96022
|
+
const transformedX = dx / rx;
|
|
96023
|
+
const transformedY = dy / ry;
|
|
96024
|
+
const distance2 = Math.sqrt(transformedX ** 2 + transformedY ** 2);
|
|
96025
|
+
if (distance2 > 1) {
|
|
96026
|
+
throw new Error("The given radii are too small to create an arc between the points.");
|
|
96027
|
+
}
|
|
96028
|
+
const scaledCenterDistance = Math.sqrt(1 - distance2 ** 2);
|
|
96029
|
+
const centerX = midX + scaledCenterDistance * ry * Math.sin(angle) * (clockwise ? -1 : 1);
|
|
96030
|
+
const centerY = midY - scaledCenterDistance * rx * Math.cos(angle) * (clockwise ? -1 : 1);
|
|
96031
|
+
const startAngle = Math.atan2((y1 - centerY) / ry, (x1 - centerX) / rx);
|
|
96032
|
+
const endAngle = Math.atan2((y22 - centerY) / ry, (x2 - centerX) / rx);
|
|
96033
|
+
let angleRange = endAngle - startAngle;
|
|
96034
|
+
if (clockwise && angleRange < 0) {
|
|
96035
|
+
angleRange += 2 * Math.PI;
|
|
96036
|
+
}
|
|
96037
|
+
if (!clockwise && angleRange > 0) {
|
|
96038
|
+
angleRange -= 2 * Math.PI;
|
|
96039
|
+
}
|
|
96040
|
+
const points = [];
|
|
96041
|
+
for (let i2 = 0; i2 < numPoints; i2++) {
|
|
96042
|
+
const t2 = i2 / (numPoints - 1);
|
|
96043
|
+
const angle2 = startAngle + t2 * angleRange;
|
|
96044
|
+
const x3 = centerX + rx * Math.cos(angle2);
|
|
96045
|
+
const y3 = centerY + ry * Math.sin(angle2);
|
|
96046
|
+
points.push({ x: x3, y: y3 });
|
|
96047
|
+
}
|
|
96048
|
+
return points;
|
|
96049
|
+
}
|
|
96050
|
+
__name(generateArcPoints2, "generateArcPoints");
|
|
95966
96051
|
async function roundedRect(parent, node2) {
|
|
95967
|
-
const
|
|
95968
|
-
|
|
95969
|
-
|
|
95970
|
-
|
|
95971
|
-
|
|
96052
|
+
const { labelStyles, nodeStyles } = styles2String(node2);
|
|
96053
|
+
node2.labelStyle = labelStyles;
|
|
96054
|
+
const { shapeSvg, bbox } = await labelHelper(parent, node2, getNodeClasses(node2));
|
|
96055
|
+
const labelPaddingX = node2?.padding ?? 0;
|
|
96056
|
+
const labelPaddingY = node2?.padding ?? 0;
|
|
96057
|
+
const w2 = (node2?.width ? node2?.width : bbox.width) + labelPaddingX * 2;
|
|
96058
|
+
const h2 = (node2?.height ? node2?.height : bbox.height) + labelPaddingY * 2;
|
|
96059
|
+
const radius = node2.radius || 5;
|
|
96060
|
+
const taper = node2.taper || 5;
|
|
96061
|
+
const { cssStyles } = node2;
|
|
96062
|
+
const rc = at.svg(shapeSvg);
|
|
96063
|
+
const options = userNodeOverrides(node2, {});
|
|
96064
|
+
if (node2.stroke) {
|
|
96065
|
+
options.stroke = node2.stroke;
|
|
96066
|
+
}
|
|
96067
|
+
if (node2.look !== "handDrawn") {
|
|
96068
|
+
options.roughness = 0;
|
|
96069
|
+
options.fillStyle = "solid";
|
|
96070
|
+
}
|
|
96071
|
+
const points = [
|
|
96072
|
+
// Top edge (left to right)
|
|
96073
|
+
{ x: -w2 / 2 + taper, y: -h2 / 2 },
|
|
96074
|
+
// Top-left corner start (1)
|
|
96075
|
+
{ x: w2 / 2 - taper, y: -h2 / 2 },
|
|
96076
|
+
// Top-right corner start (2)
|
|
96077
|
+
...generateArcPoints2(w2 / 2 - taper, -h2 / 2, w2 / 2, -h2 / 2 + taper, radius, radius, true),
|
|
96078
|
+
// Top-left arc (2 to 3)
|
|
96079
|
+
// Right edge (top to bottom)
|
|
96080
|
+
{ x: w2 / 2, y: -h2 / 2 + taper },
|
|
96081
|
+
// Top-right taper point (3)
|
|
96082
|
+
{ x: w2 / 2, y: h2 / 2 - taper },
|
|
96083
|
+
// Bottom-right taper point (4)
|
|
96084
|
+
...generateArcPoints2(w2 / 2, h2 / 2 - taper, w2 / 2 - taper, h2 / 2, radius, radius, true),
|
|
96085
|
+
// Top-left arc (4 to 5)
|
|
96086
|
+
// Bottom edge (right to left)
|
|
96087
|
+
{ x: w2 / 2 - taper, y: h2 / 2 },
|
|
96088
|
+
// Bottom-right corner start (5)
|
|
96089
|
+
{ x: -w2 / 2 + taper, y: h2 / 2 },
|
|
96090
|
+
// Bottom-left corner start (6)
|
|
96091
|
+
...generateArcPoints2(-w2 / 2 + taper, h2 / 2, -w2 / 2, h2 / 2 - taper, radius, radius, true),
|
|
96092
|
+
// Top-left arc (4 to 5)
|
|
96093
|
+
// Left edge (bottom to top)
|
|
96094
|
+
{ x: -w2 / 2, y: h2 / 2 - taper },
|
|
96095
|
+
// Bottom-left taper point (7)
|
|
96096
|
+
{ x: -w2 / 2, y: -h2 / 2 + taper },
|
|
96097
|
+
// Top-left taper point (8)
|
|
96098
|
+
...generateArcPoints2(-w2 / 2, -h2 / 2 + taper, -w2 / 2 + taper, -h2 / 2, radius, radius, true)
|
|
96099
|
+
// Top-left arc (4 to 5)
|
|
96100
|
+
];
|
|
96101
|
+
const pathData = createPathFromPoints(points);
|
|
96102
|
+
const shapeNode = rc.path(pathData, options);
|
|
96103
|
+
const polygon = shapeSvg.insert(() => shapeNode, ":first-child");
|
|
96104
|
+
polygon.attr("class", "basic label-container outer-path");
|
|
96105
|
+
if (cssStyles && node2.look !== "handDrawn") {
|
|
96106
|
+
polygon.selectChildren("path").attr("style", cssStyles);
|
|
96107
|
+
}
|
|
96108
|
+
if (nodeStyles && node2.look !== "handDrawn") {
|
|
96109
|
+
polygon.selectChildren("path").attr("style", nodeStyles);
|
|
96110
|
+
}
|
|
96111
|
+
updateNodeBounds(node2, polygon);
|
|
96112
|
+
node2.intersect = function(point2) {
|
|
96113
|
+
const pos = intersect_default.polygon(node2, points, point2);
|
|
96114
|
+
return pos;
|
|
95972
96115
|
};
|
|
95973
|
-
return
|
|
96116
|
+
return shapeSvg;
|
|
95974
96117
|
}
|
|
95975
96118
|
__name(roundedRect, "roundedRect");
|
|
95976
96119
|
async function shadedProcess(parent, node2) {
|
|
@@ -96536,7 +96679,7 @@ async function triangle(parent, node2) {
|
|
|
96536
96679
|
const { labelStyles, nodeStyles } = styles2String(node2);
|
|
96537
96680
|
node2.labelStyle = labelStyles;
|
|
96538
96681
|
const { shapeSvg, bbox, label } = await labelHelper(parent, node2, getNodeClasses(node2));
|
|
96539
|
-
const useHtmlLabels =
|
|
96682
|
+
const useHtmlLabels = evaluate(getConfig2().flowchart?.htmlLabels);
|
|
96540
96683
|
const w2 = bbox.width + (node2.padding ?? 0);
|
|
96541
96684
|
const h2 = w2 + bbox.height;
|
|
96542
96685
|
const tw = w2 + bbox.height;
|
|
@@ -98194,12 +98337,12 @@ var positionNode = /* @__PURE__ */ __name((node2) => {
|
|
|
98194
98337
|
}
|
|
98195
98338
|
return diff;
|
|
98196
98339
|
}, "positionNode");
|
|
98197
|
-
var addEdgeMarkers = /* @__PURE__ */ __name((svgPath, edge, url,
|
|
98340
|
+
var addEdgeMarkers = /* @__PURE__ */ __name((svgPath, edge, url, id28, diagramType, strokeColor) => {
|
|
98198
98341
|
if (edge.arrowTypeStart) {
|
|
98199
|
-
addEdgeMarker(svgPath, "start", edge.arrowTypeStart, url,
|
|
98342
|
+
addEdgeMarker(svgPath, "start", edge.arrowTypeStart, url, id28, diagramType, strokeColor);
|
|
98200
98343
|
}
|
|
98201
98344
|
if (edge.arrowTypeEnd) {
|
|
98202
|
-
addEdgeMarker(svgPath, "end", edge.arrowTypeEnd, url,
|
|
98345
|
+
addEdgeMarker(svgPath, "end", edge.arrowTypeEnd, url, id28, diagramType, strokeColor);
|
|
98203
98346
|
}
|
|
98204
98347
|
}, "addEdgeMarkers");
|
|
98205
98348
|
var arrowTypesMap = {
|
|
@@ -98219,7 +98362,7 @@ var arrowTypesMap = {
|
|
|
98219
98362
|
requirement_arrow: { type: "requirement_arrow", fill: false },
|
|
98220
98363
|
requirement_contains: { type: "requirement_contains", fill: false }
|
|
98221
98364
|
};
|
|
98222
|
-
var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url,
|
|
98365
|
+
var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url, id28, diagramType, strokeColor) => {
|
|
98223
98366
|
const arrowTypeInfo = arrowTypesMap[arrowType];
|
|
98224
98367
|
if (!arrowTypeInfo) {
|
|
98225
98368
|
log.warn(`Unknown arrow type: ${arrowType}`);
|
|
@@ -98227,7 +98370,7 @@ var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url,
|
|
|
98227
98370
|
}
|
|
98228
98371
|
const endMarkerType = arrowTypeInfo.type;
|
|
98229
98372
|
const suffix = position2 === "start" ? "Start" : "End";
|
|
98230
|
-
const originalMarkerId = `${
|
|
98373
|
+
const originalMarkerId = `${id28}_${diagramType}-${endMarkerType}${suffix}`;
|
|
98231
98374
|
if (strokeColor && strokeColor.trim() !== "") {
|
|
98232
98375
|
const colorId = strokeColor.replace(/[^\dA-Za-z]/g, "_");
|
|
98233
98376
|
const coloredMarkerId = `${originalMarkerId}_${colorId}`;
|
|
@@ -98251,9 +98394,6 @@ var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url,
|
|
|
98251
98394
|
svgPath.attr(`marker-${position2}`, `url(${url}#${originalMarkerId})`);
|
|
98252
98395
|
}
|
|
98253
98396
|
}, "addEdgeMarker");
|
|
98254
|
-
var resolveEdgeCurveType = /* @__PURE__ */ __name((edgeCurve) => {
|
|
98255
|
-
return typeof edgeCurve === "string" ? edgeCurve : getConfig2()?.flowchart?.curve;
|
|
98256
|
-
}, "resolveEdgeCurveType");
|
|
98257
98397
|
var edgeLabels = /* @__PURE__ */ new Map();
|
|
98258
98398
|
var terminalLabels = /* @__PURE__ */ new Map();
|
|
98259
98399
|
var clear = /* @__PURE__ */ __name(() => {
|
|
@@ -98261,79 +98401,46 @@ var clear = /* @__PURE__ */ __name(() => {
|
|
|
98261
98401
|
terminalLabels.clear();
|
|
98262
98402
|
}, "clear");
|
|
98263
98403
|
var getLabelStyles = /* @__PURE__ */ __name((styleArray) => {
|
|
98264
|
-
|
|
98265
|
-
|
|
98266
|
-
}
|
|
98267
|
-
if (typeof styleArray === "string") {
|
|
98268
|
-
return styleArray;
|
|
98269
|
-
}
|
|
98270
|
-
return styleArray.reduce((acc, style2) => acc + ";" + style2, "");
|
|
98404
|
+
let styles2 = styleArray ? styleArray.reduce((acc, style2) => acc + ";" + style2, "") : "";
|
|
98405
|
+
return styles2;
|
|
98271
98406
|
}, "getLabelStyles");
|
|
98272
98407
|
var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
|
|
98273
|
-
|
|
98274
|
-
let useHtmlLabels = getEffectiveHtmlLabels(config2);
|
|
98408
|
+
let useHtmlLabels = evaluate(getConfig2().flowchart.htmlLabels);
|
|
98275
98409
|
const { labelStyles } = styles2String(edge);
|
|
98276
98410
|
edge.labelStyle = labelStyles;
|
|
98411
|
+
const labelElement = await createText(elem, edge.label, {
|
|
98412
|
+
style: edge.labelStyle,
|
|
98413
|
+
useHtmlLabels,
|
|
98414
|
+
addSvgBackground: true,
|
|
98415
|
+
isNode: false
|
|
98416
|
+
});
|
|
98417
|
+
log.info("abc82", edge, edge.labelType);
|
|
98277
98418
|
const edgeLabel = elem.insert("g").attr("class", "edgeLabel");
|
|
98278
98419
|
const label = edgeLabel.insert("g").attr("class", "label").attr("data-id", edge.id);
|
|
98279
|
-
const isMarkdown = edge.labelType === "markdown";
|
|
98280
|
-
const markdownWidth = void 0;
|
|
98281
|
-
const labelElement = await createText(
|
|
98282
|
-
elem,
|
|
98283
|
-
edge.label,
|
|
98284
|
-
{
|
|
98285
|
-
style: getLabelStyles(edge.labelStyle),
|
|
98286
|
-
useHtmlLabels,
|
|
98287
|
-
addSvgBackground: true,
|
|
98288
|
-
isNode: false,
|
|
98289
|
-
markdown: isMarkdown,
|
|
98290
|
-
// Plain text edge labels should auto-wrap, markdown edge labels respect markdownAutoWrap config
|
|
98291
|
-
width: isMarkdown ? markdownWidth : void 0
|
|
98292
|
-
},
|
|
98293
|
-
config2
|
|
98294
|
-
);
|
|
98295
98420
|
label.node().appendChild(labelElement);
|
|
98296
|
-
log.info("abc82", edge, edge.labelType);
|
|
98297
98421
|
let bbox = labelElement.getBBox();
|
|
98298
|
-
let transformBbox = bbox;
|
|
98299
98422
|
if (useHtmlLabels) {
|
|
98300
98423
|
const div = labelElement.children[0];
|
|
98301
98424
|
const dv = select(labelElement);
|
|
98302
98425
|
bbox = div.getBoundingClientRect();
|
|
98303
|
-
transformBbox = bbox;
|
|
98304
98426
|
dv.attr("width", bbox.width);
|
|
98305
98427
|
dv.attr("height", bbox.height);
|
|
98306
|
-
} else {
|
|
98307
|
-
const textEl = select(labelElement).select("text").node();
|
|
98308
|
-
if (textEl && typeof textEl.getBBox === "function") {
|
|
98309
|
-
transformBbox = textEl.getBBox();
|
|
98310
|
-
}
|
|
98311
98428
|
}
|
|
98312
|
-
label.attr("transform",
|
|
98429
|
+
label.attr("transform", "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")");
|
|
98313
98430
|
edgeLabels.set(edge.id, edgeLabel);
|
|
98314
98431
|
edge.width = bbox.width;
|
|
98315
98432
|
edge.height = bbox.height;
|
|
98316
98433
|
let fo;
|
|
98317
98434
|
if (edge.startLabelLeft) {
|
|
98318
|
-
const startEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
|
|
98319
|
-
const inner2 = startEdgeLabelLeft.insert("g").attr("class", "inner");
|
|
98320
98435
|
const startLabelElement = await createLabel_default(
|
|
98321
|
-
inner2,
|
|
98322
98436
|
edge.startLabelLeft,
|
|
98323
|
-
getLabelStyles(edge.labelStyle)
|
|
98324
|
-
false,
|
|
98325
|
-
false
|
|
98437
|
+
getLabelStyles(edge.labelStyle)
|
|
98326
98438
|
);
|
|
98327
|
-
|
|
98328
|
-
|
|
98329
|
-
|
|
98330
|
-
|
|
98331
|
-
|
|
98332
|
-
slBox = div.getBoundingClientRect();
|
|
98333
|
-
dv.attr("width", slBox.width);
|
|
98334
|
-
dv.attr("height", slBox.height);
|
|
98335
|
-
}
|
|
98336
|
-
inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
|
|
98439
|
+
const startEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
|
|
98440
|
+
const inner2 = startEdgeLabelLeft.insert("g").attr("class", "inner");
|
|
98441
|
+
fo = inner2.node().appendChild(startLabelElement);
|
|
98442
|
+
const slBox = startLabelElement.getBBox();
|
|
98443
|
+
inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
|
|
98337
98444
|
if (!terminalLabels.get(edge.id)) {
|
|
98338
98445
|
terminalLabels.set(edge.id, {});
|
|
98339
98446
|
}
|
|
@@ -98341,26 +98448,16 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
|
|
|
98341
98448
|
setTerminalWidth(fo, edge.startLabelLeft);
|
|
98342
98449
|
}
|
|
98343
98450
|
if (edge.startLabelRight) {
|
|
98344
|
-
const startEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
|
|
98345
|
-
const inner2 = startEdgeLabelRight.insert("g").attr("class", "inner");
|
|
98346
98451
|
const startLabelElement = await createLabel_default(
|
|
98347
|
-
inner2,
|
|
98348
98452
|
edge.startLabelRight,
|
|
98349
|
-
getLabelStyles(edge.labelStyle)
|
|
98350
|
-
false,
|
|
98351
|
-
false
|
|
98453
|
+
getLabelStyles(edge.labelStyle)
|
|
98352
98454
|
);
|
|
98353
|
-
|
|
98455
|
+
const startEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
|
|
98456
|
+
const inner2 = startEdgeLabelRight.insert("g").attr("class", "inner");
|
|
98457
|
+
fo = startEdgeLabelRight.node().appendChild(startLabelElement);
|
|
98354
98458
|
inner2.node().appendChild(startLabelElement);
|
|
98355
|
-
|
|
98356
|
-
|
|
98357
|
-
const div = startLabelElement.children[0];
|
|
98358
|
-
const dv = select(startLabelElement);
|
|
98359
|
-
slBox = div.getBoundingClientRect();
|
|
98360
|
-
dv.attr("width", slBox.width);
|
|
98361
|
-
dv.attr("height", slBox.height);
|
|
98362
|
-
}
|
|
98363
|
-
inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
|
|
98459
|
+
const slBox = startLabelElement.getBBox();
|
|
98460
|
+
inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
|
|
98364
98461
|
if (!terminalLabels.get(edge.id)) {
|
|
98365
98462
|
terminalLabels.set(edge.id, {});
|
|
98366
98463
|
}
|
|
@@ -98368,25 +98465,12 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
|
|
|
98368
98465
|
setTerminalWidth(fo, edge.startLabelRight);
|
|
98369
98466
|
}
|
|
98370
98467
|
if (edge.endLabelLeft) {
|
|
98468
|
+
const endLabelElement = await createLabel_default(edge.endLabelLeft, getLabelStyles(edge.labelStyle));
|
|
98371
98469
|
const endEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
|
|
98372
98470
|
const inner2 = endEdgeLabelLeft.insert("g").attr("class", "inner");
|
|
98373
|
-
|
|
98374
|
-
|
|
98375
|
-
|
|
98376
|
-
getLabelStyles(edge.labelStyle) || "",
|
|
98377
|
-
false,
|
|
98378
|
-
false
|
|
98379
|
-
);
|
|
98380
|
-
fo = endLabelElement;
|
|
98381
|
-
let slBox = endLabelElement.getBBox();
|
|
98382
|
-
if (useHtmlLabels) {
|
|
98383
|
-
const div = endLabelElement.children[0];
|
|
98384
|
-
const dv = select(endLabelElement);
|
|
98385
|
-
slBox = div.getBoundingClientRect();
|
|
98386
|
-
dv.attr("width", slBox.width);
|
|
98387
|
-
dv.attr("height", slBox.height);
|
|
98388
|
-
}
|
|
98389
|
-
inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
|
|
98471
|
+
fo = inner2.node().appendChild(endLabelElement);
|
|
98472
|
+
const slBox = endLabelElement.getBBox();
|
|
98473
|
+
inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
|
|
98390
98474
|
endEdgeLabelLeft.node().appendChild(endLabelElement);
|
|
98391
98475
|
if (!terminalLabels.get(edge.id)) {
|
|
98392
98476
|
terminalLabels.set(edge.id, {});
|
|
@@ -98395,25 +98479,12 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
|
|
|
98395
98479
|
setTerminalWidth(fo, edge.endLabelLeft);
|
|
98396
98480
|
}
|
|
98397
98481
|
if (edge.endLabelRight) {
|
|
98482
|
+
const endLabelElement = await createLabel_default(edge.endLabelRight, getLabelStyles(edge.labelStyle));
|
|
98398
98483
|
const endEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
|
|
98399
98484
|
const inner2 = endEdgeLabelRight.insert("g").attr("class", "inner");
|
|
98400
|
-
|
|
98401
|
-
|
|
98402
|
-
|
|
98403
|
-
getLabelStyles(edge.labelStyle) || "",
|
|
98404
|
-
false,
|
|
98405
|
-
false
|
|
98406
|
-
);
|
|
98407
|
-
fo = endLabelElement;
|
|
98408
|
-
let slBox = endLabelElement.getBBox();
|
|
98409
|
-
if (useHtmlLabels) {
|
|
98410
|
-
const div = endLabelElement.children[0];
|
|
98411
|
-
const dv = select(endLabelElement);
|
|
98412
|
-
slBox = div.getBoundingClientRect();
|
|
98413
|
-
dv.attr("width", slBox.width);
|
|
98414
|
-
dv.attr("height", slBox.height);
|
|
98415
|
-
}
|
|
98416
|
-
inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
|
|
98485
|
+
fo = inner2.node().appendChild(endLabelElement);
|
|
98486
|
+
const slBox = endLabelElement.getBBox();
|
|
98487
|
+
inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
|
|
98417
98488
|
endEdgeLabelRight.node().appendChild(endLabelElement);
|
|
98418
98489
|
if (!terminalLabels.get(edge.id)) {
|
|
98419
98490
|
terminalLabels.set(edge.id, {});
|
|
@@ -98424,7 +98495,7 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
|
|
|
98424
98495
|
return labelElement;
|
|
98425
98496
|
}, "insertEdgeLabel");
|
|
98426
98497
|
function setTerminalWidth(fo, value) {
|
|
98427
|
-
if (
|
|
98498
|
+
if (getConfig2().flowchart.htmlLabels && fo) {
|
|
98428
98499
|
fo.style.width = value.length * 9 + "px";
|
|
98429
98500
|
fo.style.height = "12px";
|
|
98430
98501
|
}
|
|
@@ -98686,7 +98757,7 @@ var generateDashArray = /* @__PURE__ */ __name((len, oValueS, oValueE) => {
|
|
|
98686
98757
|
const dashArray = `0 ${oValueS} ${middlePattern} ${oValueE}`;
|
|
98687
98758
|
return dashArray;
|
|
98688
98759
|
}, "generateDashArray");
|
|
98689
|
-
var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramType, startNode, endNode,
|
|
98760
|
+
var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramType, startNode, endNode, id28, skipIntersect = false) {
|
|
98690
98761
|
const { handDrawnSeed } = getConfig2();
|
|
98691
98762
|
let points = edge.points;
|
|
98692
98763
|
let pointsHasChanged = false;
|
|
@@ -98730,12 +98801,10 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
|
|
|
98730
98801
|
pointsHasChanged = true;
|
|
98731
98802
|
}
|
|
98732
98803
|
let lineData = points.filter((p2) => !Number.isNaN(p2.y));
|
|
98733
|
-
|
|
98734
|
-
|
|
98735
|
-
|
|
98736
|
-
|
|
98737
|
-
let curve = curveLinear;
|
|
98738
|
-
switch (edgeCurveType) {
|
|
98804
|
+
lineData = fixCorners(lineData);
|
|
98805
|
+
let curve = curveBasis;
|
|
98806
|
+
curve = curveLinear;
|
|
98807
|
+
switch (edge.curve) {
|
|
98739
98808
|
case "linear":
|
|
98740
98809
|
curve = curveLinear;
|
|
98741
98810
|
break;
|
|
@@ -98772,9 +98841,6 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
|
|
|
98772
98841
|
case "stepBefore":
|
|
98773
98842
|
curve = stepBefore;
|
|
98774
98843
|
break;
|
|
98775
|
-
case "rounded":
|
|
98776
|
-
curve = curveLinear;
|
|
98777
|
-
break;
|
|
98778
98844
|
default:
|
|
98779
98845
|
curve = curveBasis;
|
|
98780
98846
|
}
|
|
@@ -98808,16 +98874,9 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
|
|
|
98808
98874
|
strokeClasses += " edge-pattern-solid";
|
|
98809
98875
|
}
|
|
98810
98876
|
let svgPath;
|
|
98811
|
-
let linePath =
|
|
98877
|
+
let linePath = edge.curve === "rounded" ? generateRoundedPath(applyMarkerOffsetsToPoints(lineData, edge), 5) : lineFunction(lineData);
|
|
98812
98878
|
const edgeStyles = Array.isArray(edge.style) ? edge.style : [edge.style];
|
|
98813
98879
|
let strokeColor = edgeStyles.find((style2) => style2?.startsWith("stroke:"));
|
|
98814
|
-
let animationClass = "";
|
|
98815
|
-
if (edge.animate) {
|
|
98816
|
-
animationClass = "edge-animation-fast";
|
|
98817
|
-
}
|
|
98818
|
-
if (edge.animation) {
|
|
98819
|
-
animationClass = "edge-animation-" + edge.animation;
|
|
98820
|
-
}
|
|
98821
98880
|
let animatedEdge = false;
|
|
98822
98881
|
if (edge.look === "handDrawn") {
|
|
98823
98882
|
const rc = at.svg(elem);
|
|
@@ -98827,20 +98886,24 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
|
|
|
98827
98886
|
seed: handDrawnSeed
|
|
98828
98887
|
});
|
|
98829
98888
|
strokeClasses += " transition";
|
|
98830
|
-
svgPath = select(svgPathNode).select("path").attr("id", edge.id).attr(
|
|
98831
|
-
"class",
|
|
98832
|
-
" " + strokeClasses + (edge.classes ? " " + edge.classes : "") + (animationClass ? " " + animationClass : "")
|
|
98833
|
-
).attr("style", edgeStyles ? edgeStyles.reduce((acc, style2) => acc + ";" + style2, "") : "");
|
|
98889
|
+
svgPath = select(svgPathNode).select("path").attr("id", edge.id).attr("class", " " + strokeClasses + (edge.classes ? " " + edge.classes : "")).attr("style", edgeStyles ? edgeStyles.reduce((acc, style2) => acc + ";" + style2, "") : "");
|
|
98834
98890
|
let d2 = svgPath.attr("d");
|
|
98835
98891
|
svgPath.attr("d", d2);
|
|
98836
98892
|
elem.node().appendChild(svgPath.node());
|
|
98837
98893
|
} else {
|
|
98838
98894
|
const stylesFromClasses = edgeClassStyles.join(";");
|
|
98839
98895
|
const styles2 = edgeStyles ? edgeStyles.reduce((acc, style2) => acc + style2 + ";", "") : "";
|
|
98896
|
+
let animationClass = "";
|
|
98897
|
+
if (edge.animate) {
|
|
98898
|
+
animationClass = " edge-animation-fast";
|
|
98899
|
+
}
|
|
98900
|
+
if (edge.animation) {
|
|
98901
|
+
animationClass = " edge-animation-" + edge.animation;
|
|
98902
|
+
}
|
|
98840
98903
|
const pathStyle = (stylesFromClasses ? stylesFromClasses + ";" + styles2 + ";" : styles2) + ";" + (edgeStyles ? edgeStyles.reduce((acc, style2) => acc + ";" + style2, "") : "");
|
|
98841
98904
|
svgPath = elem.append("path").attr("d", linePath).attr("id", edge.id).attr(
|
|
98842
98905
|
"class",
|
|
98843
|
-
" " + strokeClasses + (edge.classes ? " " + edge.classes : "") + (animationClass
|
|
98906
|
+
" " + strokeClasses + (edge.classes ? " " + edge.classes : "") + (animationClass ?? "")
|
|
98844
98907
|
).attr("style", pathStyle);
|
|
98845
98908
|
strokeColor = pathStyle.match(/stroke:([^;]+)/)?.[1];
|
|
98846
98909
|
animatedEdge = edge.animate === true || !!edge.animation || stylesFromClasses.includes("animation");
|
|
@@ -98870,7 +98933,7 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
|
|
|
98870
98933
|
}
|
|
98871
98934
|
log.info("arrowTypeStart", edge.arrowTypeStart);
|
|
98872
98935
|
log.info("arrowTypeEnd", edge.arrowTypeEnd);
|
|
98873
|
-
addEdgeMarkers(svgPath, edge, url,
|
|
98936
|
+
addEdgeMarkers(svgPath, edge, url, id28, diagramType, strokeColor);
|
|
98874
98937
|
const midIndex = Math.floor(points.length / 2);
|
|
98875
98938
|
const point2 = points[midIndex];
|
|
98876
98939
|
if (!utils_default.isLabelCoordinateInPath(point2, svgPath.attr("d"))) {
|
|
@@ -98968,73 +99031,73 @@ function applyMarkerOffsetsToPoints(points, edge) {
|
|
|
98968
99031
|
return newPoints;
|
|
98969
99032
|
}
|
|
98970
99033
|
__name(applyMarkerOffsetsToPoints, "applyMarkerOffsetsToPoints");
|
|
98971
|
-
var insertMarkers = /* @__PURE__ */ __name((elem, markerArray, type2,
|
|
99034
|
+
var insertMarkers = /* @__PURE__ */ __name((elem, markerArray, type2, id28) => {
|
|
98972
99035
|
markerArray.forEach((markerName) => {
|
|
98973
|
-
markers[markerName](elem, type2,
|
|
99036
|
+
markers[markerName](elem, type2, id28);
|
|
98974
99037
|
});
|
|
98975
99038
|
}, "insertMarkers");
|
|
98976
|
-
var extension = /* @__PURE__ */ __name((elem, type2,
|
|
98977
|
-
log.trace("Making markers for ",
|
|
98978
|
-
elem.append("defs").append("marker").attr("id",
|
|
98979
|
-
elem.append("defs").append("marker").attr("id",
|
|
99039
|
+
var extension = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99040
|
+
log.trace("Making markers for ", id28);
|
|
99041
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-extensionStart").attr("class", "marker extension " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z");
|
|
99042
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-extensionEnd").attr("class", "marker extension " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
|
|
98980
99043
|
}, "extension");
|
|
98981
|
-
var composition = /* @__PURE__ */ __name((elem, type2,
|
|
98982
|
-
elem.append("defs").append("marker").attr("id",
|
|
98983
|
-
elem.append("defs").append("marker").attr("id",
|
|
99044
|
+
var composition = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99045
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-compositionStart").attr("class", "marker composition " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
99046
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-compositionEnd").attr("class", "marker composition " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
98984
99047
|
}, "composition");
|
|
98985
|
-
var aggregation = /* @__PURE__ */ __name((elem, type2,
|
|
98986
|
-
elem.append("defs").append("marker").attr("id",
|
|
98987
|
-
elem.append("defs").append("marker").attr("id",
|
|
99048
|
+
var aggregation = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99049
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-aggregationStart").attr("class", "marker aggregation " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
99050
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-aggregationEnd").attr("class", "marker aggregation " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
98988
99051
|
}, "aggregation");
|
|
98989
|
-
var dependency = /* @__PURE__ */ __name((elem, type2,
|
|
98990
|
-
elem.append("defs").append("marker").attr("id",
|
|
98991
|
-
elem.append("defs").append("marker").attr("id",
|
|
99052
|
+
var dependency = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99053
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-dependencyStart").attr("class", "marker dependency " + type2).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z");
|
|
99054
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-dependencyEnd").attr("class", "marker dependency " + type2).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
98992
99055
|
}, "dependency");
|
|
98993
|
-
var lollipop = /* @__PURE__ */ __name((elem, type2,
|
|
98994
|
-
elem.append("defs").append("marker").attr("id",
|
|
98995
|
-
elem.append("defs").append("marker").attr("id",
|
|
99056
|
+
var lollipop = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99057
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-lollipopStart").attr("class", "marker lollipop " + type2).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
|
|
99058
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-lollipopEnd").attr("class", "marker lollipop " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
|
|
98996
99059
|
}, "lollipop");
|
|
98997
|
-
var point = /* @__PURE__ */ __name((elem, type2,
|
|
98998
|
-
elem.append("marker").attr("id",
|
|
98999
|
-
elem.append("marker").attr("id",
|
|
99060
|
+
var point = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99061
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-pointEnd").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
99062
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-pointStart").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
99000
99063
|
}, "point");
|
|
99001
|
-
var circle = /* @__PURE__ */ __name((elem, type2,
|
|
99002
|
-
elem.append("marker").attr("id",
|
|
99003
|
-
elem.append("marker").attr("id",
|
|
99064
|
+
var circle = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99065
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-circleEnd").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
99066
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-circleStart").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
99004
99067
|
}, "circle");
|
|
99005
|
-
var cross = /* @__PURE__ */ __name((elem, type2,
|
|
99006
|
-
elem.append("marker").attr("id",
|
|
99007
|
-
elem.append("marker").attr("id",
|
|
99068
|
+
var cross = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99069
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-crossEnd").attr("class", "marker cross " + type2).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
|
|
99070
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-crossStart").attr("class", "marker cross " + type2).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
|
|
99008
99071
|
}, "cross");
|
|
99009
|
-
var barb = /* @__PURE__ */ __name((elem, type2,
|
|
99010
|
-
elem.append("defs").append("marker").attr("id",
|
|
99072
|
+
var barb = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99073
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
99011
99074
|
}, "barb");
|
|
99012
|
-
var only_one = /* @__PURE__ */ __name((elem, type2,
|
|
99013
|
-
elem.append("defs").append("marker").attr("id",
|
|
99014
|
-
elem.append("defs").append("marker").attr("id",
|
|
99075
|
+
var only_one = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99076
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-onlyOneStart").attr("class", "marker onlyOne " + type2).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18");
|
|
99077
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-onlyOneEnd").attr("class", "marker onlyOne " + type2).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
|
|
99015
99078
|
}, "only_one");
|
|
99016
|
-
var zero_or_one = /* @__PURE__ */ __name((elem, type2,
|
|
99017
|
-
const startMarker = elem.append("defs").append("marker").attr("id",
|
|
99079
|
+
var zero_or_one = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99080
|
+
const startMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + type2).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
|
|
99018
99081
|
startMarker.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6);
|
|
99019
99082
|
startMarker.append("path").attr("d", "M9,0 L9,18");
|
|
99020
|
-
const endMarker = elem.append("defs").append("marker").attr("id",
|
|
99083
|
+
const endMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + type2).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
|
|
99021
99084
|
endMarker.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6);
|
|
99022
99085
|
endMarker.append("path").attr("d", "M21,0 L21,18");
|
|
99023
99086
|
}, "zero_or_one");
|
|
99024
|
-
var one_or_more = /* @__PURE__ */ __name((elem, type2,
|
|
99025
|
-
elem.append("defs").append("marker").attr("id",
|
|
99026
|
-
elem.append("defs").append("marker").attr("id",
|
|
99087
|
+
var one_or_more = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99088
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-oneOrMoreStart").attr("class", "marker oneOrMore " + type2).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27");
|
|
99089
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + type2).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
|
|
99027
99090
|
}, "one_or_more");
|
|
99028
|
-
var zero_or_more = /* @__PURE__ */ __name((elem, type2,
|
|
99029
|
-
const startMarker = elem.append("defs").append("marker").attr("id",
|
|
99091
|
+
var zero_or_more = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99092
|
+
const startMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + type2).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
99030
99093
|
startMarker.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6);
|
|
99031
99094
|
startMarker.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
|
|
99032
|
-
const endMarker = elem.append("defs").append("marker").attr("id",
|
|
99095
|
+
const endMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + type2).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
99033
99096
|
endMarker.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6);
|
|
99034
99097
|
endMarker.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
|
|
99035
99098
|
}, "zero_or_more");
|
|
99036
|
-
var requirement_arrow = /* @__PURE__ */ __name((elem, type2,
|
|
99037
|
-
elem.append("defs").append("marker").attr("id",
|
|
99099
|
+
var requirement_arrow = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99100
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr(
|
|
99038
99101
|
"d",
|
|
99039
99102
|
`M0,0
|
|
99040
99103
|
L20,10
|
|
@@ -99042,8 +99105,8 @@ var requirement_arrow = /* @__PURE__ */ __name((elem, type2, id30) => {
|
|
|
99042
99105
|
L0,20`
|
|
99043
99106
|
);
|
|
99044
99107
|
}, "requirement_arrow");
|
|
99045
|
-
var requirement_contains = /* @__PURE__ */ __name((elem, type2,
|
|
99046
|
-
const containsNode = elem.append("defs").append("marker").attr("id",
|
|
99108
|
+
var requirement_contains = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
99109
|
+
const containsNode = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
|
|
99047
99110
|
containsNode.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none");
|
|
99048
99111
|
containsNode.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10);
|
|
99049
99112
|
containsNode.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
|
|
@@ -99081,20 +99144,20 @@ var internalHelpers = {
|
|
|
99081
99144
|
};
|
|
99082
99145
|
var layoutAlgorithms = {};
|
|
99083
99146
|
var registerLayoutLoaders = /* @__PURE__ */ __name((loaders) => {
|
|
99084
|
-
for (const
|
|
99085
|
-
layoutAlgorithms[
|
|
99147
|
+
for (const loader28 of loaders) {
|
|
99148
|
+
layoutAlgorithms[loader28.name] = loader28;
|
|
99086
99149
|
}
|
|
99087
99150
|
}, "registerLayoutLoaders");
|
|
99088
99151
|
var registerDefaultLayoutLoaders = /* @__PURE__ */ __name(() => {
|
|
99089
99152
|
registerLayoutLoaders([
|
|
99090
99153
|
{
|
|
99091
99154
|
name: "dagre",
|
|
99092
|
-
loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./dagre-
|
|
99155
|
+
loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./dagre-6UL2VRFP-C1awWpU3.js"), true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0), "loader")
|
|
99093
99156
|
},
|
|
99094
99157
|
...[
|
|
99095
99158
|
{
|
|
99096
99159
|
name: "cose-bilkent",
|
|
99097
|
-
loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./cose-bilkent-S5V4N54A-
|
|
99160
|
+
loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./cose-bilkent-S5V4N54A-uHPLSeKv.js"), true ? __vite__mapDeps([6,7]) : void 0), "loader")
|
|
99098
99161
|
}
|
|
99099
99162
|
]
|
|
99100
99163
|
]);
|
|
@@ -99534,7 +99597,7 @@ var detector = /* @__PURE__ */ __name((txt) => {
|
|
|
99534
99597
|
}, "detector");
|
|
99535
99598
|
var loader = /* @__PURE__ */ __name(async () => {
|
|
99536
99599
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99537
|
-
const { diagram: diagram22 } = await import("./c4Diagram-
|
|
99600
|
+
const { diagram: diagram22 } = await import("./c4Diagram-YG6GDRKO-B4RPsw5H.js");
|
|
99538
99601
|
return { diagram: diagram22 };
|
|
99539
99602
|
}, true ? __vite__mapDeps([8,9]) : void 0);
|
|
99540
99603
|
return { id: id$1, diagram: diagram2 };
|
|
@@ -99554,9 +99617,9 @@ var detector2 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99554
99617
|
}, "detector");
|
|
99555
99618
|
var loader2 = /* @__PURE__ */ __name(async () => {
|
|
99556
99619
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99557
|
-
const { diagram: diagram22 } = await import("./flowDiagram-
|
|
99620
|
+
const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-B1wDG_l5.js");
|
|
99558
99621
|
return { diagram: diagram22 };
|
|
99559
|
-
}, true ? __vite__mapDeps([10,11,
|
|
99622
|
+
}, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
|
|
99560
99623
|
return { id: id2, diagram: diagram2 };
|
|
99561
99624
|
}, "loader");
|
|
99562
99625
|
var plugin2 = {
|
|
@@ -99580,9 +99643,9 @@ var detector3 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99580
99643
|
}, "detector");
|
|
99581
99644
|
var loader3 = /* @__PURE__ */ __name(async () => {
|
|
99582
99645
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99583
|
-
const { diagram: diagram22 } = await import("./flowDiagram-
|
|
99646
|
+
const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-B1wDG_l5.js");
|
|
99584
99647
|
return { diagram: diagram22 };
|
|
99585
|
-
}, true ? __vite__mapDeps([10,11,
|
|
99648
|
+
}, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
|
|
99586
99649
|
return { id: id3, diagram: diagram2 };
|
|
99587
99650
|
}, "loader");
|
|
99588
99651
|
var plugin3 = {
|
|
@@ -99597,7 +99660,7 @@ var detector4 = /* @__PURE__ */ __name((txt) => {
|
|
|
99597
99660
|
}, "detector");
|
|
99598
99661
|
var loader4 = /* @__PURE__ */ __name(async () => {
|
|
99599
99662
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99600
|
-
const { diagram: diagram22 } = await import("./erDiagram-
|
|
99663
|
+
const { diagram: diagram22 } = await import("./erDiagram-Q2GNP2WA-Ds3qhwkG.js");
|
|
99601
99664
|
return { diagram: diagram22 };
|
|
99602
99665
|
}, true ? __vite__mapDeps([15,12,13,14]) : void 0);
|
|
99603
99666
|
return { id: id4, diagram: diagram2 };
|
|
@@ -99614,7 +99677,7 @@ var detector5 = /* @__PURE__ */ __name((txt) => {
|
|
|
99614
99677
|
}, "detector");
|
|
99615
99678
|
var loader5 = /* @__PURE__ */ __name(async () => {
|
|
99616
99679
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99617
|
-
const { diagram: diagram22 } = await import("./gitGraphDiagram-
|
|
99680
|
+
const { diagram: diagram22 } = await import("./gitGraphDiagram-V2S2FVAM-B2Tw773z.js");
|
|
99618
99681
|
return { diagram: diagram22 };
|
|
99619
99682
|
}, true ? __vite__mapDeps([16,17,18,19,2,4,5]) : void 0);
|
|
99620
99683
|
return { id: id5, diagram: diagram2 };
|
|
@@ -99631,7 +99694,7 @@ var detector6 = /* @__PURE__ */ __name((txt) => {
|
|
|
99631
99694
|
}, "detector");
|
|
99632
99695
|
var loader6 = /* @__PURE__ */ __name(async () => {
|
|
99633
99696
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99634
|
-
const { diagram: diagram22 } = await import("./ganttDiagram-
|
|
99697
|
+
const { diagram: diagram22 } = await import("./ganttDiagram-JELNMOA3-BwuYt2bO.js");
|
|
99635
99698
|
return { diagram: diagram22 };
|
|
99636
99699
|
}, true ? __vite__mapDeps([20,21,22,23]) : void 0);
|
|
99637
99700
|
return { id: id6, diagram: diagram2 };
|
|
@@ -99648,7 +99711,7 @@ var detector7 = /* @__PURE__ */ __name((txt) => {
|
|
|
99648
99711
|
}, "detector");
|
|
99649
99712
|
var loader7 = /* @__PURE__ */ __name(async () => {
|
|
99650
99713
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99651
|
-
const { diagram: diagram22 } = await import("./infoDiagram-
|
|
99714
|
+
const { diagram: diagram22 } = await import("./infoDiagram-HS3SLOUP-C9_JKYhm.js");
|
|
99652
99715
|
return { diagram: diagram22 };
|
|
99653
99716
|
}, true ? __vite__mapDeps([24,19,2,4,5]) : void 0);
|
|
99654
99717
|
return { id: id7, diagram: diagram2 };
|
|
@@ -99664,7 +99727,7 @@ var detector8 = /* @__PURE__ */ __name((txt) => {
|
|
|
99664
99727
|
}, "detector");
|
|
99665
99728
|
var loader8 = /* @__PURE__ */ __name(async () => {
|
|
99666
99729
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99667
|
-
const { diagram: diagram22 } = await import("./pieDiagram-
|
|
99730
|
+
const { diagram: diagram22 } = await import("./pieDiagram-ADFJNKIX--QWeT2vZ.js");
|
|
99668
99731
|
return { diagram: diagram22 };
|
|
99669
99732
|
}, true ? __vite__mapDeps([25,17,19,2,4,5,26,27,22]) : void 0);
|
|
99670
99733
|
return { id: id8, diagram: diagram2 };
|
|
@@ -99680,7 +99743,7 @@ var detector9 = /* @__PURE__ */ __name((txt) => {
|
|
|
99680
99743
|
}, "detector");
|
|
99681
99744
|
var loader9 = /* @__PURE__ */ __name(async () => {
|
|
99682
99745
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99683
|
-
const { diagram: diagram22 } = await import("./quadrantDiagram-
|
|
99746
|
+
const { diagram: diagram22 } = await import("./quadrantDiagram-AYHSOK5B-BpqtmN3r.js");
|
|
99684
99747
|
return { diagram: diagram22 };
|
|
99685
99748
|
}, true ? __vite__mapDeps([28,21,22,23]) : void 0);
|
|
99686
99749
|
return { id: id9, diagram: diagram2 };
|
|
@@ -99697,7 +99760,7 @@ var detector10 = /* @__PURE__ */ __name((txt) => {
|
|
|
99697
99760
|
}, "detector");
|
|
99698
99761
|
var loader10 = /* @__PURE__ */ __name(async () => {
|
|
99699
99762
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99700
|
-
const { diagram: diagram22 } = await import("./xychartDiagram-
|
|
99763
|
+
const { diagram: diagram22 } = await import("./xychartDiagram-PRI3JC2R-CVqSvO_S.js");
|
|
99701
99764
|
return { diagram: diagram22 };
|
|
99702
99765
|
}, true ? __vite__mapDeps([29,22,27,21,23]) : void 0);
|
|
99703
99766
|
return { id: id10, diagram: diagram2 };
|
|
@@ -99714,7 +99777,7 @@ var detector11 = /* @__PURE__ */ __name((txt) => {
|
|
|
99714
99777
|
}, "detector");
|
|
99715
99778
|
var loader11 = /* @__PURE__ */ __name(async () => {
|
|
99716
99779
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99717
|
-
const { diagram: diagram22 } = await import("./requirementDiagram-
|
|
99780
|
+
const { diagram: diagram22 } = await import("./requirementDiagram-UZGBJVZJ-CIXjIi4F.js");
|
|
99718
99781
|
return { diagram: diagram22 };
|
|
99719
99782
|
}, true ? __vite__mapDeps([30,12,13]) : void 0);
|
|
99720
99783
|
return { id: id11, diagram: diagram2 };
|
|
@@ -99731,7 +99794,7 @@ var detector12 = /* @__PURE__ */ __name((txt) => {
|
|
|
99731
99794
|
}, "detector");
|
|
99732
99795
|
var loader12 = /* @__PURE__ */ __name(async () => {
|
|
99733
99796
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99734
|
-
const { diagram: diagram22 } = await import("./sequenceDiagram-
|
|
99797
|
+
const { diagram: diagram22 } = await import("./sequenceDiagram-WL72ISMW-BpDK1ROT.js");
|
|
99735
99798
|
return { diagram: diagram22 };
|
|
99736
99799
|
}, true ? __vite__mapDeps([31,9,18]) : void 0);
|
|
99737
99800
|
return { id: id12, diagram: diagram2 };
|
|
@@ -99751,9 +99814,9 @@ var detector13 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99751
99814
|
}, "detector");
|
|
99752
99815
|
var loader13 = /* @__PURE__ */ __name(async () => {
|
|
99753
99816
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99754
|
-
const { diagram: diagram22 } = await import("./classDiagram-
|
|
99817
|
+
const { diagram: diagram22 } = await import("./classDiagram-2ON5EDUG-CNF8ZohD.js");
|
|
99755
99818
|
return { diagram: diagram22 };
|
|
99756
|
-
}, true ? __vite__mapDeps([32,33,11,
|
|
99819
|
+
}, true ? __vite__mapDeps([32,33,11,12,13]) : void 0);
|
|
99757
99820
|
return { id: id13, diagram: diagram2 };
|
|
99758
99821
|
}, "loader");
|
|
99759
99822
|
var plugin11 = {
|
|
@@ -99771,9 +99834,9 @@ var detector14 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99771
99834
|
}, "detector");
|
|
99772
99835
|
var loader14 = /* @__PURE__ */ __name(async () => {
|
|
99773
99836
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99774
|
-
const { diagram: diagram22 } = await import("./classDiagram-v2-
|
|
99837
|
+
const { diagram: diagram22 } = await import("./classDiagram-v2-WZHVMYZB-CNF8ZohD.js");
|
|
99775
99838
|
return { diagram: diagram22 };
|
|
99776
|
-
}, true ? __vite__mapDeps([34,33,11,
|
|
99839
|
+
}, true ? __vite__mapDeps([34,33,11,12,13]) : void 0);
|
|
99777
99840
|
return { id: id14, diagram: diagram2 };
|
|
99778
99841
|
}, "loader");
|
|
99779
99842
|
var plugin12 = {
|
|
@@ -99791,7 +99854,7 @@ var detector15 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99791
99854
|
}, "detector");
|
|
99792
99855
|
var loader15 = /* @__PURE__ */ __name(async () => {
|
|
99793
99856
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99794
|
-
const { diagram: diagram22 } = await import("./stateDiagram-
|
|
99857
|
+
const { diagram: diagram22 } = await import("./stateDiagram-FKZM4ZOC-BoKGfmHf.js");
|
|
99795
99858
|
return { diagram: diagram22 };
|
|
99796
99859
|
}, true ? __vite__mapDeps([35,36,12,13,1,2,3,4]) : void 0);
|
|
99797
99860
|
return { id: id15, diagram: diagram2 };
|
|
@@ -99814,7 +99877,7 @@ var detector16 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99814
99877
|
}, "detector");
|
|
99815
99878
|
var loader16 = /* @__PURE__ */ __name(async () => {
|
|
99816
99879
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99817
|
-
const { diagram: diagram22 } = await import("./stateDiagram-v2-
|
|
99880
|
+
const { diagram: diagram22 } = await import("./stateDiagram-v2-4FDKWEC3--haXC2JK.js");
|
|
99818
99881
|
return { diagram: diagram22 };
|
|
99819
99882
|
}, true ? __vite__mapDeps([37,36,12,13]) : void 0);
|
|
99820
99883
|
return { id: id16, diagram: diagram2 };
|
|
@@ -99831,9 +99894,9 @@ var detector17 = /* @__PURE__ */ __name((txt) => {
|
|
|
99831
99894
|
}, "detector");
|
|
99832
99895
|
var loader17 = /* @__PURE__ */ __name(async () => {
|
|
99833
99896
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99834
|
-
const { diagram: diagram22 } = await import("./journeyDiagram-
|
|
99897
|
+
const { diagram: diagram22 } = await import("./journeyDiagram-XKPGCS4Q-BhZggYOL.js");
|
|
99835
99898
|
return { diagram: diagram22 };
|
|
99836
|
-
}, true ? __vite__mapDeps([38,11,
|
|
99899
|
+
}, true ? __vite__mapDeps([38,9,11,26]) : void 0);
|
|
99837
99900
|
return { id: id17, diagram: diagram2 };
|
|
99838
99901
|
}, "loader");
|
|
99839
99902
|
var plugin15 = {
|
|
@@ -99842,9 +99905,9 @@ var plugin15 = {
|
|
|
99842
99905
|
loader: loader17
|
|
99843
99906
|
};
|
|
99844
99907
|
var journeyDetector_default = plugin15;
|
|
99845
|
-
var draw = /* @__PURE__ */ __name((_text,
|
|
99908
|
+
var draw = /* @__PURE__ */ __name((_text, id28, version2) => {
|
|
99846
99909
|
log.debug("rendering svg for syntax error\n");
|
|
99847
|
-
const svg2 = selectSvgElement(
|
|
99910
|
+
const svg2 = selectSvgElement(id28);
|
|
99848
99911
|
const g2 = svg2.append("g");
|
|
99849
99912
|
svg2.attr("viewBox", "0 0 2412 512");
|
|
99850
99913
|
configureSvgSize(svg2, 100, 512, true);
|
|
@@ -99901,9 +99964,9 @@ var detector18 = /* @__PURE__ */ __name((txt, config2 = {}) => {
|
|
|
99901
99964
|
}, "detector");
|
|
99902
99965
|
var loader18 = /* @__PURE__ */ __name(async () => {
|
|
99903
99966
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99904
|
-
const { diagram: diagram22 } = await import("./flowDiagram-
|
|
99967
|
+
const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-B1wDG_l5.js");
|
|
99905
99968
|
return { diagram: diagram22 };
|
|
99906
|
-
}, true ? __vite__mapDeps([10,11,
|
|
99969
|
+
}, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
|
|
99907
99970
|
return { id: id18, diagram: diagram2 };
|
|
99908
99971
|
}, "loader");
|
|
99909
99972
|
var plugin16 = {
|
|
@@ -99918,7 +99981,7 @@ var detector19 = /* @__PURE__ */ __name((txt) => {
|
|
|
99918
99981
|
}, "detector");
|
|
99919
99982
|
var loader19 = /* @__PURE__ */ __name(async () => {
|
|
99920
99983
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99921
|
-
const { diagram: diagram22 } = await import("./timeline-definition-
|
|
99984
|
+
const { diagram: diagram22 } = await import("./timeline-definition-IT6M3QCI-BmSg3Hjf.js");
|
|
99922
99985
|
return { diagram: diagram22 };
|
|
99923
99986
|
}, true ? __vite__mapDeps([39,26]) : void 0);
|
|
99924
99987
|
return { id: id19, diagram: diagram2 };
|
|
@@ -99935,7 +99998,7 @@ var detector20 = /* @__PURE__ */ __name((txt) => {
|
|
|
99935
99998
|
}, "detector");
|
|
99936
99999
|
var loader20 = /* @__PURE__ */ __name(async () => {
|
|
99937
100000
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99938
|
-
const { diagram: diagram22 } = await import("./mindmap-definition-
|
|
100001
|
+
const { diagram: diagram22 } = await import("./mindmap-definition-VGOIOE7T-BR7oDKBR.js");
|
|
99939
100002
|
return { diagram: diagram22 };
|
|
99940
100003
|
}, true ? __vite__mapDeps([40,12,13]) : void 0);
|
|
99941
100004
|
return { id: id20, diagram: diagram2 };
|
|
@@ -99952,7 +100015,7 @@ var detector21 = /* @__PURE__ */ __name((txt) => {
|
|
|
99952
100015
|
}, "detector");
|
|
99953
100016
|
var loader21 = /* @__PURE__ */ __name(async () => {
|
|
99954
100017
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99955
|
-
const { diagram: diagram22 } = await import("./kanban-definition-
|
|
100018
|
+
const { diagram: diagram22 } = await import("./kanban-definition-3W4ZIXB7-B-R2Xm4Y.js");
|
|
99956
100019
|
return { diagram: diagram22 };
|
|
99957
100020
|
}, true ? __vite__mapDeps([41,11]) : void 0);
|
|
99958
100021
|
return { id: id21, diagram: diagram2 };
|
|
@@ -99969,7 +100032,7 @@ var detector22 = /* @__PURE__ */ __name((txt) => {
|
|
|
99969
100032
|
}, "detector");
|
|
99970
100033
|
var loader22 = /* @__PURE__ */ __name(async () => {
|
|
99971
100034
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99972
|
-
const { diagram: diagram22 } = await import("./sankeyDiagram-
|
|
100035
|
+
const { diagram: diagram22 } = await import("./sankeyDiagram-TZEHDZUN-DJIt7SRz.js");
|
|
99973
100036
|
return { diagram: diagram22 };
|
|
99974
100037
|
}, true ? __vite__mapDeps([42,27,22]) : void 0);
|
|
99975
100038
|
return { id: id22, diagram: diagram2 };
|
|
@@ -99986,7 +100049,7 @@ var detector23 = /* @__PURE__ */ __name((txt) => {
|
|
|
99986
100049
|
}, "detector");
|
|
99987
100050
|
var loader23 = /* @__PURE__ */ __name(async () => {
|
|
99988
100051
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99989
|
-
const { diagram: diagram22 } = await import("./diagram-
|
|
100052
|
+
const { diagram: diagram22 } = await import("./diagram-S2PKOQOG-CGjGalBu.js");
|
|
99990
100053
|
return { diagram: diagram22 };
|
|
99991
100054
|
}, true ? __vite__mapDeps([43,17,19,2,4,5]) : void 0);
|
|
99992
100055
|
return { id: id23, diagram: diagram2 };
|
|
@@ -100002,7 +100065,7 @@ var detector24 = /* @__PURE__ */ __name((txt) => {
|
|
|
100002
100065
|
}, "detector");
|
|
100003
100066
|
var loader24 = /* @__PURE__ */ __name(async () => {
|
|
100004
100067
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
100005
|
-
const { diagram: diagram22 } = await import("./diagram-
|
|
100068
|
+
const { diagram: diagram22 } = await import("./diagram-QEK2KX5R-Bvlbx8Jp.js");
|
|
100006
100069
|
return { diagram: diagram22 };
|
|
100007
100070
|
}, true ? __vite__mapDeps([44,17,19,2,4,5]) : void 0);
|
|
100008
100071
|
return { id: id24, diagram: diagram2 };
|
|
@@ -100018,7 +100081,7 @@ var detector25 = /* @__PURE__ */ __name((txt) => {
|
|
|
100018
100081
|
}, "detector");
|
|
100019
100082
|
var loader25 = /* @__PURE__ */ __name(async () => {
|
|
100020
100083
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
100021
|
-
const { diagram: diagram22 } = await import("./blockDiagram-
|
|
100084
|
+
const { diagram: diagram22 } = await import("./blockDiagram-VD42YOAC-TTufCfiE.js");
|
|
100022
100085
|
return { diagram: diagram22 };
|
|
100023
100086
|
}, true ? __vite__mapDeps([45,11,5,2,1,14]) : void 0);
|
|
100024
100087
|
return { id: id25, diagram: diagram2 };
|
|
@@ -100035,7 +100098,7 @@ var detector26 = /* @__PURE__ */ __name((txt) => {
|
|
|
100035
100098
|
}, "detector");
|
|
100036
100099
|
var loader26 = /* @__PURE__ */ __name(async () => {
|
|
100037
100100
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
100038
|
-
const { diagram: diagram22 } = await import("./architectureDiagram-
|
|
100101
|
+
const { diagram: diagram22 } = await import("./architectureDiagram-VXUJARFQ-DpryGqjy.js");
|
|
100039
100102
|
return { diagram: diagram22 };
|
|
100040
100103
|
}, true ? __vite__mapDeps([46,17,19,2,4,5,7]) : void 0);
|
|
100041
100104
|
return { id: id26, diagram: diagram2 };
|
|
@@ -100046,55 +100109,22 @@ var architecture = {
|
|
|
100046
100109
|
loader: loader26
|
|
100047
100110
|
};
|
|
100048
100111
|
var architectureDetector_default = architecture;
|
|
100049
|
-
var id27 = "
|
|
100112
|
+
var id27 = "treemap";
|
|
100050
100113
|
var detector27 = /* @__PURE__ */ __name((txt) => {
|
|
100051
|
-
return /^\s*
|
|
100114
|
+
return /^\s*treemap/.test(txt);
|
|
100052
100115
|
}, "detector");
|
|
100053
100116
|
var loader27 = /* @__PURE__ */ __name(async () => {
|
|
100054
100117
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
100055
|
-
const { diagram: diagram22 } = await import("./
|
|
100118
|
+
const { diagram: diagram22 } = await import("./diagram-PSM6KHXK-Bf69p76M.js");
|
|
100056
100119
|
return { diagram: diagram22 };
|
|
100057
|
-
}, true ? [] : void 0);
|
|
100120
|
+
}, true ? __vite__mapDeps([47,13,17,19,2,4,5,23,27,22]) : void 0);
|
|
100058
100121
|
return { id: id27, diagram: diagram2 };
|
|
100059
100122
|
}, "loader");
|
|
100060
|
-
var
|
|
100123
|
+
var treemap = {
|
|
100061
100124
|
id: id27,
|
|
100062
100125
|
detector: detector27,
|
|
100063
100126
|
loader: loader27
|
|
100064
100127
|
};
|
|
100065
|
-
var id28 = "venn";
|
|
100066
|
-
var detector28 = /* @__PURE__ */ __name((txt) => {
|
|
100067
|
-
return /^\s*venn-beta/.test(txt);
|
|
100068
|
-
}, "detector");
|
|
100069
|
-
var loader28 = /* @__PURE__ */ __name(async () => {
|
|
100070
|
-
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
100071
|
-
const { diagram: diagram22 } = await import("./vennDiagram-LZ73GAT5-CzKI47Ba.js");
|
|
100072
|
-
return { diagram: diagram22 };
|
|
100073
|
-
}, true ? [] : void 0);
|
|
100074
|
-
return { id: id28, diagram: diagram2 };
|
|
100075
|
-
}, "loader");
|
|
100076
|
-
var plugin22 = {
|
|
100077
|
-
id: id28,
|
|
100078
|
-
detector: detector28,
|
|
100079
|
-
loader: loader28
|
|
100080
|
-
};
|
|
100081
|
-
var vennDetector_default = plugin22;
|
|
100082
|
-
var id29 = "treemap";
|
|
100083
|
-
var detector29 = /* @__PURE__ */ __name((txt) => {
|
|
100084
|
-
return /^\s*treemap/.test(txt);
|
|
100085
|
-
}, "detector");
|
|
100086
|
-
var loader29 = /* @__PURE__ */ __name(async () => {
|
|
100087
|
-
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
100088
|
-
const { diagram: diagram22 } = await import("./diagram-E7M64L7V-D7IrPWaY.js");
|
|
100089
|
-
return { diagram: diagram22 };
|
|
100090
|
-
}, true ? __vite__mapDeps([47,13,17,19,2,4,5,23,27,22]) : void 0);
|
|
100091
|
-
return { id: id29, diagram: diagram2 };
|
|
100092
|
-
}, "loader");
|
|
100093
|
-
var treemap = {
|
|
100094
|
-
id: id29,
|
|
100095
|
-
detector: detector29,
|
|
100096
|
-
loader: loader29
|
|
100097
|
-
};
|
|
100098
100128
|
var hasLoadedDiagrams = false;
|
|
100099
100129
|
var addDiagrams = /* @__PURE__ */ __name(() => {
|
|
100100
100130
|
if (hasLoadedDiagrams) {
|
|
@@ -100159,24 +100189,22 @@ var addDiagrams = /* @__PURE__ */ __name(() => {
|
|
|
100159
100189
|
xychartDetector_default,
|
|
100160
100190
|
blockDetector_default,
|
|
100161
100191
|
radar,
|
|
100162
|
-
|
|
100163
|
-
treemap,
|
|
100164
|
-
vennDetector_default
|
|
100192
|
+
treemap
|
|
100165
100193
|
);
|
|
100166
100194
|
}, "addDiagrams");
|
|
100167
100195
|
var loadRegisteredDiagrams = /* @__PURE__ */ __name(async () => {
|
|
100168
100196
|
log.debug(`Loading registered diagrams`);
|
|
100169
100197
|
const results = await Promise.allSettled(
|
|
100170
|
-
Object.entries(detectors).map(async ([key, { detector:
|
|
100171
|
-
if (!
|
|
100198
|
+
Object.entries(detectors).map(async ([key, { detector: detector28, loader: loader28 }]) => {
|
|
100199
|
+
if (!loader28) {
|
|
100172
100200
|
return;
|
|
100173
100201
|
}
|
|
100174
100202
|
try {
|
|
100175
100203
|
getDiagram(key);
|
|
100176
100204
|
} catch {
|
|
100177
100205
|
try {
|
|
100178
|
-
const { diagram: diagram2, id:
|
|
100179
|
-
registerDiagram(
|
|
100206
|
+
const { diagram: diagram2, id: id28 } = await loader28();
|
|
100207
|
+
registerDiagram(id28, diagram2, detector28);
|
|
100180
100208
|
} catch (err) {
|
|
100181
100209
|
log.error(`Failed to load external diagram with key ${key}. Removing from detectors.`);
|
|
100182
100210
|
delete detectors[key];
|
|
@@ -100233,12 +100261,12 @@ var Diagram = (_j = class {
|
|
|
100233
100261
|
try {
|
|
100234
100262
|
getDiagram(type2);
|
|
100235
100263
|
} catch {
|
|
100236
|
-
const
|
|
100237
|
-
if (!
|
|
100264
|
+
const loader28 = getDiagramLoader(type2);
|
|
100265
|
+
if (!loader28) {
|
|
100238
100266
|
throw new UnknownDiagramError(`Diagram ${type2} not found.`);
|
|
100239
100267
|
}
|
|
100240
|
-
const { id:
|
|
100241
|
-
registerDiagram(
|
|
100268
|
+
const { id: id28, diagram: diagram2 } = await loader28();
|
|
100269
|
+
registerDiagram(id28, diagram2);
|
|
100242
100270
|
}
|
|
100243
100271
|
const { db, parser, renderer: renderer2, init: init2 } = getDiagram(type2);
|
|
100244
100272
|
if (parser.parser) {
|
|
@@ -100252,8 +100280,8 @@ var Diagram = (_j = class {
|
|
|
100252
100280
|
await parser.parse(text2);
|
|
100253
100281
|
return new _j(type2, text2, db, parser, renderer2);
|
|
100254
100282
|
}
|
|
100255
|
-
async render(
|
|
100256
|
-
await this.renderer.draw(this.text,
|
|
100283
|
+
async render(id28, version2) {
|
|
100284
|
+
await this.renderer.draw(this.text, id28, version2, this);
|
|
100257
100285
|
}
|
|
100258
100286
|
getParser() {
|
|
100259
100287
|
return this.parser;
|
|
@@ -100406,7 +100434,7 @@ ${config2.themeCSS}`;
|
|
|
100406
100434
|
:root { --mermaid-alt-font-family: ${config2.altFontFamily}}`;
|
|
100407
100435
|
}
|
|
100408
100436
|
if (classDefs instanceof Map) {
|
|
100409
|
-
const htmlLabels =
|
|
100437
|
+
const htmlLabels = config2.htmlLabels ?? config2.flowchart?.htmlLabels;
|
|
100410
100438
|
const cssHtmlElements = ["> *", "span"];
|
|
100411
100439
|
const cssShapeElements = ["rect", "polygon", "ellipse", "circle", "path"];
|
|
100412
100440
|
const cssElements = htmlLabels ? cssHtmlElements : cssShapeElements;
|
|
@@ -100451,13 +100479,13 @@ var putIntoIFrame = /* @__PURE__ */ __name((svgCode = "", svgElement) => {
|
|
|
100451
100479
|
${IFRAME_NOT_SUPPORTED_MSG}
|
|
100452
100480
|
</iframe>`;
|
|
100453
100481
|
}, "putIntoIFrame");
|
|
100454
|
-
var appendDivSvgG = /* @__PURE__ */ __name((parentRoot,
|
|
100482
|
+
var appendDivSvgG = /* @__PURE__ */ __name((parentRoot, id28, enclosingDivId, divStyle, svgXlink) => {
|
|
100455
100483
|
const enclosingDiv = parentRoot.append("div");
|
|
100456
100484
|
enclosingDiv.attr("id", enclosingDivId);
|
|
100457
100485
|
if (divStyle) {
|
|
100458
100486
|
enclosingDiv.attr("style", divStyle);
|
|
100459
100487
|
}
|
|
100460
|
-
const svgNode2 = enclosingDiv.append("svg").attr("id",
|
|
100488
|
+
const svgNode2 = enclosingDiv.append("svg").attr("id", id28).attr("width", "100%").attr("xmlns", XMLNS_SVG_STD);
|
|
100461
100489
|
if (svgXlink) {
|
|
100462
100490
|
svgNode2.attr("xmlns:xlink", svgXlink);
|
|
100463
100491
|
}
|
|
@@ -100468,12 +100496,12 @@ function sandboxedIframe(parentNode, iFrameId) {
|
|
|
100468
100496
|
return parentNode.append("iframe").attr("id", iFrameId).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
100469
100497
|
}
|
|
100470
100498
|
__name(sandboxedIframe, "sandboxedIframe");
|
|
100471
|
-
var removeExistingElements = /* @__PURE__ */ __name((doc,
|
|
100472
|
-
doc.getElementById(
|
|
100499
|
+
var removeExistingElements = /* @__PURE__ */ __name((doc, id28, divId, iFrameId) => {
|
|
100500
|
+
doc.getElementById(id28)?.remove();
|
|
100473
100501
|
doc.getElementById(divId)?.remove();
|
|
100474
100502
|
doc.getElementById(iFrameId)?.remove();
|
|
100475
100503
|
}, "removeExistingElements");
|
|
100476
|
-
var render2 = /* @__PURE__ */ __name(async function(
|
|
100504
|
+
var render2 = /* @__PURE__ */ __name(async function(id28, text2, svgContainingElement) {
|
|
100477
100505
|
addDiagrams();
|
|
100478
100506
|
const processed = processAndSetConfigs(text2);
|
|
100479
100507
|
text2 = processed.code;
|
|
@@ -100482,10 +100510,10 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
|
|
|
100482
100510
|
if (text2.length > (config2?.maxTextSize ?? MAX_TEXTLENGTH)) {
|
|
100483
100511
|
text2 = MAX_TEXTLENGTH_EXCEEDED_MSG;
|
|
100484
100512
|
}
|
|
100485
|
-
const idSelector = "#" +
|
|
100486
|
-
const iFrameID = "i" +
|
|
100513
|
+
const idSelector = "#" + id28;
|
|
100514
|
+
const iFrameID = "i" + id28;
|
|
100487
100515
|
const iFrameID_selector = "#" + iFrameID;
|
|
100488
|
-
const enclosingDivID = "d" +
|
|
100516
|
+
const enclosingDivID = "d" + id28;
|
|
100489
100517
|
const enclosingDivID_selector = "#" + enclosingDivID;
|
|
100490
100518
|
const removeTempElements = /* @__PURE__ */ __name(() => {
|
|
100491
100519
|
const tmpElementSelector = isSandboxed ? iFrameID_selector : enclosingDivID_selector;
|
|
@@ -100509,9 +100537,9 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
|
|
|
100509
100537
|
} else {
|
|
100510
100538
|
root2 = select(svgContainingElement);
|
|
100511
100539
|
}
|
|
100512
|
-
appendDivSvgG(root2,
|
|
100540
|
+
appendDivSvgG(root2, id28, enclosingDivID, `font-family: ${fontFamily}`, XMLNS_XLINK_STD);
|
|
100513
100541
|
} else {
|
|
100514
|
-
removeExistingElements(document,
|
|
100542
|
+
removeExistingElements(document, id28, enclosingDivID, iFrameID);
|
|
100515
100543
|
if (isSandboxed) {
|
|
100516
100544
|
const iframe = sandboxedIframe(select("body"), iFrameID);
|
|
100517
100545
|
root2 = select(iframe.nodes()[0].contentDocument.body);
|
|
@@ -100519,7 +100547,7 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
|
|
|
100519
100547
|
} else {
|
|
100520
100548
|
root2 = select("body");
|
|
100521
100549
|
}
|
|
100522
|
-
appendDivSvgG(root2,
|
|
100550
|
+
appendDivSvgG(root2, id28, enclosingDivID);
|
|
100523
100551
|
}
|
|
100524
100552
|
let diag;
|
|
100525
100553
|
let parseEncounteredException;
|
|
@@ -100543,12 +100571,12 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
|
|
|
100543
100571
|
style1.innerHTML = rules;
|
|
100544
100572
|
svg2.insertBefore(style1, firstChild);
|
|
100545
100573
|
try {
|
|
100546
|
-
await diag.renderer.draw(text2,
|
|
100574
|
+
await diag.renderer.draw(text2, id28, package_default.version, diag);
|
|
100547
100575
|
} catch (e2) {
|
|
100548
100576
|
if (config2.suppressErrorRendering) {
|
|
100549
100577
|
removeTempElements();
|
|
100550
100578
|
} else {
|
|
100551
|
-
errorRenderer_default.draw(text2,
|
|
100579
|
+
errorRenderer_default.draw(text2, id28, package_default.version);
|
|
100552
100580
|
}
|
|
100553
100581
|
throw e2;
|
|
100554
100582
|
}
|
|
@@ -100556,7 +100584,7 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
|
|
|
100556
100584
|
const a11yTitle = diag.db.getAccTitle?.();
|
|
100557
100585
|
const a11yDescr = diag.db.getAccDescription?.();
|
|
100558
100586
|
addA11yInfo(diagramType, svgNode2, a11yTitle, a11yDescr);
|
|
100559
|
-
root2.select(`[id="${
|
|
100587
|
+
root2.select(`[id="${id28}"]`).selectAll("foreignobject > *").attr("xmlns", XMLNS_XHTML_STD);
|
|
100560
100588
|
let svgCode = root2.select(enclosingDivID_selector).node().innerHTML;
|
|
100561
100589
|
log.debug("config.arrowMarkerAbsolute", config2.arrowMarkerAbsolute);
|
|
100562
100590
|
svgCode = cleanUpSvgCode(svgCode, isSandboxed, evaluate(config2.arrowMarkerAbsolute));
|
|
@@ -100696,7 +100724,7 @@ var runThrowsErrors = /* @__PURE__ */ __name(async function({ postRenderCallback
|
|
|
100696
100724
|
continue;
|
|
100697
100725
|
}
|
|
100698
100726
|
element.setAttribute("data-processed", "true");
|
|
100699
|
-
const
|
|
100727
|
+
const id28 = `mermaid-${idGenerator.next()}`;
|
|
100700
100728
|
txt = element.innerHTML;
|
|
100701
100729
|
txt = dedent(utils_default.entityDecode(txt)).trim().replace(/<br\s*\/?>/gi, "<br/>");
|
|
100702
100730
|
const init2 = utils_default.detectInit(txt);
|
|
@@ -100704,10 +100732,10 @@ var runThrowsErrors = /* @__PURE__ */ __name(async function({ postRenderCallback
|
|
|
100704
100732
|
log.debug("Detected early reinit: ", init2);
|
|
100705
100733
|
}
|
|
100706
100734
|
try {
|
|
100707
|
-
const { svg: svg2, bindFunctions } = await render22(
|
|
100735
|
+
const { svg: svg2, bindFunctions } = await render22(id28, txt, element);
|
|
100708
100736
|
element.innerHTML = svg2;
|
|
100709
100737
|
if (postRenderCallback) {
|
|
100710
|
-
await postRenderCallback(
|
|
100738
|
+
await postRenderCallback(id28);
|
|
100711
100739
|
}
|
|
100712
100740
|
if (bindFunctions) {
|
|
100713
100741
|
bindFunctions(element);
|
|
@@ -100802,10 +100830,10 @@ var parse2 = /* @__PURE__ */ __name(async (text2, parseOptions) => {
|
|
|
100802
100830
|
executeQueue().catch(reject);
|
|
100803
100831
|
});
|
|
100804
100832
|
}, "parse");
|
|
100805
|
-
var render22 = /* @__PURE__ */ __name((
|
|
100833
|
+
var render22 = /* @__PURE__ */ __name((id28, text2, container) => {
|
|
100806
100834
|
return new Promise((resolve, reject) => {
|
|
100807
100835
|
const performCall = /* @__PURE__ */ __name(() => new Promise((res, rej) => {
|
|
100808
|
-
mermaidAPI.render(
|
|
100836
|
+
mermaidAPI.render(id28, text2, container).then(
|
|
100809
100837
|
(r2) => {
|
|
100810
100838
|
res(r2);
|
|
100811
100839
|
resolve(r2);
|
|
@@ -100823,8 +100851,8 @@ var render22 = /* @__PURE__ */ __name((id30, text2, container) => {
|
|
|
100823
100851
|
});
|
|
100824
100852
|
}, "render");
|
|
100825
100853
|
var getRegisteredDiagramsMetadata = /* @__PURE__ */ __name(() => {
|
|
100826
|
-
return Object.keys(detectors).map((
|
|
100827
|
-
id:
|
|
100854
|
+
return Object.keys(detectors).map((id28) => ({
|
|
100855
|
+
id: id28
|
|
100828
100856
|
}));
|
|
100829
100857
|
}, "getRegisteredDiagramsMetadata");
|
|
100830
100858
|
var mermaid = {
|
|
@@ -100857,13 +100885,13 @@ class DomindsMermaidBlock extends HTMLElement {
|
|
|
100857
100885
|
return normalizedNewlines.replace(
|
|
100858
100886
|
/(\b[\w-]+)\[([^\]\n]*?)\]/g,
|
|
100859
100887
|
(_full, rawId, rawLabel) => {
|
|
100860
|
-
const
|
|
100888
|
+
const id28 = String(rawId);
|
|
100861
100889
|
const label = String(rawLabel).trim();
|
|
100862
|
-
if (!label) return `${
|
|
100863
|
-
if (label.startsWith('"') || label.startsWith("'")) return `${
|
|
100864
|
-
if (!/[<>()|]/.test(label)) return `${
|
|
100890
|
+
if (!label) return `${id28}[]`;
|
|
100891
|
+
if (label.startsWith('"') || label.startsWith("'")) return `${id28}[${label}]`;
|
|
100892
|
+
if (!/[<>()|]/.test(label)) return `${id28}[${label}]`;
|
|
100865
100893
|
const escaped = label.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
100866
|
-
return `${
|
|
100894
|
+
return `${id28}["${escaped}"]`;
|
|
100867
100895
|
}
|
|
100868
100896
|
);
|
|
100869
100897
|
}
|
|
@@ -101308,14 +101336,14 @@ md.core.ruler.push("dominds_heading_ids", (state2) => {
|
|
|
101308
101336
|
const rawText = inline2.content;
|
|
101309
101337
|
const base2 = slugifyHeadingId(rawText);
|
|
101310
101338
|
if (!base2) continue;
|
|
101311
|
-
let
|
|
101339
|
+
let id28 = base2;
|
|
101312
101340
|
let attempt = 2;
|
|
101313
|
-
while (used.has(
|
|
101314
|
-
|
|
101341
|
+
while (used.has(id28)) {
|
|
101342
|
+
id28 = `${base2}-${attempt}`;
|
|
101315
101343
|
attempt += 1;
|
|
101316
101344
|
}
|
|
101317
|
-
used.add(
|
|
101318
|
-
token2.attrSet("id",
|
|
101345
|
+
used.add(id28);
|
|
101346
|
+
token2.attrSet("id", id28);
|
|
101319
101347
|
}
|
|
101320
101348
|
});
|
|
101321
101349
|
installDomindsMathBlockRule(md);
|
|
@@ -102474,7 +102502,7 @@ class DomindsDialogContainer extends HTMLElement {
|
|
|
102474
102502
|
this.teamConfiguration = {
|
|
102475
102503
|
memberDefaults: { icon: cfg.memberDefaults.icon, name: cfg.memberDefaults.name },
|
|
102476
102504
|
members: Object.fromEntries(
|
|
102477
|
-
Object.entries(cfg.members).map(([
|
|
102505
|
+
Object.entries(cfg.members).map(([id28, m2]) => [id28, { icon: m2.icon, name: m2.name }])
|
|
102478
102506
|
)
|
|
102479
102507
|
};
|
|
102480
102508
|
} catch (error2) {
|
|
@@ -104020,9 +104048,9 @@ itemId: ${itemId}` : ""}` : `itemId: ${itemId}`;
|
|
|
104020
104048
|
const seen2 = /* @__PURE__ */ new Set();
|
|
104021
104049
|
const out = [];
|
|
104022
104050
|
for (const match2 of headline.matchAll(re2)) {
|
|
104023
|
-
const
|
|
104024
|
-
if (
|
|
104025
|
-
const mention = `@${
|
|
104051
|
+
const id28 = (match2[1] ?? "").trim();
|
|
104052
|
+
if (id28 === "") continue;
|
|
104053
|
+
const mention = `@${id28}`;
|
|
104026
104054
|
if (seen2.has(mention)) continue;
|
|
104027
104055
|
seen2.add(mention);
|
|
104028
104056
|
out.push(mention);
|
|
@@ -106116,19 +106144,19 @@ ${event.content}`;
|
|
|
106116
106144
|
// User messages are now handled by 'end_of_user_saying_evt' event - see handleDialogEvent()
|
|
106117
106145
|
getAuthorLabel(role, responderId) {
|
|
106118
106146
|
if (role === "user") return "Human";
|
|
106119
|
-
const
|
|
106120
|
-
if (!
|
|
106121
|
-
if (this.teamConfiguration?.members?.[
|
|
106122
|
-
const member = this.teamConfiguration.members[
|
|
106147
|
+
const id28 = responderId || this.currentDialog?.agentId || "";
|
|
106148
|
+
if (!id28) return "🤖 Assistant";
|
|
106149
|
+
if (this.teamConfiguration?.members?.[id28]) {
|
|
106150
|
+
const member = this.teamConfiguration.members[id28];
|
|
106123
106151
|
const icon2 = member.icon || this.teamConfiguration.memberDefaults?.icon || "🤖";
|
|
106124
|
-
const name = member.name || `@${
|
|
106152
|
+
const name = member.name || `@${id28}`;
|
|
106125
106153
|
return `${icon2} ${name}`;
|
|
106126
106154
|
}
|
|
106127
106155
|
if (this.teamConfiguration?.memberDefaults) {
|
|
106128
106156
|
const icon2 = this.teamConfiguration.memberDefaults.icon || "🤖";
|
|
106129
|
-
return `${icon2} @${
|
|
106157
|
+
return `${icon2} @${id28}`;
|
|
106130
106158
|
}
|
|
106131
|
-
return `🤖 @${
|
|
106159
|
+
return `🤖 @${id28}`;
|
|
106132
106160
|
}
|
|
106133
106161
|
escapeHtml(text2) {
|
|
106134
106162
|
return text2.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
@@ -107995,16 +108023,16 @@ class DomindsDocsPanel extends HTMLElement {
|
|
|
107995
108023
|
}
|
|
107996
108024
|
scrollToPendingAnchorIfAny() {
|
|
107997
108025
|
if (!this.pendingScrollAnchorId) return;
|
|
107998
|
-
const
|
|
108026
|
+
const id28 = this.pendingScrollAnchorId;
|
|
107999
108027
|
this.pendingScrollAnchorId = null;
|
|
108000
|
-
this.scrollToAnchorId(
|
|
108028
|
+
this.scrollToAnchorId(id28);
|
|
108001
108029
|
}
|
|
108002
|
-
scrollToAnchorId(
|
|
108030
|
+
scrollToAnchorId(id28) {
|
|
108003
108031
|
const root2 = this.shadowRoot;
|
|
108004
108032
|
if (!root2) return;
|
|
108005
108033
|
const body = root2.querySelector(".docs-body");
|
|
108006
108034
|
if (!(body instanceof HTMLElement)) return;
|
|
108007
|
-
const anchor2 = body.querySelector(`#${CSS.escape(
|
|
108035
|
+
const anchor2 = body.querySelector(`#${CSS.escape(id28)}`);
|
|
108008
108036
|
if (!(anchor2 instanceof HTMLElement)) return;
|
|
108009
108037
|
anchor2.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
108010
108038
|
}
|
|
@@ -108055,13 +108083,13 @@ class DomindsDocsPanel extends HTMLElement {
|
|
|
108055
108083
|
if (href.startsWith("#")) {
|
|
108056
108084
|
const idRaw = href.slice(1);
|
|
108057
108085
|
if (!idRaw) return;
|
|
108058
|
-
let
|
|
108086
|
+
let id28 = idRaw;
|
|
108059
108087
|
try {
|
|
108060
|
-
|
|
108088
|
+
id28 = decodeURIComponent(idRaw);
|
|
108061
108089
|
} catch {
|
|
108062
108090
|
}
|
|
108063
|
-
if (!
|
|
108064
|
-
this.scrollToAnchorId(
|
|
108091
|
+
if (!id28) return;
|
|
108092
|
+
this.scrollToAnchorId(id28);
|
|
108065
108093
|
return;
|
|
108066
108094
|
}
|
|
108067
108095
|
if (href.startsWith("/f/") || href === "/f" || href === "/workspace" || href.startsWith("/workspace/") || href === "/rtws" || href.startsWith("/rtws/")) {
|
|
@@ -108513,13 +108541,13 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
|
|
|
108513
108541
|
this.showError(error2 instanceof Error ? error2.message : t2.readFailed);
|
|
108514
108542
|
});
|
|
108515
108543
|
}
|
|
108516
|
-
removeImageAttachment(
|
|
108517
|
-
const existing = this.imageAttachments.find((attachment) => attachment.id ===
|
|
108544
|
+
removeImageAttachment(id28) {
|
|
108545
|
+
const existing = this.imageAttachments.find((attachment) => attachment.id === id28);
|
|
108518
108546
|
if (existing) {
|
|
108519
108547
|
URL.revokeObjectURL(existing.objectUrl);
|
|
108520
108548
|
}
|
|
108521
|
-
this.imageAttachments = this.imageAttachments.filter((attachment) => attachment.id !==
|
|
108522
|
-
if (this.openImageAttachmentId ===
|
|
108549
|
+
this.imageAttachments = this.imageAttachments.filter((attachment) => attachment.id !== id28);
|
|
108550
|
+
if (this.openImageAttachmentId === id28) {
|
|
108523
108551
|
this.openImageAttachmentId = null;
|
|
108524
108552
|
}
|
|
108525
108553
|
this.safeRender();
|
|
@@ -109125,9 +109153,9 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
|
|
|
109125
109153
|
}
|
|
109126
109154
|
this.shadowRoot.querySelectorAll(".attachment-thumb").forEach((button) => {
|
|
109127
109155
|
button.addEventListener("click", () => {
|
|
109128
|
-
const
|
|
109129
|
-
if (typeof
|
|
109130
|
-
this.openImageAttachmentId =
|
|
109156
|
+
const id28 = button.dataset.attachmentId;
|
|
109157
|
+
if (typeof id28 !== "string") return;
|
|
109158
|
+
this.openImageAttachmentId = id28;
|
|
109131
109159
|
this.safeRender();
|
|
109132
109160
|
});
|
|
109133
109161
|
});
|
|
@@ -109135,9 +109163,9 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
|
|
|
109135
109163
|
button.addEventListener("click", (event) => {
|
|
109136
109164
|
event.preventDefault();
|
|
109137
109165
|
event.stopPropagation();
|
|
109138
|
-
const
|
|
109139
|
-
if (typeof
|
|
109140
|
-
this.removeImageAttachment(
|
|
109166
|
+
const id28 = button.dataset.attachmentId;
|
|
109167
|
+
if (typeof id28 !== "string") return;
|
|
109168
|
+
this.removeImageAttachment(id28);
|
|
109141
109169
|
});
|
|
109142
109170
|
});
|
|
109143
109171
|
const modalCloseTargets = this.shadowRoot.querySelectorAll(
|
|
@@ -109405,17 +109433,17 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
|
|
|
109405
109433
|
if (this.imageAttachments.length === 0) return "";
|
|
109406
109434
|
const t2 = IMAGE_ATTACHMENT_I18N[this.uiLanguage];
|
|
109407
109435
|
const items = this.imageAttachments.map((attachment) => {
|
|
109408
|
-
const
|
|
109436
|
+
const id28 = _DomindsQ4HInput.escapeHtml(attachment.id);
|
|
109409
109437
|
const name = _DomindsQ4HInput.escapeHtml(attachment.name);
|
|
109410
109438
|
const src = _DomindsQ4HInput.escapeHtml(attachment.objectUrl);
|
|
109411
109439
|
return `
|
|
109412
109440
|
<div class="attachment-item">
|
|
109413
|
-
<button class="attachment-thumb" type="button" data-attachment-id="${
|
|
109441
|
+
<button class="attachment-thumb" type="button" data-attachment-id="${id28}" title="${_DomindsQ4HInput.escapeHtml(
|
|
109414
109442
|
t2.preview
|
|
109415
109443
|
)}" aria-label="${_DomindsQ4HInput.escapeHtml(t2.preview)}">
|
|
109416
109444
|
<img src="${src}" alt="${name}">
|
|
109417
109445
|
</button>
|
|
109418
|
-
<button class="attachment-remove" type="button" data-attachment-id="${
|
|
109446
|
+
<button class="attachment-remove" type="button" data-attachment-id="${id28}" title="${_DomindsQ4HInput.escapeHtml(
|
|
109419
109447
|
t2.remove
|
|
109420
109448
|
)}" aria-label="${_DomindsQ4HInput.escapeHtml(t2.remove)}">
|
|
109421
109449
|
<span class="icon-mask attachment-remove-icon" aria-hidden="true"></span>
|
|
@@ -110103,8 +110131,8 @@ class DomindsQ4HPanel extends HTMLElement {
|
|
|
110103
110131
|
if (!root2) return;
|
|
110104
110132
|
const selectedId = this.selectedQuestionId;
|
|
110105
110133
|
root2.querySelectorAll(".q4h-question-card").forEach((card2) => {
|
|
110106
|
-
const
|
|
110107
|
-
const selected = selectedId !== null &&
|
|
110134
|
+
const id28 = card2.getAttribute("data-question-id");
|
|
110135
|
+
const selected = selectedId !== null && id28 === selectedId;
|
|
110108
110136
|
card2.classList.toggle("selected", selected);
|
|
110109
110137
|
});
|
|
110110
110138
|
if (selectedId !== null) {
|
|
@@ -111739,10 +111767,10 @@ class DomindsSnippetsPanel extends HTMLElement {
|
|
|
111739
111767
|
}
|
|
111740
111768
|
selectSnippetFromCard(card2) {
|
|
111741
111769
|
if (this.state.kind !== "ready") return;
|
|
111742
|
-
const
|
|
111743
|
-
if (typeof
|
|
111770
|
+
const id28 = card2.getAttribute("data-id");
|
|
111771
|
+
if (typeof id28 !== "string" || id28 === "") return;
|
|
111744
111772
|
const all = this.state.groups.flatMap((g2) => g2.templates);
|
|
111745
|
-
const snippet2 = all.find((x2) => x2.id ===
|
|
111773
|
+
const snippet2 = all.find((x2) => x2.id === id28);
|
|
111746
111774
|
this.selectSnippet(snippet2 ?? null);
|
|
111747
111775
|
}
|
|
111748
111776
|
captureSnippetScroll() {
|
|
@@ -111937,8 +111965,8 @@ function requireAppJson() {
|
|
|
111937
111965
|
function parseToolsetJson(v2, at2) {
|
|
111938
111966
|
if (!isRecord(v2))
|
|
111939
111967
|
return { ok: false, errorText: `Invalid ${at2}: expected object` };
|
|
111940
|
-
const
|
|
111941
|
-
if (!
|
|
111968
|
+
const id28 = asString(v2["id"]);
|
|
111969
|
+
if (!id28 || id28.trim() === "")
|
|
111942
111970
|
return { ok: false, errorText: `Invalid ${at2}.id: required` };
|
|
111943
111971
|
const descriptionI18n = v2["descriptionI18n"];
|
|
111944
111972
|
if (descriptionI18n !== void 0 && !isI18nText(descriptionI18n)) {
|
|
@@ -111957,7 +111985,7 @@ function requireAppJson() {
|
|
|
111957
111985
|
return {
|
|
111958
111986
|
ok: true,
|
|
111959
111987
|
toolset: {
|
|
111960
|
-
id:
|
|
111988
|
+
id: id28,
|
|
111961
111989
|
descriptionI18n,
|
|
111962
111990
|
tools
|
|
111963
111991
|
}
|
|
@@ -111966,8 +111994,8 @@ function requireAppJson() {
|
|
|
111966
111994
|
function parseDialogRunControlJson(v2, at2) {
|
|
111967
111995
|
if (!isRecord(v2))
|
|
111968
111996
|
return { ok: false, errorText: `Invalid ${at2}: expected object` };
|
|
111969
|
-
const
|
|
111970
|
-
if (!
|
|
111997
|
+
const id28 = asString(v2["id"]);
|
|
111998
|
+
if (!id28 || id28.trim() === "")
|
|
111971
111999
|
return { ok: false, errorText: `Invalid ${at2}.id: required` };
|
|
111972
112000
|
const descriptionI18n = v2["descriptionI18n"];
|
|
111973
112001
|
if (descriptionI18n !== void 0 && !isI18nText(descriptionI18n)) {
|
|
@@ -111976,7 +112004,7 @@ function requireAppJson() {
|
|
|
111976
112004
|
return {
|
|
111977
112005
|
ok: true,
|
|
111978
112006
|
control: {
|
|
111979
|
-
id:
|
|
112007
|
+
id: id28,
|
|
111980
112008
|
descriptionI18n
|
|
111981
112009
|
}
|
|
111982
112010
|
};
|
|
@@ -112490,16 +112518,16 @@ class DomindsTeamManualPanel extends HTMLElement {
|
|
|
112490
112518
|
const href = link2.getAttribute("href");
|
|
112491
112519
|
if (typeof href !== "string") return;
|
|
112492
112520
|
if (!href.startsWith("#")) return;
|
|
112493
|
-
let
|
|
112521
|
+
let id28 = href.slice(1);
|
|
112494
112522
|
try {
|
|
112495
|
-
|
|
112523
|
+
id28 = decodeURIComponent(id28);
|
|
112496
112524
|
} catch {
|
|
112497
112525
|
}
|
|
112498
|
-
if (!
|
|
112526
|
+
if (!id28) {
|
|
112499
112527
|
e2.preventDefault();
|
|
112500
112528
|
return;
|
|
112501
112529
|
}
|
|
112502
|
-
const anchor2 = body.querySelector(`#${CSS.escape(
|
|
112530
|
+
const anchor2 = body.querySelector(`#${CSS.escape(id28)}`);
|
|
112503
112531
|
e2.preventDefault();
|
|
112504
112532
|
if (!(anchor2 instanceof HTMLElement)) return;
|
|
112505
112533
|
anchor2.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
@@ -125929,13 +125957,13 @@ ${content}`;
|
|
|
125929
125957
|
for (const item of value) {
|
|
125930
125958
|
if (typeof item !== "object" || item === null) continue;
|
|
125931
125959
|
const rec = item;
|
|
125932
|
-
const
|
|
125960
|
+
const id28 = typeof rec["id"] === "string" ? rec["id"] : "";
|
|
125933
125961
|
const timestamp2 = typeof rec["timestamp"] === "string" ? rec["timestamp"].trim() : "";
|
|
125934
125962
|
const kind = rec["kind"];
|
|
125935
125963
|
const message = typeof rec["message"] === "string" ? rec["message"] : "";
|
|
125936
|
-
if (!
|
|
125964
|
+
if (!id28 || !_DomindsApp.UNIFIED_TIMESTAMP_PATTERN.test(timestamp2) || !message) continue;
|
|
125937
125965
|
if (kind !== "error" && kind !== "warning" && kind !== "info") continue;
|
|
125938
|
-
next2.push({ id:
|
|
125966
|
+
next2.push({ id: id28, timestamp: timestamp2, kind, message });
|
|
125939
125967
|
}
|
|
125940
125968
|
return next2;
|
|
125941
125969
|
}
|
|
@@ -125952,11 +125980,11 @@ ${content}`;
|
|
|
125952
125980
|
pushToastHistoryEntry(entry) {
|
|
125953
125981
|
this.loadToastHistoryFromStorage();
|
|
125954
125982
|
const now2 = /* @__PURE__ */ new Date();
|
|
125955
|
-
const
|
|
125983
|
+
const id28 = `${String(now2.getTime())}-${String(this.toastHistorySeq += 1)}`;
|
|
125956
125984
|
const trimmed = entry.message.trim();
|
|
125957
125985
|
if (trimmed === "") return;
|
|
125958
125986
|
const next2 = {
|
|
125959
|
-
id:
|
|
125987
|
+
id: id28,
|
|
125960
125988
|
timestamp: timeExports.formatUnifiedTimestamp(now2),
|
|
125961
125989
|
kind: entry.kind,
|
|
125962
125990
|
message: trimmed
|
|
@@ -127607,28 +127635,28 @@ ${content}`;
|
|
|
127607
127635
|
const next2 = [];
|
|
127608
127636
|
const seenIds = /* @__PURE__ */ new Set();
|
|
127609
127637
|
for (const existing of this.q4hQuestions) {
|
|
127610
|
-
const
|
|
127611
|
-
if (!
|
|
127638
|
+
const id28 = typeof existing.id === "string" ? existing.id : "";
|
|
127639
|
+
if (!id28) {
|
|
127612
127640
|
throw new Error("Q4H client cache violation: existing question has invalid id");
|
|
127613
127641
|
}
|
|
127614
|
-
if (seenIds.has(
|
|
127615
|
-
throw new Error(`Q4H client cache violation: duplicate cached question id (${
|
|
127642
|
+
if (seenIds.has(id28)) {
|
|
127643
|
+
throw new Error(`Q4H client cache violation: duplicate cached question id (${id28})`);
|
|
127616
127644
|
}
|
|
127617
|
-
seenIds.add(
|
|
127645
|
+
seenIds.add(id28);
|
|
127618
127646
|
const existingWithDialog = existing;
|
|
127619
127647
|
const selfId = typeof existingWithDialog.selfId === "string" ? existingWithDialog.selfId : null;
|
|
127620
127648
|
if (!selfId) {
|
|
127621
|
-
const incoming2 = incomingById.get(
|
|
127649
|
+
const incoming2 = incomingById.get(id28);
|
|
127622
127650
|
next2.push(incoming2 ?? existing);
|
|
127623
|
-
if (incoming2) incomingById.delete(
|
|
127651
|
+
if (incoming2) incomingById.delete(id28);
|
|
127624
127652
|
continue;
|
|
127625
127653
|
}
|
|
127626
127654
|
const rootId = typeof existingWithDialog.rootId === "string" && existingWithDialog.rootId ? existingWithDialog.rootId : selfId;
|
|
127627
127655
|
const status = this.lookupVisibleDialogStatusByIds(rootId, selfId);
|
|
127628
|
-
const incoming = incomingById.get(
|
|
127656
|
+
const incoming = incomingById.get(id28);
|
|
127629
127657
|
if (incoming) {
|
|
127630
127658
|
next2.push(incoming);
|
|
127631
|
-
incomingById.delete(
|
|
127659
|
+
incomingById.delete(id28);
|
|
127632
127660
|
continue;
|
|
127633
127661
|
}
|
|
127634
127662
|
if (status === "running") {
|
|
@@ -127636,11 +127664,11 @@ ${content}`;
|
|
|
127636
127664
|
}
|
|
127637
127665
|
next2.push(existing);
|
|
127638
127666
|
}
|
|
127639
|
-
for (const [
|
|
127640
|
-
if (seenIds.has(
|
|
127641
|
-
throw new Error(`Q4H state merge violation: duplicate id during merge (${
|
|
127667
|
+
for (const [id28, q2] of incomingById.entries()) {
|
|
127668
|
+
if (seenIds.has(id28)) {
|
|
127669
|
+
throw new Error(`Q4H state merge violation: duplicate id during merge (${id28})`);
|
|
127642
127670
|
}
|
|
127643
|
-
seenIds.add(
|
|
127671
|
+
seenIds.add(id28);
|
|
127644
127672
|
next2.push(q2);
|
|
127645
127673
|
}
|
|
127646
127674
|
this.q4hQuestions = next2;
|
|
@@ -129719,15 +129747,15 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
129719
129747
|
});
|
|
129720
129748
|
export {
|
|
129721
129749
|
commonDb_exports as $,
|
|
129722
|
-
|
|
129723
|
-
|
|
129724
|
-
|
|
129725
|
-
|
|
129726
|
-
|
|
129727
|
-
|
|
129728
|
-
|
|
129729
|
-
|
|
129730
|
-
|
|
129750
|
+
rgba$1 as A,
|
|
129751
|
+
__export as B,
|
|
129752
|
+
setupGraphViewbox2 as C,
|
|
129753
|
+
cleanAndMerge as D,
|
|
129754
|
+
defaultConfig_default as E,
|
|
129755
|
+
getConfig as F,
|
|
129756
|
+
random as G,
|
|
129757
|
+
selectSvgElement as H,
|
|
129758
|
+
package_default as I,
|
|
129731
129759
|
JSON_SCHEMA as J,
|
|
129732
129760
|
getThemeVariables3 as K,
|
|
129733
129761
|
hasKatex as L,
|
|
@@ -129747,7 +129775,7 @@ export {
|
|
|
129747
129775
|
ZERO_WIDTH_SPACE as Z,
|
|
129748
129776
|
__name as _,
|
|
129749
129777
|
getAccTitle as a,
|
|
129750
|
-
|
|
129778
|
+
isLabelStyle as a$,
|
|
129751
129779
|
withPath as a0,
|
|
129752
129780
|
halfPi as a1,
|
|
129753
129781
|
epsilon as a2,
|
|
@@ -129758,33 +129786,33 @@ export {
|
|
|
129758
129786
|
abs$1 as a7,
|
|
129759
129787
|
pi as a8,
|
|
129760
129788
|
sqrt as a9,
|
|
129761
|
-
|
|
129762
|
-
|
|
129763
|
-
|
|
129764
|
-
|
|
129765
|
-
|
|
129766
|
-
|
|
129767
|
-
|
|
129768
|
-
|
|
129769
|
-
|
|
129770
|
-
|
|
129771
|
-
|
|
129772
|
-
|
|
129773
|
-
|
|
129774
|
-
|
|
129775
|
-
|
|
129776
|
-
|
|
129777
|
-
|
|
129778
|
-
|
|
129779
|
-
|
|
129780
|
-
|
|
129781
|
-
|
|
129782
|
-
|
|
129783
|
-
|
|
129784
|
-
|
|
129785
|
-
|
|
129786
|
-
|
|
129787
|
-
|
|
129789
|
+
baseRest as aA,
|
|
129790
|
+
isArrayLikeObject as aB,
|
|
129791
|
+
constant as aC,
|
|
129792
|
+
isFunction as aD,
|
|
129793
|
+
isEmpty2 as aE,
|
|
129794
|
+
computeDimensionOfText as aF,
|
|
129795
|
+
array as aG,
|
|
129796
|
+
getUserDefinedConfig as aH,
|
|
129797
|
+
getDefaultExportFromCjs as aI,
|
|
129798
|
+
getIconSVG as aJ,
|
|
129799
|
+
registerIconPacks as aK,
|
|
129800
|
+
unknownIcon as aL,
|
|
129801
|
+
constant$2 as aM,
|
|
129802
|
+
interpolateNumber as aN,
|
|
129803
|
+
color as aO,
|
|
129804
|
+
interpolateRgb as aP,
|
|
129805
|
+
interpolateString as aQ,
|
|
129806
|
+
isObject as aR,
|
|
129807
|
+
isIterateeCall as aS,
|
|
129808
|
+
keysIn as aT,
|
|
129809
|
+
eq as aU,
|
|
129810
|
+
isArrayLike as aV,
|
|
129811
|
+
isArray as aW,
|
|
129812
|
+
identity as aX,
|
|
129813
|
+
isIndex as aY,
|
|
129814
|
+
assignValue as aZ,
|
|
129815
|
+
styles2String as a_,
|
|
129788
129816
|
atan2 as aa,
|
|
129789
129817
|
constant$1 as ab,
|
|
129790
129818
|
asin as ac,
|
|
@@ -129794,68 +129822,65 @@ export {
|
|
|
129794
129822
|
insertNode as ag,
|
|
129795
129823
|
positionNode as ah,
|
|
129796
129824
|
getLineFunctionsWithOffset as ai,
|
|
129797
|
-
|
|
129825
|
+
evaluate as aj,
|
|
129798
129826
|
createText as ak,
|
|
129799
|
-
|
|
129800
|
-
|
|
129801
|
-
|
|
129802
|
-
|
|
129803
|
-
|
|
129804
|
-
|
|
129805
|
-
|
|
129806
|
-
|
|
129807
|
-
|
|
129808
|
-
|
|
129809
|
-
|
|
129810
|
-
|
|
129811
|
-
|
|
129812
|
-
|
|
129813
|
-
|
|
129827
|
+
getSubGraphTitleMargins as al,
|
|
129828
|
+
replaceIconSubstring as am,
|
|
129829
|
+
decodeEntities as an,
|
|
129830
|
+
getStylesFromArray as ao,
|
|
129831
|
+
Utils as ap,
|
|
129832
|
+
Color$1 as aq,
|
|
129833
|
+
markers_default as ar,
|
|
129834
|
+
clear2 as as,
|
|
129835
|
+
clear as at,
|
|
129836
|
+
clear$1 as au,
|
|
129837
|
+
updateNodeBounds as av,
|
|
129838
|
+
setNodeElem as aw,
|
|
129839
|
+
insertEdge as ax,
|
|
129840
|
+
positionEdgeLabel as ay,
|
|
129841
|
+
insertEdgeLabel as az,
|
|
129814
129842
|
setAccTitle as b,
|
|
129815
|
-
|
|
129816
|
-
|
|
129817
|
-
|
|
129818
|
-
|
|
129819
|
-
|
|
129820
|
-
|
|
129821
|
-
|
|
129822
|
-
|
|
129823
|
-
|
|
129824
|
-
|
|
129825
|
-
|
|
129826
|
-
|
|
129827
|
-
|
|
129828
|
-
|
|
129829
|
-
|
|
129830
|
-
|
|
129831
|
-
|
|
129832
|
-
|
|
129833
|
-
|
|
129834
|
-
|
|
129835
|
-
|
|
129836
|
-
|
|
129837
|
-
|
|
129838
|
-
|
|
129839
|
-
|
|
129840
|
-
|
|
129841
|
-
|
|
129842
|
-
|
|
129843
|
-
|
|
129844
|
-
|
|
129845
|
-
|
|
129846
|
-
|
|
129847
|
-
|
|
129848
|
-
|
|
129849
|
-
|
|
129850
|
-
|
|
129851
|
-
|
|
129852
|
-
|
|
129853
|
-
|
|
129854
|
-
|
|
129855
|
-
|
|
129856
|
-
initCloneObject as bx,
|
|
129857
|
-
Stack as by,
|
|
129858
|
-
MapCache as bz,
|
|
129843
|
+
Rgb as b0,
|
|
129844
|
+
rgbConvert as b1,
|
|
129845
|
+
define as b2,
|
|
129846
|
+
extend$1 as b3,
|
|
129847
|
+
Color as b4,
|
|
129848
|
+
nogamma as b5,
|
|
129849
|
+
hue as b6,
|
|
129850
|
+
dayjs2 as b7,
|
|
129851
|
+
setToString as b8,
|
|
129852
|
+
overRest as b9,
|
|
129853
|
+
Set$1 as bA,
|
|
129854
|
+
createAssigner as bB,
|
|
129855
|
+
isPrototype as bC,
|
|
129856
|
+
getAugmentedNamespace as bD,
|
|
129857
|
+
__vitePreload as bE,
|
|
129858
|
+
baseFor as ba,
|
|
129859
|
+
baseAssignValue as bb,
|
|
129860
|
+
baseUnary as bc,
|
|
129861
|
+
merge as bd,
|
|
129862
|
+
isObjectLike as be,
|
|
129863
|
+
baseGetTag as bf,
|
|
129864
|
+
Symbol$1 as bg,
|
|
129865
|
+
arrayLikeKeys as bh,
|
|
129866
|
+
baseKeys as bi,
|
|
129867
|
+
memoize as bj,
|
|
129868
|
+
isArguments as bk,
|
|
129869
|
+
copyObject as bl,
|
|
129870
|
+
getPrototype as bm,
|
|
129871
|
+
cloneArrayBuffer as bn,
|
|
129872
|
+
cloneTypedArray as bo,
|
|
129873
|
+
getTag as bp,
|
|
129874
|
+
nodeUtil as bq,
|
|
129875
|
+
copyArray as br,
|
|
129876
|
+
isBuffer as bs,
|
|
129877
|
+
cloneBuffer as bt,
|
|
129878
|
+
initCloneObject as bu,
|
|
129879
|
+
Stack as bv,
|
|
129880
|
+
MapCache as bw,
|
|
129881
|
+
Uint8Array$1 as bx,
|
|
129882
|
+
isTypedArray as by,
|
|
129883
|
+
isLength as bz,
|
|
129859
129884
|
getConfig2 as c,
|
|
129860
129885
|
select as d,
|
|
129861
129886
|
configureSvgSize as e,
|
|
@@ -129878,7 +129903,7 @@ export {
|
|
|
129878
129903
|
isValidShape as v,
|
|
129879
129904
|
wrapLabel as w,
|
|
129880
129905
|
getEdgeId as x,
|
|
129881
|
-
|
|
129882
|
-
|
|
129906
|
+
clear$2 as y,
|
|
129907
|
+
defaultConfig2 as z
|
|
129883
129908
|
};
|
|
129884
|
-
//# sourceMappingURL=index-
|
|
129909
|
+
//# sourceMappingURL=index-arD81Nnh.js.map
|