@aiquants/markdown 12.2.3 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +383 -75
- package/dist/{abnfDiagram-VRR7QNED-DQ52KUbH.js → abnfDiagram-VRR7QNED-B3Q9attM.js} +9 -9
- package/dist/abnfDiagram-VRR7QNED-QW4YM2AY.cjs +1 -0
- package/dist/arc-BBLXr5EU.js +83 -0
- package/dist/arc-Cn8XXgbN.cjs +1 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-Cc9gQRX2.js → architectureDiagram-ZJ3FMSHR-BaSp0hC2.js} +2 -2
- package/dist/architectureDiagram-ZJ3FMSHR-BfmjNYww.cjs +36 -0
- package/dist/{blockDiagram-677ZJIJ3-DIpIE77y.js → blockDiagram-677ZJIJ3-DFcPQ19k.js} +3 -3
- package/dist/{blockDiagram-677ZJIJ3-BCgCtZXM.cjs → blockDiagram-677ZJIJ3-u7d3VCxA.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-jgR25uUP.js → c4Diagram-LMCZKHZV-DW0yo5tR.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-q0iHoZqg.cjs → c4Diagram-LMCZKHZV-nScsMUE3.cjs} +1 -1
- package/dist/{channel-Bw3o-12p.js → channel-B2FBCr9X.js} +1 -1
- package/dist/channel-DlkTPSf_.cjs +1 -0
- package/dist/{chunk-2Q5K7J3B-0amJDSXB.js → chunk-2Q5K7J3B-BkE4Fsuz.js} +1 -1
- package/dist/chunk-2Q5K7J3B-evSha-HP.cjs +1 -0
- package/dist/{chunk-32BRIVSS-BMqTi8UH.js → chunk-32BRIVSS-CqpDiZD2.js} +1 -1
- package/dist/chunk-32BRIVSS-rIw6tBRO.cjs +1 -0
- package/dist/{chunk-5VM5RSS4-C0OtlojA.cjs → chunk-5VM5RSS4-CYVpj2mc.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-EGE3VaH8.js → chunk-5VM5RSS4-DAgNhPcU.js} +1 -1
- package/dist/{chunk-EX3LRPZG-4qSuVZkz.cjs → chunk-EX3LRPZG-Ct2cyGh-.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-wasnZ2h7.js → chunk-EX3LRPZG-QFjD28UF.js} +37 -37
- package/dist/{chunk-JWPE2WC7-O891tu2Q.js → chunk-JWPE2WC7-Bj2m1SXZ.js} +1 -1
- package/dist/chunk-JWPE2WC7-Dgw1ILoe.cjs +1 -0
- package/dist/{chunk-MOJQB5TN-BzuZr6pz.js → chunk-MOJQB5TN-B1fdnpCz.js} +121 -121
- package/dist/{chunk-MOJQB5TN-BSfpWEVd.cjs → chunk-MOJQB5TN-yjlPYCh4.cjs} +3 -3
- package/dist/{chunk-PUDLZKDR-DNbm7Xzd.cjs → chunk-PUDLZKDR-BlQ3qKcC.cjs} +4 -4
- package/dist/{chunk-PUDLZKDR-BRL3efwE.js → chunk-PUDLZKDR-CIcw3cpm.js} +16 -16
- package/dist/chunk-RYQCIY6F-B-V6UOJy.cjs +1 -0
- package/dist/{chunk-RYQCIY6F-DwmsCCiA.js → chunk-RYQCIY6F-DyVk8fNp.js} +1 -1
- package/dist/{chunk-V7JOEXUC-BowEdIo-.cjs → chunk-V7JOEXUC-B1EgagKh.cjs} +3 -3
- package/dist/{chunk-V7JOEXUC-D0oynREN.js → chunk-V7JOEXUC-C776k7_V.js} +5 -5
- package/dist/{chunk-VR4S4FIN-Dg_3SNs1.js → chunk-VR4S4FIN-CyqARa17.js} +3 -3
- package/dist/chunk-VR4S4FIN-Sx71KwIQ.cjs +1 -0
- package/dist/{chunk-XXDRQBXY-Byo5u3b_.js → chunk-XXDRQBXY-B-99Fbs_.js} +3 -3
- package/dist/chunk-XXDRQBXY-BgeRIUG1.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-BLAiuPPL.cjs +1 -0
- package/dist/{classDiagram-v2-EOCWNBFH-CVu4_B8x.js → classDiagram-OUVF2IWQ-DJ0hW16Q.js} +2 -2
- package/dist/classDiagram-v2-EOCWNBFH-BLAiuPPL.cjs +1 -0
- package/dist/{classDiagram-OUVF2IWQ-CVu4_B8x.js → classDiagram-v2-EOCWNBFH-DJ0hW16Q.js} +2 -2
- package/dist/{code-blocks-BWr5Xg1I.js → code-blocks-C6J8rVTc.js} +23 -22
- package/dist/{code-blocks-BdKjppKq.cjs → code-blocks-CTESwslp.cjs} +3 -3
- package/dist/code-blocks.cjs +1 -1
- package/dist/code-blocks.d.ts +1 -0
- package/dist/code-blocks.js +15 -14
- package/dist/components/CopyButton.d.ts +8 -0
- package/dist/components/HostedScrollArea.d.ts +2 -1
- package/dist/components/MarkdownRenderer.d.ts +37 -3
- package/dist/components/MarkdownViewer.d.ts +15 -4
- package/dist/components/MermaidDiagram.d.ts +1 -0
- package/dist/components/ReadingPlaceKeeper.d.ts +32 -0
- package/dist/components/SelectionKeeper.d.ts +38 -0
- package/dist/components/SpreadsheetBlock.d.ts +4 -2
- package/dist/components/blockKeys.d.ts +9 -2
- package/dist/components/blockOffsets.d.ts +3 -0
- package/dist/components/clipboard.d.ts +1 -0
- package/dist/components/codeBlockLabels.d.ts +9 -0
- package/dist/components/cssLength.d.ts +1 -0
- package/dist/components/displayMathLabels.d.ts +11 -0
- package/dist/components/embeds/ClientFrame.d.ts +1 -0
- package/dist/components/embeds/ProviderEmbed.d.ts +2 -1
- package/dist/components/embeds/embedLabels.d.ts +1 -1
- package/dist/components/embeds/linkCardFetch.d.ts +2 -0
- package/dist/components/embeds.d.ts +5 -0
- package/dist/components/headingLevels.d.ts +6 -0
- package/dist/components/htmlNodes.d.ts +2 -0
- package/dist/components/htmlSanitizer.d.ts +15 -2
- package/dist/components/labels.d.ts +3 -2
- package/dist/components/links.d.ts +1 -0
- package/dist/components/mathRendering.d.ts +3 -1
- package/dist/components/mdastNodes/CodeNode.d.ts +5 -1
- package/dist/components/mdastNodes/MathNode.d.ts +6 -5
- package/dist/components/mermaidLabels.d.ts +5 -0
- package/dist/components/mermaidSetup.d.ts +10 -0
- package/dist/components/missingImageLabels.d.ts +2 -0
- package/dist/components/ownPixels.d.ts +4 -0
- package/dist/components/rawHtml.d.ts +7 -3
- package/dist/components/spreadsheetModel.d.ts +1 -0
- package/dist/components/toolbarOverlap.d.ts +4 -1
- package/dist/components/viewerLabels.d.ts +22 -3
- package/dist/components/viewerToolbarStyles.d.ts +2 -0
- package/dist/contentColors.d.ts +21 -0
- package/dist/conversion.d.ts +7 -0
- package/dist/converter/NOTICES.md +6 -6
- package/dist/converter/createMarkdownConverter.d.ts +1 -0
- package/dist/converter/protocol.d.ts +4 -0
- package/dist/converter.cjs +1 -1
- package/dist/converter.js +89 -71
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-BmM-AQ-j.js → cose-bilkent-JH36ORCC-CR6Hdvto.js} +1 -1
- package/dist/cose-bilkent-JH36ORCC-reAbGeDU.cjs +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-2qz-sUtp.cjs +62 -0
- package/dist/{cynefinDiagram-TSTJHNR4-iS4n-7T_.js → cynefinDiagram-TSTJHNR4-D1eY-FSf.js} +56 -56
- package/dist/dagre-VKFMJZFB-Byr9WPjb.cjs +4 -0
- package/dist/{dagre-VKFMJZFB-C1Y6S6Dm.js → dagre-VKFMJZFB-CXSczF8v.js} +25 -25
- package/dist/{diagram-FQU43EPY-CRXs7mU1.cjs → diagram-FQU43EPY-2YWng437.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-CFG9AlAq.js → diagram-FQU43EPY-BZo0xcaj.js} +35 -35
- package/dist/diagram-G47NLZAW-CQS7BN4F.cjs +24 -0
- package/dist/{diagram-G47NLZAW-Bqr76Qn5.js → diagram-G47NLZAW-CvJW9ny8.js} +60 -60
- package/dist/{diagram-NH7WQ7WH-BDWfQ8xs.js → diagram-NH7WQ7WH-C6VIkj-R.js} +17 -17
- package/dist/diagram-NH7WQ7WH-DXUwOBe7.cjs +24 -0
- package/dist/{diagram-OA4YK3LP-DuW90Uhk.js → diagram-OA4YK3LP-Co6nMbJc.js} +28 -28
- package/dist/{diagram-OA4YK3LP-uBVV8yBB.cjs → diagram-OA4YK3LP-DBUm2qxb.cjs} +3 -3
- package/dist/{diagram-WEI45ONY-Cd3qe8Wi.js → diagram-WEI45ONY-BaMbc5o2.js} +59 -59
- package/dist/diagram-WEI45ONY-ChpK2gP3.cjs +41 -0
- package/dist/ebnfDiagram-CCIWWBDH-DMIRHp8N.cjs +1 -0
- package/dist/{ebnfDiagram-CCIWWBDH-CMmTdVTT.js → ebnfDiagram-CCIWWBDH-i7CR-FU0.js} +3 -3
- package/dist/embeds/frames.d.ts +4 -0
- package/dist/embeds/linkCards.d.ts +3 -1
- package/dist/embeds/providers.d.ts +1 -0
- package/dist/embeds/testing.cjs +1 -1
- package/dist/embeds/testing.js +1 -1
- package/dist/embeds-B4g6w7Tf.cjs +1 -0
- package/dist/embeds-Dra-dGKD.js +64 -0
- package/dist/embeds.cjs +1 -1
- package/dist/embeds.d.ts +2 -2
- package/dist/embeds.js +31 -70
- package/dist/{erDiagram-Q63AITRT-tOZoI25O.js → erDiagram-Q63AITRT-DC-HhdaO.js} +68 -68
- package/dist/{erDiagram-Q63AITRT-ONnVKrzr.cjs → erDiagram-Q63AITRT-DjRvJyWK.cjs} +1 -1
- package/dist/errors-BWZJx2MD.cjs +1 -0
- package/dist/errors-CapTNE7l.js +62 -0
- package/dist/errors.d.ts +2 -2
- package/dist/extractHeadings-BAhmauKo.js +5296 -0
- package/dist/extractHeadings-qiJXegCx.cjs +11 -0
- package/dist/flowDiagram-23GEKE2U-CiNzp6BS.js +7 -0
- package/dist/flowDiagram-23GEKE2U-DzZNPkRJ.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-C23vm5cK.js → ganttDiagram-NO4QXBWP-BwbtaPxc.js} +69 -69
- package/dist/ganttDiagram-NO4QXBWP-CJv5UQ4O.cjs +292 -0
- package/dist/gen/markdown/v1/linkcard_connect.d.ts +19 -0
- package/dist/gen/markdown/v1/linkcard_pb.d.ts +87 -0
- package/dist/gen/markdown/v1/markdown_pb.d.ts +4 -0
- package/dist/{gitGraphDiagram-IHSO6WYX-BXWses91.js → gitGraphDiagram-IHSO6WYX--yebcp4V.js} +21 -21
- package/dist/gitGraphDiagram-IHSO6WYX-dSwtW7X6.cjs +106 -0
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +5 -3
- package/dist/index.client.js +56 -48
- package/dist/index.js +56 -48
- package/dist/index.server.cjs +1 -1
- package/dist/index.server.d.ts +2 -1
- package/dist/index.server.js +126 -873
- package/dist/{infoDiagram-FWYZ7A6U-C4NsbHAN.js → infoDiagram-FWYZ7A6U-B4AiTiqD.js} +9 -9
- package/dist/infoDiagram-FWYZ7A6U-BOj0VF20.cjs +2 -0
- package/dist/{ishikawaDiagram-FXEZZL3T-B2bMsFnl.js → ishikawaDiagram-FXEZZL3T-BsYs_qnQ.js} +59 -59
- package/dist/{ishikawaDiagram-FXEZZL3T-Cjqwv-T2.cjs → ishikawaDiagram-FXEZZL3T-CisV4kPO.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DfRiiYRf.cjs → journeyDiagram-5HDEW3XC-BAvgWwpr.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DO1Xx-OE.js → journeyDiagram-5HDEW3XC-DbDo-dqu.js} +32 -32
- package/dist/{kanban-definition-HUTT4EX6-RfpoaM17.js → kanban-definition-HUTT4EX6-BlPZISwH.js} +97 -97
- package/dist/{kanban-definition-HUTT4EX6-Cu_E-BJj.cjs → kanban-definition-HUTT4EX6-RjzOWas9.cjs} +2 -2
- package/dist/{linear-BbWOUIQi.js → linear-BXWX8YXI.js} +31 -31
- package/dist/linear-CKPQExK8.cjs +1 -0
- package/dist/linkCardServer/linkCardCore.d.ts +10 -0
- package/dist/linkCardServer/linkCardHandler.server.d.ts +1 -6
- package/dist/linkCardServer/pageFetchPort.d.ts +19 -0
- package/dist/linkCardServer/{pageMetadata.server.d.ts → pageMetadata.d.ts} +11 -3
- package/dist/linkCards-BikpIncf.cjs +1 -0
- package/dist/linkCards-DfSLqLPF.js +50 -0
- package/dist/linkCards.cjs +1 -0
- package/dist/linkCards.d.ts +2 -0
- package/dist/linkCards.js +5 -0
- package/dist/markdownServiceClient-C47z3Ynu.cjs +1 -0
- package/dist/markdownServiceClient-uDeklhtG.js +480 -0
- package/dist/markdownServiceClient.d.ts +20 -0
- package/dist/mermaid.core-C4EClWgB.js +15595 -0
- package/dist/mermaid.core-CRP55Hm1.cjs +305 -0
- package/dist/mermaidFrame/NOTICES.md +1345 -0
- package/dist/mermaidFrame/cssCleaner.d.ts +13 -0
- package/dist/mermaidFrame/drawer.d.ts +34 -0
- package/dist/mermaidFrame/frame.d.ts +1 -0
- package/dist/mermaidFrame/frame.js +3307 -0
- package/dist/mermaidFrame/katexInert.d.ts +4 -0
- package/dist/mermaidFrame/protocol.d.ts +38 -0
- package/dist/mermaidFrame/serve.d.ts +14 -0
- package/dist/mermaidFrame/svgCleaner.d.ts +4 -0
- package/dist/{mindmap-definition-LN4V7U3C-B5LpvJ9m.js → mindmap-definition-LN4V7U3C-BEWpoMMG.js} +79 -79
- package/dist/{mindmap-definition-LN4V7U3C-CB606E3L.cjs → mindmap-definition-LN4V7U3C-DnbSfqWP.cjs} +3 -3
- package/dist/pageFetchPort-2H18xcdi.cjs +1 -0
- package/dist/pageFetchPort-DVpXsKCz.js +624 -0
- package/dist/{pegDiagram-2B236MQR-DaosueJV.js → pegDiagram-2B236MQR-BF7gLiB-.js} +3 -3
- package/dist/pegDiagram-2B236MQR-BJysMObA.cjs +1 -0
- package/dist/{pieDiagram-ENE6RG2P-wfsOfWyT.js → pieDiagram-ENE6RG2P-D_YzC3qc.js} +50 -50
- package/dist/{pieDiagram-ENE6RG2P-BUY2Dvjo.cjs → pieDiagram-ENE6RG2P-UMpeIUyV.cjs} +2 -2
- package/dist/{providers-BwQK7hZa.js → providers-CSvkTZsr.js} +17 -2
- package/dist/{providers-DO2t7ks4.cjs → providers-Cx0FuVQU.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-BSvHqsTp.cjs → quadrantDiagram-ABIIQ3AL-DANY0ipQ.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-Bgc3vspL.js → quadrantDiagram-ABIIQ3AL-DDm-r_6D.js} +59 -59
- package/dist/railroadDiagram-RFXS5EU6-CDUd4th1.cjs +1 -0
- package/dist/{railroadDiagram-RFXS5EU6-Du2CFU9M.js → railroadDiagram-RFXS5EU6-hJ6uB90G.js} +3 -3
- package/dist/remarkProcessor.server.d.ts +2 -0
- package/dist/{requirementDiagram-TGXJPOKE-CnafqSUP.js → requirementDiagram-TGXJPOKE-BJef5Jb0.js} +15 -15
- package/dist/{requirementDiagram-TGXJPOKE-WM3sItRw.cjs → requirementDiagram-TGXJPOKE-DaoCo7go.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-D4Qv4d98.js → sankeyDiagram-HTMAVEWB-BZQs0bE-.js} +41 -41
- package/dist/{sankeyDiagram-HTMAVEWB-DaZN3ZDb.cjs → sankeyDiagram-HTMAVEWB-DXiv0YOu.cjs} +3 -3
- package/dist/{sequenceDiagram-DBY2YBRQ-C6fa7Axs.cjs → sequenceDiagram-DBY2YBRQ-CJGpsnsv.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CmP6XGGE.js → sequenceDiagram-DBY2YBRQ-D05U2w26.js} +46 -46
- package/dist/serviceClient.cjs +1 -0
- package/dist/serviceClient.d.ts +3 -0
- package/dist/serviceClient.js +9 -0
- package/dist/{sizeCapture-X5ZJPWSS-mWZkTwA5.js → sizeCapture-X5ZJPWSS-DTr0Vm61.js} +1 -1
- package/dist/sizeCapture-X5ZJPWSS-DjuH1zNP.cjs +1 -0
- package/dist/{stateDiagram-2N3HPSRC-ClDZKhLD.js → stateDiagram-2N3HPSRC-B8nvJKpB.js} +13 -13
- package/dist/stateDiagram-2N3HPSRC-BrB47FD-.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CC8gOGDK.cjs +1 -0
- package/dist/{stateDiagram-v2-6OUMAXLB-K7slPgH_.js → stateDiagram-v2-6OUMAXLB-CV-JqAeP.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/markdown.standalone.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-Cpowlk7O.js → swimlanes-5IMT3BWC-BPtufzUd.js} +3 -3
- package/dist/swimlanes-5IMT3BWC-WAbDPRgt.cjs +1 -0
- package/dist/{swimlanesDiagram-G3AALYLV-36K4ynZn.js → swimlanesDiagram-G3AALYLV-BQKEmJFX.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-BZ0eguZa.cjs → swimlanesDiagram-G3AALYLV-BTwwtLZL.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-C2xHtlkw.js → timeline-definition-FHXFAJF6-DJ6GV7Fz.js} +53 -53
- package/dist/{timeline-definition-FHXFAJF6-BJN69nkZ.cjs → timeline-definition-FHXFAJF6-qdkrah7t.cjs} +1 -1
- package/dist/utils/promiseTry.d.ts +1 -0
- package/dist/vennDiagram-L72KCM5P-B5onSWPA.cjs +34 -0
- package/dist/{vennDiagram-L72KCM5P-DbqRaWm5.js → vennDiagram-L72KCM5P-DWnnndTj.js} +176 -176
- package/dist/viewer-settings.cjs +1 -1
- package/dist/viewer-settings.d.ts +8 -0
- package/dist/viewer-settings.js +11 -5
- package/dist/{wardleyDiagram-EHGQE667-CF5I0pM9.js → wardleyDiagram-EHGQE667-DFmDgQSb.js} +34 -34
- package/dist/{wardleyDiagram-EHGQE667-CyU76ilz.cjs → wardleyDiagram-EHGQE667-DdeBbvVM.cjs} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-DaKE_uIg.cjs → xychartDiagram-FW5EYKEG-CiJQMClv.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-spkx-w6w.js → xychartDiagram-FW5EYKEG-L2Kj4cZA.js} +56 -56
- package/package.json +32 -17
- package/dist/abnfDiagram-VRR7QNED-1fn6qV_P.cjs +0 -1
- package/dist/arc-D8xGHwLe.cjs +0 -1
- package/dist/arc-D9kg3f8-.js +0 -83
- package/dist/architectureDiagram-ZJ3FMSHR-C4QxQA-o.cjs +0 -36
- package/dist/channel-DuWQwUVP.cjs +0 -1
- package/dist/chunk-2Q5K7J3B-gCP3NILS.cjs +0 -1
- package/dist/chunk-32BRIVSS-PidRQo43.cjs +0 -1
- package/dist/chunk-JWPE2WC7-CHK_g5p5.cjs +0 -1
- package/dist/chunk-RYQCIY6F-B_33Thwg.cjs +0 -1
- package/dist/chunk-VR4S4FIN-Ca3mlCgX.cjs +0 -1
- package/dist/chunk-XXDRQBXY-CeZMmeIi.cjs +0 -1
- package/dist/classDiagram-OUVF2IWQ-DPzttpgE.cjs +0 -1
- package/dist/classDiagram-v2-EOCWNBFH-DPzttpgE.cjs +0 -1
- package/dist/cose-bilkent-JH36ORCC-C3UAMvQQ.cjs +0 -1
- package/dist/cynefinDiagram-TSTJHNR4-DStGofoE.cjs +0 -62
- package/dist/dagre-VKFMJZFB-BXsQ5-Ek.cjs +0 -4
- package/dist/diagram-G47NLZAW-BaX-jrfs.cjs +0 -24
- package/dist/diagram-NH7WQ7WH-Cczq2y99.cjs +0 -24
- package/dist/diagram-WEI45ONY-C_L-4kui.cjs +0 -41
- package/dist/ebnfDiagram-CCIWWBDH-Cg7DTSlM.cjs +0 -1
- package/dist/errors-BW5JXRoX.cjs +0 -1
- package/dist/errors-Blk_XJ9C.js +0 -55
- package/dist/extractHeadings-3qWVTkb9.js +0 -20290
- package/dist/extractHeadings-DpvwXCio.cjs +0 -315
- package/dist/flowDiagram-23GEKE2U-DfDAl_qd.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-p6ccACf3.js +0 -7
- package/dist/ganttDiagram-NO4QXBWP-CHP_muri.cjs +0 -292
- package/dist/gitGraphDiagram-IHSO6WYX-DOH3WBNZ.cjs +0 -106
- package/dist/infoDiagram-FWYZ7A6U-Bj2fnr5Y.cjs +0 -2
- package/dist/linear-Cz3x9Lkl.cjs +0 -1
- package/dist/linkCardServer/addressGuard.server.d.ts +0 -25
- package/dist/linkCardServer/pageFetch.server.d.ts +0 -37
- package/dist/linkCards-1JxY8wdm.js +0 -48
- package/dist/linkCards-Bjd_vW39.cjs +0 -1
- package/dist/pegDiagram-2B236MQR-BCqBc3Re.cjs +0 -1
- package/dist/railroadDiagram-RFXS5EU6-DdF2c_n3.cjs +0 -1
- package/dist/sizeCapture-X5ZJPWSS-B6sRQba9.cjs +0 -1
- package/dist/stateDiagram-2N3HPSRC-B__29zPZ.cjs +0 -1
- package/dist/stateDiagram-v2-6OUMAXLB-BA-_ovVY.cjs +0 -1
- package/dist/swimlanes-5IMT3BWC-BhxZhB7M.cjs +0 -1
- package/dist/vennDiagram-L72KCM5P-3R1vuMWd.cjs +0 -34
- /package/dist/linkCardServer/{htmlEncoding.server.d.ts → htmlEncoding.d.ts} +0 -0
- /package/dist/linkCardServer/{metadataCache.server.d.ts → metadataCache.d.ts} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const MERMAID_FRAME_LISTENING_ATTRIBUTE = "data-aqmd-mermaid-drawing-place";
|
|
2
|
+
export declare const MERMAID_FRAME_LISTENING = "listening";
|
|
3
|
+
export declare const MERMAID_FRAME_CONNECT = "aiquants-markdown:mermaid-frame:connect";
|
|
4
|
+
export interface MermaidFrameConnectMessage {
|
|
5
|
+
readonly type: typeof MERMAID_FRAME_CONNECT;
|
|
6
|
+
}
|
|
7
|
+
export interface MermaidFrameRequest {
|
|
8
|
+
readonly id: number;
|
|
9
|
+
readonly svgId: string;
|
|
10
|
+
readonly source: string;
|
|
11
|
+
readonly theme: "light" | "dark";
|
|
12
|
+
readonly width: number;
|
|
13
|
+
readonly fontFamily: string;
|
|
14
|
+
readonly lang: string;
|
|
15
|
+
readonly maxChars: number;
|
|
16
|
+
readonly maxEdges: number;
|
|
17
|
+
}
|
|
18
|
+
export type MermaidFrameFailure = {
|
|
19
|
+
readonly kind: "too-large";
|
|
20
|
+
readonly length: number;
|
|
21
|
+
readonly limit: number;
|
|
22
|
+
} | {
|
|
23
|
+
readonly kind: "too-many-edges";
|
|
24
|
+
readonly limit: number;
|
|
25
|
+
} | {
|
|
26
|
+
readonly kind: "mermaid";
|
|
27
|
+
readonly message: string;
|
|
28
|
+
} | {
|
|
29
|
+
readonly kind: "frame";
|
|
30
|
+
readonly message: string;
|
|
31
|
+
};
|
|
32
|
+
export type MermaidFrameAnswer = {
|
|
33
|
+
readonly id: number;
|
|
34
|
+
readonly svg: string;
|
|
35
|
+
} | {
|
|
36
|
+
readonly id: number;
|
|
37
|
+
readonly failure: MermaidFrameFailure;
|
|
38
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Mermaid, MermaidConfig } from "mermaid";
|
|
2
|
+
import { MermaidFrameAnswer, MermaidFrameFailure, MermaidFrameRequest } from "./protocol.ts";
|
|
3
|
+
export type MermaidLibrary = Pick<Mermaid, "initialize" | "render">;
|
|
4
|
+
export interface MermaidFrameScope {
|
|
5
|
+
readonly document: Document;
|
|
6
|
+
readonly parent: unknown;
|
|
7
|
+
readonly origin: string;
|
|
8
|
+
addEventListener(type: "message", listener: (event: MessageEvent) => void): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const MERMAID_LOCKED_CONFIG_KEYS: readonly string[];
|
|
11
|
+
export declare const mermaidFrameConfig: (request: MermaidFrameRequest) => MermaidConfig;
|
|
12
|
+
export declare const mermaidFailureOf: (error: unknown, maxEdges: number) => MermaidFrameFailure;
|
|
13
|
+
export declare const drawMermaidRequest: (library: MermaidLibrary, document: Document, request: MermaidFrameRequest) => Promise<MermaidFrameAnswer>;
|
|
14
|
+
export declare const serveMermaidFrame: (scope: MermaidFrameScope, library: MermaidLibrary) => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { WindowLike } from "dompurify";
|
|
2
|
+
export declare const MERMAID_CLASS_PREFIX = "aqmd-mmd-";
|
|
3
|
+
export type MermaidSvgCleaner = (markup: string, svgId: string) => SVGSVGElement | null;
|
|
4
|
+
export declare function createMermaidSvgCleaner(view: WindowLike): MermaidSvgCleaner;
|
package/dist/{mindmap-definition-LN4V7U3C-B5LpvJ9m.js → mindmap-definition-LN4V7U3C-BEWpoMMG.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { s as ce } from "./chunk-VR4S4FIN-
|
|
3
|
-
import { _ as h,
|
|
1
|
+
import { g as ae } from "./chunk-XXDRQBXY-B-99Fbs_.js";
|
|
2
|
+
import { s as ce } from "./chunk-VR4S4FIN-CyqARa17.js";
|
|
3
|
+
import { _ as h, l as I, p as le, r as he, D as de, G as j, c as P, i as G, n as ge, V as ue, W as pe, X as fe } from "./mermaid.core-C4EClWgB.js";
|
|
4
4
|
const _ = [];
|
|
5
5
|
for (let t = 0; t < 256; ++t)
|
|
6
6
|
_.push((t + 256).toString(16).slice(1));
|
|
@@ -11,28 +11,28 @@ const ye = new Uint8Array(16);
|
|
|
11
11
|
function Ee() {
|
|
12
12
|
return crypto.getRandomValues(ye);
|
|
13
13
|
}
|
|
14
|
-
function _e(t, e,
|
|
14
|
+
function _e(t, e, a) {
|
|
15
15
|
return crypto.randomUUID ? crypto.randomUUID() : ke(t);
|
|
16
16
|
}
|
|
17
|
-
function ke(t, e,
|
|
17
|
+
function ke(t, e, a) {
|
|
18
18
|
t = t || {};
|
|
19
19
|
const l = t.random ?? t.rng?.() ?? Ee();
|
|
20
20
|
if (l.length < 16)
|
|
21
21
|
throw new Error("Random bytes length must be >= 16");
|
|
22
22
|
return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, me(l);
|
|
23
23
|
}
|
|
24
|
-
var
|
|
25
|
-
var t = /* @__PURE__ */ h(function(L, s, i,
|
|
26
|
-
for (i = i || {},
|
|
24
|
+
var q = (function() {
|
|
25
|
+
var t = /* @__PURE__ */ h(function(L, s, i, o) {
|
|
26
|
+
for (i = i || {}, o = L.length; o--; i[L[o]] = s) ;
|
|
27
27
|
return i;
|
|
28
|
-
}, "o"), e = [1, 4],
|
|
28
|
+
}, "o"), e = [1, 4], a = [1, 13], l = [1, 12], n = [1, 15], d = [1, 16], f = [1, 20], y = [1, 19], E = [6, 7, 8], k = [1, 26], v = [1, 24], R = [1, 25], g = [6, 7, 11], A = [1, 6, 13, 15, 16, 19, 22], J = [1, 33], K = [1, 34], $ = [1, 6, 7, 11, 13, 15, 16, 19, 22], H = {
|
|
29
29
|
trace: /* @__PURE__ */ h(function() {
|
|
30
30
|
}, "trace"),
|
|
31
31
|
yy: {},
|
|
32
32
|
symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
|
|
33
33
|
terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
|
|
34
34
|
productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
|
|
35
|
-
performAction: /* @__PURE__ */ h(function(s, i,
|
|
35
|
+
performAction: /* @__PURE__ */ h(function(s, i, o, c, p, r, B) {
|
|
36
36
|
var u = r.length - 1;
|
|
37
37
|
switch (p) {
|
|
38
38
|
case 6:
|
|
@@ -80,36 +80,36 @@ var Q = (function() {
|
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
82
|
}, "anonymous"),
|
|
83
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6:
|
|
83
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: a, 7: [1, 10], 9: 9, 12: 11, 13: l, 14: 14, 15: n, 16: d, 17: 17, 18: 18, 19: f, 22: y }, t(E, [2, 3]), { 1: [2, 2] }, t(E, [2, 4]), t(E, [2, 5]), { 1: [2, 6], 6: a, 12: 21, 13: l, 14: 14, 15: n, 16: d, 17: 17, 18: 18, 19: f, 22: y }, { 6: a, 9: 22, 12: 11, 13: l, 14: 14, 15: n, 16: d, 17: 17, 18: 18, 19: f, 22: y }, { 6: k, 7: v, 10: 23, 11: R }, t(g, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: f, 22: y }), t(g, [2, 18]), t(g, [2, 19]), t(g, [2, 20]), t(g, [2, 21]), t(g, [2, 23]), t(g, [2, 24]), t(g, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: k, 7: v, 10: 32, 11: R }, { 1: [2, 7], 6: a, 12: 21, 13: l, 14: 14, 15: n, 16: d, 17: 17, 18: 18, 19: f, 22: y }, t(A, [2, 14], { 7: J, 11: K }), t($, [2, 8]), t($, [2, 9]), t($, [2, 10]), t(g, [2, 15]), t(g, [2, 16]), t(g, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(A, [2, 13], { 7: J, 11: K }), t($, [2, 11]), t($, [2, 12]), { 21: [1, 37] }, t(g, [2, 25]), t(g, [2, 27])],
|
|
84
84
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
85
85
|
parseError: /* @__PURE__ */ h(function(s, i) {
|
|
86
86
|
if (i.recoverable)
|
|
87
87
|
this.trace(s);
|
|
88
88
|
else {
|
|
89
|
-
var
|
|
90
|
-
throw
|
|
89
|
+
var o = new Error(s);
|
|
90
|
+
throw o.hash = i, o;
|
|
91
91
|
}
|
|
92
92
|
}, "parseError"),
|
|
93
93
|
parse: /* @__PURE__ */ h(function(s) {
|
|
94
|
-
var i = this,
|
|
94
|
+
var i = this, o = [0], c = [], p = [null], r = [], B = this.table, u = "", U = 0, Q = 0, ie = 2, Z = 1, se = r.slice.call(arguments, 1), m = Object.create(this.lexer), T = { yy: {} };
|
|
95
95
|
for (var W in this.yy)
|
|
96
96
|
Object.prototype.hasOwnProperty.call(this.yy, W) && (T.yy[W] = this.yy[W]);
|
|
97
97
|
m.setInput(s, T.yy), T.yy.lexer = m, T.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
|
|
98
|
-
var
|
|
99
|
-
r.push(
|
|
98
|
+
var X = m.yylloc;
|
|
99
|
+
r.push(X);
|
|
100
100
|
var re = m.options && m.options.ranges;
|
|
101
101
|
typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
102
|
-
function
|
|
103
|
-
|
|
102
|
+
function oe(S) {
|
|
103
|
+
o.length = o.length - 2 * S, p.length = p.length - S, r.length = r.length - S;
|
|
104
104
|
}
|
|
105
|
-
h(
|
|
105
|
+
h(oe, "popStack");
|
|
106
106
|
function ee() {
|
|
107
107
|
var S;
|
|
108
108
|
return S = c.pop() || m.lex() || Z, typeof S != "number" && (S instanceof Array && (c = S, S = c.pop()), S = i.symbols_[S] || S), S;
|
|
109
109
|
}
|
|
110
110
|
h(ee, "lex");
|
|
111
|
-
for (var b, O, x,
|
|
112
|
-
if (O =
|
|
111
|
+
for (var b, O, x, z, C = {}, V, N, te, F; ; ) {
|
|
112
|
+
if (O = o[o.length - 1], this.defaultActions[O] ? x = this.defaultActions[O] : ((b === null || typeof b > "u") && (b = ee()), x = B[O] && B[O][b]), typeof x > "u" || !x.length || !x[0]) {
|
|
113
113
|
var Y = "";
|
|
114
114
|
F = [];
|
|
115
115
|
for (V in B[O])
|
|
@@ -120,7 +120,7 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
120
120
|
text: m.match,
|
|
121
121
|
token: this.terminals_[b] || b,
|
|
122
122
|
line: m.yylineno,
|
|
123
|
-
loc:
|
|
123
|
+
loc: X,
|
|
124
124
|
expected: F
|
|
125
125
|
});
|
|
126
126
|
}
|
|
@@ -128,7 +128,7 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
128
128
|
throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + b);
|
|
129
129
|
switch (x[0]) {
|
|
130
130
|
case 1:
|
|
131
|
-
|
|
131
|
+
o.push(b), p.push(m.yytext), r.push(m.yylloc), o.push(x[1]), b = null, Q = m.yyleng, u = m.yytext, U = m.yylineno, X = m.yylloc;
|
|
132
132
|
break;
|
|
133
133
|
case 2:
|
|
134
134
|
if (N = this.productions_[x[1]][1], C.$ = p[p.length - N], C._$ = {
|
|
@@ -139,17 +139,17 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
139
139
|
}, re && (C._$.range = [
|
|
140
140
|
r[r.length - (N || 1)].range[0],
|
|
141
141
|
r[r.length - 1].range[1]
|
|
142
|
-
]),
|
|
142
|
+
]), z = this.performAction.apply(C, [
|
|
143
143
|
u,
|
|
144
|
-
|
|
144
|
+
Q,
|
|
145
145
|
U,
|
|
146
146
|
T.yy,
|
|
147
147
|
x[1],
|
|
148
148
|
p,
|
|
149
149
|
r
|
|
150
|
-
].concat(se)), typeof
|
|
151
|
-
return
|
|
152
|
-
N && (
|
|
150
|
+
].concat(se)), typeof z < "u")
|
|
151
|
+
return z;
|
|
152
|
+
N && (o = o.slice(0, -1 * N * 2), p = p.slice(0, -1 * N), r = r.slice(0, -1 * N)), o.push(this.productions_[x[1]][0]), p.push(C.$), r.push(C._$), te = B[o[o.length - 2]][o[o.length - 1]], o.push(te);
|
|
153
153
|
break;
|
|
154
154
|
case 3:
|
|
155
155
|
return !0;
|
|
@@ -160,9 +160,9 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
160
160
|
}, ne = /* @__PURE__ */ (function() {
|
|
161
161
|
var L = {
|
|
162
162
|
EOF: 1,
|
|
163
|
-
parseError: /* @__PURE__ */ h(function(i,
|
|
163
|
+
parseError: /* @__PURE__ */ h(function(i, o) {
|
|
164
164
|
if (this.yy.parser)
|
|
165
|
-
this.yy.parser.parseError(i,
|
|
165
|
+
this.yy.parser.parseError(i, o);
|
|
166
166
|
else
|
|
167
167
|
throw new Error(i);
|
|
168
168
|
}, "parseError"),
|
|
@@ -184,16 +184,16 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
184
184
|
}, "input"),
|
|
185
185
|
// unshifts one char (or a string) into the input
|
|
186
186
|
unput: /* @__PURE__ */ h(function(s) {
|
|
187
|
-
var i = s.length,
|
|
187
|
+
var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
|
|
188
188
|
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
189
189
|
var c = this.match.split(/(?:\r\n?|\n)/g);
|
|
190
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
190
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
|
191
191
|
var p = this.yylloc.range;
|
|
192
192
|
return this.yylloc = {
|
|
193
193
|
first_line: this.yylloc.first_line,
|
|
194
194
|
last_line: this.yylineno + 1,
|
|
195
195
|
first_column: this.yylloc.first_column,
|
|
196
|
-
last_column:
|
|
196
|
+
last_column: o ? (o.length === c.length ? this.yylloc.first_column : 0) + c[c.length - o.length].length - o[0].length : this.yylloc.first_column - i
|
|
197
197
|
}, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
|
198
198
|
}, "unput"),
|
|
199
199
|
// When called from action, caches matched text and appends it on next action
|
|
@@ -235,7 +235,7 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
235
235
|
}, "showPosition"),
|
|
236
236
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
237
237
|
test_match: /* @__PURE__ */ h(function(s, i) {
|
|
238
|
-
var
|
|
238
|
+
var o, c, p;
|
|
239
239
|
if (this.options.backtrack_lexer && (p = {
|
|
240
240
|
yylineno: this.yylineno,
|
|
241
241
|
yylloc: {
|
|
@@ -260,8 +260,8 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
260
260
|
last_line: this.yylineno + 1,
|
|
261
261
|
first_column: this.yylloc.last_column,
|
|
262
262
|
last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
|
|
263
|
-
}, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0],
|
|
264
|
-
return
|
|
263
|
+
}, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], o = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
|
264
|
+
return o;
|
|
265
265
|
if (this._backtrack) {
|
|
266
266
|
for (var r in p)
|
|
267
267
|
this[r] = p[r];
|
|
@@ -274,12 +274,12 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
274
274
|
if (this.done)
|
|
275
275
|
return this.EOF;
|
|
276
276
|
this._input || (this.done = !0);
|
|
277
|
-
var s, i,
|
|
277
|
+
var s, i, o, c;
|
|
278
278
|
this._more || (this.yytext = "", this.match = "");
|
|
279
279
|
for (var p = this._currentRules(), r = 0; r < p.length; r++)
|
|
280
|
-
if (
|
|
281
|
-
if (i =
|
|
282
|
-
if (s = this.test_match(
|
|
280
|
+
if (o = this._input.match(this.rules[p[r]]), o && (!i || o[0].length > i[0].length)) {
|
|
281
|
+
if (i = o, c = r, this.options.backtrack_lexer) {
|
|
282
|
+
if (s = this.test_match(o, p[r]), s !== !1)
|
|
283
283
|
return s;
|
|
284
284
|
if (this._backtrack) {
|
|
285
285
|
i = !1;
|
|
@@ -327,10 +327,10 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
327
327
|
return this.conditionStack.length;
|
|
328
328
|
}, "stateStackSize"),
|
|
329
329
|
options: { "case-insensitive": !0 },
|
|
330
|
-
performAction: /* @__PURE__ */ h(function(i,
|
|
330
|
+
performAction: /* @__PURE__ */ h(function(i, o, c, p) {
|
|
331
331
|
switch (c) {
|
|
332
332
|
case 0:
|
|
333
|
-
return i.getLogger().trace("Found comment",
|
|
333
|
+
return i.getLogger().trace("Found comment", o.yytext), 6;
|
|
334
334
|
case 1:
|
|
335
335
|
return 8;
|
|
336
336
|
case 2:
|
|
@@ -387,7 +387,7 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
387
387
|
i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
|
|
388
388
|
break;
|
|
389
389
|
case 25:
|
|
390
|
-
return i.getLogger().trace("description:",
|
|
390
|
+
return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
|
|
391
391
|
case 26:
|
|
392
392
|
this.popState();
|
|
393
393
|
break;
|
|
@@ -396,7 +396,7 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
396
396
|
case 28:
|
|
397
397
|
return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
|
|
398
398
|
case 29:
|
|
399
|
-
return this.popState(), i.getLogger().trace("node end ...",
|
|
399
|
+
return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
|
|
400
400
|
case 30:
|
|
401
401
|
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
402
402
|
case 31:
|
|
@@ -408,9 +408,9 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
408
408
|
case 34:
|
|
409
409
|
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
410
410
|
case 35:
|
|
411
|
-
return i.getLogger().trace("Long description:",
|
|
411
|
+
return i.getLogger().trace("Long description:", o.yytext), 20;
|
|
412
412
|
case 36:
|
|
413
|
-
return i.getLogger().trace("Long description:",
|
|
413
|
+
return i.getLogger().trace("Long description:", o.yytext), 20;
|
|
414
414
|
}
|
|
415
415
|
}, "anonymous"),
|
|
416
416
|
rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
|
|
@@ -424,8 +424,8 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
424
424
|
}
|
|
425
425
|
return h(M, "Parser"), M.prototype = H, H.Parser = M, new M();
|
|
426
426
|
})();
|
|
427
|
-
|
|
428
|
-
var be =
|
|
427
|
+
q.parser = q;
|
|
428
|
+
var be = q, Se = 12, D = {
|
|
429
429
|
DEFAULT: 0,
|
|
430
430
|
NO_BORDER: 0,
|
|
431
431
|
ROUNDED_RECT: 1,
|
|
@@ -442,16 +442,16 @@ var be = Q, Se = 12, D = {
|
|
|
442
442
|
this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
|
|
443
443
|
}
|
|
444
444
|
getParent(e) {
|
|
445
|
-
for (let
|
|
446
|
-
if (this.nodes[
|
|
447
|
-
return this.nodes[
|
|
445
|
+
for (let a = this.nodes.length - 1; a >= 0; a--)
|
|
446
|
+
if (this.nodes[a].level < e)
|
|
447
|
+
return this.nodes[a];
|
|
448
448
|
return null;
|
|
449
449
|
}
|
|
450
450
|
getMindmap() {
|
|
451
451
|
return this.nodes.length > 0 ? this.nodes[0] : null;
|
|
452
452
|
}
|
|
453
|
-
addNode(e,
|
|
454
|
-
I.info("addNode", e,
|
|
453
|
+
addNode(e, a, l, n) {
|
|
454
|
+
I.info("addNode", e, a, l, n);
|
|
455
455
|
let d = !1;
|
|
456
456
|
this.nodes.length === 0 ? (this.baseLevel = e, e = 0, d = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, d = !1);
|
|
457
457
|
const f = P();
|
|
@@ -465,7 +465,7 @@ var be = Q, Se = 12, D = {
|
|
|
465
465
|
}
|
|
466
466
|
const E = {
|
|
467
467
|
id: this.count++,
|
|
468
|
-
nodeId: G(
|
|
468
|
+
nodeId: G(a, f),
|
|
469
469
|
level: e,
|
|
470
470
|
descr: G(l, f),
|
|
471
471
|
type: n,
|
|
@@ -483,12 +483,12 @@ var be = Q, Se = 12, D = {
|
|
|
483
483
|
`There can be only one root. No parent could be found for ("${E.descr}")`
|
|
484
484
|
);
|
|
485
485
|
}
|
|
486
|
-
getType(e,
|
|
487
|
-
switch (I.debug("In get type", e,
|
|
486
|
+
getType(e, a) {
|
|
487
|
+
switch (I.debug("In get type", e, a), e) {
|
|
488
488
|
case "[":
|
|
489
489
|
return this.nodeType.RECT;
|
|
490
490
|
case "(":
|
|
491
|
-
return
|
|
491
|
+
return a === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
|
|
492
492
|
case "((":
|
|
493
493
|
return this.nodeType.CIRCLE;
|
|
494
494
|
case ")":
|
|
@@ -501,8 +501,8 @@ var be = Q, Se = 12, D = {
|
|
|
501
501
|
return this.nodeType.DEFAULT;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
setElementForId(e,
|
|
505
|
-
this.elements[e] =
|
|
504
|
+
setElementForId(e, a) {
|
|
505
|
+
this.elements[e] = a;
|
|
506
506
|
}
|
|
507
507
|
getElementById(e) {
|
|
508
508
|
return this.elements[e];
|
|
@@ -510,8 +510,8 @@ var be = Q, Se = 12, D = {
|
|
|
510
510
|
decorateNode(e) {
|
|
511
511
|
if (!e)
|
|
512
512
|
return;
|
|
513
|
-
const
|
|
514
|
-
e.icon && (l.icon = G(e.icon,
|
|
513
|
+
const a = P(), l = this.nodes[this.nodes.length - 1];
|
|
514
|
+
e.icon && (l.icon = G(e.icon, a)), e.class && (l.class = G(e.class, a));
|
|
515
515
|
}
|
|
516
516
|
type2Str(e) {
|
|
517
517
|
switch (e) {
|
|
@@ -539,10 +539,10 @@ var be = Q, Se = 12, D = {
|
|
|
539
539
|
* @param node - The mindmap node to process
|
|
540
540
|
* @param sectionNumber - The section number to assign (undefined for root)
|
|
541
541
|
*/
|
|
542
|
-
assignSections(e,
|
|
543
|
-
if (e.level === 0 ? e.section = void 0 : e.section =
|
|
542
|
+
assignSections(e, a) {
|
|
543
|
+
if (e.level === 0 ? e.section = void 0 : e.section = a, e.children)
|
|
544
544
|
for (const [l, n] of e.children.entries()) {
|
|
545
|
-
const d = e.level === 0 ? l % (Se - 1) :
|
|
545
|
+
const d = e.level === 0 ? l % (Se - 1) : a;
|
|
546
546
|
this.assignSections(n, d);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
@@ -551,7 +551,7 @@ var be = Q, Se = 12, D = {
|
|
|
551
551
|
* @param node - The mindmap node to process
|
|
552
552
|
* @param processedNodes - Array to collect processed nodes
|
|
553
553
|
*/
|
|
554
|
-
flattenNodes(e,
|
|
554
|
+
flattenNodes(e, a) {
|
|
555
555
|
const l = P(), n = ["mindmap-node"];
|
|
556
556
|
e.isRoot === !0 ? n.push("section-root", "section--1") : e.section !== void 0 && n.push(`section-${e.section}`), e.class && n.push(e.class);
|
|
557
557
|
const d = n.join(" "), f = /* @__PURE__ */ h((E) => {
|
|
@@ -597,16 +597,16 @@ var be = Q, Se = 12, D = {
|
|
|
597
597
|
type: e.type,
|
|
598
598
|
section: e.section
|
|
599
599
|
};
|
|
600
|
-
if (
|
|
600
|
+
if (a.push(y), e.children)
|
|
601
601
|
for (const E of e.children)
|
|
602
|
-
this.flattenNodes(E,
|
|
602
|
+
this.flattenNodes(E, a);
|
|
603
603
|
}
|
|
604
604
|
/**
|
|
605
605
|
* Generate edges from parent-child relationships in mindmap tree
|
|
606
606
|
* @param node - The mindmap node to process
|
|
607
607
|
* @param edges - Array to collect edges
|
|
608
608
|
*/
|
|
609
|
-
generateEdges(e,
|
|
609
|
+
generateEdges(e, a) {
|
|
610
610
|
if (!e.children)
|
|
611
611
|
return;
|
|
612
612
|
const l = P();
|
|
@@ -628,7 +628,7 @@ var be = Q, Se = 12, D = {
|
|
|
628
628
|
depth: e.level,
|
|
629
629
|
section: n.section
|
|
630
630
|
};
|
|
631
|
-
|
|
631
|
+
a.push(y), this.generateEdges(n, a);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
/**
|
|
@@ -637,14 +637,14 @@ var be = Q, Se = 12, D = {
|
|
|
637
637
|
* @returns Structured data containing nodes, edges, and config
|
|
638
638
|
*/
|
|
639
639
|
getData() {
|
|
640
|
-
const e = this.getMindmap(),
|
|
640
|
+
const e = this.getMindmap(), a = P(), n = ge().layout !== void 0, d = a;
|
|
641
641
|
if (n || (d.layout = "cose-bilkent"), !e)
|
|
642
642
|
return {
|
|
643
643
|
nodes: [],
|
|
644
644
|
edges: [],
|
|
645
645
|
config: d
|
|
646
646
|
};
|
|
647
|
-
I.debug("getData: mindmapRoot", e,
|
|
647
|
+
I.debug("getData: mindmapRoot", e, a), this.assignSections(e);
|
|
648
648
|
const f = [], y = [];
|
|
649
649
|
this.flattenNodes(e, f), this.generateEdges(e, y), I.debug(
|
|
650
650
|
`getData: processed ${f.length} nodes and ${y.length} edges`
|
|
@@ -683,10 +683,10 @@ var be = Q, Se = 12, D = {
|
|
|
683
683
|
getLogger() {
|
|
684
684
|
return I;
|
|
685
685
|
}
|
|
686
|
-
}, h(w, "MindmapDB"), w), Ne = /* @__PURE__ */ h(async (t, e,
|
|
686
|
+
}, h(w, "MindmapDB"), w), Ne = /* @__PURE__ */ h(async (t, e, a, l) => {
|
|
687
687
|
I.debug(`Rendering mindmap diagram
|
|
688
688
|
` + t);
|
|
689
|
-
const n = l.db, d = n.getData(), f =
|
|
689
|
+
const n = l.db, d = n.getData(), f = ae(e, d.config.securityLevel);
|
|
690
690
|
if (d.type = l.type, d.layoutAlgorithm = le(d.config.layout, {
|
|
691
691
|
fallback: "cose-bilkent"
|
|
692
692
|
}), d.diagramId = e, !n.getMindmap())
|
|
@@ -708,12 +708,12 @@ var be = Q, Se = 12, D = {
|
|
|
708
708
|
}, "draw"), De = {
|
|
709
709
|
draw: Ne
|
|
710
710
|
}, Le = /* @__PURE__ */ h((t) => {
|
|
711
|
-
const { theme: e, look:
|
|
711
|
+
const { theme: e, look: a } = t;
|
|
712
712
|
let l = "";
|
|
713
713
|
for (let n = 0; n < t.THEME_COLOR_LIMIT; n++)
|
|
714
714
|
t["lineColor" + n] = t["lineColor" + n] || t["cScaleInv" + n], ue(t["lineColor" + n]) ? t["lineColor" + n] = pe(t["lineColor" + n], 20) : t["lineColor" + n] = fe(t["lineColor" + n], 20);
|
|
715
715
|
for (let n = 0; n < t.THEME_COLOR_LIMIT; n++) {
|
|
716
|
-
const d = "" + (
|
|
716
|
+
const d = "" + (a === "neo" ? Math.max(10 - (n - 1) * 2, 2) : 17 - 3 * n);
|
|
717
717
|
l += `
|
|
718
718
|
.section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
|
|
719
719
|
fill: ${t["cScale" + n]};
|
|
@@ -759,20 +759,20 @@ var be = Q, Se = 12, D = {
|
|
|
759
759
|
`;
|
|
760
760
|
}
|
|
761
761
|
return l;
|
|
762
|
-
}, "genSections"), ve = /* @__PURE__ */ h((t, e,
|
|
762
|
+
}, "genSections"), ve = /* @__PURE__ */ h((t, e, a) => {
|
|
763
763
|
let l = "";
|
|
764
764
|
for (let n = 0; n < t; n++)
|
|
765
765
|
l += `
|
|
766
766
|
[data-look="neo"].mindmap-node.section-${n - 1} rect, [data-look="neo"].mindmap-node.section-${n - 1} path, [data-look="neo"].mindmap-node.section-${n - 1} circle, [data-look="neo"].mindmap-node.section-${n - 1} polygon {
|
|
767
767
|
stroke: url(${e}-gradient);
|
|
768
|
-
fill: ${
|
|
768
|
+
fill: ${a};
|
|
769
769
|
}
|
|
770
770
|
.section-${n - 1} line {
|
|
771
771
|
stroke-width: 0;
|
|
772
772
|
}`;
|
|
773
773
|
return l;
|
|
774
774
|
}, "genGradient"), Te = /* @__PURE__ */ h((t) => {
|
|
775
|
-
const { theme: e } = t,
|
|
775
|
+
const { theme: e } = t, a = t.svgId, l = t.dropShadow ? t.dropShadow.replace("url(#drop-shadow)", `url(${a}-drop-shadow)`) : "none";
|
|
776
776
|
return `
|
|
777
777
|
.edge {
|
|
778
778
|
stroke-width: 3;
|
|
@@ -812,7 +812,7 @@ var be = Q, Se = 12, D = {
|
|
|
812
812
|
[data-look="neo"].mindmap-node.section-root .text-inner-tspan {
|
|
813
813
|
fill: ${e?.includes("redux") ? t.nodeBorder : t["cScaleLabel" + (e === "neutral" ? 1 : 0)]};
|
|
814
814
|
}
|
|
815
|
-
${t.useGradient &&
|
|
815
|
+
${t.useGradient && a && t.mainBkg ? ve(t.THEME_COLOR_LIMIT, a, t.mainBkg) : ""}
|
|
816
816
|
`;
|
|
817
817
|
}, "getStyles"), Oe = Te, Re = {
|
|
818
818
|
get db() {
|
package/dist/{mindmap-definition-LN4V7U3C-CB606E3L.cjs → mindmap-definition-LN4V7U3C-DnbSfqWP.cjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("./chunk-XXDRQBXY-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("./chunk-XXDRQBXY-BgeRIUG1.cjs"),se=require("./chunk-VR4S4FIN-Sx71KwIQ.cjs"),s=require("./mermaid.core-CRP55Hm1.cjs"),E=[];for(let t=0;t<256;++t)E.push((t+256).toString(16).slice(1));function re(t,e=0){return(E[t[e+0]]+E[t[e+1]]+E[t[e+2]]+E[t[e+3]]+"-"+E[t[e+4]]+E[t[e+5]]+"-"+E[t[e+6]]+E[t[e+7]]+"-"+E[t[e+8]]+E[t[e+9]]+"-"+E[t[e+10]]+E[t[e+11]]+E[t[e+12]]+E[t[e+13]]+E[t[e+14]]+E[t[e+15]]).toLowerCase()}const ae=new Uint8Array(16);function oe(){return crypto.getRandomValues(ae)}function ce(t,e,c){return crypto.randomUUID?crypto.randomUUID():le(t)}function le(t,e,c){t=t||{};const h=t.random??t.rng?.()??oe();if(h.length<16)throw new Error("Random bytes length must be >= 16");return h[6]=h[6]&15|64,h[8]=h[8]&63|128,re(h)}var H=(function(){var t=s.__name(function(L,r,i,o){for(i=i||{},o=L.length;o--;i[L[o]]=r);return i},"o"),e=[1,4],c=[1,13],h=[1,12],n=[1,15],d=[1,16],f=[1,20],y=[1,19],_=[6,7,8],k=[1,26],v=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],X=[1,33],W=[1,34],A=[1,6,7,11,13,15,16,19,22],V={trace:s.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:s.__name(function(r,i,o,l,p,a,$){var u=a.length-1;switch(p){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",a[u].id),l.addNode(a[u-1].length,a[u].id,a[u].descr,a[u].type);break;case 16:l.getLogger().trace("Icon: ",a[u]),l.decorateNode({icon:a[u]});break;case 17:case 21:l.decorateNode({class:a[u]});break;case 18:l.getLogger().trace("SPACELIST");break;case 19:l.getLogger().trace("Node: ",a[u].id),l.addNode(0,a[u].id,a[u].descr,a[u].type);break;case 20:l.decorateNode({icon:a[u]});break;case 25:l.getLogger().trace("node found ..",a[u-2]),this.$={id:a[u-1],descr:a[u-1],type:l.getType(a[u-2],a[u])};break;case 26:this.$={id:a[u],descr:a[u],type:l.nodeType.DEFAULT};break;case 27:l.getLogger().trace("node found ..",a[u-3]),this.$={id:a[u-3],descr:a[u-1],type:l.getType(a[u-2],a[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:c,7:[1,10],9:9,12:11,13:h,14:14,15:n,16:d,17:17,18:18,19:f,22:y},t(_,[2,3]),{1:[2,2]},t(_,[2,4]),t(_,[2,5]),{1:[2,6],6:c,12:21,13:h,14:14,15:n,16:d,17:17,18:18,19:f,22:y},{6:c,9:22,12:11,13:h,14:14,15:n,16:d,17:17,18:18,19:f,22:y},{6:k,7:v,10:23,11:w},t(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:y}),t(g,[2,18]),t(g,[2,19]),t(g,[2,20]),t(g,[2,21]),t(g,[2,23]),t(g,[2,24]),t(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:k,7:v,10:32,11:w},{1:[2,7],6:c,12:21,13:h,14:14,15:n,16:d,17:17,18:18,19:f,22:y},t(R,[2,14],{7:X,11:W}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(g,[2,15]),t(g,[2,16]),t(g,[2,17]),{20:[1,35]},{21:[1,36]},t(R,[2,13],{7:X,11:W}),t(A,[2,11]),t(A,[2,12]),{21:[1,37]},t(g,[2,25]),t(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:s.__name(function(r,i){if(i.recoverable)this.trace(r);else{var o=new Error(r);throw o.hash=i,o}},"parseError"),parse:s.__name(function(r){var i=this,o=[0],l=[],p=[null],a=[],$=this.table,u="",P=0,Y=0,Z=2,q=1,ee=a.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(T.yy[F]=this.yy[F]);m.setInput(r,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var G=m.yylloc;a.push(G);var te=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ne(S){o.length=o.length-2*S,p.length=p.length-S,a.length=a.length-S}s.__name(ne,"popStack");function Q(){var S;return S=l.pop()||m.lex()||q,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=i.symbols_[S]||S),S}s.__name(Q,"lex");for(var b,C,x,j,O={},M,N,J,U;;){if(C=o[o.length-1],this.defaultActions[C]?x=this.defaultActions[C]:((b===null||typeof b>"u")&&(b=Q()),x=$[C]&&$[C][b]),typeof x>"u"||!x.length||!x[0]){var z="";U=[];for(M in $[C])this.terminals_[M]&&M>Z&&U.push("'"+this.terminals_[M]+"'");m.showPosition?z="Parse error on line "+(P+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
|
-
Expecting `+U.join(", ")+", got '"+(this.terminals_[b]||b)+"'":
|
|
3
|
+
Expecting `+U.join(", ")+", got '"+(this.terminals_[b]||b)+"'":z="Parse error on line "+(P+1)+": Unexpected "+(b==q?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(z,{text:m.match,token:this.terminals_[b]||b,line:m.yylineno,loc:G,expected:U})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(x[0]){case 1:o.push(b),p.push(m.yytext),a.push(m.yylloc),o.push(x[1]),b=null,Y=m.yyleng,u=m.yytext,P=m.yylineno,G=m.yylloc;break;case 2:if(N=this.productions_[x[1]][1],O.$=p[p.length-N],O._$={first_line:a[a.length-(N||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(N||1)].first_column,last_column:a[a.length-1].last_column},te&&(O._$.range=[a[a.length-(N||1)].range[0],a[a.length-1].range[1]]),j=this.performAction.apply(O,[u,Y,P,T.yy,x[1],p,a].concat(ee)),typeof j<"u")return j;N&&(o=o.slice(0,-1*N*2),p=p.slice(0,-1*N),a=a.slice(0,-1*N)),o.push(this.productions_[x[1]][0]),p.push(O.$),a.push(O._$),J=$[o[o.length-2]][o[o.length-1]],o.push(J);break;case 3:return!0}}return!0},"parse")},K=(function(){var L={EOF:1,parseError:s.__name(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:s.__name(function(r,i){return this.yy=i||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var i=r.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s.__name(function(r){var i=r.length,o=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var r=this.pastInput(),i=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
5
|
`+i+"^"},"showPosition"),test_match:s.__name(function(r,i){var o,l,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),l=r[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],o=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var a in p)this[a]=p[a];return!1}return!1},"test_match"),next:s.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,i,o,l;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),a=0;a<p.length;a++)if(o=this._input.match(this.rules[p[a]]),o&&(!i||o[0].length>i[0].length)){if(i=o,l=a,this.options.backtrack_lexer){if(r=this.test_match(o,p[a]),r!==!1)return r;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(r=this.test_match(i,p[l]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s.__name(function(){var i=this.next();return i||this.lex()},"lex"),begin:s.__name(function(i){this.conditionStack.push(i)},"begin"),popState:s.__name(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s.__name(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:s.__name(function(i){this.begin(i)},"pushState"),stateStackSize:s.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s.__name(function(i,o,l,p){switch(l){case 0:return i.getLogger().trace("Found comment",o.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:i.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return i.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:i.getLogger().trace("end icon"),this.popState();break;case 10:return i.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return i.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return i.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return i.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:i.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return i.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),i.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),i.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),i.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 30:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 35:return i.getLogger().trace("Long description:",o.yytext),20;case 36:return i.getLogger().trace("Long description:",o.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L})();V.lexer=K;function B(){this.yy={}}return s.__name(B,"Parser"),B.prototype=V,V.Parser=B,new B})();
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s.__name(function(){var i=this.next();return i||this.lex()},"lex"),begin:s.__name(function(i){this.conditionStack.push(i)},"begin"),popState:s.__name(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s.__name(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:s.__name(function(i){this.begin(i)},"pushState"),stateStackSize:s.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s.__name(function(i,o,l,p){switch(l){case 0:return i.getLogger().trace("Found comment",o.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:i.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return i.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:i.getLogger().trace("end icon"),this.popState();break;case 10:return i.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return i.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return i.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return i.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:i.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return i.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),i.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),i.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),i.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 30:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 35:return i.getLogger().trace("Long description:",o.yytext),20;case 36:return i.getLogger().trace("Long description:",o.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L})();V.lexer=K;function B(){this.yy={}}return s.__name(B,"Parser"),B.prototype=V,V.Parser=B,new B})();H.parser=H;var he=H,de=12,D={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},I,ge=(I=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=D,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let c=this.nodes.length-1;c>=0;c--)if(this.nodes[c].level<e)return this.nodes[c];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,c,h,n){s.log.info("addNode",e,c,h,n);let d=!1;this.nodes.length===0?(this.baseLevel=e,e=0,d=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,d=!1);const f=s.getConfig2();let y=f.mindmap?.padding??s.defaultConfig_default.mindmap.padding;switch(n){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:y*=2;break}const _={id:this.count++,nodeId:s.sanitizeText(c,f),level:e,descr:s.sanitizeText(h,f),type:n,children:[],width:f.mindmap?.maxNodeWidth??s.defaultConfig_default.mindmap.maxNodeWidth,padding:y,isRoot:d},k=this.getParent(e);if(k)k.children.push(_),this.nodes.push(_);else if(d)this.nodes.push(_);else throw new Error(`There can be only one root. No parent could be found for ("${_.descr}")`)}getType(e,c){switch(s.log.debug("In get type",e,c),e){case"[":return this.nodeType.RECT;case"(":return c===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,c){this.elements[e]=c}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const c=s.getConfig2(),h=this.nodes[this.nodes.length-1];e.icon&&(h.icon=s.sanitizeText(e.icon,c)),e.class&&(h.class=s.sanitizeText(e.class,c))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,c){if(e.level===0?e.section=void 0:e.section=c,e.children)for(const[h,n]of e.children.entries()){const d=e.level===0?h%(de-1):c;this.assignSections(n,d)}}flattenNodes(e,c){const h=s.getConfig2(),n=["mindmap-node"];e.isRoot===!0?n.push("section-root","section--1"):e.section!==void 0&&n.push(`section-${e.section}`),e.class&&n.push(e.class);const d=n.join(" "),f=s.__name(_=>{const v=(h.theme?.toLowerCase()??"").includes("redux");switch(_){case D.CIRCLE:return"mindmapCircle";case D.RECT:return"rect";case D.ROUNDED_RECT:return"rounded";case D.CLOUD:return"cloud";case D.BANG:return"bang";case D.HEXAGON:return"hexagon";case D.DEFAULT:return v?"rounded":"defaultMindmapNode";case D.NO_BORDER:default:return"rect"}},"getShapeFromType"),y={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:f(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:d,cssStyles:[],look:h.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(c.push(y),e.children)for(const _ of e.children)this.flattenNodes(_,c)}generateEdges(e,c){if(!e.children)return;const h=s.getConfig2();for(const n of e.children){let d="edge";n.section!==void 0&&(d+=` section-edge-${n.section}`);const f=e.level+1;d+=` edge-depth-${f}`;const y={id:`edge_${e.id}_${n.id}`,start:e.id.toString(),end:n.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:h.look,classes:d,depth:e.level,section:n.section};c.push(y),this.generateEdges(n,c)}}getData(){const e=this.getMindmap(),c=s.getConfig2(),n=s.getUserDefinedConfig().layout!==void 0,d=c;if(n||(d.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:d};s.log.debug("getData: mindmapRoot",e,c),this.assignSections(e);const f=[],y=[];this.flattenNodes(e,f),this.generateEdges(e,y),s.log.debug(`getData: processed ${f.length} nodes and ${y.length} edges`);const _=new Map;for(const k of f)_.set(k.id,{shape:k.shape,width:k.width,height:k.height,padding:k.padding});return{nodes:f,edges:y,config:d,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(_),type:"mindmap",diagramId:"mindmap-"+ce()}}getLogger(){return s.log}},s.__name(I,"MindmapDB"),I),ue=s.__name(async(t,e,c,h)=>{s.log.debug(`Rendering mindmap diagram
|
|
7
7
|
`+t);const n=h.db,d=n.getData(),f=ie.getDiagramElement(e,d.config.securityLevel);if(d.type=h.type,d.layoutAlgorithm=s.getRegisteredLayoutAlgorithm(d.config.layout,{fallback:"cose-bilkent"}),d.diagramId=e,!n.getMindmap())return;d.nodes.forEach(g=>{g.shape==="rounded"?(g.radius=15,g.taper=15,g.stroke="none",g.width=0,g.padding=15):g.shape==="circle"?g.padding=10:g.shape==="rect"?(g.width=0,g.padding=10):g.shape==="hexagon"&&(g.width=0,g.height=0)}),await s.render(d,f);const{themeVariables:_}=s.getConfig(),{useGradient:k,gradientStart:v,gradientStop:w}=_;if(k&&v&&w){const g=f.attr("id"),R=f.append("defs").append("linearGradient").attr("id",`${g}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");R.append("stop").attr("offset","0%").attr("stop-color",v).attr("stop-opacity",1),R.append("stop").attr("offset","100%").attr("stop-color",w).attr("stop-opacity",1)}se.setupViewPortForSVG(f,d.config.mindmap?.padding??s.defaultConfig_default.mindmap.padding,"mindmapDiagram",d.config.mindmap?.useMaxWidth??s.defaultConfig_default.mindmap.useMaxWidth)},"draw"),pe={draw:ue},fe=s.__name(t=>{const{theme:e,look:c}=t;let h="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],s.isDark(t["lineColor"+n])?t["lineColor"+n]=s.lighten(t["lineColor"+n],20):t["lineColor"+n]=s.darken(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const d=""+(c==="neo"?Math.max(10-(n-1)*2,2):17-3*n);h+=`
|
|
8
8
|
.section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
|
|
9
9
|
fill: ${t["cScale"+n]};
|