@bkm016/basalt 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/chunk-0b2brwjc.js +3 -0
- package/chunk-13pbt8mn.js +2 -0
- package/chunk-14085qqt.js +8 -0
- package/chunk-2dph65ye.js +3 -0
- package/chunk-2v8anxgd.js +9 -0
- package/chunk-37f4ks5f.js +3 -0
- package/chunk-3q1hxwxb.js +5 -0
- package/chunk-3qs33s9g.js +2 -0
- package/chunk-53m94h0b.js +7 -0
- package/chunk-5jy2cnyr.js +18 -0
- package/chunk-5wfyn3k0.js +3 -0
- package/chunk-69v706tc.js +5 -0
- package/chunk-79h4rzza.js +2 -0
- package/chunk-7xfde6se.js +3 -0
- package/chunk-8bf4g2d7.js +3 -0
- package/chunk-adq8c7vt.js +25 -0
- package/chunk-ahpg469e.js +3 -0
- package/chunk-ary9gky8.js +7 -0
- package/chunk-becsymjn.js +2 -0
- package/chunk-beqps81c.js +4 -0
- package/chunk-bnvynyww.js +3 -0
- package/chunk-c785tr0e.js +4078 -0
- package/chunk-cc19pbgm.js +12 -0
- package/chunk-d6g5m56z.js +2 -0
- package/chunk-etkktxdc.js +2 -0
- package/chunk-etxsj2ey.js +10 -0
- package/chunk-f2ajxymw.js +2 -0
- package/chunk-f2bcfa6z.js +7 -0
- package/chunk-f47qdrkp.js +2 -0
- package/chunk-f5yg6yd0.js +3 -0
- package/chunk-fjk9ztjc.js +11 -0
- package/chunk-g99n5ywc.js +3 -0
- package/chunk-grwavjp7.js +2 -0
- package/chunk-gsek3gpd.js +3 -0
- package/chunk-gv9hbv9j.js +2 -0
- package/chunk-h045t6f1.js +2 -0
- package/chunk-h4g1tzk6.js +11 -0
- package/chunk-had2k7b9.js +20 -0
- package/chunk-hbm45044.js +25 -0
- package/chunk-hd2hars5.js +3 -0
- package/chunk-hfh230tm.js +2 -0
- package/chunk-hkx7d1j9.js +7 -0
- package/chunk-jbk2tmza.js +5 -0
- package/chunk-jv9sy0np.js +2 -0
- package/chunk-kdc8tq70.js +2 -0
- package/chunk-m1nevdw6.js +3 -0
- package/chunk-m6yrpt1f.js +5 -0
- package/chunk-mrchbvsy.js +4 -0
- package/chunk-n9x6akk3.js +2 -0
- package/chunk-ne94brn4.js +3 -0
- package/chunk-nv1jg79d.js +2 -0
- package/chunk-pvdt969t.js +59 -0
- package/chunk-q22dnah8.js +3 -0
- package/chunk-q2zayphb.js +10 -0
- package/chunk-q4h6djtp.js +2 -0
- package/chunk-qa8mne61.js +2 -0
- package/chunk-r9z9m75h.js +16 -0
- package/chunk-rmyzxqkd.js +467 -0
- package/chunk-rq647zmf.js +2 -0
- package/chunk-sj4jvm9p.js +2 -0
- package/chunk-sq0ra5m8.js +4 -0
- package/chunk-sxg03n4v.js +2 -0
- package/chunk-t0m1wjrn.js +3 -0
- package/chunk-td52edcm.js +31 -0
- package/chunk-tdnwaaw4.js +12 -0
- package/chunk-teky87xx.js +3 -0
- package/chunk-v1avwm7q.js +3 -0
- package/chunk-wcmk8ee3.js +3 -0
- package/chunk-wf9r0frb.js +3 -0
- package/chunk-wx697mre.js +2 -0
- package/chunk-wzz64ygm.js +2 -0
- package/chunk-xb9mwt5a.js +2 -0
- package/chunk-xbkbaa84.js +2 -0
- package/chunk-xjy31n64.js +3 -0
- package/chunk-xzn34n38.js +389 -0
- package/chunk-yprp5s5v.js +3 -0
- package/chunk-yyhdabhq.js +15 -0
- package/chunk-z2jp61ze.js +39 -0
- package/chunk-zt5szcek.js +3 -0
- package/chunk-zxb6cg3m.js +2 -0
- package/compiled.js +9 -9
- package/package.json +1 -1
- package/ui-test-worker.js +21 -21
- package/web/chunk-0ays2hhj.js +41 -0
- package/web/chunk-0ays2hhj.js.br +0 -0
- package/web/chunk-0ays2hhj.js.gz +0 -0
- package/web/chunk-0na4c1bp.js +139 -0
- package/web/chunk-0na4c1bp.js.br +0 -0
- package/web/chunk-0na4c1bp.js.gz +0 -0
- package/web/chunk-0y0p0ct0.js +1 -0
- package/web/chunk-0y0p0ct0.js.br +0 -0
- package/web/chunk-0y0p0ct0.js.gz +0 -0
- package/web/chunk-191v8amv.js +1 -0
- package/web/chunk-191v8amv.js.br +0 -0
- package/web/chunk-191v8amv.js.gz +0 -0
- package/web/chunk-1c6rhsft.js +200 -0
- package/web/chunk-1c6rhsft.js.br +0 -0
- package/web/chunk-1c6rhsft.js.gz +0 -0
- package/web/chunk-1mwkrh5f.js +370 -0
- package/web/chunk-1mwkrh5f.js.br +0 -0
- package/web/chunk-1mwkrh5f.js.gz +0 -0
- package/web/chunk-1q4r17he.js +2 -0
- package/web/chunk-1q4r17he.js.br +0 -0
- package/web/chunk-1q4r17he.js.gz +0 -0
- package/web/chunk-1sm3c8an.js +8 -0
- package/web/chunk-1sm3c8an.js.br +0 -0
- package/web/chunk-1sm3c8an.js.gz +0 -0
- package/web/chunk-1vmjpvy5.js +1 -0
- package/web/chunk-1vmjpvy5.js.br +0 -0
- package/web/chunk-1vmjpvy5.js.gz +0 -0
- package/web/chunk-1x4z5w5e.js +1 -0
- package/web/chunk-1x4z5w5e.js.br +2 -0
- package/web/chunk-1x4z5w5e.js.gz +0 -0
- package/web/chunk-22ncha3b.js +142 -0
- package/web/chunk-22ncha3b.js.br +0 -0
- package/web/chunk-22ncha3b.js.gz +0 -0
- package/web/chunk-239rqgmj.js +24 -0
- package/web/chunk-239rqgmj.js.br +0 -0
- package/web/chunk-239rqgmj.js.gz +0 -0
- package/web/chunk-2c6zessc.js +2 -0
- package/web/chunk-2c6zessc.js.br +0 -0
- package/web/chunk-2c6zessc.js.gz +0 -0
- package/web/chunk-2m7b1wmp.js +1 -0
- package/web/chunk-2m7b1wmp.js.br +0 -0
- package/web/chunk-2m7b1wmp.js.gz +0 -0
- package/web/chunk-2qncw4c0.js +2 -0
- package/web/chunk-2qncw4c0.js.br +0 -0
- package/web/chunk-2qncw4c0.js.gz +0 -0
- package/web/chunk-2r497559.js +2 -0
- package/web/chunk-2r497559.js.br +0 -0
- package/web/chunk-2r497559.js.gz +0 -0
- package/web/chunk-2t43cra8.js +1 -0
- package/web/chunk-2t43cra8.js.br +0 -0
- package/web/chunk-2t43cra8.js.gz +0 -0
- package/web/chunk-2v379e1v.js +1 -0
- package/web/chunk-2v379e1v.js.br +2 -0
- package/web/chunk-2v379e1v.js.gz +0 -0
- package/web/chunk-2ywd0vz2.js +1 -0
- package/web/chunk-2ywd0vz2.js.br +0 -0
- package/web/chunk-2ywd0vz2.js.gz +0 -0
- package/web/chunk-3626tdgf.js +1 -0
- package/web/chunk-3626tdgf.js.br +0 -0
- package/web/chunk-3626tdgf.js.gz +0 -0
- package/web/chunk-3fq54zbf.js +2 -0
- package/web/chunk-3fq54zbf.js.br +0 -0
- package/web/chunk-3fq54zbf.js.gz +0 -0
- package/web/chunk-3jptvn0z.js +1 -0
- package/web/chunk-3jptvn0z.js.br +0 -0
- package/web/chunk-3jptvn0z.js.gz +0 -0
- package/web/chunk-3k31m9yk.js +7 -0
- package/web/chunk-3k31m9yk.js.br +0 -0
- package/web/chunk-3k31m9yk.js.gz +0 -0
- package/web/chunk-3wrebqcz.js +1 -0
- package/web/chunk-3wrebqcz.js.br +0 -0
- package/web/chunk-3wrebqcz.js.gz +0 -0
- package/web/chunk-42z866aa.js +1 -0
- package/web/chunk-42z866aa.js.br +0 -0
- package/web/chunk-42z866aa.js.gz +0 -0
- package/web/chunk-46r5s1ag.js +1 -0
- package/web/chunk-46r5s1ag.js.br +2 -0
- package/web/chunk-46r5s1ag.js.gz +0 -0
- package/web/chunk-4h8kxmac.js +1 -0
- package/web/chunk-4h8kxmac.js.br +2 -0
- package/web/chunk-4h8kxmac.js.gz +0 -0
- package/web/chunk-4hmp8qcv.js +1 -0
- package/web/chunk-4hmp8qcv.js.br +0 -0
- package/web/chunk-4hmp8qcv.js.gz +0 -0
- package/web/chunk-4ryyn6k5.js +1 -0
- package/web/chunk-4ryyn6k5.js.br +0 -0
- package/web/chunk-4ryyn6k5.js.gz +0 -0
- package/web/chunk-4zp7b44y.js +78 -0
- package/web/chunk-4zp7b44y.js.br +0 -0
- package/web/chunk-4zp7b44y.js.gz +0 -0
- package/web/chunk-52n1enqe.js +1 -0
- package/web/chunk-52n1enqe.js.br +0 -0
- package/web/chunk-52n1enqe.js.gz +0 -0
- package/web/chunk-5m5jve5q.js +2 -0
- package/web/chunk-5m5jve5q.js.br +0 -0
- package/web/chunk-5m5jve5q.js.gz +0 -0
- package/web/chunk-62ssrwet.js +1 -0
- package/web/chunk-62ssrwet.js.br +0 -0
- package/web/chunk-62ssrwet.js.gz +0 -0
- package/web/chunk-6e14fdx8.js +1 -0
- package/web/chunk-6e14fdx8.js.br +0 -0
- package/web/chunk-6e14fdx8.js.gz +0 -0
- package/web/chunk-6kckk3j9.js +1 -0
- package/web/chunk-6kckk3j9.js.br +2 -0
- package/web/chunk-6kckk3j9.js.gz +0 -0
- package/web/chunk-6vdh5wx5.js +1 -0
- package/web/chunk-6vdh5wx5.js.br +0 -0
- package/web/chunk-6vdh5wx5.js.gz +0 -0
- package/web/chunk-6wyrfrh1.js +1 -0
- package/web/chunk-6wyrfrh1.js.br +0 -0
- package/web/chunk-6wyrfrh1.js.gz +0 -0
- package/web/chunk-77pcpdb5.js +303 -0
- package/web/chunk-77pcpdb5.js.br +0 -0
- package/web/chunk-77pcpdb5.js.gz +0 -0
- package/web/chunk-7dq3x88k.js +120 -0
- package/web/chunk-7dq3x88k.js.br +0 -0
- package/web/chunk-7dq3x88k.js.gz +0 -0
- package/web/chunk-7ebwmmjn.js +34 -0
- package/web/chunk-7ebwmmjn.js.br +0 -0
- package/web/chunk-7ebwmmjn.js.gz +0 -0
- package/web/chunk-7jra5kj0.js +1 -0
- package/web/chunk-7jra5kj0.js.br +0 -0
- package/web/chunk-7jra5kj0.js.gz +0 -0
- package/web/chunk-8dgtprxa.js +2 -0
- package/web/chunk-8dgtprxa.js.br +0 -0
- package/web/chunk-8dgtprxa.js.gz +0 -0
- package/web/chunk-8mrw5mgn.js +1 -0
- package/web/chunk-8mrw5mgn.js.br +0 -0
- package/web/chunk-8mrw5mgn.js.gz +0 -0
- package/web/chunk-8n1cyb8k.js +99 -0
- package/web/chunk-8n1cyb8k.js.br +0 -0
- package/web/chunk-8n1cyb8k.js.gz +0 -0
- package/web/chunk-8ssjqdky.js +1 -0
- package/web/chunk-8ssjqdky.js.br +2 -0
- package/web/chunk-8ssjqdky.js.gz +0 -0
- package/web/chunk-90k6xrsa.js +2 -0
- package/web/chunk-90k6xrsa.js.br +0 -0
- package/web/chunk-90k6xrsa.js.gz +0 -0
- package/web/chunk-926v5sg8.js +24 -0
- package/web/chunk-926v5sg8.js.br +0 -0
- package/web/chunk-926v5sg8.js.gz +0 -0
- package/web/chunk-9kvr6dkh.js +106 -0
- package/web/chunk-9kvr6dkh.js.br +0 -0
- package/web/chunk-9kvr6dkh.js.gz +0 -0
- package/web/chunk-9s6zj1sh.js +217 -0
- package/web/chunk-9s6zj1sh.js.br +0 -0
- package/web/chunk-9s6zj1sh.js.gz +0 -0
- package/web/chunk-acpyx69f.js +1 -0
- package/web/chunk-acpyx69f.js.br +0 -0
- package/web/chunk-acpyx69f.js.gz +0 -0
- package/web/chunk-amch1hp8.js +1 -0
- package/web/chunk-amch1hp8.js.br +0 -0
- package/web/chunk-amch1hp8.js.gz +0 -0
- package/web/chunk-azjpkz26.js +38 -0
- package/web/chunk-azjpkz26.js.br +0 -0
- package/web/chunk-azjpkz26.js.gz +0 -0
- package/web/chunk-b2zmxzm0.js +2 -0
- package/web/chunk-b2zmxzm0.js.br +0 -0
- package/web/chunk-b2zmxzm0.js.gz +0 -0
- package/web/chunk-bgn0bkad.js +98 -0
- package/web/chunk-bgn0bkad.js.br +0 -0
- package/web/chunk-bgn0bkad.js.gz +0 -0
- package/web/chunk-bka3pbzn.js +4 -0
- package/web/chunk-bka3pbzn.js.br +0 -0
- package/web/chunk-bka3pbzn.js.gz +0 -0
- package/web/chunk-ck23t8as.js +2 -0
- package/web/chunk-ck23t8as.js.br +0 -0
- package/web/chunk-ck23t8as.js.gz +0 -0
- package/web/chunk-cp5ec63g.js +30 -0
- package/web/chunk-cp5ec63g.js.br +0 -0
- package/web/chunk-cp5ec63g.js.gz +0 -0
- package/web/chunk-cw21gjwg.js +39 -0
- package/web/chunk-cw21gjwg.js.br +0 -0
- package/web/chunk-cw21gjwg.js.gz +0 -0
- package/web/chunk-cxcpk0qt.js +2 -0
- package/web/chunk-cxcpk0qt.js.br +0 -0
- package/web/chunk-cxcpk0qt.js.gz +0 -0
- package/web/chunk-d3s30py8.js +1 -0
- package/web/chunk-d3s30py8.js.br +0 -0
- package/web/chunk-d3s30py8.js.gz +0 -0
- package/web/chunk-dj4jc1ec.js +1 -0
- package/web/chunk-dj4jc1ec.js.br +0 -0
- package/web/chunk-dj4jc1ec.js.gz +0 -0
- package/web/chunk-ef2xw0kb.js +1 -0
- package/web/chunk-ef2xw0kb.js.br +0 -0
- package/web/chunk-ef2xw0kb.js.gz +0 -0
- package/web/chunk-fek0yrg5.js +2 -0
- package/web/chunk-fek0yrg5.js.br +0 -0
- package/web/chunk-fek0yrg5.js.gz +0 -0
- package/web/chunk-fgm2r34b.js +36 -0
- package/web/chunk-fgm2r34b.js.br +0 -0
- package/web/chunk-fgm2r34b.js.gz +0 -0
- package/web/chunk-fpqs301q.js +2 -0
- package/web/chunk-fpqs301q.js.br +0 -0
- package/web/chunk-fpqs301q.js.gz +0 -0
- package/web/chunk-fv6se8xf.js +1 -0
- package/web/chunk-fv6se8xf.js.br +2 -0
- package/web/chunk-fv6se8xf.js.gz +0 -0
- package/web/chunk-g0nagyx2.js +1 -0
- package/web/chunk-g0nagyx2.js.br +0 -0
- package/web/chunk-g0nagyx2.js.gz +0 -0
- package/web/chunk-g5fp9ep9.js +1 -0
- package/web/chunk-g5fp9ep9.js.br +0 -0
- package/web/chunk-g5fp9ep9.js.gz +0 -0
- package/web/chunk-gh1fmd3j.js +3 -0
- package/web/chunk-gh1fmd3j.js.br +0 -0
- package/web/chunk-gh1fmd3j.js.gz +0 -0
- package/web/chunk-gq5825re.js +70 -0
- package/web/chunk-gq5825re.js.br +0 -0
- package/web/chunk-gq5825re.js.gz +0 -0
- package/web/chunk-gy57dyny.js +1 -0
- package/web/chunk-gy57dyny.js.br +0 -0
- package/web/chunk-gy57dyny.js.gz +0 -0
- package/web/chunk-j7p6xhe2.js +1 -0
- package/web/chunk-j7p6xhe2.js.br +0 -0
- package/web/chunk-j7p6xhe2.js.gz +0 -0
- package/web/chunk-jb8xfsc6.js +2 -0
- package/web/chunk-jb8xfsc6.js.br +0 -0
- package/web/chunk-jb8xfsc6.js.gz +0 -0
- package/web/chunk-jqyxnnn0.js +1 -0
- package/web/chunk-jqyxnnn0.js.br +0 -0
- package/web/chunk-jqyxnnn0.js.gz +0 -0
- package/web/chunk-jtwct1bx.js +1133 -0
- package/web/chunk-jtwct1bx.js.br +0 -0
- package/web/chunk-jtwct1bx.js.gz +0 -0
- package/web/chunk-k22kq2t7.js +12 -0
- package/web/chunk-k22kq2t7.js.br +0 -0
- package/web/chunk-k22kq2t7.js.gz +0 -0
- package/web/chunk-k2ry7k7s.js +1 -0
- package/web/chunk-k2ry7k7s.js.br +0 -0
- package/web/chunk-k2ry7k7s.js.gz +0 -0
- package/web/chunk-kdbrrecz.js +332 -0
- package/web/chunk-kdbrrecz.js.br +0 -0
- package/web/chunk-kdbrrecz.js.gz +0 -0
- package/web/chunk-kes2tf1q.js +2 -0
- package/web/chunk-kes2tf1q.js.br +3 -0
- package/web/chunk-kes2tf1q.js.gz +0 -0
- package/web/chunk-ksrzt6c5.js +1 -0
- package/web/chunk-ksrzt6c5.js.br +0 -0
- package/web/chunk-ksrzt6c5.js.gz +0 -0
- package/web/chunk-m2ethr1n.js +84 -0
- package/web/chunk-m2ethr1n.js.br +0 -0
- package/web/chunk-m2ethr1n.js.gz +0 -0
- package/web/chunk-m7tcm69z.js +292 -0
- package/web/chunk-m7tcm69z.js.br +0 -0
- package/web/chunk-m7tcm69z.js.gz +0 -0
- package/web/chunk-m8bz4e6n.js +2 -0
- package/web/chunk-m8bz4e6n.js.br +0 -0
- package/web/chunk-m8bz4e6n.js.gz +0 -0
- package/web/chunk-mva687p4.js +1 -0
- package/web/chunk-mva687p4.js.br +0 -0
- package/web/chunk-mva687p4.js.gz +0 -0
- package/web/chunk-n8fe9j5b.js +214 -0
- package/web/chunk-n8fe9j5b.js.br +0 -0
- package/web/chunk-n8fe9j5b.js.gz +0 -0
- package/web/chunk-nckx4yfd.js +62 -0
- package/web/chunk-nckx4yfd.js.br +0 -0
- package/web/chunk-nckx4yfd.js.gz +0 -0
- package/web/chunk-ncynjha5.js +2 -0
- package/web/chunk-ncynjha5.js.br +0 -0
- package/web/chunk-ncynjha5.js.gz +0 -0
- package/web/chunk-nq7dp0wj.js +291 -0
- package/web/chunk-nq7dp0wj.js.br +0 -0
- package/web/chunk-nq7dp0wj.js.gz +0 -0
- package/web/chunk-pagep4k3.js +1 -0
- package/web/chunk-pagep4k3.js.br +0 -0
- package/web/chunk-pagep4k3.js.gz +0 -0
- package/web/chunk-pbrk7zdw.js +1 -0
- package/web/chunk-pbrk7zdw.js.br +0 -0
- package/web/chunk-pbrk7zdw.js.gz +0 -0
- package/web/chunk-q0cs1bhg.js +2 -0
- package/web/chunk-q0cs1bhg.js.br +0 -0
- package/web/chunk-q0cs1bhg.js.gz +0 -0
- package/web/chunk-q749pgke.js +1 -0
- package/web/chunk-q749pgke.js.br +0 -0
- package/web/chunk-q749pgke.js.gz +0 -0
- package/web/chunk-q7yry602.js +1 -0
- package/web/chunk-q7yry602.js.br +0 -0
- package/web/chunk-q7yry602.js.gz +0 -0
- package/web/chunk-qkeaa97s.js +1 -0
- package/web/chunk-qkeaa97s.js.br +0 -0
- package/web/chunk-qkeaa97s.js.gz +0 -0
- package/web/chunk-qx7afyba.js +1 -0
- package/web/chunk-qx7afyba.js.br +0 -0
- package/web/chunk-qx7afyba.js.gz +0 -0
- package/web/chunk-rcaqmcm4.js +40 -0
- package/web/chunk-rcaqmcm4.js.br +0 -0
- package/web/chunk-rcaqmcm4.js.gz +0 -0
- package/web/chunk-s5kbbker.js +89 -0
- package/web/chunk-s5kbbker.js.br +0 -0
- package/web/chunk-s5kbbker.js.gz +0 -0
- package/web/chunk-sdq69ysp.js +2 -0
- package/web/chunk-sdq69ysp.js.br +0 -0
- package/web/chunk-sdq69ysp.js.gz +0 -0
- package/web/chunk-sk0cmsbx.js +7 -0
- package/web/chunk-sk0cmsbx.js.br +0 -0
- package/web/chunk-sk0cmsbx.js.gz +0 -0
- package/web/chunk-smmcx1z4.js +324 -0
- package/web/chunk-smmcx1z4.js.br +0 -0
- package/web/chunk-smmcx1z4.js.gz +0 -0
- package/web/chunk-sq7ntjp0.js +16 -0
- package/web/chunk-sq7ntjp0.js.br +0 -0
- package/web/chunk-sq7ntjp0.js.gz +0 -0
- package/web/chunk-st27df9w.js +2 -0
- package/web/chunk-st27df9w.js.br +0 -0
- package/web/chunk-st27df9w.js.gz +0 -0
- package/web/chunk-svxkg8n3.js +2 -0
- package/web/chunk-svxkg8n3.js.br +0 -0
- package/web/chunk-svxkg8n3.js.gz +0 -0
- package/web/chunk-t9nzrp2p.js +1 -0
- package/web/chunk-t9nzrp2p.js.br +0 -0
- package/web/chunk-t9nzrp2p.js.gz +0 -0
- package/web/chunk-t9t9v1r8.js +55 -0
- package/web/chunk-t9t9v1r8.js.br +0 -0
- package/web/chunk-t9t9v1r8.js.gz +0 -0
- package/web/chunk-tzpv48j3.js +2 -0
- package/web/chunk-tzpv48j3.js.br +0 -0
- package/web/chunk-tzpv48j3.js.gz +0 -0
- package/web/chunk-vgsk4ppw.js +7 -0
- package/web/chunk-vgsk4ppw.js.br +0 -0
- package/web/chunk-vgsk4ppw.js.gz +0 -0
- package/web/chunk-vq41ta7n.js +4 -0
- package/web/chunk-vq41ta7n.js.br +0 -0
- package/web/chunk-vq41ta7n.js.gz +0 -0
- package/web/chunk-w08egbqf.js +1 -0
- package/web/chunk-w08egbqf.js.br +0 -0
- package/web/chunk-w08egbqf.js.gz +0 -0
- package/web/chunk-wcmq0qgh.js +1 -0
- package/web/chunk-wcmq0qgh.js.br +0 -0
- package/web/chunk-wcmq0qgh.js.gz +0 -0
- package/web/chunk-wctq02yb.js +2 -0
- package/web/chunk-wctq02yb.js.br +0 -0
- package/web/chunk-wctq02yb.js.gz +0 -0
- package/web/chunk-wfwadf3r.js +2 -0
- package/web/chunk-wfwadf3r.js.br +0 -0
- package/web/chunk-wfwadf3r.js.gz +0 -0
- package/web/chunk-wgas5t5y.js +1 -0
- package/web/chunk-wgas5t5y.js.br +0 -0
- package/web/chunk-wgas5t5y.js.gz +0 -0
- package/web/chunk-x7k4eyee.js +21 -0
- package/web/chunk-x7k4eyee.js.br +0 -0
- package/web/chunk-x7k4eyee.js.gz +0 -0
- package/web/chunk-xpv38q1f.js +140 -0
- package/web/chunk-xpv38q1f.js.br +0 -0
- package/web/chunk-xpv38q1f.js.gz +0 -0
- package/web/chunk-xt671z8e.js +1 -0
- package/web/chunk-xt671z8e.js.br +0 -0
- package/web/chunk-xt671z8e.js.gz +0 -0
- package/web/chunk-xwrrkwwx.css +1 -0
- package/web/chunk-xwrrkwwx.css.br +0 -0
- package/web/chunk-xwrrkwwx.css.gz +0 -0
- package/web/chunk-xwy3gth5.js +89 -0
- package/web/chunk-xwy3gth5.js.br +0 -0
- package/web/chunk-xwy3gth5.js.gz +0 -0
- package/web/chunk-xwyadj9p.js +2 -0
- package/web/chunk-xwyadj9p.js.br +0 -0
- package/web/chunk-xwyadj9p.js.gz +0 -0
- package/web/chunk-xzgvnd23.js +1 -0
- package/web/chunk-xzgvnd23.js.br +0 -0
- package/web/chunk-xzgvnd23.js.gz +0 -0
- package/web/chunk-y05m6rvz.js +1 -0
- package/web/chunk-y05m6rvz.js.br +2 -0
- package/web/chunk-y05m6rvz.js.gz +0 -0
- package/web/chunk-z51mtwh3.js +169 -0
- package/web/chunk-z51mtwh3.js.br +0 -0
- package/web/chunk-z51mtwh3.js.gz +0 -0
- package/web/chunk-z77xrqc1.js +1 -0
- package/web/chunk-z77xrqc1.js.br +0 -0
- package/web/chunk-z77xrqc1.js.gz +0 -0
- package/web/chunk-z946nbmn.js +2 -0
- package/web/chunk-z946nbmn.js.br +0 -0
- package/web/chunk-z946nbmn.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-02q61grt.js +0 -3
- package/chunk-03r6s8pm.js +0 -2
- package/chunk-09fsdkd3.js +0 -5
- package/chunk-0bg4w7ht.js +0 -3
- package/chunk-0s4r7k7j.js +0 -2
- package/chunk-27kw4nth.js +0 -2
- package/chunk-2ag9mvms.js +0 -10
- package/chunk-2shwjp8q.js +0 -3
- package/chunk-3114vstw.js +0 -2
- package/chunk-31meb34a.js +0 -2
- package/chunk-34w345mt.js +0 -2
- package/chunk-3amfr8zp.js +0 -7
- package/chunk-40nk2jjt.js +0 -2
- package/chunk-49bz6hg5.js +0 -25
- package/chunk-4hgkwa4k.js +0 -3
- package/chunk-4wfd77kc.js +0 -2
- package/chunk-55kpabb3.js +0 -2
- package/chunk-5p2asrj6.js +0 -2
- package/chunk-65hg0v7e.js +0 -2
- package/chunk-67qw30cj.js +0 -3770
- package/chunk-6rehcf49.js +0 -12
- package/chunk-6vkz3wqz.js +0 -25
- package/chunk-81yk0kj2.js +0 -3
- package/chunk-885vf5kb.js +0 -2
- package/chunk-8wy08x0d.js +0 -2
- package/chunk-9cqa9trx.js +0 -4
- package/chunk-ae45qq4z.js +0 -2
- package/chunk-ag3em5yv.js +0 -4
- package/chunk-b5k5p49x.js +0 -2
- package/chunk-b84vbfjc.js +0 -2
- package/chunk-dkpgstr2.js +0 -18
- package/chunk-dzn4c87v.js +0 -3
- package/chunk-e5xsyr0n.js +0 -3
- package/chunk-f97ma522.js +0 -3
- package/chunk-f9yneea6.js +0 -3
- package/chunk-fk43jgwe.js +0 -31
- package/chunk-frjqjdkx.js +0 -11
- package/chunk-fycz7ap5.js +0 -2
- package/chunk-fzefs6kn.js +0 -3
- package/chunk-g1n8k4dg.js +0 -5
- package/chunk-g5mdw639.js +0 -3
- package/chunk-gnvx44kj.js +0 -10
- package/chunk-gpympx0t.js +0 -467
- package/chunk-gyp2jn7d.js +0 -3
- package/chunk-hambwbfz.js +0 -7
- package/chunk-j02kqpvq.js +0 -5
- package/chunk-j1h7pabk.js +0 -7
- package/chunk-j6hn9qz6.js +0 -3
- package/chunk-jfx4c32t.js +0 -8
- package/chunk-jjj8a18b.js +0 -59
- package/chunk-k3c32v59.js +0 -3
- package/chunk-k8j3fvx5.js +0 -2
- package/chunk-kcn3af9r.js +0 -12
- package/chunk-m45dpnd1.js +0 -16
- package/chunk-m4wf04dz.js +0 -15
- package/chunk-m8k6t63k.js +0 -2
- package/chunk-nrggp4x6.js +0 -2
- package/chunk-nt549hv5.js +0 -2
- package/chunk-pg4mtrdy.js +0 -3
- package/chunk-psr4rxnn.js +0 -20
- package/chunk-qhhv81gd.js +0 -2
- package/chunk-qprms4rt.js +0 -2
- package/chunk-r0pm6dap.js +0 -3
- package/chunk-rck0kx09.js +0 -2
- package/chunk-rsn8ad6s.js +0 -2
- package/chunk-skzh3q1s.js +0 -2
- package/chunk-sm4b3q49.js +0 -3
- package/chunk-ste3ek53.js +0 -3
- package/chunk-trw86cmb.js +0 -11
- package/chunk-tv7met41.js +0 -3
- package/chunk-w33aapmk.js +0 -39
- package/chunk-wkqrsfrb.js +0 -389
- package/chunk-wxngqzqs.js +0 -3
- package/chunk-xafx1p7z.js +0 -3
- package/chunk-xgfqmm46.js +0 -2
- package/chunk-xr77j4f8.js +0 -9
- package/chunk-ykstnss8.js +0 -3
- package/chunk-yqv7ej5r.js +0 -5
- package/chunk-z97bcdg2.js +0 -3
- package/chunk-z9s7pwv5.js +0 -7
- package/web/chunk-013et20n.js +0 -2
- package/web/chunk-013et20n.js.br +0 -0
- package/web/chunk-013et20n.js.gz +0 -0
- package/web/chunk-0ernj3c0.js +0 -1
- package/web/chunk-0ernj3c0.js.br +0 -0
- package/web/chunk-0ernj3c0.js.gz +0 -0
- package/web/chunk-0j65yg1p.js +0 -1
- package/web/chunk-0j65yg1p.js.br +0 -0
- package/web/chunk-0j65yg1p.js.gz +0 -0
- package/web/chunk-0khcpaa8.js +0 -1
- package/web/chunk-0khcpaa8.js.br +0 -0
- package/web/chunk-0khcpaa8.js.gz +0 -0
- package/web/chunk-0wbdd74r.js +0 -1
- package/web/chunk-0wbdd74r.js.br +0 -2
- package/web/chunk-0wbdd74r.js.gz +0 -0
- package/web/chunk-1f2wvhq9.js +0 -1
- package/web/chunk-1f2wvhq9.js.br +0 -0
- package/web/chunk-1f2wvhq9.js.gz +0 -0
- package/web/chunk-1q2kmv35.js +0 -332
- package/web/chunk-1q2kmv35.js.br +0 -0
- package/web/chunk-1q2kmv35.js.gz +0 -0
- package/web/chunk-1tfrm3pk.js +0 -2
- package/web/chunk-1tfrm3pk.js.br +0 -0
- package/web/chunk-1tfrm3pk.js.gz +0 -0
- package/web/chunk-2qt5fy5n.js +0 -1
- package/web/chunk-2qt5fy5n.js.br +0 -0
- package/web/chunk-2qt5fy5n.js.gz +0 -0
- package/web/chunk-2sxtb709.js +0 -1
- package/web/chunk-2sxtb709.js.br +0 -0
- package/web/chunk-2sxtb709.js.gz +0 -0
- package/web/chunk-2wrwm0qe.js +0 -1
- package/web/chunk-2wrwm0qe.js.br +0 -0
- package/web/chunk-2wrwm0qe.js.gz +0 -0
- package/web/chunk-2wwj27b9.js +0 -7
- package/web/chunk-2wwj27b9.js.br +0 -0
- package/web/chunk-2wwj27b9.js.gz +0 -0
- package/web/chunk-33mmrjdp.js +0 -1
- package/web/chunk-33mmrjdp.js.br +0 -2
- package/web/chunk-33mmrjdp.js.gz +0 -0
- package/web/chunk-33tb7q04.js +0 -2
- package/web/chunk-33tb7q04.js.br +0 -0
- package/web/chunk-33tb7q04.js.gz +0 -0
- package/web/chunk-3txb4sha.js +0 -1
- package/web/chunk-3txb4sha.js.br +0 -0
- package/web/chunk-3txb4sha.js.gz +0 -0
- package/web/chunk-3xgfsx7y.js +0 -2
- package/web/chunk-3xgfsx7y.js.br +0 -0
- package/web/chunk-3xgfsx7y.js.gz +0 -0
- package/web/chunk-40jka4r7.js +0 -2
- package/web/chunk-40jka4r7.js.br +0 -0
- package/web/chunk-40jka4r7.js.gz +0 -0
- package/web/chunk-41vh5n86.js +0 -1
- package/web/chunk-41vh5n86.js.br +0 -0
- package/web/chunk-41vh5n86.js.gz +0 -0
- package/web/chunk-5kz048x3.js +0 -2
- package/web/chunk-5kz048x3.js.br +0 -0
- package/web/chunk-5kz048x3.js.gz +0 -0
- package/web/chunk-5mbz8yj9.js +0 -3
- package/web/chunk-5mbz8yj9.js.br +0 -0
- package/web/chunk-5mbz8yj9.js.gz +0 -0
- package/web/chunk-6024wfxb.js +0 -30
- package/web/chunk-6024wfxb.js.br +0 -0
- package/web/chunk-6024wfxb.js.gz +0 -0
- package/web/chunk-6ey4c6gw.js +0 -2
- package/web/chunk-6ey4c6gw.js.br +0 -0
- package/web/chunk-6ey4c6gw.js.gz +0 -0
- package/web/chunk-6q3p851n.js +0 -1
- package/web/chunk-6q3p851n.js.br +0 -2
- package/web/chunk-6q3p851n.js.gz +0 -0
- package/web/chunk-74g3wh08.js +0 -2
- package/web/chunk-74g3wh08.js.br +0 -0
- package/web/chunk-74g3wh08.js.gz +0 -0
- package/web/chunk-78akzkgs.js +0 -84
- package/web/chunk-78akzkgs.js.br +0 -0
- package/web/chunk-78akzkgs.js.gz +0 -0
- package/web/chunk-7ck99bsp.js +0 -62
- package/web/chunk-7ck99bsp.js.br +0 -0
- package/web/chunk-7ck99bsp.js.gz +0 -0
- package/web/chunk-7fjbyns9.js +0 -1
- package/web/chunk-7fjbyns9.js.br +0 -0
- package/web/chunk-7fjbyns9.js.gz +0 -0
- package/web/chunk-7n6b2xra.js +0 -21
- package/web/chunk-7n6b2xra.js.br +0 -0
- package/web/chunk-7n6b2xra.js.gz +0 -0
- package/web/chunk-7p4mcqkd.js +0 -78
- package/web/chunk-7p4mcqkd.js.br +0 -0
- package/web/chunk-7p4mcqkd.js.gz +0 -0
- package/web/chunk-7ztwkhg5.js +0 -1
- package/web/chunk-7ztwkhg5.js.br +0 -0
- package/web/chunk-7ztwkhg5.js.gz +0 -0
- package/web/chunk-823etvc3.js +0 -99
- package/web/chunk-823etvc3.js.br +0 -0
- package/web/chunk-823etvc3.js.gz +0 -0
- package/web/chunk-8ec53vjd.js +0 -1
- package/web/chunk-8ec53vjd.js.br +0 -0
- package/web/chunk-8ec53vjd.js.gz +0 -0
- package/web/chunk-8g55ytgz.js +0 -1
- package/web/chunk-8g55ytgz.js.br +0 -0
- package/web/chunk-8g55ytgz.js.gz +0 -0
- package/web/chunk-8q76yd76.js +0 -291
- package/web/chunk-8q76yd76.js.br +0 -0
- package/web/chunk-8q76yd76.js.gz +0 -0
- package/web/chunk-9kbrjmtz.js +0 -1
- package/web/chunk-9kbrjmtz.js.br +0 -0
- package/web/chunk-9kbrjmtz.js.gz +0 -0
- package/web/chunk-9s4bh6qm.js +0 -40
- package/web/chunk-9s4bh6qm.js.br +0 -0
- package/web/chunk-9s4bh6qm.js.gz +0 -0
- package/web/chunk-a449xjq6.js +0 -7
- package/web/chunk-a449xjq6.js.br +0 -0
- package/web/chunk-a449xjq6.js.gz +0 -0
- package/web/chunk-b05eay33.js +0 -1
- package/web/chunk-b05eay33.js.br +0 -0
- package/web/chunk-b05eay33.js.gz +0 -0
- package/web/chunk-bdypt5mj.js +0 -142
- package/web/chunk-bdypt5mj.js.br +0 -0
- package/web/chunk-bdypt5mj.js.gz +0 -0
- package/web/chunk-ccy2q2z0.js +0 -2
- package/web/chunk-ccy2q2z0.js.br +0 -0
- package/web/chunk-ccy2q2z0.js.gz +0 -0
- package/web/chunk-ceg13tma.js +0 -2
- package/web/chunk-ceg13tma.js.br +0 -0
- package/web/chunk-ceg13tma.js.gz +0 -0
- package/web/chunk-ch60a61d.js +0 -2
- package/web/chunk-ch60a61d.js.br +0 -0
- package/web/chunk-ch60a61d.js.gz +0 -0
- package/web/chunk-czvdg0c5.js +0 -1
- package/web/chunk-czvdg0c5.js.br +0 -0
- package/web/chunk-czvdg0c5.js.gz +0 -0
- package/web/chunk-dsa5m3h6.js +0 -200
- package/web/chunk-dsa5m3h6.js.br +0 -0
- package/web/chunk-dsa5m3h6.js.gz +0 -0
- package/web/chunk-dww3grm3.js +0 -24
- package/web/chunk-dww3grm3.js.br +0 -0
- package/web/chunk-dww3grm3.js.gz +0 -0
- package/web/chunk-e187gt5x.js +0 -1
- package/web/chunk-e187gt5x.js.br +0 -0
- package/web/chunk-e187gt5x.js.gz +0 -0
- package/web/chunk-ey0zwvbx.js +0 -1
- package/web/chunk-ey0zwvbx.js.br +0 -0
- package/web/chunk-ey0zwvbx.js.gz +0 -0
- package/web/chunk-ey14knbn.js +0 -2
- package/web/chunk-ey14knbn.js.br +0 -0
- package/web/chunk-ey14knbn.js.gz +0 -0
- package/web/chunk-fba06jm8.js +0 -1132
- package/web/chunk-fba06jm8.js.br +0 -0
- package/web/chunk-fba06jm8.js.gz +0 -0
- package/web/chunk-fh56vgfx.js +0 -39
- package/web/chunk-fh56vgfx.js.br +0 -0
- package/web/chunk-fh56vgfx.js.gz +0 -0
- package/web/chunk-ft05x3my.js +0 -169
- package/web/chunk-ft05x3my.js.br +0 -0
- package/web/chunk-ft05x3my.js.gz +0 -0
- package/web/chunk-fzmrnh17.js +0 -303
- package/web/chunk-fzmrnh17.js.br +0 -0
- package/web/chunk-fzmrnh17.js.gz +0 -0
- package/web/chunk-gbt7asd7.js +0 -2
- package/web/chunk-gbt7asd7.js.br +0 -0
- package/web/chunk-gbt7asd7.js.gz +0 -0
- package/web/chunk-gh9fkn3t.js +0 -1
- package/web/chunk-gh9fkn3t.js.br +0 -2
- package/web/chunk-gh9fkn3t.js.gz +0 -0
- package/web/chunk-h1syyjqq.js +0 -2
- package/web/chunk-h1syyjqq.js.br +0 -0
- package/web/chunk-h1syyjqq.js.gz +0 -0
- package/web/chunk-h7byk4z3.js +0 -140
- package/web/chunk-h7byk4z3.js.br +0 -0
- package/web/chunk-h7byk4z3.js.gz +0 -0
- package/web/chunk-hby0hkv4.js +0 -1
- package/web/chunk-hby0hkv4.js.br +0 -0
- package/web/chunk-hby0hkv4.js.gz +0 -0
- package/web/chunk-hjvsp2yx.js +0 -1
- package/web/chunk-hjvsp2yx.js.br +0 -0
- package/web/chunk-hjvsp2yx.js.gz +0 -0
- package/web/chunk-hpjzy5ww.js +0 -1
- package/web/chunk-hpjzy5ww.js.br +0 -0
- package/web/chunk-hpjzy5ww.js.gz +0 -0
- package/web/chunk-hzfp8kqx.js +0 -217
- package/web/chunk-hzfp8kqx.js.br +0 -0
- package/web/chunk-hzfp8kqx.js.gz +0 -0
- package/web/chunk-j8f0m1dq.js +0 -1
- package/web/chunk-j8f0m1dq.js.br +0 -0
- package/web/chunk-j8f0m1dq.js.gz +0 -0
- package/web/chunk-jc178ad5.js +0 -2
- package/web/chunk-jc178ad5.js.br +0 -0
- package/web/chunk-jc178ad5.js.gz +0 -0
- package/web/chunk-jcsf0ke5.js +0 -41
- package/web/chunk-jcsf0ke5.js.br +0 -0
- package/web/chunk-jcsf0ke5.js.gz +0 -0
- package/web/chunk-jg43a2xk.js +0 -139
- package/web/chunk-jg43a2xk.js.br +0 -0
- package/web/chunk-jg43a2xk.js.gz +0 -0
- package/web/chunk-jrgdxqtq.js +0 -7
- package/web/chunk-jrgdxqtq.js.br +0 -0
- package/web/chunk-jrgdxqtq.js.gz +0 -0
- package/web/chunk-js8dvtfg.js +0 -2
- package/web/chunk-js8dvtfg.js.br +0 -0
- package/web/chunk-js8dvtfg.js.gz +0 -0
- package/web/chunk-jt0s9qs7.js +0 -1
- package/web/chunk-jt0s9qs7.js.br +0 -0
- package/web/chunk-jt0s9qs7.js.gz +0 -0
- package/web/chunk-jv5faf88.js +0 -34
- package/web/chunk-jv5faf88.js.br +0 -0
- package/web/chunk-jv5faf88.js.gz +0 -0
- package/web/chunk-k295x81w.js +0 -370
- package/web/chunk-k295x81w.js.br +0 -0
- package/web/chunk-k295x81w.js.gz +0 -0
- package/web/chunk-k6wxwgp1.js +0 -55
- package/web/chunk-k6wxwgp1.js.br +0 -0
- package/web/chunk-k6wxwgp1.js.gz +0 -0
- package/web/chunk-k9vc7kp2.js +0 -292
- package/web/chunk-k9vc7kp2.js.br +0 -0
- package/web/chunk-k9vc7kp2.js.gz +0 -0
- package/web/chunk-kxyws7q7.js +0 -1
- package/web/chunk-kxyws7q7.js.br +0 -0
- package/web/chunk-kxyws7q7.js.gz +0 -0
- package/web/chunk-mcgf645h.js +0 -1
- package/web/chunk-mcgf645h.js.br +0 -4
- package/web/chunk-mcgf645h.js.gz +0 -0
- package/web/chunk-mj3tshy8.js +0 -214
- package/web/chunk-mj3tshy8.js.br +0 -0
- package/web/chunk-mj3tshy8.js.gz +0 -0
- package/web/chunk-mnb2wdvy.js +0 -24
- package/web/chunk-mnb2wdvy.js.br +0 -0
- package/web/chunk-mnb2wdvy.js.gz +0 -0
- package/web/chunk-ndf58dgc.js +0 -1
- package/web/chunk-ndf58dgc.js.br +0 -0
- package/web/chunk-ndf58dgc.js.gz +0 -0
- package/web/chunk-nhpm5nd5.js +0 -2
- package/web/chunk-nhpm5nd5.js.br +0 -0
- package/web/chunk-nhpm5nd5.js.gz +0 -0
- package/web/chunk-nwxjdetb.js +0 -1
- package/web/chunk-nwxjdetb.js.br +0 -0
- package/web/chunk-nwxjdetb.js.gz +0 -0
- package/web/chunk-nyjfcard.js +0 -106
- package/web/chunk-nyjfcard.js.br +0 -0
- package/web/chunk-nyjfcard.js.gz +0 -0
- package/web/chunk-pcfjcy3a.js +0 -324
- package/web/chunk-pcfjcy3a.js.br +0 -0
- package/web/chunk-pcfjcy3a.js.gz +0 -0
- package/web/chunk-pry6wdbe.js +0 -1
- package/web/chunk-pry6wdbe.js.br +0 -0
- package/web/chunk-pry6wdbe.js.gz +0 -0
- package/web/chunk-pvahdcgy.js +0 -2
- package/web/chunk-pvahdcgy.js.br +0 -0
- package/web/chunk-pvahdcgy.js.gz +0 -0
- package/web/chunk-q3njnnef.js +0 -16
- package/web/chunk-q3njnnef.js.br +0 -0
- package/web/chunk-q3njnnef.js.gz +0 -0
- package/web/chunk-rbmp2e4b.js +0 -1
- package/web/chunk-rbmp2e4b.js.br +0 -0
- package/web/chunk-rbmp2e4b.js.gz +0 -0
- package/web/chunk-rcre1stj.js +0 -1
- package/web/chunk-rcre1stj.js.br +0 -0
- package/web/chunk-rcre1stj.js.gz +0 -0
- package/web/chunk-rdb6091n.js +0 -89
- package/web/chunk-rdb6091n.js.br +0 -0
- package/web/chunk-rdb6091n.js.gz +0 -0
- package/web/chunk-ryw7xnab.js +0 -1
- package/web/chunk-ryw7xnab.js.br +0 -0
- package/web/chunk-ryw7xnab.js.gz +0 -0
- package/web/chunk-sbbmy02e.js +0 -2
- package/web/chunk-sbbmy02e.js.br +0 -0
- package/web/chunk-sbbmy02e.js.gz +0 -0
- package/web/chunk-sydy10mb.js +0 -1
- package/web/chunk-sydy10mb.js.br +0 -0
- package/web/chunk-sydy10mb.js.gz +0 -0
- package/web/chunk-t0ywnp5e.js +0 -1
- package/web/chunk-t0ywnp5e.js.br +0 -0
- package/web/chunk-t0ywnp5e.js.gz +0 -0
- package/web/chunk-t72jq97z.js +0 -2
- package/web/chunk-t72jq97z.js.br +0 -0
- package/web/chunk-t72jq97z.js.gz +0 -0
- package/web/chunk-tfcc9bcz.js +0 -4
- package/web/chunk-tfcc9bcz.js.br +0 -0
- package/web/chunk-tfcc9bcz.js.gz +0 -0
- package/web/chunk-v2bvbgfc.js +0 -2
- package/web/chunk-v2bvbgfc.js.br +0 -0
- package/web/chunk-v2bvbgfc.js.gz +0 -0
- package/web/chunk-v7zq4vc9.js +0 -12
- package/web/chunk-v7zq4vc9.js.br +0 -0
- package/web/chunk-v7zq4vc9.js.gz +0 -0
- package/web/chunk-vh8pkcem.css +0 -1
- package/web/chunk-vh8pkcem.css.br +0 -0
- package/web/chunk-vh8pkcem.css.gz +0 -0
- package/web/chunk-vq3sby7x.js +0 -1
- package/web/chunk-vq3sby7x.js.br +0 -0
- package/web/chunk-vq3sby7x.js.gz +0 -0
- package/web/chunk-was9xf03.js +0 -8
- package/web/chunk-was9xf03.js.br +0 -0
- package/web/chunk-was9xf03.js.gz +0 -0
- package/web/chunk-we1v1829.js +0 -2
- package/web/chunk-we1v1829.js.br +0 -0
- package/web/chunk-we1v1829.js.gz +0 -0
- package/web/chunk-wg2exnxe.js +0 -1
- package/web/chunk-wg2exnxe.js.br +0 -2
- package/web/chunk-wg2exnxe.js.gz +0 -0
- package/web/chunk-wvd3zj1m.js +0 -70
- package/web/chunk-wvd3zj1m.js.br +0 -0
- package/web/chunk-wvd3zj1m.js.gz +0 -0
- package/web/chunk-wzmxtr30.js +0 -1
- package/web/chunk-wzmxtr30.js.br +0 -0
- package/web/chunk-wzmxtr30.js.gz +0 -0
- package/web/chunk-x815g7yp.js +0 -1
- package/web/chunk-x815g7yp.js.br +0 -0
- package/web/chunk-x815g7yp.js.gz +0 -0
- package/web/chunk-x8ps0p82.js +0 -98
- package/web/chunk-x8ps0p82.js.br +0 -0
- package/web/chunk-x8ps0p82.js.gz +0 -0
- package/web/chunk-xea3snym.js +0 -1
- package/web/chunk-xea3snym.js.br +0 -0
- package/web/chunk-xea3snym.js.gz +0 -0
- package/web/chunk-xg4v60m7.js +0 -1
- package/web/chunk-xg4v60m7.js.br +0 -0
- package/web/chunk-xg4v60m7.js.gz +0 -0
- package/web/chunk-xhr9jrjt.js +0 -89
- package/web/chunk-xhr9jrjt.js.br +0 -0
- package/web/chunk-xhr9jrjt.js.gz +0 -0
- package/web/chunk-xp90g2e7.js +0 -36
- package/web/chunk-xp90g2e7.js.br +0 -0
- package/web/chunk-xp90g2e7.js.gz +0 -0
- package/web/chunk-xs1g97qa.js +0 -2
- package/web/chunk-xs1g97qa.js.br +0 -0
- package/web/chunk-xs1g97qa.js.gz +0 -0
- package/web/chunk-xyk1wpr4.js +0 -1
- package/web/chunk-xyk1wpr4.js.br +0 -3
- package/web/chunk-xyk1wpr4.js.gz +0 -0
- package/web/chunk-yavbdwyt.js +0 -1
- package/web/chunk-yavbdwyt.js.br +0 -0
- package/web/chunk-yavbdwyt.js.gz +0 -0
- package/web/chunk-yfnhnsxe.js +0 -4
- package/web/chunk-yfnhnsxe.js.br +0 -0
- package/web/chunk-yfnhnsxe.js.gz +0 -0
- package/web/chunk-yk965yth.js +0 -1
- package/web/chunk-yk965yth.js.br +0 -0
- package/web/chunk-yk965yth.js.gz +0 -0
- package/web/chunk-ynhcjhsx.js +0 -2
- package/web/chunk-ynhcjhsx.js.br +0 -0
- package/web/chunk-ynhcjhsx.js.gz +0 -0
- package/web/chunk-ypmm1gts.js +0 -1
- package/web/chunk-ypmm1gts.js.br +0 -0
- package/web/chunk-ypmm1gts.js.gz +0 -0
- package/web/chunk-yssx5a5q.js +0 -1
- package/web/chunk-yssx5a5q.js.br +0 -0
- package/web/chunk-yssx5a5q.js.gz +0 -0
- package/web/chunk-z0a8cnq8.js +0 -1
- package/web/chunk-z0a8cnq8.js.br +0 -0
- package/web/chunk-z0a8cnq8.js.gz +0 -0
- package/web/chunk-z1afsvbv.js +0 -2
- package/web/chunk-z1afsvbv.js.br +0 -0
- package/web/chunk-z1afsvbv.js.gz +0 -0
- package/web/chunk-z1ka8jtd.js +0 -2
- package/web/chunk-z1ka8jtd.js.br +0 -0
- package/web/chunk-z1ka8jtd.js.gz +0 -0
- package/web/chunk-z7tdzen9.js +0 -1
- package/web/chunk-z7tdzen9.js.br +0 -0
- package/web/chunk-z7tdzen9.js.gz +0 -0
- package/web/chunk-zbwjj06m.js +0 -38
- package/web/chunk-zbwjj06m.js.br +0 -0
- package/web/chunk-zbwjj06m.js.gz +0 -0
- package/web/chunk-zd2j189j.js +0 -1
- package/web/chunk-zd2j189j.js.br +0 -0
- package/web/chunk-zd2j189j.js.gz +0 -0
- package/web/chunk-zfgpq4n4.js +0 -120
- package/web/chunk-zfgpq4n4.js.br +0 -0
- package/web/chunk-zfgpq4n4.js.gz +0 -0
- package/web/chunk-zgas56xw.js +0 -1
- package/web/chunk-zgas56xw.js.br +0 -0
- package/web/chunk-zgas56xw.js.gz +0 -0
- package/web/chunk-zkfepf91.js +0 -1
- package/web/chunk-zkfepf91.js.br +0 -0
- package/web/chunk-zkfepf91.js.gz +0 -0
package/web/chunk-7ck99bsp.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import{re}from"./chunk-js8dvtfg.js";import{t,a,Ge,B,S,G,A,R,I,L,D,P,N,Q,X}from"./chunk-fzmrnh17.js";import{me}from"./chunk-bdypt5mj.js";var ut=t(()=>({domains:new Map,transitions:[]}),"createDefaultData"),et=ut(),At=t(()=>et.domains,"getDomains"),Bt=t(()=>et.transitions,"getTransitions"),St=t((e)=>{if(!e)return;for(let n of e){let o=n.domain,r=(n.items??[]).map((l)=>({label:l.label}));et.domains.set(o,{name:o,items:r})}},"setDomains"),Mt=t((e)=>{if(!e)return;et.transitions=e.filter((n)=>{if(n.from===n.to)return a.warn(`Cynefin: self-loop transition on domain "${n.from}" is not meaningful and will be skipped.`),!1;return!0}).map((n)=>({from:n.from,to:n.to,label:n.label||void 0}))},"setTransitions"),zt=t(()=>X({...B.cynefin,...S().cynefin}),"getConfig"),Lt=t(()=>{A(),et=ut()},"clear"),at={getDomains:At,getTransitions:Bt,setDomains:St,setTransitions:Mt,getConfig:zt,clear:Lt,setAccTitle:R,getAccTitle:I,setDiagramTitle:P,getDiagramTitle:N,getAccDescription:D,setAccDescription:L},Nt=t((e)=>{re(e,at),at.setDomains(e.domains),at.setTransitions(e.transitions)},"populate"),Pt={parse:t(async(e)=>{let n=await me("cynefin",e);a.debug(n),Nt(n)},"parse")};function tt(e){let n=e+1831565813|0;return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}t(tt,"seededRandom");function gt(e){let n=0;for(let o=0;o<e.length;o++){let r=e.charCodeAt(o);n=(n<<5)-n+r,n|=0}return n}t(gt,"hashString");function ht(e,n){if(typeof e==="number"&&Number.isFinite(e)&&e!==0)return e;return gt(n)}t(ht,"resolveSeed");function xt(e,n,o,r){let l=e/2,p=r??e*0.015,nt=7,q=n/7,f=[];for(let i=0;i<=7;i++){let y=tt(o+i*17)*p*2-p;f.push({x:l+y,y:i*q})}let T=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.y+c.y)/2,C=i%2===0?1:-1,h=p*1.5*C*tt(o+i*31+7),U=y.x+h,Z=m,J=c.x-h;T+=` C${U},${Z} ${J},${m} ${c.x},${c.y}`}return T}t(xt,"generateFoldPath");function $t(e,n,o,r){let l=n/2,p=r??n*0.015,nt=7,q=e/7,f=[];for(let i=0;i<=7;i++){let y=tt(o+i*23)*p*2-p;f.push({x:i*q,y:l+y})}let T=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.x+c.x)/2,C=i%2===0?1:-1,h=p*1.5*C*tt(o+i*37+11),U=m,Z=y.y+h,J=m,E=c.y-h;T+=` C${U},${Z} ${J},${E} ${c.x},${c.y}`}return T}t($t,"generateHorizontalBoundary");function bt(e,n){let o=e/2,r=n*0.5,l=n,p=e*0.03;return[`M${o},${r}`,`C${o+p},${r+(l-r)*0.2}`,`${o-p*1.5},${r+(l-r)*0.55}`,`${o+p*0.5},${r+(l-r)*0.75}`,`C${o-p},${r+(l-r)*0.85}`,`${o+p*0.3},${r+(l-r)*0.95}`,`${o},${l}`].join(" ")}t(bt,"generateCliffPath");function wt(e,n,o,r){return[`M${e-o},${n}`,`A${o},${r} 0 1,1 ${e+o},${n}`,`A${o},${r} 0 1,1 ${e-o},${n}`,"Z"].join(" ")}t(wt,"generateConfusionPath");var yt={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},It=t((e,n)=>{let o=e/2,r=n/2;return{complex:{cx:o/2,cy:r/2,x:0,y:0,w:o,h:r},complicated:{cx:o+o/2,cy:r/2,x:o,y:0,w:o,h:r},chaotic:{cx:o/2,cy:r+r/2,x:0,y:r,w:o,h:r},clear:{cx:o+o/2,cy:r+r/2,x:o,y:r,w:o,h:r},confusion:{cx:o,cy:r,x:o*0.7,y:r*0.7,w:o*0.6,h:r*0.6}}},"getDomainLayouts"),Wt=t(()=>{let e=Ge(),n=S();return X(e,n.themeVariables).cynefin},"getCynefinDomainColors"),st=3,Rt=t((e,n,o,r)=>{let l=r.db,p=l.getDomains(),nt=l.getTransitions(),q=l.getDiagramTitle(),f=l.getAccTitle(),T=l.getAccDescription(),i=l.getConfig(),y=Wt();a.debug("Rendering Cynefin diagram");let{width:c,height:m,padding:C,showDomainDescriptions:h,boundaryAmplitude:U}=i,Z=c+C*2,J=m+C*2,E={complex:y.complexBg,complicated:y.complicatedBg,clear:y.clearBg,chaotic:y.chaoticBg,confusion:y.confusionBg},M=Q(n);if(G(M,J,Z,i.useMaxWidth??!0),M.attr("viewBox",`0 0 ${Z} ${J}`),f)M.append("title").text(f);if(T)M.append("desc").text(T);let z=M.append("g").attr("transform",`translate(${C}, ${C})`),K=It(c,m),ct=ht(i.seed,n),Ct=z.append("g").attr("class","cynefin-backgrounds"),rt=["complex","complicated","chaotic","clear"];for(let d of rt){let s=K[d];Ct.append("rect").attr("class","cynefinDomain").attr("x",s.x).attr("y",s.y).attr("width",s.w).attr("height",s.h).attr("fill",E[d]).attr("fill-opacity",0.4).attr("stroke","none")}let it=z.append("g").attr("class","cynefin-boundaries");it.append("path").attr("class","cynefinBoundary").attr("d",xt(c,m,ct,U)).attr("fill","none"),it.append("path").attr("class","cynefinBoundary").attr("d",$t(c,m,ct+100,U)).attr("fill","none"),it.append("path").attr("class","cynefinCliff").attr("d",bt(c,m)).attr("fill","none");let vt=c*0.15,Dt=m*0.15;z.append("path").attr("class","cynefinConfusion").attr("d",wt(c/2,m/2,vt,Dt)).attr("fill",E.confusion).attr("fill-opacity",0.5);let lt=z.append("g").attr("class","cynefin-labels");for(let d of rt){let s=K[d];lt.append("text").attr("class","cynefinDomainLabel").attr("x",s.cx).attr("y",h?s.cy-30:s.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d.charAt(0).toUpperCase()+d.slice(1))}if(lt.append("text").attr("class","cynefinDomainLabel").attr("x",c/2).attr("y",h?m/2-10:m/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){let d=z.append("g").attr("class","cynefin-subtitles");for(let s of rt){let g=K[s],u=yt[s];d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.model),d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.practice)}d.append("text").attr("class","cynefinSubtitle").attr("x",c/2).attr("y",m/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(yt.confusion.practice)}let dt=z.append("g").attr("class","cynefin-items"),W=26,ft=10,kt=["complex","complicated","chaotic","clear","confusion"];for(let d of kt){let s=p.get(d);if(!s||s.items.length===0)continue;let g=K[d],u=d==="confusion",H=s.items,Y=0;if(u&&s.items.length>st)Y=s.items.length-st,H=s.items.slice(0,st);let F;if(u){let b=h?22:14;F=g.cy+b}else F=g.cy+(h?25:15);if([...H].forEach((b,V)=>{let v=F+V*(W+4),_=dt.append("g"),O=_.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(b.label),w=b.label.length*7,x=O.node();if(x&&typeof x.getBBox==="function"){let ot=x.getBBox();if(ot.width>0)w=ot.width}let k=w+ft*2,j=g.cx-k/2;_.attr("transform",`translate(${j}, ${v})`),_.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",k).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",E[d]).attr("fill-opacity",0.95),O.attr("x",k/2).attr("y",W/2)}),Y>0){let b=F+H.length*(W+4),V=`+${Y} more`,v=dt.append("g"),_=v.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(V),O=V.length*7,w=_.node();if(w&&typeof w.getBBox==="function"){let j=w.getBBox();if(j.width>0)O=j.width}let x=O+ft*2,k=g.cx-x/2;v.attr("transform",`translate(${k}, ${b})`),v.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",E[d]).attr("fill-opacity",0.6),_.attr("x",x/2).attr("y",W/2)}}if(nt.length>0){let d=M.select("defs").empty()?M.append("defs"):M.select("defs"),s=`cynefin-arrow-${n}`;d.append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let g=z.append("g").attr("class","cynefin-arrows");nt.forEach((u)=>{let H=K[u.from],Y=K[u.to];if(!H||!Y)return;if(u.from===u.to){a.warn(`Cynefin renderer: skipping self-loop on domain "${u.from}"`);return}let{cx:F,cy:b}=H,{cx:V,cy:v}=Y,_=(F+V)/2,O=(b+v)/2,w=V-F,x=v-b,k=Math.sqrt(w*w+x*x),j=k*0.15,ot=-x/k,Tt=w/k,mt=_+ot*j,pt=O+Tt*j;if(g.append("path").attr("class","cynefinArrowLine").attr("d",`M${F},${b} Q${mt},${pt} ${V},${v}`).attr("fill","none").attr("marker-end",`url(#${s})`),u.label)g.append("text").attr("class","cynefinArrowLabel").attr("x",mt).attr("y",pt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(u.label)})}if(q)z.append("text").attr("class","cynefinTitle").attr("x",c/2).attr("y",-C/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(q)},"draw"),Ft={draw:Rt},Vt=t(()=>{let e=Ge(),n=S();return X(e,n.themeVariables).cynefin},"getCynefinTheme"),_t=t(()=>{let e=Vt();return`
|
|
2
|
-
.cynefinDomain {
|
|
3
|
-
stroke: none;
|
|
4
|
-
}
|
|
5
|
-
.cynefinDomainLabel {
|
|
6
|
-
font-size: ${e.domainFontSize}px;
|
|
7
|
-
font-weight: bold;
|
|
8
|
-
fill: ${e.labelColor};
|
|
9
|
-
}
|
|
10
|
-
.cynefinSubtitle {
|
|
11
|
-
font-size: ${e.itemFontSize-1}px;
|
|
12
|
-
fill: ${e.textColor};
|
|
13
|
-
font-style: italic;
|
|
14
|
-
}
|
|
15
|
-
.cynefinItem {
|
|
16
|
-
fill-opacity: 0.95;
|
|
17
|
-
stroke: ${e.boundaryColor};
|
|
18
|
-
stroke-width: 1;
|
|
19
|
-
}
|
|
20
|
-
.cynefinItemText {
|
|
21
|
-
font-size: ${e.itemFontSize}px;
|
|
22
|
-
fill: ${e.textColor};
|
|
23
|
-
}
|
|
24
|
-
.cynefinItemOverflow {
|
|
25
|
-
fill-opacity: 0.6;
|
|
26
|
-
stroke: ${e.boundaryColor};
|
|
27
|
-
stroke-width: 1;
|
|
28
|
-
stroke-dasharray: 3 2;
|
|
29
|
-
}
|
|
30
|
-
.cynefinBoundary {
|
|
31
|
-
stroke: ${e.boundaryColor};
|
|
32
|
-
stroke-width: ${e.boundaryWidth};
|
|
33
|
-
stroke-dasharray: 6 3;
|
|
34
|
-
}
|
|
35
|
-
.cynefinCliff {
|
|
36
|
-
stroke: ${e.cliffColor};
|
|
37
|
-
stroke-width: ${e.cliffWidth};
|
|
38
|
-
}
|
|
39
|
-
.cynefinConfusion {
|
|
40
|
-
stroke: ${e.boundaryColor};
|
|
41
|
-
stroke-width: 1.5;
|
|
42
|
-
stroke-dasharray: 4 2;
|
|
43
|
-
}
|
|
44
|
-
.cynefinArrowLine {
|
|
45
|
-
stroke: ${e.arrowColor};
|
|
46
|
-
stroke-width: ${e.arrowWidth};
|
|
47
|
-
fill: none;
|
|
48
|
-
}
|
|
49
|
-
.cynefinArrowHead {
|
|
50
|
-
fill: ${e.arrowColor};
|
|
51
|
-
stroke: none;
|
|
52
|
-
}
|
|
53
|
-
.cynefinArrowLabel {
|
|
54
|
-
font-size: ${e.itemFontSize-1}px;
|
|
55
|
-
fill: ${e.textColor};
|
|
56
|
-
}
|
|
57
|
-
.cynefinTitle {
|
|
58
|
-
font-size: ${e.domainFontSize+2}px;
|
|
59
|
-
font-weight: bold;
|
|
60
|
-
fill: ${e.labelColor};
|
|
61
|
-
}
|
|
62
|
-
`},"styles"),Et=_t,Ut={parser:Pt,db:at,renderer:Ft,styles:Et};export{Ut as diagram};
|
package/web/chunk-7ck99bsp.js.br
DELETED
|
Binary file
|
package/web/chunk-7ck99bsp.js.gz
DELETED
|
Binary file
|
package/web/chunk-7fjbyns9.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t,a}from"./chunk-fzmrnh17.js";import{he,Sn,Tn}from"./chunk-rdb6091n.js";import{re}from"./chunk-js8dvtfg.js";import{wa,fn}from"./chunk-bdypt5mj.js";var i=wa().RailroadEbnf.parser.LangiumParser,o=t((e)=>{let r=e.alternatives.map(m);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformChoice"),m=t((e)=>{let r=e.elements.map(p);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),s=t((e)=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return o(e.element);case"EbnfOptional":return{type:"optional",element:o(e.element)};case"EbnfRepetition":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),l=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},s(r.except)]};default:throw Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),p=t((e)=>e.postfixes.reduce((r,n)=>l(r,n),s(e.base)),"transformTerm"),f=t((e)=>({name:e.name,definition:o(e.definition)}),"transformRule"),u=t((e)=>{if(re(e,he),e.title)he.setTitle(e.title);e.rules.map((r)=>he.addRule(f(r)))},"populateDb"),c={parse:t((e)=>{he.clear(),a.debug("[EBNF Parser] Starting Langium parse");let r=i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new fn(r);let n=r.value;a.debug("[EBNF Parser] Parsed rules:",n.rules.length),u(n),a.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:he}},x={parser:c,db:he,renderer:Tn,styles:Sn};export{x as diagram};
|
package/web/chunk-7fjbyns9.js.br
DELETED
|
Binary file
|
package/web/chunk-7fjbyns9.js.gz
DELETED
|
Binary file
|
package/web/chunk-7n6b2xra.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{C,o,ee,r,e,x}from"./chunk-fba06jm8.js";import{t,a,hi,nt,Ts,Es,Rr,Ba,lo,el,Ce,Yn,B,As,ir,sn,co,tl,nl,rl,Rs,Ls,S,al,gi,He,G,uo,ol,yi,mo,f,Q,Ut,jt,Mr,cr,Xa,wi,Oo,dl,Bo,Fs,X,F,pl,Pn,Fo,qs}from"./chunk-fzmrnh17.js";import{Ai}from"./chunk-33tb7q04.js";function Re(i){let n=i?.constructor;return i===(typeof n==="function"?n.prototype:Object.prototype)}function ke(i){if(i==null)return!0;if(Oo(i)){if(typeof i.splice!=="function"&&typeof i!=="string"&&!Xa(i)&&!cr(i)&&!wi(i))return!1;return i.length===0}if(typeof i==="object"||typeof i==="function"){if(i instanceof Map||i instanceof Set)return i.size===0;let n=Object.keys(i);if(Re(i))return n.filter((s)=>s!=="constructor").length===0;return n.length===0}return!0}var K="comm",ce="rule",le="decl";var $e="@media",ze="@import";var Fe="@supports";var Oe="@namespace",oe="@keyframes";var fe="@layer",Be="@scope";var Pe=Math.abs,j=String.fromCharCode;function me(i){return i.trim()}function ne(i,n,s){return i.replace(n,s)}function V(i,n){return i.charCodeAt(n)|0}function H(i,n,s){return i.slice(n,s)}function I(i){return i.length}function ue(i){return i.length}function Z(i,n){return n.push(i),i}var pe=1,J=1,Ne=0,z=0,T=0,te="";function ge(i,n,s,d,c,l,u,m){return{value:i,root:n,parent:s,type:d,props:c,children:l,line:pe,column:J,length:u,return:"",siblings:m}}function Ve(){return T}function Ge(){if(T=z>0?V(te,--z):0,J--,T===10)J=1,pe--;return T}function O(){if(T=z<Ne?V(te,z++):0,J++,T===10)J=1,pe++;return T}function U(){return V(te,z)}function se(){return z}function ve(i,n){return H(te,i,n)}function re(i){switch(i){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ue(i){return pe=J=1,Ne=I(te=i),z=0,[]}function We(i){return te="",i}function he(i){return me(ve(z-1,De(i===91?i+2:i===40?i+1:i)))}function je(i){while(T=U())if(T<33)O();else break;return re(i)>2||re(T)>3?"":" "}function Ye(i,n){while(--n&&O())if(T<48||T>102||T>57&&T<65||T>70&&T<97)break;return ve(i,se()+(n<6&&U()==32&&O()==32))}function De(i){while(O())switch(T){case i:return z;case 34:case 39:if(i!==34&&i!==39)De(T);break;case 40:if(i===41)De(i);break;case 92:O();break}return z}function qe(i,n){while(O())if(i+T===57)break;else if(i+T===84&&U()===47)break;return"/*"+ve(n,z-1)+"*"+j(i===47?i:O())}function Xe(i){while(!re(U()))O();return ve(i,z)}function Ze(i){return We(ye("",null,null,null,[""],i=Ue(i),0,[0],i))}function ye(i,n,s,d,c,l,u,m,p){var v=0,y=0,w=u,h=0,k=0,L=0,D=1,E=1,M=1,A=0,b=0,P="",q=c,N=l,R=d,g=P;while(E)switch(L=b,b=O()){case 40:if(L!=108&&V(g,w-1)==58)A++,g+="(";else g+=he(b);break;case 41:A--,g+=")";break;case 34:case 39:case 91:g+=he(b);break;case 9:case 10:case 13:case 32:if(A>0){g+=j(b);break}g+=je(L);break;case 92:g+=Ye(se()-1,7);continue;case 47:switch(U()){case 42:case 47:if(Z(vt(qe(O(),se()),n,s,p),p),(re(L||1)==5||re(U()||1)==5)&&I(g)&&H(g,-1,void 0)!==" ")g+=" ";break;default:g+="/"}break;case 123*D:m[v++]=I(g)*M;case 125*D:case 59:case 0:if(A>0&&b){g+=j(b);break}switch(b){case 0:case 125:E=0;case 59+y:if(M==-1)g=ne(g,/\f/g,"");if(k>0&&(I(g)-w||D===0))Z(k>32?Qe(g+";",d,s,w-1,p):Qe(ne(g," ","")+";",d,s,w-2,p),p);break;case 59:g+=";";default:if(Z(R=Ke(g,n,s,v,y,c,m,P,q=[],N=[],w,l),l),b===123)if(y===0)ye(g,n,R,R,q,l,w,m,N);else{switch(h){case 99:if(V(g,3)===110)break;case 108:if(V(g,2)===97)break;default:y=0;case 100:case 109:case 115:}if(y)ye(i,R,R,d&&Z(Ke(i,R,R,0,0,c,m,P,c,q=[],w,N),N),c,N,w,m,d?q:N);else ye(g,R,R,R,[""],N,0,m,N)}}v=y=k=0,D=M=1,P=g="",w=u;break;case 58:w=1+I(g),k=L;default:if(D<1){if(b==123)--D;else if(b==125&&D++==0&&Ge()==125)continue}switch(g+=j(b),b*D){case 38:M=y>0?1:(g+="\f",-1);break;case 44:if(A>0)break;m[v++]=(I(g)-1)*M,M=1;break;case 64:if(U()===45)g+=he(O());h=U(),y=w=I(P=g+=Xe(se())),b++;break;case 45:if(L===45&&I(g)==2)D=0}}return l}function Ke(i,n,s,d,c,l,u,m,p,v,y,w){var h=c-1,k=c===0?l:[""],L=ue(k);for(var D=0,E=0,M=0;D<d;++D)for(var A=0,b=H(i,h+1,h=Pe(E=u[D])),P=i;A<L;++A)if(P=me(E>0?k[A]+" "+b:ne(b,/&\f/g,k[A])))p[M++]=P;return ge(i,n,s,c===0?ce:m,p,v,y,w)}function vt(i,n,s,d){return ge(i,n,s,K,j(Ve()),H(i,2,-2),0,d)}function Qe(i,n,s,d,c){return ge(i,n,s,le,H(i,0,d),H(i,d+1,-1),d,c)}function we(i,n){var s="";for(var d=0;d<i.length;d++)s+=n(i[d],d,i,n)||"";return s}function Je(i,n,s,d){switch(i.type){case fe:if(i.children.length)break;case ze:case Oe:case le:return i.return=i.return||i.value;case K:return"";case oe:return i.return=i.value+"{"+we(i.children,d)+"}";case ce:if(!I(i.value=i.props.join(",")))return""}return I(s=we(i.children,d))?i.return=i.value+"{"+s+"}":""}function er(i){var n=ue(i);return function(s,d,c,l){var u="";for(var m=0;m<n;m++)u+=i[m](s,d,c,l)||"";return u}}var nr="c4",ht=t((i)=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(i),"detector"),yt=t(async()=>{let{diagram:i}=await (C("zbwjj06m"),import("./chunk-zbwjj06m.js"));return{id:nr,diagram:i}},"loader"),wt={id:nr,detector:ht,loader:yt},xt=wt,sr="flowchart-v2",bt=t((i)=>/^\s*(graph|flowchart)/.test(i),"detector"),St=t(async()=>{let{diagram:i}=await (C("0ernj3c0"),import("./chunk-0ernj3c0.js"));return{id:sr,diagram:i}},"loader"),Et={id:sr,detector:bt,loader:St},Tt=Et,dr="agentflow",Ct=t((i)=>/^\s*agentflow-beta\b/.test(i),"detector"),kt=t(async()=>{let{diagram:i}=await (C("dsa5m3h6"),import("./chunk-dsa5m3h6.js"));return{id:dr,diagram:i}},"loader"),Dt={id:dr,detector:Ct,loader:kt},Mt=Dt,lr="swimlane",_t=t((i)=>/^\s*swimlane-beta\b/.test(i),"detector"),Lt=t(async()=>{let{diagram:i}=await (C("was9xf03"),import("./chunk-was9xf03.js"));return{id:lr,diagram:i}},"loader"),At={id:lr,detector:_t,loader:Lt},It=At,fr="er",Rt=t((i)=>/^\s*erDiagram/.test(i),"detector"),$t=t(async()=>{let{diagram:i}=await (C("823etvc3"),import("./chunk-823etvc3.js"));return{id:fr,diagram:i}},"loader"),zt={id:fr,detector:Rt,loader:$t},Ft=zt,mr="gitGraph",Ot=t((i)=>/^\s*gitGraph/.test(i),"detector"),Bt=t(async()=>{let{diagram:i}=await (C("nyjfcard"),import("./chunk-nyjfcard.js"));return{id:mr,diagram:i}},"loader"),Pt={id:mr,detector:Ot,loader:Bt},Nt=Pt,ur="gantt",Vt=t((i)=>/^\s*gantt/.test(i),"detector"),Gt=t(async()=>{let{diagram:i}=await (C("k9vc7kp2"),import("./chunk-k9vc7kp2.js"));return{id:ur,diagram:i}},"loader"),Ht={id:ur,detector:Vt,loader:Gt},Wt=Ht,pr="info",Yt=t((i)=>/^\s*info/.test(i),"detector"),qt=t(async()=>{let{diagram:i}=await (C("nhpm5nd5"),import("./chunk-nhpm5nd5.js"));return{id:pr,diagram:i}},"loader"),Xt={id:pr,detector:Yt,loader:qt},gr="pie",Kt=t((i)=>/^\s*pie/.test(i),"detector"),Qt=t(async()=>{let{diagram:i}=await (C("fh56vgfx"),import("./chunk-fh56vgfx.js"));return{id:gr,diagram:i}},"loader"),Zt={id:gr,detector:Kt,loader:Qt},vr="quadrantChart",Jt=t((i)=>/^\s*quadrantChart/.test(i),"detector"),ea=t(async()=>{let{diagram:i}=await (C("jrgdxqtq"),import("./chunk-jrgdxqtq.js"));return{id:vr,diagram:i}},"loader"),ra={id:vr,detector:Jt,loader:ea},ta=ra,hr="xychart",aa=t((i)=>/^\s*xychart(-beta)?/.test(i),"detector"),ia=t(async()=>{let{diagram:i}=await (C("a449xjq6"),import("./chunk-a449xjq6.js"));return{id:hr,diagram:i}},"loader"),oa={id:hr,detector:aa,loader:ia},na=oa,yr="requirement",sa=t((i)=>/^\s*requirement(Diagram)?/.test(i),"detector"),da=t(async()=>{let{diagram:i}=await (C("78akzkgs"),import("./chunk-78akzkgs.js"));return{id:yr,diagram:i}},"loader"),ca={id:yr,detector:sa,loader:da},la=ca,wr="sequence",fa=t((i)=>/^\s*sequenceDiagram/.test(i),"detector"),ma=t(async()=>{let{diagram:i}=await (C("ft05x3my"),import("./chunk-ft05x3my.js"));return{id:wr,diagram:i}},"loader"),ua={id:wr,detector:fa,loader:ma},pa=ua,xr="classDiagram",ga=t((i)=>/^\s*classDiagram/.test(i),"detector"),va=t(async()=>{let{diagram:i}=await (C("hzfp8kqx"),import("./chunk-hzfp8kqx.js"));return{id:xr,diagram:i}},"loader"),ha={id:xr,detector:ga,loader:va},ya=ha,br="stateDiagram",wa=t((i)=>/^\s*stateDiagram/.test(i),"detector"),xa=t(async()=>{let{diagram:i}=await (C("8q76yd76"),import("./chunk-8q76yd76.js"));return{id:br,diagram:i}},"loader"),ba={id:br,detector:wa,loader:xa},Sa=ba,Sr="journey",Ea=t((i)=>/^\s*journey/.test(i),"detector"),Ta=t(async()=>{let{diagram:i}=await (C("jg43a2xk"),import("./chunk-jg43a2xk.js"));return{id:Sr,diagram:i}},"loader"),Ca={id:Sr,detector:Ea,loader:Ta},ka=Ca,xe=4,de=75,Da=t((i)=>{let n=[];for(let c of i.split(/\s+/)){let l=[...c];while(l.length>de)n.push(l.slice(0,de).join("")),l=l.slice(de);if(l.length>0)n.push(l.join(""))}let s=[],d="";for(let c of n){let l=d?`${d} ${c}`:c;if([...l].length>de)s.push(d),d=c;else d=l}if(d)s.push(d);if(s.length>xe){s.length=xe;let c=s[xe-1]??"";s[xe-1]=`${[...c].slice(0,de-3).join("")}...`}return s},"wrapErrorMessage"),Ma=t((i,n,s,d)=>{a.debug(`rendering svg for syntax error
|
|
2
|
-
`);let c=Q(n),l=c.append("g"),u=Da(d?.db.getErrorMessage?.()??""),m=u.length>0?500+u.length*56:512;c.attr("viewBox",`0 0 2412 ${m}`),G(c,100,m,!0),l.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),l.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),l.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),l.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),l.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),l.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),l.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),l.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${s}`),u.forEach((p,v)=>{l.append("text").attr("class","error-text").attr("x",1440).attr("y",510+v*56).attr("font-size","42px").style("text-anchor","middle").text(p)})},"draw"),Er={draw:Ma},_a=Er,Me,La={clear(){Me=void 0},setErrorMessage(i){Me=i},getErrorMessage(){return Me}},Aa={db:La,renderer:Er,parser:{parse:t(()=>{return},"parse")}},Ia=Aa,Tr="flowchart-elk",Ra=t((i,n={})=>{if(/^\s*flowchart-elk/.test(i))return n.layout="elk",!0;return!1},"detector"),$a=t(async()=>{let{diagram:i}=await (C("0ernj3c0"),import("./chunk-0ernj3c0.js"));return{id:Tr,diagram:i}},"loader"),za={id:Tr,detector:Ra,loader:$a},Fa=za,Cr="timeline",Oa=t((i)=>/^\s*timeline/.test(i),"detector"),Pa=t(async()=>{let{diagram:i}=await (C("zfgpq4n4"),import("./chunk-zfgpq4n4.js"));return{id:Cr,diagram:i}},"loader"),Na={id:Cr,detector:Oa,loader:Pa},Va=Na,kr="mindmap",Ga=t((i)=>/^\s*mindmap/.test(i),"detector"),Ha=t(async()=>{let{diagram:i}=await (C("x8ps0p82"),import("./chunk-x8ps0p82.js"));return{id:kr,diagram:i}},"loader"),Ua={id:kr,detector:Ga,loader:Ha},Wa=Ua,Dr="kanban",ja=t((i)=>/^\s*kanban/.test(i),"detector"),Ya=t(async()=>{let{diagram:i}=await (C("xhr9jrjt"),import("./chunk-xhr9jrjt.js"));return{id:Dr,diagram:i}},"loader"),qa={id:Dr,detector:ja,loader:Ya},Ka=qa,_r="sankey",Qa=t((i)=>/^\s*sankey(-beta)?/.test(i),"detector"),Za=t(async()=>{let{diagram:i}=await (C("9s4bh6qm"),import("./chunk-9s4bh6qm.js"));return{id:_r,diagram:i}},"loader"),Ja={id:_r,detector:Qa,loader:Za},ei=Ja,Lr="packet",ri=t((i)=>/^\s*packet(-beta)?/.test(i),"detector"),ti=t(async()=>{let{diagram:i}=await (C("dww3grm3"),import("./chunk-dww3grm3.js"));return{id:Lr,diagram:i}},"loader"),ai={id:Lr,detector:ri,loader:ti},Ar="radar",ii=t((i)=>/^\s*radar-beta/.test(i),"detector"),oi=t(async()=>{let{diagram:i}=await (C("jcsf0ke5"),import("./chunk-jcsf0ke5.js"));return{id:Ar,diagram:i}},"loader"),ni={id:Ar,detector:ii,loader:oi},Ir="block",si=t((i)=>/^\s*block(-beta)?/.test(i),"detector"),di=t(async()=>{let{diagram:i}=await (C("h7byk4z3"),import("./chunk-h7byk4z3.js"));return{id:Ir,diagram:i}},"loader"),ci={id:Ir,detector:si,loader:di},li=ci,$r="treeView",fi=t((i)=>/^\s*treeView-beta/.test(i),"detector"),mi=t(async()=>{let{diagram:i}=await (C("6024wfxb"),import("./chunk-6024wfxb.js"));return{id:$r,diagram:i}},"loader"),ui={id:$r,detector:fi,loader:mi},pi=ui,zr="architecture",vi=t((i)=>/^\s*architecture/.test(i),"detector"),xi=t(async()=>{let{diagram:i}=await (C("xp90g2e7"),import("./chunk-xp90g2e7.js"));return{id:zr,diagram:i}},"loader"),bi={id:zr,detector:vi,loader:xi},Si=bi,Fr="eventmodeling",Ei=t((i)=>/^\s*eventmodeling/.test(i),"detector"),Ti=t(async()=>{let{diagram:i}=await (C("5mbz8yj9"),import("./chunk-5mbz8yj9.js"));return{id:Fr,diagram:i}},"loader"),Ci={id:Fr,detector:Ei,loader:Ti},ki=Ci,Or="ishikawa",Di=t((i)=>/^\s*ishikawa(-beta)?\b/i.test(i),"detector"),Mi=t(async()=>{let{diagram:i}=await (C("wvd3zj1m"),import("./chunk-wvd3zj1m.js"));return{id:Or,diagram:i}},"loader"),_i={id:Or,detector:Di,loader:Mi},Br="venn",Li=t((i)=>/^\s*venn-beta/.test(i),"detector"),Ii=t(async()=>{let{diagram:i}=await (C("jv5faf88"),import("./chunk-jv5faf88.js"));return{id:Br,diagram:i}},"loader"),Ri={id:Br,detector:Li,loader:Ii},$i=Ri,Pr="treemap",zi=t((i)=>/^\s*treemap/.test(i),"detector"),Fi=t(async()=>{let{diagram:i}=await (C("mnb2wdvy"),import("./chunk-mnb2wdvy.js"));return{id:Pr,diagram:i}},"loader"),Oi={id:Pr,detector:zi,loader:Fi},Nr="usecase",Bi=t((i)=>/^\s*usecase-beta(?:\s|$)/.test(i),"detector"),Pi=t(async()=>{let{diagram:i}=await (C("k295x81w"),import("./chunk-k295x81w.js"));return{id:Nr,diagram:i}},"loader"),Ni={id:Nr,detector:Bi,loader:Pi},Vr="wardley",Vi=t((i)=>/^\s*wardley-beta/i.test(i),"detector"),Gi=t(async()=>{let{diagram:i}=await (C("7p4mcqkd"),import("./chunk-7p4mcqkd.js"));return{id:Vr,diagram:i}},"loader"),Hi={id:Vr,detector:Vi,loader:Gi},Ui=Hi,Gr="cynefin",Wi=t((i)=>/^\s*cynefin-beta(?:[\s:]|$)/.test(i),"detector"),ji=t(async()=>{let{diagram:i}=await (C("7ck99bsp"),import("./chunk-7ck99bsp.js"));return{id:Gr,diagram:i}},"loader"),Yi={id:Gr,detector:Wi,loader:ji},Hr="railroad",qi=t((i)=>/^\s*railroad-beta/i.test(i),"detector"),Xi=t(async()=>{let{diagram:i}=await (C("j8f0m1dq"),import("./chunk-j8f0m1dq.js"));return{id:Hr,diagram:i}},"loader"),Ki={id:Hr,detector:qi,loader:Xi},Ur="railroadEbnf",Qi=t((i)=>/^\s*railroad-ebnf-beta/i.test(i),"detector"),Zi=t(async()=>{let{diagram:i}=await (C("7fjbyns9"),import("./chunk-7fjbyns9.js"));return{id:Ur,diagram:i}},"loader"),Ji={id:Ur,detector:Qi,loader:Zi},Wr="railroadAbnf",eo=t((i)=>/^\s*railroad-abnf-beta/i.test(i),"detector"),ro=t(async()=>{let{diagram:i}=await (C("jt0s9qs7"),import("./chunk-jt0s9qs7.js"));return{id:Wr,diagram:i}},"loader"),to={id:Wr,detector:eo,loader:ro},jr="railroadPeg",ao=t((i)=>/^\s*railroad-peg-beta/i.test(i),"detector"),io=t(async()=>{let{diagram:i}=await (C("zgas56xw"),import("./chunk-zgas56xw.js"));return{id:jr,diagram:i}},"loader"),oo={id:jr,detector:ao,loader:io},rr=!1,Ee=t(()=>{if(rr)return;rr=!0,yi("error",Ia,(i)=>i.toLowerCase().trim()==="error"),yi("---",{db:{clear:t(()=>{},"clear")},styles:{},renderer:{draw:t(()=>{},"draw")},parser:{parse:t(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:t(()=>null,"init")},(i)=>i.toLowerCase().trimStart().startsWith("---")),lo(Fa,Wa,Si),lo(Mt,xt,Ka,ya,Ft,Wt,Xt,Zt,la,pa,It,Tt,Va,Nt,Sa,ka,ta,ei,ai,na,li,ki,pi,ni,_i,Oi,Ki,Ji,to,oo,$i,Ui,Yi,Ni)},"addDiagrams"),no=t(async()=>{a.debug("Loading registered diagrams");let n=(await Promise.allSettled(Object.entries(Rr).map(async([s,{detector:d,loader:c}])=>{if(!c)return;try{mo(s)}catch{try{let{diagram:l,id:u}=await c();yi(u,l,d)}catch(l){throw a.error(`Failed to load external diagram with key ${s}. Removing from detectors.`),delete Rr[s],l}}}))).filter((s)=>s.status==="rejected");if(n.length>0){a.error(`Failed to load ${n.length} external diagrams`);for(let s of n)a.error(s);throw Error(`Failed to load ${n.length} external diagrams`)}},"loadRegisteredDiagrams"),so="graphics-document document";function Yr(i,n){if(i.attr("role",so),n!=="")i.attr("aria-roledescription",n)}t(Yr,"setA11yDiagramInfo");function qr(i,n,s,d){if(i.insert===void 0)return;if(s){let c=`chart-desc-${d}`;i.attr("aria-describedby",c),i.insert("desc",":first-child").attr("id",c).text(s)}if(n){let c=`chart-title-${d}`;i.attr("aria-labelledby",c),i.insert("title",":first-child").attr("id",c).text(n)}}t(qr,"addSVGa11yTitleDescription");var be=class i{constructor(n,s,d,c,l){this.type=n,this.text=s,this.db=d,this.parser=c,this.renderer=l}static{t(this,"Diagram")}static async fromText(n,s={}){let d=typeof n==="string"?{raw:n,cleaned:n}:n,c=S(),l=Ba(d.cleaned,c);try{mo(l)}catch{let h=el(l);if(!h)throw new Es(`Diagram ${l} not found.`);let{id:k,diagram:L}=await h();yi(k,L)}let{db:u,parser:m,renderer:p,init:v}=mo(l);if(m.parser)m.parser.yy=u;if(u.clear?.(),v?.(c),s.title)u.setDiagramTitle?.(s.title);let y=d.cleaned;if(u.preserveCommentsWhenParsing&&d.withComments){let h=c.maxTextSize??B.maxTextSize;if(d.withComments.length>h)a.warn(`Comment-preserving source exceeds maxTextSize (${d.withComments.length} > ${h}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`);else y=d.withComments}let w=pl(y)+`
|
|
3
|
-
`;if(d.frontmatterLineOffset)u.setFrontmatterLineOffset?.(d.frontmatterLineOffset);return await m.parse(w),new i(l,w,u,m,p)}async render(n,s){await this.renderer.draw(this.text,n,s,this)}getParser(){return this.parser}getType(){return this.type}},tr=[],fo=t(()=>{tr.forEach((i)=>{i()}),tr=[]},"attachFunctions"),po=t((i)=>i.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Xr(i){let n=Ts(i);if(!n)return{text:i,metadata:{}};let s=n.indent,d=s?n.body.split(`
|
|
4
|
-
`).map((u)=>u.startsWith(s)?u.slice(s.length):u).join(`
|
|
5
|
-
`):n.body,c=jt(d,{schema:Ut})??{};c=typeof c==="object"&&!Array.isArray(c)?c:{};let l={};if(c.displayMode)l.displayMode=c.displayMode.toString();if(c.title)l.title=c.title.toString();if(c.config)l.config=c.config;return{text:i.slice(n.length),metadata:l}}t(Xr,"extractFrontMatter");var go=t((i)=>i.replace(/\r\n?/g,`
|
|
6
|
-
`).replace(/<(\w+)([^>]*)>/g,(n,s,d)=>"<"+s+d.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),vo=t((i)=>{let{text:n,metadata:s}=Xr(i),{displayMode:d,title:c,config:l={}}=s;if(d){if(!l.gantt)l.gantt={};l.gantt.displayMode=d}return{title:c,config:l,text:n}},"processFrontmatter"),ho=t((i)=>{let n=F.detectInit(i)??{},s=F.detectDirective(i,"wrap");if(Array.isArray(s))n.wrap=s.some(({type:d})=>d==="wrap");else if(s?.type==="wrap")n.wrap=!0;return{text:dl(i),directive:n}},"processDirectives");function Ae(i){let n=i,s=go(i),d=vo(s),c=ho(d.text),l=X(d.config,c.directive),u=c.text,m=po(u),p=s.length>d.text.length?(s.substring(0,s.length-d.text.length).match(/\n/g)??[]).length:0;return{code:{raw:n,cleaned:m,withComments:u,frontmatterLineOffset:p},title:d.title,config:l}}t(Ae,"preprocessDiagram");function Kr(i){let n=new TextEncoder().encode(i),s=Array.from(n,(d)=>String.fromCodePoint(d)).join("");return btoa(s)}t(Kr,"toBase64");var yo=50000,wo="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",xo="sandbox",bo="loose",So="http://www.w3.org/2000/svg",Eo="http://www.w3.org/1999/xlink",To="http://www.w3.org/1999/xhtml",Co="100%",ko="100%",Do="border:0;margin:0;",Mo="margin:0",_o="allow-top-navigation-by-user-activation allow-popups",Lo='The "iframe" tag is not supported by your browser.',Ao=["foreignobject"],Io=["dominant-baseline"];function Ie(i){let n=Ae(i);gi();let s;try{s=Ba(n.code.cleaned,S())}catch{s=void 0}return co(s),al(n.config??{}),n}t(Ie,"processAndSetConfigs");async function Qr(i,n){Ee();try{let{code:s,config:d}=Ie(i);return{diagramType:(await be.fromText(s)).type,config:d}}catch(s){if(n?.suppressErrors)return!1;throw s}finally{co(void 0)}}t(Qr,"parse");var ar=t((i,n,s=[])=>{let d=As(`{ ${s.join(" !important; ")} !important; }`);return`.${i} ${n} ${d}`},"cssImportantStyles"),Ro=t((i,n=new Map)=>{let s=new CSSStyleSheet;if(i.fontFamily!==void 0)s.insertRule(`:root { --mermaid-font-family: ${i.fontFamily}}`,s.cssRules.length);if(i.altFontFamily!==void 0)s.insertRule(`:root { --mermaid-alt-font-family: ${i.altFontFamily}}`,s.cssRules.length);if(n instanceof Map){let m=He(i)?["> *","span"]:["rect","polygon","ellipse","circle","path"];n.forEach((p)=>{if(!ke(p.styles))m.forEach((v)=>{s.insertRule(ar(p.id,v,p.styles),s.cssRules.length)});if(!ke(p.textStyles))s.insertRule(ar(p.id,"tspan",(p?.textStyles||[]).map((v)=>v.replace("color","fill"))),s.cssRules.length)})}let d="";if(i.themeCSS!==void 0)if(typeof s.replaceSync==="function"){let c=new CSSStyleSheet;c.replaceSync(i.themeCSS),d=uo(c)+`
|
|
7
|
-
`}else d+=`${i.themeCSS}
|
|
8
|
-
`;return d+uo(s)},"createCssStyles"),$o=t((i,n)=>we(Ze(`${i}{${n}}`),er([t(function(d,c,l,u){if(d.type==="rule"&&Array.isArray(d.props)){if(d.parent&&d.parent.type===oe)return;d.props=d.props.map((m)=>{if(m===i&&Array.isArray(d.children)&&d.children.every((v)=>{if(v.type!=="decl")return!1;return new Set(["font-family","font-size","fill"]).has(v.props)}))return m;if(!((m.startsWith(`${i} `)||m.startsWith(`${i}>`))&&!m.startsWith(`${i} ||`)))return`${i} ${m}`;return m})}else if(d.type.startsWith("@")){if(![$e,Fe,fe,Be,"@container","@starting-style",oe].includes(d.type))a.warn(`Removing unsupported at-rule ${d.type} from CSS`),d.type=K}},"addNamespace"),Je])),"compileCSS"),zo=t((i,n,s,d)=>{let c=Ro(i,s),l=ol(n,c,{...i.themeVariables,theme:i.theme,look:i.look},d);return $o(d,l)},"createUserStyles"),Po=t((i="",n,s)=>{let d=i;if(!s&&!n)d=d.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#');return d=Pn(d),d=d.replace(/<br>/g,"<br/>"),d},"cleanUpSvgCode"),No=t((i="",n)=>{let s=n?.viewBox?.baseVal?.height?n.viewBox.baseVal.height+"px":ko,d=Kr(`<body style="${Mo}">${i}</body>`);return`<iframe style="width:${Co};height:${s};${Do}" src="data:text/html;charset=UTF-8;base64,${d}" sandbox="${_o}">
|
|
9
|
-
${Lo}
|
|
10
|
-
</iframe>`},"putIntoIFrame"),or=t((i,n,s,d,c)=>{let l=i.append("div");if(l.attr("id",s),d)l.attr("style",d);let u=l.append("svg").attr("id",n).attr("width","100%").attr("xmlns",So);if(c)u.attr("xmlns:xlink",c);return u.append("g"),i},"appendDivSvgG");function Le(i,n){return i.append("iframe").attr("id",n).attr("style","width: 100%; height: 100%;").attr("sandbox","")}t(Le,"sandboxedIframe");var Vo=t((i,n,s,d)=>{i.getElementById(n)?.remove(),i.getElementById(s)?.remove(),i.getElementById(d)?.remove()},"removeExistingElements"),Go=t(async function(i,n,s){Ee();let d=Ie(n),c=d.code;n=c.cleaned;let l=S();if(a.debug(l),n.length>(l?.maxTextSize??yo))n=wo,c={raw:n,cleaned:n};let u=`#${i}`,m="i"+i,p="#"+m,v="d"+i,y="#"+v,w=t(()=>{let ie=f(k?p:y).node();if(ie&&"remove"in ie)ie.remove()},"removeTempElements"),h=f(document.body),k=l.securityLevel===xo,L=l.securityLevel===bo,D=l.fontFamily;if(s!==void 0){if(s)s.innerHTML="";if(k){let _=Le(f(s),m);h=f(_.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=f(s);or(h,i,v,`font-family: ${D}`,Eo)}else{if(Vo(document,i,v,m),k){let _=Le(f(document.body),m);h=f(_.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=f("body");or(h,i,v)}let E,M;try{E=await be.fromText(c,{title:d.title})}catch(_){if(l.suppressErrorRendering)throw w(),_;E=await be.fromText("error"),M=_,E.db.setErrorMessage?.(Fs(_))}let A=h.select(y).node(),b=E.type,P=A.firstChild,q=P.firstChild,N=E.renderer.getClasses?.(n,E),R=zo(l,b,N,u),g=document.createElement("style");g.innerHTML=R,P.insertBefore(g,q);try{await E.renderer.draw(n,i,"12.2.0",E)}catch(_){if(l.suppressErrorRendering)w();else _a.draw(n,i,"12.2.0");throw _}let ft=h.select(`${y} svg`),mt=E.db.getAccTitle?.(),ut=E.db.getAccDescription?.();Jr(b,ft,mt,ut);let pt=t(()=>{h.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",To);let _=h.select(y).node().innerHTML;if(a.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),_=Po(_,k,sn(l.arrowMarkerAbsolute)),k){let ie=h.select(y+" svg").node();_=No(_,ie)}else if(!L)_=nt.sanitize(_,{ADD_TAGS:Ao,ADD_ATTR:Io,HTML_INTEGRATION_POINTS:{foreignobject:!0}});return fo(),_},"serializeSvg")();if(M)throw M;return w(),{diagramType:b,svg:pt,bindFunctions:E.db.bindFunctions}},"renderDiagram"),Ho=t(async function(i,n,s){try{return await Go(i,n,s)}finally{co(void 0)}},"render");function Zr(i={}){let n=Ce({},i);if(n?.fontFamily&&!n.themeVariables?.fontFamily){if(!n.themeVariables)n.themeVariables={};n.themeVariables.fontFamily=n.fontFamily}nl(n);let s=ir.theme;if(n?.theme&&Object.hasOwn(Yn,n.theme))n.themeVariables=Yn[n.theme].getThemeVariables(n.themeVariables);else if(n){if(n.theme!=null&&n.theme!=="null")n.theme=s;n.themeVariables=Yn[s].getThemeVariables(n.themeVariables)}let d=typeof n==="object"?tl(n):Rs();hi(d.logLevel),Ee()}t(Zr,"initialize");var Uo=t((i,n={})=>{let{code:s}=Ae(i);return be.fromText(s,n)},"getDiagramFromText");function Jr(i,n,s,d){Yr(n,i),qr(n,s,d,n.attr("id"))}t(Jr,"addA11yInfo");var Y=Object.freeze({render:Ho,parse:Qr,getDiagramFromText:Uo,initialize:Zr,getConfig:S,setConfig:Ls,getSiteConfig:Rs,updateSiteConfig:rl,reset:t(()=>{gi()},"reset"),globalReset:t(()=>{gi(ir)},"globalReset"),defaultConfig:ir});hi(S().logLevel);gi(S());var Wo=t((i,n,s)=>{if(a.warn(i),Bo(i)){if(s)s(i.str,i.hash);n.push({...i,message:i.str,error:i})}else{if(s)s(i);if(i instanceof Error)n.push({str:i.message,message:i.message,hash:i.name,error:i})}},"handleError"),et=t(async function(i={querySelector:".mermaid"}){try{await jo(i)}catch(n){if(Bo(n))a.error(n.str);if(W.parseError)W.parseError(n);if(!i.suppressErrors)throw a.error("Use the suppressErrors option to suppress these errors"),n}},"run"),jo=t(async function({postRenderCallback:i,querySelector:n,nodes:s}={querySelector:".mermaid"}){let d=Y.getConfig();a.debug(`${!i?"No ":""}Callback function found`);let c;if(s)c=s;else if(n)c=document.querySelectorAll(n);else throw Error("Nodes and querySelector are both undefined");if(a.debug(`Found ${c.length} diagrams`),d?.startOnLoad!==void 0)a.debug("Start On Load: "+d?.startOnLoad),Y.updateSiteConfig({startOnLoad:d?.startOnLoad});let l=new F.InitIDGenerator(d.deterministicIds,d.deterministicIDSeed),u,m=[];for(let p of Array.from(c)){if(a.info("Rendering diagram: "+p.id),p.getAttribute("data-processed"))continue;p.setAttribute("data-processed","true");let v=`mermaid-${l.next()}`;u=p.innerHTML,u=Fo(F.entityDecode(u)).trim().replace(/<br\s*\/?>/gi,"<br/>");let y=F.detectInit(u);if(y)a.debug("Detected early reinit: ",y);try{let{svg:w,bindFunctions:h}=await it(v,u,p);if(p.innerHTML=w,i)await i(v);if(h)h(p)}catch(w){Wo(w,m,W.parseError)}}if(m.length>0)throw m[0]},"runThrowsErrors"),rt=t(function(i){Y.initialize(i)},"initialize"),Yo=t(async function(i,n,s){if(a.warn("mermaid.init is deprecated. Please use run instead."),i)rt(i);let d={postRenderCallback:s,querySelector:".mermaid"};if(typeof n==="string")d.querySelector=n;else if(n)if(n instanceof HTMLElement)d.nodes=[n];else d.nodes=n;await et(d)},"init"),qo=t(async(i,{lazyLoad:n=!0}={})=>{if(Ee(),lo(...i),n===!1)await no()},"registerExternalDiagrams"),tt=t(function(){if(W.startOnLoad){let{startOnLoad:i}=Y.getConfig();if(i)W.run().catch((n)=>a.error("Mermaid failed to initialize",n))}},"contentLoaded");if(typeof document<"u")window.addEventListener("load",tt,!1);var Xo=t(function(i){W.parseError=i},"setParseErrorHandler"),Se=[],_e=!1,at=t(async()=>{if(_e)return;_e=!0;while(Se.length>0){let i=Se.shift();if(i)try{await i()}catch(n){a.error("Error executing queue",n)}}_e=!1},"executeQueue"),Ko=t(async(i,n)=>new Promise((s,d)=>{let c=t(()=>new Promise((l,u)=>{Y.parse(i,n).then((m)=>{l(m),s(m)},(m)=>{a.error("Error parsing",m),W.parseError?.(m),u(m),d(m)})}),"performCall");Se.push(c),at().catch(d)}),"parse"),it=t((i,n,s)=>new Promise((d,c)=>{let l=t(()=>new Promise((u,m)=>{Y.render(i,n,s).then((p)=>{u(p),d(p)},(p)=>{a.error("Error parsing",p),W.parseError?.(p),m(p),c(p)})}),"performCall");Se.push(l),at().catch(c)}),"render"),Qo=t(()=>Object.keys(Rr).map((i)=>({id:i})),"getRegisteredDiagramsMetadata"),W={startOnLoad:!0,mermaidAPI:Y,parse:Ko,render:it,init:Yo,run:et,registerExternalDiagrams:qo,registerLayoutLoaders:qs,initialize:rt,parseError:void 0,contentLoaded:tt,setParseErrorHandler:Xo,detectType:Ba,registerIconPacks:Mr,getRegisteredDiagramsMetadata:Qo},Te=W;/*! Check if previously processed *//*!
|
|
11
|
-
* Wait for document loaded before starting the execution
|
|
12
|
-
*/function ot(i,n){if(!(n instanceof Error)||!("hash"in n))return;let s=n.hash;if(typeof s!=="object"||s===null)return;if(!("token"in s)||s.token!=="LINK_ID")return;if(!("text"in s)||typeof s.text!=="string"||!s.text.endsWith("@"))return;if(!("line"in s)||typeof s.line!=="number"||!Number.isInteger(s.line))return;let d=i.split(`
|
|
13
|
-
`),c=d[s.line];if(c===void 0)return;let l=c.lastIndexOf(s.text);if(l<0)return;let u=l+s.text.length-1;return d[s.line]=`${c.slice(0,u)}@${c.slice(u+1)}`,d.join(`
|
|
14
|
-
`)}function st(i,n){let s=n?.colors?.hex,d=n?.fonts?.sans||"var(--font-sans)";if(i==="dark")return{darkMode:!0,fontFamily:d,fontSize:"14px",useGradient:!1,dropShadow:"none",background:"transparent",mainBkg:"#1c2a3d",nodeBkg:"#1c2a3d",nodeBorder:"#2f5c94",nodeTextColor:"#eef1f5",primaryColor:"#1c2a3d",primaryBorderColor:"#2f5c94",primaryTextColor:"#eef1f5",secondaryColor:"#21252b",secondaryBorderColor:"#3e4552",secondaryTextColor:"#c2c8d2",tertiaryColor:"#1d2127",tertiaryBorderColor:"#333945",tertiaryTextColor:"#c2c8d2",lineColor:"#6d7887",arrowheadColor:"#8a95a5",defaultLinkColor:"#6d7887",edgeLabelBackground:s?.panel??"#1f2329",labelBoxBkgColor:s?.panel??"#1f2329",labelBoxBorderColor:s?.line??"#333945",labelTextColor:s?.dim??"#c2c8d2",textColor:s?.dim??"#c2c8d2",titleColor:s?.ink??"#eef1f5",clusterBkg:"#1b1e24",clusterBorder:"#353b47",radius:8,strokeWidth:"1.5px"};return{darkMode:!1,fontFamily:d,fontSize:"14px",useGradient:!1,dropShadow:"none",background:"transparent",mainBkg:"#eef4fd",nodeBkg:"#eef4fd",nodeBorder:"#a9c8f1",nodeTextColor:"#181d24",primaryColor:"#eef4fd",primaryBorderColor:"#a9c8f1",primaryTextColor:"#181d24",secondaryColor:"#eef1f4",secondaryBorderColor:"#d0d5dd",secondaryTextColor:"#535e6e",tertiaryColor:"#e8ecf0",tertiaryBorderColor:"#cbd2dc",tertiaryTextColor:"#535e6e",lineColor:"#98a2b0",arrowheadColor:"#6b7787",defaultLinkColor:"#98a2b0",edgeLabelBackground:s?.panel??"#ffffff",labelBoxBkgColor:s?.panel??"#ffffff",labelBoxBorderColor:s?.line??"#e2e6eb",labelTextColor:s?.dim??"#535e6e",textColor:s?.dim??"#535e6e",titleColor:s?.ink??"#181d24",clusterBkg:"#f8fafc",clusterBorder:"#e2e6eb",radius:8,strokeWidth:"1.5px"}}function dt(i){let n=i==="dark"?{fill:"#3a2a17",stroke:"#a86b14"}:{fill:"#fff6e5",stroke:"#f0bf5c"};return`
|
|
15
|
-
.node rect, .node .basic.label-container { rx: 10px; ry: 10px; }
|
|
16
|
-
.node .label, .nodeLabel { font-weight: 500; }
|
|
17
|
-
.node polygon { fill: ${n.fill} !important; stroke: ${n.stroke} !important; }
|
|
18
|
-
.edgeLabel, .edgeLabel p, .edgeLabel rect { border-radius: 999px; font-size: 12px; }
|
|
19
|
-
.edgeLabel p { padding: 1px 6px; }
|
|
20
|
-
.cluster rect { rx: 12px; ry: 12px; stroke-dasharray: 4 3; }
|
|
21
|
-
`}var Zo=60,ae=new Map;function ct(i,n,s=""){return`${n}:${s}:${i}`}function Jo(i,n){if(ae.size>=Zo){let s=ae.keys().next().value;if(s!==void 0)ae.delete(s)}ae.set(i,n)}var lt;function en(i,n,s){let d=s??i;if(lt===d)return;Te.initialize({startOnLoad:!1,suppressErrorRendering:!0,securityLevel:"strict",theme:"base",themeVariables:st(i,n),themeCSS:dt(i),fontFamily:n?.fonts?.sans||"var(--font-sans)",flowchart:{useMaxWidth:!1,curve:"basis",padding:14,nodeSpacing:44,rankSpacing:56},sequence:{useMaxWidth:!1},state:{useMaxWidth:!1},class:{useMaxWidth:!1},er:{useMaxWidth:!1},gantt:{useMaxWidth:!1},mindmap:{useMaxWidth:!1},timeline:{useMaxWidth:!1}}),lt=d}var rn=0,tn=32;async function an(i,n,s,d,c){en(n,d,c);let l=`${s}-${++rn}`,u=i,m=0;try{while(!0)try{let{svg:p}=await Te.render(l,u);return p.replace(/filter="url\(#[^"]+\)"/g,"").replace(/filter:\s*url\(#[^)]+\);?/g,"")}catch(p){let v=m<tn?ot(u,p):void 0;if(!v)throw p;u=v,m+=1}}finally{document.getElementById(`d${l}`)?.remove()}}var on=(i)=>i instanceof Error?i.message:String(i);function cs(i){let n=x(),s=n.useTheme?.(),d=n.useColorScheme?.(),c=s?.resolved??d??"light",l=s?.tokens,u=s?.themeID?`${s.themeID}-${c}`:c,m=`mermaid-${ee().replace(/[^\w-]/g,"")}`,p=i.code.trim(),[v,y]=r(()=>ae.get(ct(p,c,u))),[w,h]=r(),[k,L]=r(!v);return o(()=>{let D=ct(p,c,u),E=ae.get(D);if(E){y(E),h(void 0),L(!1);return}let M=!0;L(!0);let A=setTimeout(async()=>{try{if(i.streaming&&!await Te.parse(p,{suppressErrors:!0})){if(M)L(!1);return}let b=await an(p,c,m,l,u);if(Jo(D,b),!M)return;y(b),h(void 0)}catch(b){if(M)h(on(b))}if(M)L(!1)},i.streaming?200:0);return()=>{M=!1,clearTimeout(A)}},[p,c,u,l,i.streaming,m]),e(Ai,{title:"流程图",code:i.code,codeLang:"mermaid",rendered:Boolean(v),pending:k,streaming:i.streaming,error:w,children:e("div",{role:"img","aria-label":"Mermaid 流程图",className:"flex overflow-x-auto px-6 py-7 [background-image:radial-gradient(var(--color-line)_1px,transparent_1px)] [background-size:16px_16px] [&_svg]:mx-auto [&_svg]:h-auto [&_svg]:max-w-full",dangerouslySetInnerHTML:{__html:v??""}})})}export{cs as MermaidBlock};
|
package/web/chunk-7n6b2xra.js.br
DELETED
|
Binary file
|
package/web/chunk-7n6b2xra.js.gz
DELETED
|
Binary file
|
package/web/chunk-7p4mcqkd.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import{re}from"./chunk-js8dvtfg.js";import{t,a,Ge,S,G,A,R,I,L,D,P,N,u,Q,X}from"./chunk-fzmrnh17.js";import{me}from"./chunk-bdypt5mj.js";var at=t((r,i)=>{let n=r<=1?r*100:r;if(n<0||n>100)throw Error(`${i} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${r}`);return n},"toPercent"),q=t((r,i,n)=>({x:at(i,`${n} evolution`),y:at(r,`${n} visibility`)}),"toCoordinates"),lt=t((r)=>{if(!r)return;if(r==="+<>")return"bidirectional";if(r==="+<")return"backward";if(r==="+>")return"forward";return},"getFlowFromPort"),Yt=t((r)=>{if(!r?.startsWith("+"))return{};let n=/^\+'([^']*)'/.exec(r)?.[1];if(r.includes("<>"))return{flow:"bidirectional",label:n};if(r.includes("<"))return{flow:"backward",label:n};if(r.includes(">"))return{flow:"forward",label:n};return{label:n}},"extractFlowFromArrow"),It=t((r,i)=>{if(re(r,i),r.size)i.setSize(r.size.width,r.size.height);if(r.evolution){let n=r.evolution.stages.map((o)=>{if(o.secondName)return`${o.name.trim()} / ${o.secondName.trim()}`;return o.name.trim()}),g=r.evolution.stages.filter((o)=>o.boundary!==void 0).map((o)=>o.boundary);i.updateAxes({stages:n,stageBoundaries:g})}if(r.anchors.forEach((n)=>{let g=q(n.visibility,n.evolution,`Anchor "${n.name}"`);i.addNode(n.name,n.name,g.x,g.y,"anchor")}),r.components.forEach((n)=>{let g=q(n.visibility,n.evolution,`Component "${n.name}"`),o=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,c=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,k=n.decorator?.strategy;i.addNode(n.name,n.name,g.x,g.y,"component",o,c,n.inertia,k)}),r.notes.forEach((n)=>{let g=q(n.visibility,n.evolution,`Note "${n.text}"`);i.addNote(n.text,g.x,g.y)}),r.pipelines.forEach((n)=>{let g=i.getNode(n.parent);if(!g||typeof g.y!=="number")throw Error(`Pipeline "${n.parent}" must reference an existing component with coordinates.`);let o=g.y;i.startPipeline(n.parent),n.components.forEach((c)=>{let k=`${n.parent}_${c.name}`,W=c.label?(c.label.negX?-1:1)*c.label.offsetX:void 0,w=c.label?(c.label.negY?-1:1)*c.label.offsetY:void 0,J=at(c.evolution,`Pipeline component "${c.name}" evolution`);i.addNode(k,c.name,J,o,"pipeline-component",W,w),i.addPipelineComponent(n.parent,k)})}),r.links.forEach((n)=>{let g=!!n.arrow&&(n.arrow.includes("-.->")||n.arrow.includes(".-.")),o=lt(n.fromPort)??lt(n.toPort),{flow:c,label:k}=Yt(n.arrow);if(!o&&c)o=c;let W=n.linkLabel,w=k??W;i.addLink(i.resolveNodeId(n.from),i.resolveNodeId(n.to),g,w,o)}),r.evolves.forEach((n)=>{let g=i.getNode(n.component);if(g?.y!==void 0){let o=at(n.target,`Evolve target for "${n.component}"`);i.addTrend(n.component,o,g.y)}}),r.annotations.length>0){let n=r.annotations[0],g=q(n.x,n.y,"Annotations box");i.setAnnotationsBox(g.x,g.y)}r.annotation.forEach((n)=>{let g=q(n.x,n.y,`Annotation ${n.number}`);i.addAnnotation(n.number,[{x:g.x,y:g.y}],n.text)}),r.accelerators.forEach((n)=>{let g=q(n.x,n.y,`Accelerator "${n.name}"`);i.addAccelerator(n.name,g.x,g.y)}),r.deaccelerators.forEach((n)=>{let g=q(n.x,n.y,`Deaccelerator "${n.name}"`);i.addDeaccelerator(n.name,g.x,g.y)})},"populateDb"),ct={parser:{yy:void 0},parse:t(async(r)=>{let i=await me("wardley",r);a.debug(i);let n=ct.parser?.yy;if(!n||typeof n.addNode!=="function")throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");It(i,n)},"parse")},Bt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{t(this,"WardleyBuilder")}addNode(r){let i=this.nodes.get(r.id)??{id:r.id,label:r.label},n={...i,...r,className:r.className??i.className,labelOffsetX:r.labelOffsetX??i.labelOffsetX,labelOffsetY:r.labelOffsetY??i.labelOffsetY};this.nodes.set(r.id,n)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});let i=this.nodes.get(r);if(i)i.isPipelineParent=!0}addPipelineComponent(r,i){let n=this.pipelines.get(r);if(n)n.componentIds.push(i);let g=this.nodes.get(i);if(g)g.inPipeline=!0}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,i){this.annotationsBox={x:r,y:i}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,i){this.size={width:r,height:i}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(let[i,n]of this.nodes)if(n.label===r)return i;return r}build(){let r=[];for(let i of this.nodes.values()){if(typeof i.x!=="number"||typeof i.y!=="number")throw Error(`Node "${i.label}" is missing coordinates`);r.push(i)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},v=new Bt;function pt(){return u()["wardley-beta"]}t(pt,"getConfig");function ht(r,i,n,g,o,c,k,W,w){v.addNode({id:r,label:i,x:n,y:g,className:o,labelOffsetX:c,labelOffsetY:k,inertia:W,sourceStrategy:w})}t(ht,"addNode");function ft(r,i,n=!1,g,o){v.addLink({source:r,target:i,dashed:n,label:g,flow:o})}t(ft,"addLink");function xt(r,i,n){v.addTrend({nodeId:r,targetX:i,targetY:n})}t(xt,"addTrend");function gt(r,i,n){v.addAnnotation({number:r,coordinates:i,text:n})}t(gt,"addAnnotation");function yt(r,i,n){v.addNote({text:r,x:i,y:n})}t(yt,"addNote");function ut(r,i,n){v.addAccelerator({name:r,x:i,y:n})}t(ut,"addAccelerator");function wt(r,i,n){v.addDeaccelerator({name:r,x:i,y:n})}t(wt,"addDeaccelerator");function mt(r,i){v.setAnnotationsBox(r,i)}t(mt,"setAnnotationsBox");function kt(r,i){v.setSize(r,i)}t(kt,"setSize");function bt(r){v.startPipeline(r)}t(bt,"startPipeline");function $t(r,i){v.addPipelineComponent(r,i)}t($t,"addPipelineComponent");function vt(r){v.setAxes(r)}t(vt,"updateAxes");function Pt(r){return v.getNode(r)}t(Pt,"getNode");function Ct(r){return v.resolveNodeId(r)}t(Ct,"resolveNodeId");function St(){return v.build()}t(St,"getWardleyData");function Mt(){v.clear(),A()}t(Mt,"clear");var Ft={getConfig:pt,addNode:ht,addLink:ft,addTrend:xt,addAnnotation:gt,addNote:yt,addAccelerator:ut,addDeaccelerator:wt,setAnnotationsBox:mt,setSize:kt,startPipeline:bt,addPipelineComponent:$t,updateAxes:vt,getNode:Pt,resolveNodeId:Ct,getWardleyData:St,clear:Mt,setAccTitle:R,getAccTitle:I,setDiagramTitle:P,getDiagramTitle:N,getAccDescription:D,setAccDescription:L},Rt=["Genesis","Custom Built","Product","Commodity"],Ot=t(()=>{let{themeVariables:r}=u();return{backgroundColor:r.wardley?.backgroundColor??r.background??"#fff",axisColor:r.wardley?.axisColor??"#000",axisTextColor:r.wardley?.axisTextColor??r.primaryTextColor??"#222",gridColor:r.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:r.wardley?.componentFill??"#fff",componentStroke:r.wardley?.componentStroke??"#000",componentLabelColor:r.wardley?.componentLabelColor??r.primaryTextColor??"#222",linkStroke:r.wardley?.linkStroke??"#000",evolutionStroke:r.wardley?.evolutionStroke??"#dc3545",annotationStroke:r.wardley?.annotationStroke??"#000",annotationTextColor:r.wardley?.annotationTextColor??r.primaryTextColor??"#222",annotationFill:r.wardley?.annotationFill??r.background??"#fff"}},"getTheme"),Dt=t(()=>{let r=u()["wardley-beta"];return{width:r?.width??900,height:r?.height??600,padding:r?.padding??48,nodeRadius:r?.nodeRadius??6,nodeLabelOffset:r?.nodeLabelOffset??8,axisFontSize:r?.axisFontSize??12,labelFontSize:r?.labelFontSize??10,showGrid:r?.showGrid??!1,useMaxWidth:r?.useMaxWidth??!0}},"getConfigValues"),Gt=t((r,i,n,g)=>{a.debug(`Rendering Wardley map
|
|
2
|
-
`+r);let o=Dt(),c=Ot(),k=o.nodeRadius*1.6,W=g.db,w=W.getWardleyData(),J=W.getDiagramTitle(),E=w.size?.width??o.width,C=w.size?.height??o.height,V=Q(i);V.selectAll("*").remove(),G(V,C,E,o.useMaxWidth),V.attr("viewBox",`0 0 ${E} ${C}`);let z=V.append("g").attr("class","wardley-map"),rt=V.append("defs");rt.append("marker").attr("id",`arrow-${i}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",c.evolutionStroke).attr("stroke","none"),rt.append("marker").attr("id",`link-arrow-end-${i}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",c.linkStroke).attr("stroke","none"),rt.append("marker").attr("id",`link-arrow-start-${i}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",c.linkStroke).attr("stroke","none"),z.append("rect").attr("class","wardley-background").attr("width",E).attr("height",C).attr("fill",c.backgroundColor);let _=E-o.padding*2,Z=C-o.padding*2;if(J)z.append("text").attr("class","wardley-title").attr("x",E/2).attr("y",o.padding/2).attr("fill",c.axisTextColor).attr("font-size",o.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(J);let B=t((e)=>o.padding+e/100*_,"projectX"),F=t((e)=>C-o.padding-e/100*Z,"projectY"),K=z.append("g").attr("class","wardley-axes");K.append("line").attr("x1",o.padding).attr("x2",E-o.padding).attr("y1",C-o.padding).attr("y2",C-o.padding).attr("stroke",c.axisColor).attr("stroke-width",1),K.append("line").attr("x1",o.padding).attr("x2",o.padding).attr("y1",o.padding).attr("y2",C-o.padding).attr("stroke",c.axisColor).attr("stroke-width",1);let Nt=w.axes.xLabel??"Evolution",zt=w.axes.yLabel??"Visibility";K.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",o.padding+_/2).attr("y",C-o.padding/4).attr("fill",c.axisTextColor).attr("font-size",o.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(Nt),K.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",o.padding/3).attr("y",o.padding+Z/2).attr("fill",c.axisTextColor).attr("font-size",o.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${o.padding/3} ${o.padding+Z/2})`).text(zt);let U=w.axes.stages&&w.axes.stages.length>0?w.axes.stages:Rt;if(U.length>0){let e=z.append("g").attr("class","wardley-stages"),d=w.axes.stageBoundaries,s=[];if(d&&d.length===U.length){let l=0;d.forEach((h)=>{s.push({start:l,end:h}),l=h})}else{let l=1/U.length;U.forEach((h,f)=>{s.push({start:f*l,end:(f+1)*l})})}U.forEach((l,h)=>{let f=s[h],y=o.padding+f.start*_,x=o.padding+f.end*_,m=(y+x)/2;if(h>0)e.append("line").attr("x1",y).attr("x2",y).attr("y1",o.padding).attr("y2",C-o.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",0.8);e.append("text").attr("class","wardley-stage-label").attr("x",m).attr("y",C-o.padding/1.5).attr("fill",c.axisTextColor).attr("font-size",o.axisFontSize-2).attr("text-anchor","middle").text(l)})}if(o.showGrid){let e=z.append("g").attr("class","wardley-grid");for(let d=1;d<4;d++){let s=d/4,l=o.padding+_*s;e.append("line").attr("x1",l).attr("x2",l).attr("y1",o.padding).attr("y2",C-o.padding).attr("stroke",c.gridColor).attr("stroke-dasharray","2 6"),e.append("line").attr("x1",o.padding).attr("x2",E-o.padding).attr("y1",C-o.padding-Z*s).attr("y2",C-o.padding-Z*s).attr("stroke",c.gridColor).attr("stroke-dasharray","2 6")}}let p=new Map;if(w.nodes.forEach((e)=>{p.set(e.id,{x:B(e.x),y:F(e.y),node:e})}),w.pipelines.length>0){let e=z.append("g").attr("class","wardley-pipelines"),d=z.append("g").attr("class","wardley-pipeline-links");w.pipelines.forEach((s)=>{if(s.componentIds.length===0)return;let l=s.componentIds.map((x)=>({id:x,pos:p.get(x),node:w.nodes.find((m)=>m.id===x)})).filter((x)=>x.pos&&x.node).sort((x,m)=>x.node.x-m.node.x);for(let x=0;x<l.length-1;x++){let m=l[x],b=l[x+1];d.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",m.pos.x).attr("y1",m.pos.y).attr("x2",b.pos.x).attr("y2",b.pos.y).attr("stroke",c.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let h=1/0,f=-1/0,y=0;if(s.componentIds.forEach((x)=>{let m=p.get(x);if(m)h=Math.min(h,m.x),f=Math.max(f,m.x),y=m.y}),h!==1/0&&f!==-1/0){let m=o.nodeRadius*4,b=y-m/2,T=p.get(s.nodeId);if(T){let Y=(h+f)/2;T.x=Y,T.y=b-k/6}e.append("rect").attr("class","wardley-pipeline-box").attr("x",h-15).attr("y",b).attr("width",f-h+30).attr("height",m).attr("fill","none").attr("stroke",c.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let st=z.append("g").attr("class","wardley-links"),it=new Map;w.pipelines.forEach((e)=>{it.set(e.nodeId,new Set(e.componentIds))});let dt=w.links.filter((e)=>{if(!p.has(e.source)||!p.has(e.target))return!1;if(it.get(e.target)?.has(e.source))return!1;return!0});st.selectAll("line").data(dt).enter().append("line").attr("class",(e)=>`wardley-link${e.dashed?" wardley-link--dashed":""}`).attr("x1",(e)=>{let d=p.get(e.source),s=p.get(e.target),h=w.nodes.find((m)=>m.id===e.source).isPipelineParent?k/Math.sqrt(2):o.nodeRadius,f=s.x-d.x,y=s.y-d.y,x=Math.sqrt(f*f+y*y);return d.x+f/x*h}).attr("y1",(e)=>{let d=p.get(e.source),s=p.get(e.target),h=w.nodes.find((m)=>m.id===e.source).isPipelineParent?k/Math.sqrt(2):o.nodeRadius,f=s.x-d.x,y=s.y-d.y,x=Math.sqrt(f*f+y*y);return d.y+y/x*h}).attr("x2",(e)=>{let d=p.get(e.source),s=p.get(e.target),h=w.nodes.find((m)=>m.id===e.target).isPipelineParent?k/Math.sqrt(2):o.nodeRadius,f=d.x-s.x,y=d.y-s.y,x=Math.sqrt(f*f+y*y);return s.x+f/x*h}).attr("y2",(e)=>{let d=p.get(e.source),s=p.get(e.target),h=w.nodes.find((m)=>m.id===e.target).isPipelineParent?k/Math.sqrt(2):o.nodeRadius,f=d.x-s.x,y=d.y-s.y,x=Math.sqrt(f*f+y*y);return s.y+y/x*h}).attr("stroke",c.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",(e)=>e.dashed?"6 6":null).attr("marker-end",(e)=>{if(e.flow==="forward"||e.flow==="bidirectional")return`url(#link-arrow-end-${i})`;return null}).attr("marker-start",(e)=>{if(e.flow==="backward"||e.flow==="bidirectional")return`url(#link-arrow-start-${i})`;return null}),st.selectAll("text").data(dt.filter((e)=>e.label)).enter().append("text").attr("class","wardley-link-label").attr("x",(e)=>{let d=p.get(e.source),s=p.get(e.target),l=(d.x+s.x)/2,h=s.y-d.y,f=s.x-d.x,y=Math.sqrt(f*f+h*h),x=8,m=h/y;return l+m*8}).attr("y",(e)=>{let d=p.get(e.source),s=p.get(e.target),l=(d.y+s.y)/2,h=s.x-d.x,f=s.y-d.y,y=Math.sqrt(h*h+f*f),x=8,m=-h/y;return l+m*8}).attr("fill",c.axisTextColor).attr("font-size",o.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",(e)=>{let d=p.get(e.source),s=p.get(e.target),l=(d.x+s.x)/2,h=(d.y+s.y)/2,f=s.x-d.x,y=s.y-d.y,x=Math.sqrt(f*f+y*y),m=8,b=y/x,T=-f/x,Y=l+b*8,tt=h+T*8,j=Math.atan2(y,f)*180/Math.PI;if(j>90||j<-90)j+=180;return`rotate(${j} ${Y} ${tt})`}).text((e)=>e.label);let Lt=z.append("g").attr("class","wardley-trends"),Tt=w.trends.map((e)=>{let d=p.get(e.nodeId);if(!d)return null;let s=B(e.targetX),l=F(e.targetY),h=s-d.x,f=l-d.y,y=Math.sqrt(h*h+f*f),x=o.nodeRadius+2,m=y>x?s-h/y*x:s,b=y>x?l-f/y*x:l;return{origin:d,targetX:s,targetY:l,adjustedX2:m,adjustedY2:b}}).filter((e)=>e!==null);Lt.selectAll("line").data(Tt).enter().append("line").attr("class","wardley-trend").attr("x1",(e)=>e.origin.x).attr("y1",(e)=>e.origin.y).attr("x2",(e)=>e.adjustedX2).attr("y2",(e)=>e.adjustedY2).attr("stroke",c.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${i})`);let H=z.append("g").attr("class","wardley-nodes").selectAll("g").data(w.nodes).enter().append("g").attr("class",(e)=>["wardley-node",e.className?`wardley-node--${e.className}`:""].filter(Boolean).join(" "));H.filter((e)=>e.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","#666").attr("stroke",c.componentStroke).attr("stroke-width",1),H.filter((e)=>e.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","#ccc").attr("stroke",c.componentStroke).attr("stroke-width",1),H.filter((e)=>e.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let O=H.filter((e)=>e.sourceStrategy==="market");O.append("circle").attr("class","wardley-market-overlay").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",1),H.filter((e)=>!e.isPipelineParent&&e.sourceStrategy!=="market"&&e.className!=="anchor").append("circle").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y).attr("r",o.nodeRadius).attr("fill",c.componentFill).attr("stroke",c.componentStroke).attr("stroke-width",1);let ot=o.nodeRadius*0.7,M=o.nodeRadius*1.2;if(O.append("line").attr("class","wardley-market-line").attr("x1",(e)=>p.get(e.id).x).attr("y1",(e)=>p.get(e.id).y-M).attr("x2",(e)=>p.get(e.id).x-M*Math.cos(Math.PI/6)).attr("y2",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("stroke",c.componentStroke).attr("stroke-width",1),O.append("line").attr("class","wardley-market-line").attr("x1",(e)=>p.get(e.id).x-M*Math.cos(Math.PI/6)).attr("y1",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("x2",(e)=>p.get(e.id).x+M*Math.cos(Math.PI/6)).attr("y2",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("stroke",c.componentStroke).attr("stroke-width",1),O.append("line").attr("class","wardley-market-line").attr("x1",(e)=>p.get(e.id).x+M*Math.cos(Math.PI/6)).attr("y1",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("x2",(e)=>p.get(e.id).x).attr("y2",(e)=>p.get(e.id).y-M).attr("stroke",c.componentStroke).attr("stroke-width",1),O.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y-M).attr("r",ot).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",2),O.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>p.get(e.id).x-M*Math.cos(Math.PI/6)).attr("cy",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("r",ot).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",2),O.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>p.get(e.id).x+M*Math.cos(Math.PI/6)).attr("cy",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("r",ot).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",2),H.filter((e)=>e.isPipelineParent===!0).append("rect").attr("x",(e)=>p.get(e.id).x-k/2).attr("y",(e)=>p.get(e.id).y-k/2).attr("width",k).attr("height",k).attr("fill",c.componentFill).attr("stroke",c.componentStroke).attr("stroke-width",1),H.filter((e)=>e.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",(e)=>{let d=p.get(e.id),s=e.isPipelineParent?k/2+15:o.nodeRadius+15;if(e.sourceStrategy)s+=o.nodeRadius+10;return d.x+s}).attr("y1",(e)=>{let d=p.get(e.id),s=e.isPipelineParent?k:o.nodeRadius*2;return d.y-s/2}).attr("x2",(e)=>{let d=p.get(e.id),s=e.isPipelineParent?k/2+15:o.nodeRadius+15;if(e.sourceStrategy)s+=o.nodeRadius+10;return d.x+s}).attr("y2",(e)=>{let d=p.get(e.id),s=e.isPipelineParent?k:o.nodeRadius*2;return d.y+s/2}).attr("stroke",c.componentStroke).attr("stroke-width",6),H.append("text").attr("x",(e)=>{let d=p.get(e.id);if(e.className==="anchor")return e.labelOffsetX!==void 0?d.x+e.labelOffsetX:d.x;let s=o.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetX===void 0)s+=10;let l=e.labelOffsetX??s;return d.x+l}).attr("y",(e)=>{let d=p.get(e.id);if(e.className==="anchor")return e.labelOffsetY!==void 0?d.y+e.labelOffsetY:d.y-3;let s=-o.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetY===void 0)s-=10;let l=e.labelOffsetY??s;return d.y+l}).attr("class","wardley-node-label").attr("fill",(e)=>{if(e.className==="evolved")return c.evolutionStroke;if(e.className==="anchor")return"#000";return c.componentLabelColor}).attr("font-size",o.labelFontSize).attr("font-weight",(e)=>e.className==="anchor"?"bold":"normal").attr("text-anchor",(e)=>e.className==="anchor"?"middle":"start").attr("dominant-baseline",(e)=>e.className==="anchor"?"middle":"auto").text((e)=>e.label),w.annotations.length>0){let e=z.append("g").attr("class","wardley-annotations");if(w.annotations.forEach((d)=>{let s=d.coordinates.map((l)=>({x:B(l.x),y:F(l.y)}));if(s.length>1)for(let l=0;l<s.length-1;l++)e.append("line").attr("class","wardley-annotation-line").attr("x1",s[l].x).attr("y1",s[l].y).attr("x2",s[l+1].x).attr("y2",s[l+1].y).attr("stroke",c.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");s.forEach((l)=>{let h=e.append("g").attr("class","wardley-annotation");h.append("circle").attr("cx",l.x).attr("cy",l.y).attr("r",10).attr("fill","white").attr("stroke",c.axisColor).attr("stroke-width",1.5),h.append("text").attr("x",l.x).attr("y",l.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",c.axisTextColor).attr("font-weight","bold").text(d.number)})}),w.annotationsBox){let d=B(w.annotationsBox.x),s=F(w.annotationsBox.y),l=10,h=16,f=11,y=e.append("g").attr("class","wardley-annotations-box"),x=[...w.annotations].filter((b)=>b.text).sort((b,T)=>b.number-T.number),m=[];if(x.forEach((b,T)=>{let Y=y.append("text").attr("x",d+l).attr("y",s+l+(T+1)*h).attr("font-size",f).attr("fill",c.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${b.number}. ${b.text}`);m.push(Y)}),m.length>0){let b=0,T=0;m.forEach((nt)=>{let et=nt.node(),Et=et.getComputedTextLength();b=Math.max(b,Et);let Ht=et.getBBox();T=Math.max(T,Ht.height)});let Y=b+l*2+105,tt=x.length*h+l*2+T/2,j=o.padding,Wt=E-o.padding-Y,At=o.padding,Xt=C-o.padding-tt;d=Math.max(j,Math.min(d,Wt)),s=Math.max(At,Math.min(s,Xt)),m.forEach((nt,et)=>{nt.attr("x",d+l).attr("y",s+l+(et+1)*h)}),y.insert("rect","text").attr("x",d).attr("y",s).attr("width",Y).attr("height",tt).attr("fill","white").attr("stroke",c.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(w.notes.length>0){let e=z.append("g").attr("class","wardley-notes");w.notes.forEach((d)=>{let s=B(d.x),l=F(d.y);e.append("text").attr("x",s).attr("y",l).attr("text-anchor","start").attr("font-size",11).attr("fill",c.axisTextColor).attr("font-weight","bold").text(d.text)})}if(w.accelerators.length>0){let e=z.append("g").attr("class","wardley-accelerators");w.accelerators.forEach((d)=>{let s=B(d.x),l=F(d.y),h=60,f=30,y=20,x=`
|
|
3
|
-
M ${s} ${l-15}
|
|
4
|
-
L ${s+60-20} ${l-15}
|
|
5
|
-
L ${s+60-20} ${l-15-8}
|
|
6
|
-
L ${s+60} ${l}
|
|
7
|
-
L ${s+60-20} ${l+15+8}
|
|
8
|
-
L ${s+60-20} ${l+15}
|
|
9
|
-
L ${s} ${l+15}
|
|
10
|
-
Z
|
|
11
|
-
`;e.append("path").attr("d",x).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",1),e.append("text").attr("x",s+30).attr("y",l+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",c.axisTextColor).attr("font-weight","bold").text(d.name)})}if(w.deaccelerators.length>0){let e=z.append("g").attr("class","wardley-deaccelerators");w.deaccelerators.forEach((d)=>{let s=B(d.x),l=F(d.y),h=60,f=30,y=20,x=`
|
|
12
|
-
M ${s+60} ${l-15}
|
|
13
|
-
L ${s+20} ${l-15}
|
|
14
|
-
L ${s+20} ${l-15-8}
|
|
15
|
-
L ${s} ${l}
|
|
16
|
-
L ${s+20} ${l+15+8}
|
|
17
|
-
L ${s+20} ${l+15}
|
|
18
|
-
L ${s+60} ${l+15}
|
|
19
|
-
Z
|
|
20
|
-
`;e.append("path").attr("d",x).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",1),e.append("text").attr("x",s+30).attr("y",l+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",c.axisTextColor).attr("font-weight","bold").text(d.name)})}},"draw"),qt={draw:Gt},jt=t(({wardley:r}={})=>{let i=Ge(),n=S(),g=X(i,n.themeVariables),o=X(g.wardley,r);return`
|
|
21
|
-
.wardley-background {
|
|
22
|
-
fill: ${o.backgroundColor};
|
|
23
|
-
}
|
|
24
|
-
.wardley-axes line, .wardley-axes path {
|
|
25
|
-
stroke: ${o.axisColor};
|
|
26
|
-
}
|
|
27
|
-
.wardley-axis-label {
|
|
28
|
-
fill: ${o.axisTextColor};
|
|
29
|
-
}
|
|
30
|
-
.wardley-stage-label {
|
|
31
|
-
fill: ${o.axisTextColor};
|
|
32
|
-
}
|
|
33
|
-
.wardley-grid line {
|
|
34
|
-
stroke: ${o.gridColor};
|
|
35
|
-
}
|
|
36
|
-
.wardley-node circle {
|
|
37
|
-
fill: ${o.componentFill};
|
|
38
|
-
stroke: ${o.componentStroke};
|
|
39
|
-
}
|
|
40
|
-
.wardley-node-label {
|
|
41
|
-
fill: ${o.componentLabelColor};
|
|
42
|
-
}
|
|
43
|
-
.wardley-link {
|
|
44
|
-
stroke: ${o.linkStroke};
|
|
45
|
-
}
|
|
46
|
-
.wardley-link--dashed {
|
|
47
|
-
stroke-dasharray: 4 4;
|
|
48
|
-
}
|
|
49
|
-
.wardley-link-label {
|
|
50
|
-
fill: ${o.axisTextColor};
|
|
51
|
-
}
|
|
52
|
-
.wardley-trend line {
|
|
53
|
-
stroke: ${o.evolutionStroke};
|
|
54
|
-
}
|
|
55
|
-
.wardley-annotation-line {
|
|
56
|
-
stroke: ${o.annotationStroke};
|
|
57
|
-
}
|
|
58
|
-
.wardley-annotation circle {
|
|
59
|
-
fill: ${o.annotationFill};
|
|
60
|
-
stroke: ${o.annotationStroke};
|
|
61
|
-
}
|
|
62
|
-
.wardley-annotation text {
|
|
63
|
-
fill: ${o.annotationTextColor};
|
|
64
|
-
}
|
|
65
|
-
.wardley-annotations-box rect {
|
|
66
|
-
fill: ${o.annotationFill};
|
|
67
|
-
stroke: ${o.annotationStroke};
|
|
68
|
-
}
|
|
69
|
-
.wardley-annotations-box text {
|
|
70
|
-
fill: ${o.annotationTextColor};
|
|
71
|
-
}
|
|
72
|
-
.wardley-pipeline-box {
|
|
73
|
-
stroke: ${o.componentStroke};
|
|
74
|
-
}
|
|
75
|
-
.wardley-notes text {
|
|
76
|
-
fill: ${o.axisTextColor};
|
|
77
|
-
}
|
|
78
|
-
`},"styles"),ee={parser:ct,db:Ft,renderer:qt,styles:jt};export{ee as diagram};
|
package/web/chunk-7p4mcqkd.js.br
DELETED
|
Binary file
|
package/web/chunk-7p4mcqkd.js.gz
DELETED
|
Binary file
|
package/web/chunk-7ztwkhg5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o,i,r,Vt,h,e,n,x,Ja,s,ie,tr,bt,ge,ua,oe}from"./chunk-fba06jm8.js";var ke=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],L=s("at-sign",ke);var Ce=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],de=s("file-code-2",Ce);var we=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],pe=s("maximize-2",we);var Me=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],Z=s("notebook-pen",Me);var Ie=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ue=s("user",Ie);var w={approve:{label:"通过",text:"text-success",ring:"ring-success/80",soft:"bg-success/12 text-success"},reject:{label:"反对",text:"text-danger",ring:"ring-danger/80",soft:"bg-danger/12 text-danger"},abstain:{label:"弃权",text:"text-dim",ring:"ring-line-strong",soft:"bg-raised text-dim"},pending:{label:"未表态",text:"text-faint",ring:"ring-line",soft:"bg-raised text-faint"}},ze={thinking:"思考中",reading:"查阅中",speaking:"发言中",idle:"等待中",error:"出错",aborted:"已中止"},F={success:"text-success",warning:"text-warning",danger:"text-danger",neutral:"text-faint"},ee={success:"bg-success",warning:"bg-warning",danger:"bg-danger",neutral:"bg-faint"};function V(t){return t==="thinking"||t==="reading"||t==="speaking"}function K(t){let p=V(t.status);return{busy:p,text:p&&t.activeTool?t.activeTool:ze[t.status]}}function te(t){let p=t.members.filter((b)=>b.verdict==="approve").length,f=t.members.filter((b)=>b.verdict==="reject").length;if(t.state==="running"){if(t.phase==="research")return{tone:"warning",label:"调研中"};if(t.phase==="opening")return{tone:"warning",label:"开场表态"};return{tone:"warning",label:"群聊交流"}}if(t.state==="consensus"){if(p===t.members.length)return{tone:"success",label:"全票通过"};if(f===t.members.length)return{tone:"danger",label:"全票反对"};if(f>p)return{tone:"danger",label:"共识:反对"};return{tone:"success",label:"共识:通过"}}if(t.state==="diverged")return{tone:"warning",label:"存在分歧"};if(t.state==="error")return{tone:"danger",label:"失败"};return{tone:"neutral",label:"已中止"}}function W(t){let p=Math.max(1,Math.round(t/1000));if(p<60)return`${p}s`;return`${Math.floor(p/60)}m ${String(p%60).padStart(2,"0")}s`}var De={research:"调研",opening:"开场表态",discussion:"群聊交流"};function G(t){let{cn:p}=x(),{room:f}=t,b=te(f),g=f.state==="running",v=f.research?["research","opening","discussion"]:["opening","discussion"],a=g?v.indexOf(f.phase==="closed"?"discussion":f.phase??"discussion"):-1,N=[...v.map((m,d)=>({key:m,label:De[m],done:!g||d<a,active:d===a})),{key:"closed",label:g?"结论":b.label,done:!g,active:!1}];return e("ol",{className:p("flex min-w-0 gap-1",t.className),children:N.map((m,d)=>{let c=d===N.length-1&&!g;return n("li",{className:"min-w-0 flex-1",children:[e("span",{className:p("block h-[3px] rounded-full transition-colors duration-300",c?ee[b.tone]:m.active?"bg-accent animate-pulse":m.done?"bg-line-strong":"bg-line/60")}),e("span",{className:p("mt-1.5 block truncate text-[11px]",c?p("font-medium",F[b.tone]):m.active?"font-medium text-ink":m.done?"text-dim":"text-faint"),children:m.label})]},m.key)})})}function fe(t){let{Collapsible:p,CollapsibleContent:f,Composer:b,Markdown:g,ModelIcon:v,ScrollArea:a,SessionView:N,cn:m,confirm:d}=x(),{room:c,onClose:C}=t,[M,u]=r(!1),[J,D]=r(""),[R,H]=r(!1),[_,E]=r(),[S,B]=r(!1),[y,I]=r(!0),[T,z]=r(),ne=i(!1);ne.current=T!==void 0;let[U,X]=r(),[se,A]=r(!1),ae=i(!1);ae.current=U!==void 0;let re=(l)=>{A(!1),X(l)},le=i(null),Y=i(null),P=c.state==="running",j=te(c),be=new Map(c.members.map((l)=>[l.id,l]));o(()=>{let l=(me)=>{if(me.key!=="Escape"||me.defaultPrevented||ne.current)return;if(ae.current)A(!0);else u(!0)},k=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",l),()=>{window.removeEventListener("keydown",l),document.body.style.overflow=k}},[]);let ce=c.messages.length;o(()=>{let l=Y.current;if(!l||!y||ce===0)return;l.scrollTo({top:l.scrollHeight,behavior:"smooth"})},[ce,y]);let ve=async(l)=>{await t.onPost(l),I(!0)},he=async()=>{if(R)return;if(!await d({title:"中止理事会?",description:"所有成员会立即停止,已有发言保留。",action:"中止",danger:!0}))return;H(!0),E(void 0);try{await t.onAbort()}catch(k){E(k instanceof Error?k.message:"中止理事会失败")}finally{H(!1)}},Q=(l)=>{X(void 0),D((k)=>k.includes(`@${l}`)?k:`${k?`${k.trimEnd()} `:""}@${l} `),requestAnimationFrame(()=>le.current?.focus())},Ne=c.members.filter((l)=>l.verdict==="approve").length,ye=c.members.filter((l)=>l.verdict==="reject").length,q=c.members.find((l)=>l.id===T),O=c.members.find((l)=>l.id===U);return Vt(n("div",{role:"dialog","aria-modal":"true","aria-label":`理事会:${c.topic}`,onAnimationEnd:(l)=>{if(M&&l.target===l.currentTarget)C()},className:m("fixed inset-0 z-50 flex flex-col bg-bg pt-[env(safe-area-inset-top)] text-ink",M?"pointer-events-none animate-dialog-out":"animate-dialog-in"),children:[n(p,{open:S,onOpenChange:B,className:"shrink-0 border-b border-line px-4 pt-3 pb-3 sm:px-6",children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-3 text-[11px] text-faint",children:[e("span",{className:"font-medium tracking-[0.2em] text-dim",children:"COUNCIL"}),e("span",{className:"tabular-nums",children:W(t.elapsedMs)}),n("span",{className:"tabular-nums",children:[c.messages.length," 条发言"]})]}),n("button",{type:"button","aria-expanded":S,onClick:()=>B((l)=>!l),className:"mt-0.5 flex max-w-full cursor-pointer items-start gap-1.5 text-left md:items-center",children:[e("h2",{className:"line-clamp-2 text-[15px] leading-snug font-semibold md:truncate md:text-lg",children:c.topic}),e(ge,{className:m("mt-0.5 size-4 shrink-0 text-faint transition-transform duration-300 ease-out-quint md:mt-0",!S&&"-rotate-90")})]})]}),n("div",{className:"flex shrink-0 items-center gap-1",children:[n("span",{className:m("inline-flex items-center gap-1.5 rounded-full border border-line px-2.5 py-1 text-xs font-medium",F[j.tone]),children:[e("span",{className:m("size-1.5 rounded-full",ee[j.tone],P&&"animate-pulse")}),j.label]}),e("button",{type:"button","aria-label":"关闭理事会页面",title:"关闭(Esc)",onClick:()=>u(!0),className:"ml-1 inline-flex size-10 -mr-2 cursor-pointer items-center justify-center rounded-full text-faint transition-colors hover:bg-raised hover:text-ink md:size-8 md:mr-0",children:e(oe,{className:"size-4"})})]})]}),e(f,{children:e("div",{className:"mt-2 max-h-[40dvh] overflow-y-auto overscroll-contain rounded-xl bg-panel px-3.5 py-2.5 text-[13px] leading-relaxed text-dim md:max-h-48",children:e(g,{text:c.brief})})}),e(G,{room:c,className:"mt-3"})]}),n("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row",children:[e("div",{className:"flex shrink-0 gap-2 overflow-x-auto overscroll-x-contain border-b border-line px-4 py-2.5 [scrollbar-width:none] md:hidden",children:c.members.map((l)=>e(Se,{member:l,onSelect:()=>z(l.id)},l.id))}),n("aside",{className:"hidden w-72 shrink-0 flex-col gap-2 overflow-y-auto border-r border-line p-4 md:flex",children:[n("div",{className:"flex items-center justify-between text-[11px] text-faint",children:[e("span",{className:"font-medium tracking-wide",children:"席位"}),n("span",{className:"tabular-nums",children:[e("span",{className:"text-success",children:Ne})," / ",e("span",{className:"text-danger",children:ye})," /"," ",c.members.length]})]}),c.members.map((l)=>e(Re,{member:l,viewing:l.id===U,onMention:()=>Q(l.name),onOpen:()=>l.id===U?A(!0):re(l.id)},l.id))]}),O&&n("main",{onAnimationEnd:(l)=>{if(!se||l.target!==l.currentTarget)return;A(!1),X(void 0)},className:m("flex min-h-0 min-w-0 flex-1 flex-col",se?"pointer-events-none animate-overlay-out":"animate-fade"),children:[n("div",{className:"flex shrink-0 items-center gap-2 border-b border-line px-3 py-2 sm:px-4",children:[n("button",{type:"button",onClick:()=>A(!0),className:"inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-lg px-2 text-[13px] text-dim transition-colors hover:bg-raised hover:text-ink",children:[e(tr,{className:"size-4"}),"群聊"]}),e("span",{className:"text-line-strong",children:"/"}),n("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-[13px] font-medium",children:[e(v,{modelID:O.model,className:"size-4 shrink-0",size:16}),n("span",{className:"truncate",children:[O.name," 的推理过程"]})]}),e("button",{type:"button","aria-label":"在完整页面打开",title:"在完整页面打开",onClick:()=>t.onOpenMember(O.childSessionID),className:"inline-flex size-8 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-raised hover:text-ink",children:e(bt,{className:"size-4"})})]}),e(N,{sessionID:O.childSessionID},O.childSessionID)]}),n("main",{className:m("min-h-0 min-w-0 flex-1 flex-col animate-fade",O?"hidden":"flex"),children:[e(a,{viewportRef:Y,onScrollCapture:(l)=>{let k=Y.current;if(!k||l.target!==k)return;I(k.scrollHeight-k.scrollTop-k.clientHeight<80)},children:n("div",{className:"mx-auto w-full max-w-3xl px-4 py-4 sm:px-6 md:py-5",children:[c.messages.length===0?n("div",{className:"flex flex-col items-center justify-center gap-3 py-24 text-center text-faint",children:[P?e(ie,{className:"size-5 animate-spin"}):null,e("p",{className:"text-sm",children:P?c.phase==="research"?"成员正在各自调研,笔记不会进入群聊":"成员正在独立准备开场观点,彼此不可见":"这场理事会没有产生发言"})]}):e("ol",{className:"space-y-5",children:c.messages.map((l)=>e(Te,{message:l,membersByID:be,onMention:()=>Q(l.senderName)},l.floor))}),c.summary&&!P&&n("section",{className:"mt-8 rounded-2xl border border-line bg-panel px-4 py-3",children:[n("h3",{className:m("text-xs font-semibold",F[j.tone]),children:["结论:",j.label]}),e("div",{className:"mt-1.5 text-[13px] leading-relaxed text-dim",children:e(g,{text:c.summary})})]})]})}),e("div",{className:"shrink-0 px-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:px-6 md:pb-4",children:n("div",{className:"mx-auto w-full max-w-3xl",children:[_&&e("p",{role:"status",className:"px-1 pb-2 text-[13px] text-danger",children:_}),e(b,{draftKey:`council:${c.roomID}`,placeholder:P?"插话,@ 某位成员会点名要求其回应":"理事会已结束,插话会重新唤醒成员",busy:P,allowAttachments:!1,text:J,onTextChange:D,inputRef:le,onSend:ve,onAbort:()=>void he()})]})})]})]}),q&&e(Oe,{member:q,onClose:()=>z(void 0),onMention:()=>{z(void 0),Q(q.name)},onOpen:()=>{z(void 0),re(q.id)}})]}),document.body)}function Se(t){let{ModelIcon:p,cn:f}=x(),{member:b}=t,g=w[b.verdict]??w.pending,{busy:v}=K(b);return n("button",{type:"button",onClick:t.onSelect,"aria-label":`${b.name},${g.label},查看详情`,className:"flex h-11 max-w-[11rem] shrink-0 cursor-pointer items-center gap-2 rounded-full border border-line bg-panel/60 pr-3.5 pl-1.5 active:bg-raised",children:[n("span",{className:f("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",g.ring),children:[e(p,{modelID:b.model,className:"size-4",size:16}),v&&e(ie,{className:"absolute -right-1 -bottom-1 size-3.5 animate-spin rounded-full bg-bg text-accent"})]}),n("span",{className:"min-w-0 text-left leading-tight",children:[e("span",{className:"block truncate text-[13px] font-medium",children:b.name}),e("span",{className:f("block text-[11px]",g.text),children:g.label})]})]})}function Oe(t){let{Button:p,Dialog:f,Markdown:b,ModelIcon:g,cn:v}=x(),{member:a}=t,N=w[a.verdict]??w.pending,m=K(a);return e(f,{open:!0,onOpenChange:(d)=>!d&&t.onClose(),title:n("span",{className:"flex min-w-0 items-center gap-2.5",children:[e("span",{className:v("flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",N.ring),children:e(g,{modelID:a.model,className:"size-4",size:16})}),e("span",{className:"min-w-0 truncate",children:a.name}),e("span",{className:v("shrink-0 rounded px-1.5 py-px text-[11px] font-medium",N.soft),children:N.label})]}),description:a.model,footer:n(h,{children:[n(p,{variant:"secondary",onClick:t.onMention,children:[e(L,{className:"size-4"}),"点名"]}),n(p,{variant:"secondary",onClick:t.onOpen,children:[e(bt,{className:"size-4"}),"查看推理"]})]}),children:n("div",{className:"space-y-3 pb-1",children:[n("div",{className:"flex items-center gap-3 text-[13px]",children:[n("span",{className:v("flex min-w-0 flex-1 items-center gap-1.5",m.busy?"text-accent":"text-dim"),children:[m.busy&&e(ie,{className:"size-3.5 shrink-0 animate-spin"}),e("span",{className:"truncate",children:m.text})]}),n("span",{className:"shrink-0 text-faint tabular-nums",children:["发言 ",a.turns??0," 次"]})]}),a.notes?n("section",{children:[n("h3",{className:"mb-1.5 flex items-center gap-1.5 text-xs font-medium text-faint",children:[e(Z,{className:"size-3.5"}),"调研笔记"]}),e("div",{className:"rounded-xl bg-bg/60 px-3.5 py-2.5 text-[13px] leading-relaxed text-dim",children:e(b,{text:a.notes})})]}):e("p",{className:"text-[13px] text-faint",children:"没有调研笔记"})]})})}function Re(t){let{Collapsible:p,CollapsibleContent:f,Markdown:b,ModelIcon:g,cn:v}=x(),{member:a}=t,[N,m]=r(!1),d=w[a.verdict]??w.pending,{busy:c,text:C}=K(a);return n(p,{open:N,onOpenChange:m,className:v("relative shrink-0 rounded-xl border p-2.5 transition-colors",t.viewing?"border-line-strong bg-raised/60":"border-line bg-panel/60 hover:bg-raised/40"),children:[e("button",{type:"button","aria-label":t.viewing?"返回群聊":`查看 ${a.name} 的推理过程`,"aria-pressed":t.viewing,title:t.viewing?"返回群聊":"查看推理与工具调用",onClick:t.onOpen,className:"absolute inset-0 cursor-pointer rounded-xl"}),n("div",{className:"pointer-events-none relative flex items-center gap-2.5",children:[e("span",{className:v("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",d.ring),children:e(g,{modelID:a.model,className:"size-4",size:16})}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-1.5",children:[e("span",{className:"truncate text-[13px] font-medium",title:a.model,children:a.name}),e("span",{className:v("shrink-0 rounded px-1 text-[10.5px] font-medium",d.soft),children:d.label})]}),n("div",{className:v("flex min-w-0 items-center gap-1 text-[11px]",c?"text-accent":"text-faint"),children:[c&&e(ie,{className:"size-3 shrink-0 animate-spin"}),e("span",{className:"truncate",children:C})]})]})]}),n("div",{className:"pointer-events-none relative mt-2 flex items-center gap-1 text-[11px] text-faint",children:[n("span",{className:"tabular-nums",children:["发言 ",a.turns??0," 次"]}),e("span",{className:"ml-auto"}),a.notes&&n("button",{type:"button","aria-expanded":N,onClick:()=>m((M)=>!M),className:v("pointer-events-auto inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 hover:bg-raised hover:text-ink",N&&"text-ink"),children:[e(Z,{className:"size-3"}),"笔记"]}),e("button",{type:"button","aria-label":`@ ${a.name}`,title:`@ ${a.name}`,onClick:t.onMention,className:"pointer-events-auto inline-flex cursor-pointer items-center rounded p-1 hover:bg-raised hover:text-ink",children:e(L,{className:"size-3"})})]}),a.notes&&e(f,{children:e("div",{className:"relative mt-2 max-h-56 overflow-y-auto rounded-lg bg-bg/60 px-2.5 py-2 text-xs leading-relaxed text-dim",children:e(b,{text:a.notes})})})]})}function Te(t){let{Code:p,Collapsible:f,CollapsibleContent:b,Markdown:g,cn:v}=x(),{message:a}=t,[N,m]=r(!1),d=a.senderID==="user"||a.senderID==="host",c=a.verdict&&a.verdict!=="pending"?w[a.verdict]:void 0,C=a.evidences??[],M=(a.mentions??[]).map((u)=>t.membersByID.get(u)).filter((u)=>u!==void 0);return n("li",{id:`council-floor-${a.floor}`,className:"group flex gap-3 animate-fade",children:[e(xe,{message:a,isHuman:d,className:"mt-0.5 hidden size-8 md:flex"}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs",children:[e(xe,{message:a,isHuman:d,className:"flex size-6 md:hidden"}),e("span",{className:"font-semibold text-ink",title:a.senderModel,children:a.senderName}),n("a",{href:`#council-floor-${a.floor}`,className:"font-mono text-[11px] text-faint hover:text-dim",onClick:(u)=>u.preventDefault(),children:["#",a.floor]}),c&&e("span",{className:v("rounded px-1.5 py-px text-[10.5px] font-medium",c.soft),children:c.label}),!d&&n("button",{type:"button",onClick:t.onMention,className:"ml-auto inline-flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-[11px] text-faint transition-opacity hover:bg-raised hover:text-ink focus-visible:opacity-100 md:px-1.5 md:py-0.5 md:opacity-0 md:group-hover:opacity-100",children:[e(L,{className:"size-3"}),"回复"]})]}),(a.replyToFloor||M.length>0)&&n("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-[11px] text-faint",children:[a.replyToFloor&&n("button",{type:"button",onClick:()=>document.getElementById(`council-floor-${a.replyToFloor}`)?.scrollIntoView({block:"center",behavior:"smooth"}),className:"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-md bg-raised/70 px-1.5 py-0.5 hover:text-ink",children:[e(ua,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0 text-dim",children:["#",a.replyToFloor," ",a.replyToName]}),a.replyToPreview&&e("span",{className:"truncate",children:a.replyToPreview})]}),M.map((u)=>n("span",{className:"inline-flex items-center gap-1 rounded-md bg-accent/10 px-1.5 py-0.5 text-accent",children:[e(L,{className:"size-3"}),u.name]},u.id))]}),e("div",{className:"mt-1.5 break-words text-[14px] leading-relaxed text-ink/90 md:text-[13.5px] [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:e(g,{text:a.text})}),C.length>0&&n(f,{open:N,onOpenChange:m,className:"mt-2",children:[n("button",{type:"button","aria-expanded":N,onClick:()=>m((u)=>!u),className:"inline-flex max-w-full cursor-pointer items-center gap-1 text-[11px] text-faint hover:text-ink",children:[e(de,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0",children:["查阅 ",C.length," 处"]}),!N&&e("span",{className:"truncate font-mono",children:C.map((u)=>u.label).join(",")}),e(ge,{className:v("size-3 shrink-0 transition-transform duration-300 ease-out-quint",!N&&"-rotate-90")})]}),e(b,{children:e("div",{className:"mt-1.5 space-y-1.5",children:C.map((u)=>n("div",{className:"overflow-hidden rounded-lg border border-line bg-panel text-xs",children:[e("div",{className:"truncate border-b border-line/70 px-2.5 py-1 font-mono text-[11px] text-dim",children:u.label}),u.snippet&&e(p,{code:u.snippet,lang:u.lang||"ts",className:"max-h-40 overflow-auto px-2.5 py-1.5 text-[11.5px]"})]},`${u.tool}:${u.label}:${u.snippet?.slice(0,32)??""}`))})})]})]})]})}function xe(t){let{ModelIcon:p,cn:f}=x();return e("span",{className:f("shrink-0 items-center justify-center rounded-full",t.isHuman?"bg-accent/12 text-accent":"bg-raised",t.className),children:t.message.senderModel?e(p,{modelID:t.message.senderModel,className:"size-4",size:16}):e(ue,{className:"size-4"})})}function ot(t){let{ModelIcon:p,cn:f,useTheme:b}=x();b();let{connection:g,sessionID:v,payload:a,onOpen:N}=t,m=a,[d,c]=r(m),[C,M]=r(()=>{try{return sessionStorage.getItem(Ja)===m.roomID}catch{return!1}}),[u,J]=r(Date.now);o(()=>{c(m)},[m]),o(()=>{if(!C)return;try{if(sessionStorage.getItem(Ja)===m.roomID)sessionStorage.removeItem(Ja)}catch{}},[C,m.roomID]);let D=d.state==="running",R=`/api/sessions/${encodeURIComponent(v)}/council/${encodeURIComponent(d.roomID)}`;o(()=>{if(!D)return;let y=!1,T=setInterval(()=>{if(g.request(R).then((z)=>{if(!y&&z&&typeof z==="object"&&"roomID"in z)c(z)}).catch(()=>{}),!y)J(Date.now())},1200);return()=>{y=!0,clearInterval(T)}},[g,R,D]);let H=async(y)=>{let I=await g.request(`${R}/post`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:y})});c(I)},_=async()=>{let y=await g.request(`${R}/kill`,{method:"POST"});c(y)},E=(D?u:d.updatedAt)-d.createdAt,S=d.messages.at(-1),B=d.members.filter((y)=>V(y.status)).length;return n(h,{children:[n("button",{type:"button","aria-label":`进入理事会:${d.topic}`,onClick:()=>M(!0),className:"group relative my-2 block w-full cursor-pointer overflow-hidden rounded-2xl border border-line bg-panel text-left transition-colors hover:border-line-strong animate-fade",children:[n("div",{className:"px-4 pt-3.5",children:[n("div",{className:"flex items-center gap-1.5 text-[11px] text-faint",children:[e("span",{className:"font-medium text-dim",children:"理事会"}),e("span",{"aria-hidden":!0,children:"·"}),e("span",{className:"tabular-nums",children:W(E)}),n("span",{className:"ml-auto tabular-nums",children:[d.members.length," 位成员"]})]}),e("h4",{className:"mt-1 line-clamp-2 text-sm font-semibold text-ink md:truncate",title:d.topic,children:d.topic})]}),e(G,{room:d,className:"mt-3 px-4"}),e("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 px-4",children:d.members.map((y)=>{let I=w[y.verdict]??w.pending,T=V(y.status);return n("span",{className:"flex min-w-0 items-center gap-1.5 text-xs",title:y.model,children:[n("span",{className:f("relative flex size-6 shrink-0 items-center justify-center rounded-full bg-raised ring-2",I.ring),children:[e(p,{modelID:y.model,className:"size-3.5",size:14}),T&&e(ie,{className:"absolute -right-1 -bottom-1 size-3 animate-spin rounded-full bg-panel text-accent"})]}),e("span",{className:"truncate text-dim",children:y.name}),e("span",{className:f("shrink-0 text-[11px]",I.text),children:I.label})]},y.id)})}),n("div",{className:"mt-3 flex items-center gap-2 border-t border-line/70 px-4 py-2.5 text-xs",children:[S?n(h,{children:[e("span",{className:"shrink-0 font-medium text-dim",children:S.senderName}),e("span",{className:"min-w-0 flex-1 truncate text-faint",children:S.text.replace(/\s+/g," ")})]}):e("span",{className:"min-w-0 flex-1 truncate text-faint",children:D?`${B} 位成员正在${d.phase==="research"?"调研":"思考"}…`:"没有发言"}),n("span",{className:"inline-flex shrink-0 items-center gap-1 text-faint transition-colors group-hover:text-ink",children:[d.messages.length>0&&n("span",{className:"tabular-nums",children:[d.messages.length," 条"]}),e(pe,{className:"size-3.5"})]})]})]}),C&&e(fe,{room:d,elapsedMs:E,onClose:()=>M(!1),onOpenMember:N,onPost:H,onAbort:_})]})}export{ot as CouncilCard};
|
package/web/chunk-7ztwkhg5.js.br
DELETED
|
Binary file
|
package/web/chunk-7ztwkhg5.js.gz
DELETED
|
Binary file
|
package/web/chunk-823etvc3.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import{t,Hn,a,Le,k,A,R,I,L,D,P,N,u,f,F,vt,Si,Ie,Te,Ee,cn,Fe,ze}from"./chunk-fzmrnh17.js";import{In}from"./chunk-we1v1829.js";import{Be}from"./chunk-pvahdcgy.js";import{Re}from"./chunk-ceg13tma.js";var Pe=function(){var s=t(function(q,o,c,p){for(c=c||{},p=q.length;p--;c[q[p]]=o);return c},"o"),l=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],n=[1,7],h=[1,9],y=[1,10],T=[1,11],_=[1,12],C=[1,30],g=[1,23],m=[1,24],V=[1,25],W=[1,26],X=[1,27],O=[1,19],G=[1,28],te=[1,29],M=[1,20],Y=[1,18],z=[1,21],U=[1,22],Ue=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Ce=[1,36],Oe=[1,37],Ne=[1,38],xe=[1,39],Ae=[1,40],se=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],K=[1,46],Z=[1,47],ie=[1,57],re=[43,51,53,54,55,74,75],ae=[1,70],ne=[1,68],j=[1,65],oe=[1,69],le=[1,71],ue=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],de=[1,78],be=[1,77],pe=[1,76],Ke=[69,70,71,72,73],Ze=[1,91],je=[6,9,45,50],J=[6,9,12,44,45,50,51,52],fe=[1,101],ke=[1,100],ge=[1,99],ce=[18,61],qe=[1,110],We=[1,109],He=[20,43,51,53,54,55],ve=[18,61,64,66],De={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:t(function(o,c,p,r,E,e,he){var i=e.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:this.$=e[i-1].concat(e[i]);break;case 4:this.$=e[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(e[i-4]),r.addEntity(e[i-2]),r.addRelationship(e[i-4],e[i],e[i-2],e[i-3]),this.$=[e[i-4],e[i-2]];break;case 8:r.addEntity(e[i-8]),r.addEntity(e[i-4]),r.addRelationship(e[i-8],e[i],e[i-4],e[i-5]),r.setClass([e[i-8]],e[i-6]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-8],e[i-4]];break;case 9:r.addEntity(e[i-6]),r.addEntity(e[i-2]),r.addRelationship(e[i-6],e[i],e[i-2],e[i-3]),r.setClass([e[i-6]],e[i-4]),this.$=[e[i-6],e[i-2]];break;case 10:r.addEntity(e[i-6]),r.addEntity(e[i-4]),r.addRelationship(e[i-6],e[i],e[i-4],e[i-5]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-6],e[i-4]];break;case 11:r.addEntity(e[i-3]),r.addAttributes(e[i-3],e[i-1]),this.$=[e[i-3]];break;case 12:r.addEntity(e[i-5]),r.addAttributes(e[i-5],e[i-1]),r.setClass([e[i-5]],e[i-3]),this.$=[e[i-5]];break;case 13:r.addEntity(e[i-2]),this.$=[e[i-2]];break;case 14:r.addEntity(e[i-4]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-4]];break;case 15:r.addEntity(e[i]),this.$=[e[i]];break;case 16:r.addEntity(e[i-2]),r.setClass([e[i-2]],e[i]),this.$=[e[i-2]];break;case 17:r.addEntity(e[i-6],e[i-4]),r.addAttributes(e[i-6],e[i-1]),this.$=[e[i-6]];break;case 18:r.addEntity(e[i-8],e[i-6]),r.addAttributes(e[i-8],e[i-1]),r.setClass([e[i-8]],e[i-3]),this.$=[e[i-8]];break;case 19:r.addEntity(e[i-5],e[i-3]),this.$=[e[i-5]];break;case 20:r.addEntity(e[i-7],e[i-5]),r.setClass([e[i-7]],e[i-2]),this.$=[e[i-7]];break;case 21:r.addEntity(e[i-3],e[i-1]);break;case 22:r.addEntity(e[i-5],e[i-3]),r.setClass([e[i-5]],e[i]);break;case 23:case 24:this.$=e[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=e[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(e[i].value),this.$=[];else this.$=e[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:e[i-2].id},e[i-1],{text:e[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-1],text:e[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-4],text:e[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=e[i];break;case 35:this.$=e[i-1]+" "+e[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=e[i-3],r.addClass(e[i-2],e[i-1]);break;case 41:case 42:case 63:case 72:this.$=[e[i]];break;case 43:case 44:this.$=e[i-2].concat([e[i]]);break;case 45:this.$=e[i-2],r.setClass(e[i-1],e[i]);break;case 46:this.$=e[i-3],r.addCssStyles(e[i-2],e[i-1]);break;case 47:this.$=[e[i]];break;case 48:e[i-2].push(e[i]),this.$=e[i-2];break;case 50:this.$=e[i-1]+e[i];break;case 58:case 84:case 85:this.$=e[i].replace(/"/g,"");break;case 64:e[i].push(e[i-1]),this.$=e[i];break;case 65:this.$={type:e[i-1],name:e[i]};break;case 66:this.$={type:e[i-2],name:e[i-1],keys:e[i]};break;case 67:this.$={type:e[i-2],name:e[i-1],comment:e[i]};break;case 68:this.$={type:e[i-3],name:e[i-2],keys:e[i-1],comment:e[i]};break;case 69:case 71:case 74:this.$=e[i];break;case 70:this.$=e[i-1]+e[i];break;case 73:e[i-2].push(e[i]),this.$=e[i-2];break;case 75:this.$=e[i].replace(/"/g,"");break;case 76:this.$={cardA:e[i],relType:e[i-1],cardB:e[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(l,b,{5:3}),{6:[1,4],7:5,8:6,9:n,10:8,21:h,23:y,25:T,27:_,28:13,29:14,30:15,31:16,32:17,34:C,37:g,38:m,39:V,40:W,41:X,43:O,46:G,47:te,51:M,53:Y,54:z,55:U},s(l,Ue,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Ce,70:Oe,71:Ne,72:xe,73:Ae}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,b,{5:44}),s(se,[2,58]),s(se,[2,59]),s(se,[2,60]),s(se,[2,61]),s(se,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:K,44:Z},{15:48,43:K,44:Z},{15:49,43:K,44:Z},{10:50,43:O,51:M,53:Y,54:z,55:U},{10:51,43:O,51:M,53:Y,54:z,55:U},{15:52,43:K,44:Z},{17:53,18:[1,54],56:55,57:56,61:ie},{10:58,43:O,51:M,53:Y,54:z,55:U},{68:59,74:[1,60],75:[1,61]},s(re,[2,77]),s(re,[2,78]),s(re,[2,79]),s(re,[2,80]),s(re,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:n,10:8,21:h,23:y,25:T,27:_,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:C,37:g,38:m,39:V,40:W,41:X,43:O,46:G,47:te,51:M,53:Y,54:z,55:U},{12:ae,42:64,44:ne,45:j,48:66,49:67,51:oe,52:le},s(ue,[2,41]),s(ue,[2,42]),{15:72,43:K,44:Z,45:j},{12:ae,42:73,44:ne,45:j,48:66,49:67,51:oe,52:le},{6:de,9:be,19:[1,75],35:74,50:pe},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:j,69:Ce,70:Oe,71:Ne,72:xe,73:Ae}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ie},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Ce,70:Oe,71:Ne,72:xe,73:Ae},s(Ke,[2,82]),s(Ke,[2,83]),s(d,[2,31]),s(d,Ue),{6:de,9:be,35:90,45:Ze,50:pe},{43:[1,92],44:[1,93]},s(je,[2,47],{49:94,12:ae,44:ne,51:oe,52:le}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:j}),{6:de,9:be,35:95,45:Ze,50:pe},s(d,[2,32]),{10:97,36:96,43:O,51:M,53:Y,54:z,55:U},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:fe,53:ke,76:ge},{15:102,43:K,44:Z},{10:103,43:O,51:M,53:Y,54:z,55:U},{17:104,18:[1,105],56:55,57:56,61:ie},s(d,[2,11]),{18:[2,64]},s(ce,[2,65],{59:106,60:107,63:108,65:qe,66:We}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ae,44:ne,48:113,49:67,51:oe,52:le},s(ue,[2,43]),s(ue,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:O,51:M,53:Y,54:z,55:U},s(He,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:j},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(ce,[2,66],{60:120,64:[1,121],66:We}),s(ce,[2,67]),s(ve,[2,72]),s(ce,[2,75]),s(ve,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ie},{15:124,43:K,44:Z},s(je,[2,48],{49:94,12:ae,44:ne,51:oe,52:le}),{6:de,9:be,35:125,50:pe},s(He,[2,35]),{13:126,43:fe,53:ke,76:ge},{15:127,43:K,44:Z},{13:128,43:fe,53:ke,76:ge},s(d,[2,12]),s(ce,[2,68]),{63:129,65:qe},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:j}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:j},s(d,[2,9]),s(ve,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ie},{13:135,43:fe,53:ke,76:ge},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:t(function(o,c){if(c.recoverable)this.trace(o);else{var p=Error(o);throw p.hash=c,p}},"parseError"),parse:t(function(o){var c=this,p=[0],r=[],E=[null],e=[],he=this.table,i="",_e=0,Qe=0,Xe=0,rt=2,Je=1,at=e.slice.call(arguments,1),S=Object.create(this.lexer),H={yy:{}};for(var we in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,we))H.yy[we]=this.yy[we];if(S.setInput(o,H.yy),H.yy.lexer=S,H.yy.parser=this,typeof S.yylloc>"u")S.yylloc={};var Ve=S.yylloc;e.push(Ve);var nt=S.options&&S.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ot(w){p.length=p.length-2*w,E.length=E.length-w,e.length=e.length-w}t(ot,"popStack");function $e(){var w=r.pop()||S.lex()||Je;if(typeof w!=="number"){if(w instanceof Array)r=w,w=r.pop();w=c.symbols_[w]||w}return w}t($e,"lex");var x,Me,Q,v,pt,Ge,ee={},me,B,et,Se;while(!0){if(Q=p[p.length-1],this.defaultActions[Q])v=this.defaultActions[Q];else{if(x===null||typeof x>"u")x=$e();v=he[Q]&&he[Q][x]}if(typeof v>"u"||!v.length||!v[0]){var Ye="";Se=[];for(me in he[Q])if(this.terminals_[me]&&me>rt)Se.push("'"+this.terminals_[me]+"'");if(S.showPosition)Ye="Parse error on line "+(_e+1)+`:
|
|
2
|
-
`+S.showPosition()+`
|
|
3
|
-
Expecting `+Se.join(", ")+", got '"+(this.terminals_[x]||x)+"'";else Ye="Parse error on line "+(_e+1)+": Unexpected "+(x==Je?"end of input":"'"+(this.terminals_[x]||x)+"'");this.parseError(Ye,{text:S.match,token:this.terminals_[x]||x,line:S.yylineno,loc:Ve,expected:Se})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+x);switch(v[0]){case 1:if(p.push(x),E.push(S.yytext),e.push(S.yylloc),p.push(v[1]),x=null,!Me){if(Qe=S.yyleng,i=S.yytext,_e=S.yylineno,Ve=S.yylloc,Xe>0)Xe--}else x=Me,Me=null;break;case 2:if(B=this.productions_[v[1]][1],ee.$=E[E.length-B],ee._$={first_line:e[e.length-(B||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(B||1)].first_column,last_column:e[e.length-1].last_column},nt)ee._$.range=[e[e.length-(B||1)].range[0],e[e.length-1].range[1]];if(Ge=this.performAction.apply(ee,[i,Qe,_e,H.yy,v[1],E,e].concat(at)),typeof Ge<"u")return Ge;if(B)p=p.slice(0,-1*B*2),E=E.slice(0,-1*B),e=e.slice(0,-1*B);p.push(this.productions_[v[1]][0]),E.push(ee.$),e.push(ee._$),et=he[p[p.length-2]][p[p.length-1]],p.push(et);break;case 3:return!0}}return!0},"parse")},it=function(){var q={EOF:1,parseError:t(function(c,p){if(this.yy.parser)this.yy.parser.parseError(c,p);else throw Error(c)},"parseError"),setInput:t(function(o,c){if(this.yy=c||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);if(c)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:t(function(o){var c=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1)this.yylineno-=p.length-1;var E=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===r.length?this.yylloc.first_column:0)+r[r.length-p.length].length-p[0].length:this.yylloc.first_column-c},this.options.ranges)this.yylloc.range=[E[0],E[0]+this.yyleng-c];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(o){this.unput(this.match.slice(o))},"less"),pastInput:t(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var o=this.pastInput(),c=Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
|
-
`+c+"^"},"showPosition"),test_match:t(function(o,c){var p,r,E;if(this.options.backtrack_lexer){if(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)E.yylloc.range=this.yylloc.range.slice(0)}if(r=o[0].match(/(?:\r\n?|\n).*/g),r)this.yylineno+=r.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],p=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(p)return p;else if(this._backtrack){for(var e in E)this[e]=E[e];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,c,p,r;if(!this._more)this.yytext="",this.match="";var E=this._currentRules();for(var e=0;e<E.length;e++)if(p=this._input.match(this.rules[E[e]]),p&&(!c||p[0].length>c[0].length)){if(c=p,r=e,this.options.backtrack_lexer)if(o=this.test_match(p,E[e]),o!==!1)return o;else if(this._backtrack){c=!1;continue}else return!1;else if(!this.options.flex)break}if(c){if(o=this.test_match(c,E[r]),o!==!1)return o;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var c=this.next();if(c)return c;else return this.lex()},"lex"),begin:t(function(c){this.conditionStack.push(c)},"begin"),popState:t(function(){var c=this.conditionStack.length-1;if(c>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(c){if(c=this.conditionStack.length-1-Math.abs(c||0),c>=0)return this.conditionStack[c];else return"INITIAL"},"topState"),pushState:t(function(c){this.begin(c)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(c,p,r,E){var e=E;switch(r){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return p.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return p.yytext[0];case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return q}();De.lexer=it;function ye(){this.yy={}}return t(ye,"Parser"),ye.prototype=De,De.Parser=ye,new ye}();Pe.parser=Pe;var lt=Pe,ct=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=R,this.getAccTitle=I,this.setAccDescription=L,this.getAccDescription=D,this.setDiagramTitle=P,this.getDiagramTitle=N,this.getConfig=t(()=>u().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{t(this,"ErDB")}addEntity(s,l=""){if(!this.entities.has(s))this.entities.set(s,{id:`entity-${s}-${this.entities.size}`,label:s,attributes:[],alias:l,shape:"erBox",look:u().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),a.info("Added new entity :",s);else if(!this.entities.get(s)?.alias&&l)this.entities.get(s).alias=l,a.info(`Add alias '${l}' to entity '${s}'`);return this.entities.get(s)}getEntity(s){return this.entities.get(s)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(s,l){let b=this.addEntity(s),n;for(n=l.length-1;n>=0;n--){if(!l[n].keys)l[n].keys=[];if(!l[n].comment)l[n].comment="";b.attributes.push(l[n]),a.debug("Added attribute ",l[n].name)}}addRelationship(s,l,b,n){let h;if(this.subGraphLookup.has(s))h=s;else{let _=this.addEntity(s);if(!_)return;h=_.id}let y;if(this.subGraphLookup.has(b))y=b;else{let _=this.addEntity(b);if(!_)return;y=_.id}let T={entityA:h,roleA:l,entityB:y,relSpec:n};this.relationships.push(T),a.debug("Added new relationship :",T)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(s){this.direction=s}getCompiledStyles(s){let l=[];for(let b of s){let n=this.classes.get(b);if(n?.styles)l=[...l,...n.styles??[]].map((h)=>h.trim());if(n?.textStyles)l=[...l,...n.textStyles??[]].map((h)=>h.trim())}return l}addCssStyles(s,l){for(let b of s){let n=this.entities.get(b),h=this.subGraphLookup.get(b);if(!l)continue;if(n)for(let y of l)n.cssStyles.push(y);if(h){if(!h.cssStyles)h.cssStyles=[];for(let y of l)h.cssStyles.push(y)}}}addClass(s,l){s.forEach((b)=>{let n=this.classes.get(b);if(n===void 0)n={id:b,styles:[],textStyles:[]},this.classes.set(b,n);if(l)l.forEach(function(h){if(/color/.exec(h)){let y=h.replace("fill","bgFill");n.textStyles.push(y)}n.styles.push(h)})})}addSubGraph(s,l,b){let n=s.text.trim(),h=b.text,T=t((m)=>{let V=new Set,W;return{nodeList:m.filter((O)=>{if(O?.stmt){if(O.stmt==="dir")W=O.value;return!1}if(typeof O!=="string")return!1;let G=O.trim();if(!G)return!1;if(V.has(G))return!1;return V.add(G),!0}),dir:W}},"uniq")(l.flat()),{nodeList:_,dir:C}=T;n=n??"subGraph"+this.subCount,h=h||"",h=this.sanitizeText(h),this.subCount=this.subCount+1;let g={id:n,nodes:_,title:h.trim(),classes:[],cssStyles:[],dir:C,labelType:this.sanitizeNodeLabelType(b?.type)};return a.info("Adding",g.id,g.nodes,g.dir),g.nodes=this.makeUniq(g,this.subGraphs).nodes,this.subGraphs.push(g),this.subGraphLookup.set(n,g),n}getSubGraphs(){return this.subGraphs}setClass(s,l){for(let b of s){let n=this.entities.get(b);if(n)for(let y of l)n.cssClasses+=" "+y;let h=this.subGraphLookup.get(b);if(h)for(let y of l)h.classes.push(y)}}subgraphNodeCache(s){let l=new Set;for(let b of s)for(let n of b.nodes)l.add(n);return l}makeUniq(s,l){let b=this.subgraphNodeCache(l),n=[];return s.nodes.forEach((h,y)=>{if(b.has(h))a.warn(`Entity '${h}' already belongs to another subgraph and will be ignored`);else n.push(s.nodes[y])}),{nodes:n}}sanitizeText(s){return k.sanitizeText(s,u())}sanitizeNodeLabelType(s){switch(s){case"markdown":case"string":case"text":return s;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,A()}getData(){let s=[],l=[],b=u(),n=this.getSubGraphs(),h=new Map,y=new Map;for(let g=n.length-1;g>=0;g--){let m=n[g];if(m.nodes.length>0)y.set(m.id,!0);for(let V of m.nodes)h.set(V,m.id)}for(let g=n.length-1;g>=0;g--){let m=n[g];s.push({id:m.id,label:m.title,labelStyle:"",labelType:m.labelType,parentId:h.get(m.id),padding:8,cssCompiledStyles:this.getCompiledStyles(m.classes),cssStyles:m.cssStyles,cssClasses:m.classes.join(" "),shape:"rect",dir:m.dir,isGroup:!0,look:b.look})}let T=new Set(n.map((g)=>g.id)),_=0;for(let g of this.entities.keys()){if(T.has(g))continue;let m=this.entities.get(g);if(m)m.cssCompiledStyles=this.getCompiledStyles(m.cssClasses.split(" ")),m.colorIndex=_++,s.push({...m,parentId:h.get(g),isGroup:!1})}let C=0;for(let g of this.relationships){let m={id:vt(g.entityA,g.entityB,{prefix:"id",counter:C++}),type:"normal",curve:"basis",start:g.entityA,end:g.entityB,label:g.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:g.relSpec.cardB.toLowerCase(),arrowTypeEnd:g.relSpec.cardA.toLowerCase(),pattern:g.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:b.look,labelType:"markdown"};l.push(m)}return{nodes:s,edges:l,other:{},config:b,direction:this.direction}}},st={};Hn(st,{draw:()=>ht});var ht=t(async function(s,l,b,n){a.info("REF0:"),a.info("Drawing er diagram (unified)",l);let{securityLevel:h,er:y,layout:T}=u(),_=n.db.getData(),C=Be(l,h);_.type=n.type,_.layoutAlgorithm=ze(T),_.config.flowchart.nodeSpacing=y?.nodeSpacing||140,_.config.flowchart.rankSpacing=y?.rankSpacing||80,_.direction=n.db.getDirection();let{config:g}=_,{look:m}=g;if(m==="neo")_.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"];else _.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];_.diagramId=l,await Fe(_,C);let V=C.selectAll('[id*="-background"]');if(Array.from(V).length>0)V.each(function(){let X=f(this),G=X.attr("id").replace("-background",""),te=C.select(`#${CSS.escape(G)}`);if(!te.empty()){let M=te.attr("transform");X.attr("transform",M)}});let W=8;F.insertTitle(C,"erDiagramTitleText",y?.titleTopMargin??25,n.db.getDiagramTitle()),Re(C,W,"erDiagram",y?.useMaxWidth??!0)},"draw"),tt=t((s,l)=>{let b=In,n=b(s,"r"),h=b(s,"g"),y=b(s,"b");return Le(n,h,y,l)},"fade"),ut=t((s)=>{let{theme:l,bkgColorArray:b,borderColorArray:n}=s;if(!Te(l,n))return"";let h=Ee(s.look),y=Ie(b),T="";for(let _=0;_<cn(n);_++){let C=n[_],g=y?`fill: ${b[_%b.length]};`:"";T+=`
|
|
7
|
-
|
|
8
|
-
[data-look="${h}"][data-color-id="color-${_}"].node path {
|
|
9
|
-
stroke: ${C};
|
|
10
|
-
${g}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
[data-look="${h}"][data-color-id="color-${_}"].node rect {
|
|
14
|
-
stroke: ${C};
|
|
15
|
-
${g}
|
|
16
|
-
}
|
|
17
|
-
`}return T},"genColor"),dt=t((s)=>{let{look:l,theme:b,erEdgeLabelBackground:n,strokeWidth:h}=s;return`
|
|
18
|
-
${ut(s)}
|
|
19
|
-
.entityBox {
|
|
20
|
-
fill: ${s.mainBkg};
|
|
21
|
-
stroke: ${s.nodeBorder};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.relationshipLabelBox {
|
|
25
|
-
fill: ${s.tertiaryColor};
|
|
26
|
-
opacity: 0.7;
|
|
27
|
-
background-color: ${s.tertiaryColor};
|
|
28
|
-
rect {
|
|
29
|
-
opacity: 0.5;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.labelBkg {
|
|
34
|
-
background-color: ${Si.has(b)&&n?n:tt(s.tertiaryColor,0.5)};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.edgeLabel {
|
|
38
|
-
background-color: ${Si.has(b)&&n?n:s.edgeLabelBackground};
|
|
39
|
-
}
|
|
40
|
-
.edgeLabel .label rect {
|
|
41
|
-
fill: ${Si.has(b)&&n?n:s.edgeLabelBackground};
|
|
42
|
-
}
|
|
43
|
-
.edgeLabel .label text {
|
|
44
|
-
fill: ${s.textColor};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.edgeLabel .label {
|
|
48
|
-
fill: ${s.nodeBorder};
|
|
49
|
-
font-size: 14px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.label {
|
|
53
|
-
font-family: ${s.fontFamily};
|
|
54
|
-
color: ${s.nodeTextColor||s.textColor};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.edge-pattern-dashed {
|
|
58
|
-
stroke-dasharray: 8,8;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.node rect,
|
|
62
|
-
.node circle,
|
|
63
|
-
.node ellipse,
|
|
64
|
-
.node polygon
|
|
65
|
-
{
|
|
66
|
-
fill: ${s.mainBkg};
|
|
67
|
-
stroke: ${s.nodeBorder};
|
|
68
|
-
stroke-width: ${l==="neo"?h:"1px"};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.relationshipLine {
|
|
72
|
-
stroke: ${s.lineColor};
|
|
73
|
-
stroke-width: ${l==="neo"?h:"1px"};
|
|
74
|
-
fill: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.marker {
|
|
78
|
-
fill: none !important;
|
|
79
|
-
stroke: ${s.lineColor} !important;
|
|
80
|
-
stroke-width: 1;
|
|
81
|
-
}
|
|
82
|
-
[data-look=neo].labelBkg {
|
|
83
|
-
background-color: ${tt(s.tertiaryColor,0.5)};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.cluster rect {
|
|
87
|
-
fill: ${s.clusterBkg??s.mainBkg};
|
|
88
|
-
stroke: ${s.clusterBorder??s.nodeBorder};
|
|
89
|
-
stroke-width: 1px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.cluster text {
|
|
93
|
-
fill: ${s.titleColor??s.textColor};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.cluster-label text {
|
|
97
|
-
fill: ${s.titleColor??s.textColor};
|
|
98
|
-
}
|
|
99
|
-
`},"getStyles"),bt=dt,wt={parser:lt,get db(){return new ct},renderer:st,styles:bt};export{wt as diagram};
|
package/web/chunk-823etvc3.js.br
DELETED
|
Binary file
|
package/web/chunk-823etvc3.js.gz
DELETED
|
Binary file
|