@bkm016/basalt 0.1.20 → 0.1.21
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-1tbv5t08.js → chunk-03b5jh31.js} +1 -1
- package/{chunk-3sg32v3n.js → chunk-0x0459qp.js} +1 -1
- package/{chunk-nszq2z0w.js → chunk-16yz5ebn.js} +1 -1
- package/chunk-1kdd7xry.js +2 -0
- package/{chunk-cks36jdh.js → chunk-225dyk1y.js} +2 -2
- package/{chunk-v7da0aqn.js → chunk-2fymxwe7.js} +2 -2
- package/{chunk-mde2dd79.js → chunk-2m2sa0bp.js} +1 -1
- package/{chunk-fgjw0r6g.js → chunk-35y6nf6k.js} +4 -4
- package/chunk-3qxq264t.js +2 -0
- package/{chunk-cwrf78vs.js → chunk-3s8rpc1w.js} +2 -2
- package/{chunk-wj09qkyw.js → chunk-3t8wz9w8.js} +2 -2
- package/{chunk-gg3kfa12.js → chunk-43qf44t8.js} +2 -2
- package/chunk-49hsqsht.js +2 -0
- package/chunk-4fj91gt1.js +4 -0
- package/{chunk-tb3zsqe8.js → chunk-51a0843g.js} +1 -1
- package/{chunk-51pfvmhh.js → chunk-5h59tby8.js} +69 -69
- package/{chunk-bkhsva5n.js → chunk-5m51j40e.js} +3 -3
- package/{chunk-2fts9k52.js → chunk-5mt8xxex.js} +2 -2
- package/{chunk-5e7yegea.js → chunk-85sjfyjd.js} +1 -1
- package/chunk-97ntcrm7.js +2 -0
- package/{chunk-0bgg0hdd.js → chunk-9t3v8c3m.js} +1 -1
- package/{chunk-7kz9435k.js → chunk-9w1m9av8.js} +3 -3
- package/{chunk-d2f0hq8z.js → chunk-9x28stv0.js} +1 -1
- package/{chunk-c5pg2875.js → chunk-ak95r8mq.js} +254 -250
- package/{chunk-a1vdrgsh.js → chunk-bn1aaewd.js} +4 -4
- package/{chunk-agb771ak.js → chunk-c5ydt3vq.js} +2 -2
- package/{chunk-y83tnkr3.js → chunk-cjh5h31t.js} +2 -2
- package/{chunk-p0e82mee.js → chunk-cr0tqn6j.js} +2 -2
- package/{chunk-np2xnt1g.js → chunk-e8xywvv4.js} +2 -2
- package/{chunk-w6nc3jn7.js → chunk-ewaskman.js} +1 -1
- package/{chunk-w045zk55.js → chunk-feyt85gg.js} +1 -1
- package/{chunk-s8m4svhf.js → chunk-ftg4b5pa.js} +1 -1
- package/{chunk-s819vmwh.js → chunk-g6cc7ac1.js} +2 -2
- package/{chunk-5ja0vsam.js → chunk-gdx1j9c5.js} +3 -3
- package/{chunk-h2pp8mnh.js → chunk-h00wjps7.js} +1 -1
- package/{chunk-4dgqcp6q.js → chunk-h1fwdz4h.js} +1 -1
- package/{chunk-6en06hkk.js → chunk-hhxtc9jn.js} +1 -1
- package/chunk-hrn2ss1a.js +2 -0
- package/chunk-jhwb962k.js +15 -0
- package/{chunk-11xxfc0x.js → chunk-jpwr1sd2.js} +1 -1
- package/chunk-jy07y4pv.js +7 -0
- package/{chunk-0g8rtf05.js → chunk-k9x1r69s.js} +8 -8
- package/chunk-kb5h9rmb.js +2 -0
- package/{chunk-eps1epfr.js → chunk-kgnd32hn.js} +2 -2
- package/{chunk-w9fdcchk.js → chunk-kka12j10.js} +1 -1
- package/{chunk-1gaj43fx.js → chunk-kypdthjg.js} +1 -1
- package/{chunk-30bbdzma.js → chunk-m9386732.js} +12 -12
- package/{chunk-qxpx8dn6.js → chunk-np123myw.js} +3 -3
- package/chunk-ntntwtxn.js +5 -0
- package/{chunk-29g01nrz.js → chunk-qn70tm91.js} +5 -5
- package/{chunk-yk29stq0.js → chunk-qtgc74er.js} +2 -2
- package/{chunk-tp885r8h.js → chunk-qz6ybxjg.js} +9 -9
- package/chunk-r36b12zb.js +2 -0
- package/{chunk-as2mwf79.js → chunk-re8n2te5.js} +1 -1
- package/{chunk-y3vap4a1.js → chunk-rpbxbb92.js} +1 -1
- package/chunk-rqrjzz73.js +2 -0
- package/{chunk-tpetsqzt.js → chunk-scy1p7x2.js} +3 -3
- package/{chunk-svx7mz0w.js → chunk-sq5ppnr3.js} +3 -3
- package/{chunk-e3bgzeb3.js → chunk-syhhzr1j.js} +2 -2
- package/chunk-tmq8ktys.js +3 -0
- package/{chunk-sm9fpy18.js → chunk-ttv805sb.js} +8 -8
- package/{chunk-eyyxqb6y.js → chunk-v878x8zr.js} +2 -2
- package/{chunk-a2z1cy84.js → chunk-ve1b6vg6.js} +1 -1
- package/chunk-w3n8wm44.js +2 -0
- package/{chunk-z9p2ry9w.js → chunk-w3skxmvx.js} +2 -2
- package/chunk-wxzk086k.js +2 -0
- package/chunk-y8mf9tcj.js +25 -0
- package/{chunk-ewr51fwc.js → chunk-z4g2q36h.js} +1 -1
- package/compiled.js +8 -8
- package/package.json +1 -1
- package/ui-test-worker.js +16 -16
- package/web/{chunk-mbpv2w5h.js → chunk-07dd0jed.js} +2 -2
- package/web/chunk-07dd0jed.js.br +0 -0
- package/web/chunk-07dd0jed.js.gz +0 -0
- package/web/{chunk-d7f85w1y.js → chunk-0hvyq55w.js} +1 -1
- package/web/chunk-0hvyq55w.js.br +0 -0
- package/web/chunk-0hvyq55w.js.gz +0 -0
- package/web/{chunk-ahdca62g.js → chunk-0q5drhbk.js} +1 -1
- package/web/chunk-0q5drhbk.js.br +0 -0
- package/web/chunk-0q5drhbk.js.gz +0 -0
- package/web/{chunk-zthww0ws.js → chunk-0w6ta3ps.js} +1 -1
- package/web/chunk-0w6ta3ps.js.br +0 -0
- package/web/chunk-0w6ta3ps.js.gz +0 -0
- package/web/{chunk-aw9bwd4w.js → chunk-16b5anw4.js} +2 -2
- package/web/chunk-16b5anw4.js.br +0 -0
- package/web/chunk-16b5anw4.js.gz +0 -0
- package/web/{chunk-53cg6pxm.js → chunk-21d8pzcm.js} +2 -2
- package/web/chunk-21d8pzcm.js.br +0 -0
- package/web/{chunk-53cg6pxm.js.gz → chunk-21d8pzcm.js.gz} +0 -0
- package/web/{chunk-72st75n7.js → chunk-2c4affp1.js} +3 -3
- package/web/chunk-2c4affp1.js.br +0 -0
- package/web/chunk-2c4affp1.js.gz +0 -0
- package/web/{chunk-1ghnag5v.js → chunk-2dykyq1n.js} +1 -1
- package/web/chunk-2dykyq1n.js.br +0 -0
- package/web/chunk-2dykyq1n.js.gz +0 -0
- package/web/{chunk-znrsm604.js → chunk-2h2w244w.js} +17 -17
- package/web/chunk-2h2w244w.js.br +0 -0
- package/web/chunk-2h2w244w.js.gz +0 -0
- package/web/{chunk-kdegb6pd.js → chunk-2hd51wb6.js} +5 -5
- package/web/chunk-2hd51wb6.js.br +0 -0
- package/web/chunk-2hd51wb6.js.gz +0 -0
- package/web/{chunk-2rnnvxa5.js → chunk-2tc6krye.js} +3 -3
- package/web/chunk-2tc6krye.js.br +0 -0
- package/web/chunk-2tc6krye.js.gz +0 -0
- package/web/{chunk-7h59ac2b.js → chunk-2w27acew.js} +1 -1
- package/web/chunk-2w27acew.js.br +0 -0
- package/web/chunk-2w27acew.js.gz +0 -0
- package/web/{chunk-gbcf0rdk.js → chunk-2w4rdnhj.js} +1 -1
- package/web/chunk-2w4rdnhj.js.br +0 -0
- package/web/chunk-2w4rdnhj.js.gz +0 -0
- package/web/{chunk-gj6bdv1y.js → chunk-31vxes2p.js} +9 -9
- package/web/chunk-31vxes2p.js.br +0 -0
- package/web/chunk-31vxes2p.js.gz +0 -0
- package/web/chunk-32qd2y5h.js +1 -0
- package/web/chunk-32qd2y5h.js.br +0 -0
- package/web/chunk-32qd2y5h.js.gz +0 -0
- package/web/{chunk-qx5ab39c.js → chunk-39kaz6fa.js} +2 -2
- package/web/chunk-39kaz6fa.js.br +0 -0
- package/web/chunk-39kaz6fa.js.gz +0 -0
- package/web/{chunk-mj8dzc8q.js → chunk-3d3y4tep.js} +5 -5
- package/web/chunk-3d3y4tep.js.br +0 -0
- package/web/chunk-3d3y4tep.js.gz +0 -0
- package/web/chunk-4makcmpw.js +1 -0
- package/web/chunk-4makcmpw.js.br +0 -0
- package/web/chunk-4makcmpw.js.gz +0 -0
- package/web/{chunk-1ps9fj5n.js → chunk-4zftsyq2.js} +2 -2
- package/web/chunk-4zftsyq2.js.br +0 -0
- package/web/chunk-4zftsyq2.js.gz +0 -0
- package/web/{chunk-bks2k04k.js → chunk-50wrjr22.js} +1 -1
- package/web/chunk-50wrjr22.js.br +0 -0
- package/web/chunk-50wrjr22.js.gz +0 -0
- package/web/{chunk-mhzqgzh0.js → chunk-55kw8p9r.js} +1 -1
- package/web/chunk-55kw8p9r.js.br +0 -0
- package/web/chunk-55kw8p9r.js.gz +0 -0
- package/web/{chunk-gpjytpyw.js → chunk-56tqa12m.js} +2 -2
- package/web/chunk-56tqa12m.js.br +0 -0
- package/web/chunk-56tqa12m.js.gz +0 -0
- package/web/{chunk-wbxz2bjb.js → chunk-595tqsv5.js} +1 -1
- package/web/chunk-595tqsv5.js.br +0 -0
- package/web/chunk-595tqsv5.js.gz +0 -0
- package/web/chunk-5h193k2c.js +1 -0
- package/web/chunk-5h193k2c.js.br +0 -0
- package/web/chunk-5h193k2c.js.gz +0 -0
- package/web/{chunk-k4pknkvp.js → chunk-5nbmnchg.js} +1 -1
- package/web/chunk-5nbmnchg.js.br +0 -0
- package/web/chunk-5nbmnchg.js.gz +0 -0
- package/web/{chunk-gk1bc3c3.js → chunk-5vc1wkwb.js} +1 -1
- package/web/chunk-5vc1wkwb.js.br +0 -0
- package/web/chunk-5vc1wkwb.js.gz +0 -0
- package/web/{chunk-tgeeggkh.js → chunk-5wgdprjp.js} +1 -1
- package/web/chunk-5wgdprjp.js.br +0 -0
- package/web/chunk-5wgdprjp.js.gz +0 -0
- package/web/{chunk-esckazz2.js → chunk-60fbfw70.js} +1 -1
- package/web/chunk-60fbfw70.js.br +0 -0
- package/web/chunk-60fbfw70.js.gz +0 -0
- package/web/{chunk-v5p2fds9.js → chunk-62z94rt2.js} +4 -4
- package/web/chunk-62z94rt2.js.br +0 -0
- package/web/chunk-62z94rt2.js.gz +0 -0
- package/web/chunk-67khfy00.css +1 -0
- package/web/chunk-67khfy00.css.br +0 -0
- package/web/chunk-67khfy00.css.gz +0 -0
- package/web/chunk-6bt2t0xt.js +8 -0
- package/web/chunk-6bt2t0xt.js.br +0 -0
- package/web/chunk-6bt2t0xt.js.gz +0 -0
- package/web/{chunk-h1c0m3g4.js → chunk-780qvh05.js} +3 -3
- package/web/chunk-780qvh05.js.br +0 -0
- package/web/chunk-780qvh05.js.gz +0 -0
- package/web/{chunk-k6fwzn0z.js → chunk-78t5dqea.js} +1 -1
- package/web/chunk-78t5dqea.js.br +0 -0
- package/web/chunk-78t5dqea.js.gz +0 -0
- package/web/chunk-7edmyret.js +1 -0
- package/web/chunk-7edmyret.js.br +0 -0
- package/web/chunk-7edmyret.js.gz +0 -0
- package/web/{chunk-cmhxtckb.js → chunk-7remkcff.js} +1 -1
- package/web/chunk-7remkcff.js.br +0 -0
- package/web/chunk-7remkcff.js.gz +0 -0
- package/web/chunk-7s062q01.js +1 -0
- package/web/chunk-7s062q01.js.br +0 -0
- package/web/chunk-7s062q01.js.gz +0 -0
- package/web/chunk-82zwwy0b.js +1 -0
- package/web/chunk-82zwwy0b.js.br +0 -0
- package/web/chunk-82zwwy0b.js.gz +0 -0
- package/web/{chunk-wa8wr2y9.js → chunk-8c6h952g.js} +9 -9
- package/web/chunk-8c6h952g.js.br +0 -0
- package/web/chunk-8c6h952g.js.gz +0 -0
- package/web/chunk-8wgev3hd.js +1 -0
- package/web/chunk-8wgev3hd.js.br +0 -0
- package/web/chunk-8wgev3hd.js.gz +0 -0
- package/web/chunk-9vcbnf1m.js +1 -0
- package/web/chunk-9vcbnf1m.js.br +0 -0
- package/web/chunk-9vcbnf1m.js.gz +0 -0
- package/web/{chunk-kedjfh66.js → chunk-abahqsws.js} +1 -1
- package/web/chunk-abahqsws.js.br +0 -0
- package/web/chunk-abahqsws.js.gz +0 -0
- package/web/{chunk-vhpzp7zd.js → chunk-acv6gk2b.js} +1 -1
- package/web/chunk-acv6gk2b.js.br +0 -0
- package/web/chunk-acv6gk2b.js.gz +0 -0
- package/web/{chunk-bg0qgabv.js → chunk-ajpzsx51.js} +1 -1
- package/web/chunk-ajpzsx51.js.br +0 -0
- package/web/chunk-ajpzsx51.js.gz +0 -0
- package/web/chunk-b1b9txvk.js +1 -0
- package/web/chunk-b1b9txvk.js.br +0 -0
- package/web/chunk-b1b9txvk.js.gz +0 -0
- package/web/{chunk-qjg6dw46.js → chunk-b83bzjcx.js} +73 -73
- package/web/chunk-b83bzjcx.js.br +0 -0
- package/web/chunk-b83bzjcx.js.gz +0 -0
- package/web/{chunk-v6snw1sw.js → chunk-c1zhat04.js} +1 -1
- package/web/chunk-c1zhat04.js.br +0 -0
- package/web/chunk-c1zhat04.js.gz +0 -0
- package/web/{chunk-186rp10x.js → chunk-c37hhmtd.js} +1 -1
- package/web/chunk-c37hhmtd.js.br +0 -0
- package/web/chunk-c37hhmtd.js.gz +0 -0
- package/web/{chunk-wvqcbp4a.js → chunk-c69t0ysj.js} +1 -1
- package/web/chunk-c69t0ysj.js.br +0 -0
- package/web/chunk-c69t0ysj.js.gz +0 -0
- package/web/chunk-caz85hz4.js +1 -0
- package/web/chunk-caz85hz4.js.br +0 -0
- package/web/chunk-caz85hz4.js.gz +0 -0
- package/web/{chunk-6n1ha6ta.js → chunk-cbtpaf3e.js} +1 -1
- package/web/chunk-cbtpaf3e.js.br +0 -0
- package/web/chunk-cbtpaf3e.js.gz +0 -0
- package/web/{chunk-dmhezjv3.js → chunk-d1gga18f.js} +4 -4
- package/web/chunk-d1gga18f.js.br +0 -0
- package/web/chunk-d1gga18f.js.gz +0 -0
- package/web/{chunk-q0srq8g5.js → chunk-d4kjy2qn.js} +1 -1
- package/web/chunk-d4kjy2qn.js.br +0 -0
- package/web/chunk-d4kjy2qn.js.gz +0 -0
- package/web/{chunk-v2bkkhb8.js → chunk-dbv8qpen.js} +41 -41
- package/web/chunk-dbv8qpen.js.br +0 -0
- package/web/chunk-dbv8qpen.js.gz +0 -0
- package/web/{chunk-37hmswdk.js → chunk-e6r1sb5r.js} +5 -5
- package/web/chunk-e6r1sb5r.js.br +0 -0
- package/web/chunk-e6r1sb5r.js.gz +0 -0
- package/web/chunk-ep5qff8m.js +1 -0
- package/web/chunk-ep5qff8m.js.br +0 -0
- package/web/chunk-ep5qff8m.js.gz +0 -0
- package/web/{chunk-c28crzwk.js → chunk-ex66t805.js} +1 -1
- package/web/chunk-ex66t805.js.br +0 -0
- package/web/chunk-ex66t805.js.gz +0 -0
- package/web/chunk-fb8qtyqg.js +1 -0
- package/web/chunk-fb8qtyqg.js.br +0 -0
- package/web/chunk-fb8qtyqg.js.gz +0 -0
- package/web/{chunk-vpbnyz43.js → chunk-fbzhgaak.js} +1 -1
- package/web/chunk-fbzhgaak.js.br +0 -0
- package/web/chunk-fbzhgaak.js.gz +0 -0
- package/web/{chunk-9n1nsdqs.js → chunk-ffwyfdg4.js} +1 -1
- package/web/chunk-ffwyfdg4.js.br +0 -0
- package/web/chunk-ffwyfdg4.js.gz +0 -0
- package/web/{chunk-0tcmnvab.js → chunk-fsz1msjr.js} +1 -1
- package/web/chunk-fsz1msjr.js.br +0 -0
- package/web/chunk-fsz1msjr.js.gz +0 -0
- package/web/{chunk-nb58m79v.js → chunk-fztzcy7c.js} +1 -1
- package/web/chunk-fztzcy7c.js.br +0 -0
- package/web/chunk-fztzcy7c.js.gz +0 -0
- package/web/chunk-g4st8a4e.js +1 -0
- package/web/chunk-g4st8a4e.js.br +0 -0
- package/web/chunk-g4st8a4e.js.gz +0 -0
- package/web/{chunk-82q4e8ff.js → chunk-gs41j1vb.js} +1 -1
- package/web/chunk-gs41j1vb.js.br +0 -0
- package/web/chunk-gs41j1vb.js.gz +0 -0
- package/web/{chunk-dmzvhbpn.js → chunk-gt4dzb4b.js} +3 -3
- package/web/chunk-gt4dzb4b.js.br +0 -0
- package/web/chunk-gt4dzb4b.js.gz +0 -0
- package/web/{chunk-1yvcxpp2.js → chunk-h4g8j133.js} +4 -4
- package/web/chunk-h4g8j133.js.br +0 -0
- package/web/chunk-h4g8j133.js.gz +0 -0
- package/web/chunk-ht3cek8b.js +1 -0
- package/web/chunk-ht3cek8b.js.br +2 -0
- package/web/chunk-ht3cek8b.js.gz +0 -0
- package/web/{chunk-3fd6mgf0.js → chunk-hw4f79k8.js} +1 -1
- package/web/chunk-hw4f79k8.js.br +0 -0
- package/web/chunk-hw4f79k8.js.gz +0 -0
- package/web/{chunk-js940jjj.js → chunk-j2y3wkxc.js} +4 -4
- package/web/chunk-j2y3wkxc.js.br +0 -0
- package/web/chunk-j2y3wkxc.js.gz +0 -0
- package/web/{chunk-vh2prc6k.js → chunk-j7sfcfxr.js} +1 -1
- package/web/chunk-j7sfcfxr.js.br +0 -0
- package/web/chunk-j7sfcfxr.js.gz +0 -0
- package/web/{chunk-ye7vge7s.js → chunk-jge5e8c4.js} +1 -1
- package/web/chunk-jge5e8c4.js.br +0 -0
- package/web/chunk-jge5e8c4.js.gz +0 -0
- package/web/chunk-jyjgvcac.js +2 -0
- package/web/chunk-jyjgvcac.js.br +0 -0
- package/web/chunk-jyjgvcac.js.gz +0 -0
- package/web/chunk-k9bzz441.js +1 -0
- package/web/chunk-k9bzz441.js.br +0 -0
- package/web/chunk-k9bzz441.js.gz +0 -0
- package/web/{chunk-e2z3kdhw.js → chunk-keway722.js} +3 -3
- package/web/chunk-keway722.js.br +0 -0
- package/web/chunk-keway722.js.gz +0 -0
- package/web/{chunk-ezj5rjqr.js → chunk-kr7shpnb.js} +1 -1
- package/web/chunk-kr7shpnb.js.br +0 -0
- package/web/chunk-kr7shpnb.js.gz +0 -0
- package/web/chunk-kv5swske.js +1 -0
- package/web/chunk-kv5swske.js.br +0 -0
- package/web/chunk-kv5swske.js.gz +0 -0
- package/web/{chunk-a8qe7kvz.js → chunk-kx2k462h.js} +1 -1
- package/web/chunk-kx2k462h.js.br +0 -0
- package/web/chunk-kx2k462h.js.gz +0 -0
- package/web/{chunk-recfg8af.js → chunk-m5b7hny2.js} +1 -1
- package/web/chunk-m5b7hny2.js.br +0 -0
- package/web/chunk-m5b7hny2.js.gz +0 -0
- package/web/{chunk-vxadngbp.js → chunk-m7kypzvp.js} +1 -1
- package/web/chunk-m7kypzvp.js.br +0 -0
- package/web/chunk-m7kypzvp.js.gz +0 -0
- package/web/{chunk-mwfrxgbs.js → chunk-n00se8nk.js} +1 -1
- package/web/chunk-n00se8nk.js.br +0 -0
- package/web/chunk-n00se8nk.js.gz +0 -0
- package/web/{chunk-hqt1f3fm.js → chunk-ngdj0r7w.js} +1 -1
- package/web/chunk-ngdj0r7w.js.br +0 -0
- package/web/chunk-ngdj0r7w.js.gz +0 -0
- package/web/{chunk-zbzgd8kn.js → chunk-p6ma361e.js} +1 -1
- package/web/chunk-p6ma361e.js.br +0 -0
- package/web/chunk-p6ma361e.js.gz +0 -0
- package/web/{chunk-1ratg1jd.js → chunk-pvhz0gqy.js} +1 -1
- package/web/chunk-pvhz0gqy.js.br +0 -0
- package/web/chunk-pvhz0gqy.js.gz +0 -0
- package/web/chunk-q96eky9v.js +1 -0
- package/web/chunk-q96eky9v.js.br +0 -0
- package/web/chunk-q96eky9v.js.gz +0 -0
- package/web/{chunk-1cwyy3gh.js → chunk-qcgs1mft.js} +1 -1
- package/web/chunk-qcgs1mft.js.br +0 -0
- package/web/chunk-qcgs1mft.js.gz +0 -0
- package/web/{chunk-hwxj58j5.js → chunk-qh24q7c0.js} +1 -1
- package/web/chunk-qh24q7c0.js.br +0 -0
- package/web/chunk-qh24q7c0.js.gz +0 -0
- package/web/chunk-r1xksxab.js +1 -0
- package/web/chunk-r1xksxab.js.br +0 -0
- package/web/chunk-r1xksxab.js.gz +0 -0
- package/web/{chunk-fjrgg82c.js → chunk-rsc5k5he.js} +4 -4
- package/web/chunk-rsc5k5he.js.br +0 -0
- package/web/chunk-rsc5k5he.js.gz +0 -0
- package/web/{chunk-apr33amc.js → chunk-s7a2f62f.js} +1 -1
- package/web/chunk-s7a2f62f.js.br +0 -0
- package/web/chunk-s7a2f62f.js.gz +0 -0
- package/web/{chunk-0h0whn75.js → chunk-sac6fn9n.js} +1 -1
- package/web/chunk-sac6fn9n.js.br +0 -0
- package/web/chunk-sac6fn9n.js.gz +0 -0
- package/web/{chunk-6a3wt5c5.js → chunk-t0xjx21h.js} +3 -3
- package/web/chunk-t0xjx21h.js.br +0 -0
- package/web/chunk-t0xjx21h.js.gz +0 -0
- package/web/{chunk-tg3f9xmp.js → chunk-v7ck87jf.js} +1 -1
- package/web/chunk-v7ck87jf.js.br +0 -0
- package/web/chunk-v7ck87jf.js.gz +0 -0
- package/web/{chunk-jmnzcm1f.js → chunk-vvk9nche.js} +4 -4
- package/web/chunk-vvk9nche.js.br +0 -0
- package/web/chunk-vvk9nche.js.gz +0 -0
- package/web/chunk-vxtfen72.js +1 -0
- package/web/chunk-vxtfen72.js.br +0 -0
- package/web/chunk-vxtfen72.js.gz +0 -0
- package/web/{chunk-81xbfpbq.js → chunk-w5c2r59n.js} +1 -1
- package/web/chunk-w5c2r59n.js.br +0 -0
- package/web/chunk-w5c2r59n.js.gz +0 -0
- package/web/{chunk-08w40agf.js → chunk-wh0vt2vd.js} +7 -7
- package/web/chunk-wh0vt2vd.js.br +0 -0
- package/web/chunk-wh0vt2vd.js.gz +0 -0
- package/web/chunk-xe7fj72r.js +1 -0
- package/web/chunk-xe7fj72r.js.br +0 -0
- package/web/chunk-xe7fj72r.js.gz +0 -0
- package/web/{chunk-59h87pvn.js → chunk-yarsp7h7.js} +1 -1
- package/web/chunk-yarsp7h7.js.br +0 -0
- package/web/chunk-yarsp7h7.js.gz +0 -0
- package/web/{chunk-x2hxq5yr.js → chunk-yw5wyz1q.js} +1 -1
- package/web/chunk-yw5wyz1q.js.br +0 -0
- package/web/chunk-yw5wyz1q.js.gz +0 -0
- package/web/chunk-z3ea4vhk.js +1 -0
- package/web/chunk-z3ea4vhk.js.br +0 -0
- package/web/chunk-z3ea4vhk.js.gz +0 -0
- package/web/{chunk-6pbhqbv0.js → chunk-z7adzvfz.js} +1 -1
- package/web/chunk-z7adzvfz.js.br +0 -0
- package/web/chunk-z7adzvfz.js.gz +0 -0
- package/web/{chunk-mh3nkkpx.js → chunk-zb01zmms.js} +6 -6
- package/web/chunk-zb01zmms.js.br +0 -0
- package/web/chunk-zb01zmms.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-5tsfqsmf.js +0 -2
- package/chunk-6hatfwsq.js +0 -2
- package/chunk-78ky455y.js +0 -4
- package/chunk-8mqaq042.js +0 -2
- 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-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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{t,k,sn,A,R,I,L,D,P,
|
|
1
|
+
import{t,k,sn,A,R,I,L,D,P,N,u,Mr,h,_e,ra,hl,So,To,ia}from"./chunk-dbv8qpen.js";import{Kr,kr}from"./chunk-5cp4n5ck.js";import{$t}from"./chunk-4mypk63p.js";function nt(n,l){let y=0;if(l===void 0){for(let g of n)if(g=+g)y+=g}else{let g=-1;for(let _ of n)if(_=+l(_,++g,n))y+=_}return y}function ht(n){var l=n.length/6|0,y=Array(l),g=0;while(g<l)y[g]="#"+n.slice(g*6,++g*6);return y}var dt=ht("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Lt(n){return n.source}function Et(n){return n.target}function Pt(n){let l=Lt,y=Et,g=So,_=To,w=null,m=null,B=ra(i);function i(){let o,f=hl.call(arguments),v=l.apply(this,f),x=y.apply(this,f);if(w==null)m=n(o=B());if(m.lineStart(),f[0]=v,m.point(+g.apply(this,f),+_.apply(this,f)),f[0]=x,m.point(+g.apply(this,f),+_.apply(this,f)),m.lineEnd(),o)return m=null,o+""||null}return i.source=function(o){return arguments.length?(l=o,i):l},i.target=function(o){return arguments.length?(y=o,i):y},i.x=function(o){return arguments.length?(g=typeof o==="function"?o:_e(+o),i):g},i.y=function(o){return arguments.length?(_=typeof o==="function"?o:_e(+o),i):_},i.context=function(o){return arguments.length?(o==null?w=m=null:m=n(w=o),i):w},i}function kt(){return Pt(ia)}function At(n){return n.target.depth}function pt(n){return n.depth}function yt(n,l){return l-1-n.height}function rt(n,l){return n.sourceLinks.length?n.depth:l-1}function mt(n){return n.targetLinks.length?n.depth:n.sourceLinks.length?kr(n.sourceLinks,At)-1:0}function tt(n){return function(){return n}}function bt(n,l){return st(n.source,l.source)||n.index-l.index}function vt(n,l){return st(n.target,l.target)||n.index-l.index}function st(n,l){return n.y0-l.y0}function gt(n){return n.value}function Tt(n){return n.index}function Ct(n){return n.nodes}function Bt(n){return n.links}function _t(n,l){let y=n.get(l);if(!y)throw Error("missing: "+l);return y}function St({nodes:n}){for(let l of n){let y=l.y0,g=y;for(let _ of l.sourceLinks)_.y0=y+_.width/2,y+=_.width;for(let _ of l.targetLinks)_.y1=g+_.width/2,g+=_.width}}function ot(){let n=0,l=0,y=1,g=1,_=24,w=8,m,B=Tt,i=rt,o,f,v=Ct,x=Bt,d=6;function S(){let e={nodes:v.apply(null,arguments),links:x.apply(null,arguments)};return O(e),G(e),W(e),U(e),z(e),St(e),e}S.update=function(e){return St(e),e},S.nodeId=function(e){return arguments.length?(B=typeof e==="function"?e:tt(e),S):B},S.nodeAlign=function(e){return arguments.length?(i=typeof e==="function"?e:tt(e),S):i},S.nodeSort=function(e){return arguments.length?(o=e,S):o},S.nodeWidth=function(e){return arguments.length?(_=+e,S):_},S.nodePadding=function(e){return arguments.length?(w=m=+e,S):w},S.nodes=function(e){return arguments.length?(v=typeof e==="function"?e:tt(e),S):v},S.links=function(e){return arguments.length?(x=typeof e==="function"?e:tt(e),S):x},S.linkSort=function(e){return arguments.length?(f=e,S):f},S.size=function(e){return arguments.length?(n=l=0,y=+e[0],g=+e[1],S):[y-n,g-l]},S.extent=function(e){return arguments.length?(n=+e[0][0],y=+e[1][0],l=+e[0][1],g=+e[1][1],S):[[n,l],[y,g]]},S.iterations=function(e){return arguments.length?(d=+e,S):d};function O({nodes:e,links:a}){for(let[r,s]of e.entries())s.index=r,s.sourceLinks=[],s.targetLinks=[];let c=new Map(e.map((r,s)=>[B(r,s,e),r]));for(let[r,s]of a.entries()){s.index=r;let{source:p,target:b}=s;if(typeof p!=="object")p=s.source=_t(c,p);if(typeof b!=="object")b=s.target=_t(c,b);p.sourceLinks.push(s),b.targetLinks.push(s)}if(f!=null)for(let{sourceLinks:r,targetLinks:s}of e)r.sort(f),s.sort(f)}function G({nodes:e}){for(let a of e)a.value=a.fixedValue===void 0?Math.max(nt(a.sourceLinks,gt),nt(a.targetLinks,gt)):a.fixedValue}function W({nodes:e}){let a=e.length,c=new Set(e),r=new Set,s=0;while(c.size){for(let p of c){p.depth=s;for(let{target:b}of p.sourceLinks)r.add(b)}if(++s>a)throw Error("circular link");c=r,r=new Set}}function U({nodes:e}){let a=e.length,c=new Set(e),r=new Set,s=0;while(c.size){for(let p of c){p.height=s;for(let{source:b}of p.targetLinks)r.add(b)}if(++s>a)throw Error("circular link");c=r,r=new Set}}function Q({nodes:e}){let a=Kr(e,(s)=>s.depth)+1,c=(y-n-_)/(a-1),r=Array(a);for(let s of e){let p=Math.max(0,Math.min(a-1,Math.floor(i.call(null,s,a))));if(s.layer=p,s.x0=n+p*c,s.x1=s.x0+_,r[p])r[p].push(s);else r[p]=[s]}if(o)for(let s of r)s.sort(o);return r}function q(e){let a=kr(e,(c)=>(g-l-(c.length-1)*m)/nt(c,gt));for(let c of e){let r=l;for(let s of c){s.y0=r,s.y1=r+s.value*a,r=s.y1+m;for(let p of s.sourceLinks)p.width=p.value*a}r=(g-r+m)/(c.length+1);for(let s=0;s<c.length;++s){let p=c[s];p.y0+=r*(s+1),p.y1+=r*(s+1)}K(c)}}function z(e){let a=Q(e);m=Math.min(w,(g-l)/(Kr(a,(c)=>c.length)-1)),q(a);for(let c=0;c<d;++c){let r=Math.pow(0.99,c),s=Math.max(1-r,(c+1)/d);Y(a,r,s),E(a,r,s)}}function E(e,a,c){for(let r=1,s=e.length;r<s;++r){let p=e[r];for(let b of p){let J=0,M=0;for(let{source:C,value:ft}of b.targetLinks){let et=ft*(b.layer-C.layer);J+=T(C,b)*et,M+=et}if(!(M>0))continue;let F=(J/M-b.y0)*a;b.y0+=F,b.y1+=F,Z(b)}if(o===void 0)p.sort(st);H(p,c)}}function Y(e,a,c){for(let r=e.length,s=r-2;s>=0;--s){let p=e[s];for(let b of p){let J=0,M=0;for(let{target:C,value:ft}of b.sourceLinks){let et=ft*(C.layer-b.layer);J+=V(b,C)*et,M+=et}if(!(M>0))continue;let F=(J/M-b.y0)*a;b.y0+=F,b.y1+=F,Z(b)}if(o===void 0)p.sort(st);H(p,c)}}function H(e,a){let c=e.length>>1,r=e[c];j(e,r.y0-m,c-1,a),X(e,r.y1+m,c+1,a),j(e,g,e.length-1,a),X(e,l,0,a)}function X(e,a,c,r){for(;c<e.length;++c){let s=e[c],p=(a-s.y0)*r;if(p>0.000001)s.y0+=p,s.y1+=p;a=s.y1+m}}function j(e,a,c,r){for(;c>=0;--c){let s=e[c],p=(s.y1-a)*r;if(p>0.000001)s.y0-=p,s.y1-=p;a=s.y0-m}}function Z({sourceLinks:e,targetLinks:a}){if(f===void 0){for(let{source:{sourceLinks:c}}of a)c.sort(vt);for(let{target:{targetLinks:c}}of e)c.sort(bt)}}function K(e){if(f===void 0)for(let{sourceLinks:a,targetLinks:c}of e)a.sort(vt),c.sort(bt)}function T(e,a){let c=e.y0-(e.sourceLinks.length-1)*m/2;for(let{target:r,width:s}of e.sourceLinks){if(r===a)break;c+=s+m}for(let{source:r,width:s}of a.targetLinks){if(r===e)break;c-=s}return c}function V(e,a){let c=a.y0-(a.targetLinks.length-1)*m/2;for(let{source:r,width:s}of a.targetLinks){if(r===e)break;c+=s+m}for(let{target:r,width:s}of e.sourceLinks){if(r===a)break;c-=s}return c}return S}function Ot(n){return[n.source.x1,n.y0]}function Rt(n){return[n.target.x0,n.y1]}function it(){return kt().source(Ot).target(Rt)}var xt=function(){var n=t(function(B,i,o,f){for(o=o||{},f=B.length;f--;o[B[f]]=i);return o},"o"),l=[1,9],y=[1,10],g=[1,5,10,12],_={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:t(function(i,o,f,v,x,d,S){var O=d.length-1;switch(x){case 7:let G=v.findOrCreateNode(d[O-4].trim().replaceAll('""','"')),W=v.findOrCreateNode(d[O-2].trim().replaceAll('""','"')),U=parseFloat(d[O].trim());v.addLink(G,W,U);break;case 8:case 9:case 11:this.$=d[O];break;case 10:this.$=d[O-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:l,20:y},{1:[2,6],7:11,10:[1,12]},n(y,[2,4],{9:13,5:[1,14]}),{12:[1,15]},n(g,[2,8]),n(g,[2,9]),{19:[1,16]},n(g,[2,11]),{1:[2,1]},{1:[2,5]},n(y,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:l,20:y},{15:18,16:7,17:8,18:l,20:y},{18:[1,19]},n(y,[2,3]),{12:[1,20]},n(g,[2,10]),{15:21,16:7,17:8,18:l,20:y},n([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:t(function(i,o){if(o.recoverable)this.trace(i);else{var f=Error(i);throw f.hash=o,f}},"parseError"),parse:t(function(i){var o=this,f=[0],v=[],x=[null],d=[],S=this.table,O="",G=0,W=0,U=0,Q=2,q=1,z=d.slice.call(arguments,1),E=Object.create(this.lexer),Y={yy:{}};for(var H in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,H))Y.yy[H]=this.yy[H];if(E.setInput(i,Y.yy),Y.yy.lexer=E,Y.yy.parser=this,typeof E.yylloc>"u")E.yylloc={};var X=E.yylloc;d.push(X);var j=E.options&&E.options.ranges;if(typeof Y.yy.parseError==="function")this.parseError=Y.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Z(C){f.length=f.length-2*C,x.length=x.length-C,d.length=d.length-C}t(Z,"popStack");function K(){var C=v.pop()||E.lex()||q;if(typeof C!=="number"){if(C instanceof Array)v=C,C=v.pop();C=o.symbols_[C]||C}return C}t(K,"lex");var T,V,e,a,c,r,s={},p,b,J,M;while(!0){if(e=f[f.length-1],this.defaultActions[e])a=this.defaultActions[e];else{if(T===null||typeof T>"u")T=K();a=S[e]&&S[e][T]}if(typeof a>"u"||!a.length||!a[0]){var F="";M=[];for(p in S[e])if(this.terminals_[p]&&p>Q)M.push("'"+this.terminals_[p]+"'");if(E.showPosition)F="Parse error on line "+(G+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
|
-
Expecting `+
|
|
3
|
+
Expecting `+M.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else F="Parse error on line "+(G+1)+": Unexpected "+(T==q?"end of input":"'"+(this.terminals_[T]||T)+"'");this.parseError(F,{text:E.match,token:this.terminals_[T]||T,line:E.yylineno,loc:X,expected:M})}if(a[0]instanceof Array&&a.length>1)throw Error("Parse Error: multiple actions possible at state: "+e+", token: "+T);switch(a[0]){case 1:if(f.push(T),x.push(E.yytext),d.push(E.yylloc),f.push(a[1]),T=null,!V){if(W=E.yyleng,O=E.yytext,G=E.yylineno,X=E.yylloc,U>0)U--}else T=V,V=null;break;case 2:if(b=this.productions_[a[1]][1],s.$=x[x.length-b],s._$={first_line:d[d.length-(b||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(b||1)].first_column,last_column:d[d.length-1].last_column},j)s._$.range=[d[d.length-(b||1)].range[0],d[d.length-1].range[1]];if(r=this.performAction.apply(s,[O,W,G,Y.yy,a[1],x,d].concat(z)),typeof r<"u")return r;if(b)f=f.slice(0,-1*b*2),x=x.slice(0,-1*b),d=d.slice(0,-1*b);f.push(this.productions_[a[1]][0]),x.push(s.$),d.push(s._$),J=S[f[f.length-2]][f[f.length-1]],f.push(J);break;case 3:return!0}}return!0},"parse")},w=function(){var B={EOF:1,parseError:t(function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw Error(o)},"parseError"),setInput:t(function(i,o){if(this.yy=o||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);if(o)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),i},"input"),unput:t(function(i){var o=i.length,f=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var v=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),f.length-1)this.yylineno-=f.length-1;var x=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:f?(f.length===v.length?this.yylloc.first_column:0)+v[v.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges)this.yylloc.range=[x[0],x[0]+this.yyleng-o];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(i){this.unput(this.match.slice(i))},"less"),pastInput:t(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var i=this.match;if(i.length<20)i+=this._input.substr(0,20-i.length);return(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var i=this.pastInput(),o=Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
5
|
`+o+"^"},"showPosition"),test_match:t(function(i,o){var f,v,x;if(this.options.backtrack_lexer){if(x={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)x.yylloc.range=this.yylloc.range.slice(0)}if(v=i[0].match(/(?:\r\n?|\n).*/g),v)this.yylineno+=v.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],f=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(f)return f;else if(this._backtrack){for(var d in x)this[d]=x[d];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var i,o,f,v;if(!this._more)this.yytext="",this.match="";var x=this._currentRules();for(var d=0;d<x.length;d++)if(f=this._input.match(this.rules[x[d]]),f&&(!o||f[0].length>o[0].length)){if(o=f,v=d,this.options.backtrack_lexer)if(i=this.test_match(f,x[d]),i!==!1)return i;else if(this._backtrack){o=!1;continue}else return!1;else if(!this.options.flex)break}if(o){if(i=this.test_match(o,x[v]),i!==!1)return i;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 o=this.next();if(o)return o;else return this.lex()},"lex"),begin:t(function(o){this.conditionStack.push(o)},"begin"),popState:t(function(){var o=this.conditionStack.length-1;if(o>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(o){if(o=this.conditionStack.length-1-Math.abs(o||0),o>=0)return this.conditionStack[o];else return"INITIAL"},"topState"),pushState:t(function(o){this.begin(o)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(o,f,v,x){var d=x;switch(v){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return B}();_.lexer=w;function m(){this.yy={}}return t(m,"Parser"),m.prototype=_,_.Parser=m,new m}();xt.parser=xt;var at=xt,ct=[],ut=[],lt=new Map,Nt=t(()=>{ct=[],ut=[],lt=new Map,A()},"clear"),Gt=class{constructor(n,l,y=0){this.source=n,this.target=l,this.value=y}static{t(this,"SankeyLink")}},It=t((n,l,y)=>{ct.push(new Gt(n,l,y))},"addLink"),Mt=class{constructor(n){this.ID=n}static{t(this,"SankeyNode")}},Yt=t((n)=>{n=k.sanitizeText(n,u());let l=lt.get(n);if(l===void 0)l=new Mt(n),lt.set(n,l),ut.push(l);return l},"findOrCreateNode"),Dt=t(()=>ut,"getNodes"),jt=t(()=>ct,"getLinks"),zt=t(()=>({nodes:ut.map((n)=>({id:n.ID})),links:ct.map((n)=>({source:n.source.ID,target:n.target.ID,value:n.value}))}),"getGraph"),Vt={nodesMap:lt,getConfig:t(()=>u().sankey,"getConfig"),getNodes:Dt,getLinks:jt,getGraph:zt,addLink:It,findOrCreateNode:Yt,getAccTitle:I,setAccTitle:R,getAccDescription:D,setAccDescription:L,getDiagramTitle:
|
|
7
|
-
${S}${Math.round(s*100)/100}${O}`},"getText"),K=t((r)=>{if(Q==="outlined"){if((r.layer??0)<H)return{x:r.x0-6,anchor:"end"};return{x:r.x1+6,anchor:"start"}}if(r.x0<f/2)return{x:r.x1+6,anchor:"start"};return{x:r.x0-6,anchor:"end"}},"getLabelPosition"),T=o.append("g").attr("class","node-labels").attr("font-size",14),V=t((r)=>T.selectAll(r?`.${r}`:"text").data(z.nodes).join("text").attr("class",r??null).attr("x",(s)=>K(s).x).attr("y",(s)=>(s.y1+s.y0)/2).attr("dy",`${
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var o=this.next();if(o)return o;else return this.lex()},"lex"),begin:t(function(o){this.conditionStack.push(o)},"begin"),popState:t(function(){var o=this.conditionStack.length-1;if(o>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(o){if(o=this.conditionStack.length-1-Math.abs(o||0),o>=0)return this.conditionStack[o];else return"INITIAL"},"topState"),pushState:t(function(o){this.begin(o)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(o,f,v,x){var d=x;switch(v){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return B}();_.lexer=w;function m(){this.yy={}}return t(m,"Parser"),m.prototype=_,_.Parser=m,new m}();xt.parser=xt;var at=xt,ct=[],ut=[],lt=new Map,Nt=t(()=>{ct=[],ut=[],lt=new Map,A()},"clear"),Gt=class{constructor(n,l,y=0){this.source=n,this.target=l,this.value=y}static{t(this,"SankeyLink")}},It=t((n,l,y)=>{ct.push(new Gt(n,l,y))},"addLink"),Mt=class{constructor(n){this.ID=n}static{t(this,"SankeyNode")}},Yt=t((n)=>{n=k.sanitizeText(n,u());let l=lt.get(n);if(l===void 0)l=new Mt(n),lt.set(n,l),ut.push(l);return l},"findOrCreateNode"),Dt=t(()=>ut,"getNodes"),jt=t(()=>ct,"getLinks"),zt=t(()=>({nodes:ut.map((n)=>({id:n.ID})),links:ct.map((n)=>({source:n.source.ID,target:n.target.ID,value:n.value}))}),"getGraph"),Vt={nodesMap:lt,getConfig:t(()=>u().sankey,"getConfig"),getNodes:Dt,getLinks:jt,getGraph:zt,addLink:It,findOrCreateNode:Yt,getAccTitle:I,setAccTitle:R,getAccDescription:D,setAccDescription:L,getDiagramTitle:N,setDiagramTitle:P,clear:Nt},wt=class n{static{t(this,"Uid")}static{this.count=0}static next(l){return new n(l+ ++n.count)}constructor(l){this.id=l,this.href=`#${l}`}toString(){return"url("+this.href+")"}},Ft={left:pt,right:yt,center:mt,justify:rt},Wt=t((n)=>{let l=0,y=0;for(let g of n){let _=g.value??0;if(_>l)l=_,y=g.layer??0}return y},"findCentralNodeLayer"),Ut=t(function(n,l,y,g){let{securityLevel:_,sankey:w}=u(),m=Mr.sankey,B;if(_==="sandbox")B=h("#i"+l);let i=_==="sandbox"?h(B.nodes()[0].contentDocument.body):h("body"),o=_==="sandbox"?i.select(`[id="${l}"]`):h(`[id="${l}"]`),f=w?.width??m.width,v=w?.height??m.width,x=w?.useMaxWidth??m.useMaxWidth,d=w?.nodeAlignment??m.nodeAlignment,S=w?.prefix??m.prefix,O=w?.suffix??m.suffix,G=w?.showValues??m.showValues,W=w?.nodeWidth??m.nodeWidth??10,U=w?.nodePadding??m.nodePadding??12,Q=w?.labelStyle??m.labelStyle??"legacy",q=w?.nodeColors??{},z=g.db.getGraph(),E=Ft[d];ot().nodeId((r)=>r.id).nodeWidth(W).nodePadding(U+(G?15:0)).nodeAlign(E).extent([[0,0],[f,v]])(z);let H=Wt(z.nodes),X=$t(dt),j=t((r)=>q[r]??X(r),"getNodeColor");o.append("g").attr("class","nodes").selectAll(".node").data(z.nodes).join("g").attr("class","node").attr("id",(r)=>(r.uid=wt.next("node-")).id).attr("transform",function(r){return"translate("+r.x0+","+r.y0+")"}).attr("x",(r)=>r.x0).attr("y",(r)=>r.y0).append("rect").attr("height",(r)=>r.y1-r.y0).attr("width",(r)=>r.x1-r.x0).attr("fill",(r)=>j(r.id));let Z=t(({id:r,value:s})=>{if(!G)return r;return`${r}
|
|
7
|
+
${S}${Math.round(s*100)/100}${O}`},"getText"),K=t((r)=>{if(Q==="outlined"){if((r.layer??0)<H)return{x:r.x0-6,anchor:"end"};return{x:r.x1+6,anchor:"start"}}if(r.x0<f/2)return{x:r.x1+6,anchor:"start"};return{x:r.x0-6,anchor:"end"}},"getLabelPosition"),T=o.append("g").attr("class","node-labels").attr("font-size",14),V=t((r)=>T.selectAll(r?`.${r}`:"text").data(z.nodes).join("text").attr("class",r??null).attr("x",(s)=>K(s).x).attr("y",(s)=>(s.y1+s.y0)/2).attr("dy",`${G?"0":"0.35"}em`).attr("text-anchor",(s)=>K(s).anchor).text(Z),"appendLabel");if(Q==="outlined")V("sankey-label-bg"),V("sankey-label-fg");else V();let e=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",0.5).selectAll(".link").data(z.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),a=w?.linkColor??"gradient";if(a==="gradient"){let r=e.append("linearGradient").attr("id",(s)=>(s.uid=wt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",(s)=>s.source.x1).attr("x2",(s)=>s.target.x0);r.append("stop").attr("offset","0%").attr("stop-color",(s)=>j(s.source.id)),r.append("stop").attr("offset","100%").attr("stop-color",(s)=>j(s.target.id))}let c;switch(a){case"gradient":c=t((r)=>r.uid,"coloring");break;case"source":c=t((r)=>j(r.source.id),"coloring");break;case"target":c=t((r)=>j(r.target.id),"coloring");break;default:c=a}e.append("path").attr("d",it()).attr("stroke",c).attr("stroke-width",(r)=>Math.max(1,r.width)),sn(void 0,o,0,x)},"draw"),Ht={draw:Ut},Xt=t((n)=>n.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
8
|
`).trim(),"prepareTextForParsing"),Jt=t((n)=>`.label {
|
|
9
9
|
font-family: ${n.fontFamily};
|
|
10
10
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ee,r,e,n,y,ye,oe}from"./chunk-
|
|
1
|
+
import{ee,r,e,n,y,ye,oe}from"./chunk-b83bzjcx.js";import{jn,Hr}from"./chunk-abahqsws.js";import"./chunk-m5b7hny2.js";function B({connection:p}){let{Button:l,ModelIcon:u,ModelSelector:f,SettingGroup:d,SettingRow:h,Switch:v,cn:x}=y(),c=ee(),[S,b]=r(""),s=Hr({connection:p,endpoint:"/api/plugins/agents/settings",loadError:"读取理事会设置失败",toBody:(t)=>({schemaVersion:1,models:t.models,research:t.research}),differs:(t,i)=>JSON.stringify(t.models)!==JSON.stringify(i.models)||t.research!==i.research}),N=(t)=>{if(!t)return;s.edit((i)=>{if(i.models.includes(t)||i.models.length>=8)return i;return{...i,models:[...i.models,t]}}),b("")},k=(t)=>{s.edit((i)=>({...i,models:i.models.filter((o)=>o!==t)}))},a=s.settings?.models??[];return n("form",{id:c,onSubmit:s.save,className:"min-w-0 space-y-5",children:[e(d,{title:"参会模型",description:`已选 ${a.length}/8,至少 2 个模型参与群聊交叉审查`,children:n("ul",{className:"divide-y divide-line/60",children:[a.map((t)=>{let i=s.modelList.models.find((C)=>C.id===t),o=t.indexOf("/"),m=o<0?"":t.slice(0,o),g=i?.name??(o<0?t:t.slice(o+1));return n("li",{title:t,className:"group flex min-h-11 items-center gap-3",children:[e("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-raised",children:e(u,{modelID:t,className:"size-4",size:16})}),e("span",{className:"min-w-0 flex-1 truncate text-[13px] text-ink",children:g}),m&&e("span",{className:"max-w-32 shrink-0 truncate text-xs text-faint",children:m}),e(l,{type:"button",size:"icon-xs",variant:"ghost",disabled:s.loading||s.saving,"aria-label":`移除 ${g}`,onClick:()=>k(t),className:"text-faint opacity-40 group-hover:opacity-100 hover:text-danger focus-visible:opacity-100",children:e(oe,{className:"size-3.5"})})]},t)}),a.length<8&&n("li",{className:"flex items-center gap-2",children:[e("div",{className:"min-w-0 flex-1",children:e(f,{variant:"add",models:{models:s.modelList.models.filter((t)=>!a.includes(t.id))},value:S,onChange:N})}),e(l,{type:"button",size:"icon-xs",variant:"ghost",disabled:s.loading||s.refreshing||s.saving,"aria-label":"刷新模型列表",title:"刷新模型列表",onClick:()=>void s.load(!0),className:"text-faint hover:text-ink",children:e(ye,{className:x("size-3.5",s.refreshing&&"animate-spin")})})]})]})}),e(d,{title:"流程",children:e(h,{title:"调研阶段",description:"表态前各自先查证,关闭后直接发表意见",children:e(v,{label:"调研阶段",checked:s.settings?.research??!0,disabled:s.loading||s.saving,onCheckedChange:(t)=>{s.edit((i)=>({...i,research:t}))}})})}),e(jn,{formID:c,notice:s.notice,dirty:s.dirty,busy:s.loading||s.saving,saving:s.saving,onReset:s.reset})]})}export{B as CouncilSettingsSection};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v,o,ee,i,r,e,n,y,Sn,ye}from"./chunk-
|
|
1
|
+
import{v,o,ee,i,r,e,n,y,Sn,ye}from"./chunk-b83bzjcx.js";import{jn}from"./chunk-abahqsws.js";import"./chunk-m5b7hny2.js";var F={config:"自定义路径",env:"环境变量",system:"系统预装"},x="chrome://inspect/#remote-debugging";function H({connection:d}){let{Button:w,Input:B,Switch:E,SettingGroup:h,SettingRow:b,cn:S}=y(),N=ee(),[f,R]=r({}),[s,g]=r({}),[a,C]=r(null),[u,A]=r(!0),[k,O]=r(!1),[p,P]=r(!1),[I,c]=r(null),D=i(null),T=(s.executable??"")!==(f.executable??"")||Boolean(s.noSandbox)!==Boolean(f.noSandbox)||Boolean(s.ignoreCertErrors)!==Boolean(f.ignoreCertErrors)||(s.cdpEndpoint??"")!==(f.cdpEndpoint??""),G=v(async(t)=>{O(!0);try{let l=await d.request("/api/plugins/browser/status",{signal:t});C(l)}catch(l){if(!t?.aborted)C({available:!1,error:l instanceof Error?l.message:"无法获取浏览器状态"})}finally{if(!t?.aborted)O(!1)}},[d]);o(()=>{let t=new AbortController;return D.current=t,Promise.all([d.request("/api/plugins/browser/settings",{signal:t.signal}),d.request("/api/plugins/browser/status",{signal:t.signal})]).then(([l,m])=>{if(!t.signal.aborted)R(l),g(l),C(m)}).catch((l)=>{if(!t.signal.aborted)c({type:"error",text:l instanceof Error?l.message:"读取浏览器设置失败"})}).finally(()=>{if(!t.signal.aborted)A(!1)}),()=>t.abort()},[d]);let q=async(t)=>{if(t?.preventDefault(),p||u)return;let l=new AbortController;P(!0),c(null);try{if(await d.request("/api/plugins/browser/settings",{method:"PATCH",signal:l.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),!l.signal.aborted)R(s),c({type:"success",text:"设置已保存,将在浏览器进程下次启动时生效。"}),await G(l.signal)}catch(m){if(!l.signal.aborted)c({type:"error",text:m instanceof Error?m.message:"保存设置失败"})}finally{if(!l.signal.aborted)P(!1)}},U=()=>{g(f),c(null)},L=async()=>{try{await navigator.clipboard.writeText(x),c({type:"success",text:"已复制,粘贴到 Chrome 地址栏打开后开启远程调试。"})}catch{c({type:"error",text:`无法写入剪贴板,请手动复制:${x}`})}},_=a?.user?.available===!1,z="首次连接时在 Chrome 弹窗中点「允许」";if(_)z=s.cdpEndpoint?e("span",{className:"break-words text-danger",children:a?.user?.error}):"在 Chrome 打开远程调试设置页并开启";return n("form",{id:N,onSubmit:q,className:"min-w-0 space-y-5",children:[e(h,{title:"运行环境",children:e(b,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:S("size-2 shrink-0 rounded-full",a?.available?"bg-success":"bg-danger")}),a?a.available?"浏览器可用":"未检测到可用浏览器":"正在检测…"]}),description:a&&!a.available&&a.error?e("span",{className:"text-danger",children:a.error}):a?.available&&a.source?`来源:${F[a.source]??a.source}`:void 0,children:n(w,{type:"button",size:"sm",variant:"ghost",disabled:u||k,onClick:()=>void G(),className:"text-dim",children:[e(ye,{className:S("size-3.5",k&&"animate-spin")}),"重新检测"]})})}),n(h,{title:"用户浏览器",children:[e(b,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:S("size-2 shrink-0 rounded-full",a?.user?.available?"bg-success":"bg-danger")}),a?.user?a.user.available?"可以连接":"暂不可连接":"正在检测…"]}),description:z,children:!s.cdpEndpoint&&n(w,{type:"button",size:"sm",variant:"secondary",title:x,onClick:()=>void L(),children:[e(Sn,{className:"size-3.5"}),"复制远程调试地址"]})}),e(b,{vertical:!0,title:"调试地址",description:"可选,连接以 --remote-debugging-port 启动的本机浏览器",children:e(B,{id:"browser-cdp-endpoint","aria-label":"浏览器调试地址",disabled:u||p,value:s.cdpEndpoint??"",placeholder:"留空连接日常 Chrome",onChange:(t)=>{g({...s,cdpEndpoint:t.target.value}),c(null)}})})]}),n(h,{title:"启动参数",children:[e(b,{vertical:!0,title:"可执行文件路径",description:"留空时自动探测系统浏览器",children:n("div",{className:"flex gap-2",children:[e(B,{id:"browser-executable",disabled:u||p,value:s.executable??"",placeholder:"自动探测",onChange:(t)=>{g({...s,executable:t.target.value}),c(null)}}),s.executable&&e(w,{type:"button",variant:"ghost",size:"sm",disabled:u||p,onClick:()=>{g({...s,executable:""}),c(null)},className:"shrink-0",children:"清空"})]})}),e(b,{title:"禁用沙箱 (--no-sandbox)",description:"容器或 root 环境使用",children:e(E,{label:"禁用沙箱",disabled:u||p,checked:s.noSandbox??!1,onCheckedChange:(t)=>{g({...s,noSandbox:t}),c(null)}})}),e(b,{title:"忽略证书错误 (--ignore-certificate-errors)",description:"跳过自签名与证书有效性检查",children:e(E,{label:"忽略证书错误",disabled:u||p,checked:s.ignoreCertErrors??!1,onCheckedChange:(t)=>{g({...s,ignoreCertErrors:t}),c(null)}})})]}),e(jn,{formID:N,notice:I,dirty:T,busy:u||p,saving:p,onReset:U})]})}export{H as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-dbv8qpen.js";import"./chunk-p6ma361e.js";import{Ol}from"./chunk-3d3y4tep.js";import"./chunk-5nbmnchg.js";import"./chunk-jyjgvcac.js";import"./chunk-2dykyq1n.js";import"./chunk-acv6gk2b.js";export{Ol as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{re}from"./chunk-
|
|
1
|
+
import{re}from"./chunk-n00se8nk.js";import{t,a,B,G,A,R,I,L,D,P,N,u,_e,na,Ci,Q,Et,X}from"./chunk-dbv8qpen.js";import{fe}from"./chunk-21d8pzcm.js";import{$t}from"./chunk-4mypk63p.js";import{hn}from"./chunk-50wrjr22.js";function tt(e,o){return o<e?-1:o>e?1:o>=e?0:NaN}function et(e){return e}function rt(){var e=et,o=tt,C=null,M=_e(0),g=_e(na),h=_e(0);function l(r){var i,c=(r=Ci(r)).length,m,T,z=0,v=Array(c),s=Array(c),E=+M.apply(this,arguments),F=Math.min(na,Math.max(-na,g.apply(this,arguments)-E)),O,V=Math.min(Math.abs(F)/c,h.apply(this,arguments)),p=V*(F<0?-1:1),b;for(i=0;i<c;++i)if((b=s[v[i]=i]=+e(r[i],i,r))>0)z+=b;if(o!=null)v.sort(function(H,x){return o(s[H],s[x])});else if(C!=null)v.sort(function(H,x){return C(r[H],r[x])});for(i=0,T=z?(F-c*p)/z:0;i<c;++i,E=O)m=v[i],b=s[m],O=E+(b>0?b*T:0)+p,s[m]={data:r[m],index:i,value:b,startAngle:E,endAngle:O,padAngle:V};return s}return l.value=function(r){return arguments.length?(e=typeof r==="function"?r:_e(+r),l):e},l.sortValues=function(r){return arguments.length?(o=r,C=null,l):o},l.sort=function(r){return arguments.length?(C=r,o=null,l):C},l.startAngle=function(r){return arguments.length?(M=typeof r==="function"?r:_e(+r),l):M},l.endAngle=function(r){return arguments.length?(g=typeof r==="function"?r:_e(+r),l):g},l.padAngle=function(r){return arguments.length?(h=typeof r==="function"?r:_e(+r),l):h},l}var ct=B.pie,at={sections:new Map,showData:!1,config:ct},{sections:Z,showData:nt}=at,mt=structuredClone(ct),vt=t(()=>structuredClone(mt),"getConfig"),xt=t(()=>{Z=new Map,nt=at.showData,A()},"clear"),St=t(({label:e,value:o})=>{if(o<0)throw Error(`"${e}" has invalid value: ${o}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);if(!Z.has(e))Z.set(e,o),a.debug(`added new section: ${e}, with value: ${o}`)},"addSection"),yt=t(()=>Z,"getSections"),wt=t((e)=>{nt=e},"setShowData"),At=t(()=>nt,"getShowData"),ut={getConfig:vt,clear:xt,setDiagramTitle:P,getDiagramTitle:N,setAccTitle:R,getAccTitle:I,setAccDescription:L,getAccDescription:D,addSection:St,getSections:yt,setShowData:wt,getShowData:At},Ct=t((e,o)=>{re(e,o),o.setShowData(e.showData),e.sections.map(o.addSection)},"populateDb"),Dt={parse:t(async(e)=>{let o=await fe("pie",e);a.debug(o),Ct(o,ut)},"parse")},Tt=t((e)=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${e.pieStrokeColor};
|
|
4
4
|
stroke-width : ${e.pieStrokeWidth};
|
|
@@ -35,5 +35,5 @@ import{re}from"./chunk-mwfrxgbs.js";import{t,a,B,G,A,R,I,L,D,P,M,u,_e,na,Ci,Q,Et
|
|
|
35
35
|
font-family: ${e.fontFamily};
|
|
36
36
|
font-size: ${e.pieLegendTextSize};
|
|
37
37
|
}
|
|
38
|
-
`,"getStyles"),bt=Tt,kt=t((e)=>{let o=[...e.values()].reduce((g,h)=>g+h,0),C=[...e.entries()].map(([g,h])=>({label:g,value:h})).filter((g)=>g.value/o*100>=1);return rt().value((g)=>g.value).sort(null)(C)},"createPieArcs"),zt=t((e,o,C,
|
|
39
|
-
`+e);let g=
|
|
38
|
+
`,"getStyles"),bt=Tt,kt=t((e)=>{let o=[...e.values()].reduce((g,h)=>g+h,0),C=[...e.entries()].map(([g,h])=>({label:g,value:h})).filter((g)=>g.value/o*100>=1);return rt().value((g)=>g.value).sort(null)(C)},"createPieArcs"),zt=t((e,o,C,M)=>{a.debug(`rendering pie chart
|
|
39
|
+
`+e);let g=M.db,h=u(),l=X(g.getConfig(),h.pie),r=40,i=18,c=4,m=450,T=m,z=Q(o),v=z.append("g");v.attr("transform","translate("+T/2+","+m/2+")");let{themeVariables:s}=h,[E]=Et(s.pieOuterStrokeWidth);E??=2;let{legendPosition:F,textPosition:O}=l,V=l.donutHole>0&&l.donutHole<=0.9?l.donutHole:0,p=Math.min(T,m)/2-r,b=hn().innerRadius(V*p).outerRadius(p),H=hn().innerRadius(p*O).outerRadius(p*O),x=v.append("g");x.append("circle").attr("cx",0).attr("cy",0).attr("r",p+E/2).attr("class","pieOuterCircle");let U=g.getSections(),gt=kt(U),dt=[s.pie1,s.pie2,s.pie3,s.pie4,s.pie5,s.pie6,s.pie7,s.pie8,s.pie9,s.pie10,s.pie11,s.pie12],q=0;U.forEach((n)=>{q+=n});let it=gt.filter((n)=>(n.data.value/q*100).toFixed(0)!=="0"),J=$t(dt).domain([...U.keys()]);x.selectAll("mySlices").data(it).enter().append("path").attr("d",b).attr("fill",(n)=>J(n.data.label)).attr("class",(n)=>{let d="pieCircle";if(l.highlightSlice==="hover")d+=" highlightedOnHover";else if(l.highlightSlice===n.data.label)d+=" highlighted";return d}),x.selectAll("mySlices").data(it).enter().append("text").text((n)=>(n.data.value/q*100).toFixed(0)+"%").attr("transform",(n)=>"translate("+H.centroid(n)+")").style("text-anchor","middle").attr("class","slice");let pt=v.append("text").text(g.getDiagramTitle()).attr("x",0).attr("y",-(m-50)/2).attr("class","pieTitleText"),_=[...U.entries()].map(([n,d])=>({label:n,value:d})),k=v.selectAll(".legend").data(_).enter().append("g").attr("class","legend");k.append("rect").attr("width",i).attr("height",i).style("fill",(n)=>J(n.label)).style("stroke",(n)=>J(n.label)),k.append("text").attr("x",i+c).attr("y",i-c).text((n)=>{if(g.getShowData())return`${n.label} [${n.value}]`;return n.label});let W=Math.max(...k.selectAll("text").nodes().map((n)=>n?.getBoundingClientRect().width??0)),j=m,K=T+r,f=i+c,Y=_.length*f;switch(F){case"center":k.attr("transform",(n,d)=>{let S=f*_.length/2,y=-W/2-(i+c),w=d*f-S;return"translate("+y+","+w+")"});break;case"top":j+=Y,k.attr("transform",(n,d)=>{let S=p,y=-W/2-(i+c),w=d*f-S;return`translate(${y}, ${w})`}),x.attr("transform",()=>`translate(0, ${Y+f})`);break;case"bottom":j+=Y,k.attr("transform",(n,d)=>{let S=-p-f,y=-W/2-(i+c),w=d*f-S;return"translate("+y+","+w+")"});break;case"left":K+=i+c+W,k.attr("transform",(n,d)=>{let S=f*_.length/2,y=-p-(i+c),w=d*f-S;return"translate("+y+","+w+")"}),x.attr("transform",()=>`translate(${W+i+c}, 0)`);break;case"right":default:K+=i+c+W,k.attr("transform",(n,d)=>{let S=f*_.length/2,y=12*i,w=d*f-S;return"translate("+y+","+w+")"});break}let ot=pt.node()?.getBoundingClientRect().width??0,ft=T/2-ot/2,ht=T/2+ot/2,lt=Math.min(0,ft),st=Math.max(K,ht)-lt;z.attr("viewBox",`${lt} 0 ${st} ${j}`),G(z,j,st,l.useMaxWidth)},"draw"),Mt={draw:zt},qt={parser:Dt,db:ut,renderer:Mt,styles:bt};export{qt as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t,a,u,O,bn,vl,cn,Qn,_n,la,Jn}from"./chunk-v2bkkhb8.js";import{Ve,ht,Ft,Je,nn,qn,ae,Pe,Qt,Vn,Jt,Ea,ao,io,oo,Sr,yn,so,Tr,gt,Er,Mn,vn,Ar,Wn,Rr,lo,co,Aa,We,uo,Lr,Gn,Ir,Ra,La,Hn,po,Ia,mo,bi,rn,Da,fo,ho,go,At,Ma,Na,Dr,yo,Pa,b,zt,an,Ge,Yn,xe}from"./chunk-1ps9fj5n.js";import{to,no,J,Qr,al,ro,Ta}from"./chunk-1cwyy3gh.js";import{wn}from"./chunk-qjg6dw46.js";var sr={};wn(sr,{default:()=>Q});var zn=/\s/;function Kn(r){var e=r.length;while(e--&&zn.test(r.charAt(e)));return e}var Zr=Kn;var Zn=/^\s+/;function $n(r){return r?r.slice(0,Zr(r)+1).replace(Zn,""):r}var $r=$n;var re=NaN,eo=/^[-+]0x[0-9a-f]+$/i,vo=/^0b[01]+$/i,bo=/^0o[0-7]+$/i,wo=parseInt;function _o(r){if(typeof r=="number")return r;if(nn(r))return re;if(Pe(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Pe(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=$r(r);var n=vo.test(r);return n||bo.test(r)?wo(r.slice(2),n?2:8):eo.test(r)?re:+r}var ee=_o;var te=1/0,Eo=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;function xo(r){if(!r)return r===0?r:0;if(r=ee(r),r===te||r===-te){var e=r<0?-1:1;return e*Eo}return r===r?r:0}var V=xo;function Oo(r){var e=V(r),n=e%1;return e===e?n?e-n:e:0}var ne=Oo;var oe=Object.create,Lo=function(){function r(){}return function(e){if(!Pe(e))return{};if(oe)return oe(e);r.prototype=e;var n=new r;return r.prototype=void 0,n}}(),ie=Lo;function Io(r,e){var n=-1,o=r.length;e||(e=Array(o));while(++n<o)e[n]=r[n];return e}var ar=Io;function So(r,e,n){if(e=="__proto__"&&Ea)Ea(r,e,{configurable:!0,enumerable:!0,value:n,writable:!0});else r[e]=n}var M=So;var No=Object.prototype,Po=No.hasOwnProperty;function ko(r,e,n){var o=r[e];if(!(Po.call(r,e)&&yn(o,n))||n===void 0&&!(e in r))M(r,e,n)}var j=ko;function To(r,e,n,o){var i=!n;n||(n={});var f=-1,s=e.length;while(++f<s){var d=e[f],c=o?o(n[d],r[d],d,n,r):void 0;if(c===void 0)c=r[d];if(i)M(n,d,c);else j(n,d,c)}return n}var k=To;function Co(r,e,n){if(!Pe(n))return!1;var o=typeof e;if(o=="number"?gt(n)&&Sr(e,n.length):o=="string"&&(e in n))return yn(n[e],r);return!1}var C=Co;function Ao(r){return Tr(function(e,n){var o=-1,i=n.length,f=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;if(f=r.length>3&&typeof f=="function"?(i--,f):void 0,s&&C(n[0],n[1],s))f=i<3?void 0:f,i=1;e=Object(e);while(++o<i){var d=n[o];if(d)r(e,d,o,f)}return e})}var fe=Ao;function Ro(r){var e=[];if(r!=null)for(var n in Object(r))e.push(n);return e}var se=Ro;var Mo=Object.prototype,jo=Mo.hasOwnProperty;function Bo(r){if(!Pe(r))return se(r);var e=Er(r),n=[];for(var o in r)if(!(o=="constructor"&&(e||!jo.call(r,o))))n.push(o);return n}var ue=Bo;function Do(r){return gt(r)?lo(r,!0):ue(r)}var I=Do;function Fo(r){var e=r==null?0:r.length;return e?La(r,1):[]}var N=Fo;function Go(r){return ao(so(r,void 0,N),r+"")}var de=Go;var Xo=co(Object.getPrototypeOf,Object),Y=Xo;var Uo="[object Object]",Vo=Function.prototype,Yo=Object.prototype,ce=Vo.toString,zo=Yo.hasOwnProperty,Wo=ce.call(Object);function qo(r){if(!Je(r)||Ft(r)!=Uo)return!1;var e=Y(r);if(e===null)return!0;var n=zo.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&ce.call(n)==Wo}var pe=qo;var Ho="\\ud800-\\udfff",Ko="\\u0300-\\u036f",Jo="\\ufe20-\\ufe2f",Zo="\\u20d0-\\u20ff",$o=Ko+Jo+Zo,Qo="\\ufe0e\\ufe0f",ri="\\u200d",ei=RegExp("["+ri+Ho+$o+Qo+"]");function ti(r){return ei.test(r)}var le=ti;function ni(r,e){return r&&k(e,We(e),r)}var me=ni;function oi(r,e){return r&&k(e,I(e),r)}var he=oi;var ye=typeof sr=="object"&&sr&&!sr.nodeType&&sr,ge=ye&&typeof fr=="object"&&fr&&!fr.nodeType&&fr,ii=ge&&ge.exports===ye,ve=ii?Ve.Buffer:void 0,be=ve?ve.allocUnsafe:void 0;function ai(r,e){if(e)return r.slice();var n=r.length,o=be?be(n):new r.constructor(n);return r.copy(o),o}var Q=ai;function fi(r,e){return k(r,Ia(r),e)}var we=fi;var si=Object.getOwnPropertySymbols,ui=!si?po:function(r){var e=[];while(r)Ra(e,Ia(r)),r=Y(r);return e},ur=ui;function di(r,e){return k(r,ur(r),e)}var _e=di;function ci(r){return mo(r,I,ur)}var Ee=ci;var pi=Object.prototype,li=pi.hasOwnProperty;function mi(r){var e=r.length,n=new r.constructor(e);if(e&&typeof r[0]=="string"&&li.call(r,"index"))n.index=r.index,n.input=r.input;return n}var Oe=mi;function hi(r){var e=new r.constructor(r.byteLength);return new Da(e).set(new Da(r)),e}var z=hi;function gi(r,e){var n=e?z(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.byteLength)}var Le=gi;var vi=/\w*$/;function yi(r){var e=new r.constructor(r.source,vi.exec(r));return e.lastIndex=r.lastIndex,e}var Ie=yi;var Se=ht?ht.prototype:void 0,Ne=Se?Se.valueOf:void 0;function wi(r){return Ne?Object(Ne.call(r)):{}}var ke=wi;function _i(r,e){var n=e?z(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.length)}var dr=_i;var Ei="[object Boolean]",xi="[object Date]",Oi="[object Map]",Li="[object Number]",Ii="[object RegExp]",Si="[object Set]",Ni="[object String]",Pi="[object Symbol]",ki="[object ArrayBuffer]",Ti="[object DataView]",Ci="[object Float32Array]",Ai="[object Float64Array]",Ri="[object Int8Array]",Mi="[object Int16Array]",ji="[object Int32Array]",Bi="[object Uint8Array]",Di="[object Uint8ClampedArray]",Fi="[object Uint16Array]",Gi="[object Uint32Array]";function Xi(r,e,n){var o=r.constructor;switch(e){case ki:return z(r);case Ei:case xi:return new o(+r);case Ti:return Le(r,n);case Ci:case Ai:case Ri:case Mi:case ji:case Bi:case Di:case Fi:case Gi:return dr(r,n);case Oi:return new o;case Li:case Ni:return new o(r);case Ii:return Ie(r);case Si:return new o;case Pi:return ke(r)}}var Te=Xi;function Ui(r){return typeof r.constructor=="function"&&!Er(r)?ie(Y(r)):{}}var cr=Ui;var Vi="[object Map]";function Yi(r){return Je(r)&&rn(r)==Vi}var Ce=Yi;var Ae=Wn&&Wn.isMap,zi=Ae?Ar(Ae):Ce,Re=zi;var Wi="[object Set]";function qi(r){return Je(r)&&rn(r)==Wi}var Me=qi;var je=Wn&&Wn.isSet,Hi=je?Ar(je):Me,Be=Hi;var Ki=1,Ji=2,Zi=4,De="[object Arguments]",$i="[object Array]",Qi="[object Boolean]",ra="[object Date]",ea="[object Error]",Fe="[object Function]",ta="[object GeneratorFunction]",na="[object Map]",oa="[object Number]",Xe="[object Object]",ia="[object RegExp]",aa="[object Set]",fa="[object String]",sa="[object Symbol]",ua="[object WeakMap]",da="[object ArrayBuffer]",ca="[object DataView]",pa="[object Float32Array]",ma="[object Float64Array]",ha="[object Int8Array]",ga="[object Int16Array]",va="[object Int32Array]",ba="[object Uint8Array]",ya="[object Uint8ClampedArray]",wa="[object Uint16Array]",_a="[object Uint32Array]",x={};x[De]=x[$i]=x[da]=x[ca]=x[Qi]=x[ra]=x[pa]=x[ma]=x[ha]=x[ga]=x[va]=x[na]=x[oa]=x[Xe]=x[ia]=x[aa]=x[fa]=x[sa]=x[ba]=x[ya]=x[wa]=x[_a]=!0;x[ea]=x[Fe]=x[ua]=!1;function pr(r,e,n,o,i,f){var s,d=e&Ki,c=e&Ji,p=e&Zi;if(n)s=i?n(r,o,i,f):n(r);if(s!==void 0)return s;if(!Pe(r))return r;var l=ae(r);if(l){if(s=Oe(r),!d)return ar(r,s)}else{var m=rn(r),h=m==Fe||m==ta;if(vn(r))return Q(r,d);if(m==Xe||m==De||h&&!i){if(s=c||h?{}:cr(r),!d)return c?_e(r,he(s,r)):we(r,me(s,r))}else{if(!x[m])return i?r:{};s=Te(r,m,d)}}f||(f=new Hn);var v=f.get(r);if(v)return v;if(f.set(r,s),Be(r))r.forEach(function(g){s.add(pr(g,e,n,g,r,f))});else if(Re(r))r.forEach(function(g,_){s.set(_,pr(g,e,n,_,r,f))});var w=p?c?Ee:bi:c?I:We,y=l?void 0:w(r);return io(y||r,function(g,_){if(y)_=g,g=r[_];j(s,_,pr(g,e,n,_,r,f))}),s}var Ue=pr;var xa=1,Oa=4;function Sa(r){return Ue(r,xa|Oa)}var Ye=Sa;var ka=function(){return Ve.Date.now()},yr=ka;var ze=Object.prototype,Ca=ze.hasOwnProperty,ja=Tr(function(r,e){r=Object(r);var n=-1,o=e.length,i=o>2?e[2]:void 0;if(i&&C(e[0],e[1],i))o=1;while(++n<o){var f=e[n],s=I(f),d=-1,c=s.length;while(++d<c){var p=s[d],l=r[p];if(l===void 0||yn(l,ze[p])&&!Ca.call(r,p))r[p]=f[p]}}return r}),qe=ja;function Ba(r,e,n){if(n!==void 0&&!yn(r[e],n)||n===void 0&&!(e in r))M(r,e,n)}var rr=Ba;function Fa(r,e){if(e==="constructor"&&typeof r[e]==="function")return;if(e=="__proto__")return;return r[e]}var er=Fa;function Ga(r){return k(r,I(r))}var He=Ga;function Xa(r,e,n,o,i,f,s){var d=er(r,n),c=er(e,n),p=s.get(c);if(p){rr(r,n,p);return}var l=f?f(d,c,n+"",r,e,s):void 0,m=l===void 0;if(m){var h=ae(c),v=!h&&vn(c),w=!h&&!v&&Rr(c);if(l=c,h||v||w)if(ae(d))l=d;else if(yo(d))l=ar(d);else if(v)m=!1,l=Q(c,!0);else if(w)m=!1,l=dr(c,!0);else l=[];else if(pe(c)||Mn(c)){if(l=d,Mn(d))l=He(d);else if(!Pe(d)||Vn(d))l=cr(c)}else m=!1}if(m)s.set(c,l),i(l,c,o,f,s),s.delete(c);rr(r,n,l)}var Ke=Xa;function Ze(r,e,n,o,i){if(r===e)return;Ma(e,function(f,s){if(i||(i=new Hn),Pe(f))Ke(r,e,s,n,Ze,o,i);else{var d=o?o(er(r,s),f,s+"",r,e,i):void 0;if(d===void 0)d=f;rr(r,s,d)}},I)}var $e=Ze;function Ua(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}var X=Ua;function Va(r){return function(e,n,o){var i=Object(e);if(!gt(e)){var f=At(n,3);e=We(e),n=function(d){return f(i[d],d,i)}}var s=r(e,n,o);return s>-1?i[f?e[s]:s]:void 0}}var Qe=Va;var Ya=Math.max;function za(r,e,n){var o=r==null?0:r.length;if(!o)return-1;var i=n==null?0:ne(n);if(i<0)i=Ya(o+i,0);return oo(r,At(e,3),i)}var rt=za;var Wa=Qe(rt),tr=Wa;function qa(r,e){var n=-1,o=gt(r)?Array(r.length):[];return Dr(r,function(i,f,s){o[++n]=e(i,f,s)}),o}var lr=qa;function Ha(r,e){var n=ae(r)?qn:lr;return n(r,At(e,3))}var E=Ha;function Ka(r,e){return r==null?r:Ma(r,Pa(e),I)}var et=Ka;function Ja(r,e){return r&&Na(r,Pa(e))}var tt=Ja;function Za(r,e){return r>e}var nt=Za;var $a=Object.prototype,Qa=$a.hasOwnProperty;function rf(r,e){return r!=null&&Qa.call(r,e)}var ot=rf;function ef(r,e){return r!=null&&fo(r,e,ot)}var mr=ef;var tf="[object String]";function nf(r){return typeof r=="string"||!ae(r)&&Je(r)&&Ft(r)==tf}var it=nf;function of(r,e){return r<e}var hr=of;function af(r,e){var n={};return e=At(e,3),Na(r,function(o,i,f){M(n,i,e(o,i,f))}),n}var W=af;function ff(r,e,n){var o=-1,i=r.length;while(++o<i){var f=r[o],s=e(f);if(s!=null&&(d===void 0?s===s&&!nn(s):n(s,d)))var d=s,c=f}return c}var q=ff;function sf(r){return r&&r.length?q(r,Qt,nt):void 0}var S=sf;var uf=fe(function(r,e,n){$e(r,e,n)}),nr=uf;function df(r){return r&&r.length?q(r,Qt,hr):void 0}var B=df;function cf(r,e){return r&&r.length?q(r,At(e,2),hr):void 0}var H=cf;function pf(r,e,n,o){if(!Pe(r))return r;e=Lr(e,r);var i=-1,f=e.length,s=f-1,d=r;while(d!=null&&++i<f){var c=Gn(e[i]),p=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return r;if(i!=s){var l=d[c];if(p=o?o(l,c,d):void 0,p===void 0)p=Pe(l)?l:Sr(e[i+1])?[]:{}}j(d,c,p),d=d[c]}return r}var at=pf;function lf(r,e,n){var o=-1,i=e.length,f={};while(++o<i){var s=e[o],d=Ir(r,s);if(n(d,s))at(f,Lr(s,r),d)}return f}var ft=lf;function mf(r,e){var n=r.length;r.sort(e);while(n--)r[n]=r[n].value;return r}var st=mf;function hf(r,e){if(r!==e){var n=r!==void 0,o=r===null,i=r===r,f=nn(r),s=e!==void 0,d=e===null,c=e===e,p=nn(e);if(!d&&!p&&!f&&r>e||f&&s&&c&&!d&&!p||o&&s&&c||!n&&c||!i)return 1;if(!o&&!f&&!p&&r<e||p&&n&&i&&!o&&!f||d&&n&&i||!s&&i||!c)return-1}return 0}var ut=hf;function gf(r,e,n){var o=-1,i=r.criteria,f=e.criteria,s=i.length,d=n.length;while(++o<s){var c=ut(i[o],f[o]);if(c){if(o>=d)return c;var p=n[o];return c*(p=="desc"?-1:1)}}return r.index-e.index}var dt=gf;function vf(r,e,n){if(e.length)e=qn(e,function(f){if(ae(f))return function(s){return Ir(s,f.length===1?f[0]:f)};return f});else e=[Qt];var o=-1;e=qn(e,Ar(At));var i=lr(r,function(f,s,d){var c=qn(e,function(p){return p(f)});return{criteria:c,index:++o,value:f}});return st(i,function(f,s){return dt(f,s,n)})}var ct=vf;var bf=go("length"),pt=bf;var mt="\\ud800-\\udfff",yf="\\u0300-\\u036f",wf="\\ufe20-\\ufe2f",_f="\\u20d0-\\u20ff",Ef=yf+wf+_f,xf="\\ufe0e\\ufe0f",Of="["+mt+"]",wr="["+Ef+"]",_r="\\ud83c[\\udffb-\\udfff]",Lf="(?:"+wr+"|"+_r+")",vt="[^"+mt+"]",bt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",If="\\u200d",wt=Lf+"?",_t="["+xf+"]?",Sf="(?:"+If+"(?:"+[vt,bt,yt].join("|")+")"+_t+wt+")*",Nf=_t+wt+Sf,Pf="(?:"+[vt+wr+"?",wr,bt,yt,Of].join("|")+")",lt=RegExp(_r+"(?="+_r+")|"+Pf+Nf,"g");function kf(r){var e=lt.lastIndex=0;while(lt.test(r))++e;return e}var Et=kf;function Tf(r){return le(r)?Et(r):pt(r)}var xt=Tf;function Cf(r,e){return ft(r,e,function(n,o){return ho(r,o)})}var Ot=Cf;var Af=de(function(r,e){return r==null?{}:Ot(r,e)}),K=Af;var{ceil:Rf,max:Mf}=Math;function jf(r,e,n,o){var i=-1,f=Mf(Rf((e-r)/(n||1)),0),s=Array(f);while(f--)s[o?f:++i]=r,r+=n;return s}var Lt=jf;function Bf(r){return function(e,n,o){if(o&&typeof o!="number"&&C(e,n,o))n=o=void 0;if(e=V(e),n===void 0)n=e,e=0;else n=V(n);return o=o===void 0?e<n?1:-1:V(o),Lt(e,n,o,r)}}var It=Bf;var Df=It(),P=Df;var Ff="[object Map]",Gf="[object Set]";function Xf(r){if(r==null)return 0;if(gt(r))return it(r)?xt(r):r.length;var e=rn(r);if(e==Ff||e==Gf)return r.size;return Aa(r).length}var St=Xf;var Uf=Tr(function(r,e){if(r==null)return[];var n=e.length;if(n>1&&C(r,e[0],e[1]))e=[];else if(n>2&&C(e[0],e[1],e[2]))e=[e[0]];return ct(r,La(e,1),[])}),A=Uf;var Vf=0;function Yf(r){var e=++Vf;return uo(r)+e}var Z=Yf;function zf(r,e,n){var o=-1,i=r.length,f=e.length,s={};while(++o<i){var d=o<f?e[o]:void 0;n(s,r[o],d)}return s}var Nt=zf;function Wf(r,e){return Nt(r||[],e||[],j)}var xr=Wf;class Or{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,e=r._prev;if(e!==r)return Pt(e),e}enqueue(r){var e=this._sentinel;if(r._prev&&r._next)Pt(r);r._next=e._next,e._next._prev=r,e._next=r,r._prev=e}toString(){var r=[],e=this._sentinel,n=e._prev;while(n!==e)r.push(JSON.stringify(n,qf)),n=n._prev;return"["+r.join(", ")+"]"}}function Pt(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function qf(r,e){if(r!=="_next"&&r!=="_prev")return e}var Hf=Jt(1);function kt(r,e){if(r.nodeCount()<=1)return[];var n=Jf(r,e||Hf),o=Kf(n.graph,n.buckets,n.zeroIdx);return N(E(o,function(i){return r.outEdges(i.v,i.w)}))}function Kf(r,e,n){var o=[],i=e[e.length-1],f=e[0],s;while(r.nodeCount()){while(s=f.dequeue())Nr(r,e,n,s);while(s=i.dequeue())Nr(r,e,n,s);if(r.nodeCount()){for(var d=e.length-2;d>0;--d)if(s=e[d].dequeue(),s){o=o.concat(Nr(r,e,n,s,!0));break}}}return o}function Nr(r,e,n,o,i){var f=i?[]:void 0;return b(r.inEdges(o.v),function(s){var d=r.edge(s),c=r.node(s.v);if(i)f.push({v:s.v,w:s.w});c.out-=d,Pr(e,n,c)}),b(r.outEdges(o.v),function(s){var d=r.edge(s),c=s.w,p=r.node(c);p.in-=d,Pr(e,n,p)}),r.removeNode(o.v),f}function Jf(r,e){var n=new xe,o=0,i=0;b(r.nodes(),function(d){n.setNode(d,{v:d,in:0,out:0})}),b(r.edges(),function(d){var c=n.edge(d.v,d.w)||0,p=e(d),l=c+p;n.setEdge(d.v,d.w,l),i=Math.max(i,n.node(d.v).out+=p),o=Math.max(o,n.node(d.w).in+=p)});var f=P(i+o+3).map(function(){return new Or}),s=o+1;return b(n.nodes(),function(d){Pr(f,s,n.node(d))}),{graph:n,buckets:f,zeroIdx:s}}function Pr(r,e,n){if(!n.out)r[0].enqueue(n);else if(!n.in)r[r.length-1].enqueue(n);else r[n.out-n.in+e].enqueue(n)}function Tt(r){var e=r.graph().acyclicer==="greedy"?kt(r,n(r)):Zf(r);b(e,function(o){var i=r.edge(o);r.removeEdge(o),i.forwardName=o.name,i.reversed=!0,r.setEdge(o.w,o.v,i,Z("rev"))});function n(o){return function(i){return o.edge(i).weight}}}function Zf(r){var e=[],n={},o={};function i(f){if(Object.prototype.hasOwnProperty.call(o,f))return;o[f]=!0,n[f]=!0,b(r.outEdges(f),function(s){if(Object.prototype.hasOwnProperty.call(n,s.w))e.push(s);else i(s.w)}),delete n[f]}return b(r.nodes(),i),e}function Ct(r){b(r.edges(),function(e){var n=r.edge(e);if(n.reversed){r.removeEdge(e);var o=n.forwardName;delete n.reversed,delete n.forwardName,r.setEdge(e.w,e.v,n,o)}})}function T(r,e,n,o){var i;do i=Z(o);while(r.hasNode(i));return n.dummy=e,r.setNode(i,n),i}function Mt(r){var e=new xe().setGraph(r.graph());return b(r.nodes(),function(n){e.setNode(n,r.node(n))}),b(r.edges(),function(n){var o=e.edge(n.v,n.w)||{weight:0,minlen:1},i=r.edge(n);e.setEdge(n.v,n.w,{weight:o.weight+i.weight,minlen:Math.max(o.minlen,i.minlen)})}),e}function gr(r){var e=new xe({multigraph:r.isMultigraph()}).setGraph(r.graph());return b(r.nodes(),function(n){if(!r.children(n).length)e.setNode(n,r.node(n))}),b(r.edges(),function(n){e.setEdge(n,r.edge(n))}),e}function kr(r,e){var{x:n,y:o}=r,i=e.x-n,f=e.y-o,s=r.width/2,d=r.height/2;if(!i&&!f)throw Error("Not possible to find intersection inside of the rectangle");var c,p;if(Math.abs(f)*s>Math.abs(i)*d){if(f<0)d=-d;c=d*i/f,p=d}else{if(i<0)s=-s;c=s,p=s*f/i}return{x:n+c,y:o+p}}function D(r){var e=E(P(Mr(r)+1),function(){return[]});return b(r.nodes(),function(n){var o=r.node(n),i=o.rank;if(!Ge(i))e[i][o.order]=n}),e}function jt(r){var e=B(E(r.nodes(),function(n){return r.node(n).rank}));b(r.nodes(),function(n){var o=r.node(n);if(mr(o,"rank"))o.rank-=e})}function Bt(r){var e=B(E(r.nodes(),function(f){return r.node(f).rank})),n=[];b(r.nodes(),function(f){var s=r.node(f).rank-e;if(!n[s])n[s]=[];n[s].push(f)});var o=0,i=r.graph().nodeRankFactor;b(n,function(f,s){if(Ge(f)&&s%i!==0)--o;else if(o)b(f,function(d){r.node(d).rank+=o})})}function Cr(r,e,n,o){var i={width:0,height:0};if(arguments.length>=4)i.rank=n,i.order=o;return T(r,"border",i,e)}function Mr(r){return S(E(r.nodes(),function(e){var n=r.node(e).rank;if(!Ge(n))return n}))}function Dt(r,e){var n={lhs:[],rhs:[]};return b(r,function(o){if(e(o))n.lhs.push(o);else n.rhs.push(o)}),n}function Gt(r,e){var n=yr();try{return e()}finally{console.log(r+" time: "+(yr()-n)+"ms")}}function Xt(r,e){return e()}function Vt(r){function e(n){var o=r.children(n),i=r.node(n);if(o.length)b(o,e);if(Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var f=i.minRank,s=i.maxRank+1;f<s;++f)Ut(r,"borderLeft","_bl",n,i,f),Ut(r,"borderRight","_br",n,i,f)}}b(r.children(),e)}function Ut(r,e,n,o,i,f){var s={width:0,height:0,rank:f,borderType:e},d=i[e][f-1],c=T(r,"border",s,n);if(i[e][f]=c,r.setParent(c,o),d)r.setEdge(d,c,{weight:1})}function Wt(r){var e=r.graph().rankdir.toLowerCase();if(e==="lr"||e==="rl")Ht(r)}function qt(r){var e=r.graph().rankdir.toLowerCase();if(e==="bt"||e==="rl")$f(r);if(e==="lr"||e==="rl")Qf(r),Ht(r)}function Ht(r){b(r.nodes(),function(e){Yt(r.node(e))}),b(r.edges(),function(e){Yt(r.edge(e))})}function Yt(r){var e=r.width;r.width=r.height,r.height=e}function $f(r){b(r.nodes(),function(e){jr(r.node(e))}),b(r.edges(),function(e){var n=r.edge(e);if(b(n.points,jr),Object.prototype.hasOwnProperty.call(n,"y"))jr(n)})}function jr(r){r.y=-r.y}function Qf(r){b(r.nodes(),function(e){Br(r.node(e))}),b(r.edges(),function(e){var n=r.edge(e);if(b(n.points,Br),Object.prototype.hasOwnProperty.call(n,"x"))Br(n)})}function Br(r){var e=r.x;r.x=r.y,r.y=e}function Kt(r){r.graph().dummyChains=[],b(r.edges(),function(e){es(r,e)})}function es(r,e){var n=e.v,o=r.node(n).rank,i=e.w,f=r.node(i).rank,s=e.name,d=r.edge(e),c=d.labelRank;if(f===o+1)return;r.removeEdge(e);var p=void 0,l,m;for(m=0,++o;o<f;++m,++o){if(d.points=[],p={width:0,height:0,edgeLabel:d,edgeObj:e,rank:o},l=T(r,"edge",p,"_d"),o===c)p.width=d.width,p.height=d.height,p.dummy="edge-label",p.labelpos=d.labelpos;if(r.setEdge(n,l,{weight:d.weight},s),m===0)r.graph().dummyChains.push(l);n=l}r.setEdge(n,i,{weight:d.weight},s)}function Zt(r){b(r.graph().dummyChains,function(e){var n=r.node(e),o=n.edgeLabel,i;r.setEdge(n.edgeObj,o);while(n.dummy){if(i=r.successors(e)[0],r.removeNode(e),o.points.push({x:n.x,y:n.y}),n.dummy==="edge-label")o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height;e=i,n=r.node(e)}})}function or(r){var e={};function n(o){var i=r.node(o);if(Object.prototype.hasOwnProperty.call(e,o))return i.rank;e[o]=!0;var f=B(E(r.outEdges(o),function(s){return n(s.w)-r.edge(s).minlen}));if(f===Number.POSITIVE_INFINITY||f===void 0||f===null)f=0;return i.rank=f}b(r.sources(),n)}function U(r,e){return r.node(e.w).rank-r.node(e.v).rank-r.edge(e).minlen}function vr(r){var e=new xe({directed:!1}),n=r.nodes()[0],o=r.nodeCount();e.setNode(n,{});var i,f;while(ts(e,r)<o)i=ns(e,r),f=e.hasNode(i.v)?U(r,i):-U(r,i),os(e,r,f);return e}function ts(r,e){function n(o){b(e.nodeEdges(o),function(i){var f=i.v,s=o===f?i.w:f;if(!r.hasNode(s)&&!U(e,i))r.setNode(s,{}),r.setEdge(o,s,{}),n(s)})}return b(r.nodes(),n),r.nodeCount()}function ns(r,e){return H(e.edges(),function(n){if(r.hasNode(n.v)!==r.hasNode(n.w))return U(e,n)})}function os(r,e,n){b(r.nodes(),function(o){e.node(o).rank+=n})}var dh=Jt(1);var vh=Jt(1);Fr.CycleException=ir;function Fr(r){var e={},n={},o=[];function i(f){if(Object.prototype.hasOwnProperty.call(n,f))throw new ir;if(!Object.prototype.hasOwnProperty.call(e,f))n[f]=!0,e[f]=!0,b(r.predecessors(f),i),delete n[f],o.push(f)}if(b(r.sinks(),i),St(e)!==r.nodeCount())throw new ir;return o}function ir(){}ir.prototype=Error();function br(r,e,n){if(!ae(e))e=[e];var o=(r.isDirected()?r.successors:r.neighbors).bind(r),i=[],f={};return b(e,function(s){if(!r.hasNode(s))throw Error("Graph does not have node: "+s);en(r,s,n==="post",f,o,i)}),i}function en(r,e,n,o,i,f){if(!Object.prototype.hasOwnProperty.call(o,e)){if(o[e]=!0,!n)f.push(e);if(b(i(e),function(s){en(r,s,n,o,i,f)}),n)f.push(e)}}function Gr(r,e){return br(r,e,"post")}function Xr(r,e){return br(r,e,"pre")}G.initLowLimValues=Vr;G.initCutValues=Ur;G.calcCutValue=on;G.leaveEdge=sn;G.enterEdge=un;G.exchangeEdges=dn;function G(r){r=Mt(r),or(r);var e=vr(r);Vr(e),Ur(e,r);var n,o;while(n=sn(e))o=un(e,r,n),dn(e,r,n,o)}function Ur(r,e){var n=Gr(r,r.nodes());n=n.slice(0,n.length-1),b(n,function(o){us(r,e,o)})}function us(r,e,n){var o=r.node(n),i=o.parent;r.edge(n,i).cutvalue=on(r,e,n)}function on(r,e,n){var o=r.node(n),i=o.parent,f=!0,s=e.edge(n,i),d=0;if(!s)f=!1,s=e.edge(i,n);return d=s.weight,b(e.nodeEdges(n),function(c){var p=c.v===n,l=p?c.w:c.v;if(l!==i){var m=p===f,h=e.edge(c).weight;if(d+=m?h:-h,cs(r,n,l)){var v=r.edge(n,l).cutvalue;d+=m?-v:v}}}),d}function Vr(r,e){if(arguments.length<2)e=r.nodes()[0];fn(r,{},1,e)}function fn(r,e,n,o,i){var f=n,s=r.node(o);if(e[o]=!0,b(r.neighbors(o),function(d){if(!Object.prototype.hasOwnProperty.call(e,d))n=fn(r,e,n,d,o)}),s.low=f,s.lim=n++,i)s.parent=i;else delete s.parent;return n}function sn(r){return tr(r.edges(),function(e){return r.edge(e).cutvalue<0})}function un(r,e,n){var{v:o,w:i}=n;if(!e.hasEdge(o,i))o=n.w,i=n.v;var f=r.node(o),s=r.node(i),d=f,c=!1;if(f.lim>s.lim)d=s,c=!0;var p=zt(e.edges(),function(l){return c===tn(r,r.node(l.v),d)&&c!==tn(r,r.node(l.w),d)});return H(p,function(l){return U(e,l)})}function dn(r,e,n,o){var{v:i,w:f}=n;r.removeEdge(i,f),r.setEdge(o.v,o.w,{}),Vr(r),Ur(r,e),ds(r,e)}function ds(r,e){var n=tr(r.nodes(),function(i){return!e.node(i).parent}),o=Xr(r,n);o=o.slice(1),b(o,function(i){var f=r.node(i).parent,s=e.edge(i,f),d=!1;if(!s)s=e.edge(f,i),d=!0;e.node(i).rank=e.node(f).rank+(d?s.minlen:-s.minlen)})}function cs(r,e,n){return r.hasEdge(e,n)}function tn(r,e,n){return n.low<=e.lim&&e.lim<=n.lim}function Yr(r){switch(r.graph().ranker){case"network-simplex":pn(r);break;case"tight-tree":ls(r);break;case"longest-path":ps(r);break;default:pn(r)}}var ps=or;function ls(r){or(r),vr(r)}function pn(r){G(r)}function ln(r){var e=T(r,"root",{},"_root"),n=ms(r),o=S(an(n))-1,i=2*o+1;r.graph().nestingRoot=e,b(r.edges(),function(s){r.edge(s).minlen*=i});var f=hs(r)+1;b(r.children(),function(s){mn(r,e,i,f,o,n,s)}),r.graph().nodeRankFactor=i}function mn(r,e,n,o,i,f,s){var d=r.children(s);if(!d.length){if(s!==e)r.setEdge(e,s,{weight:0,minlen:n});return}var c=Cr(r,"_bt"),p=Cr(r,"_bb"),l=r.node(s);if(r.setParent(c,s),l.borderTop=c,r.setParent(p,s),l.borderBottom=p,b(d,function(m){mn(r,e,n,o,i,f,m);var h=r.node(m),v=h.borderTop?h.borderTop:m,w=h.borderBottom?h.borderBottom:m,y=h.borderTop?o:2*o,g=v!==w?1:i-f[s]+1;r.setEdge(c,v,{weight:y,minlen:g,nestingEdge:!0}),r.setEdge(w,p,{weight:y,minlen:g,nestingEdge:!0})}),!r.parent(s))r.setEdge(e,c,{weight:0,minlen:i+f[s]})}function ms(r){var e={};function n(o,i){var f=r.children(o);if(f&&f.length)b(f,function(s){n(s,i+1)});e[o]=i}return b(r.children(),function(o){n(o,1)}),e}function hs(r){return Yn(r.edges(),function(e,n){return e+r.edge(n).weight},0)}function hn(r){var e=r.graph();r.removeNode(e.nestingRoot),delete e.nestingRoot,b(r.edges(),function(n){var o=r.edge(n);if(o.nestingEdge)r.removeEdge(n)})}function gn(r,e,n){var o={},i;b(n,function(f){var s=r.parent(f),d,c;while(s){if(d=r.parent(s),d)c=o[d],o[d]=s;else c=i,i=s;if(c&&c!==s){e.setEdge(c,s);return}s=d}})}function En(r,e,n){var o=vs(r),i=new xe({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(f){return r.node(f)});return b(r.nodes(),function(f){var s=r.node(f),d=r.parent(f);if(s.rank===e||s.minRank<=e&&e<=s.maxRank){if(i.setNode(f),i.setParent(f,d||o),b(r[n](f),function(c){var p=c.v===f?c.w:c.v,l=i.edge(p,f),m=!Ge(l)?l.weight:0;i.setEdge(p,f,{weight:r.edge(c).weight+m})}),Object.prototype.hasOwnProperty.call(s,"minRank"))i.setNode(f,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]})}}),i}function vs(r){var e;while(r.hasNode(e=Z("_root")));return e}function xn(r,e){var n=0;for(var o=1;o<e.length;++o)n+=bs(r,e[o-1],e[o]);return n}function bs(r,e,n){var o=xr(n,E(n,function(p,l){return l})),i=N(E(e,function(p){return A(E(r.outEdges(p),function(l){return{pos:o[l.w],weight:r.edge(l).weight}}),"pos")})),f=1;while(f<n.length)f<<=1;var s=2*f-1;f-=1;var d=E(Array(s),function(){return 0}),c=0;return b(i.forEach(function(p){var l=p.pos+f;d[l]+=p.weight;var m=0;while(l>0){if(l%2)m+=d[l+1];l=l-1>>1,d[l]+=p.weight}c+=p.weight*m})),c}function On(r){var e={},n=zt(r.nodes(),function(d){return!r.children(d).length}),o=S(E(n,function(d){return r.node(d).rank})),i=E(P(o+1),function(){return[]});function f(d){if(mr(e,d))return;e[d]=!0;var c=r.node(d);i[c.rank].push(d),b(r.successors(d),f)}var s=A(n,function(d){return r.node(d).rank});return b(s,f),i}function Ln(r,e){return E(e,function(n){var o=r.inEdges(n);if(!o.length)return{v:n};else{var i=Yn(o,function(f,s){var d=r.edge(s),c=r.node(s.v);return{sum:f.sum+d.weight*c.order,weight:f.weight+d.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}})}function In(r,e){var n={};b(r,function(i,f){var s=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:f};if(!Ge(i.barycenter))s.barycenter=i.barycenter,s.weight=i.weight}),b(e.edges(),function(i){var f=n[i.v],s=n[i.w];if(!Ge(f)&&!Ge(s))s.indegree++,f.out.push(n[i.w])});var o=zt(n,function(i){return!i.indegree});return ys(o)}function ys(r){var e=[];function n(f){return function(s){if(s.merged)return;if(Ge(s.barycenter)||Ge(f.barycenter)||s.barycenter>=f.barycenter)ws(f,s)}}function o(f){return function(s){if(s.in.push(f),--s.indegree===0)r.push(s)}}while(r.length){var i=r.pop();e.push(i),b(i.in.reverse(),n(i)),b(i.out,o(i))}return E(zt(e,function(f){return!f.merged}),function(f){return K(f,["vs","i","barycenter","weight"])})}function ws(r,e){var n=0,o=0;if(r.weight)n+=r.barycenter*r.weight,o+=r.weight;if(e.weight)n+=e.barycenter*e.weight,o+=e.weight;r.vs=e.vs.concat(r.vs),r.barycenter=n/o,r.weight=o,r.i=Math.min(e.i,r.i),e.merged=!0}function Nn(r,e){var n=Dt(r,function(l){return Object.prototype.hasOwnProperty.call(l,"barycenter")}),o=n.lhs,i=A(n.rhs,function(l){return-l.i}),f=[],s=0,d=0,c=0;o.sort(_s(!!e)),c=Sn(f,i,c),b(o,function(l){c+=l.vs.length,f.push(l.vs),s+=l.barycenter*l.weight,d+=l.weight,c=Sn(f,i,c)});var p={vs:N(f)};if(d)p.barycenter=s/d,p.weight=d;return p}function Sn(r,e,n){var o;while(e.length&&(o=X(e)).i<=n)e.pop(),r.push(o.vs),n++;return n}function _s(r){return function(e,n){if(e.barycenter<n.barycenter)return-1;else if(e.barycenter>n.barycenter)return 1;return!r?e.i-n.i:n.i-e.i}}function zr(r,e,n,o){var i=r.children(e),f=r.node(e),s=f?f.borderLeft:void 0,d=f?f.borderRight:void 0,c={};if(s)i=zt(i,function(w){return w!==s&&w!==d});var p=Ln(r,i);b(p,function(w){if(r.children(w.v).length){var y=zr(r,w.v,n,o);if(c[w.v]=y,Object.prototype.hasOwnProperty.call(y,"barycenter"))xs(w,y)}});var l=In(p,n);Es(l,c);var m=Nn(l,o);if(s){if(m.vs=N([s,m.vs,d]),r.predecessors(s).length){var h=r.node(r.predecessors(s)[0]),v=r.node(r.predecessors(d)[0]);if(!Object.prototype.hasOwnProperty.call(m,"barycenter"))m.barycenter=0,m.weight=0;m.barycenter=(m.barycenter*m.weight+h.order+v.order)/(m.weight+2),m.weight+=2}}return m}function Es(r,e){b(r,function(n){n.vs=N(n.vs.map(function(o){if(e[o])return e[o].vs;return o}))})}function xs(r,e){if(!Ge(r.barycenter))r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight;else r.barycenter=e.barycenter,r.weight=e.weight}function Tn(r){var e=Mr(r),n=Pn(r,P(1,e+1),"inEdges"),o=Pn(r,P(e-1,-1,-1),"outEdges"),i=On(r);kn(r,i);var f=Number.POSITIVE_INFINITY,s;for(var d=0,c=0;c<4;++d,++c){Os(d%2?n:o,d%4>=2),i=D(r);var p=xn(r,i);if(p<f)c=0,s=Ye(i),f=p}kn(r,s)}function Pn(r,e,n){return E(e,function(o){return En(r,o,n)})}function Os(r,e){var n=new xe;b(r,function(o){var i=o.graph().root,f=zr(o,i,n,e);b(f.vs,function(s,d){o.node(s).order=d}),gn(o,n,f.vs)})}function kn(r,e){b(e,function(n){b(n,function(o,i){r.node(o).order=i})})}function Cn(r){var e=Is(r);b(r.graph().dummyChains,function(n){var o=r.node(n),i=o.edgeObj,f=Ls(r,e,i.v,i.w),{path:s,lca:d}=f,c=0,p=s[c],l=!0;while(n!==i.w){if(o=r.node(n),l){while((p=s[c])!==d&&r.node(p).maxRank<o.rank)c++;if(p===d)l=!1}if(!l){while(c<s.length-1&&r.node(p=s[c+1]).minRank<=o.rank)c++;p=s[c]}r.setParent(n,p),n=r.successors(n)[0]}})}function Ls(r,e,n,o){var i=[],f=[],s=Math.min(e[n].low,e[o].low),d=Math.max(e[n].lim,e[o].lim),c,p;c=n;do c=r.parent(c),i.push(c);while(c&&(e[c].low>s||d>e[c].lim));p=c,c=o;while((c=r.parent(c))!==p)f.push(c);return{path:i.concat(f.reverse()),lca:p}}function Is(r){var e={},n=0;function o(i){var f=n;b(r.children(i),o),e[i]={low:f,lim:n++}}return b(r.children(),o),e}function Ss(r,e){var n={};function o(i,f){var s=0,d=0,c=i.length,p=X(f);return b(f,function(l,m){var h=Ps(r,l),v=h?r.node(h).order:c;if(h||l===p)b(f.slice(d,m+1),function(w){b(r.predecessors(w),function(y){var g=r.node(y),_=g.order;if((_<s||v<_)&&!(g.dummy&&r.node(w).dummy))An(n,y,w)})}),d=m+1,s=v}),f}return Yn(e,o),n}function Ns(r,e){var n={};function o(f,s,d,c,p){var l;b(P(s,d),function(m){if(l=f[m],r.node(l).dummy)b(r.predecessors(l),function(h){var v=r.node(h);if(v.dummy&&(v.order<c||v.order>p))An(n,h,l)})})}function i(f,s){var d=-1,c,p=0;return b(s,function(l,m){if(r.node(l).dummy==="border"){var h=r.predecessors(l);if(h.length)c=r.node(h[0]).order,o(s,p,m,d,c),p=m,d=c}o(s,p,s.length,c,f.length)}),s}return Yn(e,i),n}function Ps(r,e){if(r.node(e).dummy)return tr(r.predecessors(e),function(n){return r.node(n).dummy})}function An(r,e,n){if(e>n){var o=e;e=n,n=o}if(!Object.prototype.hasOwnProperty.call(r,e))Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=r[e];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function ks(r,e,n){if(e>n){var o=e;e=n,n=o}return!!r[e]&&Object.prototype.hasOwnProperty.call(r[e],n)}function Ts(r,e,n,o){var i={},f={},s={};return b(e,function(d){b(d,function(c,p){i[c]=c,f[c]=c,s[c]=p})}),b(e,function(d){var c=-1;b(d,function(p){var l=o(p);if(l.length){l=A(l,function(y){return s[y]});var m=(l.length-1)/2;for(var h=Math.floor(m),v=Math.ceil(m);h<=v;++h){var w=l[h];if(f[p]===p&&c<s[w]&&!ks(n,p,w))f[w]=p,f[p]=i[p]=i[w],c=s[w]}}})}),{root:i,align:f}}function Cs(r,e,n,o,i){var f={},s=As(r,e,n,i),d=i?"borderLeft":"borderRight";function c(m,h){var v=s.nodes(),w=v.pop(),y={};while(w){if(y[w])m(w);else y[w]=!0,v.push(w),v=v.concat(h(w));w=v.pop()}}function p(m){f[m]=s.inEdges(m).reduce(function(h,v){return Math.max(h,f[v.v]+s.edge(v))},0)}function l(m){var h=s.outEdges(m).reduce(function(w,y){return Math.min(w,f[y.w]-s.edge(y))},Number.POSITIVE_INFINITY),v=r.node(m);if(h!==Number.POSITIVE_INFINITY&&v.borderType!==d)f[m]=Math.max(f[m],h)}return c(p,s.predecessors.bind(s)),c(l,s.successors.bind(s)),b(o,function(m){f[m]=f[n[m]]}),f}function As(r,e,n,o){var i=new xe,f=r.graph(),s=Bs(f.nodesep,f.edgesep,o);return b(e,function(d){var c;b(d,function(p){var l=n[p];if(i.setNode(l),c){var m=n[c],h=i.edge(m,l);i.setEdge(m,l,Math.max(s(r,p,c),h||0))}c=p})}),i}function Rs(r,e){return H(an(e),function(n){var{NEGATIVE_INFINITY:o,POSITIVE_INFINITY:i}=Number;return et(n,function(f,s){var d=Ds(r,s)/2;o=Math.max(f+d,o),i=Math.min(f-d,i)}),o-i})}function Ms(r,e){var n=an(e),o=B(n),i=S(n);b(["u","d"],function(f){b(["l","r"],function(s){var d=f+s,c=r[d],p;if(c===e)return;var l=an(c);if(p=s==="l"?o-B(l):i-S(l),p)r[d]=W(c,function(m){return m+p})})})}function js(r,e){return W(r.ul,function(n,o){if(e)return r[e.toLowerCase()][o];else{var i=A(E(r,o));return(i[1]+i[2])/2}})}function Rn(r){var e=D(r),n=nr(Ss(r,e),Ns(r,e)),o={},i;b(["u","d"],function(s){i=s==="u"?e:an(e).reverse(),b(["l","r"],function(d){if(d==="r")i=E(i,function(m){return an(m).reverse()});var c=(s==="u"?r.predecessors:r.successors).bind(r),p=Ts(r,i,n,c),l=Cs(r,i,p.root,p.align,d==="r");if(d==="r")l=W(l,function(m){return-m});o[s+d]=l})});var f=Rs(r,o);return Ms(o,f),js(o,r.graph().align)}function Bs(r,e,n){return function(o,i,f){var s=o.node(i),d=o.node(f),c=0,p;if(c+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":p=-s.width/2;break;case"r":p=s.width/2;break}if(p)c+=n?p:-p;if(p=0,c+=(s.dummy?e:r)/2,c+=(d.dummy?e:r)/2,c+=d.width/2,Object.prototype.hasOwnProperty.call(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":p=d.width/2;break;case"r":p=-d.width/2;break}if(p)c+=n?p:-p;return p=0,c}}function Ds(r,e){return r.node(e).width}function jn(r){r=gr(r),Fs(r),tt(Rn(r),function(e,n){r.node(n).x=e})}function Fs(r){var e=D(r),n=r.graph().ranksep,o=0;b(e,function(i){var f=S(E(i,function(s){return r.node(s).height}));b(i,function(s){r.node(s).y=o+f/2}),o+=f+n})}function Hr(r,e){var n=e&&e.debugTiming?Gt:Xt;n("layout",()=>{var o=n(" buildLayoutGraph",()=>Js(r));n(" runLayout",()=>Gs(o,n)),n(" updateInputGraph",()=>Xs(r,o))})}function Gs(r,e){e(" makeSpaceForEdgeLabels",()=>Zs(r)),e(" removeSelfEdges",()=>au(r)),e(" acyclic",()=>Tt(r)),e(" nestingGraph.run",()=>ln(r)),e(" rank",()=>Yr(gr(r))),e(" injectEdgeLabelProxies",()=>$s(r)),e(" removeEmptyRanks",()=>Bt(r)),e(" nestingGraph.cleanup",()=>hn(r)),e(" normalizeRanks",()=>jt(r)),e(" assignRankMinMax",()=>Qs(r)),e(" removeEdgeLabelProxies",()=>ru(r)),e(" normalize.run",()=>Kt(r)),e(" parentDummyChains",()=>Cn(r)),e(" addBorderSegments",()=>Vt(r)),e(" order",()=>Tn(r)),e(" insertSelfEdges",()=>fu(r)),e(" adjustCoordinateSystem",()=>Wt(r)),e(" position",()=>jn(r)),e(" positionSelfEdges",()=>su(r)),e(" removeBorderNodes",()=>iu(r)),e(" normalize.undo",()=>Zt(r)),e(" fixupEdgeLabelCoords",()=>nu(r)),e(" undoCoordinateSystem",()=>qt(r)),e(" translateGraph",()=>eu(r)),e(" assignNodeIntersects",()=>tu(r)),e(" reversePoints",()=>ou(r)),e(" acyclic.undo",()=>Ct(r))}function Xs(r,e){b(r.nodes(),function(n){var o=r.node(n),i=e.node(n);if(o){if(o.x=i.x,o.y=i.y,e.children(n).length)o.width=i.width,o.height=i.height}}),b(r.edges(),function(n){var o=r.edge(n),i=e.edge(n);if(o.points=i.points,Object.prototype.hasOwnProperty.call(i,"x"))o.x=i.x,o.y=i.y}),r.graph().width=e.graph().width,r.graph().height=e.graph().height}var Us=["nodesep","edgesep","ranksep","marginx","marginy"],Vs={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Ys=["acyclicer","ranker","rankdir","align"],zs=["width","height"],Ws={width:0,height:0},qs=["minlen","weight","width","height","labeloffset"],Hs={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ks=["labelpos"];function Js(r){var e=new xe({multigraph:!0,compound:!0}),n=qr(r.graph());return e.setGraph(nr({},Vs,Wr(n,Us),K(n,Ys))),b(r.nodes(),function(o){var i=qr(r.node(o));e.setNode(o,qe(Wr(i,zs),Ws)),e.setParent(o,r.parent(o))}),b(r.edges(),function(o){var i=qr(r.edge(o));e.setEdge(o,nr({},Hs,Wr(i,qs),K(i,Ks)))}),e}function Zs(r){var e=r.graph();e.ranksep/=2,b(r.edges(),function(n){var o=r.edge(n);if(o.minlen*=2,o.labelpos.toLowerCase()!=="c")if(e.rankdir==="TB"||e.rankdir==="BT")o.width+=o.labeloffset;else o.height+=o.labeloffset})}function $s(r){b(r.edges(),function(e){var n=r.edge(e);if(n.width&&n.height){var o=r.node(e.v),i=r.node(e.w),f={rank:(i.rank-o.rank)/2+o.rank,e};T(r,"edge-proxy",f,"_ep")}})}function Qs(r){var e=0;b(r.nodes(),function(n){var o=r.node(n);if(o.borderTop)o.minRank=r.node(o.borderTop).rank,o.maxRank=r.node(o.borderBottom).rank,e=S(e,o.maxRank)}),r.graph().maxRank=e}function ru(r){b(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="edge-proxy")r.edge(n.e).labelRank=n.rank,r.removeNode(e)})}function eu(r){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,f=r.graph(),s=f.marginx||0,d=f.marginy||0;function c(p){var{x:l,y:m,width:h,height:v}=p;e=Math.min(e,l-h/2),n=Math.max(n,l+h/2),o=Math.min(o,m-v/2),i=Math.max(i,m+v/2)}b(r.nodes(),function(p){c(r.node(p))}),b(r.edges(),function(p){var l=r.edge(p);if(Object.prototype.hasOwnProperty.call(l,"x"))c(l)}),e-=s,o-=d,b(r.nodes(),function(p){var l=r.node(p);l.x-=e,l.y-=o}),b(r.edges(),function(p){var l=r.edge(p);if(b(l.points,function(m){m.x-=e,m.y-=o}),Object.prototype.hasOwnProperty.call(l,"x"))l.x-=e;if(Object.prototype.hasOwnProperty.call(l,"y"))l.y-=o}),f.width=n-e+s,f.height=i-o+d}function tu(r){b(r.edges(),function(e){var n=r.edge(e),o=r.node(e.v),i=r.node(e.w),f,s;if(!n.points)n.points=[],f=i,s=o;else f=n.points[0],s=n.points[n.points.length-1];n.points.unshift(kr(o,f)),n.points.push(kr(i,s))})}function nu(r){b(r.edges(),function(e){var n=r.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x")){if(n.labelpos==="l"||n.labelpos==="r")n.width-=n.labeloffset;switch(n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}})}function ou(r){b(r.edges(),function(e){var n=r.edge(e);if(n.reversed)n.points.reverse()})}function iu(r){b(r.nodes(),function(e){if(r.children(e).length){var n=r.node(e),o=r.node(n.borderTop),i=r.node(n.borderBottom),f=r.node(X(n.borderLeft)),s=r.node(X(n.borderRight));n.width=Math.abs(s.x-f.x),n.height=Math.abs(i.y-o.y),n.x=f.x+n.width/2,n.y=o.y+n.height/2}}),b(r.nodes(),function(e){if(r.node(e).dummy==="border")r.removeNode(e)})}function au(r){b(r.edges(),function(e){if(e.v===e.w){var n=r.node(e.v);if(!n.selfEdges)n.selfEdges=[];n.selfEdges.push({e,label:r.edge(e)}),r.removeEdge(e)}})}function fu(r){var e=D(r);b(e,function(n){var o=0;b(n,function(i,f){var s=r.node(i);s.order=f+o,b(s.selfEdges,function(d){T(r,"selfedge",{width:d.label.width,height:d.label.height,rank:s.rank,order:f+ ++o,e:d.e,label:d.label},"_se")}),delete s.selfEdges})})}function su(r){b(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="selfedge"){var o=r.node(n.e.v),i=o.x+o.width/2,f=o.y,s=n.x-i,d=o.height/2;r.setEdge(n.e,n.label),r.removeNode(e),n.label.points=[{x:i+2*s/3,y:f-d},{x:i+5*s/6,y:f-d},{x:i+s,y:f},{x:i+5*s/6,y:f+d},{x:i+2*s/3,y:f+d}],n.label.x=n.x,n.label.y=n.y}})}function Wr(r,e){return W(K(r,e),Number)}function qr(r){var e={};return b(r,function(n,o){e[o.toLowerCase()]=n}),e}var Bn=t((r,e,n)=>Math.max(e,Math.min(n,r)),"clamp"),Dn=t((r="TB")=>{switch(r){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),uu=t((r)=>r==="flowchart"||r==="flowchart-v2"||r==="stateDiagram"||r==="er"||r==="classDiagram","shouldMergeSelfLoopSegments"),du=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],cu=t((r,e,n,o,i)=>{let f=[],s=new Set;if(n.forEach(({start:l,end:m})=>{if(l!==o)s.add(l);if(m!==o)s.add(m)}),s.forEach((l)=>{let m=r.node(l);if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)}),f.length===0)n.forEach(({edge:l})=>{(l.points??[]).forEach((m)=>{if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)})});if(f.length===0)return Dn(i);let d=f.reduce((l,m)=>({x:l.x+m.x/f.length,y:l.y+m.y/f.length}),{x:0,y:0}),c=d.x-e.x,p=d.y-e.y;if(Math.abs(c)>Math.abs(p))return c>0?"right":"left";if(Math.abs(p)>0)return p>0?"bottom":"top";return Dn(i)},"getSelfLoopSide"),pu=t((r,e="top",n=0,o=0)=>{let i=r.x,f=r.y-n,s=r.width/2,d=r.height/2,c=Math.max(36,Math.min(100,r.width*0.8)),p=Bn(Math.max(o,r.width*0.35),36,c),l=Bn(Math.min(r.width,r.height)*0.45,24,48);switch(e){case"bottom":{let m=f+d;return[{x:i-p/2,y:m},{x:i-p/2,y:m+l},{x:i+p/2,y:m+l},{x:i+p/2,y:m}]}case"right":{let m=i+s;return[{x:m,y:f-p/2},{x:m+l,y:f-p/2},{x:m+l,y:f+p/2},{x:m,y:f+p/2}]}case"left":{let m=i-s;return[{x:m,y:f-p/2},{x:m-l,y:f-p/2},{x:m-l,y:f+p/2},{x:m,y:f+p/2}]}case"top":default:{let m=f-d;return[{x:i-p/2,y:m},{x:i-p/2,y:m-l},{x:i+p/2,y:m-l},{x:i+p/2,y:m}]}}},"getSelfLoopPoints"),lu=t((r,e,n="top",o=0,i={})=>{let s=r.x,d=r.y-o,c=i.width??0,p=i.height??0;switch(n){case"bottom":return{x:s,y:Math.max(...e.map((l)=>l.y))+p/2+4};case"right":return{x:Math.max(...e.map((l)=>l.x))+c/2+4,y:d};case"left":return{x:Math.min(...e.map((l)=>l.x))-c/2-4,y:d};case"top":default:return{x:s,y:Math.min(...e.map((l)=>l.y))-p/2-4}}},"getSelfLoopLabelPosition"),tl=t((r,e=0,{mergeSelfLoops:n=!0}={})=>{let o=new Map,i=[],f=r.graph()?.rankdir;return r.edges().forEach((s)=>{let d=r.edge(s);if(n&&d.selfLoop){let c=d.selfLoop.id;if(!o.has(c))o.set(c,[]);o.get(c).push({edge:d,start:s.v,end:s.w})}else i.push({edge:d,start:s.v,end:s.w})}),o.forEach((s)=>{if(s.length!==3){s.forEach((_)=>i.push(_));return}s.sort((_,R)=>_.edge.selfLoop.order-R.edge.selfLoop.order);let[d,c,p]=s,l=d.edge.originalEdge??c.edge.originalEdge??p.edge.originalEdge??c.edge,m=r.node(l.start);if(!m){s.forEach((_)=>i.push(_));return}let h={width:c.edge.width,height:c.edge.height},v=cu(r,m,s,l.start,f),w=pu(m,v,e,h.width??0),y=lu(m,w,v,e,h),g={...c.edge,...l,id:l.id,points:w,start:l.start,end:l.end,x:y.x,y:y.y,width:h.width,height:h.height,labelStyle:c.edge.labelStyle,fromCluster:d.edge.fromCluster??c.edge.fromCluster??p.edge.fromCluster,toCluster:d.edge.toCluster??c.edge.toCluster??p.edge.toCluster};delete g.selfLoop,delete g.originalEdge,i.push({edge:g,start:g.start,end:g.end})}),i},"getEdgesToRender"),Xn=t(async({element:r,graph:e,diagramType:n,id:o,parentCluster:i,siteConfig:f})=>{let s=e.graph().rankdir;a.trace("Dir in recursive render - dir:",s);let{clusters:d,edgePaths:c,edgeLabels:p,nodes:l,rootGroups:m}=to(r,{edgePathsClass:"edgePaths"});if(!e.nodes())a.info("No nodes found for",e);else a.info("Recursive render XXX",e.nodes());if(e.edges().length>0)a.info("Recursive edges",e.edge(e.edges()[0]));let h=uu(n);await Promise.all(e.nodes().map(async function(y){let g=e.node(y);if(i!==void 0){let _=JSON.parse(JSON.stringify(i.clusterData));if(a.trace(`Setting data for parent cluster XXX
|
|
1
|
+
import{t,a,u,O,bn,vl,cn,Qn,_n,la,Jn}from"./chunk-dbv8qpen.js";import{Ve,ht,Ft,Je,nn,qn,ae,Pe,Qt,Vn,Jt,Ea,ao,io,oo,Sr,yn,so,Tr,gt,Er,Nn,vn,Ar,Wn,Rr,lo,co,Aa,We,uo,Lr,Gn,Ir,Ra,La,Hn,po,Ia,mo,bi,rn,Da,fo,ho,go,At,Na,Ma,Dr,yo,Pa,b,zt,an,Ge,Yn,xe}from"./chunk-4zftsyq2.js";import{to,no,J,Qr,al,ro,Ta}from"./chunk-qcgs1mft.js";import{wn}from"./chunk-b83bzjcx.js";var sr={};wn(sr,{default:()=>Q});var zn=/\s/;function Kn(r){var e=r.length;while(e--&&zn.test(r.charAt(e)));return e}var Zr=Kn;var Zn=/^\s+/;function $n(r){return r?r.slice(0,Zr(r)+1).replace(Zn,""):r}var $r=$n;var re=NaN,eo=/^[-+]0x[0-9a-f]+$/i,vo=/^0b[01]+$/i,bo=/^0o[0-7]+$/i,wo=parseInt;function _o(r){if(typeof r=="number")return r;if(nn(r))return re;if(Pe(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Pe(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=$r(r);var n=vo.test(r);return n||bo.test(r)?wo(r.slice(2),n?2:8):eo.test(r)?re:+r}var ee=_o;var te=1/0,Eo=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;function xo(r){if(!r)return r===0?r:0;if(r=ee(r),r===te||r===-te){var e=r<0?-1:1;return e*Eo}return r===r?r:0}var V=xo;function Oo(r){var e=V(r),n=e%1;return e===e?n?e-n:e:0}var ne=Oo;var oe=Object.create,Lo=function(){function r(){}return function(e){if(!Pe(e))return{};if(oe)return oe(e);r.prototype=e;var n=new r;return r.prototype=void 0,n}}(),ie=Lo;function Io(r,e){var n=-1,o=r.length;e||(e=Array(o));while(++n<o)e[n]=r[n];return e}var ar=Io;function So(r,e,n){if(e=="__proto__"&&Ea)Ea(r,e,{configurable:!0,enumerable:!0,value:n,writable:!0});else r[e]=n}var M=So;var No=Object.prototype,Po=No.hasOwnProperty;function ko(r,e,n){var o=r[e];if(!(Po.call(r,e)&&yn(o,n))||n===void 0&&!(e in r))M(r,e,n)}var j=ko;function To(r,e,n,o){var i=!n;n||(n={});var f=-1,s=e.length;while(++f<s){var d=e[f],c=o?o(n[d],r[d],d,n,r):void 0;if(c===void 0)c=r[d];if(i)M(n,d,c);else j(n,d,c)}return n}var k=To;function Co(r,e,n){if(!Pe(n))return!1;var o=typeof e;if(o=="number"?gt(n)&&Sr(e,n.length):o=="string"&&(e in n))return yn(n[e],r);return!1}var C=Co;function Ao(r){return Tr(function(e,n){var o=-1,i=n.length,f=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;if(f=r.length>3&&typeof f=="function"?(i--,f):void 0,s&&C(n[0],n[1],s))f=i<3?void 0:f,i=1;e=Object(e);while(++o<i){var d=n[o];if(d)r(e,d,o,f)}return e})}var fe=Ao;function Ro(r){var e=[];if(r!=null)for(var n in Object(r))e.push(n);return e}var se=Ro;var Mo=Object.prototype,jo=Mo.hasOwnProperty;function Bo(r){if(!Pe(r))return se(r);var e=Er(r),n=[];for(var o in r)if(!(o=="constructor"&&(e||!jo.call(r,o))))n.push(o);return n}var ue=Bo;function Do(r){return gt(r)?lo(r,!0):ue(r)}var I=Do;function Fo(r){var e=r==null?0:r.length;return e?La(r,1):[]}var N=Fo;function Go(r){return ao(so(r,void 0,N),r+"")}var de=Go;var Xo=co(Object.getPrototypeOf,Object),Y=Xo;var Uo="[object Object]",Vo=Function.prototype,Yo=Object.prototype,ce=Vo.toString,zo=Yo.hasOwnProperty,Wo=ce.call(Object);function qo(r){if(!Je(r)||Ft(r)!=Uo)return!1;var e=Y(r);if(e===null)return!0;var n=zo.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&ce.call(n)==Wo}var pe=qo;var Ho="\\ud800-\\udfff",Ko="\\u0300-\\u036f",Jo="\\ufe20-\\ufe2f",Zo="\\u20d0-\\u20ff",$o=Ko+Jo+Zo,Qo="\\ufe0e\\ufe0f",ri="\\u200d",ei=RegExp("["+ri+Ho+$o+Qo+"]");function ti(r){return ei.test(r)}var le=ti;function ni(r,e){return r&&k(e,We(e),r)}var me=ni;function oi(r,e){return r&&k(e,I(e),r)}var he=oi;var ye=typeof sr=="object"&&sr&&!sr.nodeType&&sr,ge=ye&&typeof fr=="object"&&fr&&!fr.nodeType&&fr,ii=ge&&ge.exports===ye,ve=ii?Ve.Buffer:void 0,be=ve?ve.allocUnsafe:void 0;function ai(r,e){if(e)return r.slice();var n=r.length,o=be?be(n):new r.constructor(n);return r.copy(o),o}var Q=ai;function fi(r,e){return k(r,Ia(r),e)}var we=fi;var si=Object.getOwnPropertySymbols,ui=!si?po:function(r){var e=[];while(r)Ra(e,Ia(r)),r=Y(r);return e},ur=ui;function di(r,e){return k(r,ur(r),e)}var _e=di;function ci(r){return mo(r,I,ur)}var Ee=ci;var pi=Object.prototype,li=pi.hasOwnProperty;function mi(r){var e=r.length,n=new r.constructor(e);if(e&&typeof r[0]=="string"&&li.call(r,"index"))n.index=r.index,n.input=r.input;return n}var Oe=mi;function hi(r){var e=new r.constructor(r.byteLength);return new Da(e).set(new Da(r)),e}var z=hi;function gi(r,e){var n=e?z(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.byteLength)}var Le=gi;var vi=/\w*$/;function yi(r){var e=new r.constructor(r.source,vi.exec(r));return e.lastIndex=r.lastIndex,e}var Ie=yi;var Se=ht?ht.prototype:void 0,Ne=Se?Se.valueOf:void 0;function wi(r){return Ne?Object(Ne.call(r)):{}}var ke=wi;function _i(r,e){var n=e?z(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.length)}var dr=_i;var Ei="[object Boolean]",xi="[object Date]",Oi="[object Map]",Li="[object Number]",Ii="[object RegExp]",Si="[object Set]",Ni="[object String]",Pi="[object Symbol]",ki="[object ArrayBuffer]",Ti="[object DataView]",Ci="[object Float32Array]",Ai="[object Float64Array]",Ri="[object Int8Array]",Mi="[object Int16Array]",ji="[object Int32Array]",Bi="[object Uint8Array]",Di="[object Uint8ClampedArray]",Fi="[object Uint16Array]",Gi="[object Uint32Array]";function Xi(r,e,n){var o=r.constructor;switch(e){case ki:return z(r);case Ei:case xi:return new o(+r);case Ti:return Le(r,n);case Ci:case Ai:case Ri:case Mi:case ji:case Bi:case Di:case Fi:case Gi:return dr(r,n);case Oi:return new o;case Li:case Ni:return new o(r);case Ii:return Ie(r);case Si:return new o;case Pi:return ke(r)}}var Te=Xi;function Ui(r){return typeof r.constructor=="function"&&!Er(r)?ie(Y(r)):{}}var cr=Ui;var Vi="[object Map]";function Yi(r){return Je(r)&&rn(r)==Vi}var Ce=Yi;var Ae=Wn&&Wn.isMap,zi=Ae?Ar(Ae):Ce,Re=zi;var Wi="[object Set]";function qi(r){return Je(r)&&rn(r)==Wi}var Me=qi;var je=Wn&&Wn.isSet,Hi=je?Ar(je):Me,Be=Hi;var Ki=1,Ji=2,Zi=4,De="[object Arguments]",$i="[object Array]",Qi="[object Boolean]",ra="[object Date]",ea="[object Error]",Fe="[object Function]",ta="[object GeneratorFunction]",na="[object Map]",oa="[object Number]",Xe="[object Object]",ia="[object RegExp]",aa="[object Set]",fa="[object String]",sa="[object Symbol]",ua="[object WeakMap]",da="[object ArrayBuffer]",ca="[object DataView]",pa="[object Float32Array]",ma="[object Float64Array]",ha="[object Int8Array]",ga="[object Int16Array]",va="[object Int32Array]",ba="[object Uint8Array]",ya="[object Uint8ClampedArray]",wa="[object Uint16Array]",_a="[object Uint32Array]",x={};x[De]=x[$i]=x[da]=x[ca]=x[Qi]=x[ra]=x[pa]=x[ma]=x[ha]=x[ga]=x[va]=x[na]=x[oa]=x[Xe]=x[ia]=x[aa]=x[fa]=x[sa]=x[ba]=x[ya]=x[wa]=x[_a]=!0;x[ea]=x[Fe]=x[ua]=!1;function pr(r,e,n,o,i,f){var s,d=e&Ki,c=e&Ji,p=e&Zi;if(n)s=i?n(r,o,i,f):n(r);if(s!==void 0)return s;if(!Pe(r))return r;var l=ae(r);if(l){if(s=Oe(r),!d)return ar(r,s)}else{var m=rn(r),h=m==Fe||m==ta;if(vn(r))return Q(r,d);if(m==Xe||m==De||h&&!i){if(s=c||h?{}:cr(r),!d)return c?_e(r,he(s,r)):we(r,me(s,r))}else{if(!x[m])return i?r:{};s=Te(r,m,d)}}f||(f=new Hn);var v=f.get(r);if(v)return v;if(f.set(r,s),Be(r))r.forEach(function(g){s.add(pr(g,e,n,g,r,f))});else if(Re(r))r.forEach(function(g,_){s.set(_,pr(g,e,n,_,r,f))});var w=p?c?Ee:bi:c?I:We,y=l?void 0:w(r);return io(y||r,function(g,_){if(y)_=g,g=r[_];j(s,_,pr(g,e,n,_,r,f))}),s}var Ue=pr;var xa=1,Oa=4;function Sa(r){return Ue(r,xa|Oa)}var Ye=Sa;var ka=function(){return Ve.Date.now()},yr=ka;var ze=Object.prototype,Ca=ze.hasOwnProperty,ja=Tr(function(r,e){r=Object(r);var n=-1,o=e.length,i=o>2?e[2]:void 0;if(i&&C(e[0],e[1],i))o=1;while(++n<o){var f=e[n],s=I(f),d=-1,c=s.length;while(++d<c){var p=s[d],l=r[p];if(l===void 0||yn(l,ze[p])&&!Ca.call(r,p))r[p]=f[p]}}return r}),qe=ja;function Ba(r,e,n){if(n!==void 0&&!yn(r[e],n)||n===void 0&&!(e in r))M(r,e,n)}var rr=Ba;function Fa(r,e){if(e==="constructor"&&typeof r[e]==="function")return;if(e=="__proto__")return;return r[e]}var er=Fa;function Ga(r){return k(r,I(r))}var He=Ga;function Xa(r,e,n,o,i,f,s){var d=er(r,n),c=er(e,n),p=s.get(c);if(p){rr(r,n,p);return}var l=f?f(d,c,n+"",r,e,s):void 0,m=l===void 0;if(m){var h=ae(c),v=!h&&vn(c),w=!h&&!v&&Rr(c);if(l=c,h||v||w)if(ae(d))l=d;else if(yo(d))l=ar(d);else if(v)m=!1,l=Q(c,!0);else if(w)m=!1,l=dr(c,!0);else l=[];else if(pe(c)||Nn(c)){if(l=d,Nn(d))l=He(d);else if(!Pe(d)||Vn(d))l=cr(c)}else m=!1}if(m)s.set(c,l),i(l,c,o,f,s),s.delete(c);rr(r,n,l)}var Ke=Xa;function Ze(r,e,n,o,i){if(r===e)return;Na(e,function(f,s){if(i||(i=new Hn),Pe(f))Ke(r,e,s,n,Ze,o,i);else{var d=o?o(er(r,s),f,s+"",r,e,i):void 0;if(d===void 0)d=f;rr(r,s,d)}},I)}var $e=Ze;function Ua(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}var X=Ua;function Va(r){return function(e,n,o){var i=Object(e);if(!gt(e)){var f=At(n,3);e=We(e),n=function(d){return f(i[d],d,i)}}var s=r(e,n,o);return s>-1?i[f?e[s]:s]:void 0}}var Qe=Va;var Ya=Math.max;function za(r,e,n){var o=r==null?0:r.length;if(!o)return-1;var i=n==null?0:ne(n);if(i<0)i=Ya(o+i,0);return oo(r,At(e,3),i)}var rt=za;var Wa=Qe(rt),tr=Wa;function qa(r,e){var n=-1,o=gt(r)?Array(r.length):[];return Dr(r,function(i,f,s){o[++n]=e(i,f,s)}),o}var lr=qa;function Ha(r,e){var n=ae(r)?qn:lr;return n(r,At(e,3))}var E=Ha;function Ka(r,e){return r==null?r:Na(r,Pa(e),I)}var et=Ka;function Ja(r,e){return r&&Ma(r,Pa(e))}var tt=Ja;function Za(r,e){return r>e}var nt=Za;var $a=Object.prototype,Qa=$a.hasOwnProperty;function rf(r,e){return r!=null&&Qa.call(r,e)}var ot=rf;function ef(r,e){return r!=null&&fo(r,e,ot)}var mr=ef;var tf="[object String]";function nf(r){return typeof r=="string"||!ae(r)&&Je(r)&&Ft(r)==tf}var it=nf;function of(r,e){return r<e}var hr=of;function af(r,e){var n={};return e=At(e,3),Ma(r,function(o,i,f){M(n,i,e(o,i,f))}),n}var W=af;function ff(r,e,n){var o=-1,i=r.length;while(++o<i){var f=r[o],s=e(f);if(s!=null&&(d===void 0?s===s&&!nn(s):n(s,d)))var d=s,c=f}return c}var q=ff;function sf(r){return r&&r.length?q(r,Qt,nt):void 0}var S=sf;var uf=fe(function(r,e,n){$e(r,e,n)}),nr=uf;function df(r){return r&&r.length?q(r,Qt,hr):void 0}var B=df;function cf(r,e){return r&&r.length?q(r,At(e,2),hr):void 0}var H=cf;function pf(r,e,n,o){if(!Pe(r))return r;e=Lr(e,r);var i=-1,f=e.length,s=f-1,d=r;while(d!=null&&++i<f){var c=Gn(e[i]),p=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return r;if(i!=s){var l=d[c];if(p=o?o(l,c,d):void 0,p===void 0)p=Pe(l)?l:Sr(e[i+1])?[]:{}}j(d,c,p),d=d[c]}return r}var at=pf;function lf(r,e,n){var o=-1,i=e.length,f={};while(++o<i){var s=e[o],d=Ir(r,s);if(n(d,s))at(f,Lr(s,r),d)}return f}var ft=lf;function mf(r,e){var n=r.length;r.sort(e);while(n--)r[n]=r[n].value;return r}var st=mf;function hf(r,e){if(r!==e){var n=r!==void 0,o=r===null,i=r===r,f=nn(r),s=e!==void 0,d=e===null,c=e===e,p=nn(e);if(!d&&!p&&!f&&r>e||f&&s&&c&&!d&&!p||o&&s&&c||!n&&c||!i)return 1;if(!o&&!f&&!p&&r<e||p&&n&&i&&!o&&!f||d&&n&&i||!s&&i||!c)return-1}return 0}var ut=hf;function gf(r,e,n){var o=-1,i=r.criteria,f=e.criteria,s=i.length,d=n.length;while(++o<s){var c=ut(i[o],f[o]);if(c){if(o>=d)return c;var p=n[o];return c*(p=="desc"?-1:1)}}return r.index-e.index}var dt=gf;function vf(r,e,n){if(e.length)e=qn(e,function(f){if(ae(f))return function(s){return Ir(s,f.length===1?f[0]:f)};return f});else e=[Qt];var o=-1;e=qn(e,Ar(At));var i=lr(r,function(f,s,d){var c=qn(e,function(p){return p(f)});return{criteria:c,index:++o,value:f}});return st(i,function(f,s){return dt(f,s,n)})}var ct=vf;var bf=go("length"),pt=bf;var mt="\\ud800-\\udfff",yf="\\u0300-\\u036f",wf="\\ufe20-\\ufe2f",_f="\\u20d0-\\u20ff",Ef=yf+wf+_f,xf="\\ufe0e\\ufe0f",Of="["+mt+"]",wr="["+Ef+"]",_r="\\ud83c[\\udffb-\\udfff]",Lf="(?:"+wr+"|"+_r+")",vt="[^"+mt+"]",bt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",If="\\u200d",wt=Lf+"?",_t="["+xf+"]?",Sf="(?:"+If+"(?:"+[vt,bt,yt].join("|")+")"+_t+wt+")*",Nf=_t+wt+Sf,Pf="(?:"+[vt+wr+"?",wr,bt,yt,Of].join("|")+")",lt=RegExp(_r+"(?="+_r+")|"+Pf+Nf,"g");function kf(r){var e=lt.lastIndex=0;while(lt.test(r))++e;return e}var Et=kf;function Tf(r){return le(r)?Et(r):pt(r)}var xt=Tf;function Cf(r,e){return ft(r,e,function(n,o){return ho(r,o)})}var Ot=Cf;var Af=de(function(r,e){return r==null?{}:Ot(r,e)}),K=Af;var{ceil:Rf,max:Mf}=Math;function jf(r,e,n,o){var i=-1,f=Mf(Rf((e-r)/(n||1)),0),s=Array(f);while(f--)s[o?f:++i]=r,r+=n;return s}var Lt=jf;function Bf(r){return function(e,n,o){if(o&&typeof o!="number"&&C(e,n,o))n=o=void 0;if(e=V(e),n===void 0)n=e,e=0;else n=V(n);return o=o===void 0?e<n?1:-1:V(o),Lt(e,n,o,r)}}var It=Bf;var Df=It(),P=Df;var Ff="[object Map]",Gf="[object Set]";function Xf(r){if(r==null)return 0;if(gt(r))return it(r)?xt(r):r.length;var e=rn(r);if(e==Ff||e==Gf)return r.size;return Aa(r).length}var St=Xf;var Uf=Tr(function(r,e){if(r==null)return[];var n=e.length;if(n>1&&C(r,e[0],e[1]))e=[];else if(n>2&&C(e[0],e[1],e[2]))e=[e[0]];return ct(r,La(e,1),[])}),A=Uf;var Vf=0;function Yf(r){var e=++Vf;return uo(r)+e}var Z=Yf;function zf(r,e,n){var o=-1,i=r.length,f=e.length,s={};while(++o<i){var d=o<f?e[o]:void 0;n(s,r[o],d)}return s}var Nt=zf;function Wf(r,e){return Nt(r||[],e||[],j)}var xr=Wf;class Or{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,e=r._prev;if(e!==r)return Pt(e),e}enqueue(r){var e=this._sentinel;if(r._prev&&r._next)Pt(r);r._next=e._next,e._next._prev=r,e._next=r,r._prev=e}toString(){var r=[],e=this._sentinel,n=e._prev;while(n!==e)r.push(JSON.stringify(n,qf)),n=n._prev;return"["+r.join(", ")+"]"}}function Pt(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function qf(r,e){if(r!=="_next"&&r!=="_prev")return e}var Hf=Jt(1);function kt(r,e){if(r.nodeCount()<=1)return[];var n=Jf(r,e||Hf),o=Kf(n.graph,n.buckets,n.zeroIdx);return N(E(o,function(i){return r.outEdges(i.v,i.w)}))}function Kf(r,e,n){var o=[],i=e[e.length-1],f=e[0],s;while(r.nodeCount()){while(s=f.dequeue())Nr(r,e,n,s);while(s=i.dequeue())Nr(r,e,n,s);if(r.nodeCount()){for(var d=e.length-2;d>0;--d)if(s=e[d].dequeue(),s){o=o.concat(Nr(r,e,n,s,!0));break}}}return o}function Nr(r,e,n,o,i){var f=i?[]:void 0;return b(r.inEdges(o.v),function(s){var d=r.edge(s),c=r.node(s.v);if(i)f.push({v:s.v,w:s.w});c.out-=d,Pr(e,n,c)}),b(r.outEdges(o.v),function(s){var d=r.edge(s),c=s.w,p=r.node(c);p.in-=d,Pr(e,n,p)}),r.removeNode(o.v),f}function Jf(r,e){var n=new xe,o=0,i=0;b(r.nodes(),function(d){n.setNode(d,{v:d,in:0,out:0})}),b(r.edges(),function(d){var c=n.edge(d.v,d.w)||0,p=e(d),l=c+p;n.setEdge(d.v,d.w,l),i=Math.max(i,n.node(d.v).out+=p),o=Math.max(o,n.node(d.w).in+=p)});var f=P(i+o+3).map(function(){return new Or}),s=o+1;return b(n.nodes(),function(d){Pr(f,s,n.node(d))}),{graph:n,buckets:f,zeroIdx:s}}function Pr(r,e,n){if(!n.out)r[0].enqueue(n);else if(!n.in)r[r.length-1].enqueue(n);else r[n.out-n.in+e].enqueue(n)}function Tt(r){var e=r.graph().acyclicer==="greedy"?kt(r,n(r)):Zf(r);b(e,function(o){var i=r.edge(o);r.removeEdge(o),i.forwardName=o.name,i.reversed=!0,r.setEdge(o.w,o.v,i,Z("rev"))});function n(o){return function(i){return o.edge(i).weight}}}function Zf(r){var e=[],n={},o={};function i(f){if(Object.prototype.hasOwnProperty.call(o,f))return;o[f]=!0,n[f]=!0,b(r.outEdges(f),function(s){if(Object.prototype.hasOwnProperty.call(n,s.w))e.push(s);else i(s.w)}),delete n[f]}return b(r.nodes(),i),e}function Ct(r){b(r.edges(),function(e){var n=r.edge(e);if(n.reversed){r.removeEdge(e);var o=n.forwardName;delete n.reversed,delete n.forwardName,r.setEdge(e.w,e.v,n,o)}})}function T(r,e,n,o){var i;do i=Z(o);while(r.hasNode(i));return n.dummy=e,r.setNode(i,n),i}function Mt(r){var e=new xe().setGraph(r.graph());return b(r.nodes(),function(n){e.setNode(n,r.node(n))}),b(r.edges(),function(n){var o=e.edge(n.v,n.w)||{weight:0,minlen:1},i=r.edge(n);e.setEdge(n.v,n.w,{weight:o.weight+i.weight,minlen:Math.max(o.minlen,i.minlen)})}),e}function gr(r){var e=new xe({multigraph:r.isMultigraph()}).setGraph(r.graph());return b(r.nodes(),function(n){if(!r.children(n).length)e.setNode(n,r.node(n))}),b(r.edges(),function(n){e.setEdge(n,r.edge(n))}),e}function kr(r,e){var{x:n,y:o}=r,i=e.x-n,f=e.y-o,s=r.width/2,d=r.height/2;if(!i&&!f)throw Error("Not possible to find intersection inside of the rectangle");var c,p;if(Math.abs(f)*s>Math.abs(i)*d){if(f<0)d=-d;c=d*i/f,p=d}else{if(i<0)s=-s;c=s,p=s*f/i}return{x:n+c,y:o+p}}function D(r){var e=E(P(Mr(r)+1),function(){return[]});return b(r.nodes(),function(n){var o=r.node(n),i=o.rank;if(!Ge(i))e[i][o.order]=n}),e}function jt(r){var e=B(E(r.nodes(),function(n){return r.node(n).rank}));b(r.nodes(),function(n){var o=r.node(n);if(mr(o,"rank"))o.rank-=e})}function Bt(r){var e=B(E(r.nodes(),function(f){return r.node(f).rank})),n=[];b(r.nodes(),function(f){var s=r.node(f).rank-e;if(!n[s])n[s]=[];n[s].push(f)});var o=0,i=r.graph().nodeRankFactor;b(n,function(f,s){if(Ge(f)&&s%i!==0)--o;else if(o)b(f,function(d){r.node(d).rank+=o})})}function Cr(r,e,n,o){var i={width:0,height:0};if(arguments.length>=4)i.rank=n,i.order=o;return T(r,"border",i,e)}function Mr(r){return S(E(r.nodes(),function(e){var n=r.node(e).rank;if(!Ge(n))return n}))}function Dt(r,e){var n={lhs:[],rhs:[]};return b(r,function(o){if(e(o))n.lhs.push(o);else n.rhs.push(o)}),n}function Gt(r,e){var n=yr();try{return e()}finally{console.log(r+" time: "+(yr()-n)+"ms")}}function Xt(r,e){return e()}function Vt(r){function e(n){var o=r.children(n),i=r.node(n);if(o.length)b(o,e);if(Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var f=i.minRank,s=i.maxRank+1;f<s;++f)Ut(r,"borderLeft","_bl",n,i,f),Ut(r,"borderRight","_br",n,i,f)}}b(r.children(),e)}function Ut(r,e,n,o,i,f){var s={width:0,height:0,rank:f,borderType:e},d=i[e][f-1],c=T(r,"border",s,n);if(i[e][f]=c,r.setParent(c,o),d)r.setEdge(d,c,{weight:1})}function Wt(r){var e=r.graph().rankdir.toLowerCase();if(e==="lr"||e==="rl")Ht(r)}function qt(r){var e=r.graph().rankdir.toLowerCase();if(e==="bt"||e==="rl")$f(r);if(e==="lr"||e==="rl")Qf(r),Ht(r)}function Ht(r){b(r.nodes(),function(e){Yt(r.node(e))}),b(r.edges(),function(e){Yt(r.edge(e))})}function Yt(r){var e=r.width;r.width=r.height,r.height=e}function $f(r){b(r.nodes(),function(e){jr(r.node(e))}),b(r.edges(),function(e){var n=r.edge(e);if(b(n.points,jr),Object.prototype.hasOwnProperty.call(n,"y"))jr(n)})}function jr(r){r.y=-r.y}function Qf(r){b(r.nodes(),function(e){Br(r.node(e))}),b(r.edges(),function(e){var n=r.edge(e);if(b(n.points,Br),Object.prototype.hasOwnProperty.call(n,"x"))Br(n)})}function Br(r){var e=r.x;r.x=r.y,r.y=e}function Kt(r){r.graph().dummyChains=[],b(r.edges(),function(e){es(r,e)})}function es(r,e){var n=e.v,o=r.node(n).rank,i=e.w,f=r.node(i).rank,s=e.name,d=r.edge(e),c=d.labelRank;if(f===o+1)return;r.removeEdge(e);var p=void 0,l,m;for(m=0,++o;o<f;++m,++o){if(d.points=[],p={width:0,height:0,edgeLabel:d,edgeObj:e,rank:o},l=T(r,"edge",p,"_d"),o===c)p.width=d.width,p.height=d.height,p.dummy="edge-label",p.labelpos=d.labelpos;if(r.setEdge(n,l,{weight:d.weight},s),m===0)r.graph().dummyChains.push(l);n=l}r.setEdge(n,i,{weight:d.weight},s)}function Zt(r){b(r.graph().dummyChains,function(e){var n=r.node(e),o=n.edgeLabel,i;r.setEdge(n.edgeObj,o);while(n.dummy){if(i=r.successors(e)[0],r.removeNode(e),o.points.push({x:n.x,y:n.y}),n.dummy==="edge-label")o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height;e=i,n=r.node(e)}})}function or(r){var e={};function n(o){var i=r.node(o);if(Object.prototype.hasOwnProperty.call(e,o))return i.rank;e[o]=!0;var f=B(E(r.outEdges(o),function(s){return n(s.w)-r.edge(s).minlen}));if(f===Number.POSITIVE_INFINITY||f===void 0||f===null)f=0;return i.rank=f}b(r.sources(),n)}function U(r,e){return r.node(e.w).rank-r.node(e.v).rank-r.edge(e).minlen}function vr(r){var e=new xe({directed:!1}),n=r.nodes()[0],o=r.nodeCount();e.setNode(n,{});var i,f;while(ts(e,r)<o)i=ns(e,r),f=e.hasNode(i.v)?U(r,i):-U(r,i),os(e,r,f);return e}function ts(r,e){function n(o){b(e.nodeEdges(o),function(i){var f=i.v,s=o===f?i.w:f;if(!r.hasNode(s)&&!U(e,i))r.setNode(s,{}),r.setEdge(o,s,{}),n(s)})}return b(r.nodes(),n),r.nodeCount()}function ns(r,e){return H(e.edges(),function(n){if(r.hasNode(n.v)!==r.hasNode(n.w))return U(e,n)})}function os(r,e,n){b(r.nodes(),function(o){e.node(o).rank+=n})}var dh=Jt(1);var vh=Jt(1);Fr.CycleException=ir;function Fr(r){var e={},n={},o=[];function i(f){if(Object.prototype.hasOwnProperty.call(n,f))throw new ir;if(!Object.prototype.hasOwnProperty.call(e,f))n[f]=!0,e[f]=!0,b(r.predecessors(f),i),delete n[f],o.push(f)}if(b(r.sinks(),i),St(e)!==r.nodeCount())throw new ir;return o}function ir(){}ir.prototype=Error();function br(r,e,n){if(!ae(e))e=[e];var o=(r.isDirected()?r.successors:r.neighbors).bind(r),i=[],f={};return b(e,function(s){if(!r.hasNode(s))throw Error("Graph does not have node: "+s);en(r,s,n==="post",f,o,i)}),i}function en(r,e,n,o,i,f){if(!Object.prototype.hasOwnProperty.call(o,e)){if(o[e]=!0,!n)f.push(e);if(b(i(e),function(s){en(r,s,n,o,i,f)}),n)f.push(e)}}function Gr(r,e){return br(r,e,"post")}function Xr(r,e){return br(r,e,"pre")}G.initLowLimValues=Vr;G.initCutValues=Ur;G.calcCutValue=on;G.leaveEdge=sn;G.enterEdge=un;G.exchangeEdges=dn;function G(r){r=Mt(r),or(r);var e=vr(r);Vr(e),Ur(e,r);var n,o;while(n=sn(e))o=un(e,r,n),dn(e,r,n,o)}function Ur(r,e){var n=Gr(r,r.nodes());n=n.slice(0,n.length-1),b(n,function(o){us(r,e,o)})}function us(r,e,n){var o=r.node(n),i=o.parent;r.edge(n,i).cutvalue=on(r,e,n)}function on(r,e,n){var o=r.node(n),i=o.parent,f=!0,s=e.edge(n,i),d=0;if(!s)f=!1,s=e.edge(i,n);return d=s.weight,b(e.nodeEdges(n),function(c){var p=c.v===n,l=p?c.w:c.v;if(l!==i){var m=p===f,h=e.edge(c).weight;if(d+=m?h:-h,cs(r,n,l)){var v=r.edge(n,l).cutvalue;d+=m?-v:v}}}),d}function Vr(r,e){if(arguments.length<2)e=r.nodes()[0];fn(r,{},1,e)}function fn(r,e,n,o,i){var f=n,s=r.node(o);if(e[o]=!0,b(r.neighbors(o),function(d){if(!Object.prototype.hasOwnProperty.call(e,d))n=fn(r,e,n,d,o)}),s.low=f,s.lim=n++,i)s.parent=i;else delete s.parent;return n}function sn(r){return tr(r.edges(),function(e){return r.edge(e).cutvalue<0})}function un(r,e,n){var{v:o,w:i}=n;if(!e.hasEdge(o,i))o=n.w,i=n.v;var f=r.node(o),s=r.node(i),d=f,c=!1;if(f.lim>s.lim)d=s,c=!0;var p=zt(e.edges(),function(l){return c===tn(r,r.node(l.v),d)&&c!==tn(r,r.node(l.w),d)});return H(p,function(l){return U(e,l)})}function dn(r,e,n,o){var{v:i,w:f}=n;r.removeEdge(i,f),r.setEdge(o.v,o.w,{}),Vr(r),Ur(r,e),ds(r,e)}function ds(r,e){var n=tr(r.nodes(),function(i){return!e.node(i).parent}),o=Xr(r,n);o=o.slice(1),b(o,function(i){var f=r.node(i).parent,s=e.edge(i,f),d=!1;if(!s)s=e.edge(f,i),d=!0;e.node(i).rank=e.node(f).rank+(d?s.minlen:-s.minlen)})}function cs(r,e,n){return r.hasEdge(e,n)}function tn(r,e,n){return n.low<=e.lim&&e.lim<=n.lim}function Yr(r){switch(r.graph().ranker){case"network-simplex":pn(r);break;case"tight-tree":ls(r);break;case"longest-path":ps(r);break;default:pn(r)}}var ps=or;function ls(r){or(r),vr(r)}function pn(r){G(r)}function ln(r){var e=T(r,"root",{},"_root"),n=ms(r),o=S(an(n))-1,i=2*o+1;r.graph().nestingRoot=e,b(r.edges(),function(s){r.edge(s).minlen*=i});var f=hs(r)+1;b(r.children(),function(s){mn(r,e,i,f,o,n,s)}),r.graph().nodeRankFactor=i}function mn(r,e,n,o,i,f,s){var d=r.children(s);if(!d.length){if(s!==e)r.setEdge(e,s,{weight:0,minlen:n});return}var c=Cr(r,"_bt"),p=Cr(r,"_bb"),l=r.node(s);if(r.setParent(c,s),l.borderTop=c,r.setParent(p,s),l.borderBottom=p,b(d,function(m){mn(r,e,n,o,i,f,m);var h=r.node(m),v=h.borderTop?h.borderTop:m,w=h.borderBottom?h.borderBottom:m,y=h.borderTop?o:2*o,g=v!==w?1:i-f[s]+1;r.setEdge(c,v,{weight:y,minlen:g,nestingEdge:!0}),r.setEdge(w,p,{weight:y,minlen:g,nestingEdge:!0})}),!r.parent(s))r.setEdge(e,c,{weight:0,minlen:i+f[s]})}function ms(r){var e={};function n(o,i){var f=r.children(o);if(f&&f.length)b(f,function(s){n(s,i+1)});e[o]=i}return b(r.children(),function(o){n(o,1)}),e}function hs(r){return Yn(r.edges(),function(e,n){return e+r.edge(n).weight},0)}function hn(r){var e=r.graph();r.removeNode(e.nestingRoot),delete e.nestingRoot,b(r.edges(),function(n){var o=r.edge(n);if(o.nestingEdge)r.removeEdge(n)})}function gn(r,e,n){var o={},i;b(n,function(f){var s=r.parent(f),d,c;while(s){if(d=r.parent(s),d)c=o[d],o[d]=s;else c=i,i=s;if(c&&c!==s){e.setEdge(c,s);return}s=d}})}function En(r,e,n){var o=vs(r),i=new xe({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(f){return r.node(f)});return b(r.nodes(),function(f){var s=r.node(f),d=r.parent(f);if(s.rank===e||s.minRank<=e&&e<=s.maxRank){if(i.setNode(f),i.setParent(f,d||o),b(r[n](f),function(c){var p=c.v===f?c.w:c.v,l=i.edge(p,f),m=!Ge(l)?l.weight:0;i.setEdge(p,f,{weight:r.edge(c).weight+m})}),Object.prototype.hasOwnProperty.call(s,"minRank"))i.setNode(f,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]})}}),i}function vs(r){var e;while(r.hasNode(e=Z("_root")));return e}function xn(r,e){var n=0;for(var o=1;o<e.length;++o)n+=bs(r,e[o-1],e[o]);return n}function bs(r,e,n){var o=xr(n,E(n,function(p,l){return l})),i=N(E(e,function(p){return A(E(r.outEdges(p),function(l){return{pos:o[l.w],weight:r.edge(l).weight}}),"pos")})),f=1;while(f<n.length)f<<=1;var s=2*f-1;f-=1;var d=E(Array(s),function(){return 0}),c=0;return b(i.forEach(function(p){var l=p.pos+f;d[l]+=p.weight;var m=0;while(l>0){if(l%2)m+=d[l+1];l=l-1>>1,d[l]+=p.weight}c+=p.weight*m})),c}function On(r){var e={},n=zt(r.nodes(),function(d){return!r.children(d).length}),o=S(E(n,function(d){return r.node(d).rank})),i=E(P(o+1),function(){return[]});function f(d){if(mr(e,d))return;e[d]=!0;var c=r.node(d);i[c.rank].push(d),b(r.successors(d),f)}var s=A(n,function(d){return r.node(d).rank});return b(s,f),i}function Ln(r,e){return E(e,function(n){var o=r.inEdges(n);if(!o.length)return{v:n};else{var i=Yn(o,function(f,s){var d=r.edge(s),c=r.node(s.v);return{sum:f.sum+d.weight*c.order,weight:f.weight+d.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}})}function In(r,e){var n={};b(r,function(i,f){var s=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:f};if(!Ge(i.barycenter))s.barycenter=i.barycenter,s.weight=i.weight}),b(e.edges(),function(i){var f=n[i.v],s=n[i.w];if(!Ge(f)&&!Ge(s))s.indegree++,f.out.push(n[i.w])});var o=zt(n,function(i){return!i.indegree});return ys(o)}function ys(r){var e=[];function n(f){return function(s){if(s.merged)return;if(Ge(s.barycenter)||Ge(f.barycenter)||s.barycenter>=f.barycenter)ws(f,s)}}function o(f){return function(s){if(s.in.push(f),--s.indegree===0)r.push(s)}}while(r.length){var i=r.pop();e.push(i),b(i.in.reverse(),n(i)),b(i.out,o(i))}return E(zt(e,function(f){return!f.merged}),function(f){return K(f,["vs","i","barycenter","weight"])})}function ws(r,e){var n=0,o=0;if(r.weight)n+=r.barycenter*r.weight,o+=r.weight;if(e.weight)n+=e.barycenter*e.weight,o+=e.weight;r.vs=e.vs.concat(r.vs),r.barycenter=n/o,r.weight=o,r.i=Math.min(e.i,r.i),e.merged=!0}function Pn(r,e){var n=Dt(r,function(l){return Object.prototype.hasOwnProperty.call(l,"barycenter")}),o=n.lhs,i=A(n.rhs,function(l){return-l.i}),f=[],s=0,d=0,c=0;o.sort(_s(!!e)),c=Sn(f,i,c),b(o,function(l){c+=l.vs.length,f.push(l.vs),s+=l.barycenter*l.weight,d+=l.weight,c=Sn(f,i,c)});var p={vs:N(f)};if(d)p.barycenter=s/d,p.weight=d;return p}function Sn(r,e,n){var o;while(e.length&&(o=X(e)).i<=n)e.pop(),r.push(o.vs),n++;return n}function _s(r){return function(e,n){if(e.barycenter<n.barycenter)return-1;else if(e.barycenter>n.barycenter)return 1;return!r?e.i-n.i:n.i-e.i}}function zr(r,e,n,o){var i=r.children(e),f=r.node(e),s=f?f.borderLeft:void 0,d=f?f.borderRight:void 0,c={};if(s)i=zt(i,function(w){return w!==s&&w!==d});var p=Ln(r,i);b(p,function(w){if(r.children(w.v).length){var y=zr(r,w.v,n,o);if(c[w.v]=y,Object.prototype.hasOwnProperty.call(y,"barycenter"))xs(w,y)}});var l=In(p,n);Es(l,c);var m=Pn(l,o);if(s){if(m.vs=N([s,m.vs,d]),r.predecessors(s).length){var h=r.node(r.predecessors(s)[0]),v=r.node(r.predecessors(d)[0]);if(!Object.prototype.hasOwnProperty.call(m,"barycenter"))m.barycenter=0,m.weight=0;m.barycenter=(m.barycenter*m.weight+h.order+v.order)/(m.weight+2),m.weight+=2}}return m}function Es(r,e){b(r,function(n){n.vs=N(n.vs.map(function(o){if(e[o])return e[o].vs;return o}))})}function xs(r,e){if(!Ge(r.barycenter))r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight;else r.barycenter=e.barycenter,r.weight=e.weight}function Cn(r){var e=Mr(r),n=kn(r,P(1,e+1),"inEdges"),o=kn(r,P(e-1,-1,-1),"outEdges"),i=On(r);Tn(r,i);var f=Number.POSITIVE_INFINITY,s;for(var d=0,c=0;c<4;++d,++c){Os(d%2?n:o,d%4>=2),i=D(r);var p=xn(r,i);if(p<f)c=0,s=Ye(i),f=p}Tn(r,s)}function kn(r,e,n){return E(e,function(o){return En(r,o,n)})}function Os(r,e){var n=new xe;b(r,function(o){var i=o.graph().root,f=zr(o,i,n,e);b(f.vs,function(s,d){o.node(s).order=d}),gn(o,n,f.vs)})}function Tn(r,e){b(e,function(n){b(n,function(o,i){r.node(o).order=i})})}function An(r){var e=Is(r);b(r.graph().dummyChains,function(n){var o=r.node(n),i=o.edgeObj,f=Ls(r,e,i.v,i.w),{path:s,lca:d}=f,c=0,p=s[c],l=!0;while(n!==i.w){if(o=r.node(n),l){while((p=s[c])!==d&&r.node(p).maxRank<o.rank)c++;if(p===d)l=!1}if(!l){while(c<s.length-1&&r.node(p=s[c+1]).minRank<=o.rank)c++;p=s[c]}r.setParent(n,p),n=r.successors(n)[0]}})}function Ls(r,e,n,o){var i=[],f=[],s=Math.min(e[n].low,e[o].low),d=Math.max(e[n].lim,e[o].lim),c,p;c=n;do c=r.parent(c),i.push(c);while(c&&(e[c].low>s||d>e[c].lim));p=c,c=o;while((c=r.parent(c))!==p)f.push(c);return{path:i.concat(f.reverse()),lca:p}}function Is(r){var e={},n=0;function o(i){var f=n;b(r.children(i),o),e[i]={low:f,lim:n++}}return b(r.children(),o),e}function Ss(r,e){var n={};function o(i,f){var s=0,d=0,c=i.length,p=X(f);return b(f,function(l,m){var h=Ps(r,l),v=h?r.node(h).order:c;if(h||l===p)b(f.slice(d,m+1),function(w){b(r.predecessors(w),function(y){var g=r.node(y),_=g.order;if((_<s||v<_)&&!(g.dummy&&r.node(w).dummy))Rn(n,y,w)})}),d=m+1,s=v}),f}return Yn(e,o),n}function Ns(r,e){var n={};function o(f,s,d,c,p){var l;b(P(s,d),function(m){if(l=f[m],r.node(l).dummy)b(r.predecessors(l),function(h){var v=r.node(h);if(v.dummy&&(v.order<c||v.order>p))Rn(n,h,l)})})}function i(f,s){var d=-1,c,p=0;return b(s,function(l,m){if(r.node(l).dummy==="border"){var h=r.predecessors(l);if(h.length)c=r.node(h[0]).order,o(s,p,m,d,c),p=m,d=c}o(s,p,s.length,c,f.length)}),s}return Yn(e,i),n}function Ps(r,e){if(r.node(e).dummy)return tr(r.predecessors(e),function(n){return r.node(n).dummy})}function Rn(r,e,n){if(e>n){var o=e;e=n,n=o}if(!Object.prototype.hasOwnProperty.call(r,e))Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=r[e];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function ks(r,e,n){if(e>n){var o=e;e=n,n=o}return!!r[e]&&Object.prototype.hasOwnProperty.call(r[e],n)}function Ts(r,e,n,o){var i={},f={},s={};return b(e,function(d){b(d,function(c,p){i[c]=c,f[c]=c,s[c]=p})}),b(e,function(d){var c=-1;b(d,function(p){var l=o(p);if(l.length){l=A(l,function(y){return s[y]});var m=(l.length-1)/2;for(var h=Math.floor(m),v=Math.ceil(m);h<=v;++h){var w=l[h];if(f[p]===p&&c<s[w]&&!ks(n,p,w))f[w]=p,f[p]=i[p]=i[w],c=s[w]}}})}),{root:i,align:f}}function Cs(r,e,n,o,i){var f={},s=As(r,e,n,i),d=i?"borderLeft":"borderRight";function c(m,h){var v=s.nodes(),w=v.pop(),y={};while(w){if(y[w])m(w);else y[w]=!0,v.push(w),v=v.concat(h(w));w=v.pop()}}function p(m){f[m]=s.inEdges(m).reduce(function(h,v){return Math.max(h,f[v.v]+s.edge(v))},0)}function l(m){var h=s.outEdges(m).reduce(function(w,y){return Math.min(w,f[y.w]-s.edge(y))},Number.POSITIVE_INFINITY),v=r.node(m);if(h!==Number.POSITIVE_INFINITY&&v.borderType!==d)f[m]=Math.max(f[m],h)}return c(p,s.predecessors.bind(s)),c(l,s.successors.bind(s)),b(o,function(m){f[m]=f[n[m]]}),f}function As(r,e,n,o){var i=new xe,f=r.graph(),s=Bs(f.nodesep,f.edgesep,o);return b(e,function(d){var c;b(d,function(p){var l=n[p];if(i.setNode(l),c){var m=n[c],h=i.edge(m,l);i.setEdge(m,l,Math.max(s(r,p,c),h||0))}c=p})}),i}function Rs(r,e){return H(an(e),function(n){var{NEGATIVE_INFINITY:o,POSITIVE_INFINITY:i}=Number;return et(n,function(f,s){var d=Ds(r,s)/2;o=Math.max(f+d,o),i=Math.min(f-d,i)}),o-i})}function Ms(r,e){var n=an(e),o=B(n),i=S(n);b(["u","d"],function(f){b(["l","r"],function(s){var d=f+s,c=r[d],p;if(c===e)return;var l=an(c);if(p=s==="l"?o-B(l):i-S(l),p)r[d]=W(c,function(m){return m+p})})})}function js(r,e){return W(r.ul,function(n,o){if(e)return r[e.toLowerCase()][o];else{var i=A(E(r,o));return(i[1]+i[2])/2}})}function Mn(r){var e=D(r),n=nr(Ss(r,e),Ns(r,e)),o={},i;b(["u","d"],function(s){i=s==="u"?e:an(e).reverse(),b(["l","r"],function(d){if(d==="r")i=E(i,function(m){return an(m).reverse()});var c=(s==="u"?r.predecessors:r.successors).bind(r),p=Ts(r,i,n,c),l=Cs(r,i,p.root,p.align,d==="r");if(d==="r")l=W(l,function(m){return-m});o[s+d]=l})});var f=Rs(r,o);return Ms(o,f),js(o,r.graph().align)}function Bs(r,e,n){return function(o,i,f){var s=o.node(i),d=o.node(f),c=0,p;if(c+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":p=-s.width/2;break;case"r":p=s.width/2;break}if(p)c+=n?p:-p;if(p=0,c+=(s.dummy?e:r)/2,c+=(d.dummy?e:r)/2,c+=d.width/2,Object.prototype.hasOwnProperty.call(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":p=d.width/2;break;case"r":p=-d.width/2;break}if(p)c+=n?p:-p;return p=0,c}}function Ds(r,e){return r.node(e).width}function jn(r){r=gr(r),Fs(r),tt(Mn(r),function(e,n){r.node(n).x=e})}function Fs(r){var e=D(r),n=r.graph().ranksep,o=0;b(e,function(i){var f=S(E(i,function(s){return r.node(s).height}));b(i,function(s){r.node(s).y=o+f/2}),o+=f+n})}function Hr(r,e){var n=e&&e.debugTiming?Gt:Xt;n("layout",()=>{var o=n(" buildLayoutGraph",()=>Js(r));n(" runLayout",()=>Gs(o,n)),n(" updateInputGraph",()=>Xs(r,o))})}function Gs(r,e){e(" makeSpaceForEdgeLabels",()=>Zs(r)),e(" removeSelfEdges",()=>au(r)),e(" acyclic",()=>Tt(r)),e(" nestingGraph.run",()=>ln(r)),e(" rank",()=>Yr(gr(r))),e(" injectEdgeLabelProxies",()=>$s(r)),e(" removeEmptyRanks",()=>Bt(r)),e(" nestingGraph.cleanup",()=>hn(r)),e(" normalizeRanks",()=>jt(r)),e(" assignRankMinMax",()=>Qs(r)),e(" removeEdgeLabelProxies",()=>ru(r)),e(" normalize.run",()=>Kt(r)),e(" parentDummyChains",()=>An(r)),e(" addBorderSegments",()=>Vt(r)),e(" order",()=>Cn(r)),e(" insertSelfEdges",()=>fu(r)),e(" adjustCoordinateSystem",()=>Wt(r)),e(" position",()=>jn(r)),e(" positionSelfEdges",()=>su(r)),e(" removeBorderNodes",()=>iu(r)),e(" normalize.undo",()=>Zt(r)),e(" fixupEdgeLabelCoords",()=>nu(r)),e(" undoCoordinateSystem",()=>qt(r)),e(" translateGraph",()=>eu(r)),e(" assignNodeIntersects",()=>tu(r)),e(" reversePoints",()=>ou(r)),e(" acyclic.undo",()=>Ct(r))}function Xs(r,e){b(r.nodes(),function(n){var o=r.node(n),i=e.node(n);if(o){if(o.x=i.x,o.y=i.y,e.children(n).length)o.width=i.width,o.height=i.height}}),b(r.edges(),function(n){var o=r.edge(n),i=e.edge(n);if(o.points=i.points,Object.prototype.hasOwnProperty.call(i,"x"))o.x=i.x,o.y=i.y}),r.graph().width=e.graph().width,r.graph().height=e.graph().height}var Us=["nodesep","edgesep","ranksep","marginx","marginy"],Vs={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Ys=["acyclicer","ranker","rankdir","align"],zs=["width","height"],Ws={width:0,height:0},qs=["minlen","weight","width","height","labeloffset"],Hs={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ks=["labelpos"];function Js(r){var e=new xe({multigraph:!0,compound:!0}),n=qr(r.graph());return e.setGraph(nr({},Vs,Wr(n,Us),K(n,Ys))),b(r.nodes(),function(o){var i=qr(r.node(o));e.setNode(o,qe(Wr(i,zs),Ws)),e.setParent(o,r.parent(o))}),b(r.edges(),function(o){var i=qr(r.edge(o));e.setEdge(o,nr({},Hs,Wr(i,qs),K(i,Ks)))}),e}function Zs(r){var e=r.graph();e.ranksep/=2,b(r.edges(),function(n){var o=r.edge(n);if(o.minlen*=2,o.labelpos.toLowerCase()!=="c")if(e.rankdir==="TB"||e.rankdir==="BT")o.width+=o.labeloffset;else o.height+=o.labeloffset})}function $s(r){b(r.edges(),function(e){var n=r.edge(e);if(n.width&&n.height){var o=r.node(e.v),i=r.node(e.w),f={rank:(i.rank-o.rank)/2+o.rank,e};T(r,"edge-proxy",f,"_ep")}})}function Qs(r){var e=0;b(r.nodes(),function(n){var o=r.node(n);if(o.borderTop)o.minRank=r.node(o.borderTop).rank,o.maxRank=r.node(o.borderBottom).rank,e=S(e,o.maxRank)}),r.graph().maxRank=e}function ru(r){b(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="edge-proxy")r.edge(n.e).labelRank=n.rank,r.removeNode(e)})}function eu(r){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,f=r.graph(),s=f.marginx||0,d=f.marginy||0;function c(p){var{x:l,y:m,width:h,height:v}=p;e=Math.min(e,l-h/2),n=Math.max(n,l+h/2),o=Math.min(o,m-v/2),i=Math.max(i,m+v/2)}b(r.nodes(),function(p){c(r.node(p))}),b(r.edges(),function(p){var l=r.edge(p);if(Object.prototype.hasOwnProperty.call(l,"x"))c(l)}),e-=s,o-=d,b(r.nodes(),function(p){var l=r.node(p);l.x-=e,l.y-=o}),b(r.edges(),function(p){var l=r.edge(p);if(b(l.points,function(m){m.x-=e,m.y-=o}),Object.prototype.hasOwnProperty.call(l,"x"))l.x-=e;if(Object.prototype.hasOwnProperty.call(l,"y"))l.y-=o}),f.width=n-e+s,f.height=i-o+d}function tu(r){b(r.edges(),function(e){var n=r.edge(e),o=r.node(e.v),i=r.node(e.w),f,s;if(!n.points)n.points=[],f=i,s=o;else f=n.points[0],s=n.points[n.points.length-1];n.points.unshift(kr(o,f)),n.points.push(kr(i,s))})}function nu(r){b(r.edges(),function(e){var n=r.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x")){if(n.labelpos==="l"||n.labelpos==="r")n.width-=n.labeloffset;switch(n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}})}function ou(r){b(r.edges(),function(e){var n=r.edge(e);if(n.reversed)n.points.reverse()})}function iu(r){b(r.nodes(),function(e){if(r.children(e).length){var n=r.node(e),o=r.node(n.borderTop),i=r.node(n.borderBottom),f=r.node(X(n.borderLeft)),s=r.node(X(n.borderRight));n.width=Math.abs(s.x-f.x),n.height=Math.abs(i.y-o.y),n.x=f.x+n.width/2,n.y=o.y+n.height/2}}),b(r.nodes(),function(e){if(r.node(e).dummy==="border")r.removeNode(e)})}function au(r){b(r.edges(),function(e){if(e.v===e.w){var n=r.node(e.v);if(!n.selfEdges)n.selfEdges=[];n.selfEdges.push({e,label:r.edge(e)}),r.removeEdge(e)}})}function fu(r){var e=D(r);b(e,function(n){var o=0;b(n,function(i,f){var s=r.node(i);s.order=f+o,b(s.selfEdges,function(d){T(r,"selfedge",{width:d.label.width,height:d.label.height,rank:s.rank,order:f+ ++o,e:d.e,label:d.label},"_se")}),delete s.selfEdges})})}function su(r){b(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="selfedge"){var o=r.node(n.e.v),i=o.x+o.width/2,f=o.y,s=n.x-i,d=o.height/2;r.setEdge(n.e,n.label),r.removeNode(e),n.label.points=[{x:i+2*s/3,y:f-d},{x:i+5*s/6,y:f-d},{x:i+s,y:f},{x:i+5*s/6,y:f+d},{x:i+2*s/3,y:f+d}],n.label.x=n.x,n.label.y=n.y}})}function Wr(r,e){return W(K(r,e),Number)}function qr(r){var e={};return b(r,function(n,o){e[o.toLowerCase()]=n}),e}var Bn=t((r,e,n)=>Math.max(e,Math.min(n,r)),"clamp"),Dn=t((r="TB")=>{switch(r){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),uu=t((r)=>r==="flowchart"||r==="flowchart-v2"||r==="stateDiagram"||r==="er"||r==="classDiagram","shouldMergeSelfLoopSegments"),du=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],cu=t((r,e,n,o,i)=>{let f=[],s=new Set;if(n.forEach(({start:l,end:m})=>{if(l!==o)s.add(l);if(m!==o)s.add(m)}),s.forEach((l)=>{let m=r.node(l);if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)}),f.length===0)n.forEach(({edge:l})=>{(l.points??[]).forEach((m)=>{if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)})});if(f.length===0)return Dn(i);let d=f.reduce((l,m)=>({x:l.x+m.x/f.length,y:l.y+m.y/f.length}),{x:0,y:0}),c=d.x-e.x,p=d.y-e.y;if(Math.abs(c)>Math.abs(p))return c>0?"right":"left";if(Math.abs(p)>0)return p>0?"bottom":"top";return Dn(i)},"getSelfLoopSide"),pu=t((r,e="top",n=0,o=0)=>{let i=r.x,f=r.y-n,s=r.width/2,d=r.height/2,c=Math.max(36,Math.min(100,r.width*0.8)),p=Bn(Math.max(o,r.width*0.35),36,c),l=Bn(Math.min(r.width,r.height)*0.45,24,48);switch(e){case"bottom":{let m=f+d;return[{x:i-p/2,y:m},{x:i-p/2,y:m+l},{x:i+p/2,y:m+l},{x:i+p/2,y:m}]}case"right":{let m=i+s;return[{x:m,y:f-p/2},{x:m+l,y:f-p/2},{x:m+l,y:f+p/2},{x:m,y:f+p/2}]}case"left":{let m=i-s;return[{x:m,y:f-p/2},{x:m-l,y:f-p/2},{x:m-l,y:f+p/2},{x:m,y:f+p/2}]}case"top":default:{let m=f-d;return[{x:i-p/2,y:m},{x:i-p/2,y:m-l},{x:i+p/2,y:m-l},{x:i+p/2,y:m}]}}},"getSelfLoopPoints"),lu=t((r,e,n="top",o=0,i={})=>{let s=r.x,d=r.y-o,c=i.width??0,p=i.height??0;switch(n){case"bottom":return{x:s,y:Math.max(...e.map((l)=>l.y))+p/2+4};case"right":return{x:Math.max(...e.map((l)=>l.x))+c/2+4,y:d};case"left":return{x:Math.min(...e.map((l)=>l.x))-c/2-4,y:d};case"top":default:return{x:s,y:Math.min(...e.map((l)=>l.y))-p/2-4}}},"getSelfLoopLabelPosition"),tl=t((r,e=0,{mergeSelfLoops:n=!0}={})=>{let o=new Map,i=[],f=r.graph()?.rankdir;return r.edges().forEach((s)=>{let d=r.edge(s);if(n&&d.selfLoop){let c=d.selfLoop.id;if(!o.has(c))o.set(c,[]);o.get(c).push({edge:d,start:s.v,end:s.w})}else i.push({edge:d,start:s.v,end:s.w})}),o.forEach((s)=>{if(s.length!==3){s.forEach((_)=>i.push(_));return}s.sort((_,R)=>_.edge.selfLoop.order-R.edge.selfLoop.order);let[d,c,p]=s,l=d.edge.originalEdge??c.edge.originalEdge??p.edge.originalEdge??c.edge,m=r.node(l.start);if(!m){s.forEach((_)=>i.push(_));return}let h={width:c.edge.width,height:c.edge.height},v=cu(r,m,s,l.start,f),w=pu(m,v,e,h.width??0),y=lu(m,w,v,e,h),g={...c.edge,...l,id:l.id,points:w,start:l.start,end:l.end,x:y.x,y:y.y,width:h.width,height:h.height,labelStyle:c.edge.labelStyle,fromCluster:d.edge.fromCluster??c.edge.fromCluster??p.edge.fromCluster,toCluster:d.edge.toCluster??c.edge.toCluster??p.edge.toCluster};delete g.selfLoop,delete g.originalEdge,i.push({edge:g,start:g.start,end:g.end})}),i},"getEdgesToRender"),Xn=t(async({element:r,graph:e,diagramType:n,id:o,parentCluster:i,siteConfig:f})=>{let s=e.graph().rankdir;a.trace("Dir in recursive render - dir:",s);let{clusters:d,edgePaths:c,edgeLabels:p,nodes:l,rootGroups:m}=to(r,{edgePathsClass:"edgePaths"});if(!e.nodes())a.info("No nodes found for",e);else a.info("Recursive render XXX",e.nodes());if(e.edges().length>0)a.info("Recursive edges",e.edge(e.edges()[0]));let h=uu(n);await Promise.all(e.nodes().map(async function(y){let g=e.node(y);if(i!==void 0){let _=JSON.parse(JSON.stringify(i.clusterData));if(a.trace(`Setting data for parent cluster XXX
|
|
2
2
|
Node.id = `,y,`
|
|
3
3
|
data=`,_.height,`
|
|
4
4
|
Parent cluster`,i.height),e.setNode(i.id,_),!e.parent(y))a.trace("Setting parent",y,i.id),e.setParent(y,i.id,_)}if(a.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){a.info("Cluster identified XBX",y,g.width,e.node(y));let{ranksep:_,nodesep:R}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:_+25,nodesep:R});let Kr=await vu({element:l,graph:g.graph,diagramType:n,id:o,parentCluster:e.node(y),siteConfig:f}),Jr=Kr.elem;O(g,Jr),g.diff=Kr.diff||0,a.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),vl(Jr,g)}else if(e.children(y).length>0)a.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),a.trace(Qr(g.id,e)),J.set(g.id,{id:Qr(g.id,e),node:g});else a.trace("Node - the non recursive path XAX",y,l,e.node(y),s),await no(l,e.node(y),{config:f,dir:s})})),await t(async()=>{let y=e.edges().map(async function(g){let _=e.edge(g.v,g.w,g.name);if(a.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),a.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),a.info("Fix",J,"ids:",g.v,g.w,"Translating: ",J.get(g.v),J.get(g.w)),h&&_.selfLoop){if(_.selfLoop.order!==1)return;let R={..._.originalEdge,..._,id:_.selfLoop.id,startLabelLeft:_.originalEdge?.startLabelLeft??_.startLabelLeft,startLabelRight:_.originalEdge?.startLabelRight??_.startLabelRight,endLabelLeft:_.originalEdge?.endLabelLeft??_.endLabelLeft,endLabelRight:_.originalEdge?.endLabelRight??_.endLabelRight};await _n(p,R),_.width=R.width,_.height=R.height,_.labelStyle=R.labelStyle;return}await _n(p,_)});await Promise.all(y)},"processEdges")();let{subGraphTitleTotalMargin:w}=bn(f);return{elem:m,graph:e,groups:{clusters:d,edgePaths:c,edgeLabels:p,nodes:l,rootGroups:m},diagramType:n,id:o,mergeSelfLoops:h,subGraphTitleTotalMargin:w}},"measureDagreGraph"),Un=t((r)=>{a.info("############################################# XXX"),a.info("### Layout ### XXX"),a.info("############################################# XXX"),Hr(r)},"runDagreGraphLayout"),mu=t((r,e,n)=>{let o=r.node(e);if(!o)return;let i={...o};if(o?.clusterNode)i.y=(o.y??0)+n;else if(r.children(e).length>0)i.height=(o.height??0)+n;else i.y=(o.y??0)+n/2;return i},"normalizeDagreNode"),Fn=t((r,e)=>{du.forEach((n)=>{if(e[n]!==void 0)r[n]=e[n]})},"applyDagreNodeLayout"),hu=t((r,e,n,o)=>({...r,start:r.start??e,end:r.end??n,points:(r.points??[]).map((i)=>({...i,y:typeof i.y==="number"?i.y+o:i.y}))}),"normalizeDagreEdge"),$l=t((r,e)=>{let{graph:n,mergeSelfLoops:o,subGraphTitleTotalMargin:i=0}=e,f=new Map(r.nodes.map((d)=>[d.id,d]));ro(n).forEach((d)=>{let c=mu(n,d,i);if(!c)return;Fn(n.node(d),c);let p=f.get(d);if(p)Fn(p,c)});let s=i/2;return r.edges=tl(n,s,{mergeSelfLoops:o}).map(({edge:d,start:c,end:p})=>hu(d,c,p,s)),r},"applyDagreLayoutResult"),gu=t(async({elem:r,graph:e,groups:{clusters:n,edgePaths:o},diagramType:i,id:f,mergeSelfLoops:s,subGraphTitleTotalMargin:d})=>{let c=0;await Promise.all(ro(e).map(async function(m){let h=e.node(m);if(a.info("Position XBX => "+m+": ("+h.x,","+h.y,") width: ",h.width," height: ",h.height),h?.clusterNode)h.y+=d,a.info("A tainted cluster node XBX1",m,h.id,h.width,h.height,h.x,h.y,e.parent(m)),J.get(h.id).node=h,cn(h);else if(e.children(m).length>0){a.info("A pure cluster node XBX1",m,h.id,h.x,h.y,h.width,h.height,e.parent(m)),h.height+=d,e.node(h.parentId);let v=h?.padding/2||0,w=h?.labelBBox?.height||0,y=w-v||0;a.debug("OffsetY",y,"labelHeight",w,"halfPadding",v),await Qn(n,h),J.get(h.id).node=h}else{let v=e.node(h.parentId);h.y+=d/2,a.info("A regular node XBX1 - using the padding",h.id,"parent",h.parentId,h.width,h.height,h.x,h.y,"offsetY",h.offsetY,"parent",v,v?.offsetY,h),cn(h)}}));let p=d/2;return tl(e,p,{mergeSelfLoops:s}).forEach(function({edge:m,start:h,end:v}){a.info("Edge "+h+" -> "+v+": "+JSON.stringify(m),m),m.points.forEach((_)=>_.y+=p);let w=e.node(h),y=e.node(v),g=Jn(o,m,J,i,w,y,f);la(m,g)}),e.nodes().forEach(function(m){let h=e.node(m);if(a.info(m,h.type,h.diff),h.isGroup)c=h.diff}),a.warn("Returning from recursive render XAX",r,c),{elem:r,diff:c}},"paintDagreLayoutCore"),vu=t(async(r)=>{let e=await Xn(r);return Un(e.graph),await gu(e)},"renderDagreSubgraph"),nl=t((r)=>{let e=new xe({multigraph:!0,compound:!0}).setGraph({rankdir:r.direction,nodesep:r.config?.nodeSpacing||r.nodeSpacing||r.config?.flowchart?.nodeSpacing,ranksep:r.config?.rankSpacing||r.rankSpacing||r.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return r.nodes.forEach((n)=>{if(e.setNode(n.id,{...n}),n.parentId)e.setParent(n.id,n.parentId)}),a.debug("Edges:",r.edges),r.edges.forEach((n)=>{if(n.start===n.end){let o=n.start,i=o+"---"+o+"---1",f=o+"---"+o+"---2",s=e.node(o);e.setNode(i,{domId:i,id:i,parentId:s.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(i,s.parentId),e.setNode(f,{domId:f,id:f,parentId:s.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,s.parentId);let d=structuredClone(n),c=structuredClone(n),p=structuredClone(n),l=structuredClone(n);if(c.originalEdge=d,c.selfLoop={id:d.id,order:0},p.originalEdge=d,p.selfLoop={id:d.id,order:1},l.originalEdge=d,l.selfLoop={id:d.id,order:2},c.label="",c.arrowTypeEnd="none",c.endLabelLeft="",c.endLabelRight="",c.startLabelLeft="",c.id=o+"-cyclic-special-1",p.startLabelRight="",p.startLabelLeft="",p.endLabelLeft="",p.endLabelRight="",p.arrowTypeStart="none",p.arrowTypeEnd="none",p.id=o+"-cyclic-special-mid",l.label="",l.startLabelRight="",l.startLabelLeft="",l.arrowTypeStart="none",s.isGroup)c.fromCluster=o,l.toCluster=o;l.id=o+"-cyclic-special-2",l.arrowTypeStart="none",e.setEdge(o,i,c,o+"-cyclic-special-0"),e.setEdge(i,f,p,o+"-cyclic-special-1"),e.setEdge(f,o,l,o+"-cyclic-special-2")}else e.setEdge(n.start,n.end,{...n},n.id)}),al(e),{graph:e}},"prepareLayoutForDagre"),Bl=t(async(r,{element:e,preparedLayout:n})=>{let o=n??nl(r),i=u(),f=await Xn({element:e,graph:o.graph,diagramType:r.type,id:r.diagramId,parentCluster:void 0,siteConfig:i});return o.measuredLayout=f,f},"measureDagreLayout"),Fl=t((r,e)=>{let n=e.preparedLayout?.measuredLayout;if(!n)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return Un(n.graph),$l(r,n),n},"runDagreLayoutCore"),bu=t((r,{measure:e})=>ro(e.graph).map((n)=>e.graph.node(n)).filter(Boolean),"getDagrePaintNodes"),yu=t((r,e,{measure:n})=>r?n.graph.node(r):void 0,"getDagreEdgeNode"),rl=Ta({prepareLayout:nl,measureLayout:Bl,runLayoutCore:Fl,paintOptions:{clusterDb:J,getNodes:bu,getEdgeNode:yu,skipNode:t((r,{measure:e})=>!e.graph.hasNode(r.id),"skipNode"),isCluster:t((r,{measure:e})=>e.graph.hasNode(r.id)&&(e.graph.children(r.id)??[]).length>0,"isCluster")}});export{tl,$l,nl,Bl,Fl,rl};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ks}from"./chunk-21d8pzcm.js";export{ks as createInfoServices};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,a}from"./chunk-
|
|
1
|
+
import{t,a}from"./chunk-dbv8qpen.js";import{he,Tn,En}from"./chunk-55kw8p9r.js";import{re}from"./chunk-n00se8nk.js";import{Sa,gn}from"./chunk-21d8pzcm.js";var i=Sa().RailroadPeg.parser.LangiumParser,s=t((e)=>{let r=e.alternatives.map(l);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformOrderedChoice"),l=t((e)=>{let r=e.elements.map(m);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),m=t((e)=>{let r=p(e.suffix);if(!e.operator)return r;return{type:"special",text:e.operator==="&"?`&${o(r)}`:`!${o(r)}`}},"transformPrefix"),o=t((e)=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),p=t((e)=>{let r=u(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),u=t((e)=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return s(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),c=t((e)=>({name:e.name,definition:s(e.definition)}),"transformRule"),f=t((e)=>{if(re(e,he),e.title)he.setTitle(e.title);e.rules.map((r)=>he.addRule(c(r)))},"populateDb"),d={parse:t((e)=>{he.clear(),a.debug("[PEG 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("[PEG Parser] Parsed rules:",n.rules.length),f(n),a.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:he}},w={parser:d,db:he,renderer:En,styles:Tn};export{w as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s}from"./chunk-
|
|
1
|
+
import{s}from"./chunk-b83bzjcx.js";var c=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ji=s("circle-check",c);
|
|
2
2
|
export{ji};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e,n,y,Be}from"./chunk-
|
|
1
|
+
import{e,n,y,Be}from"./chunk-b83bzjcx.js";function ui(a){let t=a.filter((l)=>l.closedAt===null);if(!t.length)return[];return[{label:"项目",options:t.map((l)=>({value:l.id,label:l.name,description:l.directory}))}]}function di(a){let{Input:t}=y();return n("div",{className:"relative mb-3 min-w-0",children:[e(Be,{"aria-hidden":!0,className:"pointer-events-none absolute top-3 left-3 size-4 text-faint"}),e(t,{type:"search","aria-label":a.label,placeholder:a.placeholder,value:a.value,onChange:(l)=>a.onChange(l.target.value),className:"h-10 min-w-0 pl-9"})]})}function pi(){return e("div",{role:"status","aria-label":"正在加载",className:"divide-y divide-line",children:[0,1,2].map((a)=>n("div",{className:"h-16 space-y-2 px-4 py-3",children:[e("div",{className:"h-3 w-24 animate-pulse rounded bg-raised"}),e("div",{className:"h-3 w-2/3 animate-pulse rounded bg-raised"})]},a))})}
|
|
2
2
|
export{ui,di,pi};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./chunk-
|
|
1
|
+
import{t}from"./chunk-dbv8qpen.js";function re(c,e){if(c.accDescr)e.setAccDescription?.(c.accDescr);if(c.accTitle)e.setAccTitle?.(c.accTitle);if(c.title)e.setDiagramTitle?.(c.title)}t(re,"populateCommonDb");
|
|
2
2
|
export{re};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{re}from"./chunk-
|
|
1
|
+
import{re}from"./chunk-n00se8nk.js";import{t,a,B,S,G,A,R,I,L,D,P,N,Q,X}from"./chunk-dbv8qpen.js";import{fe}from"./chunk-21d8pzcm.js";var F=B.packet,C=class{constructor(){this.packet=[],this.setAccTitle=R,this.getAccTitle=I,this.setDiagramTitle=P,this.getDiagramTitle=N,this.getAccDescription=D,this.setAccDescription=L}static{t(this,"PacketDB")}getConfig(){let e=X({...F,...S().packet});if(e.showBits)e.paddingY+=10;return e}getPacket(){return this.packet}pushWord(e){if(e.length>0)this.packet.push(e)}clear(){A(),this.packet=[]}},W=1e4,_=t((e,r)=>{re(e,r);let i=-1,s=[],l=1,{bitsPerRow:d}=r.getConfig();for(let{start:o,end:n,bits:g,label:f}of e.blocks){if(o!==void 0&&n!==void 0&&n<o)throw Error(`Packet block ${o} - ${n} is invalid. End must be greater than start.`);if(o??=i+1,o!==i+1)throw Error(`Packet block ${o} - ${n??o} is not contiguous. It should start from ${i+1}.`);if(g===0)throw Error(`Packet block ${o} is invalid. Cannot have a zero bit field.`);n??=o+(g??1)-1,g??=n-o+1,i=n,a.debug(`Packet block ${o} - ${i} with label ${f}`);while(s.length<=d+1&&r.getPacket().length<W){let[p,h]=M({start:o,end:n,bits:g,label:f},l,d);if(s.push(p),p.end+1===l*d)r.pushWord(s),s=[],l++;if(!h)break;({start:o,end:n,bits:g,label:f}=h)}}r.pushWord(s)},"populate"),M=t((e,r,i)=>{if(e.start===void 0)throw Error("start should have been set during first phase");if(e.end===void 0)throw Error("end should have been set during first phase");if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=r*i)return[e,void 0];let s=r*i-1,l=r*i;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),T={parser:{yy:void 0},parse:t(async(e)=>{let r=await fe("packet",e),i=T.parser?.yy;if(!(i instanceof C))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");a.debug(r),_(r,i)},"parse")},Y=t((e,r,i,s)=>{let l=s.db,d=l.getConfig(),{rowHeight:o,paddingY:n,bitWidth:g,bitsPerRow:f}=d,p=l.getPacket(),h=l.getDiagramTitle(),b=o+n,c=b*(p.length+1)-(h?0:o),k=g*f+2,m=Q(r);m.attr("viewBox",`0 0 ${k} ${c}`),G(m,c,k,d.useMaxWidth);for(let[x,u]of p.entries())O(m,u,x,d);m.append("text").text(h).attr("x",k/2).attr("y",c-b/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=t((e,r,i,{rowHeight:s,paddingX:l,paddingY:d,bitWidth:o,bitsPerRow:n,showBits:g,bitOrder:f})=>{let p=e.append("g"),h=i*(s+d)+d,b=f==="descending";for(let c of r){let k=c.end-c.start+1,m=c.start%n,u=(b?n-m-k:m)*o+1,w=k*o-l;if(p.append("rect").attr("x",u).attr("y",h).attr("width",w).attr("height",s).attr("class","packetBlock"),p.append("text").attr("x",u+w/2).attr("y",h+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(c.label),!g)continue;let[z,E]=b?[c.end,c.start]:[c.start,c.end],v=k===1,y=h-2;if(p.append("text").attr("x",u+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(z),!v)p.append("text").attr("x",u+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(E)}},"drawWord"),j={draw:Y},H={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},K=t(({packet:e}={})=>{let r=X(H,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${r.byteFontSize};
|
|
4
4
|
}
|
|
Binary file
|
|
Binary file
|