@jackuait/blok 0.10.0-beta.6 → 0.10.0-beta.8
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 +0 -2
- package/codemod/test.js +0 -6
- package/dist/blok.mjs +2 -2
- 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-BdlR_lX6.mjs → blok-CRvF-xVm.mjs} +2142 -2171
- 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-Byubey_H.mjs → chunk-D6kmoKXy.mjs} +5 -5
- 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-Cp8O0UfP.mjs → constants-BOZ5plBi.mjs} +49 -50
- 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/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-loader-oDO9ZKUV.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-NjLaA6AJ.mjs → katex-CmTPfM0f.mjs} +1 -1
- package/dist/chunks/kotlin-DjnvsrfO.mjs +3 -0
- package/dist/chunks/latex-24n3TcOR.mjs +5 -0
- package/dist/chunks/{lightweight-i18n-DTySD6f6.mjs → lightweight-i18n-Cvv8CWh4.mjs} +13 -0
- 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-yS0EygZV.mjs → mdast-util-math-BlK2Zu-1.mjs} +1 -1
- 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-BYQ769S5.mjs → chunks/messages-8IHf7ZP3.mjs} +26 -1
- package/dist/chunks/{messages-DRv4g-IA.mjs → messages-A_MkXDlG.mjs} +26 -1
- package/dist/chunks/{messages-vN4T4r67.mjs → messages-B0vPBsWq.mjs} +26 -1
- package/dist/chunks/{messages-BDXl53cy2.mjs → messages-B2N4fUi72.mjs} +26 -1
- package/dist/chunks/{messages-DopbvJlg.mjs → messages-B4UMuyjT.mjs} +31 -6
- package/dist/{messages-uCsQjz7M.mjs → chunks/messages-B9kmbUWV.mjs} +26 -1
- package/dist/{messages-JK9Okzsy2.mjs → chunks/messages-BA8Iv99Y2.mjs} +26 -1
- package/dist/chunks/{messages-yszqJukE.mjs → messages-BAsb5CgZ.mjs} +26 -1
- package/dist/{messages-CEEzfqMO2.mjs → chunks/messages-BDZA10kl2.mjs} +29 -4
- package/dist/{messages-BeI2HORe2.mjs → chunks/messages-BE6lHKwf.mjs} +26 -1
- package/dist/{messages--cUQf9JX.mjs → chunks/messages-BQYvBqm2.mjs} +27 -2
- package/dist/{messages-CsiGzUSP2.mjs → chunks/messages-BSghd0ez.mjs} +26 -1
- package/dist/chunks/{messages-BXn9Vzbx2.mjs → messages-BUVhHx0q2.mjs} +26 -1
- package/dist/chunks/{messages-5ArOv8cj.mjs → messages-BVjoM7P0.mjs} +26 -1
- package/dist/chunks/{messages-CvlMT1e62.mjs → messages-BXM80fdr2.mjs} +26 -1
- package/dist/chunks/{messages-BlcRm2I3.mjs → messages-BYlSMRkd.mjs} +26 -1
- package/dist/chunks/{messages-bmwto4UV.mjs → messages-BYxLFj7y.mjs} +26 -1
- package/dist/chunks/{messages-SSDr5fGF2.mjs → messages-BeFqtIrc2.mjs} +26 -1
- package/dist/{messages-CD8K1g_t2.mjs → chunks/messages-Bfnq1xv4.mjs} +26 -1
- package/dist/chunks/{messages-B5fKJXd6.mjs → messages-BhzzNkN-.mjs} +26 -1
- package/dist/{messages-Dq_v7slw2.mjs → chunks/messages-BjadX8jR2.mjs} +26 -1
- package/dist/{messages-x353UCBI.mjs → chunks/messages-Bp8qin1R.mjs} +26 -1
- package/dist/{messages-hrSlVSHp.mjs → chunks/messages-Bphq_Bt3.mjs} +33 -8
- package/dist/chunks/{messages-CF_PfacZ.mjs → messages-Bxvi1ebN.mjs} +26 -1
- package/dist/chunks/{messages-DdmWzF5M.mjs → messages-C0HvoMPb.mjs} +27 -2
- package/dist/chunks/{messages-C5aCWL7B.mjs → messages-C3aX3q0H.mjs} +26 -1
- package/dist/{messages-DbZsJAff.mjs → chunks/messages-C6Mpiacw.mjs} +26 -1
- package/dist/{messages-PvMdmlxI.mjs → chunks/messages-C7VGpihw.mjs} +28 -3
- package/dist/chunks/{messages-DGD6BiGd.mjs → messages-CKBhDGI3.mjs} +28 -3
- package/dist/chunks/{messages-BaoJwsEZ.mjs → messages-COO5xmcA.mjs} +26 -1
- package/dist/chunks/{messages-Dz3UhEco2.mjs → messages-CSJ_zb3a2.mjs} +26 -1
- package/dist/chunks/{messages-CjVPwkVy.mjs → messages-CSL-6xfb2.mjs} +26 -1
- package/dist/{messages-B4lhNMKm2.mjs → chunks/messages-CVdpweyf2.mjs} +28 -3
- package/dist/chunks/{messages-DQ5ng0_t2.mjs → messages-Cdf0W9H02.mjs} +26 -1
- package/dist/{messages-Bug6Du35.mjs → chunks/messages-Ck81cQkn2.mjs} +26 -1
- package/dist/chunks/{messages-DUGEqDEG.mjs → messages-Cmf6NhSC.mjs} +26 -1
- package/dist/chunks/{messages-BMq9k_lI.mjs → messages-Cs81Z_Bh.mjs} +26 -1
- package/dist/{messages-B3Yhiycb2.mjs → chunks/messages-Cu-Wevxs2.mjs} +27 -2
- package/dist/{messages-DIKCwGog.mjs → chunks/messages-D3zojZ94.mjs} +30 -5
- package/dist/{messages-Bdk4ocMI.mjs → chunks/messages-D55HRx5O2.mjs} +26 -1
- package/dist/{messages-CvvbLyTy2.mjs → chunks/messages-D9N2MvQx2.mjs} +26 -1
- package/dist/{messages-C5Uufygq.mjs → chunks/messages-DG-4DPmP.mjs} +26 -1
- package/dist/{messages-C8f1I5EQ2.mjs → chunks/messages-DGL1ySqb2.mjs} +27 -2
- package/dist/chunks/{messages-D8-N0FmU.mjs → messages-DJoNVjqP.mjs} +27 -2
- package/dist/chunks/{messages-CcyIKgGU.mjs → messages-DMVXnAYj.mjs} +30 -5
- package/dist/chunks/{messages-CZ5Sbf8U.mjs → messages-DOuS1Qge.mjs} +26 -1
- package/dist/chunks/{messages-BXSXk3oS2.mjs → messages-DWu1r4gc2.mjs} +28 -3
- package/dist/{messages-KqWQKmIu2.mjs → chunks/messages-DlLXpgWM2.mjs} +27 -2
- package/dist/{messages-DQN1y6E9.mjs → chunks/messages-DlonA3wa.mjs} +28 -3
- package/dist/chunks/{messages-DVKifYlq.mjs → messages-Dr0Ekmbz.mjs} +49 -24
- package/dist/{messages-DACg1XAu.mjs → chunks/messages-DzTk8bJ5.mjs} +26 -1
- package/dist/{messages-BOE2mzCj2.mjs → chunks/messages-FWfsxpBz.mjs} +26 -1
- package/dist/{messages-CBPiFbEf2.mjs → chunks/messages-G416eyjY.mjs} +26 -1
- package/dist/chunks/{messages-DZwCufSb.mjs → messages-Je5YvxiY.mjs} +26 -1
- package/dist/chunks/{messages-DN-194c32.mjs → messages-JyvWu4rf2.mjs} +26 -1
- package/dist/chunks/{messages-CqgEz7C5.mjs → messages-KdawW5Na.mjs} +26 -1
- package/dist/{messages-X80Nh0ib.mjs → chunks/messages-MxpWO1db.mjs} +27 -2
- package/dist/chunks/{messages-CnQydQJd2.mjs → messages-NEqrrYvE2.mjs} +26 -1
- package/dist/{messages-DkvQ-6HC2.mjs → chunks/messages-RInp1ytX.mjs} +28 -3
- package/dist/chunks/{messages-DSO2U-ul.mjs → messages-TRUuyiFB.mjs} +26 -1
- package/dist/chunks/{messages-BhcYsC_M2.mjs → messages-aZcy0JQq2.mjs} +26 -1
- package/dist/chunks/{messages-ByAqzAhB.mjs → messages-iS34FHFB.mjs} +26 -1
- package/dist/{messages-12_eyAo-.mjs → chunks/messages-ihCjSFJI2.mjs} +26 -1
- package/dist/{messages-mipkPgwQ2.mjs → chunks/messages-jfVpL9c-2.mjs} +26 -1
- package/dist/{messages-Cb3wXGnc.mjs → chunks/messages-p1mbe__S.mjs} +27 -2
- package/dist/chunks/{messages-Dgng6KN8.mjs → messages-rCd0Rrw6.mjs} +28 -3
- package/dist/{messages-Dj79y02X.mjs → chunks/messages-xuqyb6Ff2.mjs} +26 -1
- package/dist/chunks/{micromark-extension-math-CCEGWpdz.mjs → micromark-extension-math-BbkUb36G.mjs} +2 -2
- package/dist/chunks/mindmap-definition-QFDTVHPH-hNnyBkEP.mjs +1013 -0
- 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-DGOsJbHH.mjs → tools-CnqCfv2L.mjs} +2116 -1268
- 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 +3 -3
- package/dist/locales.mjs +80 -67
- package/dist/markdown.mjs +385 -393
- package/dist/{chunks/messages-9l49jauY.mjs → messages-5jvKxQNu2.mjs} +26 -1
- package/dist/{messages-CkySRhtd2.mjs → messages-7QD-X6XT2.mjs} +26 -1
- package/dist/{chunks/messages-Btr121zI2.mjs → messages-96iaAUds2.mjs} +27 -2
- package/dist/{chunks/messages-BAP2OAQk.mjs → messages-B19o-Teb.mjs} +28 -3
- package/dist/{messages-DJU4YLij.mjs → messages-B1ZUQagA.mjs} +26 -1
- package/dist/{messages-Dg2CDXZi2.mjs → messages-B7ieAJBd2.mjs} +26 -1
- package/dist/{messages-CByBLxWk.mjs → messages-BECMxmfX.mjs} +26 -1
- package/dist/{messages-CwCEcbWG.mjs → messages-BIHc0KHY.mjs} +27 -2
- package/dist/{messages-D8WvwU42.mjs → messages-BIoeoik5.mjs} +26 -1
- package/dist/{messages-D38h5XlF.mjs → messages-BJeGJksD.mjs} +26 -1
- package/dist/{messages-Cd23UgLV2.mjs → messages-BRZX964b2.mjs} +27 -2
- package/dist/{chunks/messages-B9N__q552.mjs → messages-BTQPpoM42.mjs} +29 -4
- package/dist/{messages-CUzBNjnc.mjs → messages-BYNcD6uR.mjs} +26 -1
- package/dist/{messages-DjWfVYHS2.mjs → messages-BYmmMDrN2.mjs} +26 -1
- package/dist/{chunks/messages-DkTxBa1V.mjs → messages-BbYq1pk-.mjs} +26 -1
- package/dist/{chunks/messages-BHhbHLoq.mjs → messages-BiUGXvYr2.mjs} +26 -1
- package/dist/{messages-So3SHdIc2.mjs → messages-BiiongNz2.mjs} +26 -1
- package/dist/{chunks/messages-BxBID_0B.mjs → messages-Bm0Feca1.mjs} +30 -5
- package/dist/{messages-C2veeQpU.mjs → messages-BmAn22OX.mjs} +26 -1
- package/dist/{messages-KbYSpNrE.mjs → messages-Bq3F2Tp_.mjs} +26 -1
- package/dist/{chunks/messages-Dux1S0-D2.mjs → messages-BsycN_JI2.mjs} +26 -1
- package/dist/{messages-DRU_IgoW.mjs → messages-BwHs4cm1.mjs} +30 -5
- package/dist/{messages-Cv-DKlZd.mjs → messages-CJTy6JZt.mjs} +26 -1
- package/dist/{chunks/messages-D7n_wJK7.mjs → messages-CR_L_UtK.mjs} +26 -1
- package/dist/{messages-DnhEzmXJ2.mjs → messages-CSUHBs4c2.mjs} +26 -1
- package/dist/{messages-C_HmWyXc2.mjs → messages-CWIXvnDf2.mjs} +26 -1
- package/dist/{messages-KSxF8eib.mjs → messages-CcF4y-E4.mjs} +26 -1
- package/dist/{chunks/messages-CL3mCbi6.mjs → messages-Ce6KVEbT.mjs} +27 -2
- package/dist/{chunks/messages-C-jA6Rf7.mjs → messages-Ci0KqX-J.mjs} +33 -8
- package/dist/{chunks/messages-DMyRdafk2.mjs → messages-CjbnogEC.mjs} +26 -1
- package/dist/{chunks/messages-BlO_37l_.mjs → messages-CmB406HW.mjs} +28 -3
- package/dist/{messages-Cho2VTAX.mjs → messages-CqXtJTpU.mjs} +26 -1
- package/dist/{messages-CWEL1WDy2.mjs → messages-D0aw5_0k2.mjs} +28 -3
- package/dist/{messages-CgEDVri-2.mjs → messages-D8FQWulF2.mjs} +26 -1
- package/dist/{chunks/messages-B5aAzExz.mjs → messages-DBiVgUs2.mjs} +27 -2
- package/dist/{chunks/messages-DYizZHT2.mjs → messages-DIJlIqlQ2.mjs} +26 -1
- package/dist/{messages-BPL7riv-.mjs → messages-DLX_iBDJ.mjs} +26 -1
- package/dist/{messages-vptt-pVF.mjs → messages-DLlc9QPw.mjs} +26 -1
- package/dist/{chunks/messages-876bKyUj2.mjs → messages-DMr62KiO2.mjs} +26 -1
- package/dist/{chunks/messages-CgedvWCf.mjs → messages-DPA-mMWC2.mjs} +27 -2
- package/dist/{messages-vcoib5Ga.mjs → messages-DTh9a8mR.mjs} +26 -1
- package/dist/{chunks/messages-DgEGJECT.mjs → messages-DY4IqlhY.mjs} +26 -1
- package/dist/{chunks/messages-CdzF0Hvl.mjs → messages-DYTTu0O12.mjs} +26 -1
- package/dist/{messages-rbox5gSb2.mjs → messages-DbySKTKt2.mjs} +28 -3
- package/dist/{chunks/messages-BGCQCeWd.mjs → messages-Ddnj2iTG2.mjs} +26 -1
- package/dist/{chunks/messages-CNEJxD8q2.mjs → messages-DkLU_rWm.mjs} +26 -1
- package/dist/{chunks/messages-FYl9woii2.mjs → messages-Dl3Sv6Rq2.mjs} +27 -2
- package/dist/{messages-Clsh86WQ.mjs → messages-Dl5Y2-Ia.mjs} +49 -24
- package/dist/{chunks/messages-CKRJDX0K2.mjs → messages-DnG0ef8t2.mjs} +28 -3
- package/dist/{chunks/messages-CyxDkx8a.mjs → messages-DnGJD4TL.mjs} +26 -1
- package/dist/{chunks/messages-DnJHflSh.mjs → messages-Dnp9N6RU2.mjs} +26 -1
- package/dist/{chunks/messages-Jps5Tc77.mjs → messages-Dvn35ksS.mjs} +26 -1
- package/dist/{messages-ChTWmxS8.mjs → messages-Dw__BcTj.mjs} +26 -1
- package/dist/{messages-D7juvhHp.mjs → messages-Dy-Y_nEI.mjs} +26 -1
- package/dist/{messages-CNNcKuGH.mjs → messages-E_ZuzGDt.mjs} +26 -1
- package/dist/{chunks/messages-DJO0ERQT.mjs → messages-F2xRoY1w.mjs} +26 -1
- package/dist/{messages-DqJTZbwt.mjs → messages-Smt4GBbj.mjs} +31 -6
- package/dist/{chunks/messages-D8dKkyII2.mjs → messages-aMXpHt5X2.mjs} +26 -1
- package/dist/{chunks/messages-DWD0ry9x.mjs → messages-aWZH50vu2.mjs} +28 -3
- package/dist/{chunks/messages-BbfLRqLh2.mjs → messages-dv19AkyJ.mjs} +26 -1
- package/dist/{chunks/messages-Dw2rmKMi2.mjs → messages-hWwSRF-2.mjs} +26 -1
- package/dist/{messages-En8LDjUB.mjs → messages-j7o5rT9s.mjs} +26 -1
- package/dist/{chunks/messages-NJsvFwJj.mjs → messages-nUVjeh7K.mjs} +27 -2
- package/dist/{messages-Cg1CF4pw.mjs → messages-nlhESX9t.mjs} +26 -1
- package/dist/{messages-CSl0Wla62.mjs → messages-rk-A1Wa42.mjs} +28 -3
- package/dist/{messages-nOe1gJYu.mjs → messages-xh2eOLvs.mjs} +26 -1
- package/dist/{messages-B_sKqaeK.mjs → messages-ynAe7ewZ.mjs} +26 -1
- package/dist/react.mjs +26 -25
- package/dist/tools.mjs +2 -2
- package/dist/vendor.LICENSE.txt +4065 -316
- package/package.json +2 -1
- package/src/components/constants/data-attributes.ts +0 -2
- package/src/components/i18n/locales/am/messages.json +26 -1
- package/src/components/i18n/locales/ar/messages.json +26 -1
- package/src/components/i18n/locales/az/messages.json +26 -1
- package/src/components/i18n/locales/bg/messages.json +26 -1
- package/src/components/i18n/locales/bn/messages.json +26 -1
- package/src/components/i18n/locales/bs/messages.json +28 -3
- package/src/components/i18n/locales/cs/messages.json +30 -5
- package/src/components/i18n/locales/da/messages.json +33 -8
- package/src/components/i18n/locales/de/messages.json +31 -6
- package/src/components/i18n/locales/dv/messages.json +26 -1
- package/src/components/i18n/locales/el/messages.json +26 -1
- package/src/components/i18n/locales/en/messages.json +13 -0
- package/src/components/i18n/locales/es/messages.json +27 -2
- package/src/components/i18n/locales/et/messages.json +30 -5
- package/src/components/i18n/locales/fa/messages.json +26 -1
- package/src/components/i18n/locales/fi/messages.json +26 -1
- package/src/components/i18n/locales/fil/messages.json +49 -24
- package/src/components/i18n/locales/fr/messages.json +27 -2
- package/src/components/i18n/locales/gu/messages.json +26 -1
- package/src/components/i18n/locales/he/messages.json +26 -1
- package/src/components/i18n/locales/hi/messages.json +26 -1
- package/src/components/i18n/locales/hr/messages.json +28 -3
- package/src/components/i18n/locales/hu/messages.json +27 -2
- package/src/components/i18n/locales/hy/messages.json +26 -1
- package/src/components/i18n/locales/id/messages.json +26 -1
- package/src/components/i18n/locales/it/messages.json +27 -2
- package/src/components/i18n/locales/ja/messages.json +26 -1
- package/src/components/i18n/locales/ka/messages.json +26 -1
- package/src/components/i18n/locales/km/messages.json +26 -1
- package/src/components/i18n/locales/kn/messages.json +26 -1
- package/src/components/i18n/locales/ko/messages.json +26 -1
- package/src/components/i18n/locales/ku/messages.json +26 -1
- package/src/components/i18n/locales/lo/messages.json +26 -1
- package/src/components/i18n/locales/lt/messages.json +26 -1
- package/src/components/i18n/locales/lv/messages.json +26 -1
- package/src/components/i18n/locales/mk/messages.json +26 -1
- package/src/components/i18n/locales/ml/messages.json +26 -1
- package/src/components/i18n/locales/mn/messages.json +26 -1
- package/src/components/i18n/locales/mr/messages.json +26 -1
- package/src/components/i18n/locales/ms/messages.json +28 -3
- package/src/components/i18n/locales/my/messages.json +26 -1
- package/src/components/i18n/locales/ne/messages.json +26 -1
- package/src/components/i18n/locales/nl/messages.json +28 -3
- package/src/components/i18n/locales/no/messages.json +29 -4
- package/src/components/i18n/locales/pa/messages.json +26 -1
- package/src/components/i18n/locales/pl/messages.json +27 -2
- package/src/components/i18n/locales/ps/messages.json +26 -1
- package/src/components/i18n/locales/pt/messages.json +27 -2
- package/src/components/i18n/locales/ro/messages.json +27 -2
- package/src/components/i18n/locales/ru/messages.json +26 -1
- package/src/components/i18n/locales/sd/messages.json +26 -1
- package/src/components/i18n/locales/si/messages.json +26 -1
- package/src/components/i18n/locales/sk/messages.json +28 -3
- package/src/components/i18n/locales/sl/messages.json +28 -3
- package/src/components/i18n/locales/sq/messages.json +27 -2
- package/src/components/i18n/locales/sr/messages.json +26 -1
- package/src/components/i18n/locales/sv/messages.json +28 -3
- package/src/components/i18n/locales/sw/messages.json +26 -1
- package/src/components/i18n/locales/ta/messages.json +26 -1
- package/src/components/i18n/locales/te/messages.json +26 -1
- package/src/components/i18n/locales/th/messages.json +26 -1
- package/src/components/i18n/locales/tr/messages.json +26 -1
- package/src/components/i18n/locales/ug/messages.json +26 -1
- package/src/components/i18n/locales/uk/messages.json +26 -1
- package/src/components/i18n/locales/ur/messages.json +26 -1
- package/src/components/i18n/locales/vi/messages.json +26 -1
- package/src/components/i18n/locales/yi/messages.json +26 -1
- package/src/components/i18n/locales/zh/messages.json +26 -1
- package/src/components/icons/index.ts +38 -0
- package/src/components/modules/api/ui.ts +0 -3
- package/src/components/modules/ui.ts +0 -13
- package/src/stories/EditorModes.stories.ts +0 -60
- package/src/styles/main.css +44 -2
- package/src/tools/callout/emoji-picker/index.ts +3 -2
- package/src/tools/code/code-keyboard.ts +16 -9
- package/src/tools/code/constants.ts +26 -3
- package/src/tools/code/dom-builder.ts +40 -5
- package/src/tools/code/highlight-applier.ts +229 -0
- package/src/tools/code/index.ts +141 -1
- package/src/tools/code/mermaid-loader.ts +45 -0
- package/src/tools/code/shiki-loader.ts +135 -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 +194 -11
- package/src/tools/table/table-cell-blocks.ts +9 -6
- package/src/tools/table/table-cell-clipboard.ts +6 -1
- 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 +78 -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/types/data-attributes.d.ts +0 -1
- package/types/tools/code.d.ts +2 -0
- /package/dist/chunks/{am-CS-JjQ0N.mjs → am-BxlkYGsI.mjs} +0 -0
- /package/dist/chunks/{ar-Dt4XzR5U.mjs → ar-9vlpr9V8.mjs} +0 -0
- /package/dist/chunks/{az-CaDTXby8.mjs → az-ON63W_FP.mjs} +0 -0
- /package/dist/chunks/{bg-D1pLog-R.mjs → bg-CtXWTP5w.mjs} +0 -0
- /package/dist/chunks/{bn-Db_ae60m.mjs → bn-BERvhXM4.mjs} +0 -0
- /package/dist/chunks/{bs-DJTg1R9e.mjs → bs-CBg8NVPG.mjs} +0 -0
- /package/dist/chunks/{cs-_Gc21gSL.mjs → cs-DeQddxS7.mjs} +0 -0
- /package/dist/chunks/{da-xDB8uhCd.mjs → da-DyTo-ec_.mjs} +0 -0
- /package/dist/chunks/{de-B6gVjh1Z.mjs → de-Cu7545m1.mjs} +0 -0
- /package/dist/chunks/{default-DIfXCS2E.mjs → default-qigT1Xpq.mjs} +0 -0
- /package/dist/chunks/{el-ClbRSnOs.mjs → el-oiubLRBq.mjs} +0 -0
- /package/dist/chunks/{es-CuY9rnLK.mjs → es-DZUC6Klv.mjs} +0 -0
- /package/dist/chunks/{et-BLu5lDVc.mjs → et-CDeklAog.mjs} +0 -0
- /package/dist/chunks/{fa-P3gnrZH8.mjs → fa-Cafp7_Li.mjs} +0 -0
- /package/dist/chunks/{fi-B8PVHLjq.mjs → fi-BD_V_aVW.mjs} +0 -0
- /package/dist/chunks/{fil-B9JII5iF.mjs → fil-Crsfbtx4.mjs} +0 -0
- /package/dist/chunks/{fr-BWLDZdcc.mjs → fr-BGGc04Zv.mjs} +0 -0
- /package/dist/chunks/{gu-BH3R_s4c.mjs → gu-Vg_BgCTp.mjs} +0 -0
- /package/dist/chunks/{he-CCmeCVR_.mjs → he-DTY9chlZ.mjs} +0 -0
- /package/dist/chunks/{hi-BBav00DN.mjs → hi-DChMXk0x.mjs} +0 -0
- /package/dist/chunks/{hr-B5ZX0r9G.mjs → hr-BWVgNU8k.mjs} +0 -0
- /package/dist/chunks/{hu-1jgDa3YU.mjs → hu-B37awHXA.mjs} +0 -0
- /package/dist/chunks/{hy-LX4Kp2PE.mjs → hy-DGC_GDHh.mjs} +0 -0
- /package/dist/chunks/{i18next-KNC_XV5x.mjs → i18next-CXx5niYF.mjs} +0 -0
- /package/dist/chunks/{id-CcG40D1H.mjs → id-V7cw6La2.mjs} +0 -0
- /package/dist/chunks/{it-Cb8_K72W.mjs → it-DrTGP8Rn.mjs} +0 -0
- /package/dist/chunks/{ja-ipCH91mv.mjs → ja-DS4pbJEG.mjs} +0 -0
- /package/dist/chunks/{ka-BRvREIgq.mjs → ka-BueyosRh.mjs} +0 -0
- /package/dist/chunks/{km-BJwVw7Fg.mjs → km-B0K891yW.mjs} +0 -0
- /package/dist/chunks/{kn-BPgUazCC.mjs → kn-BQ__skg8.mjs} +0 -0
- /package/dist/chunks/{ko-CQLzxe7k.mjs → ko-BuPxi_7e.mjs} +0 -0
- /package/dist/chunks/{ku-BHhHu8Iz.mjs → ku-nQjwPRw2.mjs} +0 -0
- /package/dist/chunks/{lo-DsTgYblY.mjs → lo-K5NVFoq1.mjs} +0 -0
- /package/dist/chunks/{lt-CDzHJm71.mjs → lt-D3xD6Eb2.mjs} +0 -0
- /package/dist/chunks/{lv-MLLIAnIX.mjs → lv-DH13mzZj.mjs} +0 -0
- /package/dist/chunks/{micromark-factory-space-WwmyBO_J.mjs → micromark-factory-space-y4SDWQKm.mjs} +0 -0
- /package/dist/chunks/{mk-DQdmUquZ.mjs → mk-Bb48BcDA.mjs} +0 -0
- /package/dist/chunks/{ml-DqehZnra.mjs → ml-BHPEj1kD.mjs} +0 -0
- /package/dist/chunks/{mn-4cFkKFjW.mjs → mn-BNGzpdI6.mjs} +0 -0
- /package/dist/chunks/{mr-DWiztOP4.mjs → mr-D5PgU-cH.mjs} +0 -0
- /package/dist/chunks/{ms-BSz-iSnc.mjs → ms-DPkxqKz5.mjs} +0 -0
- /package/dist/chunks/{my-DbtbM1MW.mjs → my-DZGcyfxy.mjs} +0 -0
- /package/dist/chunks/{native-CzYG0YgY.mjs → native-D0cfLXsM.mjs} +0 -0
- /package/dist/chunks/{ne-CqALWw_f.mjs → ne-BU_Wh4Wv.mjs} +0 -0
- /package/dist/chunks/{nl-D_ra6RvH.mjs → nl-DtAPk1mK.mjs} +0 -0
- /package/dist/chunks/{no-Cg_kz_jl.mjs → no-CdW3n3BY.mjs} +0 -0
- /package/dist/chunks/{notifier-BOwxj_Ok.mjs → notifier-CuvTt9pe.mjs} +0 -0
- /package/dist/chunks/{pa-NLAsNqwY.mjs → pa-BacCHz87.mjs} +0 -0
- /package/dist/chunks/{pl-NHKp4YDg.mjs → pl-8zBJbmhZ.mjs} +0 -0
- /package/dist/chunks/{ps-D1zEqNeg.mjs → ps-c6nGXD-W.mjs} +0 -0
- /package/dist/chunks/{pt-DBtqbUEB.mjs → pt-B5yR8Qhr.mjs} +0 -0
- /package/dist/chunks/{ro-lqr63ai5.mjs → ro-Nscylsqb.mjs} +0 -0
- /package/dist/chunks/{ru-BycNnDyN.mjs → ru-DxERQkVJ.mjs} +0 -0
- /package/dist/chunks/{sd-DpHpIN9Z.mjs → sd-5z-QY3q9.mjs} +0 -0
- /package/dist/chunks/{si-BwiwaC7N.mjs → si-DTL0mzrx.mjs} +0 -0
- /package/dist/chunks/{sk-CqRHT2Gp.mjs → sk-DrGczTvY.mjs} +0 -0
- /package/dist/chunks/{sl-DA348uQ_.mjs → sl-D8nJjig4.mjs} +0 -0
- /package/dist/chunks/{sq-D7JNgve1.mjs → sq-C74Hm3YL.mjs} +0 -0
- /package/dist/chunks/{sr-D8RK6Kwp.mjs → sr-DAwB05Gj.mjs} +0 -0
- /package/dist/chunks/{sv-dwgT67ZG.mjs → sv-BkHBsN4y.mjs} +0 -0
- /package/dist/chunks/{sw-ZRRJnkem.mjs → sw-BBQLTq_z.mjs} +0 -0
- /package/dist/chunks/{ta-5x4L5Krl.mjs → ta-DRRzdKky.mjs} +0 -0
- /package/dist/chunks/{te-BZpEimwA.mjs → te-CedXLsKM.mjs} +0 -0
- /package/dist/chunks/{th-Bhr-33kv.mjs → th-DDOlGA0W.mjs} +0 -0
- /package/dist/chunks/{tr-6tSNKGNB.mjs → tr-ClgvwOlL.mjs} +0 -0
- /package/dist/chunks/{ug-_e-jvr2b.mjs → ug-bXxwiinM.mjs} +0 -0
- /package/dist/chunks/{uk-DooSc2Ja.mjs → uk-Dp46o_VT.mjs} +0 -0
- /package/dist/chunks/{ur-rb-krkIO.mjs → ur-MfEEhdFq.mjs} +0 -0
- /package/dist/chunks/{vi-CQkLn2AQ.mjs → vi-bt-3LPGO.mjs} +0 -0
- /package/dist/chunks/{zh-CXQ40Q2_.mjs → zh-Dgyb5Ly8.mjs} +0 -0
|
@@ -0,0 +1,2038 @@
|
|
|
1
|
+
import { g as e, h as t } from "./src-DVJl6f6s.mjs";
|
|
2
|
+
import { B as n, C as r, V as i, W as a, _ as o, a as s, b as c, s as l, v as u } from "./chunk-ICPOFSXX-BHZIN46A.mjs";
|
|
3
|
+
import { h as d, o as f } from "./chunk-5PVQY5BW-CORl9dnu.mjs";
|
|
4
|
+
import { t as p } from "./chunk-55IACEB6-zZ-IgaSt.mjs";
|
|
5
|
+
import { t as m } from "./chunk-EDXVE4YY-DjInnnwb.mjs";
|
|
6
|
+
import { r as h } from "./chunk-336JU56O-B17AtzlK.mjs";
|
|
7
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.mjs
|
|
8
|
+
var g, _ = (function() {
|
|
9
|
+
var e = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
10
|
+
for (n = n || {}, r = e.length; r--; n[e[r]] = t);
|
|
11
|
+
return n;
|
|
12
|
+
}, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 16], l = [1, 17], u = [1, 18], d = [1, 19], f = [1, 33], p = [1, 20], m = [1, 21], h = [1, 22], g = [1, 23], _ = [1, 24], v = [1, 26], y = [1, 27], b = [1, 28], x = [1, 29], S = [1, 30], C = [1, 31], w = [1, 32], T = [1, 35], E = [1, 36], D = [1, 37], O = [1, 38], k = [1, 34], A = [
|
|
13
|
+
1,
|
|
14
|
+
4,
|
|
15
|
+
5,
|
|
16
|
+
16,
|
|
17
|
+
17,
|
|
18
|
+
19,
|
|
19
|
+
21,
|
|
20
|
+
22,
|
|
21
|
+
24,
|
|
22
|
+
25,
|
|
23
|
+
26,
|
|
24
|
+
27,
|
|
25
|
+
28,
|
|
26
|
+
29,
|
|
27
|
+
33,
|
|
28
|
+
35,
|
|
29
|
+
37,
|
|
30
|
+
38,
|
|
31
|
+
41,
|
|
32
|
+
45,
|
|
33
|
+
48,
|
|
34
|
+
51,
|
|
35
|
+
52,
|
|
36
|
+
53,
|
|
37
|
+
54,
|
|
38
|
+
57
|
|
39
|
+
], j = [
|
|
40
|
+
1,
|
|
41
|
+
4,
|
|
42
|
+
5,
|
|
43
|
+
14,
|
|
44
|
+
15,
|
|
45
|
+
16,
|
|
46
|
+
17,
|
|
47
|
+
19,
|
|
48
|
+
21,
|
|
49
|
+
22,
|
|
50
|
+
24,
|
|
51
|
+
25,
|
|
52
|
+
26,
|
|
53
|
+
27,
|
|
54
|
+
28,
|
|
55
|
+
29,
|
|
56
|
+
33,
|
|
57
|
+
35,
|
|
58
|
+
37,
|
|
59
|
+
38,
|
|
60
|
+
39,
|
|
61
|
+
40,
|
|
62
|
+
41,
|
|
63
|
+
45,
|
|
64
|
+
48,
|
|
65
|
+
51,
|
|
66
|
+
52,
|
|
67
|
+
53,
|
|
68
|
+
54,
|
|
69
|
+
57
|
|
70
|
+
], M = [
|
|
71
|
+
4,
|
|
72
|
+
5,
|
|
73
|
+
16,
|
|
74
|
+
17,
|
|
75
|
+
19,
|
|
76
|
+
21,
|
|
77
|
+
22,
|
|
78
|
+
24,
|
|
79
|
+
25,
|
|
80
|
+
26,
|
|
81
|
+
27,
|
|
82
|
+
28,
|
|
83
|
+
29,
|
|
84
|
+
33,
|
|
85
|
+
35,
|
|
86
|
+
37,
|
|
87
|
+
38,
|
|
88
|
+
41,
|
|
89
|
+
45,
|
|
90
|
+
48,
|
|
91
|
+
51,
|
|
92
|
+
52,
|
|
93
|
+
53,
|
|
94
|
+
54,
|
|
95
|
+
57
|
|
96
|
+
], N = {
|
|
97
|
+
trace: /* @__PURE__ */ t(function() {}, "trace"),
|
|
98
|
+
yy: {},
|
|
99
|
+
symbols_: {
|
|
100
|
+
error: 2,
|
|
101
|
+
start: 3,
|
|
102
|
+
SPACE: 4,
|
|
103
|
+
NL: 5,
|
|
104
|
+
SD: 6,
|
|
105
|
+
document: 7,
|
|
106
|
+
line: 8,
|
|
107
|
+
statement: 9,
|
|
108
|
+
classDefStatement: 10,
|
|
109
|
+
styleStatement: 11,
|
|
110
|
+
cssClassStatement: 12,
|
|
111
|
+
idStatement: 13,
|
|
112
|
+
DESCR: 14,
|
|
113
|
+
"-->": 15,
|
|
114
|
+
HIDE_EMPTY: 16,
|
|
115
|
+
scale: 17,
|
|
116
|
+
WIDTH: 18,
|
|
117
|
+
COMPOSIT_STATE: 19,
|
|
118
|
+
STRUCT_START: 20,
|
|
119
|
+
STRUCT_STOP: 21,
|
|
120
|
+
STATE_DESCR: 22,
|
|
121
|
+
AS: 23,
|
|
122
|
+
ID: 24,
|
|
123
|
+
FORK: 25,
|
|
124
|
+
JOIN: 26,
|
|
125
|
+
CHOICE: 27,
|
|
126
|
+
CONCURRENT: 28,
|
|
127
|
+
note: 29,
|
|
128
|
+
notePosition: 30,
|
|
129
|
+
NOTE_TEXT: 31,
|
|
130
|
+
direction: 32,
|
|
131
|
+
acc_title: 33,
|
|
132
|
+
acc_title_value: 34,
|
|
133
|
+
acc_descr: 35,
|
|
134
|
+
acc_descr_value: 36,
|
|
135
|
+
acc_descr_multiline_value: 37,
|
|
136
|
+
CLICK: 38,
|
|
137
|
+
STRING: 39,
|
|
138
|
+
HREF: 40,
|
|
139
|
+
classDef: 41,
|
|
140
|
+
CLASSDEF_ID: 42,
|
|
141
|
+
CLASSDEF_STYLEOPTS: 43,
|
|
142
|
+
DEFAULT: 44,
|
|
143
|
+
style: 45,
|
|
144
|
+
STYLE_IDS: 46,
|
|
145
|
+
STYLEDEF_STYLEOPTS: 47,
|
|
146
|
+
class: 48,
|
|
147
|
+
CLASSENTITY_IDS: 49,
|
|
148
|
+
STYLECLASS: 50,
|
|
149
|
+
direction_tb: 51,
|
|
150
|
+
direction_bt: 52,
|
|
151
|
+
direction_rl: 53,
|
|
152
|
+
direction_lr: 54,
|
|
153
|
+
eol: 55,
|
|
154
|
+
";": 56,
|
|
155
|
+
EDGE_STATE: 57,
|
|
156
|
+
STYLE_SEPARATOR: 58,
|
|
157
|
+
left_of: 59,
|
|
158
|
+
right_of: 60,
|
|
159
|
+
$accept: 0,
|
|
160
|
+
$end: 1
|
|
161
|
+
},
|
|
162
|
+
terminals_: {
|
|
163
|
+
2: "error",
|
|
164
|
+
4: "SPACE",
|
|
165
|
+
5: "NL",
|
|
166
|
+
6: "SD",
|
|
167
|
+
14: "DESCR",
|
|
168
|
+
15: "-->",
|
|
169
|
+
16: "HIDE_EMPTY",
|
|
170
|
+
17: "scale",
|
|
171
|
+
18: "WIDTH",
|
|
172
|
+
19: "COMPOSIT_STATE",
|
|
173
|
+
20: "STRUCT_START",
|
|
174
|
+
21: "STRUCT_STOP",
|
|
175
|
+
22: "STATE_DESCR",
|
|
176
|
+
23: "AS",
|
|
177
|
+
24: "ID",
|
|
178
|
+
25: "FORK",
|
|
179
|
+
26: "JOIN",
|
|
180
|
+
27: "CHOICE",
|
|
181
|
+
28: "CONCURRENT",
|
|
182
|
+
29: "note",
|
|
183
|
+
31: "NOTE_TEXT",
|
|
184
|
+
33: "acc_title",
|
|
185
|
+
34: "acc_title_value",
|
|
186
|
+
35: "acc_descr",
|
|
187
|
+
36: "acc_descr_value",
|
|
188
|
+
37: "acc_descr_multiline_value",
|
|
189
|
+
38: "CLICK",
|
|
190
|
+
39: "STRING",
|
|
191
|
+
40: "HREF",
|
|
192
|
+
41: "classDef",
|
|
193
|
+
42: "CLASSDEF_ID",
|
|
194
|
+
43: "CLASSDEF_STYLEOPTS",
|
|
195
|
+
44: "DEFAULT",
|
|
196
|
+
45: "style",
|
|
197
|
+
46: "STYLE_IDS",
|
|
198
|
+
47: "STYLEDEF_STYLEOPTS",
|
|
199
|
+
48: "class",
|
|
200
|
+
49: "CLASSENTITY_IDS",
|
|
201
|
+
50: "STYLECLASS",
|
|
202
|
+
51: "direction_tb",
|
|
203
|
+
52: "direction_bt",
|
|
204
|
+
53: "direction_rl",
|
|
205
|
+
54: "direction_lr",
|
|
206
|
+
56: ";",
|
|
207
|
+
57: "EDGE_STATE",
|
|
208
|
+
58: "STYLE_SEPARATOR",
|
|
209
|
+
59: "left_of",
|
|
210
|
+
60: "right_of"
|
|
211
|
+
},
|
|
212
|
+
productions_: [
|
|
213
|
+
0,
|
|
214
|
+
[3, 2],
|
|
215
|
+
[3, 2],
|
|
216
|
+
[3, 2],
|
|
217
|
+
[7, 0],
|
|
218
|
+
[7, 2],
|
|
219
|
+
[8, 2],
|
|
220
|
+
[8, 1],
|
|
221
|
+
[8, 1],
|
|
222
|
+
[9, 1],
|
|
223
|
+
[9, 1],
|
|
224
|
+
[9, 1],
|
|
225
|
+
[9, 1],
|
|
226
|
+
[9, 2],
|
|
227
|
+
[9, 3],
|
|
228
|
+
[9, 4],
|
|
229
|
+
[9, 1],
|
|
230
|
+
[9, 2],
|
|
231
|
+
[9, 1],
|
|
232
|
+
[9, 4],
|
|
233
|
+
[9, 3],
|
|
234
|
+
[9, 6],
|
|
235
|
+
[9, 1],
|
|
236
|
+
[9, 1],
|
|
237
|
+
[9, 1],
|
|
238
|
+
[9, 1],
|
|
239
|
+
[9, 4],
|
|
240
|
+
[9, 4],
|
|
241
|
+
[9, 1],
|
|
242
|
+
[9, 2],
|
|
243
|
+
[9, 2],
|
|
244
|
+
[9, 1],
|
|
245
|
+
[9, 5],
|
|
246
|
+
[9, 5],
|
|
247
|
+
[10, 3],
|
|
248
|
+
[10, 3],
|
|
249
|
+
[11, 3],
|
|
250
|
+
[12, 3],
|
|
251
|
+
[32, 1],
|
|
252
|
+
[32, 1],
|
|
253
|
+
[32, 1],
|
|
254
|
+
[32, 1],
|
|
255
|
+
[55, 1],
|
|
256
|
+
[55, 1],
|
|
257
|
+
[13, 1],
|
|
258
|
+
[13, 1],
|
|
259
|
+
[13, 3],
|
|
260
|
+
[13, 3],
|
|
261
|
+
[30, 1],
|
|
262
|
+
[30, 1]
|
|
263
|
+
],
|
|
264
|
+
performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
|
|
265
|
+
var s = a.length - 1;
|
|
266
|
+
switch (i) {
|
|
267
|
+
case 3: return r.setRootDoc(a[s]), a[s];
|
|
268
|
+
case 4:
|
|
269
|
+
this.$ = [];
|
|
270
|
+
break;
|
|
271
|
+
case 5:
|
|
272
|
+
a[s] != "nl" && (a[s - 1].push(a[s]), this.$ = a[s - 1]);
|
|
273
|
+
break;
|
|
274
|
+
case 6:
|
|
275
|
+
case 7:
|
|
276
|
+
this.$ = a[s];
|
|
277
|
+
break;
|
|
278
|
+
case 8:
|
|
279
|
+
this.$ = "nl";
|
|
280
|
+
break;
|
|
281
|
+
case 12:
|
|
282
|
+
this.$ = a[s];
|
|
283
|
+
break;
|
|
284
|
+
case 13:
|
|
285
|
+
let e = a[s - 1];
|
|
286
|
+
e.description = r.trimColon(a[s]), this.$ = e;
|
|
287
|
+
break;
|
|
288
|
+
case 14:
|
|
289
|
+
this.$ = {
|
|
290
|
+
stmt: "relation",
|
|
291
|
+
state1: a[s - 2],
|
|
292
|
+
state2: a[s]
|
|
293
|
+
};
|
|
294
|
+
break;
|
|
295
|
+
case 15:
|
|
296
|
+
let t = r.trimColon(a[s]);
|
|
297
|
+
this.$ = {
|
|
298
|
+
stmt: "relation",
|
|
299
|
+
state1: a[s - 3],
|
|
300
|
+
state2: a[s - 1],
|
|
301
|
+
description: t
|
|
302
|
+
};
|
|
303
|
+
break;
|
|
304
|
+
case 19:
|
|
305
|
+
this.$ = {
|
|
306
|
+
stmt: "state",
|
|
307
|
+
id: a[s - 3],
|
|
308
|
+
type: "default",
|
|
309
|
+
description: "",
|
|
310
|
+
doc: a[s - 1]
|
|
311
|
+
};
|
|
312
|
+
break;
|
|
313
|
+
case 20:
|
|
314
|
+
var c = a[s], l = a[s - 2].trim();
|
|
315
|
+
if (a[s].match(":")) {
|
|
316
|
+
var u = a[s].split(":");
|
|
317
|
+
c = u[0], l = [l, u[1]];
|
|
318
|
+
}
|
|
319
|
+
this.$ = {
|
|
320
|
+
stmt: "state",
|
|
321
|
+
id: c,
|
|
322
|
+
type: "default",
|
|
323
|
+
description: l
|
|
324
|
+
};
|
|
325
|
+
break;
|
|
326
|
+
case 21:
|
|
327
|
+
this.$ = {
|
|
328
|
+
stmt: "state",
|
|
329
|
+
id: a[s - 3],
|
|
330
|
+
type: "default",
|
|
331
|
+
description: a[s - 5],
|
|
332
|
+
doc: a[s - 1]
|
|
333
|
+
};
|
|
334
|
+
break;
|
|
335
|
+
case 22:
|
|
336
|
+
this.$ = {
|
|
337
|
+
stmt: "state",
|
|
338
|
+
id: a[s],
|
|
339
|
+
type: "fork"
|
|
340
|
+
};
|
|
341
|
+
break;
|
|
342
|
+
case 23:
|
|
343
|
+
this.$ = {
|
|
344
|
+
stmt: "state",
|
|
345
|
+
id: a[s],
|
|
346
|
+
type: "join"
|
|
347
|
+
};
|
|
348
|
+
break;
|
|
349
|
+
case 24:
|
|
350
|
+
this.$ = {
|
|
351
|
+
stmt: "state",
|
|
352
|
+
id: a[s],
|
|
353
|
+
type: "choice"
|
|
354
|
+
};
|
|
355
|
+
break;
|
|
356
|
+
case 25:
|
|
357
|
+
this.$ = {
|
|
358
|
+
stmt: "state",
|
|
359
|
+
id: r.getDividerId(),
|
|
360
|
+
type: "divider"
|
|
361
|
+
};
|
|
362
|
+
break;
|
|
363
|
+
case 26:
|
|
364
|
+
this.$ = {
|
|
365
|
+
stmt: "state",
|
|
366
|
+
id: a[s - 1].trim(),
|
|
367
|
+
note: {
|
|
368
|
+
position: a[s - 2].trim(),
|
|
369
|
+
text: a[s].trim()
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
break;
|
|
373
|
+
case 29:
|
|
374
|
+
this.$ = a[s].trim(), r.setAccTitle(this.$);
|
|
375
|
+
break;
|
|
376
|
+
case 30:
|
|
377
|
+
case 31:
|
|
378
|
+
this.$ = a[s].trim(), r.setAccDescription(this.$);
|
|
379
|
+
break;
|
|
380
|
+
case 32:
|
|
381
|
+
this.$ = {
|
|
382
|
+
stmt: "click",
|
|
383
|
+
id: a[s - 3],
|
|
384
|
+
url: a[s - 2],
|
|
385
|
+
tooltip: a[s - 1]
|
|
386
|
+
};
|
|
387
|
+
break;
|
|
388
|
+
case 33:
|
|
389
|
+
this.$ = {
|
|
390
|
+
stmt: "click",
|
|
391
|
+
id: a[s - 3],
|
|
392
|
+
url: a[s - 1],
|
|
393
|
+
tooltip: ""
|
|
394
|
+
};
|
|
395
|
+
break;
|
|
396
|
+
case 34:
|
|
397
|
+
case 35:
|
|
398
|
+
this.$ = {
|
|
399
|
+
stmt: "classDef",
|
|
400
|
+
id: a[s - 1].trim(),
|
|
401
|
+
classes: a[s].trim()
|
|
402
|
+
};
|
|
403
|
+
break;
|
|
404
|
+
case 36:
|
|
405
|
+
this.$ = {
|
|
406
|
+
stmt: "style",
|
|
407
|
+
id: a[s - 1].trim(),
|
|
408
|
+
styleClass: a[s].trim()
|
|
409
|
+
};
|
|
410
|
+
break;
|
|
411
|
+
case 37:
|
|
412
|
+
this.$ = {
|
|
413
|
+
stmt: "applyClass",
|
|
414
|
+
id: a[s - 1].trim(),
|
|
415
|
+
styleClass: a[s].trim()
|
|
416
|
+
};
|
|
417
|
+
break;
|
|
418
|
+
case 38:
|
|
419
|
+
r.setDirection("TB"), this.$ = {
|
|
420
|
+
stmt: "dir",
|
|
421
|
+
value: "TB"
|
|
422
|
+
};
|
|
423
|
+
break;
|
|
424
|
+
case 39:
|
|
425
|
+
r.setDirection("BT"), this.$ = {
|
|
426
|
+
stmt: "dir",
|
|
427
|
+
value: "BT"
|
|
428
|
+
};
|
|
429
|
+
break;
|
|
430
|
+
case 40:
|
|
431
|
+
r.setDirection("RL"), this.$ = {
|
|
432
|
+
stmt: "dir",
|
|
433
|
+
value: "RL"
|
|
434
|
+
};
|
|
435
|
+
break;
|
|
436
|
+
case 41:
|
|
437
|
+
r.setDirection("LR"), this.$ = {
|
|
438
|
+
stmt: "dir",
|
|
439
|
+
value: "LR"
|
|
440
|
+
};
|
|
441
|
+
break;
|
|
442
|
+
case 44:
|
|
443
|
+
case 45:
|
|
444
|
+
this.$ = {
|
|
445
|
+
stmt: "state",
|
|
446
|
+
id: a[s].trim(),
|
|
447
|
+
type: "default",
|
|
448
|
+
description: ""
|
|
449
|
+
};
|
|
450
|
+
break;
|
|
451
|
+
case 46:
|
|
452
|
+
this.$ = {
|
|
453
|
+
stmt: "state",
|
|
454
|
+
id: a[s - 2].trim(),
|
|
455
|
+
classes: [a[s].trim()],
|
|
456
|
+
type: "default",
|
|
457
|
+
description: ""
|
|
458
|
+
};
|
|
459
|
+
break;
|
|
460
|
+
case 47:
|
|
461
|
+
this.$ = {
|
|
462
|
+
stmt: "state",
|
|
463
|
+
id: a[s - 2].trim(),
|
|
464
|
+
classes: [a[s].trim()],
|
|
465
|
+
type: "default",
|
|
466
|
+
description: ""
|
|
467
|
+
};
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
}, "anonymous"),
|
|
471
|
+
table: [
|
|
472
|
+
{
|
|
473
|
+
3: 1,
|
|
474
|
+
4: n,
|
|
475
|
+
5: r,
|
|
476
|
+
6: i
|
|
477
|
+
},
|
|
478
|
+
{ 1: [3] },
|
|
479
|
+
{
|
|
480
|
+
3: 5,
|
|
481
|
+
4: n,
|
|
482
|
+
5: r,
|
|
483
|
+
6: i
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
3: 6,
|
|
487
|
+
4: n,
|
|
488
|
+
5: r,
|
|
489
|
+
6: i
|
|
490
|
+
},
|
|
491
|
+
e([
|
|
492
|
+
1,
|
|
493
|
+
4,
|
|
494
|
+
5,
|
|
495
|
+
16,
|
|
496
|
+
17,
|
|
497
|
+
19,
|
|
498
|
+
22,
|
|
499
|
+
24,
|
|
500
|
+
25,
|
|
501
|
+
26,
|
|
502
|
+
27,
|
|
503
|
+
28,
|
|
504
|
+
29,
|
|
505
|
+
33,
|
|
506
|
+
35,
|
|
507
|
+
37,
|
|
508
|
+
38,
|
|
509
|
+
41,
|
|
510
|
+
45,
|
|
511
|
+
48,
|
|
512
|
+
51,
|
|
513
|
+
52,
|
|
514
|
+
53,
|
|
515
|
+
54,
|
|
516
|
+
57
|
|
517
|
+
], a, { 7: 7 }),
|
|
518
|
+
{ 1: [2, 1] },
|
|
519
|
+
{ 1: [2, 2] },
|
|
520
|
+
{
|
|
521
|
+
1: [2, 3],
|
|
522
|
+
4: o,
|
|
523
|
+
5: s,
|
|
524
|
+
8: 8,
|
|
525
|
+
9: 10,
|
|
526
|
+
10: 12,
|
|
527
|
+
11: 13,
|
|
528
|
+
12: 14,
|
|
529
|
+
13: 15,
|
|
530
|
+
16: c,
|
|
531
|
+
17: l,
|
|
532
|
+
19: u,
|
|
533
|
+
22: d,
|
|
534
|
+
24: f,
|
|
535
|
+
25: p,
|
|
536
|
+
26: m,
|
|
537
|
+
27: h,
|
|
538
|
+
28: g,
|
|
539
|
+
29: _,
|
|
540
|
+
32: 25,
|
|
541
|
+
33: v,
|
|
542
|
+
35: y,
|
|
543
|
+
37: b,
|
|
544
|
+
38: x,
|
|
545
|
+
41: S,
|
|
546
|
+
45: C,
|
|
547
|
+
48: w,
|
|
548
|
+
51: T,
|
|
549
|
+
52: E,
|
|
550
|
+
53: D,
|
|
551
|
+
54: O,
|
|
552
|
+
57: k
|
|
553
|
+
},
|
|
554
|
+
e(A, [2, 5]),
|
|
555
|
+
{
|
|
556
|
+
9: 39,
|
|
557
|
+
10: 12,
|
|
558
|
+
11: 13,
|
|
559
|
+
12: 14,
|
|
560
|
+
13: 15,
|
|
561
|
+
16: c,
|
|
562
|
+
17: l,
|
|
563
|
+
19: u,
|
|
564
|
+
22: d,
|
|
565
|
+
24: f,
|
|
566
|
+
25: p,
|
|
567
|
+
26: m,
|
|
568
|
+
27: h,
|
|
569
|
+
28: g,
|
|
570
|
+
29: _,
|
|
571
|
+
32: 25,
|
|
572
|
+
33: v,
|
|
573
|
+
35: y,
|
|
574
|
+
37: b,
|
|
575
|
+
38: x,
|
|
576
|
+
41: S,
|
|
577
|
+
45: C,
|
|
578
|
+
48: w,
|
|
579
|
+
51: T,
|
|
580
|
+
52: E,
|
|
581
|
+
53: D,
|
|
582
|
+
54: O,
|
|
583
|
+
57: k
|
|
584
|
+
},
|
|
585
|
+
e(A, [2, 7]),
|
|
586
|
+
e(A, [2, 8]),
|
|
587
|
+
e(A, [2, 9]),
|
|
588
|
+
e(A, [2, 10]),
|
|
589
|
+
e(A, [2, 11]),
|
|
590
|
+
e(A, [2, 12], {
|
|
591
|
+
14: [1, 40],
|
|
592
|
+
15: [1, 41]
|
|
593
|
+
}),
|
|
594
|
+
e(A, [2, 16]),
|
|
595
|
+
{ 18: [1, 42] },
|
|
596
|
+
e(A, [2, 18], { 20: [1, 43] }),
|
|
597
|
+
{ 23: [1, 44] },
|
|
598
|
+
e(A, [2, 22]),
|
|
599
|
+
e(A, [2, 23]),
|
|
600
|
+
e(A, [2, 24]),
|
|
601
|
+
e(A, [2, 25]),
|
|
602
|
+
{
|
|
603
|
+
30: 45,
|
|
604
|
+
31: [1, 46],
|
|
605
|
+
59: [1, 47],
|
|
606
|
+
60: [1, 48]
|
|
607
|
+
},
|
|
608
|
+
e(A, [2, 28]),
|
|
609
|
+
{ 34: [1, 49] },
|
|
610
|
+
{ 36: [1, 50] },
|
|
611
|
+
e(A, [2, 31]),
|
|
612
|
+
{
|
|
613
|
+
13: 51,
|
|
614
|
+
24: f,
|
|
615
|
+
57: k
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
42: [1, 52],
|
|
619
|
+
44: [1, 53]
|
|
620
|
+
},
|
|
621
|
+
{ 46: [1, 54] },
|
|
622
|
+
{ 49: [1, 55] },
|
|
623
|
+
e(j, [2, 44], { 58: [1, 56] }),
|
|
624
|
+
e(j, [2, 45], { 58: [1, 57] }),
|
|
625
|
+
e(A, [2, 38]),
|
|
626
|
+
e(A, [2, 39]),
|
|
627
|
+
e(A, [2, 40]),
|
|
628
|
+
e(A, [2, 41]),
|
|
629
|
+
e(A, [2, 6]),
|
|
630
|
+
e(A, [2, 13]),
|
|
631
|
+
{
|
|
632
|
+
13: 58,
|
|
633
|
+
24: f,
|
|
634
|
+
57: k
|
|
635
|
+
},
|
|
636
|
+
e(A, [2, 17]),
|
|
637
|
+
e(M, a, { 7: 59 }),
|
|
638
|
+
{ 24: [1, 60] },
|
|
639
|
+
{ 24: [1, 61] },
|
|
640
|
+
{ 23: [1, 62] },
|
|
641
|
+
{ 24: [2, 48] },
|
|
642
|
+
{ 24: [2, 49] },
|
|
643
|
+
e(A, [2, 29]),
|
|
644
|
+
e(A, [2, 30]),
|
|
645
|
+
{
|
|
646
|
+
39: [1, 63],
|
|
647
|
+
40: [1, 64]
|
|
648
|
+
},
|
|
649
|
+
{ 43: [1, 65] },
|
|
650
|
+
{ 43: [1, 66] },
|
|
651
|
+
{ 47: [1, 67] },
|
|
652
|
+
{ 50: [1, 68] },
|
|
653
|
+
{ 24: [1, 69] },
|
|
654
|
+
{ 24: [1, 70] },
|
|
655
|
+
e(A, [2, 14], { 14: [1, 71] }),
|
|
656
|
+
{
|
|
657
|
+
4: o,
|
|
658
|
+
5: s,
|
|
659
|
+
8: 8,
|
|
660
|
+
9: 10,
|
|
661
|
+
10: 12,
|
|
662
|
+
11: 13,
|
|
663
|
+
12: 14,
|
|
664
|
+
13: 15,
|
|
665
|
+
16: c,
|
|
666
|
+
17: l,
|
|
667
|
+
19: u,
|
|
668
|
+
21: [1, 72],
|
|
669
|
+
22: d,
|
|
670
|
+
24: f,
|
|
671
|
+
25: p,
|
|
672
|
+
26: m,
|
|
673
|
+
27: h,
|
|
674
|
+
28: g,
|
|
675
|
+
29: _,
|
|
676
|
+
32: 25,
|
|
677
|
+
33: v,
|
|
678
|
+
35: y,
|
|
679
|
+
37: b,
|
|
680
|
+
38: x,
|
|
681
|
+
41: S,
|
|
682
|
+
45: C,
|
|
683
|
+
48: w,
|
|
684
|
+
51: T,
|
|
685
|
+
52: E,
|
|
686
|
+
53: D,
|
|
687
|
+
54: O,
|
|
688
|
+
57: k
|
|
689
|
+
},
|
|
690
|
+
e(A, [2, 20], { 20: [1, 73] }),
|
|
691
|
+
{ 31: [1, 74] },
|
|
692
|
+
{ 24: [1, 75] },
|
|
693
|
+
{ 39: [1, 76] },
|
|
694
|
+
{ 39: [1, 77] },
|
|
695
|
+
e(A, [2, 34]),
|
|
696
|
+
e(A, [2, 35]),
|
|
697
|
+
e(A, [2, 36]),
|
|
698
|
+
e(A, [2, 37]),
|
|
699
|
+
e(j, [2, 46]),
|
|
700
|
+
e(j, [2, 47]),
|
|
701
|
+
e(A, [2, 15]),
|
|
702
|
+
e(A, [2, 19]),
|
|
703
|
+
e(M, a, { 7: 78 }),
|
|
704
|
+
e(A, [2, 26]),
|
|
705
|
+
e(A, [2, 27]),
|
|
706
|
+
{ 5: [1, 79] },
|
|
707
|
+
{ 5: [1, 80] },
|
|
708
|
+
{
|
|
709
|
+
4: o,
|
|
710
|
+
5: s,
|
|
711
|
+
8: 8,
|
|
712
|
+
9: 10,
|
|
713
|
+
10: 12,
|
|
714
|
+
11: 13,
|
|
715
|
+
12: 14,
|
|
716
|
+
13: 15,
|
|
717
|
+
16: c,
|
|
718
|
+
17: l,
|
|
719
|
+
19: u,
|
|
720
|
+
21: [1, 81],
|
|
721
|
+
22: d,
|
|
722
|
+
24: f,
|
|
723
|
+
25: p,
|
|
724
|
+
26: m,
|
|
725
|
+
27: h,
|
|
726
|
+
28: g,
|
|
727
|
+
29: _,
|
|
728
|
+
32: 25,
|
|
729
|
+
33: v,
|
|
730
|
+
35: y,
|
|
731
|
+
37: b,
|
|
732
|
+
38: x,
|
|
733
|
+
41: S,
|
|
734
|
+
45: C,
|
|
735
|
+
48: w,
|
|
736
|
+
51: T,
|
|
737
|
+
52: E,
|
|
738
|
+
53: D,
|
|
739
|
+
54: O,
|
|
740
|
+
57: k
|
|
741
|
+
},
|
|
742
|
+
e(A, [2, 32]),
|
|
743
|
+
e(A, [2, 33]),
|
|
744
|
+
e(A, [2, 21])
|
|
745
|
+
],
|
|
746
|
+
defaultActions: {
|
|
747
|
+
5: [2, 1],
|
|
748
|
+
6: [2, 2],
|
|
749
|
+
47: [2, 48],
|
|
750
|
+
48: [2, 49]
|
|
751
|
+
},
|
|
752
|
+
parseError: /* @__PURE__ */ t(function(e, t) {
|
|
753
|
+
if (t.recoverable) this.trace(e);
|
|
754
|
+
else {
|
|
755
|
+
var n = Error(e);
|
|
756
|
+
throw n.hash = t, n;
|
|
757
|
+
}
|
|
758
|
+
}, "parseError"),
|
|
759
|
+
parse: /* @__PURE__ */ t(function(e) {
|
|
760
|
+
var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
761
|
+
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
762
|
+
h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
763
|
+
var v = h.yylloc;
|
|
764
|
+
o.push(v);
|
|
765
|
+
var y = h.options && h.options.ranges;
|
|
766
|
+
typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
767
|
+
function b(e) {
|
|
768
|
+
r.length -= 2 * e, a.length -= e, o.length -= e;
|
|
769
|
+
}
|
|
770
|
+
t(b, "popStack");
|
|
771
|
+
function x() {
|
|
772
|
+
var e = i.pop() || h.lex() || p;
|
|
773
|
+
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
|
|
774
|
+
}
|
|
775
|
+
t(x, "lex");
|
|
776
|
+
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
777
|
+
if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
778
|
+
var M = "";
|
|
779
|
+
for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
|
|
780
|
+
M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
|
|
781
|
+
text: h.match,
|
|
782
|
+
token: this.terminals_[S] || S,
|
|
783
|
+
line: h.yylineno,
|
|
784
|
+
loc: v,
|
|
785
|
+
expected: j
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
|
|
789
|
+
switch (T[0]) {
|
|
790
|
+
case 1:
|
|
791
|
+
r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
|
|
792
|
+
break;
|
|
793
|
+
case 2:
|
|
794
|
+
if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
|
|
795
|
+
first_line: o[o.length - (k || 1)].first_line,
|
|
796
|
+
last_line: o[o.length - 1].last_line,
|
|
797
|
+
first_column: o[o.length - (k || 1)].first_column,
|
|
798
|
+
last_column: o[o.length - 1].last_column
|
|
799
|
+
}, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
|
|
800
|
+
c,
|
|
801
|
+
u,
|
|
802
|
+
l,
|
|
803
|
+
g.yy,
|
|
804
|
+
T[1],
|
|
805
|
+
a,
|
|
806
|
+
o
|
|
807
|
+
].concat(m)), E !== void 0) return E;
|
|
808
|
+
k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
|
|
809
|
+
break;
|
|
810
|
+
case 3: return !0;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
return !0;
|
|
814
|
+
}, "parse")
|
|
815
|
+
};
|
|
816
|
+
N.lexer = /* @__PURE__ */ (function() {
|
|
817
|
+
return {
|
|
818
|
+
EOF: 1,
|
|
819
|
+
parseError: /* @__PURE__ */ t(function(e, t) {
|
|
820
|
+
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
821
|
+
else throw Error(e);
|
|
822
|
+
}, "parseError"),
|
|
823
|
+
setInput: /* @__PURE__ */ t(function(e, t) {
|
|
824
|
+
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
825
|
+
first_line: 1,
|
|
826
|
+
first_column: 0,
|
|
827
|
+
last_line: 1,
|
|
828
|
+
last_column: 0
|
|
829
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
830
|
+
}, "setInput"),
|
|
831
|
+
input: /* @__PURE__ */ t(function() {
|
|
832
|
+
var e = this._input[0];
|
|
833
|
+
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
834
|
+
}, "input"),
|
|
835
|
+
unput: /* @__PURE__ */ t(function(e) {
|
|
836
|
+
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
837
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
838
|
+
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
839
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
840
|
+
var i = this.yylloc.range;
|
|
841
|
+
return this.yylloc = {
|
|
842
|
+
first_line: this.yylloc.first_line,
|
|
843
|
+
last_line: this.yylineno + 1,
|
|
844
|
+
first_column: this.yylloc.first_column,
|
|
845
|
+
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
846
|
+
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
847
|
+
}, "unput"),
|
|
848
|
+
more: /* @__PURE__ */ t(function() {
|
|
849
|
+
return this._more = !0, this;
|
|
850
|
+
}, "more"),
|
|
851
|
+
reject: /* @__PURE__ */ t(function() {
|
|
852
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
853
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
854
|
+
text: "",
|
|
855
|
+
token: null,
|
|
856
|
+
line: this.yylineno
|
|
857
|
+
});
|
|
858
|
+
return this;
|
|
859
|
+
}, "reject"),
|
|
860
|
+
less: /* @__PURE__ */ t(function(e) {
|
|
861
|
+
this.unput(this.match.slice(e));
|
|
862
|
+
}, "less"),
|
|
863
|
+
pastInput: /* @__PURE__ */ t(function() {
|
|
864
|
+
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
865
|
+
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
866
|
+
}, "pastInput"),
|
|
867
|
+
upcomingInput: /* @__PURE__ */ t(function() {
|
|
868
|
+
var e = this.match;
|
|
869
|
+
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
870
|
+
}, "upcomingInput"),
|
|
871
|
+
showPosition: /* @__PURE__ */ t(function() {
|
|
872
|
+
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
873
|
+
return e + this.upcomingInput() + "\n" + t + "^";
|
|
874
|
+
}, "showPosition"),
|
|
875
|
+
test_match: /* @__PURE__ */ t(function(e, t) {
|
|
876
|
+
var n, r, i;
|
|
877
|
+
if (this.options.backtrack_lexer && (i = {
|
|
878
|
+
yylineno: this.yylineno,
|
|
879
|
+
yylloc: {
|
|
880
|
+
first_line: this.yylloc.first_line,
|
|
881
|
+
last_line: this.last_line,
|
|
882
|
+
first_column: this.yylloc.first_column,
|
|
883
|
+
last_column: this.yylloc.last_column
|
|
884
|
+
},
|
|
885
|
+
yytext: this.yytext,
|
|
886
|
+
match: this.match,
|
|
887
|
+
matches: this.matches,
|
|
888
|
+
matched: this.matched,
|
|
889
|
+
yyleng: this.yyleng,
|
|
890
|
+
offset: this.offset,
|
|
891
|
+
_more: this._more,
|
|
892
|
+
_input: this._input,
|
|
893
|
+
yy: this.yy,
|
|
894
|
+
conditionStack: this.conditionStack.slice(0),
|
|
895
|
+
done: this.done
|
|
896
|
+
}, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
897
|
+
first_line: this.yylloc.last_line,
|
|
898
|
+
last_line: this.yylineno + 1,
|
|
899
|
+
first_column: this.yylloc.last_column,
|
|
900
|
+
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
901
|
+
}, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
|
|
902
|
+
if (this._backtrack) {
|
|
903
|
+
for (var a in i) this[a] = i[a];
|
|
904
|
+
return !1;
|
|
905
|
+
}
|
|
906
|
+
return !1;
|
|
907
|
+
}, "test_match"),
|
|
908
|
+
next: /* @__PURE__ */ t(function() {
|
|
909
|
+
if (this.done) return this.EOF;
|
|
910
|
+
this._input || (this.done = !0);
|
|
911
|
+
var e, t, n, r;
|
|
912
|
+
this._more || (this.yytext = "", this.match = "");
|
|
913
|
+
for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
|
|
914
|
+
if (t = n, r = a, this.options.backtrack_lexer) {
|
|
915
|
+
if (e = this.test_match(n, i[a]), e !== !1) return e;
|
|
916
|
+
if (this._backtrack) {
|
|
917
|
+
t = !1;
|
|
918
|
+
continue;
|
|
919
|
+
} else return !1;
|
|
920
|
+
} else if (!this.options.flex) break;
|
|
921
|
+
}
|
|
922
|
+
return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
923
|
+
text: "",
|
|
924
|
+
token: null,
|
|
925
|
+
line: this.yylineno
|
|
926
|
+
});
|
|
927
|
+
}, "next"),
|
|
928
|
+
lex: /* @__PURE__ */ t(function() {
|
|
929
|
+
return this.next() || this.lex();
|
|
930
|
+
}, "lex"),
|
|
931
|
+
begin: /* @__PURE__ */ t(function(e) {
|
|
932
|
+
this.conditionStack.push(e);
|
|
933
|
+
}, "begin"),
|
|
934
|
+
popState: /* @__PURE__ */ t(function() {
|
|
935
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
936
|
+
}, "popState"),
|
|
937
|
+
_currentRules: /* @__PURE__ */ t(function() {
|
|
938
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
939
|
+
}, "_currentRules"),
|
|
940
|
+
topState: /* @__PURE__ */ t(function(e) {
|
|
941
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
942
|
+
}, "topState"),
|
|
943
|
+
pushState: /* @__PURE__ */ t(function(e) {
|
|
944
|
+
this.begin(e);
|
|
945
|
+
}, "pushState"),
|
|
946
|
+
stateStackSize: /* @__PURE__ */ t(function() {
|
|
947
|
+
return this.conditionStack.length;
|
|
948
|
+
}, "stateStackSize"),
|
|
949
|
+
options: { "case-insensitive": !0 },
|
|
950
|
+
performAction: /* @__PURE__ */ t(function(e, t, n, r) {
|
|
951
|
+
switch (n) {
|
|
952
|
+
case 0: return 38;
|
|
953
|
+
case 1: return 40;
|
|
954
|
+
case 2: return 39;
|
|
955
|
+
case 3: return 44;
|
|
956
|
+
case 4: return 51;
|
|
957
|
+
case 5: return 52;
|
|
958
|
+
case 6: return 53;
|
|
959
|
+
case 7: return 54;
|
|
960
|
+
case 8: break;
|
|
961
|
+
case 9: break;
|
|
962
|
+
case 10: return 5;
|
|
963
|
+
case 11: break;
|
|
964
|
+
case 12: break;
|
|
965
|
+
case 13: break;
|
|
966
|
+
case 14: break;
|
|
967
|
+
case 15: return this.pushState("SCALE"), 17;
|
|
968
|
+
case 16: return 18;
|
|
969
|
+
case 17:
|
|
970
|
+
this.popState();
|
|
971
|
+
break;
|
|
972
|
+
case 18: return this.begin("acc_title"), 33;
|
|
973
|
+
case 19: return this.popState(), "acc_title_value";
|
|
974
|
+
case 20: return this.begin("acc_descr"), 35;
|
|
975
|
+
case 21: return this.popState(), "acc_descr_value";
|
|
976
|
+
case 22:
|
|
977
|
+
this.begin("acc_descr_multiline");
|
|
978
|
+
break;
|
|
979
|
+
case 23:
|
|
980
|
+
this.popState();
|
|
981
|
+
break;
|
|
982
|
+
case 24: return "acc_descr_multiline_value";
|
|
983
|
+
case 25: return this.pushState("CLASSDEF"), 41;
|
|
984
|
+
case 26: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
985
|
+
case 27: return this.popState(), this.pushState("CLASSDEFID"), 42;
|
|
986
|
+
case 28: return this.popState(), 43;
|
|
987
|
+
case 29: return this.pushState("CLASS"), 48;
|
|
988
|
+
case 30: return this.popState(), this.pushState("CLASS_STYLE"), 49;
|
|
989
|
+
case 31: return this.popState(), 50;
|
|
990
|
+
case 32: return this.pushState("STYLE"), 45;
|
|
991
|
+
case 33: return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
|
|
992
|
+
case 34: return this.popState(), 47;
|
|
993
|
+
case 35: return this.pushState("SCALE"), 17;
|
|
994
|
+
case 36: return 18;
|
|
995
|
+
case 37:
|
|
996
|
+
this.popState();
|
|
997
|
+
break;
|
|
998
|
+
case 38:
|
|
999
|
+
this.pushState("STATE");
|
|
1000
|
+
break;
|
|
1001
|
+
case 39: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
|
|
1002
|
+
case 40: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
|
|
1003
|
+
case 41: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
|
|
1004
|
+
case 42: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
|
|
1005
|
+
case 43: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
|
|
1006
|
+
case 44: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
|
|
1007
|
+
case 45: return 51;
|
|
1008
|
+
case 46: return 52;
|
|
1009
|
+
case 47: return 53;
|
|
1010
|
+
case 48: return 54;
|
|
1011
|
+
case 49:
|
|
1012
|
+
this.pushState("STATE_STRING");
|
|
1013
|
+
break;
|
|
1014
|
+
case 50: return this.pushState("STATE_ID"), "AS";
|
|
1015
|
+
case 51: return this.popState(), "ID";
|
|
1016
|
+
case 52:
|
|
1017
|
+
this.popState();
|
|
1018
|
+
break;
|
|
1019
|
+
case 53: return "STATE_DESCR";
|
|
1020
|
+
case 54: return 19;
|
|
1021
|
+
case 55:
|
|
1022
|
+
this.popState();
|
|
1023
|
+
break;
|
|
1024
|
+
case 56: return this.popState(), this.pushState("struct"), 20;
|
|
1025
|
+
case 57: break;
|
|
1026
|
+
case 58: return this.popState(), 21;
|
|
1027
|
+
case 59: break;
|
|
1028
|
+
case 60: return this.begin("NOTE"), 29;
|
|
1029
|
+
case 61: return this.popState(), this.pushState("NOTE_ID"), 59;
|
|
1030
|
+
case 62: return this.popState(), this.pushState("NOTE_ID"), 60;
|
|
1031
|
+
case 63:
|
|
1032
|
+
this.popState(), this.pushState("FLOATING_NOTE");
|
|
1033
|
+
break;
|
|
1034
|
+
case 64: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
|
|
1035
|
+
case 65: break;
|
|
1036
|
+
case 66: return "NOTE_TEXT";
|
|
1037
|
+
case 67: return this.popState(), "ID";
|
|
1038
|
+
case 68: return this.popState(), this.pushState("NOTE_TEXT"), 24;
|
|
1039
|
+
case 69: return this.popState(), t.yytext = t.yytext.substr(2).trim(), 31;
|
|
1040
|
+
case 70: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 31;
|
|
1041
|
+
case 71: return 6;
|
|
1042
|
+
case 72: return 6;
|
|
1043
|
+
case 73: return 16;
|
|
1044
|
+
case 74: return 57;
|
|
1045
|
+
case 75: return 24;
|
|
1046
|
+
case 76: return t.yytext = t.yytext.trim(), 14;
|
|
1047
|
+
case 77: return 15;
|
|
1048
|
+
case 78: return 28;
|
|
1049
|
+
case 79: return 58;
|
|
1050
|
+
case 80: return 5;
|
|
1051
|
+
case 81: return "INVALID";
|
|
1052
|
+
}
|
|
1053
|
+
}, "anonymous"),
|
|
1054
|
+
rules: [
|
|
1055
|
+
/^(?:click\b)/i,
|
|
1056
|
+
/^(?:href\b)/i,
|
|
1057
|
+
/^(?:"[^"]*")/i,
|
|
1058
|
+
/^(?:default\b)/i,
|
|
1059
|
+
/^(?:.*direction\s+TB[^\n]*)/i,
|
|
1060
|
+
/^(?:.*direction\s+BT[^\n]*)/i,
|
|
1061
|
+
/^(?:.*direction\s+RL[^\n]*)/i,
|
|
1062
|
+
/^(?:.*direction\s+LR[^\n]*)/i,
|
|
1063
|
+
/^(?:%%(?!\{)[^\n]*)/i,
|
|
1064
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
1065
|
+
/^(?:[\n]+)/i,
|
|
1066
|
+
/^(?:[\s]+)/i,
|
|
1067
|
+
/^(?:((?!\n)\s)+)/i,
|
|
1068
|
+
/^(?:#[^\n]*)/i,
|
|
1069
|
+
/^(?:%[^\n]*)/i,
|
|
1070
|
+
/^(?:scale\s+)/i,
|
|
1071
|
+
/^(?:\d+)/i,
|
|
1072
|
+
/^(?:\s+width\b)/i,
|
|
1073
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
1074
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1075
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
1076
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1077
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
1078
|
+
/^(?:[\}])/i,
|
|
1079
|
+
/^(?:[^\}]*)/i,
|
|
1080
|
+
/^(?:classDef\s+)/i,
|
|
1081
|
+
/^(?:DEFAULT\s+)/i,
|
|
1082
|
+
/^(?:\w+\s+)/i,
|
|
1083
|
+
/^(?:[^\n]*)/i,
|
|
1084
|
+
/^(?:class\s+)/i,
|
|
1085
|
+
/^(?:(\w+)+((,\s*\w+)*))/i,
|
|
1086
|
+
/^(?:[^\n]*)/i,
|
|
1087
|
+
/^(?:style\s+)/i,
|
|
1088
|
+
/^(?:[\w,]+\s+)/i,
|
|
1089
|
+
/^(?:[^\n]*)/i,
|
|
1090
|
+
/^(?:scale\s+)/i,
|
|
1091
|
+
/^(?:\d+)/i,
|
|
1092
|
+
/^(?:\s+width\b)/i,
|
|
1093
|
+
/^(?:state\s+)/i,
|
|
1094
|
+
/^(?:.*<<fork>>)/i,
|
|
1095
|
+
/^(?:.*<<join>>)/i,
|
|
1096
|
+
/^(?:.*<<choice>>)/i,
|
|
1097
|
+
/^(?:.*\[\[fork\]\])/i,
|
|
1098
|
+
/^(?:.*\[\[join\]\])/i,
|
|
1099
|
+
/^(?:.*\[\[choice\]\])/i,
|
|
1100
|
+
/^(?:.*direction\s+TB[^\n]*)/i,
|
|
1101
|
+
/^(?:.*direction\s+BT[^\n]*)/i,
|
|
1102
|
+
/^(?:.*direction\s+RL[^\n]*)/i,
|
|
1103
|
+
/^(?:.*direction\s+LR[^\n]*)/i,
|
|
1104
|
+
/^(?:["])/i,
|
|
1105
|
+
/^(?:\s*as\s+)/i,
|
|
1106
|
+
/^(?:[^\n\{]*)/i,
|
|
1107
|
+
/^(?:["])/i,
|
|
1108
|
+
/^(?:[^"]*)/i,
|
|
1109
|
+
/^(?:[^\n\s\{]+)/i,
|
|
1110
|
+
/^(?:\n)/i,
|
|
1111
|
+
/^(?:\{)/i,
|
|
1112
|
+
/^(?:%%(?!\{)[^\n]*)/i,
|
|
1113
|
+
/^(?:\})/i,
|
|
1114
|
+
/^(?:[\n])/i,
|
|
1115
|
+
/^(?:note\s+)/i,
|
|
1116
|
+
/^(?:left of\b)/i,
|
|
1117
|
+
/^(?:right of\b)/i,
|
|
1118
|
+
/^(?:")/i,
|
|
1119
|
+
/^(?:\s*as\s*)/i,
|
|
1120
|
+
/^(?:["])/i,
|
|
1121
|
+
/^(?:[^"]*)/i,
|
|
1122
|
+
/^(?:[^\n]*)/i,
|
|
1123
|
+
/^(?:\s*[^:\n\s\-]+)/i,
|
|
1124
|
+
/^(?:\s*:[^:\n;]+)/i,
|
|
1125
|
+
/^(?:[\s\S]*?end note\b)/i,
|
|
1126
|
+
/^(?:stateDiagram\s+)/i,
|
|
1127
|
+
/^(?:stateDiagram-v2\s+)/i,
|
|
1128
|
+
/^(?:hide empty description\b)/i,
|
|
1129
|
+
/^(?:\[\*\])/i,
|
|
1130
|
+
/^(?:[^:\n\s\-\{]+)/i,
|
|
1131
|
+
/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,
|
|
1132
|
+
/^(?:-->)/i,
|
|
1133
|
+
/^(?:--)/i,
|
|
1134
|
+
/^(?::::)/i,
|
|
1135
|
+
/^(?:$)/i,
|
|
1136
|
+
/^(?:.)/i
|
|
1137
|
+
],
|
|
1138
|
+
conditions: {
|
|
1139
|
+
LINE: {
|
|
1140
|
+
rules: [12, 13],
|
|
1141
|
+
inclusive: !1
|
|
1142
|
+
},
|
|
1143
|
+
struct: {
|
|
1144
|
+
rules: [
|
|
1145
|
+
12,
|
|
1146
|
+
13,
|
|
1147
|
+
25,
|
|
1148
|
+
29,
|
|
1149
|
+
32,
|
|
1150
|
+
38,
|
|
1151
|
+
45,
|
|
1152
|
+
46,
|
|
1153
|
+
47,
|
|
1154
|
+
48,
|
|
1155
|
+
57,
|
|
1156
|
+
58,
|
|
1157
|
+
59,
|
|
1158
|
+
60,
|
|
1159
|
+
74,
|
|
1160
|
+
75,
|
|
1161
|
+
76,
|
|
1162
|
+
77,
|
|
1163
|
+
78,
|
|
1164
|
+
79
|
|
1165
|
+
],
|
|
1166
|
+
inclusive: !1
|
|
1167
|
+
},
|
|
1168
|
+
FLOATING_NOTE_ID: {
|
|
1169
|
+
rules: [67],
|
|
1170
|
+
inclusive: !1
|
|
1171
|
+
},
|
|
1172
|
+
FLOATING_NOTE: {
|
|
1173
|
+
rules: [
|
|
1174
|
+
64,
|
|
1175
|
+
65,
|
|
1176
|
+
66
|
|
1177
|
+
],
|
|
1178
|
+
inclusive: !1
|
|
1179
|
+
},
|
|
1180
|
+
NOTE_TEXT: {
|
|
1181
|
+
rules: [69, 70],
|
|
1182
|
+
inclusive: !1
|
|
1183
|
+
},
|
|
1184
|
+
NOTE_ID: {
|
|
1185
|
+
rules: [68],
|
|
1186
|
+
inclusive: !1
|
|
1187
|
+
},
|
|
1188
|
+
NOTE: {
|
|
1189
|
+
rules: [
|
|
1190
|
+
61,
|
|
1191
|
+
62,
|
|
1192
|
+
63
|
|
1193
|
+
],
|
|
1194
|
+
inclusive: !1
|
|
1195
|
+
},
|
|
1196
|
+
STYLEDEF_STYLEOPTS: {
|
|
1197
|
+
rules: [],
|
|
1198
|
+
inclusive: !1
|
|
1199
|
+
},
|
|
1200
|
+
STYLEDEF_STYLES: {
|
|
1201
|
+
rules: [34],
|
|
1202
|
+
inclusive: !1
|
|
1203
|
+
},
|
|
1204
|
+
STYLE_IDS: {
|
|
1205
|
+
rules: [],
|
|
1206
|
+
inclusive: !1
|
|
1207
|
+
},
|
|
1208
|
+
STYLE: {
|
|
1209
|
+
rules: [33],
|
|
1210
|
+
inclusive: !1
|
|
1211
|
+
},
|
|
1212
|
+
CLASS_STYLE: {
|
|
1213
|
+
rules: [31],
|
|
1214
|
+
inclusive: !1
|
|
1215
|
+
},
|
|
1216
|
+
CLASS: {
|
|
1217
|
+
rules: [30],
|
|
1218
|
+
inclusive: !1
|
|
1219
|
+
},
|
|
1220
|
+
CLASSDEFID: {
|
|
1221
|
+
rules: [28],
|
|
1222
|
+
inclusive: !1
|
|
1223
|
+
},
|
|
1224
|
+
CLASSDEF: {
|
|
1225
|
+
rules: [26, 27],
|
|
1226
|
+
inclusive: !1
|
|
1227
|
+
},
|
|
1228
|
+
acc_descr_multiline: {
|
|
1229
|
+
rules: [23, 24],
|
|
1230
|
+
inclusive: !1
|
|
1231
|
+
},
|
|
1232
|
+
acc_descr: {
|
|
1233
|
+
rules: [21],
|
|
1234
|
+
inclusive: !1
|
|
1235
|
+
},
|
|
1236
|
+
acc_title: {
|
|
1237
|
+
rules: [19],
|
|
1238
|
+
inclusive: !1
|
|
1239
|
+
},
|
|
1240
|
+
SCALE: {
|
|
1241
|
+
rules: [
|
|
1242
|
+
16,
|
|
1243
|
+
17,
|
|
1244
|
+
36,
|
|
1245
|
+
37
|
|
1246
|
+
],
|
|
1247
|
+
inclusive: !1
|
|
1248
|
+
},
|
|
1249
|
+
ALIAS: {
|
|
1250
|
+
rules: [],
|
|
1251
|
+
inclusive: !1
|
|
1252
|
+
},
|
|
1253
|
+
STATE_ID: {
|
|
1254
|
+
rules: [51],
|
|
1255
|
+
inclusive: !1
|
|
1256
|
+
},
|
|
1257
|
+
STATE_STRING: {
|
|
1258
|
+
rules: [52, 53],
|
|
1259
|
+
inclusive: !1
|
|
1260
|
+
},
|
|
1261
|
+
FORK_STATE: {
|
|
1262
|
+
rules: [],
|
|
1263
|
+
inclusive: !1
|
|
1264
|
+
},
|
|
1265
|
+
STATE: {
|
|
1266
|
+
rules: [
|
|
1267
|
+
12,
|
|
1268
|
+
13,
|
|
1269
|
+
39,
|
|
1270
|
+
40,
|
|
1271
|
+
41,
|
|
1272
|
+
42,
|
|
1273
|
+
43,
|
|
1274
|
+
44,
|
|
1275
|
+
49,
|
|
1276
|
+
50,
|
|
1277
|
+
54,
|
|
1278
|
+
55,
|
|
1279
|
+
56
|
|
1280
|
+
],
|
|
1281
|
+
inclusive: !1
|
|
1282
|
+
},
|
|
1283
|
+
ID: {
|
|
1284
|
+
rules: [12, 13],
|
|
1285
|
+
inclusive: !1
|
|
1286
|
+
},
|
|
1287
|
+
INITIAL: {
|
|
1288
|
+
rules: [
|
|
1289
|
+
0,
|
|
1290
|
+
1,
|
|
1291
|
+
2,
|
|
1292
|
+
3,
|
|
1293
|
+
4,
|
|
1294
|
+
5,
|
|
1295
|
+
6,
|
|
1296
|
+
7,
|
|
1297
|
+
8,
|
|
1298
|
+
9,
|
|
1299
|
+
10,
|
|
1300
|
+
11,
|
|
1301
|
+
13,
|
|
1302
|
+
14,
|
|
1303
|
+
15,
|
|
1304
|
+
18,
|
|
1305
|
+
20,
|
|
1306
|
+
22,
|
|
1307
|
+
25,
|
|
1308
|
+
29,
|
|
1309
|
+
32,
|
|
1310
|
+
35,
|
|
1311
|
+
38,
|
|
1312
|
+
56,
|
|
1313
|
+
60,
|
|
1314
|
+
71,
|
|
1315
|
+
72,
|
|
1316
|
+
73,
|
|
1317
|
+
74,
|
|
1318
|
+
75,
|
|
1319
|
+
76,
|
|
1320
|
+
77,
|
|
1321
|
+
79,
|
|
1322
|
+
80,
|
|
1323
|
+
81
|
|
1324
|
+
],
|
|
1325
|
+
inclusive: !0
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
};
|
|
1329
|
+
})();
|
|
1330
|
+
function P() {
|
|
1331
|
+
this.yy = {};
|
|
1332
|
+
}
|
|
1333
|
+
return t(P, "Parser"), P.prototype = N, N.Parser = P, new P();
|
|
1334
|
+
})();
|
|
1335
|
+
_.parser = _;
|
|
1336
|
+
var v = _, y = "TB", b = "TB", x = "dir", S = "state", C = "root", w = "relation", T = "classDef", E = "style", D = "applyClass", O = "default", k = "divider", A = "fill:none", j = "fill: #333", M = "c", N = "markdown", P = "normal", F = "rect", I = "rectWithTitle", ee = "stateStart", te = "stateEnd", L = "divider", R = "roundedWithTitle", ne = "note", re = "noteGroup", z = "statediagram", ie = `${z}-state`, B = "transition", ae = "note", oe = `${B} note-edge`, se = `${z}-${ae}`, ce = `${z}-cluster`, le = `${z}-cluster-alt`, V = "parent", H = "note", ue = "state", U = "----", de = `${U}${H}`, W = `${U}${V}`, G = /* @__PURE__ */ t((e, t = b) => {
|
|
1337
|
+
if (!e.doc) return t;
|
|
1338
|
+
let n = t;
|
|
1339
|
+
for (let t of e.doc) t.stmt === "dir" && (n = t.value);
|
|
1340
|
+
return n;
|
|
1341
|
+
}, "getDir"), fe = {
|
|
1342
|
+
getClasses: /* @__PURE__ */ t(function(e, t) {
|
|
1343
|
+
return t.db.getClasses();
|
|
1344
|
+
}, "getClasses"),
|
|
1345
|
+
draw: /* @__PURE__ */ t(async function(t, n, r, i) {
|
|
1346
|
+
var a, o;
|
|
1347
|
+
e.info("REF0:"), e.info("Drawing state diagram (v2)", n);
|
|
1348
|
+
let { securityLevel: s, state: l, layout: u } = c();
|
|
1349
|
+
i.db.extract(i.db.getRootDocV2());
|
|
1350
|
+
let f = i.db.getData(), g = p(n, s);
|
|
1351
|
+
f.type = i.type, f.layoutAlgorithm = u, f.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 50, f.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 50, c().look === "neo" ? f.markers = ["barbNeo"] : f.markers = ["barb"], f.diagramId = n, await h(f, g);
|
|
1352
|
+
try {
|
|
1353
|
+
(typeof i.db.getLinks == "function" ? i.db.getLinks() : /* @__PURE__ */ new Map()).forEach((t, n) => {
|
|
1354
|
+
var r;
|
|
1355
|
+
let i = typeof n == "string" ? n : typeof (n == null ? void 0 : n.id) == "string" ? n.id : "";
|
|
1356
|
+
if (!i) {
|
|
1357
|
+
e.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(n));
|
|
1358
|
+
return;
|
|
1359
|
+
}
|
|
1360
|
+
let a = (r = g.node()) == null ? void 0 : r.querySelectorAll("g"), o;
|
|
1361
|
+
if (a == null || a.forEach((e) => {
|
|
1362
|
+
var t;
|
|
1363
|
+
((t = e.textContent) == null ? void 0 : t.trim()) === i && (o = e);
|
|
1364
|
+
}), !o) {
|
|
1365
|
+
e.warn("⚠️ Could not find node matching text:", i);
|
|
1366
|
+
return;
|
|
1367
|
+
}
|
|
1368
|
+
let s = o.parentNode;
|
|
1369
|
+
if (!s) {
|
|
1370
|
+
e.warn("⚠️ Node has no parent, cannot wrap:", i);
|
|
1371
|
+
return;
|
|
1372
|
+
}
|
|
1373
|
+
let c = document.createElementNS("http://www.w3.org/2000/svg", "a"), l = t.url.replace(/^"+|"+$/g, "");
|
|
1374
|
+
if (c.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", l), c.setAttribute("target", "_blank"), t.tooltip) {
|
|
1375
|
+
let e = t.tooltip.replace(/^"+|"+$/g, "");
|
|
1376
|
+
c.setAttribute("title", e);
|
|
1377
|
+
}
|
|
1378
|
+
s.replaceChild(c, o), c.appendChild(o), e.info("🔗 Wrapped node in <a> tag for:", i, t.url);
|
|
1379
|
+
});
|
|
1380
|
+
} catch (t) {
|
|
1381
|
+
e.error("❌ Error injecting clickable links:", t);
|
|
1382
|
+
}
|
|
1383
|
+
d.insertTitle(g, "statediagramTitleText", (a = l == null ? void 0 : l.titleTopMargin) == null ? 25 : a, i.db.getDiagramTitle()), m(g, 8, z, (o = l == null ? void 0 : l.useMaxWidth) == null ? !0 : o);
|
|
1384
|
+
}, "draw"),
|
|
1385
|
+
getDir: G
|
|
1386
|
+
}, K = /* @__PURE__ */ new Map(), q = 0;
|
|
1387
|
+
function J(e = "", t = 0, n = "", r = U) {
|
|
1388
|
+
return `${ue}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
|
|
1389
|
+
}
|
|
1390
|
+
t(J, "stateDomId");
|
|
1391
|
+
var pe = /* @__PURE__ */ t((t, n, r, i, a, o, s, u) => {
|
|
1392
|
+
e.trace("items", n), n.forEach((e) => {
|
|
1393
|
+
switch (e.stmt) {
|
|
1394
|
+
case S:
|
|
1395
|
+
Z(t, e, r, i, a, o, s, u);
|
|
1396
|
+
break;
|
|
1397
|
+
case O:
|
|
1398
|
+
Z(t, e, r, i, a, o, s, u);
|
|
1399
|
+
break;
|
|
1400
|
+
case w:
|
|
1401
|
+
{
|
|
1402
|
+
var n;
|
|
1403
|
+
Z(t, e.state1, r, i, a, o, s, u), Z(t, e.state2, r, i, a, o, s, u);
|
|
1404
|
+
let d = s === "neo", f = {
|
|
1405
|
+
id: "edge" + q,
|
|
1406
|
+
start: e.state1.id,
|
|
1407
|
+
end: e.state2.id,
|
|
1408
|
+
arrowhead: "normal",
|
|
1409
|
+
arrowTypeEnd: d ? "arrow_barb_neo" : "arrow_barb",
|
|
1410
|
+
style: A,
|
|
1411
|
+
labelStyle: "",
|
|
1412
|
+
label: l.sanitizeText((n = e.description) == null ? "" : n, c()),
|
|
1413
|
+
arrowheadStyle: j,
|
|
1414
|
+
labelpos: M,
|
|
1415
|
+
labelType: N,
|
|
1416
|
+
thickness: P,
|
|
1417
|
+
classes: B,
|
|
1418
|
+
look: s
|
|
1419
|
+
};
|
|
1420
|
+
a.push(f), q++;
|
|
1421
|
+
}
|
|
1422
|
+
break;
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
}, "setupDoc"), Y = /* @__PURE__ */ t((e, t = b) => {
|
|
1426
|
+
let n = t;
|
|
1427
|
+
if (e.doc) for (let t of e.doc) t.stmt === "dir" && (n = t.value);
|
|
1428
|
+
return n;
|
|
1429
|
+
}, "getDir");
|
|
1430
|
+
function X(e, t, n) {
|
|
1431
|
+
if (!t.id || t.id === "</join></fork>" || t.id === "</choice>") return;
|
|
1432
|
+
t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((e) => {
|
|
1433
|
+
let r = n.get(e);
|
|
1434
|
+
if (r) {
|
|
1435
|
+
var i;
|
|
1436
|
+
t.cssCompiledStyles = [...(i = t.cssCompiledStyles) == null ? [] : i, ...r.styles];
|
|
1437
|
+
}
|
|
1438
|
+
}));
|
|
1439
|
+
let r = e.find((e) => e.id === t.id);
|
|
1440
|
+
r ? Object.assign(r, t) : e.push(t);
|
|
1441
|
+
}
|
|
1442
|
+
t(X, "insertOrUpdateNode");
|
|
1443
|
+
function me(e) {
|
|
1444
|
+
var t, n;
|
|
1445
|
+
return (t = e == null || (n = e.classes) == null ? void 0 : n.join(" ")) == null ? "" : t;
|
|
1446
|
+
}
|
|
1447
|
+
t(me, "getClassesFromDbInfo");
|
|
1448
|
+
function he(e) {
|
|
1449
|
+
var t;
|
|
1450
|
+
return (t = e == null ? void 0 : e.styles) == null ? [] : t;
|
|
1451
|
+
}
|
|
1452
|
+
t(he, "getStylesFromDbInfo");
|
|
1453
|
+
var Z = /* @__PURE__ */ t((t, n, r, i, a, o, s, u) => {
|
|
1454
|
+
let d = n.id, f = r.get(d), p = me(f), m = he(f), h = c();
|
|
1455
|
+
if (e.info("dataFetcher parsedItem", n, f, m), d !== "root") {
|
|
1456
|
+
var g;
|
|
1457
|
+
let r = F;
|
|
1458
|
+
n.start === !0 ? r = ee : n.start === !1 && (r = te), n.type !== O && (r = n.type), K.get(d) || K.set(d, {
|
|
1459
|
+
id: d,
|
|
1460
|
+
shape: r,
|
|
1461
|
+
description: l.sanitizeText(d, h),
|
|
1462
|
+
cssClasses: `${p} ${ie}`,
|
|
1463
|
+
cssStyles: m
|
|
1464
|
+
});
|
|
1465
|
+
let c = K.get(d);
|
|
1466
|
+
if (n.description) {
|
|
1467
|
+
if (Array.isArray(c.description)) c.shape = I, c.description.push(n.description);
|
|
1468
|
+
else {
|
|
1469
|
+
var _;
|
|
1470
|
+
(_ = c.description) != null && _.length && c.description.length > 0 ? (c.shape = I, c.description === d ? c.description = [n.description] : c.description = [c.description, n.description]) : (c.shape = F, c.description = n.description);
|
|
1471
|
+
}
|
|
1472
|
+
c.description = l.sanitizeTextOrArray(c.description, h);
|
|
1473
|
+
}
|
|
1474
|
+
((g = c.description) == null ? void 0 : g.length) === 1 && c.shape === I && (c.type === "group" ? c.shape = R : c.shape = F), !c.type && n.doc && (e.info("Setting cluster for XCX", d, Y(n)), c.type = "group", c.isGroup = !0, c.dir = Y(n), c.shape = n.type === k ? L : R, c.cssClasses = `${c.cssClasses} ${ce} ${o ? le : ""}`);
|
|
1475
|
+
let f = {
|
|
1476
|
+
labelStyle: "",
|
|
1477
|
+
shape: c.shape,
|
|
1478
|
+
label: c.description,
|
|
1479
|
+
cssClasses: c.cssClasses,
|
|
1480
|
+
cssCompiledStyles: [],
|
|
1481
|
+
cssStyles: c.cssStyles,
|
|
1482
|
+
id: d,
|
|
1483
|
+
dir: c.dir,
|
|
1484
|
+
domId: J(d, q),
|
|
1485
|
+
type: c.type,
|
|
1486
|
+
isGroup: c.type === "group",
|
|
1487
|
+
padding: 8,
|
|
1488
|
+
rx: 10,
|
|
1489
|
+
ry: 10,
|
|
1490
|
+
look: s,
|
|
1491
|
+
labelType: "markdown"
|
|
1492
|
+
};
|
|
1493
|
+
if (f.shape === L && (f.label = ""), t && t.id !== "root" && (e.trace("Setting node ", d, " to be child of its parent ", t.id), f.parentId = t.id), f.centerLabel = !0, n.note) {
|
|
1494
|
+
var v;
|
|
1495
|
+
let e = {
|
|
1496
|
+
labelStyle: "",
|
|
1497
|
+
shape: ne,
|
|
1498
|
+
label: n.note.text,
|
|
1499
|
+
labelType: "markdown",
|
|
1500
|
+
cssClasses: se,
|
|
1501
|
+
cssStyles: [],
|
|
1502
|
+
cssCompiledStyles: [],
|
|
1503
|
+
id: d + de + "-" + q,
|
|
1504
|
+
domId: J(d, q, H),
|
|
1505
|
+
type: c.type,
|
|
1506
|
+
isGroup: c.type === "group",
|
|
1507
|
+
padding: (v = h.flowchart) == null ? void 0 : v.padding,
|
|
1508
|
+
look: s,
|
|
1509
|
+
position: n.note.position
|
|
1510
|
+
}, t = d + W, r = {
|
|
1511
|
+
labelStyle: "",
|
|
1512
|
+
shape: re,
|
|
1513
|
+
label: n.note.text,
|
|
1514
|
+
cssClasses: c.cssClasses,
|
|
1515
|
+
cssStyles: [],
|
|
1516
|
+
id: d + W,
|
|
1517
|
+
domId: J(d, q, V),
|
|
1518
|
+
type: "group",
|
|
1519
|
+
isGroup: !0,
|
|
1520
|
+
padding: 16,
|
|
1521
|
+
look: s,
|
|
1522
|
+
position: n.note.position
|
|
1523
|
+
};
|
|
1524
|
+
q++, r.id = t, e.parentId = t, X(i, r, u), X(i, e, u), X(i, f, u);
|
|
1525
|
+
let o = d, l = e.id;
|
|
1526
|
+
n.note.position === "left of" && (o = e.id, l = d), a.push({
|
|
1527
|
+
id: o + "-" + l,
|
|
1528
|
+
start: o,
|
|
1529
|
+
end: l,
|
|
1530
|
+
arrowhead: "none",
|
|
1531
|
+
arrowTypeEnd: "",
|
|
1532
|
+
style: A,
|
|
1533
|
+
labelStyle: "",
|
|
1534
|
+
classes: oe,
|
|
1535
|
+
arrowheadStyle: j,
|
|
1536
|
+
labelpos: M,
|
|
1537
|
+
labelType: N,
|
|
1538
|
+
thickness: P,
|
|
1539
|
+
look: s
|
|
1540
|
+
});
|
|
1541
|
+
} else X(i, f, u);
|
|
1542
|
+
}
|
|
1543
|
+
n.doc && (e.trace("Adding nodes children "), pe(n, n.doc, r, i, a, !o, s, u));
|
|
1544
|
+
}, "dataFetcher"), ge = /* @__PURE__ */ t(() => {
|
|
1545
|
+
K.clear(), q = 0;
|
|
1546
|
+
}, "reset"), Q = {
|
|
1547
|
+
START_NODE: "[*]",
|
|
1548
|
+
START_TYPE: "start",
|
|
1549
|
+
END_NODE: "[*]",
|
|
1550
|
+
END_TYPE: "end",
|
|
1551
|
+
COLOR_KEYWORD: "color",
|
|
1552
|
+
FILL_KEYWORD: "fill",
|
|
1553
|
+
BG_FILL: "bgFill",
|
|
1554
|
+
STYLECLASS_SEP: ","
|
|
1555
|
+
}, _e = /* @__PURE__ */ t(() => /* @__PURE__ */ new Map(), "newClassesList"), ve = /* @__PURE__ */ t(() => ({
|
|
1556
|
+
relations: [],
|
|
1557
|
+
states: /* @__PURE__ */ new Map(),
|
|
1558
|
+
documents: {}
|
|
1559
|
+
}), "newDoc"), $ = /* @__PURE__ */ t((e) => JSON.parse(JSON.stringify(e)), "clone"), ye = (g = class {
|
|
1560
|
+
constructor(e) {
|
|
1561
|
+
this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = _e(), this.documents = { root: ve() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = u, this.setAccTitle = i, this.getAccDescription = o, this.setAccDescription = n, this.setDiagramTitle = a, this.getDiagramTitle = r, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
|
|
1562
|
+
}
|
|
1563
|
+
extract(e) {
|
|
1564
|
+
this.clear(!0);
|
|
1565
|
+
for (let t of Array.isArray(e) ? e : e.doc) switch (t.stmt) {
|
|
1566
|
+
case S:
|
|
1567
|
+
this.addState(t.id.trim(), t.type, t.doc, t.description, t.note);
|
|
1568
|
+
break;
|
|
1569
|
+
case w:
|
|
1570
|
+
this.addRelation(t.state1, t.state2, t.description);
|
|
1571
|
+
break;
|
|
1572
|
+
case T:
|
|
1573
|
+
this.addStyleClass(t.id.trim(), t.classes);
|
|
1574
|
+
break;
|
|
1575
|
+
case E:
|
|
1576
|
+
this.handleStyleDef(t);
|
|
1577
|
+
break;
|
|
1578
|
+
case D:
|
|
1579
|
+
this.setCssClass(t.id.trim(), t.styleClass);
|
|
1580
|
+
break;
|
|
1581
|
+
case "click":
|
|
1582
|
+
this.addLink(t.id, t.url, t.tooltip);
|
|
1583
|
+
break;
|
|
1584
|
+
}
|
|
1585
|
+
let t = this.getStates(), n = c();
|
|
1586
|
+
ge(), Z(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
|
|
1587
|
+
for (let e of this.nodes) if (Array.isArray(e.label)) {
|
|
1588
|
+
if (e.description = e.label.slice(1), e.isGroup && e.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);
|
|
1589
|
+
e.label = e.label[0];
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
handleStyleDef(e) {
|
|
1593
|
+
let t = e.id.trim().split(","), n = e.styleClass.split(",");
|
|
1594
|
+
for (let e of t) {
|
|
1595
|
+
let t = this.getState(e);
|
|
1596
|
+
if (!t) {
|
|
1597
|
+
let n = e.trim();
|
|
1598
|
+
this.addState(n), t = this.getState(n);
|
|
1599
|
+
}
|
|
1600
|
+
t && (t.styles = n.map((e) => {
|
|
1601
|
+
var t;
|
|
1602
|
+
return (t = e.replace(/;/g, "")) == null ? void 0 : t.trim();
|
|
1603
|
+
}));
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
setRootDoc(t) {
|
|
1607
|
+
e.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
|
|
1608
|
+
}
|
|
1609
|
+
docTranslator(e, t, n) {
|
|
1610
|
+
if (t.stmt === w) {
|
|
1611
|
+
this.docTranslator(e, t.state1, !0), this.docTranslator(e, t.state2, !1);
|
|
1612
|
+
return;
|
|
1613
|
+
}
|
|
1614
|
+
if (t.stmt === S && (t.id === Q.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== C && t.stmt !== S || !t.doc) return;
|
|
1615
|
+
let r = [], i = [];
|
|
1616
|
+
for (let e of t.doc) if (e.type === k) {
|
|
1617
|
+
let t = $(e);
|
|
1618
|
+
t.doc = $(i), r.push(t), i = [];
|
|
1619
|
+
} else i.push(e);
|
|
1620
|
+
if (r.length > 0 && i.length > 0) {
|
|
1621
|
+
let e = {
|
|
1622
|
+
stmt: S,
|
|
1623
|
+
id: f(),
|
|
1624
|
+
type: "divider",
|
|
1625
|
+
doc: $(i)
|
|
1626
|
+
};
|
|
1627
|
+
r.push($(e)), t.doc = r;
|
|
1628
|
+
}
|
|
1629
|
+
t.doc.forEach((e) => this.docTranslator(t, e, !0));
|
|
1630
|
+
}
|
|
1631
|
+
getRootDocV2() {
|
|
1632
|
+
return this.docTranslator({
|
|
1633
|
+
id: C,
|
|
1634
|
+
stmt: C
|
|
1635
|
+
}, {
|
|
1636
|
+
id: C,
|
|
1637
|
+
stmt: C,
|
|
1638
|
+
doc: this.rootDoc
|
|
1639
|
+
}, !0), {
|
|
1640
|
+
id: C,
|
|
1641
|
+
doc: this.rootDoc
|
|
1642
|
+
};
|
|
1643
|
+
}
|
|
1644
|
+
addState(t, n = O, r = void 0, i = void 0, a = void 0, o = void 0, s = void 0, u = void 0) {
|
|
1645
|
+
let d = t == null ? void 0 : t.trim();
|
|
1646
|
+
if (!this.currentDocument.states.has(d)) e.info("Adding state ", d, i), this.currentDocument.states.set(d, {
|
|
1647
|
+
stmt: S,
|
|
1648
|
+
id: d,
|
|
1649
|
+
descriptions: [],
|
|
1650
|
+
type: n,
|
|
1651
|
+
doc: r,
|
|
1652
|
+
note: a,
|
|
1653
|
+
classes: [],
|
|
1654
|
+
styles: [],
|
|
1655
|
+
textStyles: []
|
|
1656
|
+
});
|
|
1657
|
+
else {
|
|
1658
|
+
let e = this.currentDocument.states.get(d);
|
|
1659
|
+
if (!e) throw Error(`State not found: ${d}`);
|
|
1660
|
+
e.doc || (e.doc = r), e.type || (e.type = n);
|
|
1661
|
+
}
|
|
1662
|
+
if (i && (e.info("Setting state description", d, i), (Array.isArray(i) ? i : [i]).forEach((e) => this.addDescription(d, e.trim()))), a) {
|
|
1663
|
+
let e = this.currentDocument.states.get(d);
|
|
1664
|
+
if (!e) throw Error(`State not found: ${d}`);
|
|
1665
|
+
e.note = a, e.note.text = l.sanitizeText(e.note.text, c());
|
|
1666
|
+
}
|
|
1667
|
+
o && (e.info("Setting state classes", d, o), (Array.isArray(o) ? o : [o]).forEach((e) => this.setCssClass(d, e.trim()))), s && (e.info("Setting state styles", d, s), (Array.isArray(s) ? s : [s]).forEach((e) => this.setStyle(d, e.trim()))), u && (e.info("Setting state styles", d, s), (Array.isArray(u) ? u : [u]).forEach((e) => this.setTextStyle(d, e.trim())));
|
|
1668
|
+
}
|
|
1669
|
+
clear(e) {
|
|
1670
|
+
this.nodes = [], this.edges = [], this.documents = { root: ve() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = _e(), e || (this.links = /* @__PURE__ */ new Map(), s());
|
|
1671
|
+
}
|
|
1672
|
+
getState(e) {
|
|
1673
|
+
return this.currentDocument.states.get(e);
|
|
1674
|
+
}
|
|
1675
|
+
getStates() {
|
|
1676
|
+
return this.currentDocument.states;
|
|
1677
|
+
}
|
|
1678
|
+
logDocuments() {
|
|
1679
|
+
e.info("Documents = ", this.documents);
|
|
1680
|
+
}
|
|
1681
|
+
getRelations() {
|
|
1682
|
+
return this.currentDocument.relations;
|
|
1683
|
+
}
|
|
1684
|
+
addLink(t, n, r) {
|
|
1685
|
+
this.links.set(t, {
|
|
1686
|
+
url: n,
|
|
1687
|
+
tooltip: r
|
|
1688
|
+
}), e.warn("Adding link", t, n, r);
|
|
1689
|
+
}
|
|
1690
|
+
getLinks() {
|
|
1691
|
+
return this.links;
|
|
1692
|
+
}
|
|
1693
|
+
startIdIfNeeded(e = "") {
|
|
1694
|
+
return e === Q.START_NODE ? (this.startEndCount++, `${Q.START_TYPE}${this.startEndCount}`) : e;
|
|
1695
|
+
}
|
|
1696
|
+
startTypeIfNeeded(e = "", t = O) {
|
|
1697
|
+
return e === Q.START_NODE ? Q.START_TYPE : t;
|
|
1698
|
+
}
|
|
1699
|
+
endIdIfNeeded(e = "") {
|
|
1700
|
+
return e === Q.END_NODE ? (this.startEndCount++, `${Q.END_TYPE}${this.startEndCount}`) : e;
|
|
1701
|
+
}
|
|
1702
|
+
endTypeIfNeeded(e = "", t = O) {
|
|
1703
|
+
return e === Q.END_NODE ? Q.END_TYPE : t;
|
|
1704
|
+
}
|
|
1705
|
+
addRelationObjs(e, t, n = "") {
|
|
1706
|
+
let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), a = this.startIdIfNeeded(t.id.trim()), o = this.startTypeIfNeeded(t.id.trim(), t.type);
|
|
1707
|
+
this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(a, o, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
|
|
1708
|
+
id1: r,
|
|
1709
|
+
id2: a,
|
|
1710
|
+
relationTitle: l.sanitizeText(n, c())
|
|
1711
|
+
});
|
|
1712
|
+
}
|
|
1713
|
+
addRelation(e, t, n) {
|
|
1714
|
+
if (typeof e == "object" && typeof t == "object") this.addRelationObjs(e, t, n);
|
|
1715
|
+
else if (typeof e == "string" && typeof t == "string") {
|
|
1716
|
+
let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), a = this.endIdIfNeeded(t.trim()), o = this.endTypeIfNeeded(t);
|
|
1717
|
+
this.addState(r, i), this.addState(a, o), this.currentDocument.relations.push({
|
|
1718
|
+
id1: r,
|
|
1719
|
+
id2: a,
|
|
1720
|
+
relationTitle: n ? l.sanitizeText(n, c()) : void 0
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
addDescription(e, t) {
|
|
1725
|
+
var n;
|
|
1726
|
+
let r = this.currentDocument.states.get(e), i = t.startsWith(":") ? t.replace(":", "").trim() : t;
|
|
1727
|
+
r == null || (n = r.descriptions) == null || n.push(l.sanitizeText(i, c()));
|
|
1728
|
+
}
|
|
1729
|
+
cleanupLabel(e) {
|
|
1730
|
+
return e.startsWith(":") ? e.slice(2).trim() : e.trim();
|
|
1731
|
+
}
|
|
1732
|
+
getDividerId() {
|
|
1733
|
+
return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
|
|
1734
|
+
}
|
|
1735
|
+
addStyleClass(e, t = "") {
|
|
1736
|
+
this.classes.has(e) || this.classes.set(e, {
|
|
1737
|
+
id: e,
|
|
1738
|
+
styles: [],
|
|
1739
|
+
textStyles: []
|
|
1740
|
+
});
|
|
1741
|
+
let n = this.classes.get(e);
|
|
1742
|
+
t && n && t.split(Q.STYLECLASS_SEP).forEach((e) => {
|
|
1743
|
+
let t = e.replace(/([^;]*);/, "$1").trim();
|
|
1744
|
+
if (RegExp(Q.COLOR_KEYWORD).exec(e)) {
|
|
1745
|
+
let e = t.replace(Q.FILL_KEYWORD, Q.BG_FILL).replace(Q.COLOR_KEYWORD, Q.FILL_KEYWORD);
|
|
1746
|
+
n.textStyles.push(e);
|
|
1747
|
+
}
|
|
1748
|
+
n.styles.push(t);
|
|
1749
|
+
});
|
|
1750
|
+
}
|
|
1751
|
+
getClasses() {
|
|
1752
|
+
return this.classes;
|
|
1753
|
+
}
|
|
1754
|
+
setCssClass(e, t) {
|
|
1755
|
+
e.split(",").forEach((e) => {
|
|
1756
|
+
var n;
|
|
1757
|
+
let r = this.getState(e);
|
|
1758
|
+
if (!r) {
|
|
1759
|
+
let t = e.trim();
|
|
1760
|
+
this.addState(t), r = this.getState(t);
|
|
1761
|
+
}
|
|
1762
|
+
r == null || (n = r.classes) == null || n.push(t);
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
setStyle(e, t) {
|
|
1766
|
+
var n;
|
|
1767
|
+
(n = this.getState(e)) == null || (n = n.styles) == null || n.push(t);
|
|
1768
|
+
}
|
|
1769
|
+
setTextStyle(e, t) {
|
|
1770
|
+
var n;
|
|
1771
|
+
(n = this.getState(e)) == null || (n = n.textStyles) == null || n.push(t);
|
|
1772
|
+
}
|
|
1773
|
+
getDirectionStatement() {
|
|
1774
|
+
return this.rootDoc.find((e) => e.stmt === x);
|
|
1775
|
+
}
|
|
1776
|
+
getDirection() {
|
|
1777
|
+
var e, t;
|
|
1778
|
+
return (e = (t = this.getDirectionStatement()) == null ? void 0 : t.value) == null ? y : e;
|
|
1779
|
+
}
|
|
1780
|
+
setDirection(e) {
|
|
1781
|
+
let t = this.getDirectionStatement();
|
|
1782
|
+
t ? t.value = e : this.rootDoc.unshift({
|
|
1783
|
+
stmt: x,
|
|
1784
|
+
value: e
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
trimColon(e) {
|
|
1788
|
+
return e.startsWith(":") ? e.slice(1).trim() : e.trim();
|
|
1789
|
+
}
|
|
1790
|
+
getData() {
|
|
1791
|
+
let e = c();
|
|
1792
|
+
return {
|
|
1793
|
+
nodes: this.nodes,
|
|
1794
|
+
edges: this.edges,
|
|
1795
|
+
other: {},
|
|
1796
|
+
config: e,
|
|
1797
|
+
direction: G(this.getRootDocV2())
|
|
1798
|
+
};
|
|
1799
|
+
}
|
|
1800
|
+
getConfig() {
|
|
1801
|
+
return c().state;
|
|
1802
|
+
}
|
|
1803
|
+
}, t(g, "StateDB"), g.relationType = {
|
|
1804
|
+
AGGREGATION: 0,
|
|
1805
|
+
EXTENSION: 1,
|
|
1806
|
+
COMPOSITION: 2,
|
|
1807
|
+
DEPENDENCY: 3
|
|
1808
|
+
}, g), be = /* @__PURE__ */ t((e) => {
|
|
1809
|
+
var t;
|
|
1810
|
+
return `
|
|
1811
|
+
defs [id$="-barbEnd"] {
|
|
1812
|
+
fill: ${e.transitionColor};
|
|
1813
|
+
stroke: ${e.transitionColor};
|
|
1814
|
+
}
|
|
1815
|
+
g.stateGroup text {
|
|
1816
|
+
fill: ${e.nodeBorder};
|
|
1817
|
+
stroke: none;
|
|
1818
|
+
font-size: 10px;
|
|
1819
|
+
}
|
|
1820
|
+
g.stateGroup text {
|
|
1821
|
+
fill: ${e.textColor};
|
|
1822
|
+
stroke: none;
|
|
1823
|
+
font-size: 10px;
|
|
1824
|
+
|
|
1825
|
+
}
|
|
1826
|
+
g.stateGroup .state-title {
|
|
1827
|
+
font-weight: bolder;
|
|
1828
|
+
fill: ${e.stateLabelColor};
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
g.stateGroup rect {
|
|
1832
|
+
fill: ${e.mainBkg};
|
|
1833
|
+
stroke: ${e.nodeBorder};
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
g.stateGroup line {
|
|
1837
|
+
stroke: ${e.lineColor};
|
|
1838
|
+
stroke-width: ${e.strokeWidth || 1};
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
.transition {
|
|
1842
|
+
stroke: ${e.transitionColor};
|
|
1843
|
+
stroke-width: ${e.strokeWidth || 1};
|
|
1844
|
+
fill: none;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
.stateGroup .composit {
|
|
1848
|
+
fill: ${e.background};
|
|
1849
|
+
border-bottom: 1px
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
.stateGroup .alt-composit {
|
|
1853
|
+
fill: #e0e0e0;
|
|
1854
|
+
border-bottom: 1px
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
.state-note {
|
|
1858
|
+
stroke: ${e.noteBorderColor};
|
|
1859
|
+
fill: ${e.noteBkgColor};
|
|
1860
|
+
|
|
1861
|
+
text {
|
|
1862
|
+
fill: ${e.noteTextColor};
|
|
1863
|
+
stroke: none;
|
|
1864
|
+
font-size: 10px;
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
.stateLabel .box {
|
|
1869
|
+
stroke: none;
|
|
1870
|
+
stroke-width: 0;
|
|
1871
|
+
fill: ${e.mainBkg};
|
|
1872
|
+
opacity: 0.5;
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
.edgeLabel .label rect {
|
|
1876
|
+
fill: ${e.labelBackgroundColor};
|
|
1877
|
+
opacity: 0.5;
|
|
1878
|
+
}
|
|
1879
|
+
.edgeLabel {
|
|
1880
|
+
background-color: ${e.edgeLabelBackground};
|
|
1881
|
+
p {
|
|
1882
|
+
background-color: ${e.edgeLabelBackground};
|
|
1883
|
+
}
|
|
1884
|
+
rect {
|
|
1885
|
+
opacity: 0.5;
|
|
1886
|
+
background-color: ${e.edgeLabelBackground};
|
|
1887
|
+
fill: ${e.edgeLabelBackground};
|
|
1888
|
+
}
|
|
1889
|
+
text-align: center;
|
|
1890
|
+
}
|
|
1891
|
+
.edgeLabel .label text {
|
|
1892
|
+
fill: ${e.transitionLabelColor || e.tertiaryTextColor};
|
|
1893
|
+
}
|
|
1894
|
+
.label div .edgeLabel {
|
|
1895
|
+
color: ${e.transitionLabelColor || e.tertiaryTextColor};
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
.stateLabel text {
|
|
1899
|
+
fill: ${e.stateLabelColor};
|
|
1900
|
+
font-size: 10px;
|
|
1901
|
+
font-weight: bold;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
.node circle.state-start {
|
|
1905
|
+
fill: ${e.specialStateColor};
|
|
1906
|
+
stroke: ${e.specialStateColor};
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
.node .fork-join {
|
|
1910
|
+
fill: ${e.specialStateColor};
|
|
1911
|
+
stroke: ${e.specialStateColor};
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
.node circle.state-end {
|
|
1915
|
+
fill: ${e.innerEndBackground};
|
|
1916
|
+
stroke: ${e.background};
|
|
1917
|
+
stroke-width: 1.5
|
|
1918
|
+
}
|
|
1919
|
+
.end-state-inner {
|
|
1920
|
+
fill: ${e.compositeBackground || e.background};
|
|
1921
|
+
// stroke: ${e.background};
|
|
1922
|
+
stroke-width: 1.5
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
.node rect {
|
|
1926
|
+
fill: ${e.stateBkg || e.mainBkg};
|
|
1927
|
+
stroke: ${e.stateBorder || e.nodeBorder};
|
|
1928
|
+
stroke-width: ${e.strokeWidth || 1}px;
|
|
1929
|
+
}
|
|
1930
|
+
.node polygon {
|
|
1931
|
+
fill: ${e.mainBkg};
|
|
1932
|
+
stroke: ${e.stateBorder || e.nodeBorder};;
|
|
1933
|
+
stroke-width: ${e.strokeWidth || 1}px;
|
|
1934
|
+
}
|
|
1935
|
+
[id$="-barbEnd"] {
|
|
1936
|
+
fill: ${e.lineColor};
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
.statediagram-cluster rect {
|
|
1940
|
+
fill: ${e.compositeTitleBackground};
|
|
1941
|
+
stroke: ${e.stateBorder || e.nodeBorder};
|
|
1942
|
+
stroke-width: ${e.strokeWidth || 1}px;
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
.cluster-label, .nodeLabel {
|
|
1946
|
+
color: ${e.stateLabelColor};
|
|
1947
|
+
// line-height: 1;
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
.statediagram-cluster rect.outer {
|
|
1951
|
+
rx: 5px;
|
|
1952
|
+
ry: 5px;
|
|
1953
|
+
}
|
|
1954
|
+
.statediagram-state .divider {
|
|
1955
|
+
stroke: ${e.stateBorder || e.nodeBorder};
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
.statediagram-state .title-state {
|
|
1959
|
+
rx: 5px;
|
|
1960
|
+
ry: 5px;
|
|
1961
|
+
}
|
|
1962
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
1963
|
+
fill: ${e.compositeBackground || e.background};
|
|
1964
|
+
}
|
|
1965
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
1966
|
+
fill: ${e.altBackground ? e.altBackground : "#efefef"};
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
.statediagram-cluster .inner {
|
|
1970
|
+
rx:0;
|
|
1971
|
+
ry:0;
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
.statediagram-state rect.basic {
|
|
1975
|
+
rx: 5px;
|
|
1976
|
+
ry: 5px;
|
|
1977
|
+
}
|
|
1978
|
+
.statediagram-state rect.divider {
|
|
1979
|
+
stroke-dasharray: 10,10;
|
|
1980
|
+
fill: ${e.altBackground ? e.altBackground : "#efefef"};
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
.note-edge {
|
|
1984
|
+
stroke-dasharray: 5;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
.statediagram-note rect {
|
|
1988
|
+
fill: ${e.noteBkgColor};
|
|
1989
|
+
stroke: ${e.noteBorderColor};
|
|
1990
|
+
stroke-width: 1px;
|
|
1991
|
+
rx: 0;
|
|
1992
|
+
ry: 0;
|
|
1993
|
+
}
|
|
1994
|
+
.statediagram-note rect {
|
|
1995
|
+
fill: ${e.noteBkgColor};
|
|
1996
|
+
stroke: ${e.noteBorderColor};
|
|
1997
|
+
stroke-width: 1px;
|
|
1998
|
+
rx: 0;
|
|
1999
|
+
ry: 0;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
.statediagram-note text {
|
|
2003
|
+
fill: ${e.noteTextColor};
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
.statediagram-note .nodeLabel {
|
|
2007
|
+
color: ${e.noteTextColor};
|
|
2008
|
+
}
|
|
2009
|
+
.statediagram .edgeLabel {
|
|
2010
|
+
color: red; // ${e.noteTextColor};
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
[id$="-dependencyStart"], [id$="-dependencyEnd"] {
|
|
2014
|
+
fill: ${e.lineColor};
|
|
2015
|
+
stroke: ${e.lineColor};
|
|
2016
|
+
stroke-width: ${e.strokeWidth || 1};
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
.statediagramTitleText {
|
|
2020
|
+
text-anchor: middle;
|
|
2021
|
+
font-size: 18px;
|
|
2022
|
+
fill: ${e.textColor};
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
[data-look="neo"].statediagram-cluster rect {
|
|
2026
|
+
fill: ${e.mainBkg};
|
|
2027
|
+
stroke: ${e.useGradient ? "url(" + e.svgId + "-gradient)" : e.stateBorder || e.nodeBorder};
|
|
2028
|
+
stroke-width: ${(t = e.strokeWidth) == null ? 1 : t};
|
|
2029
|
+
}
|
|
2030
|
+
[data-look="neo"].statediagram-cluster rect.outer {
|
|
2031
|
+
rx: ${e.radius}px;
|
|
2032
|
+
ry: ${e.radius}px;
|
|
2033
|
+
filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${e.svgId}-drop-shadow)`) : "none"}
|
|
2034
|
+
}
|
|
2035
|
+
`;
|
|
2036
|
+
}, "getStyles");
|
|
2037
|
+
//#endregion
|
|
2038
|
+
export { be as i, v as n, fe as r, ye as t };
|