@bkm016/basalt 0.1.20 → 0.1.22
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/{chunk-tb3zsqe8.js → chunk-09tdbx7b.js} +1 -1
- package/{chunk-cks36jdh.js → chunk-0rsyawz5.js} +2 -2
- package/{chunk-nszq2z0w.js → chunk-16yz5ebn.js} +1 -1
- package/chunk-1kdd7xry.js +2 -0
- package/chunk-1td9hjn9.js +25 -0
- package/{chunk-s819vmwh.js → chunk-1xjkzzyh.js} +2 -2
- package/{chunk-gg3kfa12.js → chunk-38932kzp.js} +2 -2
- package/chunk-3qxq264t.js +2 -0
- package/{chunk-cwrf78vs.js → chunk-3s8rpc1w.js} +2 -2
- package/{chunk-5ja0vsam.js → chunk-5415fcz7.js} +3 -3
- package/{chunk-3phf8eg6.js → chunk-5kezbmgw.js} +2 -2
- package/{chunk-bkhsva5n.js → chunk-5m51j40e.js} +3 -3
- package/{chunk-2fts9k52.js → chunk-5mt8xxex.js} +2 -2
- package/{chunk-tp885r8h.js → chunk-5ph58x6w.js} +11 -11
- package/{chunk-eps1epfr.js → chunk-6jdqe7sz.js} +2 -2
- package/{chunk-mde2dd79.js → chunk-6ztgzx9s.js} +1 -1
- package/{chunk-3r38vbt5.js → chunk-7dzcdpdt.js} +1 -1
- package/{chunk-w9fdcchk.js → chunk-82djd5fk.js} +1 -1
- package/{chunk-x1y4s01x.js → chunk-86vhsd3y.js} +11 -11
- package/chunk-8rfv9mm1.js +15 -0
- package/{chunk-30bbdzma.js → chunk-8tvz5ht1.js} +12 -12
- package/{chunk-a2z1cy84.js → chunk-9pjmwz01.js} +1 -1
- package/{chunk-7kz9435k.js → chunk-9w1m9av8.js} +3 -3
- package/{chunk-w6nc3jn7.js → chunk-9wjd9bxm.js} +1 -1
- package/chunk-b49005n2.js +471 -0
- package/{chunk-w045zk55.js → chunk-bdz2561d.js} +1 -1
- package/{chunk-wj09qkyw.js → chunk-bkvhwgeb.js} +2 -2
- package/{chunk-1gaj43fx.js → chunk-bp9tfav3.js} +1 -1
- package/chunk-cc9htxzx.js +3557 -0
- package/chunk-chfzk1fx.js +3 -0
- package/{chunk-p0e82mee.js → chunk-cr0tqn6j.js} +2 -2
- package/{chunk-e3bgzeb3.js → chunk-cv5kdnsw.js} +2 -2
- package/{chunk-svx7mz0w.js → chunk-d79s1s4t.js} +4 -4
- package/{chunk-29g01nrz.js → chunk-ec6bzt7w.js} +5 -5
- package/{chunk-h2pp8mnh.js → chunk-eq54cmsa.js} +1 -1
- package/{chunk-1tbv5t08.js → chunk-g54nd4fd.js} +1 -1
- package/{chunk-v7da0aqn.js → chunk-g8p5c4vx.js} +5 -5
- package/chunk-g9bemxpt.js +3 -0
- package/{chunk-fgjw0r6g.js → chunk-hk5p2eee.js} +4 -4
- package/{chunk-0bgg0hdd.js → chunk-jerp4pj5.js} +1 -1
- package/{chunk-3sg32v3n.js → chunk-jsvqp20s.js} +1 -1
- package/{chunk-0g8rtf05.js → chunk-k9x1r69s.js} +8 -8
- package/{chunk-5e7yegea.js → chunk-kb526065.js} +1 -1
- package/{chunk-y83tnkr3.js → chunk-kpw1qa2n.js} +3 -3
- package/chunk-mbvy2t23.js +2 -0
- package/{chunk-sm9fpy18.js → chunk-mmnsdje8.js} +9 -9
- package/{chunk-d2f0hq8z.js → chunk-nffwakxq.js} +1 -1
- package/chunk-nfj8sj53.js +2 -0
- package/{chunk-ak9rkrf3.js → chunk-pzwaz2ew.js} +2 -2
- package/{chunk-yk29stq0.js → chunk-qtgc74er.js} +2 -2
- package/chunk-qtrd33pp.js +7 -0
- package/{chunk-6en06hkk.js → chunk-rbk6jxcr.js} +1 -1
- package/{chunk-y3vap4a1.js → chunk-rpbxbb92.js} +1 -1
- package/{chunk-agb771ak.js → chunk-rx812nrp.js} +2 -2
- package/{chunk-tpetsqzt.js → chunk-scy1p7x2.js} +3 -3
- package/{chunk-4dgqcp6q.js → chunk-sfgw0vmt.js} +1 -1
- package/chunk-tmefdwxy.js +2 -0
- package/chunk-tvg54x0x.js +2 -0
- package/{chunk-eyyxqb6y.js → chunk-v878x8zr.js} +2 -2
- package/chunk-v89f2k9b.js +2 -0
- package/{chunk-ewr51fwc.js → chunk-vhe16b65.js} +2 -2
- package/{chunk-z9p2ry9w.js → chunk-w3skxmvx.js} +2 -2
- package/{chunk-qxpx8dn6.js → chunk-w4kasz4j.js} +5 -5
- package/chunk-w4zkgn1c.js +4 -0
- package/chunk-we5emq6f.js +2 -0
- package/{chunk-11xxfc0x.js → chunk-x0dcabw6.js} +2 -2
- package/chunk-xtj7b70y.js +5 -0
- package/{chunk-a1vdrgsh.js → chunk-xwew53k7.js} +5 -5
- package/{chunk-np2xnt1g.js → chunk-xyhr89y5.js} +2 -2
- package/chunk-yce46csn.js +2 -0
- package/{chunk-s8m4svhf.js → chunk-yetcb1z9.js} +2 -2
- package/chunk-ypmpf75h.js +2 -0
- package/chunk-zz48zvk5.js +2 -0
- package/compiled.js +8 -8
- package/package.json +1 -1
- package/ui-test-worker.js +16 -16
- package/web/chunk-04c54f1s.js +1 -0
- package/web/chunk-04c54f1s.js.br +2 -0
- package/web/chunk-04c54f1s.js.gz +0 -0
- package/web/chunk-04m1cb8w.js +1 -0
- package/web/chunk-04m1cb8w.js.br +0 -0
- package/web/chunk-04m1cb8w.js.gz +0 -0
- package/web/{chunk-js940jjj.js → chunk-08z6mkgz.js} +4 -4
- package/web/chunk-08z6mkgz.js.br +0 -0
- package/web/chunk-08z6mkgz.js.gz +0 -0
- package/web/{chunk-x2hxq5yr.js → chunk-0g9m3rpw.js} +1 -1
- package/web/chunk-0g9m3rpw.js.br +0 -0
- package/web/chunk-0g9m3rpw.js.gz +0 -0
- package/web/{chunk-gk1bc3c3.js → chunk-0jccrdw3.js} +1 -1
- package/web/chunk-0jccrdw3.js.br +0 -0
- package/web/chunk-0jccrdw3.js.gz +0 -0
- package/web/{chunk-59h87pvn.js → chunk-0vweazdh.js} +1 -1
- package/web/chunk-0vweazdh.js.br +0 -0
- package/web/chunk-0vweazdh.js.gz +0 -0
- package/web/chunk-1vtf555r.js +1 -0
- package/web/chunk-1vtf555r.js.br +0 -0
- package/web/chunk-1vtf555r.js.gz +0 -0
- package/web/{chunk-znrsm604.js → chunk-29z0ft67.js} +17 -17
- package/web/chunk-29z0ft67.js.br +0 -0
- package/web/chunk-29z0ft67.js.gz +0 -0
- package/web/{chunk-tg3f9xmp.js → chunk-2q3m4btb.js} +1 -1
- package/web/chunk-2q3m4btb.js.br +0 -0
- package/web/chunk-2q3m4btb.js.gz +0 -0
- package/web/{chunk-qjg6dw46.js → chunk-2s6fhjjc.js} +94 -94
- package/web/chunk-2s6fhjjc.js.br +0 -0
- package/web/chunk-2s6fhjjc.js.gz +0 -0
- package/web/{chunk-fjrgg82c.js → chunk-2vdx4ykn.js} +4 -4
- package/web/chunk-2vdx4ykn.js.br +0 -0
- package/web/chunk-2vdx4ykn.js.gz +0 -0
- package/web/{chunk-zthww0ws.js → chunk-2zgqe8r7.js} +1 -1
- package/web/chunk-2zgqe8r7.js.br +0 -0
- package/web/chunk-2zgqe8r7.js.gz +0 -0
- package/web/{chunk-mbpv2w5h.js → chunk-3kqpmg83.js} +2 -2
- package/web/chunk-3kqpmg83.js.br +0 -0
- package/web/chunk-3kqpmg83.js.gz +0 -0
- package/web/chunk-3rmqxna0.js +1 -0
- package/web/chunk-3rmqxna0.js.br +0 -0
- package/web/chunk-3rmqxna0.js.gz +0 -0
- package/web/{chunk-jmnzcm1f.js → chunk-3xmv2349.js} +4 -4
- package/web/chunk-3xmv2349.js.br +0 -0
- package/web/chunk-3xmv2349.js.gz +0 -0
- package/web/{chunk-08w40agf.js → chunk-46cdys11.js} +7 -7
- package/web/chunk-46cdys11.js.br +0 -0
- package/web/chunk-46cdys11.js.gz +0 -0
- package/web/chunk-46mw23f0.js +8 -0
- package/web/chunk-46mw23f0.js.br +0 -0
- package/web/chunk-46mw23f0.js.gz +0 -0
- package/web/{chunk-mwfrxgbs.js → chunk-4r0dvjrr.js} +1 -1
- package/web/chunk-4r0dvjrr.js.br +0 -0
- package/web/chunk-4r0dvjrr.js.gz +0 -0
- package/web/{chunk-aw9bwd4w.js → chunk-4v6m84pg.js} +2 -2
- package/web/chunk-4v6m84pg.js.br +0 -0
- package/web/chunk-4v6m84pg.js.gz +0 -0
- package/web/{chunk-wvqcbp4a.js → chunk-4ye31s2w.js} +1 -1
- package/web/chunk-4ye31s2w.js.br +4 -0
- package/web/chunk-4ye31s2w.js.gz +0 -0
- package/web/{chunk-ezj5rjqr.js → chunk-5kavsn22.js} +1 -1
- package/web/chunk-5kavsn22.js.br +0 -0
- package/web/chunk-5kavsn22.js.gz +0 -0
- package/web/{chunk-vxadngbp.js → chunk-5q2h4tg8.js} +1 -1
- package/web/chunk-5q2h4tg8.js.br +4 -0
- package/web/chunk-5q2h4tg8.js.gz +0 -0
- package/web/{chunk-dmzvhbpn.js → chunk-5tbk6dx6.js} +3 -3
- package/web/chunk-5tbk6dx6.js.br +0 -0
- package/web/chunk-5tbk6dx6.js.gz +0 -0
- package/web/{chunk-9n1nsdqs.js → chunk-5yb0sm1r.js} +1 -1
- package/web/chunk-5yb0sm1r.js.br +0 -0
- package/web/chunk-5yb0sm1r.js.gz +0 -0
- package/web/chunk-5yz46tjw.js +2 -0
- package/web/chunk-5yz46tjw.js.br +0 -0
- package/web/chunk-5yz46tjw.js.gz +0 -0
- package/web/{chunk-3fd6mgf0.js → chunk-619a8t38.js} +1 -1
- package/web/chunk-619a8t38.js.br +0 -0
- package/web/chunk-619a8t38.js.gz +0 -0
- package/web/{chunk-cmhxtckb.js → chunk-6areryyn.js} +1 -1
- package/web/chunk-6areryyn.js.br +0 -0
- package/web/chunk-6areryyn.js.gz +0 -0
- package/web/{chunk-tgeeggkh.js → chunk-6ms78sx5.js} +1 -1
- package/web/chunk-6ms78sx5.js.br +0 -0
- package/web/chunk-6ms78sx5.js.gz +0 -0
- package/web/{chunk-bks2k04k.js → chunk-6ts9mtye.js} +1 -1
- package/web/chunk-6ts9mtye.js.br +0 -0
- package/web/chunk-6ts9mtye.js.gz +0 -0
- package/web/{chunk-kedjfh66.js → chunk-79whhay2.js} +1 -1
- package/web/chunk-79whhay2.js.br +0 -0
- package/web/chunk-79whhay2.js.gz +0 -0
- package/web/{chunk-ye7vge7s.js → chunk-7n1abr86.js} +1 -1
- package/web/chunk-7n1abr86.js.br +0 -0
- package/web/chunk-7n1abr86.js.gz +0 -0
- package/web/chunk-7qxfx983.js +1 -0
- package/web/chunk-7qxfx983.js.br +0 -0
- package/web/chunk-7qxfx983.js.gz +0 -0
- package/web/chunk-91k30q92.js +1 -0
- package/web/chunk-91k30q92.js.br +0 -0
- package/web/chunk-91k30q92.js.gz +0 -0
- package/web/{chunk-k6fwzn0z.js → chunk-91nyvkrb.js} +1 -1
- package/web/chunk-91nyvkrb.js.br +0 -0
- package/web/chunk-91nyvkrb.js.gz +0 -0
- package/web/{chunk-ahdca62g.js → chunk-9mbr6znb.js} +1 -1
- package/web/chunk-9mbr6znb.js.br +0 -0
- package/web/chunk-9mbr6znb.js.gz +0 -0
- package/web/{chunk-1yvcxpp2.js → chunk-9mvw6a5v.js} +4 -4
- package/web/chunk-9mvw6a5v.js.br +0 -0
- package/web/chunk-9mvw6a5v.js.gz +0 -0
- package/web/{chunk-kdegb6pd.js → chunk-a6hdn8tb.js} +5 -5
- package/web/chunk-a6hdn8tb.js.br +0 -0
- package/web/chunk-a6hdn8tb.js.gz +0 -0
- package/web/{chunk-37hmswdk.js → chunk-ar6m9fza.js} +5 -5
- package/web/chunk-ar6m9fza.js.br +0 -0
- package/web/chunk-ar6m9fza.js.gz +0 -0
- package/web/{chunk-q0srq8g5.js → chunk-ayqakyyq.js} +1 -1
- package/web/chunk-ayqakyyq.js.br +0 -0
- package/web/chunk-ayqakyyq.js.gz +0 -0
- package/web/{chunk-1ps9fj5n.js → chunk-cc6hn5xv.js} +2 -2
- package/web/chunk-cc6hn5xv.js.br +0 -0
- package/web/chunk-cc6hn5xv.js.gz +0 -0
- package/web/{chunk-d7f85w1y.js → chunk-ccymg1hp.js} +1 -1
- package/web/chunk-ccymg1hp.js.br +0 -0
- package/web/chunk-ccymg1hp.js.gz +0 -0
- package/web/{chunk-mhzqgzh0.js → chunk-cg9fe42b.js} +1 -1
- package/web/chunk-cg9fe42b.js.br +0 -0
- package/web/chunk-cg9fe42b.js.gz +0 -0
- package/web/chunk-cmcgmf94.js +1 -0
- package/web/chunk-cmcgmf94.js.br +0 -0
- package/web/chunk-cmcgmf94.js.gz +0 -0
- package/web/chunk-cnbbvd6n.js +1 -0
- package/web/chunk-cnbbvd6n.js.br +0 -0
- package/web/chunk-cnbbvd6n.js.gz +0 -0
- package/web/{chunk-wa8wr2y9.js → chunk-cxp2nbtc.js} +9 -9
- package/web/chunk-cxp2nbtc.js.br +0 -0
- package/web/chunk-cxp2nbtc.js.gz +0 -0
- package/web/{chunk-vh2prc6k.js → chunk-dj2b64aj.js} +1 -1
- package/web/chunk-dj2b64aj.js.br +0 -0
- package/web/chunk-dj2b64aj.js.gz +0 -0
- package/web/{chunk-gbcf0rdk.js → chunk-dsga6rp3.js} +1 -1
- package/web/chunk-dsga6rp3.js.br +0 -0
- package/web/chunk-dsga6rp3.js.gz +0 -0
- package/web/chunk-ek6q6a08.js +1 -0
- package/web/chunk-ek6q6a08.js.br +2 -0
- package/web/chunk-ek6q6a08.js.gz +0 -0
- package/web/{chunk-53cg6pxm.js → chunk-et1nm6h1.js} +2 -2
- package/web/chunk-et1nm6h1.js.br +0 -0
- package/web/chunk-et1nm6h1.js.gz +0 -0
- package/web/chunk-f1016wh6.js +1 -0
- package/web/chunk-f1016wh6.js.br +0 -0
- package/web/chunk-f1016wh6.js.gz +0 -0
- package/web/{chunk-6pbhqbv0.js → chunk-f42mwg61.js} +1 -1
- package/web/chunk-f42mwg61.js.br +0 -0
- package/web/chunk-f42mwg61.js.gz +0 -0
- package/web/{chunk-1ratg1jd.js → chunk-fk35d3bz.js} +1 -1
- package/web/chunk-fk35d3bz.js.br +0 -0
- package/web/chunk-fk35d3bz.js.gz +0 -0
- package/web/{chunk-e2z3kdhw.js → chunk-fpwztdhn.js} +3 -3
- package/web/chunk-fpwztdhn.js.br +0 -0
- package/web/chunk-fpwztdhn.js.gz +0 -0
- package/web/{chunk-1cwyy3gh.js → chunk-g30nqfka.js} +1 -1
- package/web/chunk-g30nqfka.js.br +0 -0
- package/web/chunk-g30nqfka.js.gz +0 -0
- package/web/chunk-gbwy4pfg.css +1 -0
- package/web/chunk-gbwy4pfg.css.br +0 -0
- package/web/chunk-gbwy4pfg.css.gz +0 -0
- package/web/{chunk-gj6bdv1y.js → chunk-gepgx19m.js} +9 -9
- package/web/chunk-gepgx19m.js.br +0 -0
- package/web/chunk-gepgx19m.js.gz +0 -0
- package/web/{chunk-v5p2fds9.js → chunk-grz69q28.js} +4 -4
- package/web/chunk-grz69q28.js.br +0 -0
- package/web/chunk-grz69q28.js.gz +0 -0
- package/web/{chunk-vhpzp7zd.js → chunk-gt62acsh.js} +1 -1
- package/web/chunk-gt62acsh.js.br +0 -0
- package/web/chunk-gt62acsh.js.gz +0 -0
- package/web/{chunk-81xbfpbq.js → chunk-h28xrvmg.js} +1 -1
- package/web/chunk-h28xrvmg.js.br +0 -0
- package/web/chunk-h28xrvmg.js.gz +0 -0
- package/web/{chunk-gpjytpyw.js → chunk-h80ypke7.js} +2 -2
- package/web/chunk-h80ypke7.js.br +0 -0
- package/web/chunk-h80ypke7.js.gz +0 -0
- package/web/chunk-k1cd6e24.js +1 -0
- package/web/chunk-k1cd6e24.js.br +0 -0
- package/web/chunk-k1cd6e24.js.gz +0 -0
- package/web/chunk-k9248573.js +1 -0
- package/web/chunk-k9248573.js.br +0 -0
- package/web/chunk-k9248573.js.gz +0 -0
- package/web/{chunk-6n1ha6ta.js → chunk-kqgn9dsa.js} +1 -1
- package/web/chunk-kqgn9dsa.js.br +0 -0
- package/web/chunk-kqgn9dsa.js.gz +0 -0
- package/web/chunk-kqngpw5m.js +1 -0
- package/web/chunk-kqngpw5m.js.br +0 -0
- package/web/chunk-kqngpw5m.js.gz +0 -0
- package/web/{chunk-dmhezjv3.js → chunk-kzj105r1.js} +4 -4
- package/web/chunk-kzj105r1.js.br +0 -0
- package/web/chunk-kzj105r1.js.gz +0 -0
- package/web/chunk-m14v2en1.js +1 -0
- package/web/chunk-m14v2en1.js.br +0 -0
- package/web/chunk-m14v2en1.js.gz +0 -0
- package/web/{chunk-1ghnag5v.js → chunk-m34et8g4.js} +1 -1
- package/web/chunk-m34et8g4.js.br +0 -0
- package/web/chunk-m34et8g4.js.gz +0 -0
- package/web/{chunk-esckazz2.js → chunk-md1f6gmk.js} +1 -1
- package/web/chunk-md1f6gmk.js.br +0 -0
- package/web/chunk-md1f6gmk.js.gz +0 -0
- package/web/{chunk-vpbnyz43.js → chunk-n05xf20n.js} +1 -1
- package/web/chunk-n05xf20n.js.br +0 -0
- package/web/chunk-n05xf20n.js.gz +0 -0
- package/web/{chunk-mh3nkkpx.js → chunk-n2k1gd6n.js} +6 -6
- package/web/chunk-n2k1gd6n.js.br +0 -0
- package/web/chunk-n2k1gd6n.js.gz +0 -0
- package/web/{chunk-apr33amc.js → chunk-nm8yza3v.js} +1 -1
- package/web/chunk-nm8yza3v.js.br +0 -0
- package/web/chunk-nm8yza3v.js.gz +0 -0
- package/web/chunk-pbg9rdwv.js +1 -0
- package/web/chunk-pbg9rdwv.js.br +2 -0
- package/web/chunk-pbg9rdwv.js.gz +0 -0
- package/web/chunk-qj9nd038.js +1 -0
- package/web/chunk-qj9nd038.js.br +0 -0
- package/web/chunk-qj9nd038.js.gz +0 -0
- package/web/chunk-qjaex9c0.js +1 -0
- package/web/chunk-qjaex9c0.js.br +2 -0
- package/web/chunk-qjaex9c0.js.gz +0 -0
- package/web/{chunk-72st75n7.js → chunk-qq79vsm8.js} +3 -3
- package/web/chunk-qq79vsm8.js.br +0 -0
- package/web/chunk-qq79vsm8.js.gz +0 -0
- package/web/{chunk-6a3wt5c5.js → chunk-qs5wnwd6.js} +3 -3
- package/web/chunk-qs5wnwd6.js.br +0 -0
- package/web/chunk-qs5wnwd6.js.gz +0 -0
- package/web/{chunk-wbxz2bjb.js → chunk-r381n550.js} +1 -1
- package/web/chunk-r381n550.js.br +0 -0
- package/web/chunk-r381n550.js.gz +0 -0
- package/web/{chunk-2rnnvxa5.js → chunk-r48vazdm.js} +3 -3
- package/web/chunk-r48vazdm.js.br +0 -0
- package/web/chunk-r48vazdm.js.gz +0 -0
- package/web/{chunk-hqt1f3fm.js → chunk-r55seq42.js} +1 -1
- package/web/chunk-r55seq42.js.br +0 -0
- package/web/chunk-r55seq42.js.gz +0 -0
- package/web/{chunk-82q4e8ff.js → chunk-r79zekav.js} +1 -1
- package/web/chunk-r79zekav.js.br +0 -0
- package/web/chunk-r79zekav.js.gz +0 -0
- package/web/{chunk-nb58m79v.js → chunk-r8qyvcks.js} +1 -1
- package/web/chunk-r8qyvcks.js.br +0 -0
- package/web/chunk-r8qyvcks.js.gz +0 -0
- package/web/chunk-r9dt0730.js +1 -0
- package/web/chunk-r9dt0730.js.br +0 -0
- package/web/chunk-r9dt0730.js.gz +0 -0
- package/web/chunk-rpjzwknn.js +1 -0
- package/web/chunk-rpjzwknn.js.br +0 -0
- package/web/chunk-rpjzwknn.js.gz +0 -0
- package/web/{chunk-186rp10x.js → chunk-sk3065js.js} +1 -1
- package/web/chunk-sk3065js.js.br +0 -0
- package/web/chunk-sk3065js.js.gz +0 -0
- package/web/{chunk-hwxj58j5.js → chunk-smywa1zw.js} +1 -1
- package/web/chunk-smywa1zw.js.br +0 -0
- package/web/chunk-smywa1zw.js.gz +0 -0
- package/web/{chunk-a8qe7kvz.js → chunk-trssyq9a.js} +1 -1
- package/web/chunk-trssyq9a.js.br +0 -0
- package/web/chunk-trssyq9a.js.gz +0 -0
- package/web/{chunk-0h0whn75.js → chunk-v329f8df.js} +1 -1
- package/web/chunk-v329f8df.js.br +0 -0
- package/web/chunk-v329f8df.js.gz +0 -0
- package/web/{chunk-zbzgd8kn.js → chunk-vb2feptd.js} +1 -1
- package/web/chunk-vb2feptd.js.br +0 -0
- package/web/chunk-vb2feptd.js.gz +0 -0
- package/web/chunk-vff33vj3.js +1 -0
- package/web/chunk-vff33vj3.js.br +2 -0
- package/web/chunk-vff33vj3.js.gz +0 -0
- package/web/{chunk-k4pknkvp.js → chunk-w9adyaze.js} +1 -1
- package/web/chunk-w9adyaze.js.br +0 -0
- package/web/chunk-w9adyaze.js.gz +0 -0
- package/web/{chunk-v6snw1sw.js → chunk-wgc8z5jv.js} +1 -1
- package/web/chunk-wgc8z5jv.js.br +0 -0
- package/web/chunk-wgc8z5jv.js.gz +0 -0
- package/web/{chunk-recfg8af.js → chunk-wvdk3w03.js} +1 -1
- package/web/chunk-wvdk3w03.js.br +0 -0
- package/web/chunk-wvdk3w03.js.gz +0 -0
- package/web/{chunk-bg0qgabv.js → chunk-wxmaw4ht.js} +1 -1
- package/web/chunk-wxmaw4ht.js.br +0 -0
- package/web/chunk-wxmaw4ht.js.gz +0 -0
- package/web/{chunk-7h59ac2b.js → chunk-x19jdqnt.js} +1 -1
- package/web/chunk-x19jdqnt.js.br +0 -0
- package/web/chunk-x19jdqnt.js.gz +0 -0
- package/web/{chunk-mj8dzc8q.js → chunk-x4153gx3.js} +5 -5
- package/web/chunk-x4153gx3.js.br +0 -0
- package/web/chunk-x4153gx3.js.gz +0 -0
- package/web/{chunk-qx5ab39c.js → chunk-x7wmb5d3.js} +2 -2
- package/web/chunk-x7wmb5d3.js.br +0 -0
- package/web/chunk-x7wmb5d3.js.gz +0 -0
- package/web/{chunk-v2bkkhb8.js → chunk-xp2zpmpp.js} +41 -41
- package/web/chunk-xp2zpmpp.js.br +0 -0
- package/web/chunk-xp2zpmpp.js.gz +0 -0
- package/web/chunk-y09v3sz7.js +1 -0
- package/web/chunk-y09v3sz7.js.br +0 -0
- package/web/chunk-y09v3sz7.js.gz +0 -0
- package/web/{chunk-h1c0m3g4.js → chunk-ywmsxe5z.js} +3 -3
- package/web/chunk-ywmsxe5z.js.br +0 -0
- package/web/chunk-ywmsxe5z.js.gz +0 -0
- package/web/{chunk-0tcmnvab.js → chunk-yzyxa823.js} +1 -1
- package/web/chunk-yzyxa823.js.br +0 -0
- package/web/chunk-yzyxa823.js.gz +0 -0
- package/web/{chunk-c28crzwk.js → chunk-zwx48gb8.js} +1 -1
- package/web/chunk-zwx48gb8.js.br +0 -0
- package/web/chunk-zwx48gb8.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-0wwd4q6h.js +0 -5
- package/chunk-204c01mz.js +0 -25
- package/chunk-4wc2gbhe.js +0 -2
- package/chunk-51pfvmhh.js +0 -470
- package/chunk-5tsfqsmf.js +0 -2
- package/chunk-6hatfwsq.js +0 -2
- package/chunk-78ky455y.js +0 -4
- package/chunk-8mqaq042.js +0 -2
- package/chunk-as2mwf79.js +0 -2
- package/chunk-b516bp7n.js +0 -3
- package/chunk-c5pg2875.js +0 -3552
- package/chunk-g9hsrrj5.js +0 -2
- package/chunk-gpceyezp.js +0 -2
- package/chunk-h4n0gg11.js +0 -2
- package/chunk-jzya0e5n.js +0 -7
- package/chunk-ncb0tyaw.js +0 -2
- package/chunk-tpeg9fkd.js +0 -2
- package/chunk-v0mw006s.js +0 -15
- package/chunk-ys2fds2x.js +0 -3
- package/chunk-yshdvnsp.js +0 -2
- package/web/chunk-08w40agf.js.br +0 -0
- package/web/chunk-08w40agf.js.gz +0 -0
- package/web/chunk-0bfypmyv.js +0 -1
- package/web/chunk-0bfypmyv.js.br +0 -2
- package/web/chunk-0bfypmyv.js.gz +0 -0
- package/web/chunk-0h0whn75.js.br +0 -0
- package/web/chunk-0h0whn75.js.gz +0 -0
- package/web/chunk-0pzs9k06.js +0 -1
- package/web/chunk-0pzs9k06.js.br +0 -0
- package/web/chunk-0pzs9k06.js.gz +0 -0
- package/web/chunk-0tcmnvab.js.br +0 -0
- package/web/chunk-0tcmnvab.js.gz +0 -0
- package/web/chunk-186rp10x.js.br +0 -0
- package/web/chunk-186rp10x.js.gz +0 -0
- package/web/chunk-1cwyy3gh.js.br +0 -0
- package/web/chunk-1cwyy3gh.js.gz +0 -0
- package/web/chunk-1ecsxh85.js +0 -1
- package/web/chunk-1ecsxh85.js.br +0 -0
- package/web/chunk-1ecsxh85.js.gz +0 -0
- package/web/chunk-1ghnag5v.js.br +0 -0
- package/web/chunk-1ghnag5v.js.gz +0 -0
- package/web/chunk-1ps9fj5n.js.br +0 -0
- package/web/chunk-1ps9fj5n.js.gz +0 -0
- package/web/chunk-1ratg1jd.js.br +0 -0
- package/web/chunk-1ratg1jd.js.gz +0 -0
- package/web/chunk-1yvcxpp2.js.br +0 -0
- package/web/chunk-1yvcxpp2.js.gz +0 -0
- package/web/chunk-2r3w0pt0.js +0 -8
- package/web/chunk-2r3w0pt0.js.br +0 -0
- package/web/chunk-2r3w0pt0.js.gz +0 -0
- package/web/chunk-2rnnvxa5.js.br +0 -0
- package/web/chunk-2rnnvxa5.js.gz +0 -0
- package/web/chunk-2stffcvc.js +0 -1
- package/web/chunk-2stffcvc.js.br +0 -0
- package/web/chunk-2stffcvc.js.gz +0 -0
- package/web/chunk-2svqgkqw.js +0 -1
- package/web/chunk-2svqgkqw.js.br +0 -0
- package/web/chunk-2svqgkqw.js.gz +0 -0
- package/web/chunk-37hmswdk.js.br +0 -0
- package/web/chunk-37hmswdk.js.gz +0 -0
- package/web/chunk-3fd6mgf0.js.br +0 -0
- package/web/chunk-3fd6mgf0.js.gz +0 -0
- package/web/chunk-53cg6pxm.js.br +0 -0
- package/web/chunk-53cg6pxm.js.gz +0 -0
- package/web/chunk-59h87pvn.js.br +0 -0
- package/web/chunk-59h87pvn.js.gz +0 -0
- package/web/chunk-6a3wt5c5.js.br +0 -0
- package/web/chunk-6a3wt5c5.js.gz +0 -0
- package/web/chunk-6n1ha6ta.js.br +0 -0
- package/web/chunk-6n1ha6ta.js.gz +0 -0
- package/web/chunk-6pbhqbv0.js.br +0 -0
- package/web/chunk-6pbhqbv0.js.gz +0 -0
- package/web/chunk-72st75n7.js.br +0 -0
- package/web/chunk-72st75n7.js.gz +0 -0
- package/web/chunk-7h59ac2b.js.br +0 -0
- package/web/chunk-7h59ac2b.js.gz +0 -0
- package/web/chunk-81xbfpbq.js.br +0 -0
- package/web/chunk-81xbfpbq.js.gz +0 -0
- package/web/chunk-82q4e8ff.js.br +0 -0
- package/web/chunk-82q4e8ff.js.gz +0 -0
- package/web/chunk-89e8629e.js +0 -1
- package/web/chunk-89e8629e.js.br +0 -0
- package/web/chunk-89e8629e.js.gz +0 -0
- package/web/chunk-9n1nsdqs.js.br +0 -0
- package/web/chunk-9n1nsdqs.js.gz +0 -0
- package/web/chunk-a8qe7kvz.js.br +0 -0
- package/web/chunk-a8qe7kvz.js.gz +0 -0
- package/web/chunk-ahdca62g.js.br +0 -0
- package/web/chunk-ahdca62g.js.gz +0 -0
- package/web/chunk-apr33amc.js.br +0 -0
- package/web/chunk-apr33amc.js.gz +0 -0
- package/web/chunk-aw9bwd4w.js.br +0 -0
- package/web/chunk-aw9bwd4w.js.gz +0 -0
- package/web/chunk-bg0qgabv.js.br +0 -0
- package/web/chunk-bg0qgabv.js.gz +0 -0
- package/web/chunk-bks2k04k.js.br +0 -0
- package/web/chunk-bks2k04k.js.gz +0 -0
- package/web/chunk-c28crzwk.js.br +0 -0
- package/web/chunk-c28crzwk.js.gz +0 -0
- package/web/chunk-cmhxtckb.js.br +0 -0
- package/web/chunk-cmhxtckb.js.gz +0 -0
- package/web/chunk-d7f85w1y.js.br +0 -0
- package/web/chunk-d7f85w1y.js.gz +0 -0
- package/web/chunk-dmhezjv3.js.br +0 -0
- package/web/chunk-dmhezjv3.js.gz +0 -0
- package/web/chunk-dmzvhbpn.js.br +0 -0
- package/web/chunk-dmzvhbpn.js.gz +0 -0
- package/web/chunk-e2z3kdhw.js.br +0 -0
- package/web/chunk-e2z3kdhw.js.gz +0 -0
- package/web/chunk-eqmghkwh.js +0 -1
- package/web/chunk-eqmghkwh.js.br +0 -0
- package/web/chunk-eqmghkwh.js.gz +0 -0
- package/web/chunk-esckazz2.js.br +0 -0
- package/web/chunk-esckazz2.js.gz +0 -0
- package/web/chunk-ezj5rjqr.js.br +0 -0
- package/web/chunk-ezj5rjqr.js.gz +0 -0
- package/web/chunk-fjrgg82c.js.br +0 -0
- package/web/chunk-fjrgg82c.js.gz +0 -0
- package/web/chunk-gbcf0rdk.js.br +0 -0
- package/web/chunk-gbcf0rdk.js.gz +0 -0
- package/web/chunk-gj6bdv1y.js.br +0 -0
- package/web/chunk-gj6bdv1y.js.gz +0 -0
- package/web/chunk-gk1bc3c3.js.br +0 -0
- package/web/chunk-gk1bc3c3.js.gz +0 -0
- package/web/chunk-gpjytpyw.js.br +0 -0
- package/web/chunk-gpjytpyw.js.gz +0 -0
- package/web/chunk-h1c0m3g4.js.br +0 -0
- package/web/chunk-h1c0m3g4.js.gz +0 -0
- package/web/chunk-h1qv0cpd.css +0 -1
- package/web/chunk-h1qv0cpd.css.br +0 -0
- package/web/chunk-h1qv0cpd.css.gz +0 -0
- package/web/chunk-hq7e5xgd.js +0 -1
- package/web/chunk-hq7e5xgd.js.br +0 -0
- package/web/chunk-hq7e5xgd.js.gz +0 -0
- package/web/chunk-hqt1f3fm.js.br +0 -0
- package/web/chunk-hqt1f3fm.js.gz +0 -0
- package/web/chunk-hwxj58j5.js.br +0 -0
- package/web/chunk-hwxj58j5.js.gz +0 -0
- package/web/chunk-hxzb25a8.js +0 -1
- package/web/chunk-hxzb25a8.js.br +0 -0
- package/web/chunk-hxzb25a8.js.gz +0 -0
- package/web/chunk-jmnzcm1f.js.br +0 -0
- package/web/chunk-jmnzcm1f.js.gz +0 -0
- package/web/chunk-js940jjj.js.br +0 -0
- package/web/chunk-js940jjj.js.gz +0 -0
- package/web/chunk-jy9vkfbf.js +0 -1
- package/web/chunk-jy9vkfbf.js.br +0 -0
- package/web/chunk-jy9vkfbf.js.gz +0 -0
- package/web/chunk-k4pknkvp.js.br +0 -0
- package/web/chunk-k4pknkvp.js.gz +0 -0
- package/web/chunk-k6fwzn0z.js.br +0 -0
- package/web/chunk-k6fwzn0z.js.gz +0 -0
- package/web/chunk-kdegb6pd.js.br +0 -0
- package/web/chunk-kdegb6pd.js.gz +0 -0
- package/web/chunk-kedjfh66.js.br +0 -0
- package/web/chunk-kedjfh66.js.gz +0 -0
- package/web/chunk-mbpv2w5h.js.br +0 -0
- package/web/chunk-mbpv2w5h.js.gz +0 -0
- package/web/chunk-mh3nkkpx.js.br +0 -0
- package/web/chunk-mh3nkkpx.js.gz +0 -0
- package/web/chunk-mhzqgzh0.js.br +0 -0
- package/web/chunk-mhzqgzh0.js.gz +0 -0
- package/web/chunk-mj8dzc8q.js.br +0 -0
- package/web/chunk-mj8dzc8q.js.gz +0 -0
- package/web/chunk-mwfrxgbs.js.br +0 -0
- package/web/chunk-mwfrxgbs.js.gz +0 -0
- package/web/chunk-nb58m79v.js.br +0 -0
- package/web/chunk-nb58m79v.js.gz +0 -0
- package/web/chunk-nsna2v2r.js +0 -1
- package/web/chunk-nsna2v2r.js.br +0 -0
- package/web/chunk-nsna2v2r.js.gz +0 -0
- package/web/chunk-nxdp58nf.js +0 -1
- package/web/chunk-nxdp58nf.js.br +0 -0
- package/web/chunk-nxdp58nf.js.gz +0 -0
- package/web/chunk-nytgs01h.js +0 -1
- package/web/chunk-nytgs01h.js.br +0 -0
- package/web/chunk-nytgs01h.js.gz +0 -0
- package/web/chunk-pkxn54jm.js +0 -1
- package/web/chunk-pkxn54jm.js.br +0 -0
- package/web/chunk-pkxn54jm.js.gz +0 -0
- package/web/chunk-q0srq8g5.js.br +0 -0
- package/web/chunk-q0srq8g5.js.gz +0 -0
- package/web/chunk-qjg6dw46.js.br +0 -0
- package/web/chunk-qjg6dw46.js.gz +0 -0
- package/web/chunk-qjjxevxe.js +0 -1
- package/web/chunk-qjjxevxe.js.br +0 -0
- package/web/chunk-qjjxevxe.js.gz +0 -0
- package/web/chunk-qx5ab39c.js.br +0 -0
- package/web/chunk-qx5ab39c.js.gz +0 -0
- package/web/chunk-recfg8af.js.br +0 -0
- package/web/chunk-recfg8af.js.gz +0 -0
- package/web/chunk-tg3f9xmp.js.br +0 -0
- package/web/chunk-tg3f9xmp.js.gz +0 -0
- package/web/chunk-tgeeggkh.js.br +0 -0
- package/web/chunk-tgeeggkh.js.gz +0 -0
- package/web/chunk-v2bkkhb8.js.br +0 -0
- package/web/chunk-v2bkkhb8.js.gz +0 -0
- package/web/chunk-v5p2fds9.js.br +0 -0
- package/web/chunk-v5p2fds9.js.gz +0 -0
- package/web/chunk-v6snw1sw.js.br +0 -0
- package/web/chunk-v6snw1sw.js.gz +0 -0
- package/web/chunk-veadbga2.js +0 -1
- package/web/chunk-veadbga2.js.br +0 -2
- package/web/chunk-veadbga2.js.gz +0 -0
- package/web/chunk-vh2prc6k.js.br +0 -0
- package/web/chunk-vh2prc6k.js.gz +0 -0
- package/web/chunk-vhpzp7zd.js.br +0 -0
- package/web/chunk-vhpzp7zd.js.gz +0 -0
- package/web/chunk-vpbnyz43.js.br +0 -0
- package/web/chunk-vpbnyz43.js.gz +0 -0
- package/web/chunk-vxadngbp.js.br +0 -3
- package/web/chunk-vxadngbp.js.gz +0 -0
- package/web/chunk-wa8wr2y9.js.br +0 -0
- package/web/chunk-wa8wr2y9.js.gz +0 -0
- package/web/chunk-wbxz2bjb.js.br +0 -0
- package/web/chunk-wbxz2bjb.js.gz +0 -0
- package/web/chunk-wgzatts8.js +0 -1
- package/web/chunk-wgzatts8.js.br +0 -0
- package/web/chunk-wgzatts8.js.gz +0 -0
- package/web/chunk-whczyxqw.js +0 -1
- package/web/chunk-whczyxqw.js.br +0 -0
- package/web/chunk-whczyxqw.js.gz +0 -0
- package/web/chunk-wmzz2crn.js +0 -1
- package/web/chunk-wmzz2crn.js.br +0 -0
- package/web/chunk-wmzz2crn.js.gz +0 -0
- package/web/chunk-wvqcbp4a.js.br +0 -0
- package/web/chunk-wvqcbp4a.js.gz +0 -0
- package/web/chunk-x2hxq5yr.js.br +0 -0
- package/web/chunk-x2hxq5yr.js.gz +0 -0
- package/web/chunk-x8bnp6vr.js +0 -1
- package/web/chunk-x8bnp6vr.js.br +0 -0
- package/web/chunk-x8bnp6vr.js.gz +0 -0
- package/web/chunk-xvmzsftt.js +0 -2
- package/web/chunk-xvmzsftt.js.br +0 -0
- package/web/chunk-xvmzsftt.js.gz +0 -0
- package/web/chunk-ye7vge7s.js.br +0 -0
- package/web/chunk-ye7vge7s.js.gz +0 -0
- package/web/chunk-zbzgd8kn.js.br +0 -0
- package/web/chunk-zbzgd8kn.js.gz +0 -0
- package/web/chunk-zhwqscat.js +0 -1
- package/web/chunk-zhwqscat.js.br +0 -0
- package/web/chunk-zhwqscat.js.gz +0 -0
- package/web/chunk-znrsm604.js.br +0 -0
- package/web/chunk-znrsm604.js.gz +0 -0
- package/web/chunk-zthww0ws.js.br +0 -0
- package/web/chunk-zthww0ws.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{t,G,A,R,I,L,D,P,
|
|
1
|
+
import{t,G,A,R,I,L,D,P,N,u,h}from"./chunk-xp2zpmpp.js";import{lr,gi,el,Bt}from"./chunk-vb2feptd.js";import{hn}from"./chunk-6ts9mtye.js";import{Ct}from"./chunk-w9adyaze.js";var nt=function(){var e=t(function(y,n,s,l){for(s=s||{},l=y.length;l--;s[y[l]]=n);return s},"o"),r=[6,8,10,11,12,14,16,17,18],a=[1,9],g=[1,10],i=[1,11],d=[1,12],m=[1,13],o=[1,14],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(n,s,l,f,p,c,w){var _=c.length-1;switch(p){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:f.setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),f.setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),f.setAccDescription(this.$);break;case 12:f.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 13:f.addTask(c[_-1],c[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:g,14:i,16:d,17:m,18:o},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:15,11:a,12:g,14:i,16:d,17:m,18:o},e(r,[2,5]),e(r,[2,6]),e(r,[2,8]),{13:[1,16]},{15:[1,17]},e(r,[2,11]),e(r,[2,12]),{19:[1,18]},e(r,[2,4]),e(r,[2,9]),e(r,[2,10]),e(r,[2,13])],defaultActions:{},parseError:t(function(n,s){if(s.recoverable)this.trace(n);else{var l=Error(n);throw l.hash=s,l}},"parseError"),parse:t(function(n){var s=this,l=[0],f=[],p=[null],c=[],w=this.table,_="",B=0,ot=0,ct=0,_t=2,ht=1,vt=c.slice.call(arguments,1),v=Object.create(this.lexer),z={yy:{}};for(var K in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,K))z.yy[K]=this.yy[K];if(v.setInput(n,z.yy),z.yy.lexer=v,z.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var Q=v.yylloc;c.push(Q);var wt=v.options&&v.options.ranges;if(typeof z.yy.parseError==="function")this.parseError=z.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Tt(M){l.length=l.length-2*M,p.length=p.length-M,c.length=c.length-M}t(Tt,"popStack");function ut(){var M=f.pop()||v.lex()||ht;if(typeof M!=="number"){if(M instanceof Array)f=M,M=f.pop();M=s.symbols_[M]||M}return M}t(ut,"lex");var T,tt,W,S,Ht,et,O={},U,F,yt,Z;while(!0){if(W=l[l.length-1],this.defaultActions[W])S=this.defaultActions[W];else{if(T===null||typeof T>"u")T=ut();S=w[W]&&w[W][T]}if(typeof S>"u"||!S.length||!S[0]){var rt="";Z=[];for(U in w[W])if(this.terminals_[U]&&U>_t)Z.push("'"+this.terminals_[U]+"'");if(v.showPosition)rt="Parse error on line "+(B+1)+`:
|
|
2
2
|
`+v.showPosition()+`
|
|
3
|
-
Expecting `+Z.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else rt="Parse error on line "+(
|
|
3
|
+
Expecting `+Z.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else rt="Parse error on line "+(B+1)+": Unexpected "+(T==ht?"end of input":"'"+(this.terminals_[T]||T)+"'");this.parseError(rt,{text:v.match,token:this.terminals_[T]||T,line:v.yylineno,loc:Q,expected:Z})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+W+", token: "+T);switch(S[0]){case 1:if(l.push(T),p.push(v.yytext),c.push(v.yylloc),l.push(S[1]),T=null,!tt){if(ot=v.yyleng,_=v.yytext,B=v.yylineno,Q=v.yylloc,ct>0)ct--}else T=tt,tt=null;break;case 2:if(F=this.productions_[S[1]][1],O.$=p[p.length-F],O._$={first_line:c[c.length-(F||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(F||1)].first_column,last_column:c[c.length-1].last_column},wt)O._$.range=[c[c.length-(F||1)].range[0],c[c.length-1].range[1]];if(et=this.performAction.apply(O,[_,ot,B,z.yy,S[1],p,c].concat(vt)),typeof et<"u")return et;if(F)l=l.slice(0,-1*F*2),p=p.slice(0,-1*F),c=c.slice(0,-1*F);l.push(this.productions_[S[1]][0]),p.push(O.$),c.push(O._$),yt=w[l[l.length-2]][l[l.length-1]],l.push(yt);break;case 3:return!0}}return!0},"parse")},k=function(){var y={EOF:1,parseError:t(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw Error(s)},"parseError"),setInput:t(function(n,s){if(this.yy=s||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);if(s)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),n},"input"),unput:t(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var f=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),l.length-1)this.yylineno-=l.length-1;var p=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:l?(l.length===f.length?this.yylloc.first_column:0)+f[f.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges)this.yylloc.range=[p[0],p[0]+this.yyleng-s];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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(n){this.unput(this.match.slice(n))},"less"),pastInput:t(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var n=this.match;if(n.length<20)n+=this._input.substr(0,20-n.length);return(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var n=this.pastInput(),s=Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
5
|
`+s+"^"},"showPosition"),test_match:t(function(n,s){var l,f,p;if(this.options.backtrack_lexer){if(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)p.yylloc.range=this.yylloc.range.slice(0)}if(f=n[0].match(/(?:\r\n?|\n).*/g),f)this.yylineno+=f.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(l)return l;else if(this._backtrack){for(var c in p)this[c]=p[c];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var n,s,l,f;if(!this._more)this.yytext="",this.match="";var p=this._currentRules();for(var c=0;c<p.length;c++)if(l=this._input.match(this.rules[p[c]]),l&&(!s||l[0].length>s[0].length)){if(s=l,f=c,this.options.backtrack_lexer)if(n=this.test_match(l,p[c]),n!==!1)return n;else if(this._backtrack){s=!1;continue}else return!1;else if(!this.options.flex)break}if(s){if(n=this.test_match(s,p[f]),n!==!1)return n;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 s=this.next();if(s)return s;else return this.lex()},"lex"),begin:t(function(s){this.conditionStack.push(s)},"begin"),popState:t(function(){var s=this.conditionStack.length-1;if(s>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(s){if(s=this.conditionStack.length-1-Math.abs(s||0),s>=0)return this.conditionStack[s];else return"INITIAL"},"topState"),pushState:t(function(s){this.begin(s)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(s,l,f,p){var c=p;switch(f){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return y}();x.lexer=k;function b(){this.yy={}}return t(b,"Parser"),b.prototype=x,x.Parser=b,new b}();nt.parser=nt;var St=nt,Y="",at=[],q=[],X=[],$t=t(function(){at.length=0,q.length=0,Y="",X.length=0,A()},"clear"),Mt=t(function(e){Y=e,at.push(e)},"addSection"),Et=t(function(){return at},"getSections"),Pt=t(function(){let e=dt(),r=100,a=0;while(!e&&a<r)e=dt(),a++;return q.push(...X),q},"getTasks"),It=t(function(){let e=[];return q.forEach((a)=>{if(a.people)e.push(...a.people)}),[...new Set(e)].sort()},"updateActors"),At=t(function(e,r){let a=r.substr(1).split(":"),g=0,i=[];if(a.length===1)g=Number(a[0]),i=[];else g=Number(a[0]),i=a[1].split(",");let d=i.map((o)=>o.trim()),m={section:Y,type:Y,people:d,task:e,score:g};X.push(m)},"addTask"),Ft=t(function(e){let r={section:Y,type:Y,description:e,task:e,classes:[]};q.push(r)},"addTaskOrg"),dt=t(function(){let e=t(function(a){return X[a].processed},"compileTask"),r=!0;for(let[a,g]of X.entries())e(a),r=r&&g.processed;return r},"compileTasks"),Vt=t(function(){return It()},"getActors"),ft={getConfig:t(()=>u().journey,"getConfig"),clear:$t,setDiagramTitle:P,getDiagramTitle:
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var s=this.next();if(s)return s;else return this.lex()},"lex"),begin:t(function(s){this.conditionStack.push(s)},"begin"),popState:t(function(){var s=this.conditionStack.length-1;if(s>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(s){if(s=this.conditionStack.length-1-Math.abs(s||0),s>=0)return this.conditionStack[s];else return"INITIAL"},"topState"),pushState:t(function(s){this.begin(s)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(s,l,f,p){var c=p;switch(f){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return y}();x.lexer=k;function b(){this.yy={}}return t(b,"Parser"),b.prototype=x,x.Parser=b,new b}();nt.parser=nt;var St=nt,Y="",at=[],q=[],X=[],$t=t(function(){at.length=0,q.length=0,Y="",X.length=0,A()},"clear"),Mt=t(function(e){Y=e,at.push(e)},"addSection"),Et=t(function(){return at},"getSections"),Pt=t(function(){let e=dt(),r=100,a=0;while(!e&&a<r)e=dt(),a++;return q.push(...X),q},"getTasks"),It=t(function(){let e=[];return q.forEach((a)=>{if(a.people)e.push(...a.people)}),[...new Set(e)].sort()},"updateActors"),At=t(function(e,r){let a=r.substr(1).split(":"),g=0,i=[];if(a.length===1)g=Number(a[0]),i=[];else g=Number(a[0]),i=a[1].split(",");let d=i.map((o)=>o.trim()),m={section:Y,type:Y,people:d,task:e,score:g};X.push(m)},"addTask"),Ft=t(function(e){let r={section:Y,type:Y,description:e,task:e,classes:[]};q.push(r)},"addTaskOrg"),dt=t(function(){let e=t(function(a){return X[a].processed},"compileTask"),r=!0;for(let[a,g]of X.entries())e(a),r=r&&g.processed;return r},"compileTasks"),Vt=t(function(){return It()},"getActors"),ft={getConfig:t(()=>u().journey,"getConfig"),clear:$t,setDiagramTitle:P,getDiagramTitle:N,setAccTitle:R,getAccTitle:I,setAccDescription:L,getAccDescription:D,addSection:Mt,getSections:Et,getTasks:Pt,addTask:At,addTaskOrg:Ft,getActors:Vt},Rt=t((e)=>`.label {
|
|
7
7
|
font-family: ${e.fontFamily};
|
|
8
8
|
color: ${e.textColor};
|
|
9
9
|
}
|
|
@@ -136,4 +136,4 @@ Expecting `+Z.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else rt="Parse er
|
|
|
136
136
|
${e.actor5?`fill: ${e.actor5}`:""};
|
|
137
137
|
}
|
|
138
138
|
${Ct()}
|
|
139
|
-
`,"getStyles"),Lt=Rt,lt=t(function(e,r){return lr(e,r)},"drawRect"),jt=t(function(e,r){let g=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function d(x){let k=hn().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}t(d,"smile");function m(x){let k=hn().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}t(m,"sad");function o(x){x.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(o,"ambivalent"),r.score>3)d(i);else if(r.score<3)m(i);else o(i);return g},"drawFace"),mt=t(function(e,r){let a=e.append("circle");if(a.attr("cx",r.cx),a.attr("cy",r.cy),a.attr("class","actor-"+r.pos),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("r",r.r),a.class!==void 0)a.attr("class",a.class);if(r.title!==void 0)a.append("title").text(r.title);return a},"drawCircle"),xt=t(function(e,r){return el(e,r)},"drawText"),Nt=t(function(e,r){function a(i,d,m,o,x){return i+","+d+" "+(i+m)+","+d+" "+(i+m)+","+(d+o-x)+" "+(i+m-x*1.2)+","+(d+o)+" "+i+","+(d+o)}t(a,"genPoints");let g=e.append("polygon");g.attr("points",a(r.x,r.y,50,20,7)),g.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,xt(e,r)},"drawLabel"),zt=t(function(e,r,a){let g=e.append("g"),i=Bt();i.x=r.x,i.y=r.y,i.fill=r.fill,i.width=a.width*r.taskCount+a.diagramMarginX*(r.taskCount-1),i.height=a.height,i.class="journey-section section-type-"+r.num,i.rx=3,i.ry=3,lt(g,i),kt(a)(r.text,g,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+r.num},a,r.colour)},"drawSection"),st=-1,Wt=t(function(e,r,a,g){let i=r.x+a.width/2,d=e.append("g");st++;let m=450;d.append("line").attr("id",g+"-task"+st).attr("x1",i).attr("y1",r.y).attr("x2",i).attr("y2",m).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),jt(d,{cx:i,cy:300+(5-r.score)*30,score:r.score});let o=Bt();o.x=r.x,o.y=r.y,o.fill=r.fill,o.width=a.width,o.height=a.height,o.class="task task-type-"+r.num,o.rx=3,o.ry=3,lt(d,o);let x=r.x+14;r.people.forEach((k)=>{let b=r.actors[k].color,y={cx:x,cy:r.y,r:7,fill:b,stroke:"#000",title:k,pos:r.actors[k].position};mt(d,y),x+=10}),kt(a)(r.task,d,o.x,o.y,o.width,o.height,{class:"task"},a,r.colour)},"drawTask"),Ot=t(function(e,r){gi(e,r)},"drawBackgroundRect"),kt=function(){function e(i,d,m,o,x,k,b,y){let n=d.append("text").attr("x",m+x/2).attr("y",o+k/2+5).style("font-color",y).style("text-anchor","middle").text(i);g(n,b)}t(e,"byText");function r(i,d,m,o,x,k,b,y,n){let{taskFontSize:s,taskFontFamily:l}=y,f=i.split(/<br\s*\/?>/gi);for(let p=0;p<f.length;p++){let c=p*s-s*(f.length-1)/2,w=d.append("text").attr("x",m+x/2).attr("y",o).attr("fill",n).style("text-anchor","middle").style("font-size",s).style("font-family",l);w.append("tspan").attr("x",m+x/2).attr("dy",c).text(f[p]),w.attr("y",o+k/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(w,b)}}t(r,"byTspan");function a(i,d,m,o,x,k,b,y){let n=d.append("switch"),l=n.append("foreignObject").attr("x",m).attr("y",o).attr("width",x).attr("height",k).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),r(i,n,m,o,x,k,b,y),g(l,b)}t(a,"byFo");function g(i,d){for(let m in d)if(m in d)i.attr(m,d[m])}return t(g,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?e:r}}(),Yt=t(function(e,r){st=-1,e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),H={drawRect:lt,drawCircle:mt,drawSection:zt,drawText:xt,drawLabel:Nt,drawTask:Wt,drawBackgroundRect:Ot,initGraphics:Yt},qt=t(function(e){Object.keys(e).forEach(function(a){
|
|
139
|
+
`,"getStyles"),Lt=Rt,lt=t(function(e,r){return lr(e,r)},"drawRect"),jt=t(function(e,r){let g=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function d(x){let k=hn().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}t(d,"smile");function m(x){let k=hn().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}t(m,"sad");function o(x){x.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(o,"ambivalent"),r.score>3)d(i);else if(r.score<3)m(i);else o(i);return g},"drawFace"),mt=t(function(e,r){let a=e.append("circle");if(a.attr("cx",r.cx),a.attr("cy",r.cy),a.attr("class","actor-"+r.pos),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("r",r.r),a.class!==void 0)a.attr("class",a.class);if(r.title!==void 0)a.append("title").text(r.title);return a},"drawCircle"),xt=t(function(e,r){return el(e,r)},"drawText"),Nt=t(function(e,r){function a(i,d,m,o,x){return i+","+d+" "+(i+m)+","+d+" "+(i+m)+","+(d+o-x)+" "+(i+m-x*1.2)+","+(d+o)+" "+i+","+(d+o)}t(a,"genPoints");let g=e.append("polygon");g.attr("points",a(r.x,r.y,50,20,7)),g.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,xt(e,r)},"drawLabel"),zt=t(function(e,r,a){let g=e.append("g"),i=Bt();i.x=r.x,i.y=r.y,i.fill=r.fill,i.width=a.width*r.taskCount+a.diagramMarginX*(r.taskCount-1),i.height=a.height,i.class="journey-section section-type-"+r.num,i.rx=3,i.ry=3,lt(g,i),kt(a)(r.text,g,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+r.num},a,r.colour)},"drawSection"),st=-1,Wt=t(function(e,r,a,g){let i=r.x+a.width/2,d=e.append("g");st++;let m=450;d.append("line").attr("id",g+"-task"+st).attr("x1",i).attr("y1",r.y).attr("x2",i).attr("y2",m).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),jt(d,{cx:i,cy:300+(5-r.score)*30,score:r.score});let o=Bt();o.x=r.x,o.y=r.y,o.fill=r.fill,o.width=a.width,o.height=a.height,o.class="task task-type-"+r.num,o.rx=3,o.ry=3,lt(d,o);let x=r.x+14;r.people.forEach((k)=>{let b=r.actors[k].color,y={cx:x,cy:r.y,r:7,fill:b,stroke:"#000",title:k,pos:r.actors[k].position};mt(d,y),x+=10}),kt(a)(r.task,d,o.x,o.y,o.width,o.height,{class:"task"},a,r.colour)},"drawTask"),Ot=t(function(e,r){gi(e,r)},"drawBackgroundRect"),kt=function(){function e(i,d,m,o,x,k,b,y){let n=d.append("text").attr("x",m+x/2).attr("y",o+k/2+5).style("font-color",y).style("text-anchor","middle").text(i);g(n,b)}t(e,"byText");function r(i,d,m,o,x,k,b,y,n){let{taskFontSize:s,taskFontFamily:l}=y,f=i.split(/<br\s*\/?>/gi);for(let p=0;p<f.length;p++){let c=p*s-s*(f.length-1)/2,w=d.append("text").attr("x",m+x/2).attr("y",o).attr("fill",n).style("text-anchor","middle").style("font-size",s).style("font-family",l);w.append("tspan").attr("x",m+x/2).attr("dy",c).text(f[p]),w.attr("y",o+k/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(w,b)}}t(r,"byTspan");function a(i,d,m,o,x,k,b,y){let n=d.append("switch"),l=n.append("foreignObject").attr("x",m).attr("y",o).attr("width",x).attr("height",k).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),r(i,n,m,o,x,k,b,y),g(l,b)}t(a,"byFo");function g(i,d){for(let m in d)if(m in d)i.attr(m,d[m])}return t(g,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?e:r}}(),Yt=t(function(e,r){st=-1,e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),H={drawRect:lt,drawCircle:mt,drawSection:zt,drawText:xt,drawLabel:Nt,drawTask:Wt,drawBackgroundRect:Ot,initGraphics:Yt},qt=t(function(e){Object.keys(e).forEach(function(a){C[a]=e[a]})},"setConf"),V={},J=0;function bt(e){let r=u().journey,a=r.maxLabelWidth;J=0;let g=60;Object.keys(V).forEach((i)=>{let d=V[i].color,m={cx:20,cy:g,r:7,fill:d,stroke:"#000",pos:V[i].position};H.drawCircle(e,m);let o=e.append("text").attr("visibility","hidden").text(i),x=o.node().getBoundingClientRect().width;o.remove();let k=[];if(x<=a)k=[i];else{let b=i.split(" "),y="";if(o=e.append("text").attr("visibility","hidden"),b.forEach((n)=>{let s=y?`${y} ${n}`:n;if(o.text(s),o.node().getBoundingClientRect().width>a){if(y)k.push(y);if(y=n,o.text(n),o.node().getBoundingClientRect().width>a){let f="";for(let p of n)if(f+=p,o.text(f+"-"),o.node().getBoundingClientRect().width>a)k.push(f.slice(0,-1)+"-"),f=p;y=f}}else y=s}),y)k.push(y);o.remove()}k.forEach((b,y)=>{let n={x:40,y:g+7+y*20,fill:"#666",text:b,textMargin:r.boxTextMargin??5},l=H.drawText(e,n).node().getBoundingClientRect().width;if(l>J&&l>r.leftMargin-l)J=l}),g+=Math.max(20,k.length*20)})}t(bt,"drawActorLegend");var C=u().journey,j=0,Xt=t(function(e,r,a,g){let i=u(),d=i.journey.titleColor,m=i.journey.titleFontSize,o=i.journey.titleFontFamily,x=i.securityLevel,k;if(x==="sandbox")k=h("#i"+r);let b=x==="sandbox"?h(k.nodes()[0].contentDocument.body):h("body");E.init();let y=b.select("#"+r);H.initGraphics(y,r);let n=g.db.getTasks(),s=g.db.getDiagramTitle(),l=g.db.getActors();for(let B in V)delete V[B];let f=0;l.forEach((B)=>{V[B]={color:C.actorColours[f%C.actorColours.length],position:f},f++}),bt(y),j=C.leftMargin+J,E.insert(0,0,j,Object.keys(V).length*50),Gt(y,n,0,r);let p=E.getBounds();if(s)y.append("text").text(s).attr("x",j).attr("font-size",m).attr("font-weight","bold").attr("y",25).attr("fill",d).attr("font-family",o);let c=p.stopy-p.starty+2*C.diagramMarginY,w=j+p.stopx+2*C.diagramMarginX;G(y,c,w,C.useMaxWidth),y.append("line").attr("x1",j).attr("y1",C.height*4).attr("x2",w-j-4).attr("y2",C.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+r+"-arrowhead)");let _=s?70:0;y.attr("viewBox",`${p.startx} -25 ${w} ${c+_}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",c+_+25)},"draw"),E={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:t(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:t(function(e,r,a,g){if(e[r]===void 0)e[r]=a;else e[r]=g(a,e[r])},"updateVal"),updateBounds:t(function(e,r,a,g){let i=u().journey,d=this,m=0;function o(x){return t(function(b){m++;let y=d.sequenceItems.length-m+1;if(d.updateVal(b,"starty",r-y*i.boxMargin,Math.min),d.updateVal(b,"stopy",g+y*i.boxMargin,Math.max),d.updateVal(E.data,"startx",e-y*i.boxMargin,Math.min),d.updateVal(E.data,"stopx",a+y*i.boxMargin,Math.max),x!=="activation")d.updateVal(b,"startx",e-y*i.boxMargin,Math.min),d.updateVal(b,"stopx",a+y*i.boxMargin,Math.max),d.updateVal(E.data,"starty",r-y*i.boxMargin,Math.min),d.updateVal(E.data,"stopy",g+y*i.boxMargin,Math.max)},"updateItemBounds")}t(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:t(function(e,r,a,g){let i=Math.min(e,a),d=Math.max(e,a),m=Math.min(r,g),o=Math.max(r,g);this.updateVal(E.data,"startx",i,Math.min),this.updateVal(E.data,"starty",m,Math.min),this.updateVal(E.data,"stopx",d,Math.max),this.updateVal(E.data,"stopy",o,Math.max),this.updateBounds(i,m,d,o)},"insert"),bumpVerticalPos:t(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:t(function(){return this.verticalPos},"getVerticalPos"),getBounds:t(function(){return this.data},"getBounds")},{sectionFills:it,sectionColours:pt}=C,Gt=t(function(e,r,a,g){let i=u().journey,d="",m=i.height*2+i.diagramMarginY,o=a+m,x=0,k="#CCC",b="black",y=0;for(let[n,s]of r.entries()){if(d!==s.section){k=it[x%it.length],y=x%it.length,b=pt[x%pt.length];let f=0,p=s.section;for(let w=n;w<r.length;w++)if(r[w].section==p)f=f+1;else break;let c={x:n*i.taskMargin+n*i.width+j,y:50,text:s.section,fill:k,num:y,colour:b,taskCount:f};H.drawSection(e,c,i),d=s.section,x++}let l=s.people.reduce((f,p)=>{if(V[p])f[p]=V[p];return f},{});s.x=n*i.taskMargin+n*i.width+j,s.y=o,s.width=i.diagramMarginX,s.height=i.diagramMarginY,s.colour=b,s.fill=k,s.num=y,s.actors=l,H.drawTask(e,s,i,g),E.insert(s.x,s.y,s.x+s.width+i.taskMargin,450)}},"drawTasks"),gt={setConf:qt,draw:Xt},ee={parser:St,db:ft,renderer:gt,styles:Lt,init:t((e)=>{gt.setConf(e.journey),ft.clear()},"init")};export{ee as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,a}from"./chunk-
|
|
1
|
+
import{t,a}from"./chunk-xp2zpmpp.js";import{he,Tn,En}from"./chunk-cg9fe42b.js";import{re}from"./chunk-4r0dvjrr.js";import{ka,gn}from"./chunk-et1nm6h1.js";var i=ka().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 gn(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:En,styles:Tn};export{x as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{re}from"./chunk-
|
|
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,N=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-N).attr("x2",(e)=>p.get(e.id).x-N*Math.cos(Math.PI/6)).attr("y2",(e)=>p.get(e.id).y+N*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-N*Math.cos(Math.PI/6)).attr("y1",(e)=>p.get(e.id).y+N*Math.sin(Math.PI/6)).attr("x2",(e)=>p.get(e.id).x+N*Math.cos(Math.PI/6)).attr("y2",(e)=>p.get(e.id).y+N*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+N*Math.cos(Math.PI/6)).attr("y1",(e)=>p.get(e.id).y+N*Math.sin(Math.PI/6)).attr("x2",(e)=>p.get(e.id).x).attr("y2",(e)=>p.get(e.id).y-N).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-N).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-N*Math.cos(Math.PI/6)).attr("cy",(e)=>p.get(e.id).y+N*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+N*Math.cos(Math.PI/6)).attr("cy",(e)=>p.get(e.id).y+N*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=`
|
|
1
|
+
import{re}from"./chunk-4r0dvjrr.js";import{t,a,He,S,G,A,R,I,L,D,P,N,u,Q,X}from"./chunk-xp2zpmpp.js";import{fe}from"./chunk-et1nm6h1.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 fe("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
3
|
M ${s} ${l-15}
|
|
4
4
|
L ${s+60-20} ${l-15}
|
|
5
5
|
L ${s+60-20} ${l-15-8}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Nl}from"./chunk-2s6fhjjc.js";export{Nl as QuestionDock};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{C,o,ee,r,e,y}from"./chunk-
|
|
2
|
-
`);let c=Q(n),l=c.append("g"),m=Da(d?.db.getErrorMessage?.()??""),f=m.length>0?500+m.length*56:512;c.attr("viewBox",`0 0 2412 ${f}`),G(c,100,f,!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}`),m.forEach((u,g)=>{l.append("text").attr("class","error-text").attr("x",1440).attr("y",510+g*56).attr("font-size","42px").style("text-anchor","middle").text(u)})},"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"),za=t(async()=>{let{diagram:i}=await (C("
|
|
1
|
+
import{C,o,ee,r,e,y}from"./chunk-2s6fhjjc.js";import{t,a,xi,at,Is,Ds,Nr,$a,bo,il,Ce,Xn,B,Ns,cr,on,xo,ol,sl,ll,Ms,Ps,S,cl,_i,Ye,G,_o,dl,wi,ko,h,Q,Ut,jt,Br,mr,Za,Ti,Go,gl,Yo,Vs,X,F,yl,On,Zo,Ys}from"./chunk-xp2zpmpp.js";import{yi}from"./chunk-yzyxa823.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(Go(i)){if(typeof i.splice!=="function"&&typeof i!=="string"&&!Za(i)&&!mr(i)&&!Ti(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,m,f){return{value:i,root:n,parent:s,type:d,props:c,children:l,line:pe,column:J,length:m,return:"",siblings:f}}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 He(i){return pe=J=1,Ne=I(te=i),z=0,[]}function Ue(i){return te="",i}function he(i){return me(ve(z-1,De(i===91?i+2:i===40?i+1:i)))}function We(i){while(T=U())if(T<33)O();else break;return re(i)>2||re(T)>3?"":" "}function je(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 Ue(ye("",null,null,null,[""],i=He(i),0,[0],i))}function ye(i,n,s,d,c,l,m,f,u){var g=0,w=0,x=m,v=0,k=0,L=0,D=1,E=1,M=1,A=0,b=0,P="",q=c,N=l,R=d,p=P;while(E)switch(L=b,b=O()){case 40:if(L!=108&&V(p,x-1)==58)A++,p+="(";else p+=he(b);break;case 41:A--,p+=")";break;case 34:case 39:case 91:p+=he(b);break;case 9:case 10:case 13:case 32:if(A>0){p+=j(b);break}p+=We(L);break;case 92:p+=je(se()-1,7);continue;case 47:switch(U()){case 42:case 47:if(Z(vt(qe(O(),se()),n,s,u),u),(re(L||1)==5||re(U()||1)==5)&&I(p)&&H(p,-1,void 0)!==" ")p+=" ";break;default:p+="/"}break;case 123*D:f[g++]=I(p)*M;case 125*D:case 59:case 0:if(A>0&&b){p+=j(b);break}switch(b){case 0:case 125:E=0;case 59+w:if(M==-1)p=ne(p,/\f/g,"");if(k>0&&(I(p)-x||D===0))Z(k>32?Qe(p+";",d,s,x-1,u):Qe(ne(p," ","")+";",d,s,x-2,u),u);break;case 59:p+=";";default:if(Z(R=Ke(p,n,s,g,w,c,f,P,q=[],N=[],x,l),l),b===123)if(w===0)ye(p,n,R,R,q,l,x,f,N);else{switch(v){case 99:if(V(p,3)===110)break;case 108:if(V(p,2)===97)break;default:w=0;case 100:case 109:case 115:}if(w)ye(i,R,R,d&&Z(Ke(i,R,R,0,0,c,f,P,c,q=[],x,N),N),c,N,x,f,d?q:N);else ye(p,R,R,R,[""],N,0,f,N)}}g=w=k=0,D=M=1,P=p="",x=m;break;case 58:x=1+I(p),k=L;default:if(D<1){if(b==123)--D;else if(b==125&&D++==0&&Ge()==125)continue}switch(p+=j(b),b*D){case 38:M=w>0?1:(p+="\f",-1);break;case 44:if(A>0)break;f[g++]=(I(p)-1)*M,M=1;break;case 64:if(U()===45)p+=he(O());v=U(),w=x=I(P=p+=Xe(se())),b++;break;case 45:if(L===45&&I(p)==2)D=0}}return l}function Ke(i,n,s,d,c,l,m,f,u,g,w,x){var v=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,v+1,v=Pe(E=m[D])),P=i;A<L;++A)if(P=me(E>0?k[A]+" "+b:ne(b,/&\f/g,k[A])))u[M++]=P;return ge(i,n,s,c===0?ce:f,u,g,w,x)}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 m="";for(var f=0;f<n;f++)m+=i[f](s,d,c,l)||"";return m}}var or="c4",ht=t((i)=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(i),"detector"),yt=t(async()=>{let{diagram:i}=await (C("x19jdqnt"),import("./chunk-x19jdqnt.js"));return{id:or,diagram:i}},"loader"),wt={id:or,detector:ht,loader:yt},xt=wt,nr="flowchart-v2",bt=t((i)=>/^\s*(graph|flowchart)/.test(i),"detector"),St=t(async()=>{let{diagram:i}=await (C("04m1cb8w"),import("./chunk-04m1cb8w.js"));return{id:nr,diagram:i}},"loader"),Et={id:nr,detector:bt,loader:St},Tt=Et,sr="agentflow",Ct=t((i)=>/^\s*agentflow-beta\b/.test(i),"detector"),kt=t(async()=>{let{diagram:i}=await (C("gepgx19m"),import("./chunk-gepgx19m.js"));return{id:sr,diagram:i}},"loader"),Dt={id:sr,detector:Ct,loader:kt},Mt=Dt,dr="swimlane",_t=t((i)=>/^\s*swimlane-beta\b/.test(i),"detector"),Lt=t(async()=>{let{diagram:i}=await (C("46mw23f0"),import("./chunk-46mw23f0.js"));return{id:dr,diagram:i}},"loader"),At={id:dr,detector:_t,loader:Lt},It=At,lr="er",Rt=t((i)=>/^\s*erDiagram/.test(i),"detector"),$t=t(async()=>{let{diagram:i}=await (C("ywmsxe5z"),import("./chunk-ywmsxe5z.js"));return{id:lr,diagram:i}},"loader"),zt={id:lr,detector:Rt,loader:$t},Ft=zt,fr="gitGraph",Ot=t((i)=>/^\s*gitGraph/.test(i),"detector"),Bt=t(async()=>{let{diagram:i}=await (C("cxp2nbtc"),import("./chunk-cxp2nbtc.js"));return{id:fr,diagram:i}},"loader"),Pt={id:fr,detector:Ot,loader:Bt},Nt=Pt,ur="gantt",Vt=t((i)=>/^\s*gantt/.test(i),"detector"),Gt=t(async()=>{let{diagram:i}=await (C("5tbk6dx6"),import("./chunk-5tbk6dx6.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("0jccrdw3"),import("./chunk-0jccrdw3.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("fpwztdhn"),import("./chunk-fpwztdhn.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("9mvw6a5v"),import("./chunk-9mvw6a5v.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("ar6m9fza"),import("./chunk-ar6m9fza.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("n2k1gd6n"),import("./chunk-n2k1gd6n.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("a6hdn8tb"),import("./chunk-a6hdn8tb.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("kzj105r1"),import("./chunk-kzj105r1.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("r48vazdm"),import("./chunk-r48vazdm.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("2vdx4ykn"),import("./chunk-2vdx4ykn.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"),m=Da(d?.db.getErrorMessage?.()??""),f=m.length>0?500+m.length*56:512;c.attr("viewBox",`0 0 2412 ${f}`),G(c,100,f,!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}`),m.forEach((u,g)=>{l.append("text").attr("class","error-text").attr("x",1440).attr("y",510+g*56).attr("font-size","42px").style("text-anchor","middle").text(u)})},"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"),za=t(async()=>{let{diagram:i}=await (C("04m1cb8w"),import("./chunk-04m1cb8w.js"));return{id:Tr,diagram:i}},"loader"),Fa={id:Tr,detector:Ra,loader:za},Oa=Fa,Cr="timeline",Ba=t((i)=>/^\s*timeline/.test(i),"detector"),Pa=t(async()=>{let{diagram:i}=await (C("zwx48gb8"),import("./chunk-zwx48gb8.js"));return{id:Cr,diagram:i}},"loader"),Na={id:Cr,detector:Ba,loader:Pa},Va=Na,kr="mindmap",Ga=t((i)=>/^\s*mindmap/.test(i),"detector"),Ha=t(async()=>{let{diagram:i}=await (C("n05xf20n"),import("./chunk-n05xf20n.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("r8qyvcks"),import("./chunk-r8qyvcks.js"));return{id:Dr,diagram:i}},"loader"),qa={id:Dr,detector:ja,loader:Ya},Xa=qa,Mr="sankey",Ka=t((i)=>/^\s*sankey(-beta)?/.test(i),"detector"),Qa=t(async()=>{let{diagram:i}=await (C("08z6mkgz"),import("./chunk-08z6mkgz.js"));return{id:Mr,diagram:i}},"loader"),Ja={id:Mr,detector:Ka,loader:Qa},ei=Ja,_r="packet",ri=t((i)=>/^\s*packet(-beta)?/.test(i),"detector"),ti=t(async()=>{let{diagram:i}=await (C("r55seq42"),import("./chunk-r55seq42.js"));return{id:_r,diagram:i}},"loader"),ai={id:_r,detector:ri,loader:ti},Lr="radar",ii=t((i)=>/^\s*radar-beta/.test(i),"detector"),oi=t(async()=>{let{diagram:i}=await (C("h28xrvmg"),import("./chunk-h28xrvmg.js"));return{id:Lr,diagram:i}},"loader"),ni={id:Lr,detector:ii,loader:oi},Ar="block",si=t((i)=>/^\s*block(-beta)?/.test(i),"detector"),di=t(async()=>{let{diagram:i}=await (C("nm8yza3v"),import("./chunk-nm8yza3v.js"));return{id:Ar,diagram:i}},"loader"),ci={id:Ar,detector:si,loader:di},li=ci,Ir="treeView",fi=t((i)=>/^\s*treeView-beta/.test(i),"detector"),mi=t(async()=>{let{diagram:i}=await (C("qs5wnwd6"),import("./chunk-qs5wnwd6.js"));return{id:Ir,diagram:i}},"loader"),ui={id:Ir,detector:fi,loader:mi},pi=ui,Rr="architecture",gi=t((i)=>/^\s*architecture/.test(i),"detector"),vi=t(async()=>{let{diagram:i}=await (C("grz69q28"),import("./chunk-grz69q28.js"));return{id:Rr,diagram:i}},"loader"),hi={id:Rr,detector:gi,loader:vi},bi=hi,$r="eventmodeling",Si=t((i)=>/^\s*eventmodeling/.test(i),"detector"),Ei=t(async()=>{let{diagram:i}=await (C("4v6m84pg"),import("./chunk-4v6m84pg.js"));return{id:$r,diagram:i}},"loader"),Ci={id:$r,detector:Si,loader:Ei},ki=Ci,zr="ishikawa",Di=t((i)=>/^\s*ishikawa(-beta)?\b/i.test(i),"detector"),Mi=t(async()=>{let{diagram:i}=await (C("qq79vsm8"),import("./chunk-qq79vsm8.js"));return{id:zr,diagram:i}},"loader"),Li={id:zr,detector:Di,loader:Mi},Fr="venn",Ai=t((i)=>/^\s*venn-beta/.test(i),"detector"),Ii=t(async()=>{let{diagram:i}=await (C("46cdys11"),import("./chunk-46cdys11.js"));return{id:Fr,diagram:i}},"loader"),Ri={id:Fr,detector:Ai,loader:Ii},$i=Ri,Or="treemap",zi=t((i)=>/^\s*treemap/.test(i),"detector"),Fi=t(async()=>{let{diagram:i}=await (C("v329f8df"),import("./chunk-v329f8df.js"));return{id:Or,diagram:i}},"loader"),Oi={id:Or,detector:zi,loader:Fi},Pr="usecase",Bi=t((i)=>/^\s*usecase-beta(?:\s|$)/.test(i),"detector"),Pi=t(async()=>{let{diagram:i}=await (C("29z0ft67"),import("./chunk-29z0ft67.js"));return{id:Pr,diagram:i}},"loader"),Ni={id:Pr,detector:Bi,loader:Pi},Vr="wardley",Vi=t((i)=>/^\s*wardley-beta/i.test(i),"detector"),Gi=t(async()=>{let{diagram:i}=await (C("3kqpmg83"),import("./chunk-3kqpmg83.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("sk3065js"),import("./chunk-sk3065js.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("619a8t38"),import("./chunk-619a8t38.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("2zgqe8r7"),import("./chunk-2zgqe8r7.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("ayqakyyq"),import("./chunk-ayqakyyq.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("trssyq9a"),import("./chunk-trssyq9a.js"));return{id:jr,diagram:i}},"loader"),oo={id:jr,detector:ao,loader:io},rr=!1,Ee=t(()=>{if(rr)return;rr=!0,wi("error",Ia,(i)=>i.toLowerCase().trim()==="error"),wi("---",{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("---")),bo(Oa,Wa,bi),bo(Mt,xt,Xa,ya,Ft,Wt,Xt,Zt,la,pa,It,Tt,Va,Nt,Sa,ka,ta,ei,ai,na,li,ki,pi,ni,Li,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(Nr).map(async([s,{detector:d,loader:c}])=>{if(!c)return;try{ko(s)}catch{try{let{diagram:l,id:m}=await c();wi(m,l,d)}catch(l){throw a.error(`Failed to load external diagram with key ${s}. Removing from detectors.`),delete Nr[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=$a(d.cleaned,c);try{ko(l)}catch{let v=il(l);if(!v)throw new Ds(`Diagram ${l} not found.`);let{id:k,diagram:L}=await v();wi(k,L)}let{db:m,parser:f,renderer:u,init:g}=ko(l);if(f.parser)f.parser.yy=m;if(m.clear?.(),g?.(c),s.title)m.setDiagramTitle?.(s.title);let w=d.cleaned;if(m.preserveCommentsWhenParsing&&d.withComments){let v=c.maxTextSize??B.maxTextSize;if(d.withComments.length>v)a.warn(`Comment-preserving source exceeds maxTextSize (${d.withComments.length} > ${v}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`);else w=d.withComments}let x=yl(w)+`
|
|
3
3
|
`;if(d.frontmatterLineOffset)m.setFrontmatterLineOffset?.(d.frontmatterLineOffset);return await f.parse(x),new i(l,x,m,f,u)}async render(n,s){await this.renderer.draw(this.text,n,s,this)}getParser(){return this.parser}getType(){return this.type}},tr=[],co=t(()=>{tr.forEach((i)=>{i()}),tr=[]},"attachFunctions"),lo=t((i)=>i.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Xr(i){let n=Is(i);if(!n)return{text:i,metadata:{}};let s=n.indent,d=s?n.body.split(`
|
|
4
4
|
`).map((m)=>m.startsWith(s)?m.slice(s.length):m).join(`
|
|
5
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 fo=t((i)=>i.replace(/\r\n?/g,`
|
|
6
|
-
`).replace(/<(\w+)([^>]*)>/g,(n,s,d)=>"<"+s+d.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),mo=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"),uo=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:gl(i),directive:n}},"processDirectives");function Ae(i){let n=i,s=fo(i),d=mo(s),c=uo(d.text),l=X(d.config,c.directive),m=c.text,f=lo(m),u=s.length>d.text.length?(s.substring(0,s.length-d.text.length).match(/\n/g)??[]).length:0;return{code:{raw:n,cleaned:f,withComments:m,frontmatterLineOffset:u},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 po=50000,go="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",vo="sandbox",ho="loose",yo="http://www.w3.org/2000/svg",wo="http://www.w3.org/1999/xlink",So="http://www.w3.org/1999/xhtml",Eo="100%",To="100%",Co="border:0;margin:0;",Do="margin:0",Mo="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);_i();let s;try{s=$a(n.code.cleaned,S())}catch{s=void 0}return xo(s),cl(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{xo(void 0)}}t(Qr,"parse");var ar=t((i,n,s=[])=>{let d=
|
|
6
|
+
`).replace(/<(\w+)([^>]*)>/g,(n,s,d)=>"<"+s+d.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),mo=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"),uo=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:gl(i),directive:n}},"processDirectives");function Ae(i){let n=i,s=fo(i),d=mo(s),c=uo(d.text),l=X(d.config,c.directive),m=c.text,f=lo(m),u=s.length>d.text.length?(s.substring(0,s.length-d.text.length).match(/\n/g)??[]).length:0;return{code:{raw:n,cleaned:f,withComments:m,frontmatterLineOffset:u},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 po=50000,go="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",vo="sandbox",ho="loose",yo="http://www.w3.org/2000/svg",wo="http://www.w3.org/1999/xlink",So="http://www.w3.org/1999/xhtml",Eo="100%",To="100%",Co="border:0;margin:0;",Do="margin:0",Mo="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);_i();let s;try{s=$a(n.code.cleaned,S())}catch{s=void 0}return xo(s),cl(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{xo(void 0)}}t(Qr,"parse");var ar=t((i,n,s=[])=>{let d=Ns(`{ ${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 f=Ye(i)?["> *","span"]:["rect","polygon","ellipse","circle","path"];n.forEach((u)=>{if(!ke(u.styles))f.forEach((g)=>{s.insertRule(ar(u.id,g,u.styles),s.cssRules.length)});if(!ke(u.textStyles))s.insertRule(ar(u.id,"tspan",(u?.textStyles||[]).map((g)=>g.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=_o(c)+`
|
|
7
7
|
`}else d+=`${i.themeCSS}
|
|
8
8
|
`;return d+_o(s)},"createCssStyles"),$o=t((i,n)=>we(Ze(`${i}{${n}}`),er([t(function(d,c,l,m){if(d.type==="rule"&&Array.isArray(d.props)){if(d.parent&&d.parent.type===oe)return;d.props=d.props.map((f)=>{if(f===i&&Array.isArray(d.children)&&d.children.every((g)=>{if(g.type!=="decl")return!1;return new Set(["font-family","font-size","fill"]).has(g.props)}))return f;if(!((f.startsWith(`${i} `)||f.startsWith(`${i}>`))&&!f.startsWith(`${i} ||`)))return`${i} ${f}`;return f})}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=dl(n,c,{...i.themeVariables,theme:i.theme,look:i.look},d);return $o(d,l)},"createUserStyles"),Fo=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=On(d),d=d.replace(/<br>/g,"<br/>"),d},"cleanUpSvgCode"),Oo=t((i="",n)=>{let s=n?.viewBox?.baseVal?.height?n.viewBox.baseVal.height+"px":To,d=Kr(`<body style="${Do}">${i}</body>`);return`<iframe style="width:${Eo};height:${s};${Co}" src="data:text/html;charset=UTF-8;base64,${d}" sandbox="${Mo}">
|
|
9
9
|
${Lo}
|
|
10
|
-
</iframe>`},"putIntoIFrame"),ir=t((i,n,s,d,c)=>{let l=i.append("div");if(l.attr("id",s),d)l.attr("style",d);let m=l.append("svg").attr("id",n).attr("width","100%").attr("xmlns",yo);if(c)m.attr("xmlns:xlink",c);return m.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 Bo=t((i,n,s,d)=>{i.getElementById(n)?.remove(),i.getElementById(s)?.remove(),i.getElementById(d)?.remove()},"removeExistingElements"),Po=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??po))n=go,c={raw:n,cleaned:n};let m=`#${i}`,f="i"+i,u="#"+f,g="d"+i,w="#"+g,x=t(()=>{let ie=h(k?u:w).node();if(ie&&"remove"in ie)ie.remove()},"removeTempElements"),v=h(document.body),k=l.securityLevel===vo,L=l.securityLevel===ho,D=l.fontFamily;if(s!==void 0){if(s)s.innerHTML="";if(k){let _=Le(h(s),f);v=h(_.nodes()[0].contentDocument.body),v.node().style.margin="0"}else v=h(s);ir(v,i,g,`font-family: ${D}`,wo)}else{if(Bo(document,i,g,f),k){let _=Le(h(document.body),f);v=h(_.nodes()[0].contentDocument.body),v.node().style.margin="0"}else v=h("body");ir(v,i,g)}let E,M;try{E=await be.fromText(c,{title:d.title})}catch(_){if(l.suppressErrorRendering)throw x(),_;E=await be.fromText("error"),M=_,E.db.setErrorMessage?.(Vs(_))}let A=v.select(w).node(),b=E.type,P=A.firstChild,q=P.firstChild,N=E.renderer.getClasses?.(n,E),R=zo(l,b,N,m),p=document.createElement("style");p.innerHTML=R,P.insertBefore(p,q);try{await E.renderer.draw(n,i,"12.2.0",E)}catch(_){if(l.suppressErrorRendering)x();else _a.draw(n,i,"12.2.0");throw _}let ft=v.select(`${w} svg`),mt=E.db.getAccTitle?.(),ut=E.db.getAccDescription?.();Jr(b,ft,mt,ut);let pt=t(()=>{v.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",So);let _=v.select(w).node().innerHTML;if(a.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),_=Fo(_,k,on(l.arrowMarkerAbsolute)),k){let ie=v.select(w+" svg").node();_=Oo(_,ie)}else if(!L)_=
|
|
10
|
+
</iframe>`},"putIntoIFrame"),ir=t((i,n,s,d,c)=>{let l=i.append("div");if(l.attr("id",s),d)l.attr("style",d);let m=l.append("svg").attr("id",n).attr("width","100%").attr("xmlns",yo);if(c)m.attr("xmlns:xlink",c);return m.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 Bo=t((i,n,s,d)=>{i.getElementById(n)?.remove(),i.getElementById(s)?.remove(),i.getElementById(d)?.remove()},"removeExistingElements"),Po=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??po))n=go,c={raw:n,cleaned:n};let m=`#${i}`,f="i"+i,u="#"+f,g="d"+i,w="#"+g,x=t(()=>{let ie=h(k?u:w).node();if(ie&&"remove"in ie)ie.remove()},"removeTempElements"),v=h(document.body),k=l.securityLevel===vo,L=l.securityLevel===ho,D=l.fontFamily;if(s!==void 0){if(s)s.innerHTML="";if(k){let _=Le(h(s),f);v=h(_.nodes()[0].contentDocument.body),v.node().style.margin="0"}else v=h(s);ir(v,i,g,`font-family: ${D}`,wo)}else{if(Bo(document,i,g,f),k){let _=Le(h(document.body),f);v=h(_.nodes()[0].contentDocument.body),v.node().style.margin="0"}else v=h("body");ir(v,i,g)}let E,M;try{E=await be.fromText(c,{title:d.title})}catch(_){if(l.suppressErrorRendering)throw x(),_;E=await be.fromText("error"),M=_,E.db.setErrorMessage?.(Vs(_))}let A=v.select(w).node(),b=E.type,P=A.firstChild,q=P.firstChild,N=E.renderer.getClasses?.(n,E),R=zo(l,b,N,m),p=document.createElement("style");p.innerHTML=R,P.insertBefore(p,q);try{await E.renderer.draw(n,i,"12.2.0",E)}catch(_){if(l.suppressErrorRendering)x();else _a.draw(n,i,"12.2.0");throw _}let ft=v.select(`${w} svg`),mt=E.db.getAccTitle?.(),ut=E.db.getAccDescription?.();Jr(b,ft,mt,ut);let pt=t(()=>{v.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",So);let _=v.select(w).node().innerHTML;if(a.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),_=Fo(_,k,on(l.arrowMarkerAbsolute)),k){let ie=v.select(w+" svg").node();_=Oo(_,ie)}else if(!L)_=at.sanitize(_,{ADD_TAGS:Ao,ADD_ATTR:Io,HTML_INTEGRATION_POINTS:{foreignobject:!0}});return co(),_},"serializeSvg")();if(M)throw M;return x(),{diagramType:b,svg:pt,bindFunctions:E.db.bindFunctions}},"renderDiagram"),No=t(async function(i,n,s){try{return await Po(i,n,s)}finally{xo(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}sl(n);let s=cr.theme;if(n?.theme&&Object.hasOwn(Xn,n.theme))n.themeVariables=Xn[n.theme].getThemeVariables(n.themeVariables);else if(n){if(n.theme!=null&&n.theme!=="null")n.theme=s;n.themeVariables=Xn[s].getThemeVariables(n.themeVariables)}let d=typeof n==="object"?ol(n):Ms();xi(d.logLevel),Ee()}t(Zr,"initialize");var Vo=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:No,parse:Qr,getDiagramFromText:Vo,initialize:Zr,getConfig:S,setConfig:Ps,getSiteConfig:Ms,updateSiteConfig:ll,reset:t(()=>{_i()},"reset"),globalReset:t(()=>{_i(cr)},"globalReset"),defaultConfig:cr});xi(S().logLevel);_i(S());var Ho=t((i,n,s)=>{if(a.warn(i),Yo(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 Uo(i)}catch(n){if(Yo(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"),Uo=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),m,f=[];for(let u of Array.from(c)){if(a.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");let g=`mermaid-${l.next()}`;m=u.innerHTML,m=Zo(F.entityDecode(m)).trim().replace(/<br\s*\/?>/gi,"<br/>");let w=F.detectInit(m);if(w)a.debug("Detected early reinit: ",w);try{let{svg:x,bindFunctions:v}=await ot(g,m,u);if(u.innerHTML=x,i)await i(g);if(v)v(u)}catch(x){Ho(x,f,W.parseError)}}if(f.length>0)throw f[0]},"runThrowsErrors"),rt=t(function(i){Y.initialize(i)},"initialize"),Wo=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"),jo=t(async(i,{lazyLoad:n=!0}={})=>{if(Ee(),bo(...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 qo=t(function(i){W.parseError=i},"setParseErrorHandler"),Se=[],_e=!1,it=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"),Xo=t(async(i,n)=>new Promise((s,d)=>{let c=t(()=>new Promise((l,m)=>{Y.parse(i,n).then((f)=>{l(f),s(f)},(f)=>{a.error("Error parsing",f),W.parseError?.(f),m(f),d(f)})}),"performCall");Se.push(c),it().catch(d)}),"parse"),ot=t((i,n,s)=>new Promise((d,c)=>{let l=t(()=>new Promise((m,f)=>{Y.render(i,n,s).then((u)=>{m(u),d(u)},(u)=>{a.error("Error parsing",u),W.parseError?.(u),f(u),c(u)})}),"performCall");Se.push(l),it().catch(c)}),"render"),Ko=t(()=>Object.keys(Nr).map((i)=>({id:i})),"getRegisteredDiagramsMetadata"),W={startOnLoad:!0,mermaidAPI:Y,parse:Xo,render:ot,init:Wo,run:et,registerExternalDiagrams:jo,registerLayoutLoaders:Ys,initialize:rt,parseError:void 0,contentLoaded:tt,setParseErrorHandler:qo,detectType:$a,registerIconPacks:Br,getRegisteredDiagramsMetadata:Ko},Te=W;/*! Check if previously processed *//*!
|
|
11
11
|
* Wait for document loaded before starting the execution
|
|
12
12
|
*/function nt(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
13
|
`),c=d[s.line];if(c===void 0)return;let l=c.lastIndexOf(s.text);if(l<0)return;let m=l+s.text.length-1;return d[s.line]=`${c.slice(0,m)}@${c.slice(m+1)}`,d.join(`
|
|
Binary file
|
|
Binary file
|