@jackuait/blok 0.9.0 → 0.10.0-beta.10
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/codemod/migrate-editorjs-to-blok.js +50 -2
- package/codemod/test.js +39 -6
- package/dist/blok.mjs +3 -3
- package/dist/chunks/_basePickBy-DISiGhsr.mjs +410 -0
- package/dist/chunks/_baseUniq-gAuHRtRF.mjs +1045 -0
- package/dist/chunks/_getTag-Aj56Wgor.mjs +26 -0
- package/dist/chunks/arc-D-pL2Ftf.mjs +80 -0
- package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +3 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-DS7mqjL2.mjs +4066 -0
- package/dist/chunks/array-BsrkCVSZ.mjs +6 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-BTtcn4NG.mjs +3259 -0
- package/dist/chunks/{blok-RJ3hyzDH.mjs → blok-Bg3-zpSu.mjs} +2192 -2156
- package/dist/chunks/c-C6JXJf5K.mjs +5 -0
- package/dist/chunks/c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs +2956 -0
- package/dist/chunks/ccount-C9Y7nqDe.mjs +10 -0
- package/dist/chunks/channel-Cln-eWE0.mjs +5 -0
- package/dist/chunks/chunk-2KRD3SAO-DkM7qh-k.mjs +20 -0
- package/dist/chunks/chunk-336JU56O-B17AtzlK.mjs +49 -0
- package/dist/chunks/chunk-426QAEUC-D6UAVUog.mjs +13 -0
- package/dist/chunks/chunk-4BX2VUAB-CgIkjF7Z.mjs +19 -0
- package/dist/chunks/chunk-4TB4RGXK-BUP4eON3.mjs +3250 -0
- package/dist/chunks/chunk-55IACEB6-zZ-IgaSt.mjs +8 -0
- package/dist/chunks/chunk-5FUZZQ4R-DsZnJYxM.mjs +3786 -0
- package/dist/chunks/chunk-5PVQY5BW-CORl9dnu.mjs +1692 -0
- package/dist/chunks/chunk-67CJDMHE-m0UKdcSH.mjs +20 -0
- package/dist/chunks/chunk-7N4EOEYR-DKNajFZd.mjs +29 -0
- package/dist/chunks/chunk-AA7GKIK3-BeLhNzKa.mjs +24 -0
- package/dist/chunks/chunk-BSJP7CBP-CJExmx8a.mjs +83 -0
- package/dist/chunks/chunk-CIAEETIT-CTikoJ19.mjs +20 -0
- package/dist/chunks/chunk-D6kmoKXy.mjs +20 -0
- package/dist/chunks/chunk-EDXVE4YY-DjInnnwb.mjs +26 -0
- package/dist/chunks/chunk-ENJZ2VHE-CIl5FRDA.mjs +566 -0
- package/dist/chunks/chunk-FMBD7UC4-DjV0W7UE.mjs +5 -0
- package/dist/chunks/chunk-FOC6F5B3-LmHCCWYY.mjs +20 -0
- package/dist/chunks/chunk-ICPOFSXX-BHZIN46A.mjs +3290 -0
- package/dist/chunks/chunk-K5T4RW27-BPZ6fFnW.mjs +16370 -0
- package/dist/chunks/chunk-KGLVRYIC-S1OQdW76.mjs +20 -0
- package/dist/chunks/chunk-LIHQZDEY-CjtyJlI6.mjs +55 -0
- package/dist/chunks/chunk-ORNJ4GCN-CdO0hAge.mjs +25 -0
- package/dist/chunks/chunk-OYMX7WX6-ApX8eV4o.mjs +2038 -0
- package/dist/chunks/chunk-QZHKN3VN-BGFuA6-k.mjs +12 -0
- package/dist/chunks/chunk-U2HBQHQK-B88ZUOTL.mjs +1875 -0
- package/dist/chunks/chunk-X2U36JSP-1VS5TyCr.mjs +68 -0
- package/dist/chunks/chunk-XPW4576I-BMupdrvo.mjs +1146 -0
- package/dist/chunks/chunk-YZCP3GAM-BQ7eEsm2.mjs +60 -0
- package/dist/chunks/chunk-ZZ45TVLE-D1xks9zd.mjs +33 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +30 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +30 -0
- package/dist/chunks/clone-Ckjt1LtE.mjs +8 -0
- package/dist/chunks/{constants-A3iVmQL8.mjs → constants-D7zjGD5W.mjs} +529 -530
- package/dist/chunks/core-Bm6DWt7D.mjs +4501 -0
- package/dist/chunks/cose-bilkent-S5V4N54A-Bpcs2jA_.mjs +2246 -0
- package/dist/chunks/cpp-BdjvAny0.mjs +16 -0
- package/dist/chunks/csharp-YHxeHpeH.mjs +3 -0
- package/dist/chunks/css-DdLevFaX.mjs +3 -0
- package/dist/chunks/cytoscape.esm-BvD8wo00.mjs +18108 -0
- package/dist/chunks/dagre-CGNbYTKq.mjs +1536 -0
- package/dist/chunks/dagre-KV5264BT-DUD9ikgN.mjs +298 -0
- package/dist/chunks/dart-DrPWqfcC.mjs +3 -0
- package/dist/chunks/default-qigT1Xpq.mjs +4 -0
- package/dist/chunks/defaultLocale-ChuSeAxU.mjs +201 -0
- package/dist/chunks/diagram-5BDNPKRD-CZGfTYEe.mjs +112 -0
- package/dist/chunks/diagram-G4DWMVQ6-CuS0-h95.mjs +546 -0
- package/dist/chunks/diagram-MMDJMWI5-C-AEApYz.mjs +234 -0
- package/dist/chunks/diagram-TYMM5635-CiwAJVMq.mjs +144 -0
- package/dist/chunks/dist-Ctq-pyfb.mjs +59 -0
- package/dist/chunks/dockerfile-C68ALcaN.mjs +3 -0
- package/dist/chunks/engine-javascript-CJpnSvzf.mjs +2373 -0
- package/dist/chunks/erDiagram-SMLLAGMA-DeH5yck2.mjs +1712 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs +4175 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-K-divBg_.mjs +3083 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +3 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-UytPZv72.mjs +792 -0
- package/dist/chunks/go-Fm5N96DN.mjs +3 -0
- package/dist/chunks/graphlib-Cye9EPNq.mjs +223 -0
- package/dist/chunks/graphql-BSnqmqgO.mjs +11 -0
- package/dist/chunks/html-BLNeZvnp.mjs +10 -0
- package/dist/chunks/{i18next-Ch0gVA3V.mjs → i18next-CXx5niYF.mjs} +1 -1
- package/dist/chunks/{i18next-loader-dH3UPF7S.mjs → i18next-loader-CwsYu0n6.mjs} +2 -2
- package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +3 -0
- package/dist/chunks/infoDiagram-42DDH7IO-DuYnDbF3.mjs +29 -0
- package/dist/chunks/init-C6T-mugb.mjs +15 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs +719 -0
- package/dist/chunks/java-83DWBpzu.mjs +5 -0
- package/dist/chunks/javascript-CBgeF1Xx.mjs +3 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-CD25C4_n.mjs +885 -0
- package/dist/chunks/json-BI17y-1H.mjs +3 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-CTCT6N_p.mjs +980 -0
- package/dist/chunks/katex-CmTPfM0f.mjs +22026 -0
- package/dist/chunks/kotlin-DjnvsrfO.mjs +3 -0
- package/dist/chunks/latex-24n3TcOR.mjs +5 -0
- package/dist/chunks/{lightweight-i18n-1rbaxIZW.mjs → lightweight-i18n-Cvv8CWh4.mjs} +69 -2
- package/dist/chunks/line-Dct5pMmw.mjs +34 -0
- package/dist/chunks/linear-BRCpMvtr.mjs +289 -0
- package/dist/chunks/lua-DV0fuZWx.mjs +5 -0
- package/dist/chunks/markdown-BqQYT45f.mjs +3 -0
- package/dist/chunks/mdast-util-math-BlK2Zu-1.mjs +151 -0
- package/dist/chunks/mermaid-parser.core-CA3DKkuk.mjs +57 -0
- package/dist/chunks/mermaid-vF0cEnZ0.mjs +3 -0
- package/dist/chunks/mermaid.core-CA8nc1sZ.mjs +989 -0
- package/dist/{messages-DaOnbI6d.mjs → chunks/messages-8IHf7ZP3.mjs} +68 -1
- package/dist/chunks/{messages-C9aKfCro.mjs → messages-A_MkXDlG.mjs} +68 -1
- package/dist/{messages-BLEVLZve.mjs → chunks/messages-B0vPBsWq.mjs} +68 -1
- package/dist/chunks/{messages-C0hQPZmh2.mjs → messages-B2N4fUi72.mjs} +68 -1
- package/dist/{messages-HNAtlVax.mjs → chunks/messages-B4UMuyjT.mjs} +73 -6
- package/dist/chunks/{messages-DRUkmDVZ.mjs → messages-B9kmbUWV.mjs} +68 -1
- package/dist/{messages-Dbsx9m5q2.mjs → chunks/messages-BA8Iv99Y2.mjs} +68 -1
- package/dist/chunks/{messages-Da-SOTFW.mjs → messages-BAsb5CgZ.mjs} +68 -1
- package/dist/{messages-D1P0QGLz2.mjs → chunks/messages-BDZA10kl2.mjs} +68 -1
- package/dist/chunks/{messages-ComLU2T32.mjs → messages-BE6lHKwf.mjs} +68 -1
- package/dist/chunks/{messages-gaxTO-87.mjs → messages-BQYvBqm2.mjs} +68 -1
- package/dist/chunks/{messages-BwKs-9DF.mjs → messages-BSghd0ez.mjs} +68 -1
- package/dist/{messages-BPRR6TMf.mjs → chunks/messages-BUVhHx0q2.mjs} +68 -1
- package/dist/{messages-B7jZvo-m.mjs → chunks/messages-BVjoM7P0.mjs} +68 -1
- package/dist/{messages-C-4z1-Dh.mjs → chunks/messages-BXM80fdr2.mjs} +68 -1
- package/dist/{messages-Bm0nvUuj2.mjs → chunks/messages-BYlSMRkd.mjs} +68 -1
- package/dist/chunks/{messages-DLPrj3Dh.mjs → messages-BYxLFj7y.mjs} +68 -1
- package/dist/{messages-BRcLIBCd2.mjs → chunks/messages-BeFqtIrc2.mjs} +68 -1
- package/dist/{messages-zHkURG6V2.mjs → chunks/messages-Bfnq1xv4.mjs} +68 -1
- package/dist/chunks/{messages-Z762-GLL.mjs → messages-BhzzNkN-.mjs} +68 -1
- package/dist/chunks/{messages-COJ0CbVV2.mjs → messages-BjadX8jR2.mjs} +68 -1
- package/dist/{messages-B2ZwD4n9.mjs → chunks/messages-Bp8qin1R.mjs} +68 -1
- package/dist/chunks/{messages-DdEWnfAR.mjs → messages-Bphq_Bt3.mjs} +71 -4
- package/dist/{messages-CUDbNJG5.mjs → chunks/messages-Bxvi1ebN.mjs} +68 -1
- package/dist/chunks/{messages-B0t2L3bi.mjs → messages-C0HvoMPb.mjs} +68 -1
- package/dist/{messages-D6qfWi6H2.mjs → chunks/messages-C3aX3q0H.mjs} +68 -1
- package/dist/chunks/{messages-v9NkxRcL.mjs → messages-C6Mpiacw.mjs} +68 -1
- package/dist/chunks/{messages-CqZ9vFyx.mjs → messages-C7VGpihw.mjs} +69 -2
- package/dist/chunks/{messages-Yj4Q1_uX2.mjs → messages-CKBhDGI3.mjs} +69 -2
- package/dist/chunks/{messages-DxtnwNPo.mjs → messages-COO5xmcA.mjs} +68 -1
- package/dist/{messages-CZTcgUzd.mjs → chunks/messages-CSJ_zb3a2.mjs} +68 -1
- package/dist/{messages-A8aZS7d_2.mjs → chunks/messages-CSL-6xfb2.mjs} +68 -1
- package/dist/{messages-CxruHsuD2.mjs → chunks/messages-CVdpweyf2.mjs} +69 -2
- package/dist/{messages-D2Mf9z2D.mjs → chunks/messages-Cdf0W9H02.mjs} +68 -1
- package/dist/chunks/{messages-DAbCNake2.mjs → messages-Ck81cQkn2.mjs} +68 -1
- package/dist/chunks/{messages-Dyku8Cut.mjs → messages-Cmf6NhSC.mjs} +68 -1
- package/dist/chunks/{messages-DQ6bFum9.mjs → messages-Cs81Z_Bh.mjs} +68 -1
- package/dist/chunks/{messages-cegxHurd2.mjs → messages-Cu-Wevxs2.mjs} +68 -1
- package/dist/{messages-D2HwpoUE.mjs → chunks/messages-D3zojZ94.mjs} +69 -2
- package/dist/{messages-BfTBVFd9.mjs → chunks/messages-D55HRx5O2.mjs} +68 -1
- package/dist/chunks/{messages-Dl03jd4b2.mjs → messages-D9N2MvQx2.mjs} +68 -1
- package/dist/{messages-DfXh-i9o.mjs → chunks/messages-DG-4DPmP.mjs} +68 -1
- package/dist/chunks/{messages-DmJf9laH2.mjs → messages-DGL1ySqb2.mjs} +68 -1
- package/dist/chunks/{messages-DfU4yvkL.mjs → messages-DJoNVjqP.mjs} +68 -1
- package/dist/{messages-Bsd4ruEY.mjs → chunks/messages-DMVXnAYj.mjs} +70 -3
- package/dist/{messages-3WhPEFd7.mjs → chunks/messages-DOuS1Qge.mjs} +68 -1
- package/dist/chunks/{messages-B1kDfIN82.mjs → messages-DWu1r4gc2.mjs} +68 -1
- package/dist/{messages-Dtih3ffa2.mjs → chunks/messages-DlLXpgWM2.mjs} +68 -1
- package/dist/chunks/{messages-DKNULJpc.mjs → messages-DlonA3wa.mjs} +69 -2
- package/dist/{messages-C5pBfa_W.mjs → chunks/messages-Dr0Ekmbz.mjs} +81 -14
- package/dist/{messages-Du62vI49.mjs → chunks/messages-DzTk8bJ5.mjs} +68 -1
- package/dist/{messages-DNAp0U4l2.mjs → chunks/messages-FWfsxpBz.mjs} +68 -1
- package/dist/{messages-B2YeJw8s2.mjs → chunks/messages-G416eyjY.mjs} +68 -1
- package/dist/chunks/{messages-C5-aaU2b.mjs → messages-Je5YvxiY.mjs} +68 -1
- package/dist/chunks/{messages-DHHZUf_H2.mjs → messages-JyvWu4rf2.mjs} +68 -1
- package/dist/chunks/{messages-D_6vPBzT.mjs → messages-KdawW5Na.mjs} +68 -1
- package/dist/chunks/{messages-DnuhgHG0.mjs → messages-MxpWO1db.mjs} +68 -1
- package/dist/{messages-DT4rHATO2.mjs → chunks/messages-NEqrrYvE2.mjs} +68 -1
- package/dist/chunks/{messages-DeSSxLsh.mjs → messages-RInp1ytX.mjs} +68 -1
- package/dist/{messages-DfEPVRdJ.mjs → chunks/messages-TRUuyiFB.mjs} +68 -1
- package/dist/chunks/{messages--eH7tTJV2.mjs → messages-aZcy0JQq2.mjs} +68 -1
- package/dist/{messages-O6z1uabG.mjs → chunks/messages-iS34FHFB.mjs} +68 -1
- package/dist/{messages-BE0DjTEC.mjs → chunks/messages-ihCjSFJI2.mjs} +68 -1
- package/dist/chunks/{messages-_5Pg5fKy2.mjs → messages-jfVpL9c-2.mjs} +68 -1
- package/dist/chunks/{messages-CaRSYuhO.mjs → messages-p1mbe__S.mjs} +68 -1
- package/dist/chunks/{messages-BGssMBWM2.mjs → messages-rCd0Rrw6.mjs} +69 -2
- package/dist/{messages-COgvIEeW.mjs → chunks/messages-xuqyb6Ff2.mjs} +68 -1
- package/dist/chunks/micromark-extension-math-BbkUb36G.mjs +169 -0
- package/dist/chunks/micromark-factory-space-y4SDWQKm.mjs +36 -0
- package/dist/chunks/mindmap-definition-QFDTVHPH-hNnyBkEP.mjs +1013 -0
- package/dist/chunks/{notifier-Butv4Dvo.mjs → notifier-CuvTt9pe.mjs} +1 -1
- package/dist/chunks/objectWithoutProperties-D0XxKB4n.mjs +23 -0
- package/dist/chunks/one-light-DmNO_Y4X.mjs +4 -0
- package/dist/chunks/ordinal-B-kolV-i.mjs +65 -0
- package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +3 -0
- package/dist/chunks/path-rIMjg_tH.mjs +85 -0
- package/dist/chunks/php-DmXKyPwJ.mjs +18 -0
- package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +3 -0
- package/dist/chunks/pieDiagram-DEJITSTG-Gw-fsc6U.mjs +179 -0
- package/dist/chunks/python-DfwfY9t5.mjs +3 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs +1960 -0
- package/dist/chunks/r-BD2D7qEW.mjs +5 -0
- package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +3 -0
- package/dist/chunks/requirementDiagram-MS252O5E-DjWKB42c.mjs +2224 -0
- package/dist/chunks/rough.esm-cmMIcj7N.mjs +1353 -0
- package/dist/chunks/ruby-DdOo03Kg.mjs +33 -0
- package/dist/chunks/rust-DEDueB5R.mjs +3 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-BIN2evSB.mjs +909 -0
- package/dist/chunks/scala-CsjqvxE4.mjs +3 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-CQz2lMoS.mjs +4181 -0
- package/dist/chunks/shellscript-Bh5zEpnQ.mjs +3 -0
- package/dist/chunks/sql-D9CrOi1i.mjs +3 -0
- package/dist/chunks/src-DVJl6f6s.mjs +2149 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-BIBFsF65.mjs +218 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +28 -0
- package/dist/chunks/swift-Dpyt0s2c.mjs +3 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs +1084 -0
- package/dist/chunks/{tools-nT6zA9QL.mjs → tools-CrRhWn8L.mjs} +3043 -1303
- package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +3 -0
- package/dist/chunks/typescript-DO5cd4m8.mjs +5 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-B0DmLQqe.mjs +1876 -0
- package/dist/chunks/vitesse-dark-CcorSKT2.mjs +4 -0
- package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +3 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-CzoKesUw.mjs +594 -0
- package/dist/chunks/xml-g8kXXALs.mjs +5 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-CixwR8r2.mjs +2017 -0
- package/dist/chunks/yaml-CrNNZyLb.mjs +3 -0
- package/dist/cli.mjs +1 -1
- package/dist/full.mjs +14 -14
- package/dist/locales.mjs +135 -68
- package/dist/markdown.mjs +3954 -0
- package/dist/{messages-D_CUdqU12.mjs → messages-5jvKxQNu2.mjs} +68 -1
- package/dist/{chunks/messages-CFfpHyTU.mjs → messages-7QD-X6XT2.mjs} +68 -1
- package/dist/{messages-CdX1odk_2.mjs → messages-96iaAUds2.mjs} +68 -1
- package/dist/{messages-C8ca-jEa.mjs → messages-B19o-Teb.mjs} +69 -2
- package/dist/{messages-I03yFhup.mjs → messages-B1ZUQagA.mjs} +68 -1
- package/dist/{chunks/messages-BSw88lIo2.mjs → messages-B7ieAJBd2.mjs} +68 -1
- package/dist/{messages-sNSXCkeB.mjs → messages-BECMxmfX.mjs} +68 -1
- package/dist/{messages-DgGZsxBB.mjs → messages-BIHc0KHY.mjs} +68 -1
- package/dist/{messages-yZj20Fvf.mjs → messages-BIoeoik5.mjs} +68 -1
- package/dist/{chunks/messages-D8JFu42v.mjs → messages-BJeGJksD.mjs} +68 -1
- package/dist/{messages-BSLErTnW2.mjs → messages-BRZX964b2.mjs} +68 -1
- package/dist/{chunks/messages-BW8arxf72.mjs → messages-BTQPpoM42.mjs} +68 -1
- package/dist/{messages-C52AiyVV.mjs → messages-BYNcD6uR.mjs} +68 -1
- package/dist/{messages-BxJv0qBn2.mjs → messages-BYmmMDrN2.mjs} +68 -1
- package/dist/{messages-CoCy2JIP.mjs → messages-BbYq1pk-.mjs} +68 -1
- package/dist/{messages-Cnz_SHE32.mjs → messages-BiUGXvYr2.mjs} +68 -1
- package/dist/{chunks/messages-Dl6SVT1Z.mjs → messages-BiiongNz2.mjs} +68 -1
- package/dist/{chunks/messages-C912bk5I.mjs → messages-Bm0Feca1.mjs} +69 -2
- package/dist/{chunks/messages-CTuCPqpJ.mjs → messages-BmAn22OX.mjs} +68 -1
- package/dist/{messages-DdiPWkV8.mjs → messages-Bq3F2Tp_.mjs} +68 -1
- package/dist/{chunks/messages-DJxXZi1D2.mjs → messages-BsycN_JI2.mjs} +68 -1
- package/dist/{chunks/messages-OdEuBvgf.mjs → messages-BwHs4cm1.mjs} +70 -3
- package/dist/{chunks/messages-C4ZAJzBh.mjs → messages-CJTy6JZt.mjs} +68 -1
- package/dist/{chunks/messages-D2OZ9dbO.mjs → messages-CR_L_UtK.mjs} +68 -1
- package/dist/{messages-ypuLZyw12.mjs → messages-CSUHBs4c2.mjs} +68 -1
- package/dist/{chunks/messages-BkES2MDr2.mjs → messages-CWIXvnDf2.mjs} +68 -1
- package/dist/{messages-Cpeko5kB.mjs → messages-CcF4y-E4.mjs} +68 -1
- package/dist/{messages-BmnC-s4X.mjs → messages-Ce6KVEbT.mjs} +68 -1
- package/dist/{messages-DTNfG4ZH.mjs → messages-Ci0KqX-J.mjs} +71 -4
- package/dist/{chunks/messages-CGh56r-H2.mjs → messages-CjbnogEC.mjs} +68 -1
- package/dist/{messages-B3jq5Hpa.mjs → messages-CmB406HW.mjs} +69 -2
- package/dist/{chunks/messages-BsZz1Hnn2.mjs → messages-CqXtJTpU.mjs} +68 -1
- package/dist/{messages-DL000FUf2.mjs → messages-D0aw5_0k2.mjs} +68 -1
- package/dist/{chunks/messages-Df2RYuup2.mjs → messages-D8FQWulF2.mjs} +68 -1
- package/dist/{messages-CxHn7cs2.mjs → messages-DBiVgUs2.mjs} +68 -1
- package/dist/{chunks/messages-Dsapm4K9.mjs → messages-DIJlIqlQ2.mjs} +68 -1
- package/dist/{chunks/messages-517llQmh.mjs → messages-DLX_iBDJ.mjs} +68 -1
- package/dist/{chunks/messages-BG8Nq35G.mjs → messages-DLlc9QPw.mjs} +68 -1
- package/dist/{messages-cokJPuUp2.mjs → messages-DMr62KiO2.mjs} +68 -1
- package/dist/{chunks/messages-Dkp-Eyu02.mjs → messages-DPA-mMWC2.mjs} +68 -1
- package/dist/{chunks/messages-7uCUVFea.mjs → messages-DTh9a8mR.mjs} +68 -1
- package/dist/{messages-VBFioL2M.mjs → messages-DY4IqlhY.mjs} +68 -1
- package/dist/{chunks/messages-C4X0xP3h.mjs → messages-DYTTu0O12.mjs} +68 -1
- package/dist/{messages-diSPQ2Da2.mjs → messages-DbySKTKt2.mjs} +69 -2
- package/dist/{chunks/messages-BGE43_6M.mjs → messages-Ddnj2iTG2.mjs} +68 -1
- package/dist/{chunks/messages-BtUqUzMG2.mjs → messages-DkLU_rWm.mjs} +68 -1
- package/dist/{messages-DSX2HaeN2.mjs → messages-Dl3Sv6Rq2.mjs} +68 -1
- package/dist/{chunks/messages-BDvpl6Ox.mjs → messages-Dl5Y2-Ia.mjs} +81 -14
- package/dist/{chunks/messages-C7plNvNE2.mjs → messages-DnG0ef8t2.mjs} +69 -2
- package/dist/{chunks/messages-qS8tM3Dk.mjs → messages-DnGJD4TL.mjs} +68 -1
- package/dist/{messages-Ct468oX22.mjs → messages-Dnp9N6RU2.mjs} +68 -1
- package/dist/{chunks/messages-CjIA--kO.mjs → messages-Dvn35ksS.mjs} +68 -1
- package/dist/{messages-BRxNqmJ8.mjs → messages-Dw__BcTj.mjs} +68 -1
- package/dist/{chunks/messages-0zhE8A9X.mjs → messages-Dy-Y_nEI.mjs} +68 -1
- package/dist/{chunks/messages-CCH4OETw2.mjs → messages-E_ZuzGDt.mjs} +68 -1
- package/dist/{chunks/messages-DZzoT0T_.mjs → messages-F2xRoY1w.mjs} +68 -1
- package/dist/{chunks/messages-zGdqNZbH.mjs → messages-Smt4GBbj.mjs} +73 -6
- package/dist/{messages-CvIxHHp92.mjs → messages-aMXpHt5X2.mjs} +68 -1
- package/dist/{messages-C8JVJUp12.mjs → messages-aWZH50vu2.mjs} +68 -1
- package/dist/{messages-Phrqr7a6.mjs → messages-dv19AkyJ.mjs} +68 -1
- package/dist/{chunks/messages-DngM4hda2.mjs → messages-hWwSRF-2.mjs} +68 -1
- package/dist/{messages-DpGo_Da5.mjs → messages-j7o5rT9s.mjs} +68 -1
- package/dist/{messages-C6WJx6Z0.mjs → messages-nUVjeh7K.mjs} +68 -1
- package/dist/{messages-CbVilNPE.mjs → messages-nlhESX9t.mjs} +68 -1
- package/dist/{messages-C6o0FVy02.mjs → messages-rk-A1Wa42.mjs} +69 -2
- package/dist/{messages-D4mCIODv.mjs → messages-xh2eOLvs.mjs} +68 -1
- package/dist/{chunks/messages-Ct9UUOrl2.mjs → messages-ynAe7ewZ.mjs} +68 -1
- package/dist/react.mjs +26 -25
- package/dist/tools.mjs +3 -3
- package/dist/vendor.LICENSE.txt +5404 -80
- package/package.json +16 -1
- package/src/components/blocks.ts +26 -1
- package/src/components/constants/data-attributes.ts +2 -2
- package/src/components/i18n/locales/am/messages.json +68 -1
- package/src/components/i18n/locales/ar/messages.json +68 -1
- package/src/components/i18n/locales/az/messages.json +68 -1
- package/src/components/i18n/locales/bg/messages.json +68 -1
- package/src/components/i18n/locales/bn/messages.json +68 -1
- package/src/components/i18n/locales/bs/messages.json +69 -2
- package/src/components/i18n/locales/cs/messages.json +70 -3
- package/src/components/i18n/locales/da/messages.json +71 -4
- package/src/components/i18n/locales/de/messages.json +73 -6
- package/src/components/i18n/locales/dv/messages.json +68 -1
- package/src/components/i18n/locales/el/messages.json +68 -1
- package/src/components/i18n/locales/en/messages.json +68 -1
- package/src/components/i18n/locales/es/messages.json +68 -1
- package/src/components/i18n/locales/et/messages.json +69 -2
- package/src/components/i18n/locales/fa/messages.json +68 -1
- package/src/components/i18n/locales/fi/messages.json +68 -1
- package/src/components/i18n/locales/fil/messages.json +81 -14
- package/src/components/i18n/locales/fr/messages.json +68 -1
- package/src/components/i18n/locales/gu/messages.json +68 -1
- package/src/components/i18n/locales/he/messages.json +68 -1
- package/src/components/i18n/locales/hi/messages.json +68 -1
- package/src/components/i18n/locales/hr/messages.json +69 -2
- package/src/components/i18n/locales/hu/messages.json +68 -1
- package/src/components/i18n/locales/hy/messages.json +68 -1
- package/src/components/i18n/locales/id/messages.json +68 -1
- package/src/components/i18n/locales/it/messages.json +68 -1
- package/src/components/i18n/locales/ja/messages.json +68 -1
- package/src/components/i18n/locales/ka/messages.json +68 -1
- package/src/components/i18n/locales/km/messages.json +68 -1
- package/src/components/i18n/locales/kn/messages.json +68 -1
- package/src/components/i18n/locales/ko/messages.json +68 -1
- package/src/components/i18n/locales/ku/messages.json +68 -1
- package/src/components/i18n/locales/lo/messages.json +68 -1
- package/src/components/i18n/locales/lt/messages.json +68 -1
- package/src/components/i18n/locales/lv/messages.json +68 -1
- package/src/components/i18n/locales/mk/messages.json +68 -1
- package/src/components/i18n/locales/ml/messages.json +68 -1
- package/src/components/i18n/locales/mn/messages.json +68 -1
- package/src/components/i18n/locales/mr/messages.json +68 -1
- package/src/components/i18n/locales/ms/messages.json +69 -2
- package/src/components/i18n/locales/my/messages.json +68 -1
- package/src/components/i18n/locales/ne/messages.json +68 -1
- package/src/components/i18n/locales/nl/messages.json +68 -1
- package/src/components/i18n/locales/no/messages.json +68 -1
- package/src/components/i18n/locales/pa/messages.json +68 -1
- package/src/components/i18n/locales/pl/messages.json +68 -1
- package/src/components/i18n/locales/ps/messages.json +68 -1
- package/src/components/i18n/locales/pt/messages.json +68 -1
- package/src/components/i18n/locales/ro/messages.json +68 -1
- package/src/components/i18n/locales/ru/messages.json +68 -1
- package/src/components/i18n/locales/sd/messages.json +68 -1
- package/src/components/i18n/locales/si/messages.json +68 -1
- package/src/components/i18n/locales/sk/messages.json +69 -2
- package/src/components/i18n/locales/sl/messages.json +69 -2
- package/src/components/i18n/locales/sq/messages.json +68 -1
- package/src/components/i18n/locales/sr/messages.json +68 -1
- package/src/components/i18n/locales/sv/messages.json +68 -1
- package/src/components/i18n/locales/sw/messages.json +68 -1
- package/src/components/i18n/locales/ta/messages.json +68 -1
- package/src/components/i18n/locales/te/messages.json +68 -1
- package/src/components/i18n/locales/th/messages.json +68 -1
- package/src/components/i18n/locales/tr/messages.json +68 -1
- package/src/components/i18n/locales/ug/messages.json +68 -1
- package/src/components/i18n/locales/uk/messages.json +68 -1
- package/src/components/i18n/locales/ur/messages.json +68 -1
- package/src/components/i18n/locales/vi/messages.json +68 -1
- package/src/components/i18n/locales/yi/messages.json +68 -1
- package/src/components/i18n/locales/zh/messages.json +68 -1
- package/src/components/icons/index.ts +78 -0
- package/src/components/inline-tools/inline-tool-code.ts +399 -0
- package/src/components/modules/api/blocks.ts +17 -0
- package/src/components/modules/api/ui.ts +0 -3
- package/src/components/modules/blockEvents/composers/blockSelectionKeys.ts +20 -3
- package/src/components/modules/paste/handlers/html-handler.ts +13 -10
- package/src/components/modules/paste/handlers/index.ts +1 -0
- package/src/components/modules/paste/index.ts +6 -0
- package/src/components/modules/renderer.ts +17 -0
- package/src/components/modules/ui.ts +1 -13
- package/src/components/ui/toolbox.ts +9 -0
- package/src/components/utils/caret/boundaries.ts +15 -4
- package/src/components/utils/popover/popover-desktop.ts +11 -0
- package/src/markdown/index.ts +63 -0
- package/src/markdown/markdown-handler.ts +110 -0
- package/src/markdown/mdast-to-blocks.ts +418 -0
- package/src/markdown/phrasing-to-html.ts +60 -0
- package/src/markdown/types.ts +42 -0
- package/src/stories/EditorModes.stories.ts +0 -60
- package/src/styles/main.css +57 -2
- package/src/tools/callout/constants.ts +2 -1
- package/src/tools/callout/emoji-picker/index.ts +41 -2
- package/src/tools/callout/index.ts +25 -0
- package/src/tools/code/code-keyboard.ts +142 -0
- package/src/tools/code/constants.ts +96 -0
- package/src/tools/code/dom-builder.ts +181 -0
- package/src/tools/code/highlight-applier.ts +229 -0
- package/src/tools/code/index.ts +462 -0
- package/src/tools/code/katex-loader.ts +50 -0
- package/src/tools/code/language-picker.ts +241 -0
- package/src/tools/code/mermaid-loader.ts +45 -0
- package/src/tools/code/shiki-loader.ts +135 -0
- package/src/tools/divider/index.ts +11 -2
- package/src/tools/header/index.ts +2 -0
- package/src/tools/index.ts +6 -0
- package/src/tools/list/block-operations.ts +3 -1
- package/src/tools/list/depth-validator.ts +4 -7
- package/src/tools/list/dom-builder.ts +5 -3
- package/src/tools/list/index.ts +21 -3
- package/src/tools/list/list-helpers.ts +9 -2
- package/src/tools/list/list-keyboard.ts +56 -14
- package/src/tools/list/list-lifecycle.ts +3 -1
- package/src/tools/list/marker-calculator.ts +37 -0
- package/src/tools/list/ordered-marker-manager.ts +4 -2
- package/src/tools/list/style-config.ts +3 -0
- package/src/tools/paragraph/index.ts +1 -0
- package/src/tools/quote/index.ts +229 -0
- package/src/tools/table/core/table-commands.ts +16 -0
- package/src/tools/table/core/table-controller.ts +29 -0
- package/src/tools/table/core/table-events.ts +17 -0
- package/src/tools/table/index.ts +220 -14
- package/src/tools/table/table-cell-blocks.ts +51 -6
- package/src/tools/table/table-cell-clipboard.ts +7 -2
- package/src/tools/table/table-cell-placement-picker.ts +133 -0
- package/src/tools/table/table-cell-selection.ts +174 -19
- package/src/tools/table/table-core.ts +321 -113
- package/src/tools/table/table-map.ts +279 -0
- package/src/tools/table/table-model.ts +901 -1
- package/src/tools/table/table-operations.ts +87 -44
- package/src/tools/table/table-resize.ts +19 -17
- package/src/tools/table/table-row-col-drag.ts +24 -10
- package/src/tools/table/types.ts +24 -2
- package/src/tools/toggle/index.ts +1 -0
- package/types/configs/blok-config.d.ts +7 -0
- package/types/data-attributes.d.ts +0 -1
- package/types/markdown.d.ts +2 -0
- package/types/tools/callout.d.ts +16 -0
- package/types/tools/code.d.ts +13 -0
- package/types/tools/quote.d.ts +13 -0
- package/types/tools/tool-settings.d.ts +7 -0
- package/types/tools-entry.d.ts +7 -0
- /package/dist/chunks/{am-CHDDMHkd.mjs → am-BxlkYGsI.mjs} +0 -0
- /package/dist/chunks/{ar-DoqfNqut.mjs → ar-9vlpr9V8.mjs} +0 -0
- /package/dist/chunks/{az-C34P9iEa.mjs → az-ON63W_FP.mjs} +0 -0
- /package/dist/chunks/{bg-jroXLY8Y.mjs → bg-CtXWTP5w.mjs} +0 -0
- /package/dist/chunks/{bn-BRI-WqxY.mjs → bn-BERvhXM4.mjs} +0 -0
- /package/dist/chunks/{bs-CCGUpNHu.mjs → bs-CBg8NVPG.mjs} +0 -0
- /package/dist/chunks/{cs-D5qZOGuc.mjs → cs-DeQddxS7.mjs} +0 -0
- /package/dist/chunks/{da-DrJ7W37K.mjs → da-DyTo-ec_.mjs} +0 -0
- /package/dist/chunks/{de-BW6-kp2c.mjs → de-Cu7545m1.mjs} +0 -0
- /package/dist/chunks/{el-C-Vc_Otu.mjs → el-oiubLRBq.mjs} +0 -0
- /package/dist/chunks/{es-B6fI5K9i.mjs → es-DZUC6Klv.mjs} +0 -0
- /package/dist/chunks/{et-BhVlZ-Yz.mjs → et-CDeklAog.mjs} +0 -0
- /package/dist/chunks/{fa-D55Ijdqa.mjs → fa-Cafp7_Li.mjs} +0 -0
- /package/dist/chunks/{fi-jNLjhKUQ.mjs → fi-BD_V_aVW.mjs} +0 -0
- /package/dist/chunks/{fil-DYd0T5aX.mjs → fil-Crsfbtx4.mjs} +0 -0
- /package/dist/chunks/{fr-yxy5xWw_.mjs → fr-BGGc04Zv.mjs} +0 -0
- /package/dist/chunks/{gu-CcY_LJe7.mjs → gu-Vg_BgCTp.mjs} +0 -0
- /package/dist/chunks/{he-DL9s7wNw.mjs → he-DTY9chlZ.mjs} +0 -0
- /package/dist/chunks/{hi-C8eGXgw5.mjs → hi-DChMXk0x.mjs} +0 -0
- /package/dist/chunks/{hr-DLpybOhU.mjs → hr-BWVgNU8k.mjs} +0 -0
- /package/dist/chunks/{hu-BkT0gT00.mjs → hu-B37awHXA.mjs} +0 -0
- /package/dist/chunks/{hy-CVFDCp2S.mjs → hy-DGC_GDHh.mjs} +0 -0
- /package/dist/chunks/{id-0P4W9Az0.mjs → id-V7cw6La2.mjs} +0 -0
- /package/dist/chunks/{it-mLY6_uoW.mjs → it-DrTGP8Rn.mjs} +0 -0
- /package/dist/chunks/{ja-7RkeRNWG.mjs → ja-DS4pbJEG.mjs} +0 -0
- /package/dist/chunks/{ka-C7Lx-Qsh.mjs → ka-BueyosRh.mjs} +0 -0
- /package/dist/chunks/{km-Q8udaraH.mjs → km-B0K891yW.mjs} +0 -0
- /package/dist/chunks/{kn-BiETM-iq.mjs → kn-BQ__skg8.mjs} +0 -0
- /package/dist/chunks/{ko-tiB80pF1.mjs → ko-BuPxi_7e.mjs} +0 -0
- /package/dist/chunks/{ku-CY-OABkR.mjs → ku-nQjwPRw2.mjs} +0 -0
- /package/dist/chunks/{lo-CTBhEnyk.mjs → lo-K5NVFoq1.mjs} +0 -0
- /package/dist/chunks/{lt-BHKHEtqK.mjs → lt-D3xD6Eb2.mjs} +0 -0
- /package/dist/chunks/{lv-DWxgtfUg.mjs → lv-DH13mzZj.mjs} +0 -0
- /package/dist/chunks/{mk-BjookGdx.mjs → mk-Bb48BcDA.mjs} +0 -0
- /package/dist/chunks/{ml-L-NnZcp9.mjs → ml-BHPEj1kD.mjs} +0 -0
- /package/dist/chunks/{mn-OMWi7Hl_.mjs → mn-BNGzpdI6.mjs} +0 -0
- /package/dist/chunks/{mr-B6JPzITo.mjs → mr-D5PgU-cH.mjs} +0 -0
- /package/dist/chunks/{ms-CG3S-sPB.mjs → ms-DPkxqKz5.mjs} +0 -0
- /package/dist/chunks/{my-BLAmGfhT.mjs → my-DZGcyfxy.mjs} +0 -0
- /package/dist/chunks/{native-BPcABu9z.mjs → native-D0cfLXsM.mjs} +0 -0
- /package/dist/chunks/{ne-D1JHLfYw.mjs → ne-BU_Wh4Wv.mjs} +0 -0
- /package/dist/chunks/{nl-Ca7Q8FnY.mjs → nl-DtAPk1mK.mjs} +0 -0
- /package/dist/chunks/{no-Coxcohcz.mjs → no-CdW3n3BY.mjs} +0 -0
- /package/dist/chunks/{objectSpread2-CyPxu8-u.mjs → objectSpread2-CWwMYL_U.mjs} +0 -0
- /package/dist/chunks/{pa-CCaXqpaI.mjs → pa-BacCHz87.mjs} +0 -0
- /package/dist/chunks/{pl-Cl_fAZ84.mjs → pl-8zBJbmhZ.mjs} +0 -0
- /package/dist/chunks/{ps-WD5qGAWy.mjs → ps-c6nGXD-W.mjs} +0 -0
- /package/dist/chunks/{pt-C4zvLfvq.mjs → pt-B5yR8Qhr.mjs} +0 -0
- /package/dist/chunks/{ro-DbefHcmM.mjs → ro-Nscylsqb.mjs} +0 -0
- /package/dist/chunks/{ru-uU1J14jd.mjs → ru-DxERQkVJ.mjs} +0 -0
- /package/dist/chunks/{sd-DKu368Ip.mjs → sd-5z-QY3q9.mjs} +0 -0
- /package/dist/chunks/{si-BsJCiPkZ.mjs → si-DTL0mzrx.mjs} +0 -0
- /package/dist/chunks/{sk-CD-a3SN6.mjs → sk-DrGczTvY.mjs} +0 -0
- /package/dist/chunks/{sl-CXhrPJe_.mjs → sl-D8nJjig4.mjs} +0 -0
- /package/dist/chunks/{sq-CTctCoFQ.mjs → sq-C74Hm3YL.mjs} +0 -0
- /package/dist/chunks/{sr-BZkhBwXj.mjs → sr-DAwB05Gj.mjs} +0 -0
- /package/dist/chunks/{sv-NmRZb_xi.mjs → sv-BkHBsN4y.mjs} +0 -0
- /package/dist/chunks/{sw-Be5ik3H6.mjs → sw-BBQLTq_z.mjs} +0 -0
- /package/dist/chunks/{ta-DsXh6neL.mjs → ta-DRRzdKky.mjs} +0 -0
- /package/dist/chunks/{te-CwpCbM8M.mjs → te-CedXLsKM.mjs} +0 -0
- /package/dist/chunks/{th-CcZ15OLk.mjs → th-DDOlGA0W.mjs} +0 -0
- /package/dist/chunks/{tr-q3bTgvhW.mjs → tr-ClgvwOlL.mjs} +0 -0
- /package/dist/chunks/{tw-DmW6-pCY.mjs → tw-CqxBf-1Y.mjs} +0 -0
- /package/dist/chunks/{ug-919EhLsL.mjs → ug-bXxwiinM.mjs} +0 -0
- /package/dist/chunks/{uk-aNMEzd0Y.mjs → uk-Dp46o_VT.mjs} +0 -0
- /package/dist/chunks/{ur-BwQI77sh.mjs → ur-MfEEhdFq.mjs} +0 -0
- /package/dist/chunks/{vi-Dxq806-F.mjs → vi-bt-3LPGO.mjs} +0 -0
- /package/dist/chunks/{zh-BcHuy1Ti.mjs → zh-Dgyb5Ly8.mjs} +0 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
|
|
2
|
+
import { r as t } from "./_baseUniq-gAuHRtRF.mjs";
|
|
3
|
+
import { s as n } from "./_basePickBy-DISiGhsr.mjs";
|
|
4
|
+
import { t as r } from "./dagre-CGNbYTKq.mjs";
|
|
5
|
+
import { t as i } from "./clone-Ckjt1LtE.mjs";
|
|
6
|
+
import { t as a } from "./graphlib-Cye9EPNq.mjs";
|
|
7
|
+
import { g as o, h as s } from "./src-DVJl6f6s.mjs";
|
|
8
|
+
import { b as c } from "./chunk-ICPOFSXX-BHZIN46A.mjs";
|
|
9
|
+
import "./dist-Ctq-pyfb.mjs";
|
|
10
|
+
import "./chunk-5PVQY5BW-CORl9dnu.mjs";
|
|
11
|
+
import "./chunk-U2HBQHQK-B88ZUOTL.mjs";
|
|
12
|
+
import "./chunk-BSJP7CBP-CJExmx8a.mjs";
|
|
13
|
+
import { n as l } from "./chunk-ZZ45TVLE-D1xks9zd.mjs";
|
|
14
|
+
import "./chunk-X2U36JSP-1VS5TyCr.mjs";
|
|
15
|
+
import { a as u, c as d, i as f, l as p, n as m, t as h, u as g } from "./chunk-5FUZZQ4R-DsZnJYxM.mjs";
|
|
16
|
+
import { a as _, i as v, n as y, r as b, t as x } from "./chunk-ENJZ2VHE-CIl5FRDA.mjs";
|
|
17
|
+
//#region node_modules/dagre-d3-es/src/graphlib/json.js
|
|
18
|
+
function S(e) {
|
|
19
|
+
var n = {
|
|
20
|
+
options: {
|
|
21
|
+
directed: e.isDirected(),
|
|
22
|
+
multigraph: e.isMultigraph(),
|
|
23
|
+
compound: e.isCompound()
|
|
24
|
+
},
|
|
25
|
+
nodes: C(e),
|
|
26
|
+
edges: w(e)
|
|
27
|
+
};
|
|
28
|
+
return t(e.graph()) || (n.value = i(e.graph())), n;
|
|
29
|
+
}
|
|
30
|
+
function C(e) {
|
|
31
|
+
return n(e.nodes(), function(n) {
|
|
32
|
+
var r = e.node(n), i = e.parent(n), a = { v: n };
|
|
33
|
+
return t(r) || (a.value = r), t(i) || (a.parent = i), a;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function w(e) {
|
|
37
|
+
return n(e.edges(), function(n) {
|
|
38
|
+
var r = e.edge(n), i = {
|
|
39
|
+
v: n.v,
|
|
40
|
+
w: n.w
|
|
41
|
+
};
|
|
42
|
+
return t(n.name) || (i.name = n.name), t(r) || (i.value = r), i;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.mjs
|
|
47
|
+
var T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ s(() => {
|
|
48
|
+
E.clear(), D.clear(), T.clear();
|
|
49
|
+
}, "clear"), k = /* @__PURE__ */ s((e, t) => {
|
|
50
|
+
let n = E.get(t) || [];
|
|
51
|
+
return o.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
52
|
+
}, "isDescendant"), A = /* @__PURE__ */ s((e, t) => {
|
|
53
|
+
let n = E.get(t) || [];
|
|
54
|
+
return o.info("Descendants of ", t, " is ", n), o.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || k(e.v, t) || k(e.w, t) || n.includes(e.w) : (o.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
55
|
+
}, "edgeInCluster"), j = /* @__PURE__ */ s((e, t, n, r) => {
|
|
56
|
+
o.warn("Copying children of ", e, "root", r, "data", t.node(e), r);
|
|
57
|
+
let i = t.children(e) || [];
|
|
58
|
+
e !== r && i.push(e), o.warn("Copying (nodes) clusterId", e, "nodes", i), i.forEach((i) => {
|
|
59
|
+
if (t.children(i).length > 0) j(i, t, n, r);
|
|
60
|
+
else {
|
|
61
|
+
let a = t.node(i);
|
|
62
|
+
o.info("cp ", i, " to ", r, " with parent ", e), n.setNode(i, a), r !== t.parent(i) && (o.warn("Setting parent", i, t.parent(i)), n.setParent(i, t.parent(i))), e !== r && i !== e ? (o.debug("Setting parent", i, e), n.setParent(i, e)) : (o.info("In copy ", e, "root", r, "data", t.node(e), r), o.debug("Not Setting parent for node=", i, "cluster!==rootId", e !== r, "node!==clusterId", i !== e));
|
|
63
|
+
let s = t.edges(i);
|
|
64
|
+
o.debug("Copying Edges", s), s.forEach((i) => {
|
|
65
|
+
o.info("Edge", i);
|
|
66
|
+
let a = t.edge(i.v, i.w, i.name);
|
|
67
|
+
o.info("Edge data", a, r);
|
|
68
|
+
try {
|
|
69
|
+
A(i, r) ? (o.info("Copying as ", i.v, i.w, a, i.name), n.setEdge(i.v, i.w, a, i.name), o.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : o.info("Skipping copy of edge ", i.v, "-->", i.w, " rootId: ", r, " clusterId:", e);
|
|
70
|
+
} catch (e) {
|
|
71
|
+
o.error(e);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
o.debug("Removing node", i), t.removeNode(i);
|
|
76
|
+
});
|
|
77
|
+
}, "copy"), M = /* @__PURE__ */ s((e, t) => {
|
|
78
|
+
let n = t.children(e), r = [...n];
|
|
79
|
+
for (let i of n) D.set(i, e), r = [...r, ...M(i, t)];
|
|
80
|
+
return r;
|
|
81
|
+
}, "extractDescendants"), N = /* @__PURE__ */ s((e, t, n) => {
|
|
82
|
+
let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
|
|
83
|
+
v: e.v === t ? n : e.v,
|
|
84
|
+
w: e.w === t ? t : e.w
|
|
85
|
+
})), o = i.map((e) => ({
|
|
86
|
+
v: e.v,
|
|
87
|
+
w: e.w
|
|
88
|
+
}));
|
|
89
|
+
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
90
|
+
}, "findCommonEdges"), P = /* @__PURE__ */ s((e, t, n) => {
|
|
91
|
+
let r = t.children(e);
|
|
92
|
+
if (o.trace("Searching children of id ", e, r), r.length < 1) return e;
|
|
93
|
+
let i;
|
|
94
|
+
for (let e of r) {
|
|
95
|
+
let r = P(e, t, n), a = N(t, n, r);
|
|
96
|
+
if (r) if (a.length > 0) i = r;
|
|
97
|
+
else return r;
|
|
98
|
+
}
|
|
99
|
+
return i;
|
|
100
|
+
}, "findNonClusterChild"), F = /* @__PURE__ */ s((e) => !T.has(e) || !T.get(e).externalConnections ? e : T.has(e) ? T.get(e).id : e, "getAnchorId"), I = /* @__PURE__ */ s((e, t) => {
|
|
101
|
+
if (!e || t > 10) {
|
|
102
|
+
o.debug("Opting out, no graph ");
|
|
103
|
+
return;
|
|
104
|
+
} else o.debug("Opting in, graph ");
|
|
105
|
+
e.nodes().forEach(function(t) {
|
|
106
|
+
e.children(t).length > 0 && (o.warn("Cluster identified", t, " Replacement id in edges: ", P(t, e, t)), E.set(t, M(t, e)), T.set(t, {
|
|
107
|
+
id: P(t, e, t),
|
|
108
|
+
clusterData: e.node(t)
|
|
109
|
+
}));
|
|
110
|
+
}), e.nodes().forEach(function(t) {
|
|
111
|
+
let n = e.children(t), r = e.edges();
|
|
112
|
+
n.length > 0 ? (o.debug("Cluster identified", t, E), r.forEach((e) => {
|
|
113
|
+
k(e.v, t) ^ k(e.w, t) && (o.warn("Edge: ", e, " leaves cluster ", t), o.warn("Descendants of XXX ", t, ": ", E.get(t)), T.get(t).externalConnections = !0);
|
|
114
|
+
})) : o.debug("Not a cluster ", t, E);
|
|
115
|
+
});
|
|
116
|
+
for (let t of T.keys()) {
|
|
117
|
+
let n = T.get(t).id, r = e.parent(n);
|
|
118
|
+
r !== t && T.has(r) && !T.get(r).externalConnections && (T.get(t).id = r);
|
|
119
|
+
}
|
|
120
|
+
e.edges().forEach(function(t) {
|
|
121
|
+
let n = e.edge(t);
|
|
122
|
+
o.warn("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), o.warn("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
|
|
123
|
+
let r = t.v, i = t.w;
|
|
124
|
+
if (o.warn("Fix XXX", T, "ids:", t.v, t.w, "Translating: ", T.get(t.v), " --- ", T.get(t.w)), T.get(t.v) || T.get(t.w)) {
|
|
125
|
+
if (o.warn("Fixing and trying - removing XXX", t.v, t.w, t.name), r = F(t.v), i = F(t.w), e.removeEdge(t.v, t.w, t.name), r !== t.v) {
|
|
126
|
+
let i = e.parent(r);
|
|
127
|
+
T.get(i).externalConnections = !0, n.fromCluster = t.v;
|
|
128
|
+
}
|
|
129
|
+
if (i !== t.w) {
|
|
130
|
+
let r = e.parent(i);
|
|
131
|
+
T.get(r).externalConnections = !0, n.toCluster = t.w;
|
|
132
|
+
}
|
|
133
|
+
o.warn("Fix Replacing with XXX", r, i, t.name), e.setEdge(r, i, n, t.name);
|
|
134
|
+
}
|
|
135
|
+
}), o.warn("Adjusted Graph", S(e)), L(e, 0), o.trace(T);
|
|
136
|
+
}, "adjustClustersAndEdges"), L = /* @__PURE__ */ s((e, t) => {
|
|
137
|
+
if (o.warn("extractor - ", t, S(e), e.children("D")), t > 10) {
|
|
138
|
+
o.error("Bailing out");
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
let n = e.nodes(), r = !1;
|
|
142
|
+
for (let t of n) {
|
|
143
|
+
let n = e.children(t);
|
|
144
|
+
r = r || n.length > 0;
|
|
145
|
+
}
|
|
146
|
+
if (!r) {
|
|
147
|
+
o.debug("Done, no node has children", e.nodes());
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
o.debug("Nodes = ", n, t);
|
|
151
|
+
for (let r of n) if (o.debug("Extracting node", r, T, T.has(r) && !T.get(r).externalConnections, !e.parent(r), e.node(r), e.children("D"), " Depth ", t), !T.has(r)) o.debug("Not a cluster", r, t);
|
|
152
|
+
else if (!T.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
|
|
153
|
+
var i;
|
|
154
|
+
o.warn("Cluster without external connections, without a parent and with children", r, t);
|
|
155
|
+
let n = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
156
|
+
!((i = T.get(r)) == null || (i = i.clusterData) == null) && i.dir && (n = T.get(r).clusterData.dir, o.warn("Fixing dir", T.get(r).clusterData.dir, n));
|
|
157
|
+
let s = new a({
|
|
158
|
+
multigraph: !0,
|
|
159
|
+
compound: !0
|
|
160
|
+
}).setGraph({
|
|
161
|
+
rankdir: n,
|
|
162
|
+
nodesep: 50,
|
|
163
|
+
ranksep: 50,
|
|
164
|
+
marginx: 8,
|
|
165
|
+
marginy: 8
|
|
166
|
+
}).setDefaultEdgeLabel(function() {
|
|
167
|
+
return {};
|
|
168
|
+
});
|
|
169
|
+
o.warn("Old graph before copy", S(e)), j(r, e, s, r), e.setNode(r, {
|
|
170
|
+
clusterNode: !0,
|
|
171
|
+
id: r,
|
|
172
|
+
clusterData: T.get(r).clusterData,
|
|
173
|
+
label: T.get(r).label,
|
|
174
|
+
graph: s
|
|
175
|
+
}), o.warn("New graph after copy node: (", r, ")", S(s)), o.debug("Old graph after copy", S(e));
|
|
176
|
+
} else o.warn("Cluster ** ", r, " **not meeting the criteria !externalConnections:", !T.get(r).externalConnections, " no parent: ", !e.parent(r), " children ", e.children(r) && e.children(r).length > 0, e.children("D"), t), o.debug(T);
|
|
177
|
+
n = e.nodes(), o.warn("New list of nodes", n);
|
|
178
|
+
for (let r of n) {
|
|
179
|
+
let n = e.node(r);
|
|
180
|
+
o.warn(" Now next level", r, n), n != null && n.clusterNode && L(n.graph, t + 1);
|
|
181
|
+
}
|
|
182
|
+
}, "extractor"), R = /* @__PURE__ */ s((e, t) => {
|
|
183
|
+
if (t.length === 0) return [];
|
|
184
|
+
let n = Object.assign([], t);
|
|
185
|
+
return t.forEach((t) => {
|
|
186
|
+
let r = R(e, e.children(t));
|
|
187
|
+
n = [...n, ...r];
|
|
188
|
+
}), n;
|
|
189
|
+
}, "sorter"), z = /* @__PURE__ */ s((e) => R(e, e.children()), "sortNodesByHierarchy"), B = /* @__PURE__ */ s(async (t, n, i, a, c, m) => {
|
|
190
|
+
o.warn("Graph in recursive render:XAX", S(n), c);
|
|
191
|
+
let h = n.graph().rankdir;
|
|
192
|
+
o.trace("Dir in recursive render - dir:", h);
|
|
193
|
+
let v = t.insert("g").attr("class", "root");
|
|
194
|
+
n.nodes() ? o.info("Recursive render XXX", n.nodes()) : o.info("No nodes found for", n), n.edges().length > 0 && o.info("Recursive edges", n.edge(n.edges()[0]));
|
|
195
|
+
let x = v.insert("g").attr("class", "clusters"), C = v.insert("g").attr("class", "edgePaths"), w = v.insert("g").attr("class", "edgeLabels"), E = v.insert("g").attr("class", "nodes");
|
|
196
|
+
await Promise.all(n.nodes().map(async function(t) {
|
|
197
|
+
let r = n.node(t);
|
|
198
|
+
if (c !== void 0) {
|
|
199
|
+
let e = JSON.parse(JSON.stringify(c.clusterData));
|
|
200
|
+
o.trace("Setting data for parent cluster XXX\n Node.id = ", t, "\n data=", e.height, "\nParent cluster", c.height), n.setNode(c.id, e), n.parent(t) || (o.trace("Setting parent", t, c.id), n.setParent(t, c.id, e));
|
|
201
|
+
}
|
|
202
|
+
if (o.info("(Insert) Node XXX" + t + ": " + JSON.stringify(n.node(t))), r != null && r.clusterNode) {
|
|
203
|
+
o.info("Cluster identified XBX", t, r.width, n.node(t));
|
|
204
|
+
let { ranksep: s, nodesep: c } = n.graph();
|
|
205
|
+
r.graph.setGraph(e(e({}, r.graph.graph()), {}, {
|
|
206
|
+
ranksep: s + 25,
|
|
207
|
+
nodesep: c
|
|
208
|
+
}));
|
|
209
|
+
let l = await B(E, r.graph, i, a, n.node(t), m), u = l.elem;
|
|
210
|
+
g(r, u), r.diff = l.diff || 0, o.info("New compound node after recursive render XAX", t, "width", r.width, "height", r.height), p(u, r);
|
|
211
|
+
} else n.children(t).length > 0 ? (o.trace("Cluster - the non recursive path XBX", t, r.id, r, r.width, "Graph:", n), o.trace(P(r.id, n)), T.set(r.id, {
|
|
212
|
+
id: P(r.id, n),
|
|
213
|
+
node: r
|
|
214
|
+
})) : (o.trace("Node - the non recursive path XAX", t, E, n.node(t), h), await u(E, n.node(t), {
|
|
215
|
+
config: m,
|
|
216
|
+
dir: h
|
|
217
|
+
}));
|
|
218
|
+
})), await (/* @__PURE__ */ s(async () => {
|
|
219
|
+
let e = n.edges().map(async function(e) {
|
|
220
|
+
let t = n.edge(e.v, e.w, e.name);
|
|
221
|
+
o.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), o.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(n.edge(e))), o.info("Fix", T, "ids:", e.v, e.w, "Translating: ", T.get(e.v), T.get(e.w)), await b(w, t);
|
|
222
|
+
});
|
|
223
|
+
await Promise.all(e);
|
|
224
|
+
}, "processEdges"))(), o.info("Graph before layout:", JSON.stringify(S(n))), o.info("############################################# XXX"), o.info("### Layout ### XXX"), o.info("############################################# XXX"), r(n), o.info("Graph after layout:", JSON.stringify(S(n)));
|
|
225
|
+
let D = 0, { subGraphTitleTotalMargin: O } = l(m);
|
|
226
|
+
return await Promise.all(z(n).map(async function(e) {
|
|
227
|
+
let t = n.node(e);
|
|
228
|
+
if (o.info("Position XBX => " + e + ": (" + t.x, "," + t.y, ") width: ", t.width, " height: ", t.height), t != null && t.clusterNode) t.y += O, o.info("A tainted cluster node XBX1", e, t.id, t.width, t.height, t.x, t.y, n.parent(e)), T.get(t.id).node = t, d(t);
|
|
229
|
+
else if (n.children(e).length > 0) {
|
|
230
|
+
var r;
|
|
231
|
+
o.info("A pure cluster node XBX1", e, t.id, t.x, t.y, t.width, t.height, n.parent(e)), t.height += O, n.node(t.parentId);
|
|
232
|
+
let i = (t == null ? void 0 : t.padding) / 2 || 0, a = (t == null || (r = t.labelBBox) == null ? void 0 : r.height) || 0, s = a - i || 0;
|
|
233
|
+
o.debug("OffsetY", s, "labelHeight", a, "halfPadding", i), await f(x, t), T.get(t.id).node = t;
|
|
234
|
+
} else {
|
|
235
|
+
let e = n.node(t.parentId);
|
|
236
|
+
t.y += O / 2, o.info("A regular node XBX1 - using the padding", t.id, "parent", t.parentId, t.width, t.height, t.x, t.y, "offsetY", t.offsetY, "parent", e, e == null ? void 0 : e.offsetY, t), d(t);
|
|
237
|
+
}
|
|
238
|
+
})), n.edges().forEach(function(e) {
|
|
239
|
+
let t = n.edge(e);
|
|
240
|
+
o.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(t), t), t.points.forEach((e) => e.y += O / 2), _(t, y(C, t, T, i, n.node(e.v), n.node(e.w), a));
|
|
241
|
+
}), n.nodes().forEach(function(e) {
|
|
242
|
+
let t = n.node(e);
|
|
243
|
+
o.info(e, t.type, t.diff), t.isGroup && (D = t.diff);
|
|
244
|
+
}), o.warn("Returning from recursive render XAX", v, D), {
|
|
245
|
+
elem: v,
|
|
246
|
+
diff: D
|
|
247
|
+
};
|
|
248
|
+
}, "recursiveRender"), V = /* @__PURE__ */ s(async (t, n) => {
|
|
249
|
+
var r, i, s, l;
|
|
250
|
+
let u = new a({
|
|
251
|
+
multigraph: !0,
|
|
252
|
+
compound: !0
|
|
253
|
+
}).setGraph({
|
|
254
|
+
rankdir: t.direction,
|
|
255
|
+
nodesep: ((r = t.config) == null ? void 0 : r.nodeSpacing) || ((i = t.config) == null || (i = i.flowchart) == null ? void 0 : i.nodeSpacing) || t.nodeSpacing,
|
|
256
|
+
ranksep: ((s = t.config) == null ? void 0 : s.rankSpacing) || ((l = t.config) == null || (l = l.flowchart) == null ? void 0 : l.rankSpacing) || t.rankSpacing,
|
|
257
|
+
marginx: 8,
|
|
258
|
+
marginy: 8
|
|
259
|
+
}).setDefaultEdgeLabel(function() {
|
|
260
|
+
return {};
|
|
261
|
+
}), d = n.select("g");
|
|
262
|
+
v(d, t.markers, t.type, t.diagramId), m(), x(), h(), O(), t.nodes.forEach((t) => {
|
|
263
|
+
u.setNode(t.id, e({}, t)), t.parentId && u.setParent(t.id, t.parentId);
|
|
264
|
+
}), o.debug("Edges:", t.edges), t.edges.forEach((t) => {
|
|
265
|
+
if (t.start === t.end) {
|
|
266
|
+
let e = t.start, n = e + "---" + e + "---1", r = e + "---" + e + "---2", i = u.node(e);
|
|
267
|
+
u.setNode(n, {
|
|
268
|
+
domId: n,
|
|
269
|
+
id: n,
|
|
270
|
+
parentId: i.parentId,
|
|
271
|
+
labelStyle: "",
|
|
272
|
+
label: "",
|
|
273
|
+
padding: 0,
|
|
274
|
+
shape: "labelRect",
|
|
275
|
+
style: "",
|
|
276
|
+
width: 10,
|
|
277
|
+
height: 10
|
|
278
|
+
}), u.setParent(n, i.parentId), u.setNode(r, {
|
|
279
|
+
domId: r,
|
|
280
|
+
id: r,
|
|
281
|
+
parentId: i.parentId,
|
|
282
|
+
labelStyle: "",
|
|
283
|
+
padding: 0,
|
|
284
|
+
shape: "labelRect",
|
|
285
|
+
label: "",
|
|
286
|
+
style: "",
|
|
287
|
+
width: 10,
|
|
288
|
+
height: 10
|
|
289
|
+
}), u.setParent(r, i.parentId);
|
|
290
|
+
let a = structuredClone(t), o = structuredClone(t), s = structuredClone(t);
|
|
291
|
+
a.label = "", a.arrowTypeEnd = "none", a.id = e + "-cyclic-special-1", o.arrowTypeStart = "none", o.arrowTypeEnd = "none", o.id = e + "-cyclic-special-mid", s.label = "", i.isGroup && (a.fromCluster = e, s.toCluster = e), s.id = e + "-cyclic-special-2", s.arrowTypeStart = "none", u.setEdge(e, n, a, e + "-cyclic-special-0"), u.setEdge(n, r, o, e + "-cyclic-special-1"), u.setEdge(r, e, s, e + "-cyc<lic-special-2");
|
|
292
|
+
} else u.setEdge(t.start, t.end, e({}, t), t.id);
|
|
293
|
+
}), o.warn("Graph at first:", JSON.stringify(S(u))), I(u), o.warn("Graph after XAX:", JSON.stringify(S(u)));
|
|
294
|
+
let f = c();
|
|
295
|
+
await B(d, u, t.type, t.diagramId, void 0, f);
|
|
296
|
+
}, "render");
|
|
297
|
+
//#endregion
|
|
298
|
+
export { V as render };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e = [Object.freeze(JSON.parse("{\"displayName\":\"Dart\",\"name\":\"dart\",\"patterns\":[{\"match\":\"^(#!.*)$\",\"name\":\"meta.preprocessor.script.dart\"},{\"begin\":\"^\\\\w*\\\\b(augment\\\\s+library|library|import\\\\s+augment|import|part\\\\s+of|part|export)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.import.dart\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.dart\"}},\"name\":\"meta.declaration.dart\",\"patterns\":[{\"include\":\"#strings\"},{\"include\":\"#comments\"},{\"match\":\"\\\\b(as|show|hide)\\\\b\",\"name\":\"keyword.other.import.dart\"},{\"match\":\"\\\\b(if)\\\\b\",\"name\":\"keyword.control.dart\"}]},{\"include\":\"#comments\"},{\"include\":\"#punctuation\"},{\"include\":\"#annotations\"},{\"include\":\"#keywords\"},{\"include\":\"#constants-and-special-vars\"},{\"include\":\"#class-identifier-with-optional-factory-method\"},{\"include\":\"#function-identifier\"},{\"include\":\"#operators\"},{\"include\":\"#strings\"}],\"repository\":{\"annotations\":{\"patterns\":[{\"match\":\"@[A-Za-z]+\",\"name\":\"storage.type.annotation.dart\"}]},\"class-identifier\":{\"patterns\":[{\"match\":\"(?<!\\\\$)\\\\b(bool|num|int|double|dynamic)\\\\b(?!\\\\$)\",\"name\":\"support.class.dart\"},{\"match\":\"(?<!\\\\$)\\\\bvoid\\\\b(?!\\\\$)\",\"name\":\"storage.type.primitive.dart\"},{\"begin\":\"(?<![$0-9A-Z_a-z])([$_]*[A-Z][$0-9A-Z_a-z]*)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"support.class.dart\"}},\"end\":\"(?!<)\",\"patterns\":[{\"include\":\"#type-args\"}]}]},\"class-identifier-with-optional-factory-method\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"support.class.dart\"},\"2\":{\"name\":\"entity.name.function.dart\"}},\"match\":\"(?<!\\\\$)\\\\b(bool|num|int|double|dynamic)\\\\b(?!\\\\$)\\\\s*(factory\\\\b)?\"},{\"captures\":{\"1\":{\"name\":\"storage.type.primitive.dart\"},\"2\":{\"name\":\"entity.name.function.dart\"}},\"match\":\"(?<!\\\\$)\\\\b(void)\\\\b(?!\\\\$)\\\\s*(factory\\\\b)?\"},{\"begin\":\"(?<![$0-9A-Z_a-z])([$_]*[A-Z][$0-9A-Z_a-z]*)\\\\b\\\\s*(factory\\\\b)?\",\"beginCaptures\":{\"1\":{\"name\":\"support.class.dart\"},\"2\":{\"name\":\"entity.name.function.dart\"}},\"end\":\"(?!<)\",\"patterns\":[{\"include\":\"#type-args\"}]}]},\"comments\":{\"patterns\":[{\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.dart\"}},\"match\":\"/\\\\*\\\\*/\",\"name\":\"comment.block.empty.dart\"},{\"include\":\"#comments-doc-oldschool\"},{\"include\":\"#comments-doc\"},{\"include\":\"#comments-inline\"}]},\"comments-block\":{\"patterns\":[{\"begin\":\"/\\\\*\",\"end\":\"\\\\*/\",\"name\":\"comment.block.dart\",\"patterns\":[{\"include\":\"#comments-block\"}]}]},\"comments-doc\":{\"patterns\":[{\"begin\":\"///\",\"end\":\"^(?!\\\\s*///)\",\"name\":\"comment.block.documentation.dart\",\"patterns\":[{\"include\":\"#dartdoc\"}]}]},\"comments-doc-oldschool\":{\"patterns\":[{\"begin\":\"/\\\\*\\\\*\",\"end\":\"\\\\*/\",\"name\":\"comment.block.documentation.dart\",\"patterns\":[{\"include\":\"#comments-doc-oldschool\"},{\"include\":\"#comments-block\"},{\"include\":\"#dartdoc\"}]}]},\"comments-inline\":{\"patterns\":[{\"include\":\"#comments-block\"},{\"captures\":{\"1\":{\"name\":\"comment.line.double-slash.dart\"}},\"match\":\"((//).*)$\"}]},\"constants-and-special-vars\":{\"patterns\":[{\"match\":\"(?<!\\\\$)\\\\b(true|false|null)\\\\b(?!\\\\$)\",\"name\":\"constant.language.dart\"},{\"match\":\"(?<!\\\\$)\\\\b(this|super|augmented)\\\\b(?!\\\\$)\",\"name\":\"variable.language.dart\"},{\"match\":\"(?<!\\\\$)\\\\b((0([Xx])\\\\h[_\\\\h]*)|(([0-9][0-9_]*\\\\.?[0-9_]*)|(\\\\.[0-9][0-9_]*))(([Ee])([-+])?[0-9][0-9_]*)?)\\\\b(?!\\\\$)\",\"name\":\"constant.numeric.dart\"}]},\"dartdoc\":{\"patterns\":[{\"captures\":{\"0\":{\"name\":\"variable.name.source.dart\"}},\"match\":\"(\\\\[.*?])\"},{\"begin\":\"^\\\\s*///\\\\s*(```)\",\"end\":\"^(?:\\\\s*///\\\\s*(```)|(?!\\\\s*///))\",\"patterns\":[{\"include\":\"#dartdoc-codeblock-triple\"}]},{\"begin\":\"^\\\\s*\\\\*\\\\s*(```)\",\"end\":\"^(?:\\\\s*\\\\*\\\\s*(```)|(?=\\\\s*\\\\*/))\",\"patterns\":[{\"include\":\"#dartdoc-codeblock-block\"}]},{\"match\":\"`[^\\\\n`]+`\",\"name\":\"variable.other.source.dart\"},{\"captures\":{\"1\":{\"name\":\"variable.other.source.dart\"}},\"match\":\"(?:\\\\*|//)\\\\s{4,}(.*?)(?=($|\\\\*/))\"}]},\"dartdoc-codeblock-block\":{\"begin\":\"^\\\\s*\\\\*\\\\s*(?!(\\\\s*```|/))\",\"contentName\":\"variable.other.source.dart\",\"end\":\"\\\\n\"},\"dartdoc-codeblock-triple\":{\"begin\":\"^\\\\s*///\\\\s*(?!\\\\s*```)\",\"contentName\":\"variable.other.source.dart\",\"end\":\"\\\\n\"},\"expression\":{\"patterns\":[{\"include\":\"#constants-and-special-vars\"},{\"include\":\"#class-identifier-with-optional-factory-method\"},{\"include\":\"#function-identifier\"},{\"include\":\"#strings\"},{\"match\":\"[0-9A-Z_a-z]+\",\"name\":\"variable.parameter.dart\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"patterns\":[{\"include\":\"#expression\"}]}]},\"function-identifier\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.function.dart\"},\"2\":{\"patterns\":[{\"include\":\"#type-args\"}]}},\"match\":\"([$_]*[a-z][$0-9A-Z_a-z]*)(<(?:[$0-9<>?A-Z_a-z]|,\\\\s*|\\\\s+extends\\\\s+)+>)?[!?]?\\\\(\"},{\"match\":\"(?<=\\\\.)new\\\\b\",\"name\":\"entity.name.function.dart\"}]},\"keywords\":{\"patterns\":[{\"match\":\"(?<!\\\\$)\\\\bas\\\\b(?!\\\\$)\",\"name\":\"keyword.cast.dart\"},{\"match\":\"(?<!\\\\$)\\\\b(try|on|catch|finally|throw|rethrow)\\\\b(?!\\\\$)\",\"name\":\"keyword.control.catch-exception.dart\"},{\"match\":\"(?<!\\\\$)\\\\b(break|case|continue|default|do|else|for|if|in|switch|while|when)\\\\b(?!\\\\$)\",\"name\":\"keyword.control.dart\"},{\"match\":\"(?<!\\\\$)\\\\b(sync(\\\\*)?|async(\\\\*)?|await|yield(\\\\*)?)\\\\b(?!\\\\$)\",\"name\":\"keyword.control.dart\"},{\"match\":\"(?<!\\\\$)\\\\bassert\\\\b(?!\\\\$)\",\"name\":\"keyword.control.dart\"},{\"match\":\"(?<![$.])\\\\b(new)\\\\b(?!\\\\$)\",\"name\":\"keyword.new.dart\"},{\"match\":\"(?<!\\\\$)\\\\b(return)\\\\b(?!\\\\$)\",\"name\":\"keyword.control.return.dart\"},{\"match\":\"(?<!\\\\$)\\\\b(abstract|sealed|base|interface|class|enum|extends|extension\\\\s+type|extension|external|factory|implements|get(?![(<])|mixin|native|operator|set(?![(<])|typedef|with|covariant)\\\\b(?!\\\\$)\",\"name\":\"keyword.declaration.dart\"},{\"match\":\"(?<!\\\\$)\\\\b(macro|augment|static|final|const|required|late)\\\\b(?!\\\\$)\",\"name\":\"storage.modifier.dart\"},{\"match\":\"(?<!\\\\$)\\\\bvar\\\\b(?!\\\\$)\",\"name\":\"storage.type.primitive.dart\"}]},\"operators\":{\"patterns\":[{\"match\":\"(?<!\\\\$)\\\\b(is!?)\\\\b(?!\\\\$)\",\"name\":\"keyword.operator.dart\"},{\"match\":\"[:?]\",\"name\":\"keyword.operator.ternary.dart\"},{\"match\":\"(<<|>>>?|[\\\\&^|~])\",\"name\":\"keyword.operator.bitwise.dart\"},{\"match\":\"(([\\\\&^|]|<<|>>>?)=)\",\"name\":\"keyword.operator.assignment.bitwise.dart\"},{\"match\":\"(=>)\",\"name\":\"keyword.operator.closure.dart\"},{\"match\":\"(==|!=|<=?|>=?)\",\"name\":\"keyword.operator.comparison.dart\"},{\"match\":\"(([-%*+/~])=)\",\"name\":\"keyword.operator.assignment.arithmetic.dart\"},{\"match\":\"(=)\",\"name\":\"keyword.operator.assignment.dart\"},{\"match\":\"(--|\\\\+\\\\+)\",\"name\":\"keyword.operator.increment-decrement.dart\"},{\"match\":\"([-*+/]|~/|%)\",\"name\":\"keyword.operator.arithmetic.dart\"},{\"match\":\"(!|&&|\\\\|\\\\|)\",\"name\":\"keyword.operator.logical.dart\"}]},\"punctuation\":{\"patterns\":[{\"match\":\",\",\"name\":\"punctuation.comma.dart\"},{\"match\":\";\",\"name\":\"punctuation.terminator.dart\"},{\"match\":\"\\\\.\",\"name\":\"punctuation.dot.dart\"}]},\"string-interp\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.dart\"}},\"match\":\"\\\\$([0-9A-Z_a-z]+)\",\"name\":\"meta.embedded.expression.dart\"},{\"begin\":\"\\\\$\\\\{\",\"end\":\"}\",\"name\":\"meta.embedded.expression.dart\",\"patterns\":[{\"include\":\"#expression\"}]},{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.dart\"}]},\"strings\":{\"patterns\":[{\"begin\":\"(?<!r)\\\"\\\"\\\"\",\"end\":\"\\\"\\\"\\\"(?!\\\")\",\"name\":\"string.interpolated.triple.double.dart\",\"patterns\":[{\"include\":\"#string-interp\"}]},{\"begin\":\"(?<!r)'''\",\"end\":\"'''(?!')\",\"name\":\"string.interpolated.triple.single.dart\",\"patterns\":[{\"include\":\"#string-interp\"}]},{\"begin\":\"r\\\"\\\"\\\"\",\"end\":\"\\\"\\\"\\\"(?!\\\")\",\"name\":\"string.quoted.triple.double.dart\"},{\"begin\":\"r'''\",\"end\":\"'''(?!')\",\"name\":\"string.quoted.triple.single.dart\"},{\"begin\":\"(?<!\\\\|r)\\\"\",\"end\":\"\\\"\",\"name\":\"string.interpolated.double.dart\",\"patterns\":[{\"match\":\"\\\\n\",\"name\":\"invalid.string.newline\"},{\"include\":\"#string-interp\"}]},{\"begin\":\"r\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.dart\",\"patterns\":[{\"match\":\"\\\\n\",\"name\":\"invalid.string.newline\"}]},{\"begin\":\"(?<!\\\\|r)'\",\"end\":\"'\",\"name\":\"string.interpolated.single.dart\",\"patterns\":[{\"match\":\"\\\\n\",\"name\":\"invalid.string.newline\"},{\"include\":\"#string-interp\"}]},{\"begin\":\"r'\",\"end\":\"'\",\"name\":\"string.quoted.single.dart\",\"patterns\":[{\"match\":\"\\\\n\",\"name\":\"invalid.string.newline\"}]}]},\"type-args\":{\"begin\":\"(<)\",\"beginCaptures\":{\"1\":{\"name\":\"other.source.dart\"}},\"end\":\"(>)\",\"endCaptures\":{\"1\":{\"name\":\"other.source.dart\"}},\"patterns\":[{\"include\":\"#class-identifier\"},{\"match\":\",\"},{\"match\":\"extends\",\"name\":\"keyword.declaration.dart\"},{\"include\":\"#comments\"}]}},\"scopeName\":\"source.dart\"}"))];
|
|
2
|
+
//#endregion
|
|
3
|
+
export { e as default };
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
//#region node_modules/d3-format/src/formatDecimal.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
4
|
+
}
|
|
5
|
+
function t(e, t) {
|
|
6
|
+
if (!isFinite(e) || e === 0) return null;
|
|
7
|
+
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
8
|
+
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region node_modules/d3-format/src/exponent.js
|
|
12
|
+
function n(e) {
|
|
13
|
+
return e = t(Math.abs(e)), e ? e[1] : NaN;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region node_modules/d3-format/src/formatGroup.js
|
|
17
|
+
function r(e, t) {
|
|
18
|
+
return function(n, r) {
|
|
19
|
+
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
|
|
20
|
+
return a.reverse().join(t);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region node_modules/d3-format/src/formatNumerals.js
|
|
25
|
+
function i(e) {
|
|
26
|
+
return function(t) {
|
|
27
|
+
return t.replace(/[0-9]/g, function(t) {
|
|
28
|
+
return e[+t];
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region node_modules/d3-format/src/formatSpecifier.js
|
|
34
|
+
var a = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
35
|
+
function o(e) {
|
|
36
|
+
if (!(t = a.exec(e))) throw Error("invalid format: " + e);
|
|
37
|
+
var t;
|
|
38
|
+
return new s({
|
|
39
|
+
fill: t[1],
|
|
40
|
+
align: t[2],
|
|
41
|
+
sign: t[3],
|
|
42
|
+
symbol: t[4],
|
|
43
|
+
zero: t[5],
|
|
44
|
+
width: t[6],
|
|
45
|
+
comma: t[7],
|
|
46
|
+
precision: t[8] && t[8].slice(1),
|
|
47
|
+
trim: t[9],
|
|
48
|
+
type: t[10]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
o.prototype = s.prototype;
|
|
52
|
+
function s(e) {
|
|
53
|
+
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
54
|
+
}
|
|
55
|
+
s.prototype.toString = function() {
|
|
56
|
+
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region node_modules/d3-format/src/formatTrim.js
|
|
60
|
+
function c(e) {
|
|
61
|
+
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
62
|
+
case ".":
|
|
63
|
+
r = i = n;
|
|
64
|
+
break;
|
|
65
|
+
case "0":
|
|
66
|
+
r === 0 && (r = n), i = n;
|
|
67
|
+
break;
|
|
68
|
+
default:
|
|
69
|
+
if (!+e[n]) break out;
|
|
70
|
+
r > 0 && (r = 0);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region node_modules/d3-format/src/formatPrefixAuto.js
|
|
77
|
+
var l;
|
|
78
|
+
function u(e, n) {
|
|
79
|
+
var r = t(e, n);
|
|
80
|
+
if (!r) return l = void 0, e.toPrecision(n);
|
|
81
|
+
var i = r[0], a = r[1], o = a - (l = Math.max(-8, Math.min(8, Math.floor(a / 3))) * 3) + 1, s = i.length;
|
|
82
|
+
return o === s ? i : o > s ? i + Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + Array(1 - o).join("0") + t(e, Math.max(0, n + o - 1))[0];
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region node_modules/d3-format/src/formatRounded.js
|
|
86
|
+
function d(e, n) {
|
|
87
|
+
var r = t(e, n);
|
|
88
|
+
if (!r) return e + "";
|
|
89
|
+
var i = r[0], a = r[1];
|
|
90
|
+
return a < 0 ? "0." + Array(-a).join("0") + i : i.length > a + 1 ? i.slice(0, a + 1) + "." + i.slice(a + 1) : i + Array(a - i.length + 2).join("0");
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region node_modules/d3-format/src/formatTypes.js
|
|
94
|
+
var f = {
|
|
95
|
+
"%": (e, t) => (e * 100).toFixed(t),
|
|
96
|
+
b: (e) => Math.round(e).toString(2),
|
|
97
|
+
c: (e) => e + "",
|
|
98
|
+
d: e,
|
|
99
|
+
e: (e, t) => e.toExponential(t),
|
|
100
|
+
f: (e, t) => e.toFixed(t),
|
|
101
|
+
g: (e, t) => e.toPrecision(t),
|
|
102
|
+
o: (e) => Math.round(e).toString(8),
|
|
103
|
+
p: (e, t) => d(e * 100, t),
|
|
104
|
+
r: d,
|
|
105
|
+
s: u,
|
|
106
|
+
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
107
|
+
x: (e) => Math.round(e).toString(16)
|
|
108
|
+
};
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region node_modules/d3-format/src/identity.js
|
|
111
|
+
function p(e) {
|
|
112
|
+
return e;
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region node_modules/d3-format/src/locale.js
|
|
116
|
+
var m = Array.prototype.map, h = [
|
|
117
|
+
"y",
|
|
118
|
+
"z",
|
|
119
|
+
"a",
|
|
120
|
+
"f",
|
|
121
|
+
"p",
|
|
122
|
+
"n",
|
|
123
|
+
"µ",
|
|
124
|
+
"m",
|
|
125
|
+
"",
|
|
126
|
+
"k",
|
|
127
|
+
"M",
|
|
128
|
+
"G",
|
|
129
|
+
"T",
|
|
130
|
+
"P",
|
|
131
|
+
"E",
|
|
132
|
+
"Z",
|
|
133
|
+
"Y"
|
|
134
|
+
];
|
|
135
|
+
function g(e) {
|
|
136
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? p : r(m.call(e.grouping, Number), e.thousands + ""), a = e.currency === void 0 ? "" : e.currency[0] + "", s = e.currency === void 0 ? "" : e.currency[1] + "", u = e.decimal === void 0 ? "." : e.decimal + "", d = e.numerals === void 0 ? p : i(m.call(e.numerals, String)), g = e.percent === void 0 ? "%" : e.percent + "", _ = e.minus === void 0 ? "−" : e.minus + "", v = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
137
|
+
function y(e, n) {
|
|
138
|
+
e = o(e);
|
|
139
|
+
var r = e.fill, i = e.align, p = e.sign, m = e.symbol, y = e.zero, b = e.width, x = e.comma, S = e.precision, C = e.trim, w = e.type;
|
|
140
|
+
w === "n" ? (x = !0, w = "g") : f[w] || (S === void 0 && (S = 12), C = !0, w = "g"), (y || r === "0" && i === "=") && (y = !0, r = "0", i = "=");
|
|
141
|
+
var T = (n && n.prefix !== void 0 ? n.prefix : "") + (m === "$" ? a : m === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : ""), E = (m === "$" ? s : /[%p]/.test(w) ? g : "") + (n && n.suffix !== void 0 ? n.suffix : ""), D = f[w], O = /[defgprs%]/.test(w);
|
|
142
|
+
S = S === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, S)) : Math.max(0, Math.min(20, S));
|
|
143
|
+
function k(e) {
|
|
144
|
+
var n = T, a = E, o, s, f;
|
|
145
|
+
if (w === "c") a = D(e) + a, e = "";
|
|
146
|
+
else {
|
|
147
|
+
e = +e;
|
|
148
|
+
var m = e < 0 || 1 / e < 0;
|
|
149
|
+
if (e = isNaN(e) ? v : D(Math.abs(e), S), C && (e = c(e)), m && +e == 0 && p !== "+" && (m = !1), n = (m ? p === "(" ? p : _ : p === "-" || p === "(" ? "" : p) + n, a = (w === "s" && !isNaN(e) && l !== void 0 ? h[8 + l / 3] : "") + a + (m && p === "(" ? ")" : ""), O) {
|
|
150
|
+
for (o = -1, s = e.length; ++o < s;) if (f = e.charCodeAt(o), 48 > f || f > 57) {
|
|
151
|
+
a = (f === 46 ? u + e.slice(o + 1) : e.slice(o)) + a, e = e.slice(0, o);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
x && !y && (e = t(e, Infinity));
|
|
157
|
+
var g = n.length + e.length + a.length, k = g < b ? Array(b - g + 1).join(r) : "";
|
|
158
|
+
switch (x && y && (e = t(k + e, k.length ? b - a.length : Infinity), k = ""), i) {
|
|
159
|
+
case "<":
|
|
160
|
+
e = n + e + a + k;
|
|
161
|
+
break;
|
|
162
|
+
case "=":
|
|
163
|
+
e = n + k + e + a;
|
|
164
|
+
break;
|
|
165
|
+
case "^":
|
|
166
|
+
e = k.slice(0, g = k.length >> 1) + n + e + a + k.slice(g);
|
|
167
|
+
break;
|
|
168
|
+
default:
|
|
169
|
+
e = k + n + e + a;
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
return d(e);
|
|
173
|
+
}
|
|
174
|
+
return k.toString = function() {
|
|
175
|
+
return e + "";
|
|
176
|
+
}, k;
|
|
177
|
+
}
|
|
178
|
+
function b(e, t) {
|
|
179
|
+
var r = Math.max(-8, Math.min(8, Math.floor(n(t) / 3))) * 3, i = 10 ** -r, a = y((e = o(e), e.type = "f", e), { suffix: h[8 + r / 3] });
|
|
180
|
+
return function(e) {
|
|
181
|
+
return a(i * e);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
format: y,
|
|
186
|
+
formatPrefix: b
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region node_modules/d3-format/src/defaultLocale.js
|
|
191
|
+
var _, v, y;
|
|
192
|
+
b({
|
|
193
|
+
thousands: ",",
|
|
194
|
+
grouping: [3],
|
|
195
|
+
currency: ["$", ""]
|
|
196
|
+
});
|
|
197
|
+
function b(e) {
|
|
198
|
+
return _ = g(e), v = _.format, y = _.formatPrefix, _;
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
export { n as i, y as n, o as r, v as t };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import "./chunk-K5T4RW27-BPZ6fFnW.mjs";
|
|
2
|
+
import "./chunk-7N4EOEYR-DKNajFZd.mjs";
|
|
3
|
+
import "./chunk-67CJDMHE-m0UKdcSH.mjs";
|
|
4
|
+
import "./chunk-KGLVRYIC-S1OQdW76.mjs";
|
|
5
|
+
import "./chunk-FOC6F5B3-LmHCCWYY.mjs";
|
|
6
|
+
import "./chunk-AA7GKIK3-BeLhNzKa.mjs";
|
|
7
|
+
import "./chunk-2KRD3SAO-DkM7qh-k.mjs";
|
|
8
|
+
import "./chunk-ORNJ4GCN-CdO0hAge.mjs";
|
|
9
|
+
import "./chunk-LIHQZDEY-CjtyJlI6.mjs";
|
|
10
|
+
import "./chunk-CIAEETIT-CTikoJ19.mjs";
|
|
11
|
+
import { g as e, h as t } from "./src-DVJl6f6s.mjs";
|
|
12
|
+
import { B as n, C as r, V as i, W as a, _ as o, a as s, c, d as l, v as u, y as d } from "./chunk-ICPOFSXX-BHZIN46A.mjs";
|
|
13
|
+
import "./dist-Ctq-pyfb.mjs";
|
|
14
|
+
import { r as f } from "./chunk-5PVQY5BW-CORl9dnu.mjs";
|
|
15
|
+
import { t as p } from "./chunk-426QAEUC-D6UAVUog.mjs";
|
|
16
|
+
import { t as m } from "./chunk-4BX2VUAB-CgIkjF7Z.mjs";
|
|
17
|
+
import { t as h } from "./mermaid-parser.core-CA3DKkuk.mjs";
|
|
18
|
+
import { t as g } from "./chunk-QZHKN3VN-BGFuA6-k.mjs";
|
|
19
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.mjs
|
|
20
|
+
var _ = new g(() => ({
|
|
21
|
+
cnt: 1,
|
|
22
|
+
stack: [{
|
|
23
|
+
id: 0,
|
|
24
|
+
level: -1,
|
|
25
|
+
name: "/",
|
|
26
|
+
children: []
|
|
27
|
+
}]
|
|
28
|
+
})), v = /* @__PURE__ */ t(() => {
|
|
29
|
+
_.reset(), s();
|
|
30
|
+
}, "clear"), y = /* @__PURE__ */ t(() => _.records.stack[0], "getRoot"), b = /* @__PURE__ */ t(() => _.records.cnt, "getCount"), x = l.treeView, S = {
|
|
31
|
+
clear: v,
|
|
32
|
+
addNode: /* @__PURE__ */ t((e, t) => {
|
|
33
|
+
for (; e <= _.records.stack[_.records.stack.length - 1].level;) _.records.stack.pop();
|
|
34
|
+
let n = {
|
|
35
|
+
id: _.records.cnt++,
|
|
36
|
+
level: e,
|
|
37
|
+
name: t,
|
|
38
|
+
children: []
|
|
39
|
+
};
|
|
40
|
+
_.records.stack[_.records.stack.length - 1].children.push(n), _.records.stack.push(n);
|
|
41
|
+
}, "addNode"),
|
|
42
|
+
getRoot: y,
|
|
43
|
+
getCount: b,
|
|
44
|
+
getConfig: /* @__PURE__ */ t(() => f(x, d().treeView), "getConfig"),
|
|
45
|
+
getAccTitle: u,
|
|
46
|
+
getAccDescription: o,
|
|
47
|
+
getDiagramTitle: r,
|
|
48
|
+
setAccDescription: n,
|
|
49
|
+
setAccTitle: i,
|
|
50
|
+
setDiagramTitle: a
|
|
51
|
+
}, C = /* @__PURE__ */ t((e) => {
|
|
52
|
+
m(e, S), e.nodes.map((e) => S.addNode(e.indent ? parseInt(e.indent) : 0, e.name));
|
|
53
|
+
}, "populate"), w = { parse: /* @__PURE__ */ t(async (t) => {
|
|
54
|
+
let n = await h("treeView", t);
|
|
55
|
+
e.debug(n), C(n);
|
|
56
|
+
}, "parse") }, T = /* @__PURE__ */ t((e, t, n, r, i) => {
|
|
57
|
+
let a = r.append("text").text(n.name).attr("dominant-baseline", "middle").attr("class", "treeView-node-label"), { height: o, width: s } = a.node().getBBox(), c = o + i.paddingY * 2, l = s + i.paddingX * 2;
|
|
58
|
+
a.attr("x", e + i.paddingX), a.attr("y", t + c / 2), n.BBox = {
|
|
59
|
+
x: e,
|
|
60
|
+
y: t,
|
|
61
|
+
width: l,
|
|
62
|
+
height: c
|
|
63
|
+
};
|
|
64
|
+
}, "positionLabel"), E = /* @__PURE__ */ t((e, t, n, r, i, a) => e.append("line").attr("x1", t).attr("y1", n).attr("x2", r).attr("y2", i).attr("stroke-width", a).attr("class", "treeView-node-line"), "positionLine"), D = /* @__PURE__ */ t((e, n, r) => {
|
|
65
|
+
let i = 0, a = 0, o = /* @__PURE__ */ t((e, t, n, r) => {
|
|
66
|
+
let o = r * (n.rowIndent + n.paddingX);
|
|
67
|
+
T(o, i, t, e, n);
|
|
68
|
+
let { height: s, width: c } = t.BBox;
|
|
69
|
+
E(e, o - n.rowIndent, i + s / 2, o, i + s / 2, n.lineThickness), a = Math.max(a, o + c), i += s;
|
|
70
|
+
}, "drawNode"), s = /* @__PURE__ */ t((t, n = 0) => {
|
|
71
|
+
o(e, t, r, n), t.children.forEach((e) => {
|
|
72
|
+
s(e, n + 1);
|
|
73
|
+
});
|
|
74
|
+
let { x: i, y: a, height: c } = t.BBox;
|
|
75
|
+
if (t.children.length) {
|
|
76
|
+
let { y: n, height: o } = t.children[t.children.length - 1].BBox;
|
|
77
|
+
E(e, i + r.paddingX, a + c, i + r.paddingX, n + o / 2 + r.lineThickness / 2, r.lineThickness);
|
|
78
|
+
}
|
|
79
|
+
}, "processNode");
|
|
80
|
+
return s(n), {
|
|
81
|
+
totalHeight: i,
|
|
82
|
+
totalWidth: a
|
|
83
|
+
};
|
|
84
|
+
}, "drawTree"), O = { draw: /* @__PURE__ */ t((t, n, r, i) => {
|
|
85
|
+
e.debug("Rendering treeView diagram\n" + t);
|
|
86
|
+
let a = i.db, o = a.getRoot(), s = a.getConfig(), l = p(n), u = l.append("g");
|
|
87
|
+
u.attr("class", "tree-view");
|
|
88
|
+
let { totalHeight: d, totalWidth: f } = D(u, o, s);
|
|
89
|
+
l.attr("viewBox", `-${s.lineThickness / 2} 0 ${f} ${d}`), c(l, d, f, s.useMaxWidth);
|
|
90
|
+
}, "draw") }, k = {
|
|
91
|
+
labelFontSize: "16px",
|
|
92
|
+
labelColor: "black",
|
|
93
|
+
lineColor: "black"
|
|
94
|
+
}, A = {
|
|
95
|
+
db: S,
|
|
96
|
+
renderer: O,
|
|
97
|
+
parser: w,
|
|
98
|
+
styles: /* @__PURE__ */ t(({ treeView: e }) => {
|
|
99
|
+
let { labelFontSize: t, labelColor: n, lineColor: r } = f(k, e);
|
|
100
|
+
return `
|
|
101
|
+
.treeView-node-label {
|
|
102
|
+
font-size: ${t};
|
|
103
|
+
fill: ${n};
|
|
104
|
+
}
|
|
105
|
+
.treeView-node-line {
|
|
106
|
+
stroke: ${r};
|
|
107
|
+
}
|
|
108
|
+
`;
|
|
109
|
+
}, "styles")
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
export { A as diagram };
|