@bkm016/basalt 0.1.16 → 0.1.18
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-p78wde92.js → chunk-02q61grt.js} +2 -2
- package/chunk-03r6s8pm.js +2 -0
- package/{chunk-38g4jd6v.js → chunk-09fsdkd3.js} +3 -3
- package/{chunk-8r4baw9e.js → chunk-0bg4w7ht.js} +2 -2
- package/chunk-0s4r7k7j.js +2 -0
- package/chunk-27kw4nth.js +2 -0
- package/chunk-2ag9mvms.js +10 -0
- package/{chunk-9ew8cap5.js → chunk-2shwjp8q.js} +1 -1
- package/chunk-3114vstw.js +2 -0
- package/chunk-31meb34a.js +2 -0
- package/chunk-34w345mt.js +2 -0
- package/{chunk-30dxcr91.js → chunk-3amfr8zp.js} +3 -3
- package/chunk-40nk2jjt.js +2 -0
- package/{chunk-44a7f5ta.js → chunk-49bz6hg5.js} +5 -5
- package/{chunk-e8x8zwkg.js → chunk-4hgkwa4k.js} +2 -2
- package/chunk-4wfd77kc.js +2 -0
- package/{chunk-9vam83py.js → chunk-55kpabb3.js} +1 -1
- package/chunk-5p2asrj6.js +2 -0
- package/chunk-65hg0v7e.js +2 -0
- package/chunk-67qw30cj.js +3770 -0
- package/{chunk-b350b01x.js → chunk-6rehcf49.js} +5 -5
- package/chunk-6vkz3wqz.js +25 -0
- package/chunk-81yk0kj2.js +3 -0
- package/chunk-885vf5kb.js +2 -0
- package/{chunk-46vy2m29.js → chunk-8wy08x0d.js} +1 -1
- package/chunk-9cqa9trx.js +4 -0
- package/chunk-ae45qq4z.js +2 -0
- package/chunk-ag3em5yv.js +4 -0
- package/chunk-b5k5p49x.js +2 -0
- package/chunk-b84vbfjc.js +2 -0
- package/{chunk-cs91rmbf.js → chunk-dkpgstr2.js} +7 -7
- package/{chunk-4f6p4n7k.js → chunk-dzn4c87v.js} +2 -2
- package/{chunk-8np9b2y8.js → chunk-e2m8ap8f.js} +2 -2
- package/{chunk-37ndxehw.js → chunk-e5xsyr0n.js} +2 -2
- package/chunk-f97ma522.js +3 -0
- package/chunk-f9yneea6.js +3 -0
- package/{chunk-vqm94hz2.js → chunk-fj56fznw.js} +2 -2
- package/{chunk-xf7zw32f.js → chunk-fk43jgwe.js} +5 -5
- package/{chunk-mh4bjtfs.js → chunk-frjqjdkx.js} +4 -4
- package/{chunk-rqn67tm8.js → chunk-fycz7ap5.js} +1 -1
- package/chunk-fzefs6kn.js +3 -0
- package/chunk-g1n8k4dg.js +5 -0
- package/{chunk-qd2enpr2.js → chunk-g5mdw639.js} +2 -2
- package/chunk-gnvx44kj.js +10 -0
- package/chunk-gpympx0t.js +467 -0
- package/{chunk-b2wpj81x.js → chunk-gyp2jn7d.js} +1 -1
- package/{chunk-y0274xr2.js → chunk-hambwbfz.js} +4 -4
- package/{chunk-1c9nr9rs.js → chunk-j02kqpvq.js} +2 -2
- package/{chunk-ehnc8g6v.js → chunk-j1h7pabk.js} +5 -5
- package/{chunk-w55cnj0f.js → chunk-j6hn9qz6.js} +2 -2
- package/{chunk-m5km74eq.js → chunk-jfx4c32t.js} +2 -2
- package/{chunk-7mgkpn94.js → chunk-jjj8a18b.js} +6 -6
- package/{chunk-pdt65s31.js → chunk-k3c32v59.js} +2 -2
- package/{chunk-rghqprav.js → chunk-k8j3fvx5.js} +1 -1
- package/chunk-kcn3af9r.js +12 -0
- package/{chunk-pyj6avd5.js → chunk-keq5kv9b.js} +2 -2
- package/{chunk-evnqkyt7.js → chunk-m45dpnd1.js} +12 -12
- package/chunk-m4wf04dz.js +15 -0
- package/chunk-m8k6t63k.js +2 -0
- package/{chunk-0crbhhna.js → chunk-nrggp4x6.js} +1 -1
- package/chunk-nt549hv5.js +2 -0
- package/{chunk-06s9pr82.js → chunk-pg4mtrdy.js} +2 -2
- package/chunk-psr4rxnn.js +20 -0
- package/chunk-qhhv81gd.js +2 -0
- package/chunk-qprms4rt.js +2 -0
- package/chunk-r0pm6dap.js +3 -0
- package/{chunk-44b9yx79.js → chunk-rck0kx09.js} +1 -1
- package/chunk-rsn8ad6s.js +2 -0
- package/{chunk-zhyzhekt.js → chunk-skzh3q1s.js} +1 -1
- package/{chunk-g2etemv5.js → chunk-sm4b3q49.js} +2 -2
- package/{chunk-g5p9mj1r.js → chunk-ste3ek53.js} +2 -2
- package/chunk-t3mq64c8.js +3 -0
- package/chunk-trw86cmb.js +11 -0
- package/{chunk-tfhp09nj.js → chunk-tv7met41.js} +2 -2
- package/{chunk-pna1wh02.js → chunk-w33aapmk.js} +12 -12
- package/chunk-wkqrsfrb.js +389 -0
- package/chunk-wxngqzqs.js +3 -0
- package/chunk-xgfqmm46.js +2 -0
- package/{chunk-2eaehpp6.js → chunk-xr77j4f8.js} +3 -3
- package/{chunk-c8g9jjqs.js → chunk-ykstnss8.js} +2 -2
- package/{chunk-1w4nh5t6.js → chunk-yqv7ej5r.js} +3 -3
- package/chunk-z97bcdg2.js +3 -0
- package/chunk-z9s7pwv5.js +7 -0
- package/compiled.js +9 -9
- package/package.json +1 -1
- package/ui-test-worker.js +41 -41
- package/web/{chunk-75meb0dh.js → chunk-013et20n.js} +2 -2
- package/web/chunk-013et20n.js.br +0 -0
- package/web/chunk-013et20n.js.gz +0 -0
- package/web/chunk-0ernj3c0.js +1 -0
- package/web/chunk-0ernj3c0.js.br +0 -0
- package/web/chunk-0ernj3c0.js.gz +0 -0
- package/web/chunk-0j65yg1p.js +1 -0
- package/web/chunk-0j65yg1p.js.br +0 -0
- package/web/chunk-0j65yg1p.js.gz +0 -0
- package/web/chunk-0khcpaa8.js +1 -0
- package/web/chunk-0khcpaa8.js.br +0 -0
- package/web/chunk-0khcpaa8.js.gz +0 -0
- package/web/chunk-0wbdd74r.js +1 -0
- package/web/chunk-0wbdd74r.js.br +2 -0
- package/web/chunk-0wbdd74r.js.gz +0 -0
- package/web/chunk-1f2wvhq9.js +1 -0
- package/web/chunk-1f2wvhq9.js.br +0 -0
- package/web/chunk-1f2wvhq9.js.gz +0 -0
- package/web/{chunk-75kzvpf3.js → chunk-1q2kmv35.js} +18 -18
- package/web/chunk-1q2kmv35.js.br +0 -0
- package/web/chunk-1q2kmv35.js.gz +0 -0
- package/web/{chunk-36e78034.js → chunk-1tfrm3pk.js} +2 -2
- package/web/chunk-1tfrm3pk.js.br +0 -0
- package/web/chunk-1tfrm3pk.js.gz +0 -0
- package/web/chunk-2qt5fy5n.js +1 -0
- package/web/chunk-2qt5fy5n.js.br +0 -0
- package/web/chunk-2qt5fy5n.js.gz +0 -0
- package/web/chunk-2sxtb709.js +1 -0
- package/web/chunk-2sxtb709.js.br +0 -0
- package/web/chunk-2sxtb709.js.gz +0 -0
- package/web/chunk-2wrwm0qe.js +1 -0
- package/web/chunk-2wrwm0qe.js.br +0 -0
- package/web/chunk-2wrwm0qe.js.gz +0 -0
- package/web/{chunk-5sss3r97.js → chunk-2wwj27b9.js} +3 -3
- package/web/chunk-2wwj27b9.js.br +0 -0
- package/web/chunk-2wwj27b9.js.gz +0 -0
- package/web/chunk-33mmrjdp.js +1 -0
- package/web/chunk-33mmrjdp.js.br +2 -0
- package/web/chunk-33mmrjdp.js.gz +0 -0
- package/web/chunk-33tb7q04.js +2 -0
- package/web/chunk-33tb7q04.js.br +0 -0
- package/web/chunk-33tb7q04.js.gz +0 -0
- package/web/chunk-3txb4sha.js +1 -0
- package/web/chunk-3txb4sha.js.br +0 -0
- package/web/chunk-3txb4sha.js.gz +0 -0
- package/web/{chunk-n3f5a91k.js → chunk-3xgfsx7y.js} +2 -2
- package/web/chunk-3xgfsx7y.js.br +0 -0
- package/web/chunk-3xgfsx7y.js.gz +0 -0
- package/web/chunk-40jka4r7.js +2 -0
- package/web/chunk-40jka4r7.js.br +0 -0
- package/web/chunk-40jka4r7.js.gz +0 -0
- package/web/{chunk-mcm3t5wr.js → chunk-41vh5n86.js} +1 -1
- package/web/chunk-41vh5n86.js.br +0 -0
- package/web/chunk-41vh5n86.js.gz +0 -0
- package/web/chunk-4wd9r73y.js.br +0 -0
- package/web/chunk-4wd9r73y.js.gz +0 -0
- package/web/chunk-5kz048x3.js +2 -0
- package/web/chunk-5kz048x3.js.br +0 -0
- package/web/chunk-5kz048x3.js.gz +0 -0
- package/web/chunk-5mbz8yj9.js +3 -0
- package/web/chunk-5mbz8yj9.js.br +0 -0
- package/web/chunk-5mbz8yj9.js.gz +0 -0
- package/web/chunk-6024wfxb.js +30 -0
- package/web/chunk-6024wfxb.js.br +0 -0
- package/web/chunk-6024wfxb.js.gz +0 -0
- package/web/chunk-6ey4c6gw.js +2 -0
- package/web/chunk-6ey4c6gw.js.br +0 -0
- package/web/chunk-6ey4c6gw.js.gz +0 -0
- package/web/chunk-6q3p851n.js +1 -0
- package/web/chunk-6q3p851n.js.br +2 -0
- package/web/chunk-6q3p851n.js.gz +0 -0
- package/web/{chunk-qbhv18t0.js → chunk-74g3wh08.js} +2 -2
- package/web/chunk-74g3wh08.js.br +0 -0
- package/web/chunk-74g3wh08.js.gz +0 -0
- package/web/{chunk-vcnsvj49.js → chunk-78akzkgs.js} +14 -14
- package/web/chunk-78akzkgs.js.br +0 -0
- package/web/chunk-78akzkgs.js.gz +0 -0
- package/web/chunk-7ck99bsp.js +62 -0
- package/web/chunk-7ck99bsp.js.br +0 -0
- package/web/chunk-7ck99bsp.js.gz +0 -0
- package/web/chunk-7fjbyns9.js +1 -0
- package/web/chunk-7fjbyns9.js.br +0 -0
- package/web/chunk-7fjbyns9.js.gz +0 -0
- package/web/chunk-7n6b2xra.js +21 -0
- package/web/chunk-7n6b2xra.js.br +0 -0
- package/web/chunk-7n6b2xra.js.gz +0 -0
- package/web/chunk-7p4mcqkd.js +78 -0
- package/web/chunk-7p4mcqkd.js.br +0 -0
- package/web/chunk-7p4mcqkd.js.gz +0 -0
- package/web/chunk-7ztwkhg5.js +1 -0
- package/web/chunk-7ztwkhg5.js.br +0 -0
- package/web/chunk-7ztwkhg5.js.gz +0 -0
- package/web/{chunk-t89tfrpj.js → chunk-823etvc3.js} +19 -19
- package/web/chunk-823etvc3.js.br +0 -0
- package/web/chunk-823etvc3.js.gz +0 -0
- package/web/{chunk-ps489yjy.js → chunk-8ec53vjd.js} +1 -1
- package/web/chunk-8ec53vjd.js.br +0 -0
- package/web/chunk-8ec53vjd.js.gz +0 -0
- package/web/chunk-8g239029.js.br +0 -0
- package/web/chunk-8g239029.js.gz +0 -0
- package/web/{chunk-p0jghn6b.js → chunk-8g55ytgz.js} +1 -1
- package/web/chunk-8g55ytgz.js.br +0 -0
- package/web/chunk-8g55ytgz.js.gz +0 -0
- package/web/chunk-8nxjthxc.js +1 -0
- package/web/chunk-8nxjthxc.js.br +0 -0
- package/web/chunk-8nxjthxc.js.gz +0 -0
- package/web/chunk-8q76yd76.js +291 -0
- package/web/chunk-8q76yd76.js.br +0 -0
- package/web/chunk-8q76yd76.js.gz +0 -0
- package/web/chunk-9kbrjmtz.js +1 -0
- package/web/chunk-9kbrjmtz.js.br +0 -0
- package/web/chunk-9kbrjmtz.js.gz +0 -0
- package/web/chunk-9s4bh6qm.js +40 -0
- package/web/chunk-9s4bh6qm.js.br +0 -0
- package/web/chunk-9s4bh6qm.js.gz +0 -0
- package/web/chunk-9v1f6yc8.js.br +0 -0
- package/web/chunk-9v1f6yc8.js.gz +0 -0
- package/web/{chunk-a205cj09.js → chunk-9vf3zy3d.js} +2 -2
- package/web/chunk-9vf3zy3d.js.br +0 -0
- package/web/chunk-9vf3zy3d.js.gz +0 -0
- package/web/{chunk-ef03t1mb.js → chunk-a449xjq6.js} +6 -6
- package/web/chunk-a449xjq6.js.br +0 -0
- package/web/chunk-a449xjq6.js.gz +0 -0
- package/web/chunk-ad6x47yy.js.br +0 -0
- package/web/chunk-ad6x47yy.js.gz +0 -0
- package/web/chunk-b05eay33.js +1 -0
- package/web/chunk-b05eay33.js.br +0 -0
- package/web/chunk-b05eay33.js.gz +0 -0
- package/web/{chunk-tfsrk2rc.js → chunk-bdypt5mj.js} +55 -55
- package/web/chunk-bdypt5mj.js.br +0 -0
- package/web/chunk-bdypt5mj.js.gz +0 -0
- package/web/chunk-bvyjy17t.js +14 -0
- package/web/chunk-bvyjy17t.js.br +0 -0
- package/web/chunk-bvyjy17t.js.gz +0 -0
- package/web/{chunk-ctmxm4qd.js → chunk-ccy2q2z0.js} +2 -2
- package/web/chunk-ccy2q2z0.js.br +0 -0
- package/web/chunk-ccy2q2z0.js.gz +0 -0
- package/web/{chunk-wvt76598.js → chunk-ceg13tma.js} +2 -2
- package/web/chunk-ceg13tma.js.br +0 -0
- package/web/chunk-ceg13tma.js.gz +0 -0
- package/web/{chunk-z2hvvkf5.js → chunk-ch60a61d.js} +2 -2
- package/web/chunk-ch60a61d.js.br +0 -0
- package/web/chunk-ch60a61d.js.gz +0 -0
- package/web/chunk-czvdg0c5.js +1 -0
- package/web/chunk-czvdg0c5.js.br +0 -0
- package/web/chunk-czvdg0c5.js.gz +0 -0
- package/web/chunk-d18r4m14.js.br +0 -0
- package/web/chunk-d18r4m14.js.gz +0 -0
- package/web/chunk-dmqtdeb4.js.br +0 -0
- package/web/chunk-dmqtdeb4.js.gz +0 -0
- package/web/chunk-drr7mqg2.js +1 -0
- package/web/chunk-drr7mqg2.js.br +0 -0
- package/web/chunk-drr7mqg2.js.gz +0 -0
- package/web/{chunk-chh8bg2h.js → chunk-dsa5m3h6.js} +34 -34
- package/web/chunk-dsa5m3h6.js.br +0 -0
- package/web/chunk-dsa5m3h6.js.gz +0 -0
- package/web/chunk-dww3grm3.js +24 -0
- package/web/chunk-dww3grm3.js.br +0 -0
- package/web/chunk-dww3grm3.js.gz +0 -0
- package/web/chunk-e187gt5x.js +1 -0
- package/web/chunk-e187gt5x.js.br +0 -0
- package/web/chunk-e187gt5x.js.gz +0 -0
- package/web/{chunk-pf65cank.js → chunk-emxa4wv3.js} +2 -2
- package/web/chunk-emxa4wv3.js.br +0 -0
- package/web/chunk-emxa4wv3.js.gz +0 -0
- package/web/{chunk-gjchc4kg.js → chunk-ey0zwvbx.js} +1 -1
- package/web/chunk-ey0zwvbx.js.br +0 -0
- package/web/chunk-ey0zwvbx.js.gz +0 -0
- package/web/chunk-ey14knbn.js +2 -0
- package/web/chunk-ey14knbn.js.br +0 -0
- package/web/chunk-ey14knbn.js.gz +0 -0
- package/web/chunk-fba06jm8.js +1132 -0
- package/web/chunk-fba06jm8.js.br +0 -0
- package/web/chunk-fba06jm8.js.gz +0 -0
- package/web/chunk-fh56vgfx.js +39 -0
- package/web/chunk-fh56vgfx.js.br +0 -0
- package/web/chunk-fh56vgfx.js.gz +0 -0
- package/web/chunk-ft05x3my.js +169 -0
- package/web/chunk-ft05x3my.js.br +0 -0
- package/web/chunk-ft05x3my.js.gz +0 -0
- package/web/chunk-fzmrnh17.js +303 -0
- package/web/chunk-fzmrnh17.js.br +0 -0
- package/web/chunk-fzmrnh17.js.gz +0 -0
- package/web/{chunk-ybqt106a.js → chunk-gbt7asd7.js} +2 -2
- package/web/chunk-gbt7asd7.js.br +0 -0
- package/web/chunk-gbt7asd7.js.gz +0 -0
- package/web/chunk-gh9fkn3t.js +1 -0
- package/web/chunk-gh9fkn3t.js.br +2 -0
- package/web/chunk-gh9fkn3t.js.gz +0 -0
- package/web/{chunk-sd3cdqcm.js → chunk-h1syyjqq.js} +2 -2
- package/web/chunk-h1syyjqq.js.br +0 -0
- package/web/chunk-h1syyjqq.js.gz +0 -0
- package/web/{chunk-mv5axm2y.js → chunk-h7byk4z3.js} +12 -12
- package/web/chunk-h7byk4z3.js.br +0 -0
- package/web/chunk-h7byk4z3.js.gz +0 -0
- package/web/chunk-hby0hkv4.js +1 -0
- package/web/chunk-hby0hkv4.js.br +0 -0
- package/web/chunk-hby0hkv4.js.gz +0 -0
- package/web/chunk-hjvsp2yx.js +1 -0
- package/web/chunk-hjvsp2yx.js.br +0 -0
- package/web/chunk-hjvsp2yx.js.gz +0 -0
- package/web/chunk-hp167dbv.js.br +0 -0
- package/web/chunk-hp167dbv.js.gz +0 -0
- package/web/{chunk-qwwqdmhv.js → chunk-hpjzy5ww.js} +1 -1
- package/web/chunk-hpjzy5ww.js.br +0 -0
- package/web/chunk-hpjzy5ww.js.gz +0 -0
- package/web/{chunk-1np2aamb.js → chunk-hzfp8kqx.js} +11 -11
- package/web/chunk-hzfp8kqx.js.br +0 -0
- package/web/chunk-hzfp8kqx.js.gz +0 -0
- package/web/{chunk-5d9veaef.js → chunk-j6jjk46a.js} +2 -2
- package/web/chunk-j6jjk46a.js.br +0 -0
- package/web/chunk-j6jjk46a.js.gz +0 -0
- package/web/chunk-j8f0m1dq.js +1 -0
- package/web/chunk-j8f0m1dq.js.br +0 -0
- package/web/chunk-j8f0m1dq.js.gz +0 -0
- package/web/{chunk-t9pg7qf8.js → chunk-jc178ad5.js} +2 -2
- package/web/chunk-jc178ad5.js.br +0 -0
- package/web/chunk-jc178ad5.js.gz +0 -0
- package/web/chunk-jcsf0ke5.js +41 -0
- package/web/chunk-jcsf0ke5.js.br +0 -0
- package/web/chunk-jcsf0ke5.js.gz +0 -0
- package/web/chunk-jg43a2xk.js +139 -0
- package/web/chunk-jg43a2xk.js.br +0 -0
- package/web/chunk-jg43a2xk.js.gz +0 -0
- package/web/chunk-jrgdxqtq.js +7 -0
- package/web/chunk-jrgdxqtq.js.br +0 -0
- package/web/chunk-jrgdxqtq.js.gz +0 -0
- package/web/chunk-js8dvtfg.js +2 -0
- package/web/chunk-js8dvtfg.js.br +0 -0
- package/web/chunk-js8dvtfg.js.gz +0 -0
- package/web/chunk-jt0s9qs7.js +1 -0
- package/web/chunk-jt0s9qs7.js.br +0 -0
- package/web/chunk-jt0s9qs7.js.gz +0 -0
- package/web/chunk-jv5faf88.js +34 -0
- package/web/chunk-jv5faf88.js.br +0 -0
- package/web/chunk-jv5faf88.js.gz +0 -0
- package/web/{chunk-vb2z2azk.js → chunk-k295x81w.js} +79 -79
- package/web/chunk-k295x81w.js.br +0 -0
- package/web/chunk-k295x81w.js.gz +0 -0
- package/web/{chunk-wcj3bxdf.js → chunk-k3aa37pw.js} +2 -2
- package/web/chunk-k3aa37pw.js.br +0 -0
- package/web/chunk-k3aa37pw.js.gz +0 -0
- package/web/{chunk-wgmwgaw4.js → chunk-k6wxwgp1.js} +26 -26
- package/web/chunk-k6wxwgp1.js.br +0 -0
- package/web/chunk-k6wxwgp1.js.gz +0 -0
- package/web/chunk-k9vc7kp2.js +292 -0
- package/web/chunk-k9vc7kp2.js.br +0 -0
- package/web/chunk-k9vc7kp2.js.gz +0 -0
- package/web/chunk-kxyws7q7.js +1 -0
- package/web/chunk-kxyws7q7.js.br +0 -0
- package/web/chunk-kxyws7q7.js.gz +0 -0
- package/web/{chunk-c0hdp2zj.js → chunk-mcgf645h.js} +1 -1
- package/web/chunk-mcgf645h.js.br +4 -0
- package/web/chunk-mcgf645h.js.gz +0 -0
- package/web/{chunk-3gj2t10x.js → chunk-mj3tshy8.js} +31 -31
- package/web/chunk-mj3tshy8.js.br +0 -0
- package/web/chunk-mj3tshy8.js.gz +0 -0
- package/web/chunk-mnb2wdvy.js +24 -0
- package/web/chunk-mnb2wdvy.js.br +0 -0
- package/web/chunk-mnb2wdvy.js.gz +0 -0
- package/web/chunk-ndf58dgc.js +1 -0
- package/web/chunk-ndf58dgc.js.br +0 -0
- package/web/chunk-ndf58dgc.js.gz +0 -0
- package/web/chunk-nhpm5nd5.js +2 -0
- package/web/chunk-nhpm5nd5.js.br +0 -0
- package/web/chunk-nhpm5nd5.js.gz +0 -0
- package/web/chunk-nj0cv1cq.js.br +0 -0
- package/web/chunk-nj0cv1cq.js.gz +0 -0
- package/web/{chunk-0zyekjym.js → chunk-nwxjdetb.js} +1 -1
- package/web/chunk-nwxjdetb.js.br +0 -0
- package/web/chunk-nwxjdetb.js.gz +0 -0
- package/web/chunk-nyjfcard.js +106 -0
- package/web/chunk-nyjfcard.js.br +0 -0
- package/web/chunk-nyjfcard.js.gz +0 -0
- package/web/chunk-nzey7cpv.js.br +0 -0
- package/web/chunk-nzey7cpv.js.gz +0 -0
- package/web/{chunk-g8wy9sa6.js → chunk-pcfjcy3a.js} +23 -23
- package/web/chunk-pcfjcy3a.js.br +0 -0
- package/web/chunk-pcfjcy3a.js.gz +0 -0
- package/web/chunk-pry6wdbe.js +1 -0
- package/web/chunk-pry6wdbe.js.br +0 -0
- package/web/chunk-pry6wdbe.js.gz +0 -0
- package/web/chunk-pvahdcgy.js +2 -0
- package/web/chunk-pvahdcgy.js.br +0 -0
- package/web/chunk-pvahdcgy.js.gz +0 -0
- package/web/{chunk-ffn1a0zw.js → chunk-q3njnnef.js} +2 -2
- package/web/chunk-q3njnnef.js.br +0 -0
- package/web/chunk-q3njnnef.js.gz +0 -0
- package/web/chunk-qxvqkkmw.js +1 -0
- package/web/chunk-qxvqkkmw.js.br +0 -0
- package/web/chunk-qxvqkkmw.js.gz +0 -0
- package/web/chunk-qych3sbs.js +1 -0
- package/web/chunk-qych3sbs.js.br +0 -0
- package/web/chunk-qych3sbs.js.gz +0 -0
- package/web/chunk-r1dnh0s8.js.br +0 -0
- package/web/chunk-r1dnh0s8.js.gz +0 -0
- package/web/chunk-r5eakmw6.js.br +0 -0
- package/web/chunk-r5eakmw6.js.gz +0 -0
- package/web/chunk-rbmp2e4b.js +1 -0
- package/web/chunk-rbmp2e4b.js.br +0 -0
- package/web/chunk-rbmp2e4b.js.gz +0 -0
- package/web/chunk-rcre1stj.js +1 -0
- package/web/chunk-rcre1stj.js.br +0 -0
- package/web/chunk-rcre1stj.js.gz +0 -0
- package/web/chunk-rdb6091n.js +89 -0
- package/web/chunk-rdb6091n.js.br +0 -0
- package/web/chunk-rdb6091n.js.gz +0 -0
- package/web/chunk-ryw7xnab.js +1 -0
- package/web/chunk-ryw7xnab.js.br +0 -0
- package/web/chunk-ryw7xnab.js.gz +0 -0
- package/web/{chunk-1hx4xtdk.js → chunk-sbbmy02e.js} +2 -2
- package/web/chunk-sbbmy02e.js.br +0 -0
- package/web/chunk-sbbmy02e.js.gz +0 -0
- package/web/{chunk-s0xy00v5.js → chunk-sgbc835w.js} +2 -2
- package/web/chunk-sgbc835w.js.br +0 -0
- package/web/chunk-sgbc835w.js.gz +0 -0
- package/web/chunk-sydy10mb.js +1 -0
- package/web/chunk-sydy10mb.js.br +0 -0
- package/web/chunk-sydy10mb.js.gz +0 -0
- package/web/chunk-t0ywnp5e.js +1 -0
- package/web/chunk-t0ywnp5e.js.br +0 -0
- package/web/chunk-t0ywnp5e.js.gz +0 -0
- package/web/chunk-t6agpn2z.js.br +0 -0
- package/web/chunk-t6agpn2z.js.gz +0 -0
- package/web/{chunk-hhnhgthx.js → chunk-t72jq97z.js} +2 -2
- package/web/chunk-t72jq97z.js.br +0 -0
- package/web/chunk-t72jq97z.js.gz +0 -0
- package/web/{chunk-6ty9vw27.js → chunk-tfcc9bcz.js} +3 -3
- package/web/chunk-tfcc9bcz.js.br +0 -0
- package/web/chunk-tfcc9bcz.js.gz +0 -0
- package/web/{chunk-27tchdxd.js → chunk-v2bvbgfc.js} +2 -2
- package/web/chunk-v2bvbgfc.js.br +0 -0
- package/web/chunk-v2bvbgfc.js.gz +0 -0
- package/web/{chunk-madrcnm1.js → chunk-v7zq4vc9.js} +5 -5
- package/web/chunk-v7zq4vc9.js.br +0 -0
- package/web/chunk-v7zq4vc9.js.gz +0 -0
- package/web/chunk-vh8pkcem.css.br +0 -0
- package/web/chunk-vh8pkcem.css.gz +0 -0
- package/web/chunk-vq3sby7x.js +1 -0
- package/web/chunk-vq3sby7x.js.br +0 -0
- package/web/chunk-vq3sby7x.js.gz +0 -0
- package/web/{chunk-vvvd3grf.js → chunk-vszya05r.js} +2 -2
- package/web/chunk-vszya05r.js.br +0 -0
- package/web/chunk-vszya05r.js.gz +0 -0
- package/web/chunk-was9xf03.js +8 -0
- package/web/chunk-was9xf03.js.br +0 -0
- package/web/chunk-was9xf03.js.gz +0 -0
- package/web/chunk-we1v1829.js +2 -0
- package/web/chunk-we1v1829.js.br +0 -0
- package/web/chunk-we1v1829.js.gz +0 -0
- package/web/chunk-wfa1c8dn.js +1 -0
- package/web/chunk-wfa1c8dn.js.br +0 -0
- package/web/chunk-wfa1c8dn.js.gz +0 -0
- package/web/chunk-wg2exnxe.js +1 -0
- package/web/chunk-wg2exnxe.js.br +2 -0
- package/web/chunk-wg2exnxe.js.gz +0 -0
- package/web/chunk-wvd3zj1m.js +70 -0
- package/web/chunk-wvd3zj1m.js.br +0 -0
- package/web/chunk-wvd3zj1m.js.gz +0 -0
- package/web/chunk-wzmxtr30.js +1 -0
- package/web/chunk-wzmxtr30.js.br +0 -0
- package/web/chunk-wzmxtr30.js.gz +0 -0
- package/web/chunk-x815g7yp.js +1 -0
- package/web/chunk-x815g7yp.js.br +0 -0
- package/web/chunk-x815g7yp.js.gz +0 -0
- package/web/{chunk-0qnetvsc.js → chunk-x8ps0p82.js} +14 -14
- package/web/chunk-x8ps0p82.js.br +0 -0
- package/web/chunk-x8ps0p82.js.gz +0 -0
- package/web/{chunk-y2ykn1gm.js → chunk-xea3snym.js} +1 -1
- package/web/chunk-xea3snym.js.br +0 -0
- package/web/chunk-xea3snym.js.gz +0 -0
- package/web/chunk-xet1jjy9.js.br +0 -0
- package/web/chunk-xet1jjy9.js.gz +0 -0
- package/web/{chunk-vjnvfb8z.js → chunk-xg4v60m7.js} +1 -1
- package/web/chunk-xg4v60m7.js.br +0 -0
- package/web/chunk-xg4v60m7.js.gz +0 -0
- package/web/chunk-xhr9jrjt.js +89 -0
- package/web/chunk-xhr9jrjt.js.br +0 -0
- package/web/chunk-xhr9jrjt.js.gz +0 -0
- package/web/chunk-xp90g2e7.js +36 -0
- package/web/chunk-xp90g2e7.js.br +0 -0
- package/web/chunk-xp90g2e7.js.gz +0 -0
- package/web/{chunk-e229cr90.js → chunk-xs1g97qa.js} +2 -2
- package/web/chunk-xs1g97qa.js.br +0 -0
- package/web/chunk-xs1g97qa.js.gz +0 -0
- package/web/chunk-xyk1wpr4.js +1 -0
- package/web/chunk-xyk1wpr4.js.br +3 -0
- package/web/chunk-xyk1wpr4.js.gz +0 -0
- package/web/chunk-yavbdwyt.js +1 -0
- package/web/chunk-yavbdwyt.js.br +0 -0
- package/web/chunk-yavbdwyt.js.gz +0 -0
- package/web/chunk-yfnhnsxe.js +4 -0
- package/web/chunk-yfnhnsxe.js.br +0 -0
- package/web/chunk-yfnhnsxe.js.gz +0 -0
- package/web/chunk-yk965yth.js +1 -0
- package/web/chunk-yk965yth.js.br +0 -0
- package/web/chunk-yk965yth.js.gz +0 -0
- package/web/{chunk-c1z290wm.js → chunk-ynhcjhsx.js} +2 -2
- package/web/chunk-ynhcjhsx.js.br +0 -0
- package/web/chunk-ynhcjhsx.js.gz +0 -0
- package/web/chunk-ypmm1gts.js +1 -0
- package/web/chunk-ypmm1gts.js.br +0 -0
- package/web/chunk-ypmm1gts.js.gz +0 -0
- package/web/chunk-yssx5a5q.js +1 -0
- package/web/chunk-yssx5a5q.js.br +0 -0
- package/web/chunk-yssx5a5q.js.gz +0 -0
- package/web/chunk-z09emmrb.js.br +0 -0
- package/web/chunk-z09emmrb.js.gz +0 -0
- package/web/chunk-z0a8cnq8.js +1 -0
- package/web/chunk-z0a8cnq8.js.br +0 -0
- package/web/chunk-z0a8cnq8.js.gz +0 -0
- package/web/{chunk-gaf9brzv.js → chunk-z1afsvbv.js} +2 -2
- package/web/chunk-z1afsvbv.js.br +0 -0
- package/web/chunk-z1afsvbv.js.gz +0 -0
- package/web/{chunk-w60dxtyz.js → chunk-z1ka8jtd.js} +2 -2
- package/web/chunk-z1ka8jtd.js.br +0 -0
- package/web/chunk-z1ka8jtd.js.gz +0 -0
- package/web/chunk-z7tdzen9.js +1 -0
- package/web/chunk-z7tdzen9.js.br +0 -0
- package/web/chunk-z7tdzen9.js.gz +0 -0
- package/web/{chunk-444xfger.js → chunk-zbwjj06m.js} +7 -7
- package/web/chunk-zbwjj06m.js.br +0 -0
- package/web/chunk-zbwjj06m.js.gz +0 -0
- package/web/chunk-zd2j189j.js +1 -0
- package/web/chunk-zd2j189j.js.br +0 -0
- package/web/chunk-zd2j189j.js.gz +0 -0
- package/web/chunk-zfgpq4n4.js +120 -0
- package/web/chunk-zfgpq4n4.js.br +0 -0
- package/web/chunk-zfgpq4n4.js.gz +0 -0
- package/web/chunk-zgas56xw.js +1 -0
- package/web/chunk-zgas56xw.js.br +0 -0
- package/web/chunk-zgas56xw.js.gz +0 -0
- package/web/chunk-zkfepf91.js +1 -0
- package/web/chunk-zkfepf91.js.br +0 -0
- package/web/chunk-zkfepf91.js.gz +0 -0
- package/web/icon-1wgy7kzy.svg.br +0 -0
- package/web/icon-1wgy7kzy.svg.gz +0 -0
- package/web/icon.svg.br +0 -0
- package/web/icon.svg.gz +0 -0
- package/web/index.html +11 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/web/manifest-txf6vfbq.webmanifest.br +0 -0
- package/web/manifest-txf6vfbq.webmanifest.gz +0 -0
- package/web/manifest.webmanifest.br +0 -0
- package/web/manifest.webmanifest.gz +0 -0
- package/web/sw.js +146 -27
- package/web/sw.js.br +0 -0
- package/web/sw.js.gz +0 -0
- package/worker.js +1 -1
- package/chunk-4hf0r9hv.js +0 -12
- package/chunk-4w8j6n7z.js +0 -2
- package/chunk-4yxd2kg1.js +0 -3
- package/chunk-62ebm0bn.js +0 -2
- package/chunk-6ae9810t.js +0 -25
- package/chunk-6ef085c1.js +0 -20
- package/chunk-6exa9fp7.js +0 -3
- package/chunk-73t051r6.js +0 -2
- package/chunk-86yr2c0r.js +0 -3
- package/chunk-8jn0yax5.js +0 -482
- package/chunk-9xjecw6c.js +0 -2
- package/chunk-9ymm1gge.js +0 -4172
- package/chunk-bjvv3403.js +0 -2
- package/chunk-bv96b8q7.js +0 -2
- package/chunk-drett6hb.js +0 -2
- package/chunk-fzftb4n2.js +0 -10
- package/chunk-ge38dhv9.js +0 -3
- package/chunk-hggam3je.js +0 -2
- package/chunk-nrdszs0g.js +0 -5
- package/chunk-pjgt1bdx.js +0 -3
- package/chunk-q6tgpaf3.js +0 -2
- package/chunk-t33bm5aa.js +0 -2
- package/chunk-v9ttcf6r.js +0 -3
- package/chunk-vd5332ps.js +0 -2
- package/chunk-vv9csar7.js +0 -2
- package/chunk-wnd3y4c0.js +0 -10
- package/chunk-xba6fr5v.js +0 -2
- package/chunk-ypxs8djn.js +0 -2
- package/chunk-zcwz44db.js +0 -2
- package/web/chunk-0zb330w3.js +0 -89
- package/web/chunk-11byy7vm.js +0 -1
- package/web/chunk-160x5pv7.js +0 -1
- package/web/chunk-19g09ekr.js +0 -40
- package/web/chunk-1gzprnyd.js +0 -1
- package/web/chunk-1je4p601.js +0 -139
- package/web/chunk-1rjtqf8h.js +0 -2
- package/web/chunk-1y387f45.js +0 -1
- package/web/chunk-23258z1r.js +0 -1
- package/web/chunk-27592nd8.js +0 -36
- package/web/chunk-2hqmdqn3.js +0 -41
- package/web/chunk-2q79n966.js +0 -2
- package/web/chunk-2ws74tfa.js +0 -21
- package/web/chunk-2z8epr8f.js +0 -34
- package/web/chunk-4k62e61g.js +0 -291
- package/web/chunk-4z6wma3s.js +0 -78
- package/web/chunk-5wkqqa59.js +0 -1
- package/web/chunk-5yczs6sb.js +0 -1
- package/web/chunk-5yn7mwvt.js +0 -1
- package/web/chunk-705tkt2r.js +0 -1
- package/web/chunk-753qp8sa.js +0 -4
- package/web/chunk-76e3npmd.js +0 -2
- package/web/chunk-7p04dn0k.js +0 -1
- package/web/chunk-7qq1ypvj.js +0 -1
- package/web/chunk-7rb3v8gy.js +0 -1
- package/web/chunk-7yz88k97.js +0 -39
- package/web/chunk-85d7jkp0.js +0 -2
- package/web/chunk-90kgn35s.js +0 -1
- package/web/chunk-931y1g0h.js +0 -1
- package/web/chunk-at0xtfhy.js +0 -1
- package/web/chunk-bcp6na49.js +0 -1145
- package/web/chunk-bz1q7qdd.js +0 -8
- package/web/chunk-c0evk1xy.js +0 -1
- package/web/chunk-cge0cjfm.js +0 -2
- package/web/chunk-e9mmkrc3.js +0 -7
- package/web/chunk-f8nnrk6y.js +0 -292
- package/web/chunk-fcrswzgm.js +0 -106
- package/web/chunk-fw4fa7j6.js +0 -1
- package/web/chunk-fx8hheqz.js +0 -1
- package/web/chunk-gj16e7z0.js +0 -1
- package/web/chunk-h0c42zy3.js +0 -1
- package/web/chunk-h1y8y203.js +0 -1
- package/web/chunk-h6vy008x.js +0 -24
- package/web/chunk-h8mhnze5.js +0 -303
- package/web/chunk-j27mtdr2.js +0 -1
- package/web/chunk-jys02310.js +0 -1
- package/web/chunk-kew13yzg.js +0 -1
- package/web/chunk-kx5r8nf2.js +0 -1
- package/web/chunk-m7c0xk69.js +0 -1
- package/web/chunk-mrnx4f74.js +0 -70
- package/web/chunk-mtdsrtc5.js +0 -1
- package/web/chunk-n3spc397.js +0 -24
- package/web/chunk-nbcpbqq4.js +0 -1
- package/web/chunk-nhc280n0.js +0 -1
- package/web/chunk-nx1bcekh.js +0 -2
- package/web/chunk-p8t7s4z4.js +0 -1
- package/web/chunk-pgh1cx6w.js +0 -1
- package/web/chunk-qgzn0ha5.js +0 -89
- package/web/chunk-qtwxq6hj.js +0 -3
- package/web/chunk-qwp3dhmf.js +0 -1
- package/web/chunk-rjh54ygb.js +0 -120
- package/web/chunk-ryh8jdzy.js +0 -1
- package/web/chunk-s3t8dkkz.js +0 -1
- package/web/chunk-sk1w7f7h.js +0 -1
- package/web/chunk-smkrxjm5.js +0 -1
- package/web/chunk-sv5ph7fa.js +0 -1
- package/web/chunk-t9twxmsg.js +0 -1
- package/web/chunk-tfdchqn4.js +0 -62
- package/web/chunk-tvvggvjt.js +0 -169
- package/web/chunk-ty87gdvr.js +0 -1
- package/web/chunk-v16s0x7c.js +0 -1
- package/web/chunk-vgyp8wa2.js +0 -2
- package/web/chunk-vphzndz8.js +0 -2
- package/web/chunk-xtss82z2.js +0 -1
- package/web/chunk-y0mef85j.js +0 -1
- package/web/chunk-ym9qfsjs.js +0 -30
- package/web/chunk-ypdptddq.js +0 -1
- package/web/chunk-z08c63ph.js +0 -2
- package/web/chunk-z6x74qfh.js +0 -1
- package/web/chunk-z86pjpqp.js +0 -1
- package/web/chunk-zh0vjc6g.js +0 -1
- package/web/chunk-zns9wmab.js +0 -1
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import{Ye,Ze,C}from"./chunk-fba06jm8.js";var so=Ze(function(Sh,Th){(function(r,e){typeof Sh=="object"&&typeof Th<"u"?Th.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(Sh,function(){var r=1000,e=60000,i=3600000,s="millisecond",o="second",n="minute",h="hour",l="day",d="week",y="month",c="quarter",x="year",b="date",_="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(kt){var it=["th","st","nd","rd"],ot=kt%100;return"["+kt+(it[(ot-20)%10]||it[ot]||it[0])+"]"}},W=function(kt,it,ot){var mt=String(kt);return!mt||mt.length>=it?kt:""+Array(it+1-mt.length).join(ot)+kt},j={s:W,z:function(kt){var it=-kt.utcOffset(),ot=Math.abs(it),mt=Math.floor(ot/60),et=ot%60;return(it<=0?"+":"-")+W(mt,2,"0")+":"+W(et,2,"0")},m:function kt(it,ot){if(it.date()<ot.date())return-kt(ot,it);var mt=12*(ot.year()-it.year())+(ot.month()-it.month()),et=it.clone().add(mt,y),_t=ot-et<0,Mt=it.clone().add(mt+(_t?-1:1),y);return+(-(mt+(ot-et)/(_t?et-Mt:Mt-et))||0)},a:function(kt){return kt<0?Math.ceil(kt)||0:Math.floor(kt)},p:function(kt){return{M:y,y:x,w:d,d:l,D:b,h,m:n,s:o,ms:s,Q:c}[kt]||String(kt||"").toLowerCase().replace(/s$/,"")},u:function(kt){return kt===void 0}},K="en",J={};J[K]=q;var tt="$isDayjsObject",at=function(kt){return kt instanceof At||!(!kt||!kt[tt])},st=function kt(it,ot,mt){var et;if(!it)return K;if(typeof it=="string"){var _t=it.toLowerCase();J[_t]&&(et=_t),ot&&(J[_t]=ot,et=_t);var Mt=it.split("-");if(!et&&Mt.length>1)return kt(Mt[0])}else{var Vt=it.name;J[Vt]=it,et=Vt}return!mt&&et&&(K=et),et||!mt&&K},dt=function(kt,it){if(at(kt))return kt.clone();var ot=typeof it=="object"?it:{};return ot.date=kt,ot.args=arguments,new At(ot)},bt=j;bt.l=st,bt.i=at,bt.w=function(kt,it){return dt(kt,{locale:it.$L,utc:it.$u,x:it.$x,$offset:it.$offset})};var At=function(){function kt(ot){this.$L=st(ot.locale,null,!0),this.parse(ot),this.$x=this.$x||ot.x||{},this[tt]=!0}var it=kt.prototype;return it.parse=function(ot){this.$d=function(mt){var{date:et,utc:_t}=mt;if(et===null)return new Date(NaN);if(bt.u(et))return new Date;if(et instanceof Date)return new Date(et);if(typeof et=="string"&&!/Z$/i.test(et)){var Mt=et.match(v);if(Mt){var Vt=Mt[2]-1||0,Xt=(Mt[7]||"0").substring(0,3);return _t?new Date(Date.UTC(Mt[1],Vt,Mt[3]||1,Mt[4]||0,Mt[5]||0,Mt[6]||0,Xt)):new Date(Mt[1],Vt,Mt[3]||1,Mt[4]||0,Mt[5]||0,Mt[6]||0,Xt)}}return new Date(et)}(ot),this.init()},it.init=function(){var ot=this.$d;this.$y=ot.getFullYear(),this.$M=ot.getMonth(),this.$D=ot.getDate(),this.$W=ot.getDay(),this.$H=ot.getHours(),this.$m=ot.getMinutes(),this.$s=ot.getSeconds(),this.$ms=ot.getMilliseconds()},it.$utils=function(){return bt},it.isValid=function(){return this.$d.toString()!==_},it.isSame=function(ot,mt){var et=dt(ot);return this.startOf(mt)<=et&&et<=this.endOf(mt)},it.isAfter=function(ot,mt){return dt(ot)<this.startOf(mt)},it.isBefore=function(ot,mt){return this.endOf(mt)<dt(ot)},it.$g=function(ot,mt,et){return bt.u(ot)?this[mt]:this.set(et,ot)},it.unix=function(){return Math.floor(this.valueOf()/1000)},it.valueOf=function(){return this.$d.getTime()},it.startOf=function(ot,mt){var et=this,_t=!!bt.u(mt)||mt,Mt=bt.p(ot),Vt=function(re,ae){var ne=bt.w(et.$u?Date.UTC(et.$y,ae,re):new Date(et.$y,ae,re),et);return _t?ne:ne.endOf(l)},Xt=function(re,ae){return bt.w(et.toDate()[re].apply(et.toDate("s"),(_t?[0,0,0,0]:[23,59,59,999]).slice(ae)),et)},se=this.$W,oe=this.$M,de=this.$D,ge="set"+(this.$u?"UTC":"");switch(Mt){case x:return _t?Vt(1,0):Vt(31,11);case y:return _t?Vt(1,oe):Vt(0,oe+1);case d:var he=this.$locale().weekStart||0,Gt=(se<he?se+7:se)-he;return Vt(_t?de-Gt:de+(6-Gt),oe);case l:case b:return Xt(ge+"Hours",0);case h:return Xt(ge+"Minutes",1);case n:return Xt(ge+"Seconds",2);case o:return Xt(ge+"Milliseconds",3);default:return this.clone()}},it.endOf=function(ot){return this.startOf(ot,!1)},it.$set=function(ot,mt){var et,_t=bt.p(ot),Mt="set"+(this.$u?"UTC":""),Vt=(et={},et[l]=Mt+"Date",et[b]=Mt+"Date",et[y]=Mt+"Month",et[x]=Mt+"FullYear",et[h]=Mt+"Hours",et[n]=Mt+"Minutes",et[o]=Mt+"Seconds",et[s]=Mt+"Milliseconds",et)[_t],Xt=_t===l?this.$D+(mt-this.$W):mt;if(_t===y||_t===x){var se=this.clone().set(b,1);se.$d[Vt](Xt),se.init(),this.$d=se.set(b,Math.min(this.$D,se.daysInMonth())).$d}else Vt&&this.$d[Vt](Xt);return this.init(),this},it.set=function(ot,mt){return this.clone().$set(ot,mt)},it.get=function(ot){return this[bt.p(ot)]()},it.add=function(ot,mt){var et,_t=this;ot=Number(ot);var Mt=bt.p(mt),Vt=function(oe){var de=dt(_t);return bt.w(de.date(de.date()+Math.round(oe*ot)),_t)};if(Mt===y)return this.set(y,this.$M+ot);if(Mt===x)return this.set(x,this.$y+ot);if(Mt===l)return Vt(1);if(Mt===d)return Vt(7);var Xt=(et={},et[n]=e,et[h]=i,et[o]=r,et)[Mt]||1,se=this.$d.getTime()+ot*Xt;return bt.w(se,this)},it.subtract=function(ot,mt){return this.add(-1*ot,mt)},it.format=function(ot){var mt=this,et=this.$locale();if(!this.isValid())return et.invalidDate||_;var _t=ot||"YYYY-MM-DDTHH:mm:ssZ",Mt=bt.z(this),Vt=this.$H,Xt=this.$m,se=this.$M,{weekdays:oe,months:de,meridiem:ge}=et,he=function(ae,ne,Ae,ve){return ae&&(ae[ne]||ae(mt,_t))||Ae[ne].slice(0,ve)},Gt=function(ae){return bt.s(Vt%12||12,ae,"0")},re=ge||function(ae,ne,Ae){var ve=ae<12?"AM":"PM";return Ae?ve.toLowerCase():ve};return _t.replace(M,function(ae,ne){return ne||function(Ae){switch(Ae){case"YY":return String(mt.$y).slice(-2);case"YYYY":return bt.s(mt.$y,4,"0");case"M":return se+1;case"MM":return bt.s(se+1,2,"0");case"MMM":return he(et.monthsShort,se,de,3);case"MMMM":return he(de,se);case"D":return mt.$D;case"DD":return bt.s(mt.$D,2,"0");case"d":return String(mt.$W);case"dd":return he(et.weekdaysMin,mt.$W,oe,2);case"ddd":return he(et.weekdaysShort,mt.$W,oe,3);case"dddd":return oe[mt.$W];case"H":return String(Vt);case"HH":return bt.s(Vt,2,"0");case"h":return Gt(1);case"hh":return Gt(2);case"a":return re(Vt,Xt,!0);case"A":return re(Vt,Xt,!1);case"m":return String(Xt);case"mm":return bt.s(Xt,2,"0");case"s":return String(mt.$s);case"ss":return bt.s(mt.$s,2,"0");case"SSS":return bt.s(mt.$ms,3,"0");case"Z":return Mt}return null}(ae)||Mt.replace(":","")})},it.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},it.diff=function(ot,mt,et){var _t,Mt=this,Vt=bt.p(mt),Xt=dt(ot),se=(Xt.utcOffset()-this.utcOffset())*e,oe=this-Xt,de=function(){return bt.m(Mt,Xt)};switch(Vt){case x:_t=de()/12;break;case y:_t=de();break;case c:_t=de()/3;break;case d:_t=(oe-se)/604800000;break;case l:_t=(oe-se)/86400000;break;case h:_t=oe/i;break;case n:_t=oe/e;break;case o:_t=oe/r;break;default:_t=oe}return et?_t:bt.a(_t)},it.daysInMonth=function(){return this.endOf(y).$D},it.$locale=function(){return J[this.$L]},it.locale=function(ot,mt){if(!ot)return this.$L;var et=this.clone(),_t=st(ot,mt,!0);return _t&&(et.$L=_t),et},it.clone=function(){return bt.w(this.$d,this)},it.toDate=function(){return new Date(this.valueOf())},it.toJSON=function(){return this.isValid()?this.toISOString():null},it.toISOString=function(){return this.$d.toISOString()},it.toString=function(){return this.$d.toUTCString()},kt}(),wt=At.prototype;return dt.prototype=wt,[["$ms",s],["$s",o],["$m",n],["$H",h],["$W",l],["$M",y],["$y",x],["$D",b]].forEach(function(kt){wt[kt[1]]=function(it){return this.$g(it,kt[0],kt[1])}}),dt.extend=function(kt,it){return kt.$i||(kt(it,At,dt),kt.$i=!0),dt},dt.locale=st,dt.isDayjs=at,dt.unix=function(kt){return dt(1000*kt)},dt.en=J[K],dt.Ls=J,dt.p={},dt})});var sm=Ze(function(im){Object.defineProperty(im,"__esModule",{value:!0});im.BLANK_URL=im.relativeFirstCharacters=im.whitespaceEscapeCharsRegex=im.urlSchemeRegex=im.ctrlCharactersRegex=im.htmlCtrlEntityRegex=im.htmlEntitiesRegex=im.invalidProtocolRegex=void 0;im.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;im.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;im.htmlCtrlEntityRegex=/&(newline|tab);/gi;im.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;im.urlSchemeRegex=/^.+(:|:)/gim;im.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;im.relativeFirstCharacters=[".","/"];im.BLANK_URL="about:blank"});var na=Ze(function(nm){Object.defineProperty(nm,"__esModule",{value:!0});nm.sanitizeUrl=T2;var hr=sm();function k2(r){return hr.relativeFirstCharacters.indexOf(r[0])>-1}function w2(r){var e=r.replace(hr.ctrlCharactersRegex,"");return e.replace(hr.htmlEntitiesRegex,function(i,s){return String.fromCharCode(s)})}function S2(r){return URL.canParse(r)}function am(r){try{return decodeURIComponent(r)}catch(e){return r}}function T2(r){if(!r)return hr.BLANK_URL;var e,i=am(r.trim());do i=w2(i).replace(hr.htmlCtrlEntityRegex,"").replace(hr.ctrlCharactersRegex,"").replace(hr.whitespaceEscapeCharsRegex,"").trim(),i=am(i),e=i.match(hr.ctrlCharactersRegex)||i.match(hr.htmlEntitiesRegex)||i.match(hr.htmlCtrlEntityRegex)||i.match(hr.whitespaceEscapeCharsRegex);while(e&&e.length>0);var s=i;if(!s)return hr.BLANK_URL;if(k2(s))return s;var o=s.trimStart(),n=o.match(hr.urlSchemeRegex);if(!n)return s;var h=n[0].toLowerCase().trim();if(hr.invalidProtocolRegex.test(h))return hr.BLANK_URL;var l=o.replace(/\\/g,"/");if(h==="mailto:"||h.includes("://"))return l;if(h==="http:"||h==="https:"){if(!S2(l))return hr.BLANK_URL;var d=new URL(l);return d.protocol=d.protocol.toLowerCase(),d.hostname=d.hostname.toLowerCase(),d.toString()}return l}});var _d=Object.defineProperty,t=(r,e)=>_d(r,"name",{value:e,configurable:!0}),Hn=(r,e)=>{for(var i in e)_d(r,i,{get:e[i],enumerable:!0})};var Bd=Ye(so(),1),pi={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},a={trace:t((...r)=>{},"trace"),debug:t((...r)=>{},"debug"),info:t((...r)=>{},"info"),warn:t((...r)=>{},"warn"),error:t((...r)=>{},"error"),fatal:t((...r)=>{},"fatal")},hi=t(function(r="fatal"){let e=pi.fatal;if(typeof r==="string"){if(r.toLowerCase()in pi)e=pi[r]}else if(typeof r==="number")e=r;if(a.trace=()=>{},a.debug=()=>{},a.info=()=>{},a.warn=()=>{},a.error=()=>{},a.fatal=()=>{},e<=pi.fatal)a.fatal=console.error?console.error.bind(console,Br("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Br("FATAL"));if(e<=pi.error)a.error=console.error?console.error.bind(console,Br("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Br("ERROR"));if(e<=pi.warn)a.warn=console.warn?console.warn.bind(console,Br("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Br("WARN"));if(e<=pi.info)a.info=console.info?console.info.bind(console,Br("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Br("INFO"));if(e<=pi.debug)a.debug=console.debug?console.debug.bind(console,Br("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Br("DEBUG"));if(e<=pi.trace)a.trace=console.debug?console.debug.bind(console,Br("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Br("TRACE"))},"setLogLevel"),Br=t((r)=>`%c${Bd.default().format("ss.SSS")} : ${r} : `,"format");var Cn={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:(r)=>r>=255?255:r<0?0:r,g:(r)=>r>=255?255:r<0?0:r,b:(r)=>r>=255?255:r<0?0:r,h:(r)=>r%360,s:(r)=>r>=100?100:r<0?0:r,l:(r)=>r>=100?100:r<0?0:r,a:(r)=>r>=1?1:r<0?0:r},toLinear:(r)=>{let e=r/255;return r>0.03928?Math.pow((e+0.055)/1.055,2.4):e/12.92},hue2rgb:(r,e,i)=>{if(i<0)i+=1;if(i>1)i-=1;if(i<0.16666666666666666)return r+(e-r)*6*i;if(i<0.5)return e;if(i<0.6666666666666666)return r+(e-r)*(0.6666666666666666-i)*6;return r},hsl2rgb:({h:r,s:e,l:i},s)=>{if(!e)return i*2.55;r/=360,e/=100,i/=100;let o=i<0.5?i*(1+e):i+e-i*e,n=2*i-o;switch(s){case"r":return Cn.hue2rgb(n,o,r+0.3333333333333333)*255;case"g":return Cn.hue2rgb(n,o,r)*255;case"b":return Cn.hue2rgb(n,o,r-0.3333333333333333)*255}},rgb2hsl:({r,g:e,b:i},s)=>{r/=255,e/=255,i/=255;let o=Math.max(r,e,i),n=Math.min(r,e,i),h=(o+n)/2;if(s==="l")return h*100;if(o===n)return 0;let l=o-n,d=h>0.5?l/(2-o-n):l/(o+n);if(s==="s")return d*100;switch(o){case r:return((e-i)/l+(e<i?6:0))*60;case e:return((i-r)/l+2)*60;case i:return((r-e)/l+4)*60;default:return-1}}},vd=Cn;var rC={clamp:(r,e,i)=>{if(e>i)return Math.min(e,Math.max(i,r));return Math.min(i,Math.max(e,r))},round:(r)=>Math.round(r*10000000000)/10000000000},Ld=rC;var iC={dec2hex:(r)=>{let e=Math.round(r).toString(16);return e.length>1?e:`0${e}`}},Fd=iC;var oC={channel:vd,lang:Ld,unit:Fd},Y=oC;var mi={};for(let r=0;r<=255;r++)mi[r]=Y.unit.dec2hex(r);var Xe={ALL:0,RGB:1,HSL:2};class Ad{constructor(){this.type=Xe.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=Xe.ALL}is(r){return this.type===r}}var Md=Ad;class Ed{constructor(r,e){this.color=e,this.changed=!1,this.data=r,this.type=new Md}set(r,e){return this.color=e,this.changed=!1,this.data=r,this.type.type=Xe.ALL,this}_ensureHSL(){let r=this.data,{h:e,s:i,l:s}=r;if(e===void 0)r.h=Y.channel.rgb2hsl(r,"h");if(i===void 0)r.s=Y.channel.rgb2hsl(r,"s");if(s===void 0)r.l=Y.channel.rgb2hsl(r,"l")}_ensureRGB(){let r=this.data,{r:e,g:i,b:s}=r;if(e===void 0)r.r=Y.channel.hsl2rgb(r,"r");if(i===void 0)r.g=Y.channel.hsl2rgb(r,"g");if(s===void 0)r.b=Y.channel.hsl2rgb(r,"b")}get r(){let r=this.data,e=r.r;if(!this.type.is(Xe.HSL)&&e!==void 0)return e;return this._ensureHSL(),Y.channel.hsl2rgb(r,"r")}get g(){let r=this.data,e=r.g;if(!this.type.is(Xe.HSL)&&e!==void 0)return e;return this._ensureHSL(),Y.channel.hsl2rgb(r,"g")}get b(){let r=this.data,e=r.b;if(!this.type.is(Xe.HSL)&&e!==void 0)return e;return this._ensureHSL(),Y.channel.hsl2rgb(r,"b")}get h(){let r=this.data,e=r.h;if(!this.type.is(Xe.RGB)&&e!==void 0)return e;return this._ensureRGB(),Y.channel.rgb2hsl(r,"h")}get s(){let r=this.data,e=r.s;if(!this.type.is(Xe.RGB)&&e!==void 0)return e;return this._ensureRGB(),Y.channel.rgb2hsl(r,"s")}get l(){let r=this.data,e=r.l;if(!this.type.is(Xe.RGB)&&e!==void 0)return e;return this._ensureRGB(),Y.channel.rgb2hsl(r,"l")}get a(){return this.data.a}set r(r){this.type.set(Xe.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(Xe.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(Xe.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(Xe.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(Xe.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(Xe.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}var Od=Ed;var sC=new Od({r:0,g:0,b:0,a:0},"transparent"),zi=sC;var Id={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:(r)=>{if(r.charCodeAt(0)!==35)return;let e=r.match(Id.re);if(!e)return;let i=e[1],s=parseInt(i,16),o=i.length,n=o%4===0,h=o>4,l=h?1:17,d=h?8:4,y=n?0:-1,c=h?255:15;return zi.set({r:(s>>d*(y+3)&c)*l,g:(s>>d*(y+2)&c)*l,b:(s>>d*(y+1)&c)*l,a:n?(s&c)*l/255:1},r)},stringify:(r)=>{let{r:e,g:i,b:s,a:o}=r;if(o<1)return`#${mi[Math.round(e)]}${mi[Math.round(i)]}${mi[Math.round(s)]}${mi[Math.round(o*255)]}`;else return`#${mi[Math.round(e)]}${mi[Math.round(i)]}${mi[Math.round(s)]}`}},Ki=Id;var kn={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:(r)=>{let e=r.match(kn.hueRe);if(e){let[,i,s]=e;switch(s){case"grad":return Y.channel.clamp.h(parseFloat(i)*0.9);case"rad":return Y.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return Y.channel.clamp.h(parseFloat(i)*360)}}return Y.channel.clamp.h(parseFloat(r))},parse:(r)=>{let e=r.charCodeAt(0);if(e!==104&&e!==72)return;let i=r.match(kn.re);if(!i)return;let[,s,o,n,h,l]=i;return zi.set({h:kn._hue2deg(s),s:Y.channel.clamp.s(parseFloat(o)),l:Y.channel.clamp.l(parseFloat(n)),a:h?Y.channel.clamp.a(l?parseFloat(h)/100:parseFloat(h)):1},r)},stringify:(r)=>{let{h:e,s:i,l:s,a:o}=r;if(o<1)return`hsla(${Y.lang.round(e)}, ${Y.lang.round(i)}%, ${Y.lang.round(s)}%, ${o})`;else return`hsl(${Y.lang.round(e)}, ${Y.lang.round(i)}%, ${Y.lang.round(s)}%)`}},_s=kn;var wn={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:(r)=>{r=r.toLowerCase();let e=wn.colors[r];if(!e)return;return Ki.parse(e)},stringify:(r)=>{let e=Ki.stringify(r);for(let i in wn.colors)if(wn.colors[i]===e)return i;return}},_h=wn;var $d={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:(r)=>{let e=r.charCodeAt(0);if(e!==114&&e!==82)return;let i=r.match($d.re);if(!i)return;let[,s,o,n,h,l,d,y,c]=i;return zi.set({r:Y.channel.clamp.r(o?parseFloat(s)*2.55:parseFloat(s)),g:Y.channel.clamp.g(h?parseFloat(n)*2.55:parseFloat(n)),b:Y.channel.clamp.b(d?parseFloat(l)*2.55:parseFloat(l)),a:y?Y.channel.clamp.a(c?parseFloat(y)/100:parseFloat(y)):1},r)},stringify:(r)=>{let{r:e,g:i,b:s,a:o}=r;if(o<1)return`rgba(${Y.lang.round(e)}, ${Y.lang.round(i)}, ${Y.lang.round(s)}, ${Y.lang.round(o)})`;else return`rgb(${Y.lang.round(e)}, ${Y.lang.round(i)}, ${Y.lang.round(s)})`}},vs=$d;var aC={format:{keyword:_h,hex:Ki,rgb:vs,rgba:vs,hsl:_s,hsla:_s},parse:(r)=>{if(typeof r!=="string")return r;let e=Ki.parse(r)||vs.parse(r)||_s.parse(r)||_h.parse(r);if(e)return e;throw Error(`Unsupported color format: "${r}"`)},stringify:(r)=>{if(!r.changed&&r.color)return r.color;if(r.type.is(Xe.HSL)||r.data.r===void 0)return _s.stringify(r);else if(r.a<1||!Number.isInteger(r.r)||!Number.isInteger(r.g)||!Number.isInteger(r.b))return vs.stringify(r);else return Ki.stringify(r)}},lt=aC;var nC=(r,e)=>{let i=lt.parse(r);for(let s in e)i[s]=Y.channel.clamp[s](e[s]);return lt.stringify(i)},Sn=nC;var lC=(r,e,i=0,s=1)=>{if(typeof r!=="number")return Sn(r,{a:e});let o=zi.set({r:Y.channel.clamp.r(r),g:Y.channel.clamp.g(e),b:Y.channel.clamp.b(i),a:Y.channel.clamp.a(s)});return lt.stringify(o)},Le=lC;var hC=(r)=>{let{r:e,g:i,b:s}=lt.parse(r),o=0.2126*Y.channel.toLinear(e)+0.7152*Y.channel.toLinear(i)+0.0722*Y.channel.toLinear(s);return Y.lang.round(o)},Dd=hC;var cC=(r)=>Dd(r)>=0.5,Pd=cC;var uC=(r)=>!Pd(r),ce=uC;var fC=(r,e,i)=>{let s=lt.parse(r),o=s[e],n=Y.channel.clamp[e](o+i);if(o!==n)s[e]=n;return lt.stringify(s)},$a=fC;var dC=(r,e)=>$a(r,"l",e),p=dC;var pC=(r,e)=>$a(r,"l",-e),m=pC;var gC=(r,e)=>{let i=lt.parse(r),s={};for(let o in e){if(!e[o])continue;s[o]=i[o]+e[o]}return Sn(r,s)},H=gC;var mC=(r,e,i=50)=>{let{r:s,g:o,b:n,a:h}=lt.parse(r),{r:l,g:d,b:y,a:c}=lt.parse(e),x=i/100,b=x*2-1,_=h-c,M=((b*_===-1?b:(b+_)/(1+b*_))+1)/2,q=1-M,W=s*M+l*q,j=o*M+d*q,K=n*M+y*q,J=h*x+c*(1-x);return Le(W,j,K,J)},Rd=mC;var yC=(r,e=100)=>{let i=lt.parse(r);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Rd(i,r,e)},ht=yC;/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function xC(r,e){this.v=r,this.k=e}function qd(r,e){(e==null||e>r.length)&&(e=r.length);for(var i=0,s=Array(e);i<e;i++)s[i]=r[i];return s}function CC(r){if(Array.isArray(r))return r}function bC(r,e){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var s,o,n,h,l=[],d=!0,y=!1;try{if(n=(i=i.call(r)).next,e===0){if(Object(i)!==i)return;d=!1}else for(;!(d=(s=n.call(i)).done)&&(l.push(s.value),l.length!==e);d=!0);}catch(c){y=!0,o=c}finally{try{if(!d&&i.return!=null&&(h=i.return(),Object(h)!==h))return}finally{if(y)throw o}}return l}}function kC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function wC(r,e){return CC(r)||bC(r,e)||SC(r,e)||kC()}function SC(r,e){if(r){if(typeof r=="string")return qd(r,e);var i={}.toString.call(r).slice(8,-1);return i==="Object"&&r.constructor&&(i=r.constructor.name),i==="Map"||i==="Set"?Array.from(r):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?qd(r,e):void 0}}function Tn(r){var e,i;function s(n,h){try{var l=r[n](h),d=l.value,y=d instanceof xC;Promise.resolve(y?d.v:d).then(function(c){if(y){var x=n==="return"&&d.k?n:"next";if(!d.k||c.done)return s(x,c);c=r[x](c).value}o(!!l.done,c)},function(c){s("throw",c)})}catch(c){o(2,c)}}function o(n,h){n===2?e.reject(h):e.resolve({value:h,done:n}),(e=e.next)?s(e.key,e.arg):i=null}this._invoke=function(n,h){return new Promise(function(l,d){var y={key:n,arg:h,resolve:l,reject:d,next:null};i?i=i.next=y:(e=i=y,s(n,h))})},typeof r.return!="function"&&(this.return=void 0)}Tn.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Tn.prototype.next=function(r){return this._invoke("next",r)},Tn.prototype.throw=function(r){return this._invoke("throw",r)},Tn.prototype.return=function(r){return this._invoke("return",r)};var{entries:tp,setPrototypeOf:Nd,isFrozen:TC,getPrototypeOf:ep,getOwnPropertyDescriptor:rp,freeze:Ke,seal:tr,create:Go}=Object,ip=typeof Reflect<"u"&&Reflect,{apply:$h,construct:Dh}=ip;if(!Ke)Ke=function(e){return e};if(!tr)tr=function(e){return e};if(!$h)$h=function(e,i){for(var s=arguments.length,o=Array(s>2?s-2:0),n=2;n<s;n++)o[n-2]=arguments[n];return e.apply(i,o)};if(!Dh)Dh=function(e){for(var i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return new e(...s)};var Bi=Oe(Array.prototype.forEach);Array.prototype.indexOf;var _C=Oe(Array.prototype.lastIndexOf),Wd=Oe(Array.prototype.pop),Ws=Oe(Array.prototype.push),BC=Oe(Array.prototype.slice),vC=Oe(Array.prototype.splice),Xo=Array.isArray,Bh=op(Set),vh=Oe(Set.prototype.add),Hs=Oe(Set.prototype.has),Zi=Oe(String.prototype.toLowerCase),Lh=Oe(String.prototype.toString),zd=Oe(String.prototype.match),Ys=Oe(String.prototype.replace),Hd=Oe(String.prototype.indexOf),LC=Oe(String.prototype.trim),FC=Oe(Number.prototype.toString),AC=Oe(Boolean.prototype.toString),Yd=typeof BigInt>"u"?null:Oe(BigInt.prototype.toString),Ud=typeof Symbol>"u"?null:Oe(Symbol.prototype.toString),xr=Oe(Object.prototype.hasOwnProperty),Gs=Oe(Object.prototype.toString),Je=Oe(RegExp.prototype.test),vi=op(TypeError);function Oe(r){return function(e){if(e instanceof RegExp)e.lastIndex=0;for(var i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return $h(r,e,s)}}function op(r){return function(){for(var e=arguments.length,i=Array(e),s=0;s<e;s++)i[s]=arguments[s];return Dh(r,i)}}function xe(r,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zi;if(Nd)Nd(r,null);if(!Xo(e))return r;let s=e.length;while(s--){let o=e[s];if(typeof o==="string"){let n=i(o);if(n!==o){if(!TC(e))e[s]=n;o=n}}r[o]=!0}return r}function MC(r){for(let e=0;e<r.length;e++)if(!xr(r,e))r[e]=null;return r}function kr(r){let e=Go(null);for(let s of tp(r)){var i=wC(s,2);let o=i[0],n=i[1];if(xr(r,o))if(Xo(n))e[o]=MC(n);else if(n&&typeof n==="object"&&n.constructor===Object)e[o]=kr(n);else e[o]=n}return e}function EC(r){switch(typeof r){case"string":return r;case"number":return FC(r);case"boolean":return AC(r);case"bigint":return Yd?Yd(r):"0";case"symbol":return Ud?Ud(r):"Symbol()";case"undefined":return Gs(r);case"function":case"object":{if(r===null)return Gs(r);let e=r,i=vr(e,"toString");if(typeof i==="function"){let s=i(e);return typeof s==="string"?s:Gs(s)}return Gs(r)}default:return Gs(r)}}function vr(r,e){while(r!==null){let s=rp(r,e);if(s){if(s.get)return Oe(s.get);if(typeof s.value==="function")return Oe(s.value)}r=ep(r)}function i(){return null}return i}function OC(r,e){while(r!==null){let i=rp(r,e);if(i)return i.get?Oe(i.get):null;r=ep(r)}return null}function IC(r){try{return Je(r,""),!0}catch(e){return!1}}var jd=Ke(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Fh=Ke(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ah=Ke(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$C=Ke(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mh=Ke(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),DC=Ke(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gd=Ke(["#text"]),Xd=Ke(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Eh=Ke(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vd=Ke(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),_n=Ke(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PC=tr(/{{[\w\W]*|^[\w\W]*}}/g),RC=tr(/<%[\w\W]*|^[\w\W]*%>/g),qC=tr(/\${[\w\W]*/g),NC=tr(/^data-[\-\w.\u00B7-\uFFFF]+$/),WC=tr(/^aria-[\-\w]+$/),Kd=tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zC=tr(/^(?:\w+script|data):/i),HC=tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),YC=tr(/^html$/i),UC=tr(/^[a-z][.\w]*(-[.\w]+)+$/i),Oh=tr(/<[/\w!]/g),Zd=tr(/<[/\w]/g),jC=tr(/<\/no(script|embed|frames)/i),Qd=tr(/\/>/i),Ue={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},GC=Ke(xe({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),XC=function(){return typeof window>"u"?null:window},VC=function(e,i){if(typeof e!=="object"||typeof e.createPolicy!=="function")return null;let s=null,o="data-tt-policy-suffix";if(i&&i.hasAttribute(o))s=i.getAttribute(o);let n="dompurify"+(s?"#"+s:"");try{return e.createPolicy(n,{createHTML(h){return h},createScriptURL(h){return h}})}catch(h){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Jd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Hi=function(e,i,s,o){return xr(e,i)&&Xo(e[i])?xe(o.base?kr(o.base):{},e[i],o.transform):s},Ih=function(e,i,s){let o=xr(e,i)?e[i]:void 0;return o&&typeof o==="object"?kr(o):s()};function sp(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:XC(),e=(zt)=>sp(zt);if(e.version="3.4.17",e.removed=[],!r||!r.document||r.document.nodeType!==Ue.document||!r.Element)return e.isSupported=!1,e;let i=r.document,s=i,o=s.currentScript;r.DocumentFragment;let{HTMLTemplateElement:n,Node:h,Element:l,NodeFilter:d}=r;r.NamedNodeMap===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let{DOMParser:y,trustedTypes:c}=r,x=l.prototype,b=vr(x,"cloneNode"),_=vr(x,"remove"),v=vr(x,"removeAttributeNode"),M=vr(x,"nextSibling"),q=vr(x,"childNodes"),W=vr(x,"parentNode"),j=vr(x,"shadowRoot"),K=vr(x,"attributes"),J=h&&h.prototype?vr(h.prototype,"nodeType"):null,tt=h&&h.prototype?vr(h.prototype,"nodeName"):null,at=h&&h.prototype?vr(h.prototype,"ownerDocument"):null,st=function(Z){return J?J(Z):Z.nodeType},dt=function(Z){return tt?tt(Z):Z.nodeName},bt=OC(x,"namespaceURI"),At=function(Z){return bt?bt(Z):Z.namespaceURI};if(typeof n==="function"){let zt=i.createElement("template");if(zt.content&&zt.content.ownerDocument)i=zt.content.ownerDocument}let wt,kt="",it,ot=!1,mt=0,et=function(){if(mt>0)throw vi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},_t=function(Z){et(),mt++;try{return wt.createHTML(Z)}finally{mt--}},Mt=function(Z){et(),mt++;try{return wt.createScriptURL(Z)}finally{mt--}},Vt=function(){if(!ot)it=VC(c,o),ot=!0;return it},Xt=i,{implementation:se,createNodeIterator:oe,createDocumentFragment:de,getElementsByTagName:ge}=Xt,he=s.importNode,Gt=Jd();e.isSupported=typeof tp==="function"&&typeof W==="function"&&se&&se.createHTMLDocument!==void 0;let re=PC,ae=RC,ne=qC,Ae=NC,ve=WC,Ar=zC,ci=HC,Tr=UC,$i=Kd,Se=null,gr=xe({},[...jd,...Fh,...Ah,...Mh,...Gd]),ke=null,ui=xe({},[...Xd,...Eh,...Vd,..._n]),Qe=Object.seal(Go(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_r=null,Di=null,We=Object.seal(Go(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Pi=!0,Yr=!0,fi=!1,di=!0,w=!1,pt=!0,Ft=!1,Ot=!1,Bt=null,Yt=null,V=!1,xt=!1,Nt=!1,Et=!1,$t=!0,Ht=!1,Wt="user-content-",Qt=!0,Zt=!1,Jt=null,ee={},pe=null,Be=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),bs=null,Ri=xe({},["audio","video","img","source","image","track"]),qi=null,ld=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",pn="http://www.w3.org/2000/svg",Ur="http://www.w3.org/1999/xhtml",Wo=Ur,hh=!1,ch=null,D0=xe({},[dn,pn,Ur],Lh),hd=Ke(["mi","mo","mn","ms","mtext"]),uh=xe({},hd),cd=Ke(["annotation-xml"]),fh=xe({},cd),P0=xe({},["title","style","font","a","script"]),ks=null,R0=["application/xhtml+xml","text/html"],q0="text/html",qe=null,Ho=null,N0=i.createElement("form"),ud=function(Z){return Z instanceof RegExp||Z instanceof Function},dh=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ho&&Ho===Z)return;if(!Z||typeof Z!=="object")Z={};Z=kr(Z),ks=R0.indexOf(Z.PARSER_MEDIA_TYPE)===-1?q0:Z.PARSER_MEDIA_TYPE,qe=ks==="application/xhtml+xml"?Lh:Zi,Se=Hi(Z,"ALLOWED_TAGS",gr,{transform:qe}),ke=Hi(Z,"ALLOWED_ATTR",ui,{transform:qe}),ch=Hi(Z,"ALLOWED_NAMESPACES",D0,{transform:Lh}),qi=Hi(Z,"ADD_URI_SAFE_ATTR",ld,{transform:qe,base:ld}),bs=Hi(Z,"ADD_DATA_URI_TAGS",Ri,{transform:qe,base:Ri}),pe=Hi(Z,"FORBID_CONTENTS",Be,{transform:qe}),_r=Hi(Z,"FORBID_TAGS",kr({}),{transform:qe}),Di=Hi(Z,"FORBID_ATTR",kr({}),{transform:qe}),ee=xr(Z,"USE_PROFILES")?Z.USE_PROFILES&&typeof Z.USE_PROFILES==="object"?kr(Z.USE_PROFILES):Z.USE_PROFILES:!1,Pi=Z.ALLOW_ARIA_ATTR!==!1,Yr=Z.ALLOW_DATA_ATTR!==!1,fi=Z.ALLOW_UNKNOWN_PROTOCOLS||!1,di=Z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,w=Z.SAFE_FOR_TEMPLATES||!1,pt=Z.SAFE_FOR_XML!==!1,Ft=Z.WHOLE_DOCUMENT||!1,xt=Z.RETURN_DOM||!1,Nt=Z.RETURN_DOM_FRAGMENT||!1,Et=Z.RETURN_TRUSTED_TYPE||!1,V=Z.FORCE_BODY||!1,$t=Z.SANITIZE_DOM!==!1,Ht=Z.SANITIZE_NAMED_PROPS||!1,Qt=Z.KEEP_CONTENT!==!1,Zt=Z.IN_PLACE||!1,$i=IC(Z.ALLOWED_URI_REGEXP)?Z.ALLOWED_URI_REGEXP:Kd,Wo=typeof Z.NAMESPACE==="string"?Z.NAMESPACE:Ur,uh=Ih(Z,"MATHML_TEXT_INTEGRATION_POINTS",()=>xe({},hd)),fh=Ih(Z,"HTML_INTEGRATION_POINTS",()=>xe({},cd));let ft=Ih(Z,"CUSTOM_ELEMENT_HANDLING",()=>Go(null));if(Qe=Go(null),xr(ft,"tagNameCheck")&&ud(ft.tagNameCheck))Qe.tagNameCheck=ft.tagNameCheck;if(xr(ft,"attributeNameCheck")&&ud(ft.attributeNameCheck))Qe.attributeNameCheck=ft.attributeNameCheck;if(xr(ft,"allowCustomizedBuiltInElements")&&typeof ft.allowCustomizedBuiltInElements==="boolean")Qe.allowCustomizedBuiltInElements=ft.allowCustomizedBuiltInElements;if(tr(Qe),w)Yr=!1;if(Nt)xt=!0;if(ee){if(Se=xe({},Gd),ke=Go(null),ee.html===!0)xe(Se,jd),xe(ke,Xd);if(ee.svg===!0)xe(Se,Fh),xe(ke,Eh),xe(ke,_n);if(ee.svgFilters===!0)xe(Se,Ah),xe(ke,Eh),xe(ke,_n);if(ee.mathMl===!0)xe(Se,Mh),xe(ke,Vd),xe(ke,_n)}if(We.tagCheck=null,We.attributeCheck=null,xr(Z,"ADD_TAGS")){if(typeof Z.ADD_TAGS==="function")We.tagCheck=Z.ADD_TAGS;else if(Xo(Z.ADD_TAGS)){if(Se===gr)Se=kr(Se);xe(Se,Z.ADD_TAGS,qe)}}if(xr(Z,"ADD_ATTR")){if(typeof Z.ADD_ATTR==="function")We.attributeCheck=Z.ADD_ATTR;else if(Xo(Z.ADD_ATTR)){if(ke===ui)ke=kr(ke);xe(ke,Z.ADD_ATTR,qe)}}if(xr(Z,"ADD_FORBID_CONTENTS")&&Xo(Z.ADD_FORBID_CONTENTS)){if(pe===Be)pe=kr(pe);xe(pe,Z.ADD_FORBID_CONTENTS,qe)}if(Qt)Se["#text"]=!0;if(Ft)xe(Se,["html","head","body"]);if(Se.table)xe(Se,["tbody"]),delete _r.tbody;if(Z.TRUSTED_TYPES_POLICY){if(typeof Z.TRUSTED_TYPES_POLICY.createHTML!=="function")throw vi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Z.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw vi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let Dt=wt;wt=Z.TRUSTED_TYPES_POLICY;try{kt=_t("")}catch(Pt){throw wt=Dt,Pt}}else if(Z.TRUSTED_TYPES_POLICY===null)wt=void 0,kt="";else{if(wt===void 0)wt=Vt();if(wt&&typeof kt==="string")kt=_t("")}if(Ke)Ke(Z);Ho=Z},fd=xe({},[...Fh,...Ah,...$C]),dd=xe({},[...Mh,...DC]),W0=function(Z,ft,Dt){if(ft.namespaceURI===Ur)return Z==="svg";if(ft.namespaceURI===dn)return Z==="svg"&&(Dt==="annotation-xml"||uh[Dt]);return Boolean(fd[Z])},z0=function(Z,ft,Dt){if(ft.namespaceURI===Ur)return Z==="math";if(ft.namespaceURI===pn)return Z==="math"&&fh[Dt];return Boolean(dd[Z])},H0=function(Z,ft,Dt){if(ft.namespaceURI===pn&&!fh[Dt])return!1;if(ft.namespaceURI===dn&&!uh[Dt])return!1;return!dd[Z]&&(P0[Z]||!fd[Z])},Y0=function(Z){let ft=At(Z),Dt=Zi(dt(Z)),Pt=W(Z),ie,fe;if(Pt&&st(Pt)===Ue.element)ie={namespaceURI:At(Pt)},fe=Zi(dt(Pt));else ie={namespaceURI:Wo},fe="template";if(!ch[ft])return!1;if(ft===pn)return W0(Dt,ie,fe);if(ft===dn)return z0(Dt,ie,fe);if(ft===Ur)return H0(Dt,ie,fe);if(ks==="application/xhtml+xml"&&ch[ft])return!0;return!1},Ni=function(Z){Ws(e.removed,{element:Z});try{W(Z).removeChild(Z)}catch(ft){if(_(Z),!W(Z))throw vi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},pd=function(Z,ft,Dt){try{v(Z,ft)}catch(Pt){try{Z.removeAttribute(Dt)}catch(ie){}}},ph=function(Z){mh(Z);let ft=q(Z);if(ft)Bi(BC(ft),(Pt)=>{try{_(Pt)}catch(ie){}});let Dt=st(Z)===Ue.element?K(Z):null;if(Dt)for(let Pt=Dt.length-1;Pt>=0;--Pt){let ie=Dt[Pt],fe=ie&&ie.name;if(typeof fe==="string")pd(Z,ie,fe)}},Yo=function(Z,ft,Dt){if(!Dt)try{Dt=ft.getAttributeNode(Z)}catch(Pt){Dt=null}Ws(e.removed,{attribute:Dt||null,from:ft});try{if(Dt)v(ft,Dt);else ft.removeAttribute(Z)}catch(Pt){try{ft.removeAttribute(Z)}catch(ie){}}if(Z==="is")if(xt||Nt)try{Ni(ft)}catch(Pt){}else try{ft.setAttribute(Z,"")}catch(Pt){}},gd=function(Z){let ft=K(Z);if(!ft)return;for(let Dt=ft.length-1;Dt>=0;--Dt){let Pt=ft[Dt],ie=Pt&&Pt.name;if(typeof ie!=="string"||ke[qe(ie)])continue;pd(Z,Pt,ie)}},gh=function(Z,ft){let Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Pt=[Z];while(Pt.length>0){let ie=Pt.pop();if(ft(ie)===!1)continue;if(Dt&&st(ie)===Ue.element){let me=j(ie);if(Wi(me))Pt.push(me)}let fe=q(ie);if(fe)for(let me=fe.length-1;me>=0;--me)Pt.push(fe[me])}},mh=function(Z){gh(Z,(ft)=>{if(st(ft)===Ue.element)gd(ft)})},yh=function(Z){let ft=[];return gh(Z,(Dt)=>{ft.push(Dt)},!0),ft},U0=function(Z,ft){let Dt=Bh();Bi(yh(Z),(Pt)=>{if(st(Pt)===Ue.element)vh(Dt,Pt)}),Bi(ft,(Pt)=>{if(st(Pt)===Ue.element&&!Hs(Dt,Pt))gd(Pt)})},md=function(Z,ft){let Dt=!1;return Bi(e.removed,(Pt)=>{if(Pt.element)Dt=Dt||Pt.element===Z,mh(Pt.element)}),U0(Z,ft),Dt},j0=8,G0=function(Z,ft){let Dt=Jt,Pt=null,ie=()=>{if(!Pt)Pt=Bh(),Bi(ft,(fe)=>{vh(Pt,fe)});return Pt};for(let fe=0;;fe++){let me=yh(Z),je=[Z],jr=!1;if(Bi(me,(ur)=>{if(st(ur)===Ue.documentFragment)Ws(je,ur);else if(!jr&&!Hs(Dt,ur))jr=Hs(ie(),ur)}),!jr)return;if(fe>=j0)throw vi("the tree kept changing during in-place sanitization; refusing to return it");Bi(je,(ur,mr)=>{X0(ur,mr>0,Z,ie())})}},X0=function(Z,ft,Dt,Pt){let ie=xh(Z),fe;while(fe=ie.nextNode()){if(!Hs(Pt,fe)||Hs(Jt,fe))continue;if(ft)Er(Gt.uponSanitizeShadowNode,fe,null);if(bh(fe,Dt),kh(fe,Dt),Wi(fe.content))Ss(fe.content)}},V0=function(Z){if(Jt)vh(Jt,Z)},yd=function(Z,ft){if(!pt)return!1;if(Z==="patchsrc")return!0;return Z==="for"&&ft!=="label"&&ft!=="output"},K0=function(Z){if(!pt)return;gh(Z,(ft)=>{let Dt=st(ft);if(Dt===Ue.processingInstruction||Dt===Ue.comment&&Je(Zd,ft.data)){try{_(ft)}catch(Pt){}return!1}if(Dt===Ue.element){let Pt=ft,ie=qe(dt(ft));try{if(Pt.hasAttribute&&Pt.hasAttribute("patchsrc"))Pt.removeAttribute("patchsrc");if(Pt.hasAttribute&&Pt.hasAttribute("for")&&yd("for",ie))Pt.removeAttribute("for")}catch(fe){}}return!0})},xd=function(Z){let ft=null,Dt=null;if(V)Z="<remove></remove>"+Z;else{let fe=zd(Z,/^[\r\n\t ]+/);Dt=fe&&fe[0]}if(ks==="application/xhtml+xml"&&Wo===Ur)Z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Z+"</body></html>";let Pt=wt?_t(Z):Z;if(Wo===Ur)try{ft=new y().parseFromString(Pt,ks)}catch(fe){}if(!ft||!ft.documentElement){ft=se.createDocument(Wo,"template",null);try{ft.documentElement.innerHTML=hh?kt:Pt}catch(fe){}}let ie=ft.body||ft.documentElement;if(Z&&Dt)ie.insertBefore(i.createTextNode(Dt),ie.childNodes[0]||null);if(Wo===Ur)return ge.call(ft,Ft?"html":"body")[0];return Ft?ft.documentElement:ie},xh=function(Z){let ft=at?at(Z):Z.ownerDocument;return oe.call(ft||Z,Z,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},gn=function(Z){return Z=Ys(Z,re," "),Z=Ys(Z,ae," "),Z=Ys(Z,ne," "),Z},Ch=function(Z){var ft;Cd(Z);let Dt=(ft=Z.querySelectorAll)===null||ft===void 0?void 0:ft.call(Z,"template");if(Dt)Bi(Dt,(Pt)=>{if(Wi(Pt.content))Ch(Pt.content)})},Cd=function(Z){Z.normalize();let ft=at?at(Z):Z.ownerDocument,Dt=oe.call(ft||Z,Z,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null),Pt=Dt.nextNode();while(Pt)Pt.data=gn(Pt.data),Pt=Dt.nextNode()},mn=function(Z){let ft=tt?tt(Z):null;if(typeof ft!=="string")return!1;if(qe(ft)!=="form")return!1;return typeof Z.nodeName!=="string"||typeof Z.textContent!=="string"||typeof Z.removeChild!=="function"||Z.attributes!==K(Z)||typeof Z.removeAttribute!=="function"||typeof Z.removeAttributeNode!=="function"||typeof Z.getAttributeNode!=="function"||typeof Z.setAttribute!=="function"||typeof Z.namespaceURI!=="string"||typeof Z.insertBefore!=="function"||typeof Z.hasChildNodes!=="function"||Z.nodeType!==J(Z)||Z.childNodes!==q(Z)},Wi=function(Z){if(!J||typeof Z!=="object"||Z===null)return!1;try{return J(Z)===Ue.documentFragment}catch(ft){return!1}},ws=function(Z){if(!J||typeof Z!=="object"||Z===null)return!1;try{return typeof J(Z)==="number"}catch(ft){return!1}};function Er(zt,Z,ft){if(zt.length===0)return;Bi(zt,(Dt)=>{Dt.call(e,Z,ft,Ho)})}let Z0=function(Z,ft){if(pt&&Z.hasChildNodes()&&!ws(Z.firstElementChild)&&Je(Oh,Z.textContent)&&Je(Oh,Z.innerHTML))return!0;if(pt&&GC[ft]&&st(Z)===Ue.element&&At(Z)===Ur&&(ws(Z.firstElementChild)||typeof Z.textContent==="string"&&Je(Oh,Z.textContent)))return!0;if(Z.nodeType===Ue.processingInstruction)return!0;if(pt&&Z.nodeType===Ue.comment&&Je(Zd,Z.data))return!0;return!1},yn=function(Z,ft){if(Z instanceof RegExp)return Je(Z,ft);if(Z instanceof Function){for(var Dt=arguments.length,Pt=Array(Dt>2?Dt-2:0),ie=2;ie<Dt;ie++)Pt[ie-2]=arguments[ie];return Boolean(Z(ft,...Pt))}return!1},Q0=function(Z,ft,Dt){if(!_r[ft]&&wd(ft)&&yn(Qe.tagNameCheck,ft))return!1;if(Qt&&!pe[ft]&&!pe[Zi(ft)]){let Pt=W(Z),ie=q(Z);if(ie&&Pt){let fe=ie.length;for(let me=fe-1;me>=0;--me){let je=Z===Dt?b(ie[me],!0):ie[me];Pt.insertBefore(je,M(Z))}}}return Ni(Z),!0},bd=function(Z,ft,Dt,Pt){if(Z.length===0)return ft;return ft===Dt||ft===Pt?kr(ft):ft},Uo=function(Z,ft){if(Z===ft||W(Z)!==null)return!1;if(Zt)mh(Z);return!0},bh=function(Z,ft){if(V0(Z),Er(Gt.beforeSanitizeElements,Z,null),Uo(Z,ft))return!0;if(mn(Z))return Ni(Z),!0;let Dt=qe(dt(Z));if(Se=bd(Gt.uponSanitizeElement,Se,gr,Bt),Er(Gt.uponSanitizeElement,Z,{tagName:Dt,allowedTags:Se}),Uo(Z,ft))return!0;if(Z0(Z,Dt))return Ni(Z),!0;if(_r[Dt]||!(We.tagCheck instanceof Function&&We.tagCheck(Dt))&&!Se[Dt]){let Pt=Q0(Z,Dt,ft);if(Pt===!1){if(Er(Gt.afterSanitizeElements,Z,null),Uo(Z,ft))return!0}return Pt}if(st(Z)===Ue.element&&!Y0(Z))return Ni(Z),!0;if((Dt==="noscript"||Dt==="noembed"||Dt==="noframes")&&Je(jC,Z.innerHTML))return Ni(Z),!0;if(w&&Z.nodeType===Ue.text){let Pt=gn(Z.textContent);if(Z.textContent!==Pt)Ws(e.removed,{element:Z.cloneNode()}),Z.textContent=Pt}return Er(Gt.afterSanitizeElements,Z,null),Uo(Z,ft)},kd=function(Z,ft,Dt){if(Di[ft])return!1;if(yd(ft,Z))return!1;if($t&&(ft==="id"||ft==="name")&&((Dt in i)||(Dt in N0)))return!1;let Pt=ke[ft]||We.attributeCheck instanceof Function&&We.attributeCheck(ft,Z);if(Yr&&Je(Ae,ft))return!0;if(Pi&&Je(ve,ft))return!0;if(!Pt)return wd(Z)&&yn(Qe.tagNameCheck,Z)&&yn(Qe.attributeNameCheck,ft,Z)||ft==="is"&&Qe.allowCustomizedBuiltInElements&&yn(Qe.tagNameCheck,Dt);if(qi[ft])return!0;if(Je($i,Ys(Dt,ci,"")))return!0;if((ft==="src"||ft==="xlink:href"||ft==="href")&&Z!=="script"&&Hd(Dt,"data:")===0&&bs[Z])return!0;if(fi&&!Je(Ar,Ys(Dt,ci,"")))return!0;return!Dt},J0=xe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wd=function(Z){return!J0[Zi(Z)]&&Je(Tr,Z)},tC=function(Z,ft,Dt,Pt){if(wt&&typeof c==="object"&&typeof c.getAttributeType==="function"&&!Dt)switch(c.getAttributeType(Z,ft)){case"TrustedHTML":return _t(Pt);case"TrustedScriptURL":return Mt(Pt)}return Pt},eC=function(Z,ft,Dt,Pt){try{if(Dt)Z.setAttributeNS(Dt,ft,Pt);else Z.setAttribute(ft,Pt);if(mn(Z))return Ni(Z),!1;return!0}catch(ie){return Yo(ft,Z),!1}},Sd=function(Z,ft){if(pt&&Je(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ft))return!0;return Zi(Z)==="attributename"&&zd(ft,"href")!==null},kh=function(Z,ft){if(Er(Gt.beforeSanitizeAttributes,Z,null),Uo(Z,ft))return;let Dt=Z.attributes;if(!Dt||mn(Z))return;ke=bd(Gt.uponSanitizeAttribute,ke,ui,Yt);let Pt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0},ie=Dt.length,fe=qe(Z.nodeName);while(ie--){let me=Dt[ie],{name:je,namespaceURI:jr,value:ur}=me,mr=qe(je),jo=ur,yr=je==="value"?jo:LC(jo),Td=!1;if(Pt.attrName=mr,Pt.attrValue=yr,Pt.keepAttr=!0,Pt.forceKeepAttr=void 0,Er(Gt.uponSanitizeAttribute,Z,Pt),yr=Pt.attrValue,Ht&&(mr==="id"||mr==="name")&&Hd(yr,Wt)!==0)Yo(je,Z,me),yr=Wt+yr,Td=!0;if(Sd(je,yr)){Yo(je,Z,me);continue}if(Pt.forceKeepAttr)continue;if(!Pt.keepAttr){Yo(je,Z,me);continue}if(!di&&Je(Qd,yr)){Yo(je,Z,me);continue}if(w)yr=gn(yr);if(!kd(fe,mr,yr)){Yo(je,Z,me);continue}if(yr=tC(fe,mr,jr,yr),yr!==jo){if(eC(Z,je,jr,yr)&&Td)Wd(e.removed)}}Er(Gt.afterSanitizeAttributes,Z,null),Uo(Z,ft)},Ss=function(Z){let ft=null,Dt=xh(Z);Er(Gt.beforeSanitizeShadowDOM,Z,null);while(ft=Dt.nextNode()){if(Er(Gt.uponSanitizeShadowNode,ft,null),bh(ft,Z),kh(ft,Z),Wi(ft.content))Ss(ft.content);if(st(ft)===Ue.element){let Pt=j(ft);if(Wi(Pt))wh(Pt),Ss(Pt)}}if(w)Cd(Z);Er(Gt.afterSanitizeShadowDOM,Z,null)},wh=function(Z){let ft=[{node:Z,shadow:null}];while(ft.length>0){let Dt=ft.pop();if(Dt.shadow){Ss(Dt.shadow);continue}let Pt=Dt.node,ie=st(Pt)===Ue.element,fe=q(Pt);if(fe)for(let me=fe.length-1;me>=0;--me)ft.push({node:fe[me],shadow:null});if(ie){let me=tt?tt(Pt):null;if(typeof me==="string"&&qe(me)==="template"){let je=Pt.content;if(Wi(je))ft.push({node:je,shadow:null})}}if(ie){let me=j(Pt);if(Wi(me))ft.push({node:null,shadow:me},{node:me,shadow:null})}}};return e.sanitize=function(zt){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ft=null,Dt=null,Pt=null,ie=null;if(hh=!zt,hh)zt="<!-->";if(typeof zt!=="string"&&!ws(zt)){if(zt=EC(zt),typeof zt!=="string")throw vi("dirty is not a string, aborting")}if(!e.isSupported)return zt;if(Ot)Se=Bt,ke=Yt;else dh(Z);if(Gt.uponSanitizeElement.length>0||Gt.uponSanitizeAttribute.length>0)Se=kr(Se);if(Gt.uponSanitizeAttribute.length>0)ke=kr(ke);e.removed=[];let fe=Zt&&typeof zt!=="string"&&ws(zt),me=[],je=Jt;if(fe){K0(zt);let mr=dt(zt);if(typeof mr==="string"){let jo=qe(mr);if(!Se[jo]||_r[jo])throw ph(zt),vi("root node is forbidden and cannot be sanitized in-place")}if(mn(zt))throw ph(zt),vi("root node is clobbered and cannot be sanitized in-place");me=yh(zt),Jt=Bh()}else if(ws(zt)){if(ft=xd("<!---->"),Dt=ft.ownerDocument.importNode(zt,!0),Dt.nodeType===Ue.element&&Dt.nodeName==="BODY")ft=Dt;else if(Dt.nodeName==="HTML")ft=Dt;else ft.appendChild(Dt);wh(ft)}else{if(!xt&&!w&&!Ft&&zt.indexOf("<")===-1)return wt&&Et?_t(zt):zt;if(ft=xd(zt),!ft)return xt?null:Et?kt:""}if(ft&&V)Ni(ft.firstChild);let jr=fe?zt:ft;try{if(fe)wh(zt);let mr=xh(jr);while(Pt=mr.nextNode())if(bh(Pt,jr),kh(Pt,jr),Wi(Pt.content))Ss(Pt.content);if(fe)G0(zt,me)}catch(mr){if(fe)ph(zt),md(zt,me);throw mr}finally{Jt=je}if(fe){if(md(zt,me))throw vi("a node selected for removal could not be safely returned; refusing to sanitize in place");if(w)Ch(zt);return zt}if(xt){if(w)Ch(ft);if(Nt){ie=de.call(ft.ownerDocument);while(ft.firstChild)ie.appendChild(ft.firstChild)}else ie=ft;if(ke.shadowroot||ke.shadowrootmode)ie=he.call(s,ie,!0);return ie}let ur=Ft?ft.outerHTML:ft.innerHTML;if(Ft&&Se["!doctype"]&&ft.ownerDocument&&ft.ownerDocument.doctype&&ft.ownerDocument.doctype.name&&Je(YC,ft.ownerDocument.doctype.name))ur="<!DOCTYPE "+ft.ownerDocument.doctype.name+`>
|
|
3
|
+
`+ur;if(w)ur=gn(ur);return wt&&Et?_t(ur):ur},e.setConfig=function(){let zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dh(zt),Ot=!0,Bt=Se,Yt=ke},e.clearConfig=function(){Ho=null,Ot=!1,Bt=null,Yt=null,wt=it,kt=""},e.isValidAttribute=function(zt,Z,ft){if(!Ho)dh({});let Dt=qe(zt),Pt=qe(Z);if(typeof ft==="string"&&(Sd(Z,ft)||!di&&Je(Qd,ft)))return!1;return kd(Dt,Pt,ft)},e.addHook=function(zt,Z){if(typeof Z!=="function")return;if(!xr(Gt,zt))return;Ws(Gt[zt],Z)},e.removeHook=function(zt,Z){if(!xr(Gt,zt))return;if(Z!==void 0){let ft=_C(Gt[zt],Z);return ft===-1?void 0:vC(Gt[zt],ft,1)[0]}return Wd(Gt[zt])},e.removeHooks=function(zt){if(!xr(Gt,zt))return;Gt[zt]=[]},e.removeAllHooks=function(){Gt=Jd()},e}var nt=sp();var Vo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,An=/\s/,KC=t((r)=>{let e="",i=0,s=0;while(s<r.length){let o=r.indexOf("%%",s);if(o===-1)break;let n=r.indexOf(`
|
|
4
|
+
`,o);if(n===-1)break;let h=o;while(h>i&&An.test(r[h-1]))h--;e+=r.slice(i,h)+`
|
|
5
|
+
`,i=n+1,s=i}return e+r.slice(i)},"stripAnyComments"),Bn=t((r)=>r===`
|
|
6
|
+
`||r==="\r","isLineBreak"),ZC=t((r,e)=>{let i=-1;for(let s=e;s<r.length&&An.test(r[s]);s++)if(Bn(r[s]))i=s;return i},"lastLineBreakInWhitespaceRun"),Ts=t((r)=>{let e=0;while(e<r.length&&An.test(r[e])&&!Bn(r[e]))e++;let i=r.slice(0,e);if(!r.startsWith("---",e))return;let s=[];for(let c=e+3;c<r.length&&An.test(r[c]);c++)if(Bn(r[c]))s.push(c);if(s.length===0)return;let o=`${i}---`,n=t((c)=>Bn(r[c])&&r.startsWith(o,c+1)?ZC(r,c+1+o.length):-1,"closingEnd"),h=s[0]+1,l=-1;for(let c=h;c<r.length;c++)if(n(c)!==-1)l=c;if(l===-1)return;let d=s[0];for(let c of s)if(c<l)d=c;let y=d+1;for(let c=y;c<=l;c++){let x=n(c);if(x!==-1)return{indent:i,body:r.slice(y,c),length:x+1}}return},"matchFrontMatter"),Es=class extends Error{static{t(this,"UnknownDiagramError")}constructor(r){super(r);this.name="UnknownDiagramError"}},Rr={},Ba=t(function(r,e){let i=Ts(r);r=KC((i?r.slice(i.length):r).replace(Vo,""));for(let[s,{detector:o}]of Object.entries(Rr))if(o(r,e))return s;throw new Es(`No diagram type detected matching given configuration for text: ${r}`)},"detectType"),lo=t((...r)=>{for(let{id:e,detector:i,loader:s}of r)up(e,i,s)},"registerLazyLoadedDiagrams"),up=t((r,e,i)=>{if(Rr[r])a.warn(`Detector with key ${r} already exists. Overwriting.`);Rr[r]={detector:e,loader:i},a.debug(`Detector with key ${r} added${i?" with loader":""}`)},"addDetector"),el=t((r)=>Rr[r].loader,"getDiagramLoader"),Ph=t((r,e,{depth:i=2}={})=>{let s={depth:i};if(Array.isArray(e)&&!Array.isArray(r))return e.forEach((o)=>Ph(r,o,s)),r;else if(Array.isArray(e)&&Array.isArray(r))return e.forEach((o)=>{if(!r.includes(o))r.push(o)}),r;if(r===void 0||r===null||i<=0)if(r!==void 0&&r!==null&&typeof r==="object"&&typeof e==="object")return Object.assign(r,e);else return e;if(e!==void 0&&e!==null&&typeof r==="object"&&typeof e==="object"){let o=r;Object.entries(e).forEach(([n,h])=>{if(typeof h==="object"){if(h===null)return;if(!Object.hasOwn(r,n))Object.defineProperty(r,n,{value:void 0,writable:!0,enumerable:!0,configurable:!0});if(o[n]===void 0)o[n]=Array.isArray(h)?[]:{};if(typeof o[n]==="object")o[n]=Ph(o[n],h,{depth:i-1})}else if(typeof o[n]!=="object")if(Object.hasOwn(r,n))o[n]=h;else Object.defineProperty(r,n,{value:h,writable:!0,enumerable:!0,configurable:!0})})}return r},"assignWithDepth"),Ce=Ph,Gr="#ffffff",Vr="#f2f2f2",ue=t((r,e)=>e?H(r,{s:-40,l:10}):H(r,{s:-40,l:-10}),"mkBorder"),ap=t((r)=>typeof r==="object"&&r!==null&&!Array.isArray(r),"isPlainObject"),$r=t((r,e)=>ap(r)&&ap(e)?{...r,...e}:e,"applyOverride"),QC=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||H(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||H(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||m(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||p(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode)this.rowOdd=this.rowOdd||m(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||m(this.mainBkg,10);else this.rowOdd=this.rowOdd||p(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||p(this.mainBkg,5);if(this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||H(this.primaryColor,{h:30}),this.cScale4=this.cScale4||H(this.primaryColor,{h:60}),this.cScale5=this.cScale5||H(this.primaryColor,{h:90}),this.cScale6=this.cScale6||H(this.primaryColor,{h:120}),this.cScale7=this.cScale7||H(this.primaryColor,{h:150}),this.cScale8=this.cScale8||H(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||H(this.primaryColor,{h:270}),this.cScale10=this.cScale10||H(this.primaryColor,{h:300}),this.cScale11=this.cScale11||H(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=m(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=m(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||ht(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||p(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||m(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||H(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||H(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||H(this.primaryColor,{h:64}),this.fillType3=this.fillType3||H(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||H(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||H(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||H(this.primaryColor,{h:128}),this.fillType7=this.fillType7||H(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||H(this.primaryColor,{l:-10}),this.pie5=this.pie5||H(this.secondaryColor,{l:-10}),this.pie6=this.pie6||H(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||H(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||H(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||H(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||H(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||H(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||H(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??H(this.primaryColor,{l:-30}),this.venn2=this.venn2??H(this.secondaryColor,{l:-30}),this.venn3=this.venn3??H(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??H(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??H(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??H(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??H(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??H(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||H(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||H(this.primaryColor,{h:-30}),this.git4=this.git4||H(this.primaryColor,{h:-60}),this.git5=this.git5||H(this.primaryColor,{h:-90}),this.git6=this.git6||H(this.primaryColor,{h:60}),this.git7=this.git7||H(this.primaryColor,{h:120}),this.darkMode)this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);else this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);if(e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])}),Object.hasOwn(r,"nodeBorder")&&!Object.hasOwn(r,"useGradient"))this.useGradient=!1}},JC=t((r)=>{let e=new QC;return e.calculate(r),e},"getThemeVariables"),tb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=p(this.primaryColor,16),this.tertiaryColor=H(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.background),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.lineColor=ht(this.background),this.textColor=ht(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=p(ht("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Le(255,255,255,0.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=m("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=m(this.sectionBkgColor,10),this.taskBorderColor=Le(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Le(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||p(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||m(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=p(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=p(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=p(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=ht(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=H(this.primaryColor,{h:64}),this.fillType3=H(this.secondaryColor,{h:64}),this.fillType4=H(this.primaryColor,{h:-64}),this.fillType5=H(this.secondaryColor,{h:-64}),this.fillType6=H(this.primaryColor,{h:128}),this.fillType7=H(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||H(this.primaryColor,{h:30}),this.cScale4=this.cScale4||H(this.primaryColor,{h:60}),this.cScale5=this.cScale5||H(this.primaryColor,{h:90}),this.cScale6=this.cScale6||H(this.primaryColor,{h:120}),this.cScale7=this.cScale7||H(this.primaryColor,{h:150}),this.cScale8=this.cScale8||H(this.primaryColor,{h:210}),this.cScale9=this.cScale9||H(this.primaryColor,{h:270}),this.cScale10=this.cScale10||H(this.primaryColor,{h:300}),this.cScale11=this.cScale11||H(this.primaryColor,{h:330});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||ht(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScalePeer"+r]=this["cScalePeer"+r]||p(this["cScale"+r],10);for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||H(this.mainBkg,{h:30,s:-30,l:-(-10+r*4)}),this["surfacePeer"+r]=this["surfacePeer"+r]||H(this.mainBkg,{h:30,s:-30,l:-(-7+r*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["pie"+r]=this["cScale"+r];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let r=0;r<8;r++)this["venn"+(r+1)]=this["venn"+(r+1)]??p(this["cScale"+r],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||H(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=p(this.secondaryColor,20),this.git1=p(this.pie2||this.secondaryColor,20),this.git2=p(this.pie3||this.tertiaryColor,20),this.git3=p(this.pie4||H(this.primaryColor,{h:-30}),20),this.git4=p(this.pie5||H(this.primaryColor,{h:-60}),20),this.git5=p(this.pie6||H(this.primaryColor,{h:-90}),10),this.git6=p(this.pie7||H(this.primaryColor,{h:60}),10),this.git7=p(this.pie8||H(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ht(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ht(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||p("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||p("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||p("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||p("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||p(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||p(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||p(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||p(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])})}},eb=t((r)=>{let e=new tb;return e.calculate(r),e},"getThemeVariables"),rb=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=H(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=H(this.primaryColor,{h:-160}),this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.lineColor=ht(this.background),this.textColor=ht(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Le(102,102,255,0.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||H(this.primaryColor,{h:30}),this.cScale4=this.cScale4||H(this.primaryColor,{h:60}),this.cScale5=this.cScale5||H(this.primaryColor,{h:90}),this.cScale6=this.cScale6||H(this.primaryColor,{h:120}),this.cScale7=this.cScale7||H(this.primaryColor,{h:150}),this.cScale8=this.cScale8||H(this.primaryColor,{h:210}),this.cScale9=this.cScale9||H(this.primaryColor,{h:270}),this.cScale10=this.cScale10||H(this.primaryColor,{h:300}),this.cScale11=this.cScale11||H(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||m(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||m(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=m(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||m(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||H(this["cScale"+r],{h:180});for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||H(this.mainBkg,{h:30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||H(this.mainBkg,{h:30,l:-(7+r*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||ht(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||ht(this.labelTextColor);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.labelTextColor}if(this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||p(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||p(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=H(this.primaryColor,{h:64}),this.fillType3=H(this.secondaryColor,{h:64}),this.fillType4=H(this.primaryColor,{h:-64}),this.fillType5=H(this.secondaryColor,{h:-64}),this.fillType6=H(this.primaryColor,{h:128}),this.fillType7=H(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||H(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||H(this.primaryColor,{l:-10}),this.pie5=this.pie5||H(this.secondaryColor,{l:-30}),this.pie6=this.pie6||H(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||H(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||H(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||H(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||H(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||H(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||H(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??H(this.primaryColor,{l:-30}),this.venn2=this.venn2??H(this.secondaryColor,{l:-30}),this.venn3=this.venn3??H(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??H(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??H(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??H(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??H(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??H(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||H(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||H(this.primaryColor,{h:-30}),this.git4=this.git4||H(this.primaryColor,{h:-60}),this.git5=this.git5||H(this.primaryColor,{h:-90}),this.git6=this.git6||H(this.primaryColor,{h:60}),this.git7=this.git7||H(this.primaryColor,{h:120}),this.darkMode)this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);else this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);this.gitInv0=this.gitInv0||m(ht(this.git0),25),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ht(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ht(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(r){if(Object.keys(this).forEach((i)=>{if(this[i]==="calculated")this[i]=void 0}),typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])})}},Ge=t((r)=>{let e=new rb;return e.calculate(r),e},"getThemeVariables"),ib=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=p("#cde498",10),this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.primaryColor),this.lineColor=ht(this.background),this.textColor=ht(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=m(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||H(this.primaryColor,{h:30}),this.cScale4=this.cScale4||H(this.primaryColor,{h:60}),this.cScale5=this.cScale5||H(this.primaryColor,{h:90}),this.cScale6=this.cScale6||H(this.primaryColor,{h:120}),this.cScale7=this.cScale7||H(this.primaryColor,{h:150}),this.cScale8=this.cScale8||H(this.primaryColor,{h:210}),this.cScale9=this.cScale9||H(this.primaryColor,{h:270}),this.cScale10=this.cScale10||H(this.primaryColor,{h:300}),this.cScale11=this.cScale11||H(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||m(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||m(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=m(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||m(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||H(this["cScale"+r],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||H(this.mainBkg,{h:30,s:-30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||H(this.mainBkg,{h:30,s:-30,l:-(8+r*5)});if(this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||p(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||p(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=H(this.primaryColor,{h:64}),this.fillType3=H(this.secondaryColor,{h:64}),this.fillType4=H(this.primaryColor,{h:-64}),this.fillType5=H(this.secondaryColor,{h:-64}),this.fillType6=H(this.primaryColor,{h:128}),this.fillType7=H(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||H(this.primaryColor,{l:-30}),this.pie5=this.pie5||H(this.secondaryColor,{l:-30}),this.pie6=this.pie6||H(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||H(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||H(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||H(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||H(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||H(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||H(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??H(this.primaryColor,{l:-30}),this.venn2=this.venn2??H(this.secondaryColor,{l:-30}),this.venn3=this.venn3??H(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??H(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??H(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??H(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??H(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??H(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||H(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||H(this.primaryColor,{h:-30}),this.git4=this.git4||H(this.primaryColor,{h:-60}),this.git5=this.git5||H(this.primaryColor,{h:-90}),this.git6=this.git6||H(this.primaryColor,{h:60}),this.git7=this.git7||H(this.primaryColor,{h:120}),this.darkMode)this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);else this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ht(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ht(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])})}},ob=t((r)=>{let e=new ib;return e.calculate(r),e},"getThemeVariables"),sb=class{static{t(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=p(this.contrast,55),this.background="#ffffff",this.tertiaryColor=H(this.primaryColor,{h:-160}),this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.lineColor=ht(this.background),this.textColor=ht(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||p(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=p(this.contrast,55),this.border2=this.contrast,this.actorBorder=p(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||ht(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)if(this.darkMode)this["cScalePeer"+r]=this["cScalePeer"+r]||p(this["cScale"+r],10);else this["cScalePeer"+r]=this["cScalePeer"+r]||m(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||H(this.mainBkg,{l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||H(this.mainBkg,{l:-(8+r*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.sectionBkgColor=p(this.contrast,30),this.sectionBkgColor2=p(this.contrast,30),this.taskBorderColor=m(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=p(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=m(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=H(this.primaryColor,{h:64}),this.fillType3=H(this.secondaryColor,{h:64}),this.fillType4=H(this.primaryColor,{h:-64}),this.fillType5=H(this.secondaryColor,{h:-64}),this.fillType6=H(this.primaryColor,{h:128}),this.fillType7=H(this.secondaryColor,{h:128});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["pie"+r]=this["cScale"+r];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let r=0;r<8;r++)this["venn"+(r+1)]=this["venn"+(r+1)]??this["cScale"+r];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||H(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=m(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||H(this.primaryColor,{h:-30}),this.git4=this.pie5||H(this.primaryColor,{h:-60}),this.git5=this.pie6||H(this.primaryColor,{h:-90}),this.git6=this.pie7||H(this.primaryColor,{h:60}),this.git7=this.pie8||H(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])})}},ab=t((r)=>{let e=new sb;return e.calculate(r),e},"getThemeVariables"),nb=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=ue(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||H(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||H(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||m(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||(ce(this.background)?p(this.background,4):m(this.background,4));let r="#ECECFE",e="#E9E9F1",i=H(r,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||p(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||r,this.cScale1=this.cScale1||e,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||H(r,{h:30}),this.cScale4=this.cScale4||H(r,{h:60}),this.cScale5=this.cScale5||H(r,{h:90}),this.cScale6=this.cScale6||H(r,{h:120}),this.cScale7=this.cScale7||H(r,{h:150}),this.cScale8=this.cScale8||H(r,{h:210,l:150}),this.cScale9=this.cScale9||H(r,{h:270}),this.cScale10=this.cScale10||H(r,{h:300}),this.cScale11=this.cScale11||H(r,{h:330}),this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=m(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=m(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||ht(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||p(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||m(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||H(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||H(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||H(r,{h:64}),this.fillType3=this.fillType3||H(e,{h:64}),this.fillType4=this.fillType4||H(r,{h:-64}),this.fillType5=this.fillType5||H(e,{h:-64}),this.fillType6=this.fillType6||H(r,{h:128}),this.fillType7=this.fillType7||H(e,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||e,this.pie3=this.pie3||i,this.pie4=this.pie4||H(r,{l:-10}),this.pie5=this.pie5||H(e,{l:-10}),this.pie6=this.pie6||H(i,{l:-10}),this.pie7=this.pie7||H(r,{h:60,l:-10}),this.pie8=this.pie8||H(r,{h:-60,l:-10}),this.pie9=this.pie9||H(r,{h:120,l:0}),this.pie10=this.pie10||H(r,{h:60,l:-20}),this.pie11=this.pie11||H(r,{h:-60,l:-20}),this.pie12=this.pie12||H(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||H(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||i,this.git3=this.git3||H(r,{h:-30}),this.git4=this.git4||H(r,{h:-60}),this.git5=this.git5||H(r,{h:-90}),this.git6=this.git6||H(r,{h:60}),this.git7=this.git7||H(r,{h:120}),this.darkMode)this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);else this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])})}},lb=t((r)=>{let e=new nb;return e.calculate(r),e},"getThemeVariables"),hb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=p(this.primaryColor,16),this.tertiaryColor=H(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.background),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=p(ht("#323D47"),10),this.border1="#ccc",this.border2=Le(255,255,255,0.25),this.arrowheadColor=ht(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||H(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||H(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?p(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||m(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||p(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||H(this.primaryColor,{h:30}),this.cScale4=this.cScale4||H(this.primaryColor,{h:60}),this.cScale5=this.cScale5||H(this.primaryColor,{h:90}),this.cScale6=this.cScale6||H(this.primaryColor,{h:120}),this.cScale7=this.cScale7||H(this.primaryColor,{h:150}),this.cScale8=this.cScale8||H(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||H(this.primaryColor,{h:270}),this.cScale10=this.cScale10||H(this.primaryColor,{h:300}),this.cScale11=this.cScale11||H(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=m(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=m(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||ht(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||p(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||m(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||H(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||H(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||H(this.primaryColor,{h:64}),this.fillType3=this.fillType3||H(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||H(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||H(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||H(this.primaryColor,{h:128}),this.fillType7=this.fillType7||H(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||H(this.primaryColor,{l:-10}),this.pie5=this.pie5||H(this.secondaryColor,{l:-10}),this.pie6=this.pie6||H(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||H(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||H(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||H(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||H(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||H(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||H(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||H(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode)this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);else this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])})}};var cb=t((r)=>{let e=new hb;return e.calculate(r),e},"getThemeVariables"),ub=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ue("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||H(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||H(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||m(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||(ce(this.background)?p(this.background,4):m(this.background,4));let r="#ECECFE",e="#E9E9F1",i=H(r,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||p(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=this.mainBkg;if(this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=m(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=m(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||ht(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||p(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||m(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||H(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||H(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||H(r,{h:64}),this.fillType3=this.fillType3||H(e,{h:64}),this.fillType4=this.fillType4||H(r,{h:-64}),this.fillType5=this.fillType5||H(e,{h:-64}),this.fillType6=this.fillType6||H(r,{h:128}),this.fillType7=this.fillType7||H(e,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||e,this.pie3=this.pie3||i,this.pie4=this.pie4||H(r,{l:-10}),this.pie5=this.pie5||H(e,{l:-10}),this.pie6=this.pie6||H(i,{l:-10}),this.pie7=this.pie7||H(r,{h:60,l:-10}),this.pie8=this.pie8||H(r,{h:-60,l:-10}),this.pie9=this.pie9||H(r,{h:120,l:0}),this.pie10=this.pie10||H(r,{h:60,l:-20}),this.pie11=this.pie11||H(r,{h:-60,l:-20}),this.pie12=this.pie12||H(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||H(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||i,this.git3=this.git3||H(r,{h:-30}),this.git4=this.git4||H(r,{h:-60}),this.git5=this.git5||H(r,{h:-90}),this.git6=this.git6||H(r,{h:60}),this.git7=this.git7||H(r,{h:120}),this.darkMode)this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);else this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])})}},fb=t((r)=>{let e=new ub;return e.calculate(r),e},"getThemeVariables"),db=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=p(this.primaryColor,16),this.tertiaryColor=H(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.background),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=p(ht("#323D47"),10),this.border1="#ccc",this.border2=Le(255,255,255,0.25),this.arrowheadColor=ht(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||H(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||H(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?p(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||m(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||p(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||H(this.primaryColor,{h:30}),this.cScale4=this.cScale4||H(this.primaryColor,{h:60}),this.cScale5=this.cScale5||H(this.primaryColor,{h:90}),this.cScale6=this.cScale6||H(this.primaryColor,{h:120}),this.cScale7=this.cScale7||H(this.primaryColor,{h:150}),this.cScale8=this.cScale8||H(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||H(this.primaryColor,{h:270}),this.cScale10=this.cScale10||H(this.primaryColor,{h:300}),this.cScale11=this.cScale11||H(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=m(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=m(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||ht(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||p(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||m(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||H(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||H(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||H(this.primaryColor,{h:64}),this.fillType3=this.fillType3||H(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||H(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||H(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||H(this.primaryColor,{h:128}),this.fillType7=this.fillType7||H(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||H(this.primaryColor,{l:-10}),this.pie5=this.pie5||H(this.secondaryColor,{l:-10}),this.pie6=this.pie6||H(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||H(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||H(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||H(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||H(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||H(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||H(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||H(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||H(this.primaryColor,{h:-30}),this.git4=this.git4||H(this.primaryColor,{h:-60}),this.git5=this.git5||H(this.primaryColor,{h:-90}),this.git6=this.git6||H(this.primaryColor,{h:60}),this.git7=this.git7||H(this.primaryColor,{h:120}),this.darkMode)this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);else this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])})}},pb=t((r)=>{let e=new db;return e.calculate(r),e},"getThemeVariables"),gb=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ue("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.usecaseActorBorder="#A78BFA",this.usecaseActorBkg="#F5F3FF",this.usecaseBorder="#2DD4BF",this.usecaseBkg="#F0FDFA",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseBoundaryBkg="#FAFAFC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||H(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||H(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||m(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||(ce(this.background)?p(this.background,4):m(this.background,4));let r="#ECECFE",e="#E9E9F1",i=H(r,{h:180,l:5});this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||p(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#FFFFFF",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#F9F9FB",this.compositeTitleBackground=this.compositeTitleBackground||"#F9F9FB",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||"white";for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||ht(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||p(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||m(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||H(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||H(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});this.classText=this.classText||this.textColor;for(let o=0;o<8;o++)this["fillType"+o]=this["fillType"+o]||this.bkgColorArray[o];for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["pie"+(o+1)]=this["pie"+(o+1)]||this["cScale"+o];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let o=0;o<8;o++)this["venn"+(o+1)]=this["venn"+(o+1)]??this.borderColorArray[o%this.borderColorArray.length];if(this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||H(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||i,this.git3=this.git3||H(r,{h:-30}),this.git4=this.git4||H(r,{h:-60}),this.git5=this.git5||H(r,{h:-90}),this.git6=this.git6||H(r,{h:60}),this.git7=this.git7||H(r,{h:120}),this.darkMode)this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);else this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])})}},mb=t((r)=>{let e=new gb;return e.calculate(r),e},"getThemeVariables"),yb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=p(this.primaryColor,16),this.tertiaryColor=H(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.background),this.secondaryBorderColor=ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ue(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=p(ht("#323D47"),10),this.border1="#ccc",this.border2=Le(255,255,255,0.25),this.arrowheadColor=ht(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.usecaseActorBorder="#A78BFA",this.usecaseBorder="#2DD4BF",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||H(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||H(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ue(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ue(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ue(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ue(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?p(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||m(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||p(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#16141F",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||"#16141F",this.altBackground=this.altBackground||"#16141F",this.compositeTitleBackground=this.compositeTitleBackground||"#16141F",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleInv"+i]=this["cScaleInv"+i]||ht(this["cScale"+i]);for(let i=0;i<this.THEME_COLOR_LIMIT;i++)if(this.darkMode)this["cScalePeer"+i]=this["cScalePeer"+i]||p(this["cScale"+i],10);else this["cScalePeer"+i]=this["cScalePeer"+i]||m(this["cScale"+i],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleLabel"+i]=m(this["cScale"+i],75);let r=this.darkMode?-4:-1;for(let i=0;i<5;i++)this["surface"+i]=this["surface"+i]||H(this.mainBkg,{h:180,s:-15,l:r*(5+i*3)}),this["surfacePeer"+i]=this["surfacePeer"+i]||H(this.mainBkg,{h:180,s:-15,l:r*(8+i*3)});this.classText=this.classText||this.textColor,["#701a75","#134e4a","#7c2d12","#581c87","#14532d","#4c1d95","#7f1d1d","#713f12"].forEach((i,s)=>{this["fillType"+s]=this["fillType"+s]||i});for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["pie"+(i+1)]=this["pie"+(i+1)]||this["cScale"+i];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||"#28253D",this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let i=0;i<8;i++)this["venn"+(i+1)]=this["venn"+(i+1)]??this.borderColorArray[i%this.borderColorArray.length];if(this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||H(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||H(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||H(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||H(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||H(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||H(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ce(this.quadrant1Fill)?p(this.quadrant1Fill):m(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?m(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||H(this.primaryColor,{h:-30}),this.git4=this.git4||H(this.primaryColor,{h:-60}),this.git5=this.git5||H(this.primaryColor,{h:-90}),this.git6=this.git6||H(this.primaryColor,{h:60}),this.git7=this.git7||H(this.primaryColor,{h:120}),this.darkMode)this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);else this.git0=m(this.git0,25),this.git1=m(this.git1,25),this.git2=m(this.git2,25),this.git3=m(this.git3,25),this.git4=m(this.git4,25),this.git5=m(this.git5,25),this.git6=m(this.git6,25),this.git7=m(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((i)=>{this[i]=r[i]}),this.updateColors(),e.forEach((i)=>{this[i]=$r(this[i],r[i])})}},xb=t((r)=>{let e=new yb;return e.calculate(r),e},"getThemeVariables"),Yn={base:{getThemeVariables:JC},dark:{getThemeVariables:eb},default:{getThemeVariables:Ge},forest:{getThemeVariables:ob},neutral:{getThemeVariables:ab},neo:{getThemeVariables:lb},"neo-dark":{getThemeVariables:cb},redux:{getThemeVariables:fb},"redux-dark":{getThemeVariables:pb},"redux-color":{getThemeVariables:mb},"redux-dark-color":{getThemeVariables:xb}},Ne={flowchart:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,wrappingWidth:120,minNodeWidth:120,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"swimlane",lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:"redux-color",look:"neo",hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"elk",wrappingWidth:120,minNodeWidth:120,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5},er:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:0.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:"redux-color",look:"neo",rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,colorBy:"branch",padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,bitOrder:"ascending",paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:0.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:0.17},usecase:{useMaxWidth:!0,theme:"redux-color",look:"neo",wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:"normal",usecaseFontSize:12,usecaseFontFamily:'"Open Sans", sans-serif',usecaseFontWeight:"normal",nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:"role"},venn:{useMaxWidth:!0,theme:"redux-color",look:"neo",width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"elk",maxTextSize:50000,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},fp={...Ne,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:"default",nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1,orientFeedbackEdges:!0},themeCSS:void 0,themeVariables:Yn.default.getThemeVariables(),sequence:{...Ne.sequence,messageFont:t(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:t(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:t(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{theme:Ne.class?.theme,look:Ne.class?.look,layout:Ne.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Ne.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ne.c4,useWidth:void 0,personFont:t(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Ne.flowchart,inheritDir:!1},external_personFont:t(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:t(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:t(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:t(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:t(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:t(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:t(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:t(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:t(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:t(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:t(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:t(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:t(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:t(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:t(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:t(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:t(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:t(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:t(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:t(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:t(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Ne.pie,useWidth:984},xyChart:{...Ne.xyChart,useWidth:void 0},requirement:{...Ne.requirement,useWidth:void 0},packet:{...Ne.packet},eventmodeling:{...Ne.eventmodeling},treeView:{...Ne.treeView,useWidth:void 0},radar:{...Ne.radar},usecase:{...Ne.usecase},railroad:{...Ne.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...Ne.ishikawa},sankey:{...Ne.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Ne.venn},cynefin:{...Ne.cynefin}},dp=t((r,e="")=>Object.keys(r).reduce((i,s)=>{if(Array.isArray(r[s]))return i;else if(typeof r[s]==="object"&&r[s]!==null)return[...i,e+s,...dp(r[s],"")];return[...i,e+s]},[]),"keyify"),Cb=new Set(dp(fp,"")),B=fp,bb={"flowchart-v2":"flowchart","flowchart-elk":"flowchart",classDiagram:"class",stateDiagram:"state",xychart:"xyChart",railroadAbnf:"railroad",railroadEbnf:"railroad",railroadPeg:"railroad"},kb=t((r)=>bb[r]??r,"getDiagramConfigKey"),wb={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Sb=t((r,e)=>{for(let i of Object.keys(r)){let s=r[i];if(i.startsWith("__")||i.includes("proto")||i.includes("constr")||typeof s!=="string"||!e.test(s))a.debug("sanitize deleting dictionary entry:",i,s),delete r[i]}},"sanitizeDictionaryConfig"),Ks=t((r)=>{if(a.debug("sanitizeDirective called with",r),typeof r!=="object"||r==null)return;if(Array.isArray(r)){r.forEach((e)=>Ks(e));return}for(let e of Object.keys(r)){if(a.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Cb.has(e)||r[e]==null){a.debug("sanitize deleting key: ",e),delete r[e];continue}if(typeof r[e]==="object"){let s=wb[e];if(s)Sb(r[e],s);else a.debug("sanitizing object",e),Ks(r[e]);continue}let i=["themeCSS","fontFamily","altFontFamily"];for(let s of i)if(e.includes(s))a.debug("sanitizing css option",e),r[e]=As(r[e])}if(r.themeVariables)for(let e of Object.keys(r.themeVariables)){let i=r.themeVariables[e];if(i?.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/))r.themeVariables[e]=""}a.debug("After sanitization",r)},"sanitizeDirective"),As=t((r)=>{let e=0,i=0;for(let s of r){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";if(s==="{")e++;else if(s==="}")i++}if(e!==i)return"{ /* ERROR: Unbalanced CSS */ }";return r},"sanitizeCss"),ir=Object.freeze(B),Tb=["theme","look","layout"],_b=new Set(["classic","handDrawn","neo"]),Bb=t((r,e)=>{if(r==="theme")return e==="null"||Object.hasOwn(Yn,e);return r!=="look"||_b.has(e)},"isUsableAppearance"),vb=t((r,e,i)=>{if(!r)return;return[r[e]?.[i],r[i]].find((o)=>o!==void 0&&Bb(i,o))},"readAppearance"),sn=t((r)=>r===!1||["false","null","0"].includes(String(r).trim().toLowerCase())?!1:!0,"evaluate"),fr=Ce({},ir),En,On={},Li=[],Xs=Ce({},ir),Vs,Lb=t((r,e)=>{if(!Vs)return;let i=[e,...[...Li].reverse(),On,ir],s=r[Vs];for(let o of Tb)for(let n of i){let h=vb(n,Vs,o);if(h===void 0)continue;if(r[o]=h,s?.[o]!==void 0)s[o]=h;break}},"resolveAppearance"),Ko=t((r,e)=>{let i=Ce({},r),s={};for(let n of e)pp(n),s=Ce(s,n);if(i=Ce(i,s),Lb(i,s),(Boolean(s.theme)||i.theme!==r.theme)&&i.theme&&Object.hasOwn(Yn,i.theme)){let n=Ce({},En),h=Ce(n.themeVariables||{},s.themeVariables);i.themeVariables=Yn[i.theme].getThemeVariables(h)}return Xs=i,Ab(Xs),Xs},"updateCurrentConfig"),co=t((r)=>{Vs=r===void 0?void 0:kb(r),Ko(fr,Li)},"setDiagramConfigScope"),tl=t((r)=>{if(fr=Ce({},ir),fr=Ce(fr,r),On=Ce({},r),r.theme&&Object.hasOwn(Yn,r.theme))fr.themeVariables=Yn[r.theme].getThemeVariables(r.themeVariables);return Ko(fr,Li),fr},"setSiteConfig"),nl=t((r)=>{En=Ce({},r)},"saveConfigFromInitialize"),rl=t((r)=>(fr=Ce(fr,r),On=Ce(On,r),Ko(fr,Li),fr),"updateSiteConfig"),Rs=t(()=>Ce({},fr),"getSiteConfig"),Ls=t((r)=>(Ko(Xs,[r]),S()),"setConfig"),S=t(()=>Ce({},Xs),"getConfig"),pp=t((r)=>{if(!r)return;["secure",...fr.secure??[]].forEach((e)=>{if(Object.hasOwn(r,e))a.debug(`Denied attempt to modify a secure key ${e}`,r[e]),delete r[e]}),Object.keys(r).forEach((e)=>{if(e.startsWith("__"))delete r[e]}),Object.keys(r).forEach((e)=>{if(typeof r[e]==="string"&&(r[e].includes("<")||r[e].includes(">")||r[e].includes("url(data:")))delete r[e];if(typeof r[e]==="object")pp(r[e])})},"sanitize"),al=t((r)=>{if(Ks(r),r.fontFamily&&!r.themeVariables?.fontFamily)r.themeVariables={...r.themeVariables,fontFamily:r.fontFamily};Li.push(r),Ko(fr,Li)},"addDirective"),gi=t((r=fr)=>{Li=[],Vs=void 0,Ko(r,Li)},"reset"),Fb={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},np={},gp=t((r)=>{if(np[r])return;a.warn(Fb[r]),np[r]=!0},"issueWarning"),Ab=t((r)=>{if(!r)return;if(r.lazyLoadedDiagrams||r.loadExternalDiagramsAtStartup)gp("LAZY_LOAD_DEPRECATED")},"checkConfig"),il=t(()=>{let r={};if(En)r=Ce(r,En);for(let e of Li)r=Ce(r,e);return r},"getUserDefinedConfig"),He=t((r)=>{if(r.flowchart?.htmlLabels!=null)gp("FLOWCHART_HTML_LABELS_DEPRECATED");return sn(r.htmlLabels??r.flowchart?.htmlLabels??!0)},"getEffectiveHtmlLabels"),Zr=/<\/?br\s*\/?>/gi,Mb=new RegExp(Zr.source,"i"),Eb=t((r)=>{if(!r)return[""];return xp(r).replace(/\\n/g,"#br#").split("#br#")},"getRows"),Ob=(()=>{let r=!1;return()=>{if(!r)mp(),r=!0}})();function mp(){nt.addHook("beforeSanitizeAttributes",(e)=>{if(e.tagName==="A"&&e.hasAttribute("target"))e.setAttribute("data-temp-href-target",e.getAttribute("target")??"")}),nt.addHook("afterSanitizeAttributes",(e)=>{if(e.tagName==="A"&&e.hasAttribute("data-temp-href-target")){if(e.setAttribute("target",e.getAttribute("data-temp-href-target")??""),e.removeAttribute("data-temp-href-target"),e.getAttribute("target")==="_blank")e.setAttribute("rel","noopener")}})}t(mp,"setupDompurifyHooks");var yp=t((r)=>(Ob(),nt.sanitize(r)),"removeScript"),lp=t((r,e)=>{if(He(e)){let i=e.securityLevel;if(i==="antiscript"||i==="strict"||i==="sandbox")r=yp(r);else if(i!=="loose")r=xp(r),r=r.replace(/</g,"<").replace(/>/g,">"),r=r.replace(/=/g,"="),r=Pb(r)}return r},"sanitizeMore"),U=t((r,e)=>{if(!r)return r;if(e.dompurifyConfig)r=nt.sanitize(lp(r,e),e.dompurifyConfig).toString();else r=nt.sanitize(lp(r,e),{FORBID_TAGS:["style"]}).toString();return r},"sanitizeText"),Ib=t((r,e)=>{if(typeof r==="string")return U(r,e);return r.flat().map((i)=>U(i,e))},"sanitizeTextOrArray"),$b=t((r)=>Mb.test(r),"hasBreaks"),Db=t((r)=>r.split(Zr),"splitBreaks"),Pb=t((r)=>r.replace(/#br#/g,"<br/>"),"placeholderToBreak"),xp=t((r)=>r.replace(Zr,"#br#"),"breakToPlaceholder"),Is=t((r)=>{let e="";if(r)e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e);return e},"getUrl"),Rb=t(function(...r){let e=r.filter((i)=>!isNaN(i));return Math.max(...e)},"getMax"),qb=t(function(...r){let e=r.filter((i)=>!isNaN(i));return Math.min(...e)},"getMin"),Zn=t(function(r){let e=r.split(/(,)/),i=[];for(let s=0;s<e.length;s++){let o=e[s];if(o===","&&s>0&&s+1<e.length){let n=e[s-1],h=e[s+1];if(Nb(n,h))o=n+","+h,s++,i.pop()}i.push(Wb(o))}return i.join("")},"parseGenericTypes"),Rh=t((r,e)=>Math.max(0,r.split(e).length-1),"countOccurrence"),Nb=t((r,e)=>{let i=Rh(r,"~"),s=Rh(e,"~");return i===1&&s===1},"shouldCombineSets"),Wb=t((r)=>{let e=Rh(r,"~"),i=!1;if(e<=1)return r;if(e%2!==0&&r.startsWith("~"))r=r.substring(1),i=!0;let s=[...r],o=s.indexOf("~"),n=s.lastIndexOf("~");while(o!==-1&&n!==-1&&o!==n)s[o]="<",s[n]=">",o=s.indexOf("~"),n=s.lastIndexOf("~");if(i)s.unshift("~");return s.join("")},"processSet"),hp=t(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Ln=/\$\$(.*?)\$\$/g,Me=t((r)=>(r.match(Ln)?.length??0)>0,"hasKatex"),Fa=t(async(r,e)=>{let i=document.createElement("div");i.innerHTML=await za(r,e),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",i);let o={width:i.clientWidth,height:i.clientHeight};return i.remove(),o},"calculateMathMLDimensions"),zb=t(async(r,e)=>{if(!Me(r))return r;if(!(hp()||e.legacyMathML||e.forceLegacyMathML))return r.replace(Ln,"MathML is unsupported in this environment.");{let{default:i}=await (C("nj0cv1cq"),import("./chunk-nj0cv1cq.js")),s=e.forceLegacyMathML||!hp()&&e.legacyMathML?"htmlAndMathml":"mathml";return r.split(Zr).map((o)=>Me(o)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${o}</div>`:`<div>${o}</div>`).join("").replace(Ln,(o,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:s}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}return r.replace(Ln,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),za=t(async(r,e)=>U(await zb(r,e),e),"renderKatexSanitized"),k={getRows:Eb,sanitizeText:U,sanitizeTextOrArray:Ib,hasBreaks:$b,splitBreaks:Db,lineBreakRegex:Zr,removeScript:yp,getUrl:Is,evaluate:sn,getMax:Rb,getMin:qb},Hb=t(function(r,e){for(let i of e)r.attr(i[0],i[1])},"d3Attrs"),Yb=t(function(r,e,i){let s=new Map;if(i)s.set("width","100%"),s.set("style",`max-width: ${e}px;`);else s.set("height",r),s.set("width",e);return s},"calculateSvgSizeAttrs"),G=t(function(r,e,i,s){let o=Yb(e,i,s);Hb(r,o)},"configureSvgSize"),ln=t(function(r,e,i,s){let o=e.node().getBBox(),{width:n,height:h}=o;a.info(`SVG bounds: ${n}x${h}`,o);let l=0,d=0;a.info(`Graph bounds: ${l}x${d}`,r),l=n+i*2,d=h+i*2,a.info(`Calculated bounds: ${l}x${d}`),G(e,d,l,s);let y=`${o.x-i} ${o.y-i} ${o.width+2*i} ${o.height+2*i}`;e.attr("viewBox",y)},"setupGraphViewbox"),Fn={};function uo(r){return[...r.cssRules].map((e)=>e.cssText).join(`
|
|
7
|
+
`)}t(uo,"cssStyleSheetToString");var Ub=t((r,e,i,s)=>{let o="";if(r in Fn&&Fn[r])o=Fn[r]({...i,svgId:s});else a.warn(`No theme found for ${r}`);return`& {
|
|
8
|
+
font-family: ${i.fontFamily};
|
|
9
|
+
font-size: ${i.fontSize};
|
|
10
|
+
fill: ${i.textColor}
|
|
11
|
+
}
|
|
12
|
+
@keyframes edge-animation-frame {
|
|
13
|
+
from {
|
|
14
|
+
stroke-dashoffset: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@keyframes dash {
|
|
18
|
+
to {
|
|
19
|
+
stroke-dashoffset: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
& .edge-animation-slow {
|
|
23
|
+
stroke-dasharray: 9,5 !important;
|
|
24
|
+
stroke-dashoffset: 900;
|
|
25
|
+
animation: dash 50s linear infinite;
|
|
26
|
+
stroke-linecap: round;
|
|
27
|
+
}
|
|
28
|
+
& .edge-animation-fast {
|
|
29
|
+
stroke-dasharray: 9,5 !important;
|
|
30
|
+
stroke-dashoffset: 900;
|
|
31
|
+
animation: dash 20s linear infinite;
|
|
32
|
+
stroke-linecap: round;
|
|
33
|
+
}
|
|
34
|
+
/* Classes common for multiple diagrams */
|
|
35
|
+
|
|
36
|
+
& .error-icon {
|
|
37
|
+
fill: ${i.errorBkgColor};
|
|
38
|
+
}
|
|
39
|
+
& .error-text {
|
|
40
|
+
fill: ${i.errorTextColor};
|
|
41
|
+
stroke: ${i.errorTextColor};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
& .edge-thickness-normal {
|
|
45
|
+
stroke-width: ${i.strokeWidth??1}px;
|
|
46
|
+
}
|
|
47
|
+
& .edge-thickness-thick {
|
|
48
|
+
stroke-width: 3.5px
|
|
49
|
+
}
|
|
50
|
+
& .edge-pattern-solid {
|
|
51
|
+
stroke-dasharray: 0;
|
|
52
|
+
}
|
|
53
|
+
& .edge-thickness-invisible {
|
|
54
|
+
stroke-width: 0;
|
|
55
|
+
fill: none;
|
|
56
|
+
}
|
|
57
|
+
& .edge-pattern-dashed{
|
|
58
|
+
stroke-dasharray: 3;
|
|
59
|
+
}
|
|
60
|
+
.edge-pattern-dotted {
|
|
61
|
+
stroke-dasharray: 2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& .marker {
|
|
65
|
+
fill: ${i.lineColor};
|
|
66
|
+
stroke: ${i.lineColor};
|
|
67
|
+
}
|
|
68
|
+
& .marker.cross {
|
|
69
|
+
stroke: ${i.lineColor};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
& svg {
|
|
73
|
+
font-family: ${i.fontFamily};
|
|
74
|
+
font-size: ${i.fontSize};
|
|
75
|
+
}
|
|
76
|
+
& p {
|
|
77
|
+
margin: 0
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
${o}
|
|
81
|
+
.node .neo-node {
|
|
82
|
+
stroke: ${i.nodeBorder};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
86
|
+
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
87
|
+
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
88
|
+
}
|
|
89
|
+
[data-look="neo"].swimlane.cluster rect {
|
|
90
|
+
filter: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
[data-look="neo"].node path {
|
|
95
|
+
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
96
|
+
stroke-width: ${i.strokeWidth??1}px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-look="neo"].node .outer-path {
|
|
100
|
+
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-look="neo"].node .neo-line path {
|
|
104
|
+
stroke: ${i.nodeBorder};
|
|
105
|
+
filter: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-look="neo"].node circle{
|
|
109
|
+
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
110
|
+
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[data-look="neo"].node circle .state-start{
|
|
114
|
+
fill: #000000;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[data-look="neo"].icon-shape .icon {
|
|
118
|
+
fill: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
119
|
+
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
123
|
+
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
124
|
+
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
${e}
|
|
128
|
+
`},"getStyles"),jb=t((r,e)=>{if(e!==void 0)Fn[r]=e},"addStylesForDiagram"),ol=Ub,po={};Hn(po,{clear:()=>A,getAccDescription:()=>D,getAccTitle:()=>I,getDiagramTitle:()=>N,setAccDescription:()=>L,setAccTitle:()=>R,setDiagramTitle:()=>P});var qh="",Nh="",Wh="",zh=t((r)=>U(r,S()),"sanitizeText"),A=t(()=>{qh="",Wh="",Nh=""},"clear"),R=t((r)=>{qh=zh(r).replace(/^\s+/g,"")},"setAccTitle"),I=t(()=>qh,"getAccTitle"),L=t((r)=>{Wh=zh(r).replace(/\n\s+/g,`
|
|
129
|
+
`)},"setAccDescription"),D=t(()=>Wh,"getAccDescription"),P=t((r)=>{Nh=zh(r)},"setDiagramTitle"),N=t(()=>Nh,"getDiagramTitle"),cp=a,Gb=hi,u=S,or=Ls,Lr=ir,$n=t((r)=>U(r,u()),"sanitizeText"),Ua=ln,Xb=t(()=>po,"getCommonDb"),In={},yi=t((r,e,i)=>{if(In[r])cp.warn(`Diagram with id ${r} already registered. Overwriting.`);if(In[r]=e,i)up(r,i);jb(r,e.styles),e.injectUtils?.(cp,Gb,u,$n,Ua,Xb(),()=>{})},"registerDiagram"),mo=t((r)=>{if(r in In)return In[r];throw new Vb(r)},"getDiagram"),Vb=class extends Error{static{t(this,"DiagramNotFoundError")}constructor(r){super(`Diagram ${r} not found.`)}};var Kb={value:()=>{}};function bp(){for(var r=0,e=arguments.length,i={},s;r<e;++r){if(!(s=arguments[r]+"")||s in i||/[\s.]/.test(s))throw Error("illegal type: "+s);i[s]=[]}return new Dn(i)}function Dn(r){this._=r}function Zb(r,e){return r.trim().split(/^|\s+/).map(function(i){var s="",o=i.indexOf(".");if(o>=0)s=i.slice(o+1),i=i.slice(0,o);if(i&&!e.hasOwnProperty(i))throw Error("unknown type: "+i);return{type:i,name:s}})}Dn.prototype=bp.prototype={constructor:Dn,on:function(r,e){var i=this._,s=Zb(r+"",i),o,n=-1,h=s.length;if(arguments.length<2){while(++n<h)if((o=(r=s[n]).type)&&(o=Qb(i[o],r.name)))return o;return}if(e!=null&&typeof e!=="function")throw Error("invalid callback: "+e);while(++n<h)if(o=(r=s[n]).type)i[o]=Cp(i[o],r.name,e);else if(e==null)for(o in i)i[o]=Cp(i[o],r.name,null);return this},copy:function(){var r={},e=this._;for(var i in e)r[i]=e[i].slice();return new Dn(r)},call:function(r,e){if((o=arguments.length-2)>0)for(var i=Array(o),s=0,o,n;s<o;++s)i[s]=arguments[s+2];if(!this._.hasOwnProperty(r))throw Error("unknown type: "+r);for(n=this._[r],s=0,o=n.length;s<o;++s)n[s].value.apply(e,i)},apply:function(r,e,i){if(!this._.hasOwnProperty(r))throw Error("unknown type: "+r);for(var s=this._[r],o=0,n=s.length;o<n;++o)s[o].value.apply(e,i)}};function Qb(r,e){for(var i=0,s=r.length,o;i<s;++i)if((o=r[i]).name===e)return o.value}function Cp(r,e,i){for(var s=0,o=r.length;s<o;++s)if(r[s].name===e){r[s]=Kb,r=r.slice(0,s).concat(r.slice(s+1));break}if(i!=null)r.push({name:e,value:i});return r}var Hh=bp;var Rn="http://www.w3.org/1999/xhtml",Yh={svg:"http://www.w3.org/2000/svg",xhtml:Rn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ti(r){var e=r+="",i=e.indexOf(":");if(i>=0&&(e=r.slice(0,i))!=="xmlns")r=r.slice(i+1);return Yh.hasOwnProperty(e)?{space:Yh[e],local:r}:r}function Jb(r){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Rn&&e.documentElement.namespaceURI===Rn?e.createElement(r):e.createElementNS(i,r)}}function tk(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function Zs(r){var e=ti(r);return(e.local?tk:Jb)(e)}function ek(){}function Yi(r){return r==null?ek:function(){return this.querySelector(r)}}function Uh(r){if(typeof r!=="function")r=Yi(r);for(var e=this._groups,i=e.length,s=Array(i),o=0;o<i;++o)for(var n=e[o],h=n.length,l=s[o]=Array(h),d,y,c=0;c<h;++c)if((d=n[c])&&(y=r.call(d,d.__data__,c,n))){if("__data__"in d)y.__data__=d.__data__;l[c]=y}return new Pe(s,this._parents)}function jh(r){return r==null?[]:Array.isArray(r)?r:Array.from(r)}function rk(){return[]}function Zo(r){return r==null?rk:function(){return this.querySelectorAll(r)}}function ik(r){return function(){return jh(r.apply(this,arguments))}}function Gh(r){if(typeof r==="function")r=ik(r);else r=Zo(r);for(var e=this._groups,i=e.length,s=[],o=[],n=0;n<i;++n)for(var h=e[n],l=h.length,d,y=0;y<l;++y)if(d=h[y])s.push(r.call(d,d.__data__,y,h)),o.push(d);return new Pe(s,o)}function Qo(r){return function(){return this.matches(r)}}function qn(r){return function(e){return e.matches(r)}}var ok=Array.prototype.find;function sk(r){return function(){return ok.call(this.children,r)}}function ak(){return this.firstElementChild}function Xh(r){return this.select(r==null?ak:sk(typeof r==="function"?r:qn(r)))}var nk=Array.prototype.filter;function lk(){return Array.from(this.children)}function hk(r){return function(){return nk.call(this.children,r)}}function Vh(r){return this.selectAll(r==null?lk:hk(typeof r==="function"?r:qn(r)))}function Kh(r){if(typeof r!=="function")r=Qo(r);for(var e=this._groups,i=e.length,s=Array(i),o=0;o<i;++o)for(var n=e[o],h=n.length,l=s[o]=[],d,y=0;y<h;++y)if((d=n[y])&&r.call(d,d.__data__,y,n))l.push(d);return new Pe(s,this._parents)}function Qs(r){return Array(r.length)}function Zh(){return new Pe(this._enter||this._groups.map(Qs),this._parents)}function Js(r,e){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=e}Js.prototype={constructor:Js,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function Qh(r){return function(){return r}}function ck(r,e,i,s,o,n){var h=0,l,d=e.length,y=n.length;for(;h<y;++h)if(l=e[h])l.__data__=n[h],s[h]=l;else i[h]=new Js(r,n[h]);for(;h<d;++h)if(l=e[h])o[h]=l}function uk(r,e,i,s,o,n,h){var l,d,y=new Map,c=e.length,x=n.length,b=Array(c),_;for(l=0;l<c;++l)if(d=e[l])if(b[l]=_=h.call(d,d.__data__,l,e)+"",y.has(_))o[l]=d;else y.set(_,d);for(l=0;l<x;++l)if(_=h.call(r,n[l],l,n)+"",d=y.get(_))s[l]=d,d.__data__=n[l],y.delete(_);else i[l]=new Js(r,n[l]);for(l=0;l<c;++l)if((d=e[l])&&y.get(b[l])===d)o[l]=d}function fk(r){return r.__data__}function Jh(r,e){if(!arguments.length)return Array.from(this,fk);var i=e?uk:ck,s=this._parents,o=this._groups;if(typeof r!=="function")r=Qh(r);for(var n=o.length,h=Array(n),l=Array(n),d=Array(n),y=0;y<n;++y){var c=s[y],x=o[y],b=x.length,_=dk(r.call(c,c&&c.__data__,y,s)),v=_.length,M=l[y]=Array(v),q=h[y]=Array(v),W=d[y]=Array(b);i(c,x,M,q,W,_,e);for(var j=0,K=0,J,tt;j<v;++j)if(J=M[j]){if(j>=K)K=j+1;while(!(tt=q[K])&&++K<v);J._next=tt||null}}return h=new Pe(h,s),h._enter=l,h._exit=d,h}function dk(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function tc(){return new Pe(this._exit||this._groups.map(Qs),this._parents)}function ec(r,e,i){var s=this.enter(),o=this,n=this.exit();if(typeof r==="function"){if(s=r(s),s)s=s.selection()}else s=s.append(r+"");if(e!=null){if(o=e(o),o)o=o.selection()}if(i==null)n.remove();else i(n);return s&&o?s.merge(o).order():o}function rc(r){var e=r.selection?r.selection():r;for(var i=this._groups,s=e._groups,o=i.length,n=s.length,h=Math.min(o,n),l=Array(o),d=0;d<h;++d)for(var y=i[d],c=s[d],x=y.length,b=l[d]=Array(x),_,v=0;v<x;++v)if(_=y[v]||c[v])b[v]=_;for(;d<o;++d)l[d]=i[d];return new Pe(l,this._parents)}function ic(){for(var r=this._groups,e=-1,i=r.length;++e<i;)for(var s=r[e],o=s.length-1,n=s[o],h;--o>=0;)if(h=s[o]){if(n&&h.compareDocumentPosition(n)^4)n.parentNode.insertBefore(h,n);n=h}return this}function oc(r){if(!r)r=pk;function e(x,b){return x&&b?r(x.__data__,b.__data__):!x-!b}for(var i=this._groups,s=i.length,o=Array(s),n=0;n<s;++n){for(var h=i[n],l=h.length,d=o[n]=Array(l),y,c=0;c<l;++c)if(y=h[c])d[c]=y;d.sort(e)}return new Pe(o,this._parents).order()}function pk(r,e){return r<e?-1:r>e?1:r>=e?0:NaN}function sc(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function ac(){return Array.from(this)}function nc(){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var s=r[e],o=0,n=s.length;o<n;++o){var h=s[o];if(h)return h}return null}function lc(){let r=0;for(let e of this)++r;return r}function hc(){return!this.node()}function cc(r){for(var e=this._groups,i=0,s=e.length;i<s;++i)for(var o=e[i],n=0,h=o.length,l;n<h;++n)if(l=o[n])r.call(l,l.__data__,n,o);return this}function gk(r){return function(){this.removeAttribute(r)}}function mk(r){return function(){this.removeAttributeNS(r.space,r.local)}}function yk(r,e){return function(){this.setAttribute(r,e)}}function xk(r,e){return function(){this.setAttributeNS(r.space,r.local,e)}}function Ck(r,e){return function(){var i=e.apply(this,arguments);if(i==null)this.removeAttribute(r);else this.setAttribute(r,i)}}function bk(r,e){return function(){var i=e.apply(this,arguments);if(i==null)this.removeAttributeNS(r.space,r.local);else this.setAttributeNS(r.space,r.local,i)}}function uc(r,e){var i=ti(r);if(arguments.length<2){var s=this.node();return i.local?s.getAttributeNS(i.space,i.local):s.getAttribute(i)}return this.each((e==null?i.local?mk:gk:typeof e==="function"?i.local?bk:Ck:i.local?xk:yk)(i,e))}function oa(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function kk(r){return function(){this.style.removeProperty(r)}}function wk(r,e,i){return function(){this.style.setProperty(r,e,i)}}function Sk(r,e,i){return function(){var s=e.apply(this,arguments);if(s==null)this.style.removeProperty(r);else this.style.setProperty(r,s,i)}}function fc(r,e,i){return arguments.length>1?this.each((e==null?kk:typeof e==="function"?Sk:wk)(r,e,i==null?"":i)):Ui(this.node(),r)}function Ui(r,e){return r.style.getPropertyValue(e)||oa(r).getComputedStyle(r,null).getPropertyValue(e)}function Tk(r){return function(){delete this[r]}}function _k(r,e){return function(){this[r]=e}}function Bk(r,e){return function(){var i=e.apply(this,arguments);if(i==null)delete this[r];else this[r]=i}}function dc(r,e){return arguments.length>1?this.each((e==null?Tk:typeof e==="function"?Bk:_k)(r,e)):this.node()[r]}function kp(r){return r.trim().split(/^|\s+/)}function pc(r){return r.classList||new wp(r)}function wp(r){this._node=r,this._names=kp(r.getAttribute("class")||"")}wp.prototype={add:function(r){var e=this._names.indexOf(r);if(e<0)this._names.push(r),this._node.setAttribute("class",this._names.join(" "))},remove:function(r){var e=this._names.indexOf(r);if(e>=0)this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(r){return this._names.indexOf(r)>=0}};function Sp(r,e){var i=pc(r),s=-1,o=e.length;while(++s<o)i.add(e[s])}function Tp(r,e){var i=pc(r),s=-1,o=e.length;while(++s<o)i.remove(e[s])}function vk(r){return function(){Sp(this,r)}}function Lk(r){return function(){Tp(this,r)}}function Fk(r,e){return function(){(e.apply(this,arguments)?Sp:Tp)(this,r)}}function gc(r,e){var i=kp(r+"");if(arguments.length<2){var s=pc(this.node()),o=-1,n=i.length;while(++o<n)if(!s.contains(i[o]))return!1;return!0}return this.each((typeof e==="function"?Fk:e?vk:Lk)(i,e))}function Ak(){this.textContent=""}function Mk(r){return function(){this.textContent=r}}function Ek(r){return function(){var e=r.apply(this,arguments);this.textContent=e==null?"":e}}function mc(r){return arguments.length?this.each(r==null?Ak:(typeof r==="function"?Ek:Mk)(r)):this.node().textContent}function Ok(){this.innerHTML=""}function Ik(r){return function(){this.innerHTML=r}}function $k(r){return function(){var e=r.apply(this,arguments);this.innerHTML=e==null?"":e}}function yc(r){return arguments.length?this.each(r==null?Ok:(typeof r==="function"?$k:Ik)(r)):this.node().innerHTML}function Dk(){if(this.nextSibling)this.parentNode.appendChild(this)}function xc(){return this.each(Dk)}function Pk(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Cc(){return this.each(Pk)}function bc(r){var e=typeof r==="function"?r:Zs(r);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Rk(){return null}function kc(r,e){var i=typeof r==="function"?r:Zs(r),s=e==null?Rk:typeof e==="function"?e:Yi(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),s.apply(this,arguments)||null)})}function qk(){var r=this.parentNode;if(r)r.removeChild(this)}function wc(){return this.each(qk)}function Nk(){var r=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(r,this.nextSibling):r}function Wk(){var r=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(r,this.nextSibling):r}function Sc(r){return this.select(r?Wk:Nk)}function Tc(r){return arguments.length?this.property("__data__",r):this.node().__data__}function zk(r){return function(e){r.call(this,e,this.__data__)}}function Hk(r){return r.trim().split(/^|\s+/).map(function(e){var i="",s=e.indexOf(".");if(s>=0)i=e.slice(s+1),e=e.slice(0,s);return{type:e,name:i}})}function Yk(r){return function(){var e=this.__on;if(!e)return;for(var i=0,s=-1,o=e.length,n;i<o;++i)if(n=e[i],(!r.type||n.type===r.type)&&n.name===r.name)this.removeEventListener(n.type,n.listener,n.options);else e[++s]=n;if(++s)e.length=s;else delete this.__on}}function Uk(r,e,i){return function(){var s=this.__on,o,n=zk(e);if(s){for(var h=0,l=s.length;h<l;++h)if((o=s[h]).type===r.type&&o.name===r.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=n,o.options=i),o.value=e;return}}if(this.addEventListener(r.type,n,i),o={type:r.type,name:r.name,value:e,listener:n,options:i},!s)this.__on=[o];else s.push(o)}}function _c(r,e,i){var s=Hk(r+""),o,n=s.length,h;if(arguments.length<2){var l=this.node().__on;if(l){for(var d=0,y=l.length,c;d<y;++d)for(o=0,c=l[d];o<n;++o)if((h=s[o]).type===c.type&&h.name===c.name)return c.value}return}l=e?Uk:Yk;for(o=0;o<n;++o)this.each(l(s[o],e,i));return this}function _p(r,e,i){var s=oa(r),o=s.CustomEvent;if(typeof o==="function")o=new o(e,i);else if(o=s.document.createEvent("Event"),i)o.initEvent(e,i.bubbles,i.cancelable),o.detail=i.detail;else o.initEvent(e,!1,!1);r.dispatchEvent(o)}function jk(r,e){return function(){return _p(this,r,e)}}function Gk(r,e){return function(){return _p(this,r,e.apply(this,arguments))}}function Bc(r,e){return this.each((typeof e==="function"?Gk:jk)(r,e))}function*vc(){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var s=r[e],o=0,n=s.length,h;o<n;++o)if(h=s[o])yield h}var Lc=[null];function Pe(r,e){this._groups=r,this._parents=e}function Bp(){return new Pe([[document.documentElement]],Lc)}function Xk(){return this}Pe.prototype=Bp.prototype={constructor:Pe,select:Uh,selectAll:Gh,selectChild:Xh,selectChildren:Vh,filter:Kh,data:Jh,enter:Zh,exit:tc,join:ec,merge:rc,selection:Xk,order:ic,sort:oc,call:sc,nodes:ac,node:nc,size:lc,empty:hc,each:cc,attr:uc,style:fc,property:dc,classed:gc,text:mc,html:yc,raise:xc,lower:Cc,append:bc,insert:kc,remove:wc,clone:Sc,datum:Tc,on:_c,dispatch:Bc,[Symbol.iterator]:vc};var Fi=Bp;function f(r){return typeof r==="string"?new Pe([[document.querySelector(r)]],[document.documentElement]):new Pe([[r]],Lc)}function Ir(r,e,i){r.prototype=e.prototype=i,i.constructor=r}function ja(r,e){var i=Object.create(r.prototype);for(var s in e)i[s]=e[s];return i}function Dr(){}var sa=0.7,Un=1/sa,Jo="\\s*([+-]?\\d+)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vk=/^#([0-9a-f]{3,8})$/,Kk=new RegExp(`^rgb\\(${Jo},${Jo},${Jo}\\)$`),Zk=new RegExp(`^rgb\\(${ei},${ei},${ei}\\)$`),Qk=new RegExp(`^rgba\\(${Jo},${Jo},${Jo},${la}\\)$`),Jk=new RegExp(`^rgba\\(${ei},${ei},${ei},${la}\\)$`),t1=new RegExp(`^hsl\\(${la},${ei},${ei}\\)$`),e1=new RegExp(`^hsla\\(${la},${ei},${ei},${la}\\)$`),vp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ir(Dr,Nn,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:Lp,formatHex:Lp,formatHex8:r1,formatHsl:i1,formatRgb:Fp,toString:Fp});function Lp(){return this.rgb().formatHex()}function r1(){return this.rgb().formatHex8()}function i1(){return $p(this).formatHsl()}function Fp(){return this.rgb().formatRgb()}function Nn(r){var e,i;return r=(r+"").trim().toLowerCase(),(e=Vk.exec(r))?(i=e[1].length,e=parseInt(e[1],16),i===6?Ap(e):i===3?new Ct(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Wn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Wn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Kk.exec(r))?new Ct(e[1],e[2],e[3],1):(e=Zk.exec(r))?new Ct(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Qk.exec(r))?Wn(e[1],e[2],e[3],e[4]):(e=Jk.exec(r))?Wn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=t1.exec(r))?Op(e[1],e[2]/100,e[3]/100,1):(e=e1.exec(r))?Op(e[1],e[2]/100,e[3]/100,e[4]):vp.hasOwnProperty(r)?Ap(vp[r]):r==="transparent"?new Ct(NaN,NaN,NaN,0):null}function Ap(r){return new Ct(r>>16&255,r>>8&255,r&255,1)}function Wn(r,e,i,s){if(s<=0)r=e=i=NaN;return new Ct(r,e,i,s)}function Ds(r){if(!(r instanceof Dr))r=Nn(r);if(!r)return new Ct;return r=r.rgb(),new Ct(r.r,r.g,r.b,r.opacity)}function ts(r,e,i,s){return arguments.length===1?Ds(r):new Ct(r,e,i,s==null?1:s)}function Ct(r,e,i,s){this.r=+r,this.g=+e,this.b=+i,this.opacity=+s}Ir(Ct,ts,ja(Dr,{brighter(r){return r=r==null?Un:Math.pow(Un,r),new Ct(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?sa:Math.pow(sa,r),new Ct(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Ct(Ji(this.r),Ji(this.g),Ji(this.b),jn(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:Mp,formatHex:Mp,formatHex8:o1,formatRgb:Ep,toString:Ep}));function Mp(){return`#${Qi(this.r)}${Qi(this.g)}${Qi(this.b)}`}function o1(){return`#${Qi(this.r)}${Qi(this.g)}${Qi(this.b)}${Qi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ep(){let r=jn(this.opacity);return`${r===1?"rgb(":"rgba("}${Ji(this.r)}, ${Ji(this.g)}, ${Ji(this.b)}${r===1?")":`, ${r})`}`}function jn(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function Ji(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function Qi(r){return r=Ji(r),(r<16?"0":"")+r.toString(16)}function Op(r,e,i,s){if(s<=0)r=e=i=NaN;else if(i<=0||i>=1)r=e=NaN;else if(e<=0)r=NaN;return new qr(r,e,i,s)}function $p(r){if(r instanceof qr)return new qr(r.h,r.s,r.l,r.opacity);if(!(r instanceof Dr))r=Nn(r);if(!r)return new qr;if(r instanceof qr)return r;r=r.rgb();var e=r.r/255,i=r.g/255,s=r.b/255,o=Math.min(e,i,s),n=Math.max(e,i,s),h=NaN,l=n-o,d=(n+o)/2;if(l){if(e===n)h=(i-s)/l+(i<s)*6;else if(i===n)h=(s-e)/l+2;else h=(e-i)/l+4;l/=d<0.5?n+o:2-n-o,h*=60}else l=d>0&&d<1?0:h;return new qr(h,l,d,r.opacity)}function Dp(r,e,i,s){return arguments.length===1?$p(r):new qr(r,e,i,s==null?1:s)}function qr(r,e,i,s){this.h=+r,this.s=+e,this.l=+i,this.opacity=+s}Ir(qr,Dp,ja(Dr,{brighter(r){return r=r==null?Un:Math.pow(Un,r),new qr(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?sa:Math.pow(sa,r),new qr(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<0.5?i:1-i)*e,o=2*i-s;return new Ct(Fc(r>=240?r-240:r+120,o,s),Fc(r,o,s),Fc(r<120?r+240:r-120,o,s),this.opacity)},clamp(){return new qr(Ip(this.h),zn(this.s),zn(this.l),jn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let r=jn(this.opacity);return`${r===1?"hsl(":"hsla("}${Ip(this.h)}, ${zn(this.s)*100}%, ${zn(this.l)*100}%${r===1?")":`, ${r})`}`}}));function Ip(r){return r=(r||0)%360,r<0?r+360:r}function zn(r){return Math.max(0,Math.min(1,r||0))}function Fc(r,e,i){return(r<60?e+(i-e)*r/60:r<180?i:r<240?e+(i-e)*(240-r)/60:e)*255}function Ac(r,e,i,s,o){var n=r*r,h=n*r;return((1-3*r+3*n-h)*e+(4-6*n+3*h)*i+(1+3*r+3*n-3*h)*s+h*o)/6}function Mc(r){var e=r.length-1;return function(i){var s=i<=0?i=0:i>=1?(i=1,e-1):Math.floor(i*e),o=r[s],n=r[s+1],h=s>0?r[s-1]:2*o-n,l=s<e-1?r[s+2]:2*n-o;return Ac((i-s/e)*e,h,o,n,l)}}function Ec(r){var e=r.length;return function(i){var s=Math.floor(((i%=1)<0?++i:i)*e),o=r[(s+e-1)%e],n=r[s%e],h=r[(s+1)%e],l=r[(s+2)%e];return Ac((i-s/e)*e,o,n,h,l)}}var qa=(r)=>()=>r;function Pp(r,e){return function(i){return r+i*e}}function s1(r,e,i){return r=Math.pow(r,i),e=Math.pow(e,i)-r,i=1/i,function(s){return Math.pow(r+s*e,i)}}function sl(r,e){var i=e-r;return i?Pp(r,i>180||i<-180?i-360*Math.round(i/360):i):qa(isNaN(r)?e:r)}function Rp(r){return(r=+r)===1?sr:function(e,i){return i-e?s1(e,i,r):qa(isNaN(e)?i:e)}}function sr(r,e){var i=e-r;return i?Pp(r,i):qa(isNaN(r)?e:r)}var Xr=function r(e){var i=Rp(e);function s(o,n){var h=i((o=ts(o)).r,(n=ts(n)).r),l=i(o.g,n.g),d=i(o.b,n.b),y=sr(o.opacity,n.opacity);return function(c){return o.r=h(c),o.g=l(c),o.b=d(c),o.opacity=y(c),o+""}}return s.gamma=r,s}(1);function qp(r){return function(e){var i=e.length,s=Array(i),o=Array(i),n=Array(i),h,l;for(h=0;h<i;++h)l=ts(e[h]),s[h]=l.r||0,o[h]=l.g||0,n[h]=l.b||0;return s=r(s),o=r(o),n=r(n),l.opacity=1,function(d){return l.r=s(d),l.g=o(d),l.b=n(d),l+""}}}var a1=qp(Mc),n1=qp(Ec);function gt(r,e){return r=+r,e=+e,function(i){return r*(1-i)+e*i}}var Ic=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Oc=new RegExp(Ic.source,"g");function l1(r){return function(){return r}}function h1(r){return function(e){return r(e)+""}}function Va(r,e){var i=Ic.lastIndex=Oc.lastIndex=0,s,o,n,h=-1,l=[],d=[];r=r+"",e=e+"";while((s=Ic.exec(r))&&(o=Oc.exec(e))){if((n=o.index)>i)if(n=e.slice(i,n),l[h])l[h]+=n;else l[++h]=n;if((s=s[0])===(o=o[0]))if(l[h])l[h]+=o;else l[++h]=o;else l[++h]=null,d.push({i:h,x:gt(s,o)});i=Oc.lastIndex}if(i<e.length)if(n=e.slice(i),l[h])l[h]+=n;else l[++h]=n;return l.length<2?d[0]?h1(d[0].x):l1(e):(e=d.length,function(y){for(var c=0,x;c<e;++c)l[(x=d[c]).i]=x.x(y);return l.join("")})}var Np=180/Math.PI,Gn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vn(r,e,i,s,o,n){var h,l,d;if(h=Math.sqrt(r*r+e*e))r/=h,e/=h;if(d=r*i+e*s)i-=r*d,s-=e*d;if(l=Math.sqrt(i*i+s*s))i/=l,s/=l,d/=l;if(r*s<e*i)r=-r,e=-e,d=-d,h=-h;return{translateX:o,translateY:n,rotate:Math.atan2(e,r)*Np,skewX:Math.atan(d)*Np,scaleX:h,scaleY:l}}var Qn;function Wp(r){let e=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(r+"");return e.isIdentity?Gn:Vn(e.a,e.b,e.c,e.d,e.e,e.f)}function zp(r){if(r==null)return Gn;if(!Qn)Qn=document.createElementNS("http://www.w3.org/2000/svg","g");if(Qn.setAttribute("transform",r),!(r=Qn.transform.baseVal.consolidate()))return Gn;return r=r.matrix,Vn(r.a,r.b,r.c,r.d,r.e,r.f)}function Hp(r,e,i,s){function o(y){return y.length?y.pop()+" ":""}function n(y,c,x,b,_,v){if(y!==x||c!==b){var M=_.push("translate(",null,e,null,i);v.push({i:M-4,x:gt(y,x)},{i:M-2,x:gt(c,b)})}else if(x||b)_.push("translate("+x+e+b+i)}function h(y,c,x,b){if(y!==c){if(y-c>180)c+=360;else if(c-y>180)y+=360;b.push({i:x.push(o(x)+"rotate(",null,s)-2,x:gt(y,c)})}else if(c)x.push(o(x)+"rotate("+c+s)}function l(y,c,x,b){if(y!==c)b.push({i:x.push(o(x)+"skewX(",null,s)-2,x:gt(y,c)});else if(c)x.push(o(x)+"skewX("+c+s)}function d(y,c,x,b,_,v){if(y!==x||c!==b){var M=_.push(o(_)+"scale(",null,",",null,")");v.push({i:M-4,x:gt(y,x)},{i:M-2,x:gt(c,b)})}else if(x!==1||b!==1)_.push(o(_)+"scale("+x+","+b+")")}return function(y,c){var x=[],b=[];return y=r(y),c=r(c),n(y.translateX,y.translateY,c.translateX,c.translateY,x,b),h(y.rotate,c.rotate,x,b),l(y.skewX,c.skewX,x,b),d(y.scaleX,y.scaleY,c.scaleX,c.scaleY,x,b),y=c=null,function(_){var v=-1,M=b.length,q;while(++v<M)x[(q=b[v]).i]=q.x(_);return x.join("")}}}var $c=Hp(Wp,"px, ","px)","deg)"),Dc=Hp(zp,", ",")",")");var es=0,ca=0,ha=0,Up=1000,Jn,ua,yl=0,to=0,xl=0,fa=typeof performance==="object"&&performance.now?performance:Date,jp=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function pa(){return to||(jp(c1),to=fa.now()+xl)}function c1(){to=0}function da(){this._call=this._time=this._next=null}da.prototype=Cl.prototype={constructor:da,restart:function(r,e,i){if(typeof r!=="function")throw TypeError("callback is not a function");if(i=(i==null?pa():+i)+(e==null?0:+e),!this._next&&ua!==this){if(ua)ua._next=this;else Jn=this;ua=this}this._call=r,this._time=i,Pc()},stop:function(){if(this._call)this._call=null,this._time=1/0,Pc()}};function Cl(r,e,i){var s=new da;return s.restart(r,e,i),s}function Gp(){pa(),++es;var r=Jn,e;while(r){if((e=to-r._time)>=0)r._call.call(void 0,e);r=r._next}--es}function Yp(){to=(yl=fa.now())+xl,es=ca=0;try{Gp()}finally{es=0,f1(),to=0}}function u1(){var r=fa.now(),e=r-yl;if(e>Up)xl-=e,yl=r}function f1(){var r,e=Jn,i,s=1/0;while(e)if(e._call){if(s>e._time)s=e._time;r=e,e=e._next}else i=e._next,e._next=null,e=r?r._next=i:Jn=i;ua=r,Pc(s)}function Pc(r){if(es)return;if(ca)ca=clearTimeout(ca);var e=r-to;if(e>24){if(r<1/0)ca=setTimeout(Yp,r-fa.now()-xl);if(ha)ha=clearInterval(ha)}else{if(!ha)yl=fa.now(),ha=setInterval(u1,Up);es=1,jp(Yp)}}function ga(r,e,i){var s=new da;return e=e==null?0:+e,s.restart((o)=>{s.stop(),r(o+e)},e,i),s}var d1=Hh("start","end","cancel","interrupt"),p1=[],Kp=0,Xp=1,kl=2,bl=3,Vp=4,wl=5,ma=6;function Ai(r,e,i,s,o,n){var h=r.__transition;if(!h)r.__transition={};else if(i in h)return;g1(r,i,{name:e,index:s,group:o,on:d1,tween:p1,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:Kp})}function ya(r,e){var i=Ve(r,e);if(i.state>Kp)throw Error("too late; already scheduled");return i}function er(r,e){var i=Ve(r,e);if(i.state>bl)throw Error("too late; already running");return i}function Ve(r,e){var i=r.__transition;if(!i||!(i=i[e]))throw Error("transition not found");return i}function g1(r,e,i){var s=r.__transition,o;s[e]=i,i.timer=Cl(n,0,i.time);function n(y){if(i.state=Xp,i.timer.restart(h,i.delay,i.time),i.delay<=y)h(y-i.delay)}function h(y){var c,x,b,_;if(i.state!==Xp)return d();for(c in s){if(_=s[c],_.name!==i.name)continue;if(_.state===bl)return ga(h);if(_.state===Vp)_.state=ma,_.timer.stop(),_.on.call("interrupt",r,r.__data__,_.index,_.group),delete s[c];else if(+c<e)_.state=ma,_.timer.stop(),_.on.call("cancel",r,r.__data__,_.index,_.group),delete s[c]}if(ga(function(){if(i.state===bl)i.state=Vp,i.timer.restart(l,i.delay,i.time),l(y)}),i.state=kl,i.on.call("start",r,r.__data__,i.index,i.group),i.state!==kl)return;i.state=bl,o=Array(b=i.tween.length);for(c=0,x=-1;c<b;++c)if(_=i.tween[c].value.call(r,r.__data__,i.index,i.group))o[++x]=_;o.length=x+1}function l(y){var c=y<i.duration?i.ease.call(null,y/i.duration):(i.timer.restart(d),i.state=wl,1),x=-1,b=o.length;while(++x<b)o[x].call(r,c);if(i.state===wl)i.on.call("end",r,r.__data__,i.index,i.group),d()}function d(){i.state=ma,i.timer.stop(),delete s[e];for(var y in s)return;delete r.__transition}}function xa(r,e){var i=r.__transition,s,o,n=!0,h;if(!i)return;e=e==null?null:e+"";for(h in i){if((s=i[h]).name!==e){n=!1;continue}o=s.state>kl&&s.state<wl,s.state=ma,s.timer.stop(),s.on.call(o?"interrupt":"cancel",r,r.__data__,s.index,s.group),delete i[h]}if(n)delete r.__transition}function Rc(r){return this.each(function(){xa(this,r)})}function m1(r,e){var i,s;return function(){var o=er(this,r),n=o.tween;if(n!==i){s=i=n;for(var h=0,l=s.length;h<l;++h)if(s[h].name===e){s=s.slice(),s.splice(h,1);break}}o.tween=s}}function y1(r,e,i){var s,o;if(typeof i!=="function")throw Error();return function(){var n=er(this,r),h=n.tween;if(h!==s){o=(s=h).slice();for(var l={name:e,value:i},d=0,y=o.length;d<y;++d)if(o[d].name===e){o[d]=l;break}if(d===y)o.push(l)}n.tween=o}}function qc(r,e){var i=this._id;if(r+="",arguments.length<2){var s=Ve(this.node(),i).tween;for(var o=0,n=s.length,h;o<n;++o)if((h=s[o]).name===r)return h.value;return null}return this.each((e==null?m1:y1)(i,r,e))}function rs(r,e,i){var s=r._id;return r.each(function(){var o=er(this,s);(o.value||(o.value={}))[e]=i.apply(this,arguments)}),function(o){return Ve(o,s).value[e]}}function Ca(r,e){var i;return(typeof e==="number"?gt:e instanceof Nn?Xr:(i=Nn(e))?(e=i,Xr):Va)(r,e)}function x1(r){return function(){this.removeAttribute(r)}}function C1(r){return function(){this.removeAttributeNS(r.space,r.local)}}function b1(r,e,i){var s,o=i+"",n;return function(){var h=this.getAttribute(r);return h===o?null:h===s?n:n=e(s=h,i)}}function k1(r,e,i){var s,o=i+"",n;return function(){var h=this.getAttributeNS(r.space,r.local);return h===o?null:h===s?n:n=e(s=h,i)}}function w1(r,e,i){var s,o,n;return function(){var h,l=i(this),d;if(l==null)return void this.removeAttribute(r);return h=this.getAttribute(r),d=l+"",h===d?null:h===s&&d===o?n:(o=d,n=e(s=h,l))}}function S1(r,e,i){var s,o,n;return function(){var h,l=i(this),d;if(l==null)return void this.removeAttributeNS(r.space,r.local);return h=this.getAttributeNS(r.space,r.local),d=l+"",h===d?null:h===s&&d===o?n:(o=d,n=e(s=h,l))}}function Nc(r,e){var i=ti(r),s=i==="transform"?Dc:Ca;return this.attrTween(r,typeof e==="function"?(i.local?S1:w1)(i,s,rs(this,"attr."+r,e)):e==null?(i.local?C1:x1)(i):(i.local?k1:b1)(i,s,e))}function T1(r,e){return function(i){this.setAttribute(r,e.call(this,i))}}function _1(r,e){return function(i){this.setAttributeNS(r.space,r.local,e.call(this,i))}}function B1(r,e){var i,s;function o(){var n=e.apply(this,arguments);if(n!==s)i=(s=n)&&_1(r,n);return i}return o._value=e,o}function v1(r,e){var i,s;function o(){var n=e.apply(this,arguments);if(n!==s)i=(s=n)&&T1(r,n);return i}return o._value=e,o}function Wc(r,e){var i="attr."+r;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!=="function")throw Error();var s=ti(r);return this.tween(i,(s.local?B1:v1)(s,e))}function L1(r,e){return function(){ya(this,r).delay=+e.apply(this,arguments)}}function F1(r,e){return e=+e,function(){ya(this,r).delay=e}}function zc(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?L1:F1)(e,r)):Ve(this.node(),e).delay}function A1(r,e){return function(){er(this,r).duration=+e.apply(this,arguments)}}function M1(r,e){return e=+e,function(){er(this,r).duration=e}}function Hc(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?A1:M1)(e,r)):Ve(this.node(),e).duration}function E1(r,e){if(typeof e!=="function")throw Error();return function(){er(this,r).ease=e}}function Yc(r){var e=this._id;return arguments.length?this.each(E1(e,r)):Ve(this.node(),e).ease}function O1(r,e){return function(){var i=e.apply(this,arguments);if(typeof i!=="function")throw Error();er(this,r).ease=i}}function Uc(r){if(typeof r!=="function")throw Error();return this.each(O1(this._id,r))}function jc(r){if(typeof r!=="function")r=Qo(r);for(var e=this._groups,i=e.length,s=Array(i),o=0;o<i;++o)for(var n=e[o],h=n.length,l=s[o]=[],d,y=0;y<h;++y)if((d=n[y])&&r.call(d,d.__data__,y,n))l.push(d);return new dr(s,this._parents,this._name,this._id)}function Gc(r){if(r._id!==this._id)throw Error();for(var e=this._groups,i=r._groups,s=e.length,o=i.length,n=Math.min(s,o),h=Array(s),l=0;l<n;++l)for(var d=e[l],y=i[l],c=d.length,x=h[l]=Array(c),b,_=0;_<c;++_)if(b=d[_]||y[_])x[_]=b;for(;l<s;++l)h[l]=e[l];return new dr(h,this._parents,this._name,this._id)}function I1(r){return(r+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");if(i>=0)e=e.slice(0,i);return!e||e==="start"})}function $1(r,e,i){var s,o,n=I1(e)?ya:er;return function(){var h=n(this,r),l=h.on;if(l!==s)(o=(s=l).copy()).on(e,i);h.on=o}}function Xc(r,e){var i=this._id;return arguments.length<2?Ve(this.node(),i).on.on(r):this.each($1(i,r,e))}function D1(r){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==r)return;if(e)e.removeChild(this)}}function Vc(){return this.on("end.remove",D1(this._id))}function Kc(r){var e=this._name,i=this._id;if(typeof r!=="function")r=Yi(r);for(var s=this._groups,o=s.length,n=Array(o),h=0;h<o;++h)for(var l=s[h],d=l.length,y=n[h]=Array(d),c,x,b=0;b<d;++b)if((c=l[b])&&(x=r.call(c,c.__data__,b,l))){if("__data__"in c)x.__data__=c.__data__;y[b]=x,Ai(y[b],e,i,b,y,Ve(c,i))}return new dr(n,this._parents,e,i)}function Zc(r){var e=this._name,i=this._id;if(typeof r!=="function")r=Zo(r);for(var s=this._groups,o=s.length,n=[],h=[],l=0;l<o;++l)for(var d=s[l],y=d.length,c,x=0;x<y;++x)if(c=d[x]){for(var b=r.call(c,c.__data__,x,d),_,v=Ve(c,i),M=0,q=b.length;M<q;++M)if(_=b[M])Ai(_,e,i,M,b,v);n.push(b),h.push(c)}return new dr(n,h,e,i)}var P1=Fi.prototype.constructor;function Qc(){return new P1(this._groups,this._parents)}function R1(r,e){var i,s,o;return function(){var n=Ui(this,r),h=(this.style.removeProperty(r),Ui(this,r));return n===h?null:n===i&&h===s?o:o=e(i=n,s=h)}}function Zp(r){return function(){this.style.removeProperty(r)}}function q1(r,e,i){var s,o=i+"",n;return function(){var h=Ui(this,r);return h===o?null:h===s?n:n=e(s=h,i)}}function N1(r,e,i){var s,o,n;return function(){var h=Ui(this,r),l=i(this),d=l+"";if(l==null)d=l=(this.style.removeProperty(r),Ui(this,r));return h===d?null:h===s&&d===o?n:(o=d,n=e(s=h,l))}}function W1(r,e){var i,s,o,n="style."+e,h="end."+n,l;return function(){var d=er(this,r),y=d.on,c=d.value[n]==null?l||(l=Zp(e)):void 0;if(y!==i||o!==c)(s=(i=y).copy()).on(h,o=c);d.on=s}}function Jc(r,e,i){var s=(r+="")==="transform"?$c:Ca;return e==null?this.styleTween(r,R1(r,s)).on("end.style."+r,Zp(r)):typeof e==="function"?this.styleTween(r,N1(r,s,rs(this,"style."+r,e))).each(W1(this._id,r)):this.styleTween(r,q1(r,s,e),i).on("end.style."+r,null)}function z1(r,e,i){return function(s){this.style.setProperty(r,e.call(this,s),i)}}function H1(r,e,i){var s,o;function n(){var h=e.apply(this,arguments);if(h!==o)s=(o=h)&&z1(r,h,i);return s}return n._value=e,n}function tu(r,e,i){var s="style."+(r+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(e==null)return this.tween(s,null);if(typeof e!=="function")throw Error();return this.tween(s,H1(r,e,i==null?"":i))}function Y1(r){return function(){this.textContent=r}}function U1(r){return function(){var e=r(this);this.textContent=e==null?"":e}}function eu(r){return this.tween("text",typeof r==="function"?U1(rs(this,"text",r)):Y1(r==null?"":r+""))}function j1(r){return function(e){this.textContent=r.call(this,e)}}function G1(r){var e,i;function s(){var o=r.apply(this,arguments);if(o!==i)e=(i=o)&&j1(o);return e}return s._value=r,s}function ru(r){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(r==null)return this.tween(e,null);if(typeof r!=="function")throw Error();return this.tween(e,G1(r))}function iu(){var r=this._name,e=this._id,i=Sl();for(var s=this._groups,o=s.length,n=0;n<o;++n)for(var h=s[n],l=h.length,d,y=0;y<l;++y)if(d=h[y]){var c=Ve(d,e);Ai(d,r,i,y,h,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new dr(s,this._parents,r,i)}function ou(){var r,e,i=this,s=i._id,o=i.size();return new Promise(function(n,h){var l={value:h},d={value:function(){if(--o===0)n()}};if(i.each(function(){var y=er(this,s),c=y.on;if(c!==r)e=(r=c).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(d);y.on=e}),o===0)n()})}var X1=0;function dr(r,e,i,s){this._groups=r,this._parents=e,this._name=i,this._id=s}function Qp(r){return Fi().transition(r)}function Sl(){return++X1}var Mi=Fi.prototype;dr.prototype=Qp.prototype={constructor:dr,select:Kc,selectAll:Zc,selectChild:Mi.selectChild,selectChildren:Mi.selectChildren,filter:jc,merge:Gc,selection:Qc,transition:iu,call:Mi.call,nodes:Mi.nodes,node:Mi.node,size:Mi.size,empty:Mi.empty,each:Mi.each,on:Xc,attr:Nc,attrTween:Wc,style:Jc,styleTween:tu,text:eu,textTween:ru,remove:Vc,tween:qc,delay:zc,duration:Hc,ease:Yc,easeVarying:Uc,end:ou,[Symbol.iterator]:Mi[Symbol.iterator]};function Tl(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}var V1={time:null,delay:0,duration:250,ease:Tl};function K1(r,e){var i;while(!(i=r.__transition)||!(i=i[e]))if(!(r=r.parentNode))throw Error(`transition ${e} not found`);return i}function su(r){var e,i;if(r instanceof dr)e=r._id,r=r._name;else e=Sl(),(i=V1).time=pa(),r=r==null?null:r+"";for(var s=this._groups,o=s.length,n=0;n<o;++n)for(var h=s[n],l=h.length,d,y=0;y<l;++y)if(d=h[y])Ai(d,r,e,y,h,i||K1(d,e));return new dr(s,this._parents,r,e)}Fi.prototype.interrupt=Rc;Fi.prototype.transition=su;var{abs:tE,max:eE,min:rE}=Math;function Jp(r){return[+r[0],+r[1]]}function Z1(r){return[Jp(r[0]),Jp(r[1])]}var iE={name:"x",handles:["w","e"].map(au),input:function(r,e){return r==null?null:[[+r[0],e[0][1]],[+r[1],e[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},oE={name:"y",handles:["n","s"].map(au),input:function(r,e){return r==null?null:[[e[0][0],+r[0]],[e[1][0],+r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},sE={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(au),input:function(r){return r==null?null:Z1(r)},output:function(r){return r}};function au(r){return{type:r}}var nu=Math.PI,lu=2*nu;var Q1=lu-0.000001;function tg(r){this._+=r[0];for(let e=1,i=r.length;e<i;++e)this._+=arguments[e]+r[e]}function J1(r){let e=Math.floor(r);if(!(e>=0))throw Error(`invalid digits: ${r}`);if(e>15)return tg;let i=10**e;return function(s){this._+=s[0];for(let o=1,n=s.length;o<n;++o)this._+=Math.round(arguments[o]*i)/i+s[o]}}class is{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?tg:J1(r)}moveTo(r,e){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+e}`}closePath(){if(this._x1!==null)this._x1=this._x0,this._y1=this._y0,this._append`Z`}lineTo(r,e){this._append`L${this._x1=+r},${this._y1=+e}`}quadraticCurveTo(r,e,i,s){this._append`Q${+r},${+e},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(r,e,i,s,o,n){this._append`C${+r},${+e},${+i},${+s},${this._x1=+o},${this._y1=+n}`}arcTo(r,e,i,s,o){if(r=+r,e=+e,i=+i,s=+s,o=+o,o<0)throw Error(`negative radius: ${o}`);let n=this._x1,h=this._y1,l=i-r,d=s-e,y=n-r,c=h-e,x=y*y+c*c;if(this._x1===null)this._append`M${this._x1=r},${this._y1=e}`;else if(!(x>0.000001));else if(!(Math.abs(c*l-d*y)>0.000001)||!o)this._append`L${this._x1=r},${this._y1=e}`;else{let b=i-n,_=s-h,v=l*l+d*d,M=b*b+_*_,q=Math.sqrt(v),W=Math.sqrt(x),j=o*Math.tan((nu-Math.acos((v+x-M)/(2*q*W)))/2),K=j/W,J=j/q;if(Math.abs(K-1)>0.000001)this._append`L${r+K*y},${e+K*c}`;this._append`A${o},${o},0,0,${+(c*b>y*_)},${this._x1=r+J*l},${this._y1=e+J*d}`}}arc(r,e,i,s,o,n){if(r=+r,e=+e,i=+i,n=!!n,i<0)throw Error(`negative radius: ${i}`);let h=i*Math.cos(s),l=i*Math.sin(s),d=r+h,y=e+l,c=1^n,x=n?s-o:o-s;if(this._x1===null)this._append`M${d},${y}`;else if(Math.abs(this._x1-d)>0.000001||Math.abs(this._y1-y)>0.000001)this._append`L${d},${y}`;if(!i)return;if(x<0)x=x%lu+lu;if(x>Q1)this._append`A${i},${i},0,1,${c},${r-h},${e-l}A${i},${i},0,1,${c},${this._x1=d},${this._y1=y}`;else if(x>0.000001)this._append`A${i},${i},0,${+(x>=nu)},${c},${this._x1=r+i*Math.cos(o)},${this._y1=e+i*Math.sin(o)}`}rect(r,e,i,s){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function eg(){return new is}eg.prototype=is.prototype;function _e(r){return function(){return r}}var{abs:Ns,atan2:St,cos:Nr,max:ll,min:fo,sin:Mn,sqrt:Kr}=Math,yt=0.000000000001,Wa=Math.PI,bi=Wa/2,Qr=2*Wa;function cl(r){return r>1?0:r<-1?Wa:Math.acos(r)}function Ms(r){return r>=1?bi:r<=-1?-bi:Math.asin(r)}function Jr(r){let e=3;return r.digits=function(i){if(!arguments.length)return e;if(i==null)e=null;else{let s=Math.floor(i);if(!(s>=0))throw RangeError(`invalid digits: ${i}`);e=s}return r},()=>new is(e)}var ul=Array.prototype.slice;function xi(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function rg(r){this._context=r}rg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:this._context.lineTo(r,e);break}}};function ri(r){return new rg(r)}function ho(r){return r[0]}function go(r){return r[1]}function ea(r,e){var i=_e(!0),s=null,o=ri,n=null,h=Jr(l);r=typeof r==="function"?r:r===void 0?ho:_e(r),e=typeof e==="function"?e:e===void 0?go:_e(e);function l(d){var y,c=(d=xi(d)).length,x,b=!1,_;if(s==null)n=o(_=h());for(y=0;y<=c;++y){if(!(y<c&&i(x=d[y],y,d))===b)if(b=!b)n.lineStart();else n.lineEnd();if(b)n.point(+r(x,y,d),+e(x,y,d))}if(_)return n=null,_+""||null}return l.x=function(d){return arguments.length?(r=typeof d==="function"?d:_e(+d),l):r},l.y=function(d){return arguments.length?(e=typeof d==="function"?d:_e(+d),l):e},l.defined=function(d){return arguments.length?(i=typeof d==="function"?d:_e(!!d),l):i},l.curve=function(d){return arguments.length?(o=d,s!=null&&(n=o(s)),l):o},l.context=function(d){return arguments.length?(d==null?s=n=null:n=o(s=d),l):s},l}class hu{constructor(r,e){this._context=r,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}point(r,e){switch(r=+r,e=+e,this._point){case 0:{if(this._point=1,this._line)this._context.lineTo(r,e);else this._context.moveTo(r,e);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,e,r,e);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,r,this._y0,r,e);break}}this._x0=r,this._y0=e}}function ta(r){return new hu(r,!0)}function ba(r){return new hu(r,!1)}function wr(){}function os(r,e,i){r._context.bezierCurveTo((2*r._x0+r._x1)/3,(2*r._y0+r._y1)/3,(r._x0+2*r._x1)/3,(r._y0+2*r._y1)/3,(r._x0+4*r._x1+e)/6,(r._y0+4*r._y1+i)/6)}function ka(r){this._context=r}ka.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:os(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:os(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function eo(r){return new ka(r)}function ig(r){this._context=r}ig.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x2=r,this._y2=e;break;case 1:this._point=2,this._x3=r,this._y3=e;break;case 2:this._point=3,this._x4=r,this._y4=e,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+e)/6);break;default:os(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function _l(r){return new ig(r)}function og(r){this._context=r}og.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,s=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,s):this._context.moveTo(i,s);break;case 3:this._point=4;default:os(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function Bl(r){return new og(r)}function sg(r,e){this._basis=new ka(r),this._beta=e}sg.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,e=this._y,i=r.length-1;if(i>0){var s=r[0],o=e[0],n=r[i]-s,h=e[i]-o,l=-1,d;while(++l<=i)d=l/i,this._basis.point(this._beta*r[l]+(1-this._beta)*(s+d*n),this._beta*e[l]+(1-this._beta)*(o+d*h))}this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var cu=function r(e){function i(s){return e===1?new ka(s):new sg(s,e)}return i.beta=function(s){return r(+s)},i}(0.85);function ss(r,e,i){r._context.bezierCurveTo(r._x1+r._k*(r._x2-r._x0),r._y1+r._k*(r._y2-r._y0),r._x2+r._k*(r._x1-e),r._y2+r._k*(r._y1-i),r._x2,r._y2)}function vl(r,e){this._context=r,this._k=(1-e)/6}vl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ss(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2,this._x1=r,this._y1=e;break;case 2:this._point=3;default:ss(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var wa=function r(e){function i(s){return new vl(s,e)}return i.tension=function(s){return r(+s)},i}(0);function Ll(r,e){this._context=r,this._k=(1-e)/6}Ll.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:ss(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var uu=function r(e){function i(s){return new Ll(s,e)}return i.tension=function(s){return r(+s)},i}(0);function Fl(r,e){this._context=r,this._k=(1-e)/6}Fl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ss(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var fu=function r(e){function i(s){return new Fl(s,e)}return i.tension=function(s){return r(+s)},i}(0);function Sa(r,e,i){var{_x1:s,_y1:o,_x2:n,_y2:h}=r;if(r._l01_a>yt){var l=2*r._l01_2a+3*r._l01_a*r._l12_a+r._l12_2a,d=3*r._l01_a*(r._l01_a+r._l12_a);s=(s*l-r._x0*r._l12_2a+r._x2*r._l01_2a)/d,o=(o*l-r._y0*r._l12_2a+r._y2*r._l01_2a)/d}if(r._l23_a>yt){var y=2*r._l23_2a+3*r._l23_a*r._l12_a+r._l12_2a,c=3*r._l23_a*(r._l23_a+r._l12_a);n=(n*y+r._x1*r._l23_2a-e*r._l12_2a)/c,h=(h*y+r._y1*r._l23_2a-i*r._l12_2a)/c}r._context.bezierCurveTo(s,o,n,h,r._x2,r._y2)}function ag(r,e){this._context=r,this._alpha=e}ag.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,s=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Sa(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ta=function r(e){function i(s){return e?new ag(s,e):new vl(s,0)}return i.alpha=function(s){return r(+s)},i}(0.5);function ng(r,e){this._context=r,this._alpha=e}ng.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,s=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:Sa(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var du=function r(e){function i(s){return e?new ng(s,e):new Ll(s,0)}return i.alpha=function(s){return r(+s)},i}(0.5);function lg(r,e){this._context=r,this._alpha=e}lg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,s=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+s*s,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sa(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var pu=function r(e){function i(s){return e?new lg(s,e):new Fl(s,0)}return i.alpha=function(s){return r(+s)},i}(0.5);function hg(r){this._context=r}hg.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(r,e){if(r=+r,e=+e,this._point)this._context.lineTo(r,e);else this._point=1,this._context.moveTo(r,e)}};function Al(r){return new hg(r)}function cg(r){return r<0?-1:1}function ug(r,e,i){var s=r._x1-r._x0,o=e-r._x1,n=(r._y1-r._y0)/(s||o<0&&-0),h=(i-r._y1)/(o||s<0&&-0),l=(n*o+h*s)/(s+o);return(cg(n)+cg(h))*Math.min(Math.abs(n),Math.abs(h),0.5*Math.abs(l))||0}function fg(r,e){var i=r._x1-r._x0;return i?(3*(r._y1-r._y0)/i-e)/2:e}function gu(r,e,i){var{_x0:s,_y0:o,_x1:n,_y1:h}=r,l=(n-s)/3;r._context.bezierCurveTo(s+l,o+l*e,n-l,h-l*i,n,h)}function Ml(r){this._context=r}Ml.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gu(this,this._t0,fg(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){var i=NaN;if(r=+r,e=+e,r===this._x1&&e===this._y1)return;switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,gu(this,fg(this,i=ug(this,r,e)),i);break;default:gu(this,this._t0,i=ug(this,r,e));break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=i}};function dg(r){this._context=new pg(r)}(dg.prototype=Object.create(Ml.prototype)).point=function(r,e){Ml.prototype.point.call(this,e,r)};function pg(r){this._context=r}pg.prototype={moveTo:function(r,e){this._context.moveTo(e,r)},closePath:function(){this._context.closePath()},lineTo:function(r,e){this._context.lineTo(e,r)},bezierCurveTo:function(r,e,i,s,o,n){this._context.bezierCurveTo(e,r,s,i,n,o)}};function _a(r){return new Ml(r)}function va(r){return new dg(r)}function mg(r){this._context=r}mg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,e=this._y,i=r.length;if(i)if(this._line?this._context.lineTo(r[0],e[0]):this._context.moveTo(r[0],e[0]),i===2)this._context.lineTo(r[1],e[1]);else{var s=gg(r),o=gg(e);for(var n=0,h=1;h<i;++n,++h)this._context.bezierCurveTo(s[0][n],o[0][n],s[1][n],o[1][n],r[h],e[h])}if(this._line||this._line!==0&&i===1)this._context.closePath();this._line=1-this._line,this._x=this._y=null},point:function(r,e){this._x.push(+r),this._y.push(+e)}};function gg(r){var e,i=r.length-1,s,o=Array(i),n=Array(i),h=Array(i);o[0]=0,n[0]=2,h[0]=r[0]+2*r[1];for(e=1;e<i-1;++e)o[e]=1,n[e]=4,h[e]=4*r[e]+2*r[e+1];o[i-1]=2,n[i-1]=7,h[i-1]=8*r[i-1]+r[i];for(e=1;e<i;++e)s=o[e]/n[e-1],n[e]-=s,h[e]-=s*h[e-1];o[i-1]=h[i-1]/n[i-1];for(e=i-2;e>=0;--e)o[e]=(h[e]-o[e+1])/n[e];n[i-1]=(r[i]+o[i-1])/2;for(e=0;e<i-1;++e)n[e]=2*r[e+1]-o[e+1];return[o,n]}function as(r){return new mg(r)}function El(r,e){this._context=r,this._t=e}El.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){if(0<this._t&&this._t<1&&this._point===2)this._context.lineTo(this._x,this._y);if(this._line||this._line!==0&&this._point===1)this._context.closePath();if(this._line>=0)this._t=1-this._t,this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(r,e);else{var i=this._x*(1-this._t)+r*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=r,this._y=e}};function ns(r){return new El(r,0.5)}function La(r){return new El(r,0)}function Aa(r){return new El(r,1)}function ji(r,e,i){this.k=r,this.x=e,this.y=i}ji.prototype={constructor:ji,scale:function(r){return r===1?this:new ji(this.k*r,this.x,this.y)},translate:function(r,e){return r===0&e===0?this:new ji(this.k,this.x+this.k*r,this.y+this.k*e)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mu=new ji(1,0,0);yu.prototype=ji.prototype;function yu(r){while(!r.__zoom)if(!(r=r.parentNode))return mu;return r.__zoom}var Q=t((r)=>{let{securityLevel:e}=u(),i=f("body");if(e==="sandbox"){let n=f(`#i${r}`).node()?.contentDocument??document;i=f(n.body)}return i.select(`#${r}`)},"selectSvgElement");function zg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}t(zg,"getDefaultExportFromCjs");var ar={},Ol={},Gi={},yg;function ls(){if(yg)return Gi;yg=1;function r(h){return typeof h>"u"||h===null}t(r,"isNothing");function e(h){return typeof h==="object"&&h!==null}t(e,"isObject");function i(h){if(Array.isArray(h))return h;else if(r(h))return[];return[h]}t(i,"toArray");function s(h,l){if(l){let d=Object.keys(l);for(let y=0,c=d.length;y<c;y+=1){let x=d[y];h[x]=l[x]}}return h}t(s,"extend");function o(h,l){let d="";for(let y=0;y<l;y+=1)d+=h;return d}t(o,"repeat");function n(h){return h===0&&Number.NEGATIVE_INFINITY===1/h}return t(n,"isNegativeZero"),Gi.isNothing=r,Gi.isObject=e,Gi.toArray=i,Gi.repeat=o,Gi.isNegativeZero=n,Gi.extend=s,Gi}t(ls,"requireCommon");var xu,xg;function hs(){if(xg)return xu;xg=1;function r(i,s){let o="",n=i.reason||"(unknown reason)";if(!i.mark)return n;if(i.mark.name)o+='in "'+i.mark.name+'" ';if(o+="("+(i.mark.line+1)+":"+(i.mark.column+1)+")",!s&&i.mark.snippet)o+=`
|
|
130
|
+
|
|
131
|
+
`+i.mark.snippet;return n+" "+o}t(r,"formatError");function e(i,s){if(Error.call(this),this.name="YAMLException",this.reason=i,this.mark=s,this.message=r(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}return t(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=t(function(s){return this.name+": "+r(this,s)},"toString"),xu=e,xu}t(hs,"requireException");var Cu,Cg;function Hg(){if(Cg)return Cu;Cg=1;let r=ls();function e(o,n,h,l,d){let y="",c="",x=Math.floor(d/2)-1;if(l-n>x)y=" ... ",n=l-x+y.length;if(h-l>x)c=" ...",h=l+x-c.length;return{str:y+o.slice(n,h).replace(/\t/g,"→")+c,pos:l-n+y.length}}t(e,"getLine");function i(o,n){return r.repeat(" ",n-o.length)+o}t(i,"padStart");function s(o,n){if(n=Object.create(n||null),!o.buffer)return null;if(!n.maxLength)n.maxLength=79;if(typeof n.indent!=="number")n.indent=1;if(typeof n.linesBefore!=="number")n.linesBefore=3;if(typeof n.linesAfter!=="number")n.linesAfter=2;let h=/\r?\n|\r|\0/g,l=[0],d=[],y,c=-1;while(y=h.exec(o.buffer))if(d.push(y.index),l.push(y.index+y[0].length),o.position<=y.index&&c<0)c=l.length-2;if(c<0)c=l.length-1;let x="",b=Math.min(o.line+n.linesAfter,d.length).toString().length,_=n.maxLength-(n.indent+b+3);for(let M=1;M<=n.linesBefore;M++){if(c-M<0)break;let q=e(o.buffer,l[c-M],d[c-M],o.position-(l[c]-l[c-M]),_);x=r.repeat(" ",n.indent)+i((o.line-M+1).toString(),b)+" | "+q.str+`
|
|
132
|
+
`+x}let v=e(o.buffer,l[c],d[c],o.position,_);x+=r.repeat(" ",n.indent)+i((o.line+1).toString(),b)+" | "+v.str+`
|
|
133
|
+
`,x+=r.repeat("-",n.indent+b+3+v.pos)+`^
|
|
134
|
+
`;for(let M=1;M<=n.linesAfter;M++){if(c+M>=d.length)break;let q=e(o.buffer,l[c+M],d[c+M],o.position-(l[c]-l[c+M]),_);x+=r.repeat(" ",n.indent)+i((o.line+M+1).toString(),b)+" | "+q.str+`
|
|
135
|
+
`}return x.replace(/\n$/,"")}return t(s,"makeSnippet"),Cu=s,Cu}t(Hg,"requireSnippet");var bu,bg;function nr(){if(bg)return bu;bg=1;let r=hs(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];function s(n){let h={};if(n!==null)Object.keys(n).forEach(function(l){n[l].forEach(function(d){h[String(d)]=l})});return h}t(s,"compileStyleAliases");function o(n,h){if(h=h||{},Object.keys(h).forEach(function(l){if(e.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+n+'" YAML type.')}),this.options=h,this.tag=n,this.kind=h.kind||null,this.resolve=h.resolve||function(){return!0},this.construct=h.construct||function(l){return l},this.instanceOf=h.instanceOf||null,this.predicate=h.predicate||null,this.represent=h.represent||null,this.representName=h.representName||null,this.defaultStyle=h.defaultStyle||null,this.multi=h.multi||!1,this.styleAliases=s(h.styleAliases||null),i.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}return t(o,"Type2"),bu=o,bu}t(nr,"requireType");var ku,kg;function Nu(){if(kg)return ku;kg=1;let r=hs(),e=nr();function i(n,h){let l=[];return n[h].forEach(function(d){let y=l.length;l.forEach(function(c,x){if(c.tag===d.tag&&c.kind===d.kind&&c.multi===d.multi)y=x}),l[y]=d}),l}t(i,"compileList");function s(){let n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function h(l){if(l.multi)n.multi[l.kind].push(l),n.multi.fallback.push(l);else n[l.kind][l.tag]=n.fallback[l.tag]=l}t(h,"collectType");for(let l=0,d=arguments.length;l<d;l+=1)arguments[l].forEach(h);return n}t(s,"compileMap");function o(n){return this.extend(n)}return t(o,"Schema2"),o.prototype.extend=t(function(h){let l=[],d=[];if(h instanceof e)d.push(h);else if(Array.isArray(h))d=d.concat(h);else if(h&&(Array.isArray(h.implicit)||Array.isArray(h.explicit))){if(h.implicit)l=l.concat(h.implicit);if(h.explicit)d=d.concat(h.explicit)}else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(c){if(!(c instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),d.forEach(function(c){if(!(c instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let y=Object.create(o.prototype);return y.implicit=(this.implicit||[]).concat(l),y.explicit=(this.explicit||[]).concat(d),y.compiledImplicit=i(y,"implicit"),y.compiledExplicit=i(y,"explicit"),y.compiledTypeMap=s(y.compiledImplicit,y.compiledExplicit),y},"extend"),ku=o,ku}t(Nu,"requireSchema");var wu,wg;function Wu(){if(wg)return wu;return wg=1,wu=new(nr())("tag:yaml.org,2002:str",{kind:"scalar",construct:t(function(e){return e!==null?e:""},"construct")}),wu}t(Wu,"requireStr");var Su,Sg;function zu(){if(Sg)return Su;return Sg=1,Su=new(nr())("tag:yaml.org,2002:seq",{kind:"sequence",construct:t(function(e){return e!==null?e:[]},"construct")}),Su}t(zu,"requireSeq");var Tu,Tg;function Hu(){if(Tg)return Tu;return Tg=1,Tu=new(nr())("tag:yaml.org,2002:map",{kind:"mapping",construct:t(function(e){return e!==null?e:{}},"construct")}),Tu}t(Hu,"requireMap");var _u,_g;function Yu(){if(_g)return _u;return _g=1,_u=new(Nu())({explicit:[Wu(),zu(),Hu()]}),_u}t(Yu,"requireFailsafe");var Bu,Bg;function Uu(){if(Bg)return Bu;Bg=1;let r=nr();function e(o){if(o===null)return!0;let n=o.length;return n===1&&o==="~"||n===4&&(o==="null"||o==="Null"||o==="NULL")}t(e,"resolveYamlNull");function i(){return null}t(i,"constructYamlNull");function s(o){return o===null}return t(s,"isNull"),Bu=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:i,predicate:s,represent:{canonical:t(function(){return"~"},"canonical"),lowercase:t(function(){return"null"},"lowercase"),uppercase:t(function(){return"NULL"},"uppercase"),camelcase:t(function(){return"Null"},"camelcase"),empty:t(function(){return""},"empty")},defaultStyle:"lowercase"}),Bu}t(Uu,"require_null");var vu,vg;function ju(){if(vg)return vu;vg=1;let r=nr();function e(o){if(o===null)return!1;let n=o.length;return n===4&&(o==="true"||o==="True"||o==="TRUE")||n===5&&(o==="false"||o==="False"||o==="FALSE")}t(e,"resolveYamlBoolean");function i(o){return o==="true"||o==="True"||o==="TRUE"}t(i,"constructYamlBoolean");function s(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return t(s,"isBoolean"),vu=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:i,predicate:s,represent:{lowercase:t(function(o){return o?"true":"false"},"lowercase"),uppercase:t(function(o){return o?"TRUE":"FALSE"},"uppercase"),camelcase:t(function(o){return o?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),vu}t(ju,"requireBool");var Lu,Lg;function Gu(){if(Lg)return Lu;Lg=1;let r=ls(),e=nr();function i(y){return y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102}t(i,"isHexCode");function s(y){return y>=48&&y<=55}t(s,"isOctCode");function o(y){return y>=48&&y<=57}t(o,"isDecCode");function n(y){if(y===null)return!1;let c=y.length,x=0,b=!1;if(!c)return!1;let _=y[x];if(_==="-"||_==="+")_=y[++x];if(_==="0"){if(x+1===c)return!0;if(_=y[++x],_==="b"){x++;for(;x<c;x++){if(_=y[x],_!=="0"&&_!=="1")return!1;b=!0}return b&&isFinite(h(y))}if(_==="x"){x++;for(;x<c;x++){if(!i(y.charCodeAt(x)))return!1;b=!0}return b&&isFinite(h(y))}if(_==="o"){x++;for(;x<c;x++){if(!s(y.charCodeAt(x)))return!1;b=!0}return b&&isFinite(h(y))}}for(;x<c;x++){if(!o(y.charCodeAt(x)))return!1;b=!0}if(!b)return!1;return isFinite(h(y))}t(n,"resolveYamlInteger");function h(y){let c=y,x=1,b=c[0];if(b==="-"||b==="+"){if(b==="-")x=-1;c=c.slice(1),b=c[0]}if(c==="0")return 0;if(b==="0"){if(c[1]==="b")return x*parseInt(c.slice(2),2);if(c[1]==="x")return x*parseInt(c.slice(2),16);if(c[1]==="o")return x*parseInt(c.slice(2),8)}return x*parseInt(c,10)}t(h,"parseYamlInteger");function l(y){return h(y)}t(l,"constructYamlInteger");function d(y){return Object.prototype.toString.call(y)==="[object Number]"&&(y%1===0&&!r.isNegativeZero(y))}return t(d,"isInteger"),Lu=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:n,construct:l,predicate:d,represent:{binary:t(function(y){return y>=0?"0b"+y.toString(2):"-0b"+y.toString(2).slice(1)},"binary"),octal:t(function(y){return y>=0?"0o"+y.toString(8):"-0o"+y.toString(8).slice(1)},"octal"),decimal:t(function(y){return y.toString(10)},"decimal"),hexadecimal:t(function(y){return y>=0?"0x"+y.toString(16).toUpperCase():"-0x"+y.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Lu}t(Gu,"requireInt");var Fu,Fg;function Xu(){if(Fg)return Fu;Fg=1;let r=ls(),e=nr(),i=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(y){if(y===null)return!1;if(!i.test(y))return!1;if(isFinite(parseFloat(y,10)))return!0;return s.test(y)}t(o,"resolveYamlFloat");function n(y){let c=y.toLowerCase(),x=c[0]==="-"?-1:1;if("+-".indexOf(c[0])>=0)c=c.slice(1);if(c===".inf")return x===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(c===".nan")return NaN;return x*parseFloat(c,10)}t(n,"constructYamlFloat");let h=/^[-+]?[0-9]+e/;function l(y,c){if(isNaN(y))switch(c){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===y)switch(c){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===y)switch(c){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(y))return"-0.0";let x=y.toString(10);return h.test(x)?x.replace("e",".e"):x}t(l,"representYamlFloat");function d(y){return Object.prototype.toString.call(y)==="[object Number]"&&(y%1!==0||r.isNegativeZero(y))}return t(d,"isFloat"),Fu=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:n,predicate:d,represent:l,defaultStyle:"lowercase"}),Fu}t(Xu,"requireFloat");var Au,Ag;function Vu(){if(Ag)return Au;return Ag=1,Au=Yu().extend({implicit:[Uu(),ju(),Gu(),Xu()]}),Au}t(Vu,"requireJson");var Mu,Mg;function Ku(){if(Mg)return Mu;return Mg=1,Mu=Vu(),Mu}t(Ku,"requireCore");var Eu,Eg;function Zu(){if(Eg)return Eu;Eg=1;let r=nr(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function s(h){if(h===null)return!1;if(e.exec(h)!==null)return!0;if(i.exec(h)!==null)return!0;return!1}t(s,"resolveYamlTimestamp");function o(h){let l=0,d=null,y=e.exec(h);if(y===null)y=i.exec(h);if(y===null)throw Error("Date resolve error");let c=+y[1],x=+y[2]-1,b=+y[3];if(!y[4])return new Date(Date.UTC(c,x,b));let _=+y[4],v=+y[5],M=+y[6];if(y[7]){l=y[7].slice(0,3);while(l.length<3)l+="0";l=+l}if(y[9]){let W=+y[10],j=+(y[11]||0);if(d=(W*60+j)*60000,y[9]==="-")d=-d}let q=new Date(Date.UTC(c,x,b,_,v,M,l));if(d)q.setTime(q.getTime()-d);return q}t(o,"constructYamlTimestamp");function n(h){return h.toISOString()}return t(n,"representYamlTimestamp"),Eu=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s,construct:o,instanceOf:Date,represent:n}),Eu}t(Zu,"requireTimestamp");var Ou,Og;function Qu(){if(Og)return Ou;Og=1;let r=nr();function e(i){return i==="<<"||i===null}return t(e,"resolveYamlMerge"),Ou=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e}),Ou}t(Qu,"requireMerge");var Iu,Ig;function Ju(){if(Ig)return Iu;Ig=1;let r=nr(),e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
136
|
+
\r`;function i(h){if(h===null)return!1;let l=0,d=h.length,y=e;for(let c=0;c<d;c++){let x=y.indexOf(h.charAt(c));if(x>64)continue;if(x<0)return!1;l+=6}return l%8===0}t(i,"resolveYamlBinary");function s(h){let l=h.replace(/[\r\n=]/g,""),d=l.length,y=e,c=0,x=[];for(let _=0;_<d;_++){if(_%4===0&&_)x.push(c>>16&255),x.push(c>>8&255),x.push(c&255);c=c<<6|y.indexOf(l.charAt(_))}let b=d%4*6;if(b===0)x.push(c>>16&255),x.push(c>>8&255),x.push(c&255);else if(b===18)x.push(c>>10&255),x.push(c>>2&255);else if(b===12)x.push(c>>4&255);return new Uint8Array(x)}t(s,"constructYamlBinary");function o(h){let l="",d=0,y=h.length,c=e;for(let b=0;b<y;b++){if(b%3===0&&b)l+=c[d>>18&63],l+=c[d>>12&63],l+=c[d>>6&63],l+=c[d&63];d=(d<<8)+h[b]}let x=y%3;if(x===0)l+=c[d>>18&63],l+=c[d>>12&63],l+=c[d>>6&63],l+=c[d&63];else if(x===2)l+=c[d>>10&63],l+=c[d>>4&63],l+=c[d<<2&63],l+=c[64];else if(x===1)l+=c[d>>2&63],l+=c[d<<4&63],l+=c[64],l+=c[64];return l}t(o,"representYamlBinary");function n(h){return Object.prototype.toString.call(h)==="[object Uint8Array]"}return t(n,"isBinary"),Iu=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:s,predicate:n,represent:o}),Iu}t(Ju,"requireBinary");var $u,$g;function tf(){if($g)return $u;$g=1;let r=nr(),e=Object.prototype.hasOwnProperty,i=Object.prototype.toString;function s(n){if(n===null)return!0;let h=[],l=n;for(let d=0,y=l.length;d<y;d+=1){let c=l[d],x=!1;if(i.call(c)!=="[object Object]")return!1;let b;for(b in c)if(e.call(c,b))if(!x)x=!0;else return!1;if(!x)return!1;if(h.indexOf(b)===-1)h.push(b);else return!1}return!0}t(s,"resolveYamlOmap");function o(n){return n!==null?n:[]}return t(o,"constructYamlOmap"),$u=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:s,construct:o}),$u}t(tf,"requireOmap");var Du,Dg;function ef(){if(Dg)return Du;Dg=1;let r=nr(),e=Object.prototype.toString;function i(o){if(o===null)return!0;let n=o,h=Array(n.length);for(let l=0,d=n.length;l<d;l+=1){let y=n[l];if(e.call(y)!=="[object Object]")return!1;let c=Object.keys(y);if(c.length!==1)return!1;h[l]=[c[0],y[c[0]]]}return!0}t(i,"resolveYamlPairs");function s(o){if(o===null)return[];let n=o,h=Array(n.length);for(let l=0,d=n.length;l<d;l+=1){let y=n[l],c=Object.keys(y);h[l]=[c[0],y[c[0]]]}return h}return t(s,"constructYamlPairs"),Du=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:i,construct:s}),Du}t(ef,"requirePairs");var Pu,Pg;function rf(){if(Pg)return Pu;Pg=1;let r=nr(),e=Object.prototype.hasOwnProperty;function i(o){if(o===null)return!0;let n=o;for(let h in n)if(e.call(n,h)){if(n[h]!==null)return!1}return!0}t(i,"resolveYamlSet");function s(o){return o!==null?o:{}}return t(s,"constructYamlSet"),Pu=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:i,construct:s}),Pu}t(rf,"requireSet");var Ru,Rg;function Il(){if(Rg)return Ru;return Rg=1,Ru=Ku().extend({implicit:[Zu(),Qu()],explicit:[Ju(),tf(),ef(),rf()]}),Ru}t(Il,"require_default");var qg;function Yg(){if(qg)return Ol;qg=1;let r=ls(),e=hs(),i=Hg(),s=Il(),o=Object.prototype.hasOwnProperty,n=1,h=2,l=3,d=4,y=1,c=2,x=3,b=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_=/[\x85\u2028\u2029]/,v=/[,\[\]{}]/,M=/^(?:!|!!|![0-9A-Za-z-]+!)$/,q=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function W(w){return Object.prototype.toString.call(w)}t(W,"_class");function j(w){return w===10||w===13}t(j,"isEol");function K(w){return w===9||w===32}t(K,"isWhiteSpace");function J(w){return w===9||w===32||w===10||w===13}t(J,"isWsOrEol");function tt(w){return w===44||w===91||w===93||w===123||w===125}t(tt,"isFlowIndicator");function at(w){if(w>=48&&w<=57)return w-48;let pt=w|32;if(pt>=97&&pt<=102)return pt-97+10;return-1}t(at,"fromHexCode");function st(w){if(w===120)return 2;if(w===117)return 4;if(w===85)return 8;return 0}t(st,"escapedHexLen");function dt(w){if(w>=48&&w<=57)return w-48;return-1}t(dt,"fromDecimalCode");function bt(w){switch(w){case 48:return"\x00";case 97:return"\x07";case 98:return"\b";case 116:return"\t";case 9:return"\t";case 110:return`
|
|
137
|
+
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"
";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}t(bt,"simpleEscapeSequence");function At(w){if(w<=65535)return String.fromCharCode(w);return String.fromCharCode((w-65536>>10)+55296,(w-65536&1023)+56320)}t(At,"charFromCodepoint");function wt(w,pt,Ft){if(pt==="__proto__")Object.defineProperty(w,pt,{configurable:!0,enumerable:!0,writable:!0,value:Ft});else w[pt]=Ft}t(wt,"setProperty");let kt=Array(256),it=Array(256);for(let w=0;w<256;w++)kt[w]=bt(w)?1:0,it[w]=bt(w);function ot(w,pt){this.input=w,this.filename=pt.filename||null,this.schema=pt.schema||s,this.onWarning=pt.onWarning||null,this.legacy=pt.legacy||!1,this.json=pt.json||!1,this.listener=pt.listener||null,this.maxDepth=typeof pt.maxDepth==="number"?pt.maxDepth:100,this.maxTotalMergeKeys=typeof pt.maxTotalMergeKeys==="number"?pt.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=w.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}t(ot,"State");function mt(w,pt){let Ft={name:w.filename,buffer:w.input.slice(0,-1),position:w.position,line:w.line,column:w.position-w.lineStart};return Ft.snippet=i(Ft),new e(pt,Ft)}t(mt,"generateError");function et(w,pt){throw mt(w,pt)}t(et,"throwError");function _t(w,pt){if(w.onWarning)w.onWarning.call(null,mt(w,pt))}t(_t,"throwWarning");function Mt(w,pt,Ft){let Ot=w.anchorMapTransactions;if(Ot.length!==0){let Bt=Ot[Ot.length-1];if(!o.call(Bt,pt))Bt[pt]={existed:o.call(w.anchorMap,pt),value:w.anchorMap[pt]}}w.anchorMap[pt]=Ft}t(Mt,"storeAnchor");function Vt(w){w.anchorMapTransactions.push(Object.create(null))}t(Vt,"beginAnchorTransaction");function Xt(w){let pt=w.anchorMapTransactions.pop(),Ft=w.anchorMapTransactions;if(Ft.length===0)return;let Ot=Ft[Ft.length-1],Bt=Object.keys(pt);for(let Yt=0,V=Bt.length;Yt<V;Yt+=1){let xt=Bt[Yt];if(!o.call(Ot,xt))Ot[xt]=pt[xt]}}t(Xt,"commitAnchorTransaction");function se(w){let pt=w.anchorMapTransactions.pop(),Ft=Object.keys(pt);for(let Ot=Ft.length-1;Ot>=0;Ot-=1){let Bt=pt[Ft[Ot]];if(Bt.existed)w.anchorMap[Ft[Ot]]=Bt.value;else delete w.anchorMap[Ft[Ot]]}}t(se,"rollbackAnchorTransaction");function oe(w){return{position:w.position,line:w.line,lineStart:w.lineStart,lineIndent:w.lineIndent,firstTabInLine:w.firstTabInLine,tag:w.tag,anchor:w.anchor,kind:w.kind,result:w.result}}t(oe,"snapshotState");function de(w,pt){w.position=pt.position,w.line=pt.line,w.lineStart=pt.lineStart,w.lineIndent=pt.lineIndent,w.firstTabInLine=pt.firstTabInLine,w.tag=pt.tag,w.anchor=pt.anchor,w.kind=pt.kind,w.result=pt.result}t(de,"restoreState");let ge={YAML:t(function(pt,Ft,Ot){if(pt.version!==null)et(pt,"duplication of %YAML directive");if(Ot.length!==1)et(pt,"YAML directive accepts exactly one argument");let Bt=/^([0-9]+)\.([0-9]+)$/.exec(Ot[0]);if(Bt===null)et(pt,"ill-formed argument of the YAML directive");let Yt=parseInt(Bt[1],10),V=parseInt(Bt[2],10);if(Yt!==1)et(pt,"unacceptable YAML version of the document");if(pt.version=Ot[0],pt.checkLineBreaks=V<2,V!==1&&V!==2)_t(pt,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:t(function(pt,Ft,Ot){let Bt;if(Ot.length!==2)et(pt,"TAG directive accepts exactly two arguments");let Yt=Ot[0];if(Bt=Ot[1],!M.test(Yt))et(pt,"ill-formed tag handle (first argument) of the TAG directive");if(o.call(pt.tagMap,Yt))et(pt,'there is a previously declared suffix for "'+Yt+'" tag handle');if(!q.test(Bt))et(pt,"ill-formed tag prefix (second argument) of the TAG directive");try{Bt=decodeURIComponent(Bt)}catch(V){et(pt,"tag prefix is malformed: "+Bt)}pt.tagMap[Yt]=Bt},"handleTagDirective")};function he(w,pt,Ft,Ot){if(pt<Ft){let Bt=w.input.slice(pt,Ft);if(Ot)for(let Yt=0,V=Bt.length;Yt<V;Yt+=1){let xt=Bt.charCodeAt(Yt);if(!(xt===9||xt>=32&&xt<=1114111))et(w,"expected valid JSON character")}else if(b.test(Bt))et(w,"the stream contains non-printable characters");w.result+=Bt}}t(he,"captureSegment");function Gt(w,pt,Ft,Ot){if(!r.isObject(Ft))et(w,"cannot merge mappings; the provided source object is unacceptable");let Bt=Object.keys(Ft);for(let Yt=0,V=Bt.length;Yt<V;Yt+=1){let xt=Bt[Yt];if(w.maxTotalMergeKeys!==-1&&++w.totalMergeKeys>w.maxTotalMergeKeys)et(w,"merge keys exceeded maxTotalMergeKeys ("+w.maxTotalMergeKeys+")");if(!o.call(pt,xt))wt(pt,xt,Ft[xt]),Ot[xt]=!0}}t(Gt,"mergeMappings");function re(w,pt,Ft,Ot,Bt,Yt,V,xt,Nt){if(Array.isArray(Bt)){Bt=Array.prototype.slice.call(Bt);for(let Et=0,$t=Bt.length;Et<$t;Et+=1){if(Array.isArray(Bt[Et]))et(w,"nested arrays are not supported inside keys");if(typeof Bt==="object"&&W(Bt[Et])==="[object Object]")Bt[Et]="[object Object]"}}if(typeof Bt==="object"&&W(Bt)==="[object Object]")Bt="[object Object]";if(Bt=String(Bt),pt===null)pt={};if(Ot==="tag:yaml.org,2002:merge")if(Array.isArray(Yt))for(let Et=0,$t=Yt.length;Et<$t;Et+=1)Gt(w,pt,Yt[Et],Ft);else Gt(w,pt,Yt,Ft);else{if(!w.json&&!o.call(Ft,Bt)&&o.call(pt,Bt))w.line=V||w.line,w.lineStart=xt||w.lineStart,w.position=Nt||w.position,et(w,"duplicated mapping key");wt(pt,Bt,Yt),delete Ft[Bt]}return pt}t(re,"storeMappingPair");function ae(w){let pt=w.input.charCodeAt(w.position);if(pt===10)w.position++;else if(pt===13){if(w.position++,w.input.charCodeAt(w.position)===10)w.position++}else et(w,"a line break is expected");w.line+=1,w.lineStart=w.position,w.firstTabInLine=-1}t(ae,"readLineBreak");function ne(w,pt,Ft){let Ot=0,Bt=w.input.charCodeAt(w.position);while(Bt!==0){while(K(Bt)){if(Bt===9&&w.firstTabInLine===-1)w.firstTabInLine=w.position;Bt=w.input.charCodeAt(++w.position)}if(pt&&Bt===35)do Bt=w.input.charCodeAt(++w.position);while(Bt!==10&&Bt!==13&&Bt!==0);if(j(Bt)){ae(w),Bt=w.input.charCodeAt(w.position),Ot++,w.lineIndent=0;while(Bt===32)w.lineIndent++,Bt=w.input.charCodeAt(++w.position)}else break}if(Ft!==-1&&Ot!==0&&w.lineIndent<Ft)_t(w,"deficient indentation");return Ot}t(ne,"skipSeparationSpace");function Ae(w){let pt=w.position,Ft=w.input.charCodeAt(pt);if((Ft===45||Ft===46)&&Ft===w.input.charCodeAt(pt+1)&&Ft===w.input.charCodeAt(pt+2)){if(pt+=3,Ft=w.input.charCodeAt(pt),Ft===0||J(Ft))return!0}return!1}t(Ae,"testDocumentSeparator");function ve(w,pt){if(pt===1)w.result+=" ";else if(pt>1)w.result+=r.repeat(`
|
|
138
|
+
`,pt-1)}t(ve,"writeFoldedLines");function Ar(w,pt,Ft){let Ot,Bt,Yt,V,xt,Nt,{kind:Et,result:$t}=w,Ht=w.input.charCodeAt(w.position);if(J(Ht)||tt(Ht)||Ht===35||Ht===38||Ht===42||Ht===33||Ht===124||Ht===62||Ht===39||Ht===34||Ht===37||Ht===64||Ht===96)return!1;if(Ht===63||Ht===45){let Wt=w.input.charCodeAt(w.position+1);if(J(Wt)||Ft&&tt(Wt))return!1}w.kind="scalar",w.result="",Ot=Bt=w.position,Yt=!1;while(Ht!==0){if(Ht===58){let Wt=w.input.charCodeAt(w.position+1);if(J(Wt)||Ft&&tt(Wt))break}else if(Ht===35){let Wt=w.input.charCodeAt(w.position-1);if(J(Wt))break}else if(w.position===w.lineStart&&Ae(w)||Ft&&tt(Ht))break;else if(j(Ht))if(V=w.line,xt=w.lineStart,Nt=w.lineIndent,ne(w,!1,-1),w.lineIndent>=pt){Yt=!0,Ht=w.input.charCodeAt(w.position);continue}else{w.position=Bt,w.line=V,w.lineStart=xt,w.lineIndent=Nt;break}if(Yt)he(w,Ot,Bt,!1),ve(w,w.line-V),Ot=Bt=w.position,Yt=!1;if(!K(Ht))Bt=w.position+1;Ht=w.input.charCodeAt(++w.position)}if(he(w,Ot,Bt,!1),w.result)return!0;return w.kind=Et,w.result=$t,!1}t(Ar,"readPlainScalar");function ci(w,pt){let Ft,Ot,Bt=w.input.charCodeAt(w.position);if(Bt!==39)return!1;w.kind="scalar",w.result="",w.position++,Ft=Ot=w.position;while((Bt=w.input.charCodeAt(w.position))!==0)if(Bt===39)if(he(w,Ft,w.position,!0),Bt=w.input.charCodeAt(++w.position),Bt===39)Ft=w.position,w.position++,Ot=w.position;else return!0;else if(j(Bt))he(w,Ft,Ot,!0),ve(w,ne(w,!1,pt)),Ft=Ot=w.position;else if(w.position===w.lineStart&&Ae(w))et(w,"unexpected end of the document within a single quoted scalar");else if(w.position++,!K(Bt))Ot=w.position;et(w,"unexpected end of the stream within a single quoted scalar")}t(ci,"readSingleQuotedScalar");function Tr(w,pt){let Ft,Ot,Bt,Yt=w.input.charCodeAt(w.position);if(Yt!==34)return!1;w.kind="scalar",w.result="",w.position++,Ft=Ot=w.position;while((Yt=w.input.charCodeAt(w.position))!==0)if(Yt===34)return he(w,Ft,w.position,!0),w.position++,!0;else if(Yt===92){if(he(w,Ft,w.position,!0),Yt=w.input.charCodeAt(++w.position),j(Yt))ne(w,!1,pt);else if(Yt<256&&kt[Yt])w.result+=it[Yt],w.position++;else if((Bt=st(Yt))>0){let V=Bt,xt=0;for(;V>0;V--)if(Yt=w.input.charCodeAt(++w.position),(Bt=at(Yt))>=0)xt=(xt<<4)+Bt;else et(w,"expected hexadecimal character");w.result+=At(xt),w.position++}else et(w,"unknown escape sequence");Ft=Ot=w.position}else if(j(Yt))he(w,Ft,Ot,!0),ve(w,ne(w,!1,pt)),Ft=Ot=w.position;else if(w.position===w.lineStart&&Ae(w))et(w,"unexpected end of the document within a double quoted scalar");else if(w.position++,!K(Yt))Ot=w.position;et(w,"unexpected end of the stream within a double quoted scalar")}t(Tr,"readDoubleQuotedScalar");function $i(w,pt){let Ft=!0,Ot,Bt,Yt,V=w.tag,xt,Nt=w.anchor,Et,$t,Ht,Wt,Qt=Object.create(null),Zt,Jt,ee,pe=w.input.charCodeAt(w.position);if(pe===91)Et=93,Wt=!1,xt=[];else if(pe===123)Et=125,Wt=!0,xt={};else return!1;if(w.anchor!==null)Mt(w,w.anchor,xt);pe=w.input.charCodeAt(++w.position);while(pe!==0){if(ne(w,!0,pt),pe=w.input.charCodeAt(w.position),pe===Et)return w.position++,w.tag=V,w.anchor=Nt,w.kind=Wt?"mapping":"sequence",w.result=xt,!0;else if(!Ft)et(w,"missed comma between flow collection entries");else if(pe===44)et(w,"expected the node content, but found ','");if(Jt=Zt=ee=null,$t=Ht=!1,pe===63){let Be=w.input.charCodeAt(w.position+1);if(J(Be))$t=Ht=!0,w.position++,ne(w,!0,pt)}if(Ot=w.line,Bt=w.lineStart,Yt=w.position,We(w,pt,n,!1,!0),Jt=w.tag,Zt=w.result,ne(w,!0,pt),pe=w.input.charCodeAt(w.position),(Ht||w.line===Ot)&&pe===58)$t=!0,pe=w.input.charCodeAt(++w.position),ne(w,!0,pt),We(w,pt,n,!1,!0),ee=w.result;if(Wt)re(w,xt,Qt,Jt,Zt,ee,Ot,Bt,Yt);else if($t)xt.push(re(w,null,Qt,Jt,Zt,ee,Ot,Bt,Yt));else xt.push(Zt);if(ne(w,!0,pt),pe=w.input.charCodeAt(w.position),pe===44)Ft=!0,pe=w.input.charCodeAt(++w.position);else Ft=!1}et(w,"unexpected end of the stream within a flow collection")}t($i,"readFlowCollection");function Se(w,pt){let Ft,Ot=y,Bt=!1,Yt=!1,V=pt,xt=0,Nt=!1,Et,$t=w.input.charCodeAt(w.position);if($t===124)Ft=!1;else if($t===62)Ft=!0;else return!1;w.kind="scalar",w.result="";while($t!==0)if($t=w.input.charCodeAt(++w.position),$t===43||$t===45)if(y===Ot)Ot=$t===43?x:c;else et(w,"repeat of a chomping mode identifier");else if((Et=dt($t))>=0)if(Et===0)et(w,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!Yt)V=pt+Et-1,Yt=!0;else et(w,"repeat of an indentation width identifier");else break;if(K($t)){do $t=w.input.charCodeAt(++w.position);while(K($t));if($t===35)do $t=w.input.charCodeAt(++w.position);while(!j($t)&&$t!==0)}while($t!==0){ae(w),w.lineIndent=0,$t=w.input.charCodeAt(w.position);while((!Yt||w.lineIndent<V)&&$t===32)w.lineIndent++,$t=w.input.charCodeAt(++w.position);if(!Yt&&w.lineIndent>V)V=w.lineIndent;if(j($t)){xt++;continue}if(!Yt&&V===0)et(w,"missing indentation for block scalar");if(w.lineIndent<V){if(Ot===x)w.result+=r.repeat(`
|
|
139
|
+
`,Bt?1+xt:xt);else if(Ot===y){if(Bt)w.result+=`
|
|
140
|
+
`}break}if(Ft)if(K($t))Nt=!0,w.result+=r.repeat(`
|
|
141
|
+
`,Bt?1+xt:xt);else if(Nt)Nt=!1,w.result+=r.repeat(`
|
|
142
|
+
`,xt+1);else if(xt===0){if(Bt)w.result+=" "}else w.result+=r.repeat(`
|
|
143
|
+
`,xt);else w.result+=r.repeat(`
|
|
144
|
+
`,Bt?1+xt:xt);Bt=!0,Yt=!0,xt=0;let Ht=w.position;while(!j($t)&&$t!==0)$t=w.input.charCodeAt(++w.position);he(w,Ht,w.position,!1)}return!0}t(Se,"readBlockScalar");function gr(w,pt){let{tag:Ft,anchor:Ot}=w,Bt=[],Yt=!1;if(w.firstTabInLine!==-1)return!1;if(w.anchor!==null)Mt(w,w.anchor,Bt);let V=w.input.charCodeAt(w.position);while(V!==0){if(w.firstTabInLine!==-1)w.position=w.firstTabInLine,et(w,"tab characters must not be used in indentation");if(V!==45)break;let xt=w.input.charCodeAt(w.position+1);if(!J(xt))break;if(Yt=!0,w.position++,ne(w,!0,-1)){if(w.lineIndent<=pt){Bt.push(null),V=w.input.charCodeAt(w.position);continue}}let Nt=w.line;if(We(w,pt,l,!1,!0),Bt.push(w.result),ne(w,!0,-1),V=w.input.charCodeAt(w.position),(w.line===Nt||w.lineIndent>pt)&&V!==0)et(w,"bad indentation of a sequence entry");else if(w.lineIndent<pt)break}if(Yt)return w.tag=Ft,w.anchor=Ot,w.kind="sequence",w.result=Bt,!0;return!1}t(gr,"readBlockSequence");function ke(w,pt,Ft){let Ot,Bt,Yt,V,{tag:xt,anchor:Nt}=w,Et={},$t=Object.create(null),Ht=null,Wt=null,Qt=null,Zt=!1,Jt=!1;if(w.firstTabInLine!==-1)return!1;if(w.anchor!==null)Mt(w,w.anchor,Et);let ee=w.input.charCodeAt(w.position);while(ee!==0){if(!Zt&&w.firstTabInLine!==-1)w.position=w.firstTabInLine,et(w,"tab characters must not be used in indentation");let pe=w.input.charCodeAt(w.position+1),Be=w.line;if((ee===63||ee===58)&&J(pe)){if(ee===63){if(Zt)re(w,Et,$t,Ht,Wt,null,Bt,Yt,V),Ht=Wt=Qt=null;Jt=!0,Zt=!0,Ot=!0}else if(Zt)Zt=!1,Ot=!0;else et(w,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");w.position+=1,ee=pe}else{if(Bt=w.line,Yt=w.lineStart,V=w.position,!We(w,Ft,h,!1,!0))break;if(w.line===Be){ee=w.input.charCodeAt(w.position);while(K(ee))ee=w.input.charCodeAt(++w.position);if(ee===58){if(ee=w.input.charCodeAt(++w.position),!J(ee))et(w,"a whitespace character is expected after the key-value separator within a block mapping");if(Zt)re(w,Et,$t,Ht,Wt,null,Bt,Yt,V),Ht=Wt=Qt=null;Jt=!0,Zt=!1,Ot=!1,Ht=w.tag,Wt=w.result}else if(Jt)et(w,"can not read an implicit mapping pair; a colon is missed");else return w.tag=xt,w.anchor=Nt,!0}else if(Jt)et(w,"can not read a block mapping entry; a multiline key may not be an implicit key");else return w.tag=xt,w.anchor=Nt,!0}if(w.line===Be||w.lineIndent>pt){if(Zt)Bt=w.line,Yt=w.lineStart,V=w.position;if(We(w,pt,d,!0,Ot))if(Zt)Wt=w.result;else Qt=w.result;if(!Zt)re(w,Et,$t,Ht,Wt,Qt,Bt,Yt,V),Ht=Wt=Qt=null;ne(w,!0,-1),ee=w.input.charCodeAt(w.position)}if((w.line===Be||w.lineIndent>pt)&&ee!==0)et(w,"bad indentation of a mapping entry");else if(w.lineIndent<pt)break}if(Zt)re(w,Et,$t,Ht,Wt,null,Bt,Yt,V);if(Jt)w.tag=xt,w.anchor=Nt,w.kind="mapping",w.result=Et;return Jt}t(ke,"readBlockMapping");function ui(w){let pt=!1,Ft=!1,Ot,Bt,Yt=w.input.charCodeAt(w.position);if(Yt!==33)return!1;if(w.tag!==null)et(w,"duplication of a tag property");if(Yt=w.input.charCodeAt(++w.position),Yt===60)pt=!0,Yt=w.input.charCodeAt(++w.position);else if(Yt===33)Ft=!0,Ot="!!",Yt=w.input.charCodeAt(++w.position);else Ot="!";let V=w.position;if(pt){do Yt=w.input.charCodeAt(++w.position);while(Yt!==0&&Yt!==62);if(w.position<w.length)Bt=w.input.slice(V,w.position),Yt=w.input.charCodeAt(++w.position);else et(w,"unexpected end of the stream within a verbatim tag")}else{while(Yt!==0&&!J(Yt)){if(Yt===33)if(!Ft){if(Ot=w.input.slice(V-1,w.position+1),!M.test(Ot))et(w,"named tag handle cannot contain such characters");Ft=!0,V=w.position+1}else et(w,"tag suffix cannot contain exclamation marks");Yt=w.input.charCodeAt(++w.position)}if(Bt=w.input.slice(V,w.position),v.test(Bt))et(w,"tag suffix cannot contain flow indicator characters")}if(Bt&&!q.test(Bt))et(w,"tag name cannot contain such characters: "+Bt);try{Bt=decodeURIComponent(Bt)}catch(xt){et(w,"tag name is malformed: "+Bt)}if(pt)w.tag=Bt;else if(o.call(w.tagMap,Ot))w.tag=w.tagMap[Ot]+Bt;else if(Ot==="!")w.tag="!"+Bt;else if(Ot==="!!")w.tag="tag:yaml.org,2002:"+Bt;else et(w,'undeclared tag handle "'+Ot+'"');return!0}t(ui,"readTagProperty");function Qe(w){let pt=w.input.charCodeAt(w.position);if(pt!==38)return!1;if(w.anchor!==null)et(w,"duplication of an anchor property");pt=w.input.charCodeAt(++w.position);let Ft=w.position;while(pt!==0&&!J(pt)&&!tt(pt))pt=w.input.charCodeAt(++w.position);if(w.position===Ft)et(w,"name of an anchor node must contain at least one character");return w.anchor=w.input.slice(Ft,w.position),!0}t(Qe,"readAnchorProperty");function _r(w){let pt=w.input.charCodeAt(w.position);if(pt!==42)return!1;pt=w.input.charCodeAt(++w.position);let Ft=w.position;while(pt!==0&&!J(pt)&&!tt(pt))pt=w.input.charCodeAt(++w.position);if(w.position===Ft)et(w,"name of an alias node must contain at least one character");let Ot=w.input.slice(Ft,w.position);if(!o.call(w.anchorMap,Ot))et(w,'unidentified alias "'+Ot+'"');return w.result=w.anchorMap[Ot],ne(w,!0,-1),!0}t(_r,"readAlias");function Di(w,pt,Ft,Ot){let Bt=oe(w);if(Vt(w),de(w,pt),w.tag=null,w.anchor=null,w.kind=null,w.result=null,ke(w,Ft,Ot)&&w.kind==="mapping")return Xt(w),!0;return se(w),de(w,Bt),!1}t(Di,"tryReadBlockMappingFromProperty");function We(w,pt,Ft,Ot,Bt){let Yt,V,xt=1,Nt=!1,Et=!1,$t=null,Ht,Wt,Qt;if(w.depth>=w.maxDepth)et(w,"nesting exceeded maxDepth ("+w.maxDepth+")");if(w.depth+=1,w.listener!==null)w.listener("open",w);w.tag=null,w.anchor=null,w.kind=null,w.result=null;let Zt=Yt=V=d===Ft||l===Ft;if(Ot){if(ne(w,!0,-1)){if(Nt=!0,w.lineIndent>pt)xt=1;else if(w.lineIndent===pt)xt=0;else if(w.lineIndent<pt)xt=-1}}if(xt===1)while(!0){let Jt=w.input.charCodeAt(w.position),ee=oe(w);if(Nt&&(Jt===33&&w.tag!==null||Jt===38&&w.anchor!==null))break;if(!ui(w)&&!Qe(w))break;if($t===null)$t=ee;if(ne(w,!0,-1)){if(Nt=!0,V=Zt,w.lineIndent>pt)xt=1;else if(w.lineIndent===pt)xt=0;else if(w.lineIndent<pt)xt=-1}else V=!1}if(V)V=Nt||Bt;if(xt===1||d===Ft){if(n===Ft||h===Ft)Wt=pt;else Wt=pt+1;if(Qt=w.position-w.lineStart,xt===1)if(V&&(gr(w,Qt)||ke(w,Qt,Wt))||$i(w,Wt))Et=!0;else{let Jt=w.input.charCodeAt(w.position);if($t!==null&&Zt&&!V&&Jt!==124&&Jt!==62&&Di(w,$t,$t.position-$t.lineStart,Wt))Et=!0;else if(Yt&&Se(w,Wt)||ci(w,Wt)||Tr(w,Wt))Et=!0;else if(_r(w)){if(Et=!0,w.tag!==null||w.anchor!==null)et(w,"alias node should not have any properties")}else if(Ar(w,Wt,n===Ft)){if(Et=!0,w.tag===null)w.tag="?"}if(w.anchor!==null)Mt(w,w.anchor,w.result)}else if(xt===0)Et=V&&gr(w,Qt)}if(w.tag===null){if(w.anchor!==null)Mt(w,w.anchor,w.result)}else if(w.tag==="?"){if(w.result!==null&&w.kind!=="scalar")et(w,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+w.kind+'"');for(let Jt=0,ee=w.implicitTypes.length;Jt<ee;Jt+=1)if(Ht=w.implicitTypes[Jt],Ht.resolve(w.result)){if(w.result=Ht.construct(w.result),w.tag=Ht.tag,w.anchor!==null)Mt(w,w.anchor,w.result);break}}else if(w.tag!=="!"){if(o.call(w.typeMap[w.kind||"fallback"],w.tag))Ht=w.typeMap[w.kind||"fallback"][w.tag];else{Ht=null;let Jt=w.typeMap.multi[w.kind||"fallback"];for(let ee=0,pe=Jt.length;ee<pe;ee+=1)if(w.tag.slice(0,Jt[ee].tag.length)===Jt[ee].tag){Ht=Jt[ee];break}}if(!Ht)et(w,"unknown tag !<"+w.tag+">");if(w.result!==null&&Ht.kind!==w.kind)et(w,"unacceptable node kind for !<"+w.tag+'> tag; it should be "'+Ht.kind+'", not "'+w.kind+'"');if(!Ht.resolve(w.result,w.tag))et(w,"cannot resolve a node with !<"+w.tag+"> explicit tag");else if(w.result=Ht.construct(w.result,w.tag),w.anchor!==null)Mt(w,w.anchor,w.result)}if(w.listener!==null)w.listener("close",w);return w.depth-=1,w.tag!==null||w.anchor!==null||Et}t(We,"composeNode");function Pi(w){let pt=w.position,Ft=!1,Ot;w.version=null,w.checkLineBreaks=w.legacy,w.tagMap=Object.create(null),w.anchorMap=Object.create(null);while((Ot=w.input.charCodeAt(w.position))!==0){if(ne(w,!0,-1),Ot=w.input.charCodeAt(w.position),w.lineIndent>0||Ot!==37)break;Ft=!0,Ot=w.input.charCodeAt(++w.position);let Bt=w.position;while(Ot!==0&&!J(Ot))Ot=w.input.charCodeAt(++w.position);let Yt=w.input.slice(Bt,w.position),V=[];if(Yt.length<1)et(w,"directive name must not be less than one character in length");while(Ot!==0){while(K(Ot))Ot=w.input.charCodeAt(++w.position);if(Ot===35){do Ot=w.input.charCodeAt(++w.position);while(Ot!==0&&!j(Ot));break}if(j(Ot))break;Bt=w.position;while(Ot!==0&&!J(Ot))Ot=w.input.charCodeAt(++w.position);V.push(w.input.slice(Bt,w.position))}if(Ot!==0)ae(w);if(o.call(ge,Yt))ge[Yt](w,Yt,V);else _t(w,'unknown document directive "'+Yt+'"')}if(ne(w,!0,-1),w.lineIndent===0&&w.input.charCodeAt(w.position)===45&&w.input.charCodeAt(w.position+1)===45&&w.input.charCodeAt(w.position+2)===45)w.position+=3,ne(w,!0,-1);else if(Ft)et(w,"directives end mark is expected");if(We(w,w.lineIndent-1,d,!1,!0),ne(w,!0,-1),w.checkLineBreaks&&_.test(w.input.slice(pt,w.position)))_t(w,"non-ASCII line breaks are interpreted as content");if(w.documents.push(w.result),w.position===w.lineStart&&Ae(w)){if(w.input.charCodeAt(w.position)===46)w.position+=3,ne(w,!0,-1);return}if(w.position<w.length-1)et(w,"end of the stream or a document separator is expected")}t(Pi,"readDocument");function Yr(w,pt){if(w=String(w),pt=pt||{},w.length!==0){if(w.charCodeAt(w.length-1)!==10&&w.charCodeAt(w.length-1)!==13)w+=`
|
|
145
|
+
`;if(w.charCodeAt(0)===65279)w=w.slice(1)}let Ft=new ot(w,pt),Ot=w.indexOf("\x00");if(Ot!==-1)Ft.position=Ot,et(Ft,"null byte is not allowed in input");Ft.input+="\x00";while(Ft.input.charCodeAt(Ft.position)===32)Ft.lineIndent+=1,Ft.position+=1;while(Ft.position<Ft.length-1)Pi(Ft);return Ft.documents}t(Yr,"loadDocuments");function fi(w,pt,Ft){if(pt!==null&&typeof pt==="object"&&typeof Ft>"u")Ft=pt,pt=null;let Ot=Yr(w,Ft);if(typeof pt!=="function")return Ot;for(let Bt=0,Yt=Ot.length;Bt<Yt;Bt+=1)pt(Ot[Bt])}t(fi,"loadAll2");function di(w,pt){let Ft=Yr(w,pt);if(Ft.length===0)return;else if(Ft.length===1)return Ft[0];throw new e("expected a single document in the stream, but found more")}return t(di,"load2"),Ol.loadAll=fi,Ol.load=di,Ol}t(Yg,"requireLoader");var qu={},Ng;function Ug(){if(Ng)return qu;Ng=1;let r=ls(),e=hs(),i=Il(),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty,n=65279,h=9,l=10,d=13,y=32,c=33,x=34,b=35,_=37,v=38,M=39,q=42,W=44,j=45,K=58,J=61,tt=62,at=63,st=64,dt=91,bt=93,At=96,wt=123,kt=124,it=125,ot={};ot[0]="\\0",ot[7]="\\a",ot[8]="\\b",ot[9]="\\t",ot[10]="\\n",ot[11]="\\v",ot[12]="\\f",ot[13]="\\r",ot[27]="\\e",ot[34]="\\\"",ot[92]="\\\\",ot[133]="\\N",ot[160]="\\_",ot[8232]="\\L",ot[8233]="\\P";let mt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],et=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function _t(V,xt){if(xt===null)return{};let Nt={},Et=Object.keys(xt);for(let $t=0,Ht=Et.length;$t<Ht;$t+=1){let Wt=Et[$t],Qt=String(xt[Wt]);if(Wt.slice(0,2)==="!!")Wt="tag:yaml.org,2002:"+Wt.slice(2);let Zt=V.compiledTypeMap.fallback[Wt];if(Zt&&o.call(Zt.styleAliases,Qt))Qt=Zt.styleAliases[Qt];Nt[Wt]=Qt}return Nt}t(_t,"compileStyleMap");function Mt(V){let xt,Nt,Et=V.toString(16).toUpperCase();if(V<=255)xt="x",Nt=2;else if(V<=65535)xt="u",Nt=4;else if(V<=4294967295)xt="U",Nt=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+xt+r.repeat("0",Nt-Et.length)+Et}t(Mt,"encodeHex");let Vt=1,Xt=2;function se(V){this.schema=V.schema||i,this.indent=Math.max(1,V.indent||2),this.noArrayIndent=V.noArrayIndent||!1,this.skipInvalid=V.skipInvalid||!1,this.flowLevel=r.isNothing(V.flowLevel)?-1:V.flowLevel,this.styleMap=_t(this.schema,V.styles||null),this.sortKeys=V.sortKeys||!1,this.lineWidth=V.lineWidth||80,this.noRefs=V.noRefs||!1,this.noCompatMode=V.noCompatMode||!1,this.condenseFlow=V.condenseFlow||!1,this.quotingType=V.quotingType==='"'?Xt:Vt,this.forceQuotes=V.forceQuotes||!1,this.replacer=typeof V.replacer==="function"?V.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}t(se,"State");function oe(V,xt){let Nt=r.repeat(" ",xt),Et=0,$t="",Ht=V.length;while(Et<Ht){let Wt,Qt=V.indexOf(`
|
|
146
|
+
`,Et);if(Qt===-1)Wt=V.slice(Et),Et=Ht;else Wt=V.slice(Et,Qt+1),Et=Qt+1;if(Wt.length&&Wt!==`
|
|
147
|
+
`)$t+=Nt;$t+=Wt}return $t}t(oe,"indentString");function de(V,xt){return`
|
|
148
|
+
`+r.repeat(" ",V.indent*xt)}t(de,"generateNextLine");function ge(V,xt){for(let Nt=0,Et=V.implicitTypes.length;Nt<Et;Nt+=1)if(V.implicitTypes[Nt].resolve(xt))return!0;return!1}t(ge,"testImplicitResolving");function he(V){return V===y||V===h}t(he,"isWhitespace");function Gt(V){return V>=32&&V<=126||V>=161&&V<=55295&&V!==8232&&V!==8233||V>=57344&&V<=65533&&V!==n||V>=65536&&V<=1114111}t(Gt,"isPrintable");function re(V){return Gt(V)&&V!==n&&V!==d&&V!==l}t(re,"isNsCharOrWhitespace");function ae(V,xt,Nt){let Et=re(V),$t=Et&&!he(V);return(Nt?Et:Et&&V!==W&&V!==dt&&V!==bt&&V!==wt&&V!==it)&&V!==b&&!(xt===K&&!$t)||re(xt)&&!he(xt)&&V===b||xt===K&&$t}t(ae,"isPlainSafe");function ne(V){return Gt(V)&&V!==n&&!he(V)&&V!==j&&V!==at&&V!==K&&V!==W&&V!==dt&&V!==bt&&V!==wt&&V!==it&&V!==b&&V!==v&&V!==q&&V!==c&&V!==kt&&V!==J&&V!==tt&&V!==M&&V!==x&&V!==_&&V!==st&&V!==At}t(ne,"isPlainSafeFirst");function Ae(V){return!he(V)&&V!==K}t(Ae,"isPlainSafeLast");function ve(V,xt){let Nt=V.charCodeAt(xt),Et;if(Nt>=55296&&Nt<=56319&&xt+1<V.length){if(Et=V.charCodeAt(xt+1),Et>=56320&&Et<=57343)return(Nt-55296)*1024+Et-56320+65536}return Nt}t(ve,"codePointAt");function Ar(V){return/^\n* /.test(V)}t(Ar,"needIndentIndicator");let ci=1,Tr=2,$i=3,Se=4,gr=5;function ke(V,xt,Nt,Et,$t,Ht,Wt,Qt){let Zt,Jt=0,ee=null,pe=!1,Be=!1,bs=Et!==-1,Ri=-1,qi=ne(ve(V,0))&&Ae(ve(V,V.length-1));if(xt||Wt)for(Zt=0;Zt<V.length;Jt>=65536?Zt+=2:Zt++){if(Jt=ve(V,Zt),!Gt(Jt))return gr;qi=qi&&ae(Jt,ee,Qt),ee=Jt}else{for(Zt=0;Zt<V.length;Jt>=65536?Zt+=2:Zt++){if(Jt=ve(V,Zt),Jt===l){if(pe=!0,bs)Be=Be||Zt-Ri-1>Et&&V[Ri+1]!==" ",Ri=Zt}else if(!Gt(Jt))return gr;qi=qi&&ae(Jt,ee,Qt),ee=Jt}Be=Be||bs&&(Zt-Ri-1>Et&&V[Ri+1]!==" ")}if(!pe&&!Be){if(qi&&!Wt&&!$t(V))return ci;return Ht===Xt?gr:Tr}if(Nt>9&&Ar(V))return gr;if(!Wt)return Be?Se:$i;return Ht===Xt?gr:Tr}t(ke,"chooseScalarStyle");function ui(V,xt,Nt,Et,$t){V.dump=function(){if(xt.length===0)return V.quotingType===Xt?'""':"''";if(!V.noCompatMode){if(mt.indexOf(xt)!==-1||et.test(xt))return V.quotingType===Xt?'"'+xt+'"':"'"+xt+"'"}let Ht=V.indent*Math.max(1,Nt),Wt=V.lineWidth===-1?-1:Math.max(Math.min(V.lineWidth,40),V.lineWidth-Ht),Qt=Et||V.flowLevel>-1&&Nt>=V.flowLevel;function Zt(Jt){return ge(V,Jt)}switch(t(Zt,"testAmbiguity"),ke(xt,Qt,V.indent,Wt,Zt,V.quotingType,V.forceQuotes&&!Et,$t)){case ci:return xt;case Tr:return"'"+xt.replace(/'/g,"''")+"'";case $i:return"|"+Qe(xt,V.indent)+_r(oe(xt,Ht));case Se:return">"+Qe(xt,V.indent)+_r(oe(Di(xt,Wt),Ht));case gr:return'"'+Pi(xt)+'"';default:throw new e("impossible error: invalid scalar style")}}()}t(ui,"writeScalar");function Qe(V,xt){let Nt=Ar(V)?String(xt):"",Et=V[V.length-1]===`
|
|
149
|
+
`,Ht=Et&&(V[V.length-2]===`
|
|
150
|
+
`||V===`
|
|
151
|
+
`)?"+":Et?"":"-";return Nt+Ht+`
|
|
152
|
+
`}t(Qe,"blockHeader");function _r(V){return V[V.length-1]===`
|
|
153
|
+
`?V.slice(0,-1):V}t(_r,"dropEndingNewline");function Di(V,xt){let Nt=/(\n+)([^\n]*)/g,Et=function(){let Qt=V.indexOf(`
|
|
154
|
+
`);return Qt=Qt!==-1?Qt:V.length,Nt.lastIndex=Qt,We(V.slice(0,Qt),xt)}(),$t=V[0]===`
|
|
155
|
+
`||V[0]===" ",Ht,Wt;while(Wt=Nt.exec(V)){let Qt=Wt[1],Zt=Wt[2];Ht=Zt[0]===" ",Et+=Qt+(!$t&&!Ht&&Zt!==""?`
|
|
156
|
+
`:"")+We(Zt,xt),$t=Ht}return Et}t(Di,"foldString");function We(V,xt){if(V===""||V[0]===" ")return V;let Nt=/ [^ ]/g,Et,$t=0,Ht,Wt=0,Qt=0,Zt="";while(Et=Nt.exec(V)){if(Qt=Et.index,Qt-$t>xt)Ht=Wt>$t?Wt:Qt,Zt+=`
|
|
157
|
+
`+V.slice($t,Ht),$t=Ht+1;Wt=Qt}if(Zt+=`
|
|
158
|
+
`,V.length-$t>xt&&Wt>$t)Zt+=V.slice($t,Wt)+`
|
|
159
|
+
`+V.slice(Wt+1);else Zt+=V.slice($t);return Zt.slice(1)}t(We,"foldLine");function Pi(V){let xt="",Nt=0;for(let Et=0;Et<V.length;Nt>=65536?Et+=2:Et++){Nt=ve(V,Et);let $t=ot[Nt];if(!$t&&Gt(Nt)){if(xt+=V[Et],Nt>=65536)xt+=V[Et+1]}else xt+=$t||Mt(Nt)}return xt}t(Pi,"escapeString");function Yr(V,xt,Nt){let Et="",$t=V.tag;for(let Ht=0,Wt=Nt.length;Ht<Wt;Ht+=1){let Qt=Nt[Ht];if(V.replacer)Qt=V.replacer.call(Nt,String(Ht),Qt);if(Ft(V,xt,Qt,!1,!1)||typeof Qt>"u"&&Ft(V,xt,null,!1,!1)){if(Et!=="")Et+=","+(!V.condenseFlow?" ":"");Et+=V.dump}}V.tag=$t,V.dump="["+Et+"]"}t(Yr,"writeFlowSequence");function fi(V,xt,Nt,Et){let $t="",Ht=V.tag;for(let Wt=0,Qt=Nt.length;Wt<Qt;Wt+=1){let Zt=Nt[Wt];if(V.replacer)Zt=V.replacer.call(Nt,String(Wt),Zt);if(Ft(V,xt+1,Zt,!0,!0,!1,!0)||typeof Zt>"u"&&Ft(V,xt+1,null,!0,!0,!1,!0)){if(!Et||$t!=="")$t+=de(V,xt);if(V.dump&&l===V.dump.charCodeAt(0))$t+="-";else $t+="- ";$t+=V.dump}}V.tag=Ht,V.dump=$t||"[]"}t(fi,"writeBlockSequence");function di(V,xt,Nt){let Et="",$t=V.tag,Ht=Object.keys(Nt);for(let Wt=0,Qt=Ht.length;Wt<Qt;Wt+=1){let Zt="";if(Et!=="")Zt+=", ";if(V.condenseFlow)Zt+='"';let Jt=Ht[Wt],ee=Nt[Jt];if(V.replacer)ee=V.replacer.call(Nt,Jt,ee);if(!Ft(V,xt,Jt,!1,!1))continue;if(V.dump.length>1024)Zt+="? ";if(Zt+=V.dump+(V.condenseFlow?'"':"")+":"+(V.condenseFlow?"":" "),!Ft(V,xt,ee,!1,!1))continue;Zt+=V.dump,Et+=Zt}V.tag=$t,V.dump="{"+Et+"}"}t(di,"writeFlowMapping");function w(V,xt,Nt,Et){let $t="",Ht=V.tag,Wt=Object.keys(Nt);if(V.sortKeys===!0)Wt.sort();else if(typeof V.sortKeys==="function")Wt.sort(V.sortKeys);else if(V.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let Qt=0,Zt=Wt.length;Qt<Zt;Qt+=1){let Jt="";if(!Et||$t!=="")Jt+=de(V,xt);let ee=Wt[Qt],pe=Nt[ee];if(V.replacer)pe=V.replacer.call(Nt,ee,pe);if(!Ft(V,xt+1,ee,!0,!0,!0))continue;let Be=V.tag!==null&&V.tag!=="?"||V.dump&&V.dump.length>1024;if(Be)if(V.dump&&l===V.dump.charCodeAt(0))Jt+="?";else Jt+="? ";if(Jt+=V.dump,Be)Jt+=de(V,xt);if(!Ft(V,xt+1,pe,!0,Be))continue;if(V.dump&&l===V.dump.charCodeAt(0))Jt+=":";else Jt+=": ";Jt+=V.dump,$t+=Jt}V.tag=Ht,V.dump=$t||"{}"}t(w,"writeBlockMapping");function pt(V,xt,Nt){let Et=Nt?V.explicitTypes:V.implicitTypes;for(let $t=0,Ht=Et.length;$t<Ht;$t+=1){let Wt=Et[$t];if((Wt.instanceOf||Wt.predicate)&&(!Wt.instanceOf||typeof xt==="object"&&xt instanceof Wt.instanceOf)&&(!Wt.predicate||Wt.predicate(xt))){if(Nt)if(Wt.multi&&Wt.representName)V.tag=Wt.representName(xt);else V.tag=Wt.tag;else V.tag="?";if(Wt.represent){let Qt=V.styleMap[Wt.tag]||Wt.defaultStyle,Zt;if(s.call(Wt.represent)==="[object Function]")Zt=Wt.represent(xt,Qt);else if(o.call(Wt.represent,Qt))Zt=Wt.represent[Qt](xt,Qt);else throw new e("!<"+Wt.tag+'> tag resolver accepts not "'+Qt+'" style');V.dump=Zt}return!0}}return!1}t(pt,"detectType");function Ft(V,xt,Nt,Et,$t,Ht,Wt){if(V.tag=null,V.dump=Nt,!pt(V,Nt,!1))pt(V,Nt,!0);let Qt=s.call(V.dump),Zt=Et;if(Et)Et=V.flowLevel<0||V.flowLevel>xt;let Jt=Qt==="[object Object]"||Qt==="[object Array]",ee,pe;if(Jt)ee=V.duplicates.indexOf(Nt),pe=ee!==-1;if(V.tag!==null&&V.tag!=="?"||pe||V.indent!==2&&xt>0)$t=!1;if(pe&&V.usedDuplicates[ee])V.dump="*ref_"+ee;else{if(Jt&&pe&&!V.usedDuplicates[ee])V.usedDuplicates[ee]=!0;if(Qt==="[object Object]"){if(Et&&Object.keys(V.dump).length!==0){if(w(V,xt,V.dump,$t),pe)V.dump="&ref_"+ee+V.dump}else if(di(V,xt,V.dump),pe)V.dump="&ref_"+ee+" "+V.dump}else if(Qt==="[object Array]"){if(Et&&V.dump.length!==0){if(V.noArrayIndent&&!Wt&&xt>0)fi(V,xt-1,V.dump,$t);else fi(V,xt,V.dump,$t);if(pe)V.dump="&ref_"+ee+V.dump}else if(Yr(V,xt,V.dump),pe)V.dump="&ref_"+ee+" "+V.dump}else if(Qt==="[object String]"){if(V.tag!=="?")ui(V,V.dump,xt,Ht,Zt)}else if(Qt==="[object Undefined]")return!1;else{if(V.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+Qt)}if(V.tag!==null&&V.tag!=="?"){let Be=encodeURI(V.tag[0]==="!"?V.tag.slice(1):V.tag).replace(/!/g,"%21");if(V.tag[0]==="!")Be="!"+Be;else if(Be.slice(0,18)==="tag:yaml.org,2002:")Be="!!"+Be.slice(18);else Be="!<"+Be+">";V.dump=Be+" "+V.dump}}return!0}t(Ft,"writeNode");function Ot(V,xt){let Nt=[],Et=[];Bt(V,Nt,Et);let $t=Et.length;for(let Ht=0;Ht<$t;Ht+=1)xt.duplicates.push(Nt[Et[Ht]]);xt.usedDuplicates=Array($t)}t(Ot,"getDuplicateReferences");function Bt(V,xt,Nt){if(V!==null&&typeof V==="object"){let Et=xt.indexOf(V);if(Et!==-1){if(Nt.indexOf(Et)===-1)Nt.push(Et)}else if(xt.push(V),Array.isArray(V))for(let $t=0,Ht=V.length;$t<Ht;$t+=1)Bt(V[$t],xt,Nt);else{let $t=Object.keys(V);for(let Ht=0,Wt=$t.length;Ht<Wt;Ht+=1)Bt(V[$t[Ht]],xt,Nt)}}}t(Bt,"inspectNode");function Yt(V,xt){xt=xt||{};let Nt=new se(xt);if(!Nt.noRefs)Ot(V,Nt);let Et=V;if(Nt.replacer)Et=Nt.replacer.call({"":Et},"",Et);if(Ft(Nt,0,Et,!0,!0))return Nt.dump+`
|
|
160
|
+
`;return""}return t(Yt,"dump2"),qu.dump=Yt,qu}t(Ug,"requireDumper");var Wg;function jg(){if(Wg)return ar;Wg=1;let r=Yg(),e=Ug();function i(s,o){return function(){throw Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}return t(i,"renamed"),ar.Type=nr(),ar.Schema=Nu(),ar.FAILSAFE_SCHEMA=Yu(),ar.JSON_SCHEMA=Vu(),ar.CORE_SCHEMA=Ku(),ar.DEFAULT_SCHEMA=Il(),ar.load=r.load,ar.loadAll=r.loadAll,ar.dump=e.dump,ar.YAMLException=hs(),ar.types={binary:Ju(),float:Xu(),map:Hu(),null:Uu(),pairs:ef(),set:rf(),timestamp:Zu(),bool:ju(),int:Gu(),merge:Qu(),omap:tf(),seq:zu(),str:Wu()},ar.safeLoad=i("safeLoad","load"),ar.safeLoadAll=i("safeLoadAll","loadAll"),ar.safeDump=i("safeDump","dump"),ar}t(jg,"requireJsYaml");var t2=jg(),e2=zg(t2),{Type:I3,Schema:$3,FAILSAFE_SCHEMA:D3,JSON_SCHEMA:Ut,CORE_SCHEMA:P3,DEFAULT_SCHEMA:R3,load:jt,loadAll:q3,dump:N3,YAMLException:W3,types:z3,safeLoad:H3,safeLoadAll:Y3,safeDump:U3}=e2;var yo=t((r,e)=>{let{theme:i,themeVariables:s}=e,{useGradient:o,gradientStart:n,gradientStop:h}=s??{},l=r.attr("id"),d=i?.includes("dark")?"#FFFFFF":"#000000",y=t((x,b,_)=>r.append("defs").append("filter").attr("id",x).attr("height",b).attr("width",b).append("feDropShadow").attr("dx",_).attr("dy",_).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",d),"dropShadow");if(y(`${l}-drop-shadow`,"130%","4"),y(`${l}-drop-shadow-small`,"150%","2"),!o)return;let c=r.append("linearGradient").attr("id",`${l}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");c.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),c.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)},"insertLookDefs");var Gg=t((r)=>{let{handDrawnSeed:e}=u();return{fill:r,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:0.7,stroke:r,seed:e}},"solidStateFill"),r2=t((r)=>{if(Array.isArray(r))return r;if(!r)return[];return r.split(";").map((e)=>e.trim()).filter(Boolean)},"normalizeStyleList"),ii=t((r)=>{let e=i2([...r.cssCompiledStyles||[],...r.cssStyles||[],...r2(r.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),i2=t((r)=>{let e=new Map;return r.forEach((i)=>{let[s,o]=i.split(":");e.set(s.trim(),o?.trim())}),e},"styles2Map"),_i=t((r)=>r==="color"||r==="font-size"||r==="font-family"||r==="font-weight"||r==="font-style"||r==="text-decoration"||r==="text-align"||r==="text-transform"||r==="line-height"||r==="letter-spacing"||r==="word-spacing"||r==="text-shadow"||r==="text-overflow"||r==="white-space"||r==="word-wrap"||r==="word-break"||r==="overflow-wrap"||r==="hyphens","isLabelStyle"),E=t((r)=>{let{stylesArray:e}=ii(r),i=[],s=[],o=[],n=[];return e.forEach((h)=>{let l=h[0];if(_i(l))i.push(h.join(":")+" !important");else{if(s.push(h.join(":")+" !important"),l.includes("stroke"))o.push(h.join(":")+" !important");if(l==="fill")n.push(h.join(":")+" !important")}}),{labelStyles:i.join(";"),nodeStyles:s.join(";"),stylesArray:e,borderStyles:o,backgroundStyles:n}},"styles2String"),Kt=t((r,e)=>{let{themeVariables:i,handDrawnSeed:s}=u(),{nodeBorder:o,mainBkg:n}=i,{stylesMap:h}=ii(r);return Object.assign({roughness:0.7,fill:h.get("fill")||n,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:h.get("stroke")||o,seed:s,strokeWidth:h.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:o2(h.get("stroke-dasharray"))},e)},"userNodeOverrides"),o2=t((r)=>{if(!r)return[0,0];let e=r.trim().split(/\s+/).map(Number);if(e.length===1){let o=isNaN(e[0])?0:e[0];return[o,o]}let i=isNaN(e[0])?0:e[0],s=isNaN(e[1])?0:e[1];return[i,s]},"getStrokeDashArray");var of=(r,e,i,s="")=>{let o=r.split(":");if(r.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){let l=o.pop(),d=o.pop(),y={provider:o.length>0?o[0]:s,prefix:d,name:l};return e&&!$l(y)?null:y}let n=o[0],h=n.split("-");if(h.length>1){let l={provider:s,prefix:h.shift(),name:h.join("-")};return e&&!$l(l)?null:l}if(i&&s===""){let l={provider:s,prefix:"",name:n};return e&&!$l(l,i)?null:l}return null},$l=(r,e)=>{if(!r)return!1;return!!((e&&r.prefix===""||!!r.prefix)&&!!r.name)};var s2=Object.freeze({left:0,top:0,width:16,height:16}),cs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),sf=Object.freeze({...s2,...cs}),Xg=Object.freeze({...sf,body:"",hidden:!1});function Vg(r,e){let i={};if(!r.hFlip!==!e.hFlip)i.hFlip=!0;if(!r.vFlip!==!e.vFlip)i.vFlip=!0;let s=((r.rotate||0)+(e.rotate||0))%4;if(s)i.rotate=s;return i}function af(r,e){let i=Vg(r,e);for(let s in Xg)if(s in cs){if(s in r&&!(s in i))i[s]=cs[s]}else if(s in e)i[s]=e[s];else if(s in r)i[s]=r[s];return i}function Kg(r,e){let i=r.icons,s=r.aliases||Object.create(null),o=Object.create(null);function n(h){if(i[h])return o[h]=[];if(!(h in o)){o[h]=null;let l=s[h]&&s[h].parent,d=l&&n(l);if(d)o[h]=[l].concat(d)}return o[h]}return(e||Object.keys(i).concat(Object.keys(s))).forEach(n),o}function Zg(r,e,i){let s=r.icons,o=r.aliases||Object.create(null),n={};function h(l){n=af(s[l]||o[l],n)}return h(e),i.forEach(h),af(r,n)}function nf(r,e){if(r.icons[e])return Zg(r,e,[]);let i=Kg(r,[e])[e];return i?Zg(r,e,i):null}var a2=Object.freeze({width:null,height:null}),Qg=Object.freeze({...a2,...cs});var n2=/(-?[0-9.]*[0-9]+[0-9.]*)/g,l2=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function lf(r,e,i){if(e===1)return r;if(i=i||100,typeof r==="number")return Math.ceil(r*e*i)/i;if(typeof r!=="string")return r;let s=r.split(n2);if(s===null||!s.length)return r;let o=[],n=s.shift(),h=l2.test(n);while(!0){if(h){let l=parseFloat(n);if(isNaN(l))o.push(n);else o.push(Math.ceil(l*e*i)/i)}else o.push(n);if(n=s.shift(),n===void 0)return o.join("");h=!h}}function h2(r,e="defs"){let i="",s=r.indexOf("<"+e);while(s>=0){let o=r.indexOf(">",s),n=r.indexOf("</"+e);if(o===-1||n===-1)break;let h=r.indexOf(">",n);if(h===-1)break;i+=r.slice(o+1,n).trim(),r=r.slice(0,s).trim()+r.slice(h+1)}return{defs:i,content:r}}function c2(r,e){return r?"<defs>"+r+"</defs>"+e:e}function Jg(r,e,i){let s=h2(r);return c2(s.defs,e+s.content+i)}var u2=(r)=>r==="unset"||r==="undefined"||r==="none";function hf(r,e){let i={...sf,...r},s={...Qg,...e},o={left:i.left,top:i.top,width:i.width,height:i.height},n=i.body;[i,s].forEach((M)=>{let q=[],{hFlip:W,vFlip:j,rotate:K}=M;if(W)if(j)K+=2;else q.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),q.push("scale(-1 1)"),o.top=o.left=0;else if(j)q.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),q.push("scale(1 -1)"),o.top=o.left=0;let J;if(K<0)K-=Math.floor(K/4)*4;switch(K=K%4,K){case 1:J=o.height/2+o.top,q.unshift("rotate(90 "+J.toString()+" "+J.toString()+")");break;case 2:q.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:J=o.width/2+o.left,q.unshift("rotate(-90 "+J.toString()+" "+J.toString()+")")}if(K%2===1){if(o.left!==o.top)J=o.left,o.left=o.top,o.top=J;if(o.width!==o.height)J=o.width,o.width=o.height,o.height=J}if(q.length)n=Jg(n,'<g transform="'+q.join(" ")+'">',"</g>")});let{width:h,height:l}=s,{width:d,height:y}=o,c,x;if(h===null)x=l===null?"1em":l==="auto"?y:l,c=lf(x,d/y);else c=h==="auto"?d:h,x=l===null?lf(c,y/d):l==="auto"?y:l;let b={},_=(M,q)=>{if(!u2(q))b[M]=q.toString()};_("width",c),_("height",x);let v=[o.left,o.top,d,y];return b.viewBox=v.join(" "),{attributes:b,viewBox:v,body:n}}var f2=/\sid="(\S+)"/g,tm=new Map;function d2(r){r=r.replace(/[0-9]+$/,"")||"a";let e=tm.get(r)||0;return tm.set(r,e+1),e?`${r}${e}`:r}function cf(r){let e=[],i;while(i=f2.exec(r))e.push(i[1]);if(!e.length)return r;let s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach((o)=>{let n=d2(o),h=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+h+')([")]|\\.[a-z])',"g"),"$1"+n+s+"$3")}),r=r.replace(new RegExp(s,"g"),""),r}function uf(r,e){let i=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let s in e)i+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+i+">"+r+"</svg>"}var Ps={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},ff=new Map,em=new Map,Mr=t((r)=>{for(let e of r){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(a.debug("Registering icon pack:",e.name),"loader"in e)em.set(e.name,e.loader);else if("icons"in e)ff.set(e.name,e.icons);else throw a.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),rm=t(async(r,e)=>{let i=of(r,!0,e!==void 0);if(!i)throw Error(`Invalid icon name: ${r}`);let s=i.prefix||e;if(!s)throw Error(`Icon name must contain a prefix: ${r}`);let o=ff.get(s);if(!o){let h=em.get(s);if(!h)throw Error(`Icon set not found: ${i.prefix}`);try{o={...await h(),prefix:s},ff.set(s,o)}catch(l){throw a.error(l),Error(`Failed to load icon set: ${i.prefix}`)}}let n=nf(o,i.name);if(!n)throw Error(`Icon not found: ${r}`);return n},"getRegisteredIconData"),Dl=t(async(r)=>{try{return await rm(r),!0}catch{return!1}},"isIconAvailable"),qt=t(async(r,e,i)=>{let s;try{s=await rm(r,e?.fallbackPrefix)}catch(h){a.error(h),s=Ps}let o=hf(s,e),n=uf(cf(o.body),{...o.attributes,...i});return U(n,S())},"getIconSVG");var xm=Ye(na(),1);function ro(r,e){if(typeof r!=="function"||e!=null&&typeof e!=="function")throw TypeError("Expected a function");let i=function(...s){let o=e?e.apply(this,s):s[0],n=i.cache;if(n.has(o))return n.get(o);let h=r.apply(this,s);return i.cache=n.set(o,h)||n,h};return i.cache=new(ro.Cache||Map),i}ro.Cache=Map;function Pr(r){return r==null||typeof r!=="object"&&typeof r!=="function"}function lr(r){if(r==null)return r===void 0?"[object Undefined]":"[object Null]";return Object.prototype.toString.call(r)}var vo="[object RegExp]",Ga="[object String]",Ha="[object Number]",Ya="[object Boolean]",Za="[object Arguments]",bo="[object Symbol]",xo="[object Date]",_o="[object Map]",wo="[object Set]",ko="[object Array]";var Co="[object ArrayBuffer]",So="[object Object]";var To="[object DataView]",Eo="[object Uint8Array]",Ao="[object Uint8ClampedArray]",Ro="[object Uint16Array]",Lo="[object Uint32Array]";var Io="[object Int8Array]",Do="[object Int16Array]",No="[object Int32Array]";var Mo="[object Float32Array]",Po="[object Float64Array]";function us(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function cr(r){return us(r)}function lm(){}function hm(r){if(Pr(r))return r;if(Array.isArray(r)||us(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let e=Object.getPrototypeOf(r);if(e==null)return Object.assign(Object.create(e),r);let i=e.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new i(r);if(r instanceof RegExp){let s=new i(r);return s.lastIndex=r.lastIndex,s}if(r instanceof DataView)return new i(r.buffer.slice(0));if(r instanceof Error){let s;if(r instanceof AggregateError)s=new i(r.errors,r.message,{cause:r.cause});else s=new i(r.message,{cause:r.cause});return s.stack=r.stack,Object.assign(s,r),s}if(typeof File<"u"&&r instanceof File)return new i([r],r.name,{type:r.type,lastModified:r.lastModified});if(typeof r==="object")return Object.assign(Object.create(e),r);return r}function Pl(r){return Object.getOwnPropertySymbols(r).filter((e)=>Object.prototype.propertyIsEnumerable.call(r,e))}var df=typeof globalThis==="object"&&globalThis||typeof window==="object"&&window||typeof self==="object"&&self||typeof global==="object"&&global||function(){return this}();function Xa(r){return typeof df.Buffer<"u"&&df.Buffer.isBuffer(r)}function cm(r){return r==="__proto__"}function Rl(r){if(typeof r!=="object")return!1;if(r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){let i=r[Symbol.toStringTag];if(i==null)return!1;if(!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable)return!1;return r.toString()===`[object ${i}]`}let e=r;while(Object.getPrototypeOf(e)!==null)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function um(r,e){return fs(r,void 0,r,new Map,e)}function fs(r,e,i,s=new Map,o=void 0){let n=o?.(r,e,i,s);if(n!==void 0)return n;if(Pr(r))return r;if(s.has(r))return s.get(r);if(Array.isArray(r)){let h=Array(r.length);s.set(r,h);for(let l=0;l<r.length;l++)h[l]=fs(r[l],l,i,s,o);if(Object.hasOwn(r,"index"))h.index=r.index;if(Object.hasOwn(r,"input"))h.input=r.input;return h}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let h=new RegExp(r.source,r.flags);return h.lastIndex=r.lastIndex,h}if(r instanceof Map){let h=new Map;s.set(r,h);for(let[l,d]of r)h.set(l,fs(d,l,i,s,o));return h}if(r instanceof Set){let h=new Set;s.set(r,h);for(let l of r)h.add(fs(l,void 0,i,s,o));return h}if(Xa(r))return r.subarray();if(us(r)){let h=new(Object.getPrototypeOf(r)).constructor(r.length);s.set(r,h);for(let l=0;l<r.length;l++)h[l]=fs(r[l],l,i,s,o);return h}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let h=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return s.set(r,h),Fr(h,r,i,s,o),h}if(typeof File<"u"&&r instanceof File){let h=new File([r],r.name,{type:r.type});return s.set(r,h),Fr(h,r,i,s,o),h}if(typeof Blob<"u"&&r instanceof Blob){let h=new Blob([r],{type:r.type});return s.set(r,h),Fr(h,r,i,s,o),h}if(r instanceof Error){let h=structuredClone(r);return s.set(r,h),h.message=r.message,h.name=r.name,h.stack=r.stack,h.cause=r.cause,h.constructor=r.constructor,Fr(h,r,i,s,o),h}if(r instanceof Boolean){let h=new Boolean(r.valueOf());return s.set(r,h),Fr(h,r,i,s,o),h}if(r instanceof Number){let h=new Number(r.valueOf());return s.set(r,h),Fr(h,r,i,s,o),h}if(r instanceof String){let h=new String(r.valueOf());return s.set(r,h),Fr(h,r,i,s,o),h}if(typeof r==="object"&&B2(r)){let h=Object.create(Object.getPrototypeOf(r));return s.set(r,h),Fr(h,r,i,s,o),h}return r}function Fr(r,e,i=r,s,o){let n=[...Object.keys(e),...Pl(e)];for(let h=0;h<n.length;h++){let l=n[h],d=Object.getOwnPropertyDescriptor(r,l);if(d==null||d.writable)r[l]=fs(e[l],l,i,s,o)}}function B2(r){switch(lr(r)){case Za:case ko:case Co:case To:case Ya:case xo:case Mo:case Po:case Io:case Do:case No:case _o:case Ha:case So:case vo:case wo:case Ga:case bo:case Eo:case Ao:case Ro:case Lo:return!0;default:return!1}}function fm(r,e){return um(r,(i,s,o,n)=>{let h=e?.(i,s,o,n);if(h!==void 0)return h;if(typeof r!=="object")return;if(lr(r)==="[object Object]"&&typeof r.constructor!=="function"){let l={};return n.set(r,l),Fr(l,r,o,n),l}switch(Object.prototype.toString.call(r)){case Ha:case Ga:case Ya:{let l=new r.constructor(r?.valueOf());return Fr(l,r),l}case Za:{let l={};return Fr(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}default:return}})}function pf(r){return fm(r)}function wi(r){return r!==null&&typeof r==="object"&&lr(r)==="[object Arguments]"}function Ma(r){return typeof r==="object"&&r!==null}function dm(r){return Number.isSafeInteger(r)&&r>=0}function Oo(r){return r!=null&&typeof r!=="function"&&dm(r.length)}function pm(r){return Ma(r)&&Oo(r)}function gm(r,...e){let i=e.slice(0,-1),s=e[e.length-1],o=r;for(let n=0;n<i.length;n++){let h=i[n];o=ql(o,h,s,new Map)}return o}function ql(r,e,i,s){if(Pr(r))r=Object(r);if(e==null||typeof e!=="object")return r;if(s.has(e))return hm(s.get(e));if(s.set(e,r),Array.isArray(e)){e=e.slice();for(let n=0;n<e.length;n++)if(!(n in e))e[n]=void 0}let o=[...Object.keys(e),...Pl(e)];for(let n=0;n<o.length;n++){let h=o[n];if(cm(h))continue;let l=e[h],d=r[h];if(wi(l))l={...l};if(wi(d))d={...d};if(Xa(l))l=pf(l);if(Array.isArray(l))if(Array.isArray(d)){let c=[],x=Reflect.ownKeys(d);for(let b=0;b<x.length;b++){let _=x[b];c[_]=d[_]}d=c}else if(pm(d)){let c=[];for(let x=0;x<d.length;x++)c[x]=d[x];d=c}else d=[];let y=i(d,l,h,r,e,s);if(y!==void 0)r[h]=y;else if(Array.isArray(l))r[h]=ql(d,l,i,s);else if(Ma(d)&&Ma(l)&&(Rl(d)||Rl(l)||cr(d)||cr(l)))r[h]=ql(d,l,i,s);else if(d==null&&Rl(l))r[h]=ql({},l,i,s);else if(d==null&&cr(l))r[h]=pf(l);else if(d===void 0||l!==void 0)r[h]=l}return r}function gf(r,...e){return gm(r,...e,lm)}var Os="",v2={curveBasis:eo,curveBasisClosed:_l,curveBasisOpen:Bl,curveBumpX:ta,curveBumpY:ba,curveBundle:cu,curveCardinalClosed:uu,curveCardinalOpen:fu,curveCardinal:wa,curveCatmullRomClosed:du,curveCatmullRomOpen:pu,curveCatmullRom:Ta,curveLinear:ri,curveLinearClosed:Al,curveMonotoneX:_a,curveMonotoneY:va,curveNatural:as,curveStep:ns,curveStepAfter:Aa,curveStepBefore:La},L2=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,F2=t(function(r,e){let i=Cm(r,/(?:init\b)|(?:initialize\b)/),s={};if(Array.isArray(i)){let h=i.map((l)=>l.args);Ks(h),s=Ce(s,[...h])}else s=i.args;if(!s)return;let o=Ba(r,e),n="config";if(s[n]!==void 0){if(o==="flowchart-v2")o="flowchart";s[o]=s[n],delete s[n]}return s},"detectInit"),Cm=t(function(r,e=null){try{let i=new RegExp(`[%]{2}(?![{]${L2.source})(?=[}][%]{2}).*
|
|
161
|
+
`,"ig");r=r.trim().replace(i,"").replace(/'/gm,'"'),a.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${r}`);let s,o=[];while((s=Vo.exec(r))!==null){if(s.index===Vo.lastIndex)Vo.lastIndex++;if(s&&!e||e&&s[1]?.match(e)||e&&s[2]?.match(e)){let n=s[1]?s[1]:s[2],h=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;o.push({type:n,args:h})}}if(o.length===0)return{type:r,args:null};return o.length===1?o[0]:o}catch(i){return a.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),dl=t(function(r){return r.replace(Vo,"")},"removeDirectives"),A2=t(function(r,e){for(let[i,s]of e.entries())if(s.match(r))return i;return-1},"isSubstringInArray");function Wl(r,e){if(!r)return e;let i=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return v2[i]??e}t(Wl,"interpolateToCurve");function bm(r,e){let i=r.trim();if(!i)return;if(e.securityLevel!=="loose")return xm.sanitizeUrl(i);return i}t(bm,"formatUrl");var M2=t((r,...e)=>{let i=r.split("."),s=i.length-1,o=i[s],n=window;for(let h=0;h<s;h++)if(n=n[i[h]],!n){a.error(`Function name: ${r} not found in window`);return}n[o](...e)},"runFunc");function mf(r,e){if(!r||!e)return 0;return Math.sqrt(Math.pow(e.x-r.x,2)+Math.pow(e.y-r.y,2))}t(mf,"distance");function km(r){let e,i=0;r.forEach((o)=>{i+=mf(o,e),e=o});let s=i/2;return yf(r,s)}t(km,"traverseEdge");function wm(r){if(r.length===1)return r[0];return km(r)}t(wm,"calcLabelPosition");var mm=t((r,e=2)=>{let i=Math.pow(10,e);return Math.round(r*i)/i},"roundNumber"),yf=t((r,e)=>{let i=void 0,s=e;for(let o of r){if(i){let n=mf(o,i);if(n===0)return i;if(n<s)s-=n;else{let h=s/n;if(h<=0)return i;if(h>=1)return{x:o.x,y:o.y};if(h>0&&h<1)return{x:mm((1-h)*i.x+h*o.x,5),y:mm((1-h)*i.y+h*o.y,5)}}}i=o}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),E2=t((r,e,i)=>{if(a.info(`our points ${JSON.stringify(e)}`),e[0]!==i)e=e.reverse();let o=yf(e,25),n=r?10:5,h=Math.atan2(e[0].y-o.y,e[0].x-o.x),l={x:0,y:0};return l.x=Math.sin(h)*n+(e[0].x+o.x)/2,l.y=-Math.cos(h)*n+(e[0].y+o.y)/2,l},"calcCardinalityPosition");function Sm(r,e,i){let s=structuredClone(i);if(a.info("our points",s),e!=="start_left"&&e!=="start_right")s.reverse();let o=25+r,n=yf(s,o),h=10+r*0.5,l=Math.atan2(s[0].y-n.y,s[0].x-n.x),d={x:0,y:0};if(e==="start_left")d.x=Math.sin(l+Math.PI)*h+(s[0].x+n.x)/2,d.y=-Math.cos(l+Math.PI)*h+(s[0].y+n.y)/2;else if(e==="end_right")d.x=Math.sin(l-Math.PI)*h+(s[0].x+n.x)/2,d.y=-Math.cos(l-Math.PI)*h+(s[0].y+n.y)/2;else if(e==="end_left")d.x=Math.sin(l)*h+(s[0].x+n.x)/2,d.y=-Math.cos(l)*h+(s[0].y+n.y)/2;else d.x=Math.sin(l)*h+(s[0].x+n.x)/2,d.y=-Math.cos(l)*h+(s[0].y+n.y)/2;return d}t(Sm,"calcTerminalLabelPosition");function $o(r){let e="",i="";for(let s of r)if(s!==void 0)if(s.startsWith("color:")||s.startsWith("text-align:"))i=i+s+";";else e=e+s+";";return{style:e,labelStyle:i}}t($o,"getStylesFromArray");var ym=0,$s=t(()=>(ym++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ym),"generateId");function Tm(r){let e="",i="0123456789abcdef",s=i.length;for(let o=0;o<r;o++)e+=i.charAt(Math.floor(Math.random()*s));return e}t(Tm,"makeRandomHex");var Bs=t((r)=>Tm(r.length),"random"),O2=t(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),I2=t(function(r,e){let i=e.text.replace(k.lineBreakRegex," "),[,s]=Tt(e.fontSize),o=r.append("text");if(o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",s),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0)o.attr("class",e.class);let n=o.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.attr("fill",e.fill),n.text(i),o},"drawSimpleText"),Or=ro((r,e,i)=>{if(!r)return r;if(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),k.hasBreaks(r))return r;let s=r.split(" ").filter(Boolean),o=[],n="";return s.forEach((h,l)=>{let d=Rt(`${h} `,i),y=Rt(n,i);if(d>e){let{hyphenatedStrings:b,remainingWord:_}=$2(h,e,"-",i);o.push(n,...b),n=_}else if(y+d>=e)o.push(n),n=h;else n=[n,h].filter(Boolean).join(" ");if(l+1===s.length)o.push(n)}),o.filter((h)=>h!=="").join(i.joinWith)},(r,e,i)=>`${r}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),$2=ro((r,e,i="-",s)=>{s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},s);let o=[...r],n=[],h="";return o.forEach((l,d)=>{let y=`${h}${l}`;if(Rt(y,s)>=e){let x=d+1,b=o.length===x,_=`${y}${i}`;n.push(b?y:_),h=""}else h=y}),{hyphenatedStrings:n,remainingWord:h}},(r,e,i="-",s)=>`${r}${e}${i}${s.fontSize}${s.fontWeight}${s.fontFamily}`);function ki(r,e){return Ci(r,e).height}t(ki,"calculateTextHeight");function Rt(r,e){return Ci(r,e).width}t(Rt,"calculateTextWidth");var Ci=ro((r,e)=>{let{fontSize:i=12,fontFamily:s="Arial",fontWeight:o=400}=e;if(!r)return{width:0,height:0};let[,n]=Tt(i),h=["sans-serif",s],l=r.split(k.lineBreakRegex),d=[],y=f("body");if(!y.remove)return{width:0,height:0,lineHeight:0};let c=y.append("svg");for(let b of h){let _=0,v={width:0,height:0,lineHeight:0};for(let M of l){let q=O2();q.text=M||Os;let W=I2(c,q).style("font-size",n).style("font-weight",o).style("font-family",b),j=(W._groups||W)[0][0].getBBox();if(j.width===0&&j.height===0)throw Error("svg element not in render tree");v.width=Math.round(Math.max(v.width,j.width)),_=Math.round(j.height),v.height+=_,v.lineHeight=Math.round(Math.max(v.lineHeight,_))}d.push(v)}c.remove();let x=isNaN(d[1].height)||isNaN(d[1].width)||isNaN(d[1].lineHeight)||d[0].height>d[1].height&&d[0].width>d[1].width&&d[0].lineHeight>d[1].lineHeight?0:1;return d[x]},(r,e)=>`${r}${e.fontSize}${e.fontWeight}${e.fontFamily}`),D2=class{constructor(r=!1,e){this.count=0,this.count=e?e.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{t(this,"InitIDGenerator")}},Nl,P2=t(function(r){return Nl=Nl||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Nl.innerHTML=r,unescape(Nl.textContent)},"entityDecode");function Bo(r){return"str"in r}t(Bo,"isDetailedError");function Fs(r){if(r instanceof Error)return r.message;return String(r)}t(Fs,"getErrorMessage");var R2=t((r,e,i,s)=>{if(!s)return;let o=r.node()?.getBBox();if(!o)return;r.append("text").text(s).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},"insertTitle"),Tt=t((r)=>{if(typeof r==="number")return[r,r+"px"];let e=parseInt(r??"",10);if(Number.isNaN(e))return[void 0,void 0];else if(r===String(e))return[e,r+"px"];else return[e,r]},"parseFontSize");function X(r,e){return gf({},r,e)}t(X,"cleanAndMerge");var F={assignWithDepth:Ce,wrapLabel:Or,calculateTextHeight:ki,calculateTextWidth:Rt,calculateTextDimensions:Ci,cleanAndMerge:X,detectInit:F2,detectDirective:Cm,isSubstringInArray:A2,interpolateToCurve:Wl,calcLabelPosition:wm,calcCardinalityPosition:E2,calcTerminalLabelPosition:Sm,formatUrl:bm,getStylesFromArray:$o,generateId:$s,random:Bs,runFunc:M2,entityDecode:P2,insertTitle:R2,isLabelCoordinateInPath:_m,parseFontSize:Tt,InitIDGenerator:D2},pl=t(function(r){let e=r;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){let s=i.substring(1,i.length-1);if(/^\+?\d+$/.test(s))return"fl°°"+s+"¶ß";else return"fl°"+s+"¶ß"}),e},"encodeEntities"),Pn=t(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),vt=t((r,e,{counter:i=0,prefix:s,suffix:o},n)=>{if(n)return n;return`${s?`${s}_`:""}${r}_${e}_${i}${o?`_${o}`:""}`},"getEdgeId");function De(r){return r??null}t(De,"handleUndefinedAttr");function _m(r,e){let i=Math.round(r.x),s=Math.round(r.y),o=e.replace(/(\d+\.\d+)/g,(n)=>Math.round(parseFloat(n)).toString());return o.includes(i.toString())||o.includes(s.toString())}t(_m,"isLabelCoordinateInPath");function Cf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var oo=Cf();function Em(r){oo=r}var Da={exec:()=>null};function be(r,e=""){let i=typeof r=="string"?r:r.source,s={replace:(o,n)=>{let h=typeof n=="string"?n:n.source;return h=h.replace(pr.caret,"$1"),i=i.replace(o,h),s},getRegex:()=>new RegExp(i,e)};return s}var q2=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),pr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(r)=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},N2=/^(?:[ \t]*(?:\n|$))+/,W2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,z2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Pa=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,H2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bf=/(?:[*+-]|\d{1,9}[.)])/,Om=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Im=be(Om).replace(/bull/g,bf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Y2=be(Om).replace(/bull/g,bf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),kf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,U2=/^[^\n]+/,wf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,j2=be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),G2=be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bf).getRegex(),jl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Sf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,X2=be("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Sf).replace("tag",jl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$m=be(kf).replace("hr",Pa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",jl).getRegex(),V2=be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$m).getRegex(),Tf={blockquote:V2,code:W2,def:j2,fences:z2,heading:H2,hr:Pa,html:X2,lheading:Im,list:G2,newline:N2,paragraph:$m,table:Da,text:U2},Bm=be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Pa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",jl).getRegex(),K2={...Tf,lheading:Y2,table:Bm,paragraph:be(kf).replace("hr",Pa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",jl).getRegex()},Z2={...Tf,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Da,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(kf).replace("hr",Pa).replace("heading",` *#{1,6} *[^
|
|
162
|
+
]`).replace("lheading",Im).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Q2=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,J2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dm=/^( {2,}|\\)\n(?!\s*$)/,tw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Gl=/[\p{P}\p{S}]/u,_f=/[\s\p{P}\p{S}]/u,Pm=/[^\s\p{P}\p{S}]/u,ew=be(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_f).getRegex(),Rm=/(?!~)[\p{P}\p{S}]/u,rw=/(?!~)[\s\p{P}\p{S}]/u,iw=/(?:[^\s\p{P}\p{S}]|~)/u,ow=be(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",q2?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),qm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,sw=be(qm,"u").replace(/punct/g,Gl).getRegex(),aw=be(qm,"u").replace(/punct/g,Rm).getRegex(),Nm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nw=be(Nm,"gu").replace(/notPunctSpace/g,Pm).replace(/punctSpace/g,_f).replace(/punct/g,Gl).getRegex(),lw=be(Nm,"gu").replace(/notPunctSpace/g,iw).replace(/punctSpace/g,rw).replace(/punct/g,Rm).getRegex(),hw=be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pm).replace(/punctSpace/g,_f).replace(/punct/g,Gl).getRegex(),cw=be(/\\(punct)/,"gu").replace(/punct/g,Gl).getRegex(),uw=be(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),fw=be(Sf).replace("(?:-->|$)","-->").getRegex(),dw=be("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",fw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Hl=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,pw=be(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Hl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Wm=be(/^!?\[(label)\]\[(ref)\]/).replace("label",Hl).replace("ref",wf).getRegex(),zm=be(/^!?\[(ref)\](?:\[\])?/).replace("ref",wf).getRegex(),gw=be("reflink|nolink(?!\\()","g").replace("reflink",Wm).replace("nolink",zm).getRegex(),vm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Bf={_backpedal:Da,anyPunctuation:cw,autolink:uw,blockSkip:ow,br:Dm,code:J2,del:Da,emStrongLDelim:sw,emStrongRDelimAst:nw,emStrongRDelimUnd:hw,escape:Q2,link:pw,nolink:zm,punctuation:ew,reflink:Wm,reflinkSearch:gw,tag:dw,text:tw,url:Da},mw={...Bf,link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",Hl).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Hl).getRegex()},xf={...Bf,emStrongRDelimAst:lw,emStrongLDelim:aw,url:be(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:be(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vm).getRegex()},yw={...xf,br:be(Dm).replace("{2,}","*").getRegex(),text:be(xf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zl={normal:Tf,gfm:K2,pedantic:Z2},Ea={normal:Bf,gfm:xf,breaks:yw,pedantic:mw},xw={"&":"&","<":"<",">":">",'"':""","'":"'"},Lm=(r)=>xw[r];function oi(r,e){if(e){if(pr.escapeTest.test(r))return r.replace(pr.escapeReplace,Lm)}else if(pr.escapeTestNoEncode.test(r))return r.replace(pr.escapeReplaceNoEncode,Lm);return r}function Fm(r){try{r=encodeURI(r).replace(pr.percentDecode,"%")}catch{return null}return r}function Am(r,e){let i=r.replace(pr.findPipe,(n,h,l)=>{let d=!1,y=h;for(;--y>=0&&l[y]==="\\";)d=!d;return d?"|":" |"}),s=i.split(pr.splitPipe),o=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(pr.slashPipe,"|");return s}function Oa(r,e,i){let s=r.length;if(s===0)return"";let o=0;for(;o<s;){let n=r.charAt(s-o-1);if(n===e&&!i)o++;else if(n!==e&&i)o++;else break}return r.slice(0,s-o)}function Cw(r,e){if(r.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])i++;else if(r[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function Mm(r,e,i,s,o){let n=e.href,h=e.title||null,l=r[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;let d={type:r[0].charAt(0)==="!"?"image":"link",raw:i,href:n,title:h,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,d}function bw(r,e,i){let s=r.match(i.other.indentCodeCompensation);if(s===null)return e;let o=s[1];return e.split(`
|
|
163
|
+
`).map((n)=>{let h=n.match(i.other.beginningSpace);if(h===null)return n;let[l]=h;return l.length>=o.length?n.slice(o.length):n}).join(`
|
|
164
|
+
`)}var Yl=class{options;rules;lexer;constructor(r){this.options=r||oo}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Oa(i,`
|
|
165
|
+
`)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let i=e[0],s=bw(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=Oa(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:Oa(e[0],`
|
|
166
|
+
`)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let i=Oa(e[0],`
|
|
167
|
+
`).split(`
|
|
168
|
+
`),s="",o="",n=[];for(;i.length>0;){let h=!1,l=[],d;for(d=0;d<i.length;d++)if(this.rules.other.blockquoteStart.test(i[d]))l.push(i[d]),h=!0;else if(!h)l.push(i[d]);else break;i=i.slice(d);let y=l.join(`
|
|
169
|
+
`),c=y.replace(this.rules.other.blockquoteSetextReplace,`
|
|
170
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
171
|
+
${y}`:y,o=o?`${o}
|
|
172
|
+
${c}`:c;let x=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,n,!0),this.lexer.state.top=x,i.length===0)break;let b=n.at(-1);if(b?.type==="code")break;if(b?.type==="blockquote"){let _=b,v=_.raw+`
|
|
173
|
+
`+i.join(`
|
|
174
|
+
`),M=this.blockquote(v);n[n.length-1]=M,s=s.substring(0,s.length-_.raw.length)+M.raw,o=o.substring(0,o.length-_.text.length)+M.text;break}else if(b?.type==="list"){let _=b,v=_.raw+`
|
|
175
|
+
`+i.join(`
|
|
176
|
+
`),M=this.list(v);n[n.length-1]=M,s=s.substring(0,s.length-b.raw.length)+M.raw,o=o.substring(0,o.length-_.raw.length)+M.raw,i=v.substring(n.at(-1).raw.length).split(`
|
|
177
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:n,text:o}}}list(r){let e=this.rules.block.list.exec(r);if(e){let i=e[1].trim(),s=i.length>1,o={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let n=this.rules.other.listItemRegex(i),h=!1;for(;r;){let d=!1,y="",c="";if(!(e=n.exec(r))||this.rules.block.hr.test(r))break;y=e[0],r=r.substring(y.length);let x=e[2].split(`
|
|
178
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,(W)=>" ".repeat(3*W.length)),b=r.split(`
|
|
179
|
+
`,1)[0],_=!x.trim(),v=0;if(this.options.pedantic?(v=2,c=x.trimStart()):_?v=e[1].length+1:(v=e[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,c=x.slice(v),v+=e[1].length),_&&this.rules.other.blankLine.test(b)&&(y+=b+`
|
|
180
|
+
`,r=r.substring(b.length+1),d=!0),!d){let W=this.rules.other.nextBulletRegex(v),j=this.rules.other.hrRegex(v),K=this.rules.other.fencesBeginRegex(v),J=this.rules.other.headingBeginRegex(v),tt=this.rules.other.htmlBeginRegex(v);for(;r;){let at=r.split(`
|
|
181
|
+
`,1)[0],st;if(b=at,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),st=b):st=b.replace(this.rules.other.tabCharGlobal," "),K.test(b)||J.test(b)||tt.test(b)||W.test(b)||j.test(b))break;if(st.search(this.rules.other.nonSpaceChar)>=v||!b.trim())c+=`
|
|
182
|
+
`+st.slice(v);else{if(_||x.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||K.test(x)||J.test(x)||j.test(x))break;c+=`
|
|
183
|
+
`+b}!_&&!b.trim()&&(_=!0),y+=at+`
|
|
184
|
+
`,r=r.substring(at.length+1),x=st.slice(v)}}o.loose||(h?o.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(h=!0));let M=null,q;this.options.gfm&&(M=this.rules.other.listIsTask.exec(c),M&&(q=M[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:y,task:!!M,checked:q,loose:!1,text:c,tokens:[]}),o.raw+=y}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let d=0;d<o.items.length;d++)if(this.lexer.state.top=!1,o.items[d].tokens=this.lexer.blockTokens(o.items[d].text,[]),!o.loose){let y=o.items[d].tokens.filter((x)=>x.type==="space"),c=y.length>0&&y.some((x)=>this.rules.other.anyLine.test(x.raw));o.loose=c}if(o.loose)for(let d=0;d<o.items.length;d++)o.items[d].loose=!0;return o}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:o}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=Am(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
185
|
+
`):[],n={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let h of s)this.rules.other.tableAlignRight.test(h)?n.align.push("right"):this.rules.other.tableAlignCenter.test(h)?n.align.push("center"):this.rules.other.tableAlignLeft.test(h)?n.align.push("left"):n.align.push(null);for(let h=0;h<i.length;h++)n.header.push({text:i[h],tokens:this.lexer.inline(i[h]),header:!0,align:n.align[h]});for(let h of o)n.rows.push(Am(h,n.header.length).map((l,d)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:n.align[d]})));return n}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let i=e[1].charAt(e[1].length-1)===`
|
|
186
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let n=Oa(i.slice(0,-1),"\\");if((i.length-n.length)%2===0)return}else{let n=Cw(e[2],"()");if(n===-2)return;if(n>-1){let h=(e[0].indexOf("!")===0?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,h).trim(),e[3]=""}}let s=e[2],o="";if(this.options.pedantic){let n=this.rules.other.pedanticHrefTitle.exec(s);n&&(s=n[1],o=n[3])}else o=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),Mm(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let i;if((i=this.rules.inline.reflink.exec(r))||(i=this.rules.inline.nolink.exec(r))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=e[s.toLowerCase()];if(!o){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return Mm(i,o,i[0],this.lexer,this.rules)}}emStrong(r,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i)){let o=[...s[0]].length-1,n,h,l=o,d=0,y=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,e=e.slice(-1*r.length+o);(s=y.exec(e))!=null;){if(n=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!n)continue;if(h=[...n].length,s[3]||s[4]){l+=h;continue}else if((s[5]||s[6])&&o%3&&!((o+h)%3)){d+=h;continue}if(l-=h,l>0)continue;h=Math.min(h,h+l+d);let c=[...s[0]][0].length,x=r.slice(0,o+s.index+c+h);if(Math.min(o,h)%2){let _=x.slice(1,-1);return{type:"em",raw:x,text:_,tokens:this.lexer.inlineTokens(_)}}let b=x.slice(2,-2);return{type:"strong",raw:x,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r){let e=this.rules.inline.del.exec(r);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let i,s;if(e[2]==="@")i=e[0],s="mailto:"+i;else{let o;do o=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(o!==e[0]);i=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},Wr=class r{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||oo,this.options.tokenizer=this.options.tokenizer||new Yl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:pr,block:zl.normal,inline:Ea.normal};this.options.pedantic?(i.block=zl.pedantic,i.inline=Ea.pedantic):this.options.gfm&&(i.block=zl.gfm,this.options.breaks?i.inline=Ea.breaks:i.inline=Ea.gfm),this.tokenizer.rules=i}static get rules(){return{block:zl,inline:Ea}}static lex(e,i){return new r(i).lex(e)}static lexInline(e,i){return new r(i).inlineTokens(e)}lex(e){e=e.replace(pr.carriageReturn,`
|
|
187
|
+
`),this.blockTokens(e,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,i=[],s=!1){for(this.options.pedantic&&(e=e.replace(pr.tabCharGlobal," ").replace(pr.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some((h)=>(o=h.call({lexer:this},e,i))?(e=e.substring(o.raw.length),i.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let h=i.at(-1);o.raw.length===1&&h!==void 0?h.raw+=`
|
|
188
|
+
`:i.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let h=i.at(-1);h?.type==="paragraph"||h?.type==="text"?(h.raw+=(h.raw.endsWith(`
|
|
189
|
+
`)?"":`
|
|
190
|
+
`)+o.raw,h.text+=`
|
|
191
|
+
`+o.text,this.inlineQueue.at(-1).src=h.text):i.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let h=i.at(-1);h?.type==="paragraph"||h?.type==="text"?(h.raw+=(h.raw.endsWith(`
|
|
192
|
+
`)?"":`
|
|
193
|
+
`)+o.raw,h.text+=`
|
|
194
|
+
`+o.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},i.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),i.push(o);continue}let n=e;if(this.options.extensions?.startBlock){let h=1/0,l=e.slice(1),d;this.options.extensions.startBlock.forEach((y)=>{d=y.call({lexer:this},l),typeof d=="number"&&d>=0&&(h=Math.min(h,d))}),h<1/0&&h>=0&&(n=e.substring(0,h+1))}if(this.state.top&&(o=this.tokenizer.paragraph(n))){let h=i.at(-1);s&&h?.type==="paragraph"?(h.raw+=(h.raw.endsWith(`
|
|
195
|
+
`)?"":`
|
|
196
|
+
`)+o.raw,h.text+=`
|
|
197
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):i.push(o),s=n.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let h=i.at(-1);h?.type==="text"?(h.raw+=(h.raw.endsWith(`
|
|
198
|
+
`)?"":`
|
|
199
|
+
`)+o.raw,h.text+=`
|
|
200
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):i.push(o);continue}if(e){let h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw Error(h)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){let s=e,o=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)d.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let n;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)n=o[2]?o[2].length:0,s=s.slice(0,o.index+n)+"["+"a".repeat(o[0].length-n-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let h=!1,l="";for(;e;){h||(l=""),h=!1;let d;if(this.options.extensions?.inline?.some((c)=>(d=c.call({lexer:this},e,i))?(e=e.substring(d.raw.length),i.push(d),!0):!1))continue;if(d=this.tokenizer.escape(e)){e=e.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.tag(e)){e=e.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.link(e)){e=e.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(d.raw.length);let c=i.at(-1);d.type==="text"&&c?.type==="text"?(c.raw+=d.raw,c.text+=d.text):i.push(d);continue}if(d=this.tokenizer.emStrong(e,s,l)){e=e.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.codespan(e)){e=e.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.br(e)){e=e.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.del(e)){e=e.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.autolink(e)){e=e.substring(d.raw.length),i.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(e))){e=e.substring(d.raw.length),i.push(d);continue}let y=e;if(this.options.extensions?.startInline){let c=1/0,x=e.slice(1),b;this.options.extensions.startInline.forEach((_)=>{b=_.call({lexer:this},x),typeof b=="number"&&b>=0&&(c=Math.min(c,b))}),c<1/0&&c>=0&&(y=e.substring(0,c+1))}if(d=this.tokenizer.inlineText(y)){e=e.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(l=d.raw.slice(-1)),h=!0;let c=i.at(-1);c?.type==="text"?(c.raw+=d.raw,c.text+=d.text):i.push(d);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw Error(c)}}return i}},Ul=class{options;parser;constructor(r){this.options=r||oo}space(r){return""}code({text:r,lang:e,escaped:i}){let s=(e||"").match(pr.notSpaceStart)?.[0],o=r.replace(pr.endingNewline,"")+`
|
|
201
|
+
`;return s?'<pre><code class="language-'+oi(s)+'">'+(i?o:oi(o,!0))+`</code></pre>
|
|
202
|
+
`:"<pre><code>"+(i?o:oi(o,!0))+`</code></pre>
|
|
203
|
+
`}blockquote({tokens:r}){return`<blockquote>
|
|
204
|
+
${this.parser.parse(r)}</blockquote>
|
|
205
|
+
`}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
|
|
206
|
+
`}hr(r){return`<hr>
|
|
207
|
+
`}list(r){let{ordered:e,start:i}=r,s="";for(let h=0;h<r.items.length;h++){let l=r.items[h];s+=this.listitem(l)}let o=e?"ol":"ul",n=e&&i!==1?' start="'+i+'"':"";return"<"+o+n+`>
|
|
208
|
+
`+s+"</"+o+`>
|
|
209
|
+
`}listitem(r){let e="";if(r.task){let i=this.checkbox({checked:!!r.checked});r.loose?r.tokens[0]?.type==="paragraph"?(r.tokens[0].text=i+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&r.tokens[0].tokens[0].type==="text"&&(r.tokens[0].tokens[0].text=i+" "+oi(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):e+=i+" "}return e+=this.parser.parse(r.tokens,!!r.loose),`<li>${e}</li>
|
|
210
|
+
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
|
|
211
|
+
`}table(r){let e="",i="";for(let o=0;o<r.header.length;o++)i+=this.tablecell(r.header[o]);e+=this.tablerow({text:i});let s="";for(let o=0;o<r.rows.length;o++){let n=r.rows[o];i="";for(let h=0;h<n.length;h++)i+=this.tablecell(n[h]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
212
|
+
<thead>
|
|
213
|
+
`+e+`</thead>
|
|
214
|
+
`+s+`</table>
|
|
215
|
+
`}tablerow({text:r}){return`<tr>
|
|
216
|
+
${r}</tr>
|
|
217
|
+
`}tablecell(r){let e=this.parser.parseInline(r.tokens),i=r.header?"th":"td";return(r.align?`<${i} align="${r.align}">`:`<${i}>`)+e+`</${i}>
|
|
218
|
+
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${oi(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:i}){let s=this.parser.parseInline(i),o=Fm(r);if(o===null)return s;r=o;let n='<a href="'+r+'"';return e&&(n+=' title="'+oi(e)+'"'),n+=">"+s+"</a>",n}image({href:r,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let o=Fm(r);if(o===null)return oi(i);r=o;let n=`<img src="${r}" alt="${i}"`;return e&&(n+=` title="${oi(e)}"`),n+=">",n}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):("escaped"in r)&&r.escaped?r.text:oi(r.text)}},vf=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}},zr=class r{options;renderer;textRenderer;constructor(e){this.options=e||oo,this.options.renderer=this.options.renderer||new Ul,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new vf}static parse(e,i){return new r(i).parse(e)}static parseInline(e,i){return new r(i).parseInline(e)}parse(e,i=!0){let s="";for(let o=0;o<e.length;o++){let n=e[o];if(this.options.extensions?.renderers?.[n.type]){let l=n,d=this.options.extensions.renderers[l.type].call({parser:this},l);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){s+=d||"";continue}}let h=n;switch(h.type){case"space":{s+=this.renderer.space(h);continue}case"hr":{s+=this.renderer.hr(h);continue}case"heading":{s+=this.renderer.heading(h);continue}case"code":{s+=this.renderer.code(h);continue}case"table":{s+=this.renderer.table(h);continue}case"blockquote":{s+=this.renderer.blockquote(h);continue}case"list":{s+=this.renderer.list(h);continue}case"html":{s+=this.renderer.html(h);continue}case"def":{s+=this.renderer.def(h);continue}case"paragraph":{s+=this.renderer.paragraph(h);continue}case"text":{let l=h,d=this.renderer.text(l);for(;o+1<e.length&&e[o+1].type==="text";)l=e[++o],d+=`
|
|
219
|
+
`+this.renderer.text(l);i?s+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):s+=d;continue}default:{let l='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return s}parseInline(e,i=this.renderer){let s="";for(let o=0;o<e.length;o++){let n=e[o];if(this.options.extensions?.renderers?.[n.type]){let l=this.options.extensions.renderers[n.type].call({parser:this},n);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){s+=l||"";continue}}let h=n;switch(h.type){case"escape":{s+=i.text(h);break}case"html":{s+=i.html(h);break}case"link":{s+=i.link(h);break}case"image":{s+=i.image(h);break}case"strong":{s+=i.strong(h);break}case"em":{s+=i.em(h);break}case"codespan":{s+=i.codespan(h);break}case"br":{s+=i.br(h);break}case"del":{s+=i.del(h);break}case"text":{s+=i.text(h);break}default:{let l='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return s}},Ia=class{options;block;constructor(r){this.options=r||oo}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?Wr.lex:Wr.lexInline}provideParser(){return this.block?zr.parse:zr.parseInline}},kw=class{defaults=Cf();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=zr;Renderer=Ul;TextRenderer=vf;Lexer=Wr;Tokenizer=Yl;Hooks=Ia;constructor(...r){this.use(...r)}walkTokens(r,e){let i=[];for(let s of r)switch(i=i.concat(e.call(this,s)),s.type){case"table":{let o=s;for(let n of o.header)i=i.concat(this.walkTokens(n.tokens,e));for(let n of o.rows)for(let h of n)i=i.concat(this.walkTokens(h.tokens,e));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,e));break}default:{let o=s;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach((n)=>{let h=o[n].flat(1/0);i=i.concat(this.walkTokens(h,e))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,e)))}}return i}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach((i)=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach((o)=>{if(!o.name)throw Error("extension name required");if("renderer"in o){let n=e.renderers[o.name];n?e.renderers[o.name]=function(...h){let l=o.renderer.apply(this,h);return l===!1&&(l=n.apply(this,h)),l}:e.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let n=e[o.level];n?n.unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),s.extensions=e),i.renderer){let o=this.defaults.renderer||new Ul(this.defaults);for(let n in i.renderer){if(!(n in o))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let h=n,l=i.renderer[h],d=o[h];o[h]=(...y)=>{let c=l.apply(o,y);return c===!1&&(c=d.apply(o,y)),c||""}}s.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new Yl(this.defaults);for(let n in i.tokenizer){if(!(n in o))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let h=n,l=i.tokenizer[h],d=o[h];o[h]=(...y)=>{let c=l.apply(o,y);return c===!1&&(c=d.apply(o,y)),c}}s.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new Ia;for(let n in i.hooks){if(!(n in o))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let h=n,l=i.hooks[h],d=o[h];Ia.passThroughHooks.has(n)?o[h]=(y)=>{if(this.defaults.async&&Ia.passThroughHooksRespectAsync.has(n))return(async()=>{let x=await l.call(o,y);return d.call(o,x)})();let c=l.call(o,y);return d.call(o,c)}:o[h]=(...y)=>{if(this.defaults.async)return(async()=>{let x=await l.apply(o,y);return x===!1&&(x=await d.apply(o,y)),x})();let c=l.apply(o,y);return c===!1&&(c=d.apply(o,y)),c}}s.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,n=i.walkTokens;s.walkTokens=function(h){let l=[];return l.push(n.call(this,h)),o&&(l=l.concat(o.call(this,h))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return Wr.lex(r,e??this.defaults)}parser(r,e){return zr.parse(r,e??this.defaults)}parseMarkdown(r){return(e,i)=>{let s={...i},o={...this.defaults,...s},n=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return n(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return n(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return n(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=r),o.async)return(async()=>{let h=o.hooks?await o.hooks.preprocess(e):e,l=await(o.hooks?await o.hooks.provideLexer():r?Wr.lex:Wr.lexInline)(h,o),d=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(d,o.walkTokens));let y=await(o.hooks?await o.hooks.provideParser():r?zr.parse:zr.parseInline)(d,o);return o.hooks?await o.hooks.postprocess(y):y})().catch(n);try{o.hooks&&(e=o.hooks.preprocess(e));let h=(o.hooks?o.hooks.provideLexer():r?Wr.lex:Wr.lexInline)(e,o);o.hooks&&(h=o.hooks.processAllTokens(h)),o.walkTokens&&this.walkTokens(h,o.walkTokens);let l=(o.hooks?o.hooks.provideParser():r?zr.parse:zr.parseInline)(h,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(h){return n(h)}}}onError(r,e){return(i)=>{if(i.message+=`
|
|
220
|
+
Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+oi(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}},io=new kw;function we(r,e){return io.parse(r,e)}we.options=we.setOptions=function(r){return io.setOptions(r),we.defaults=io.defaults,Em(we.defaults),we};we.getDefaults=Cf;we.defaults=oo;we.use=function(...r){return io.use(...r),we.defaults=io.defaults,Em(we.defaults),we};we.walkTokens=function(r,e){return io.walkTokens(r,e)};we.parseInline=io.parseInline;we.Parser=zr;we.parser=zr.parse;we.Renderer=Ul;we.TextRenderer=vf;we.Lexer=Wr;we.lexer=Wr.lex;we.Tokenizer=Yl;we.Hooks=Ia;we.parse=we;var{options:jH,setOptions:GH,use:XH,walkTokens:VH,parseInline:KH}=we;var ZH=zr.parse,QH=Wr.lex;function Fo(r){var e=[];for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];var s=Array.from(typeof r==="string"?[r]:r);s[s.length-1]=s[s.length-1].replace(/\r?\n([\t ]*)$/,"");var o=s.reduce(function(l,d){var y=d.match(/\n([\t ]+|(?!\s).)/g);if(y)return l.concat(y.map(function(c){var x,b;return(b=(x=c.match(/[\t ]/g))===null||x===void 0?void 0:x.length)!==null&&b!==void 0?b:0}));return l},[]);if(o.length){var n=new RegExp(`
|
|
221
|
+
[ ]{`.concat(Math.min.apply(Math,o),"}"),"g");s=s.map(function(l){return l.replace(n,`
|
|
222
|
+
`)})}s[0]=s[0].replace(/^\r?\n/,"");var h=s[0];return e.forEach(function(l,d){var y=h.match(/(?:^|\n)( *)$/),c=y?y[1]:"",x=l;if(typeof l==="string"&&l.includes(`
|
|
223
|
+
`))x=String(l).split(`
|
|
224
|
+
`).map(function(b,_){return _===0?b:"".concat(c).concat(b)}).join(`
|
|
225
|
+
`);h+=x+s[d+1]}),h}var Ff=typeof performance<"u"&&typeof performance.now==="function",ds=t(()=>Ff?performance.now():0,"now"),Lf="\uD83E\uDDDC ",ww="Mermaid render",Sw="Mermaid",Tw={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},u9=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{t(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(r){if(!this.enabled)return;this.roots=[],this.stack=[],this.buckets={},this.begin(r)}tickSync(r,e){if(!this.enabled)return e();let i=ds();try{return e()}finally{this.buckets[r]=(this.buckets[r]??0)+(ds()-i)}}async tick(r,e){if(!this.enabled)return e();let i=ds();try{return await e()}finally{this.buckets[r]=(this.buckets[r]??0)+(ds()-i)}}stop(){if(!this.enabled)return;while(this.stack.length>0)this.end();let r=this.roots.at(-1),e=this.runLabel??r?.name;if(r){if(this.records.push({label:e??r.name,tree:r,buckets:{...this.buckets}}),this.records.length>this.maxRecords)this.records.splice(0,this.records.length-this.maxRecords);if(this.autoPrint)this.printSummary(r,e)}return this.runLabel=void 0,r}begin(r){if(!this.enabled)return;let e={name:r,start:ds(),duration:-1,children:[]},i=this.stack.at(-1);if(i)i.children.push(e);else this.roots.push(e);if(this.stack.push(e),Ff&&typeof performance.mark==="function")try{performance.mark(`${Lf}${r} ▶`)}catch{}}end(){if(!this.enabled)return;let r=this.stack.pop();if(!r)return;let e=ds();if(r.duration=e-r.start,Ff&&typeof performance.measure==="function")try{performance.measure(`${Lf}${r.name}`,{start:r.start,end:e,detail:{devtools:{dataType:"track-entry",track:ww,trackGroup:Sw,color:Tw[r.name]??"primary",tooltipText:`${r.name} — ${r.duration.toFixed(1)} ms`}}})}catch{}}async span(r,e){if(!this.enabled)return e();this.begin(r);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(r=this.report(),e){if(!r)return;let i=r.duration,s=e&&e!==r.name?`${r.name} [${e}]`:r.name,o=["ms % phase"],n=t((l,d)=>{let y=" ".repeat(d),c=l.duration.toFixed(1).padStart(8),x=i>0?`${(l.duration/i*100).toFixed(0).padStart(3)}%`:" -";o.push(`${c} ${x} ${y}${l.name}`);for(let b of l.children)n(b,d+1);if(l.children.length>0){let b=l.children.reduce((v,M)=>v+M.duration,0),_=l.duration-b;if(_>0.5){let v=_.toFixed(1).padStart(8);o.push(`${v} ${y} (self)`)}}},"walk");n(r,0);let h=Object.keys(this.buckets);if(h.length>0){o.push("—— buckets (summed) ——");for(let l of h)o.push(`${this.buckets[l].toFixed(1).padStart(8)} ${l}`)}console.log(`${Lf}mermaid render profile · ${s}
|
|
226
|
+
${o.join(`
|
|
227
|
+
`)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};function Ym(r,{markdownAutoWrap:e}){let s=r.replace(/<br\/>/g,`
|
|
228
|
+
`).replace(/\n{2,}/g,`
|
|
229
|
+
`);return Fo(s)}t(Ym,"preprocessMarkdown");function Um(r){return r.split(/\\n|\n|<br\s*\/?>/gi).map((e)=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((i)=>({content:i,type:"normal"}))??[])}t(Um,"nonMarkdownToLines");function zo(r,e={}){let i=Ym(r,e),s=we.lexer(i),o=[[]],n=0;function h(l,d="normal"){if(l.type==="text")l.text.split(`
|
|
230
|
+
`).forEach((c,x)=>{if(x!==0)n++,o.push([]);c.split(" ").forEach((b)=>{if(b=b.replace(/'/g,"'"),b)o[n].push({content:b,type:d})})});else if(l.type==="strong"||l.type==="em")l.tokens.forEach((y)=>{h(y,l.type)});else if(l.type==="html")o[n].push({content:l.text,type:"normal"})}return t(h,"processNode"),s.forEach((l)=>{if(l.type==="paragraph")l.tokens?.forEach((d)=>{h(d)});else if(l.type==="html")o[n].push({content:l.text,type:"normal"});else o[n].push({content:l.raw,type:"normal"})}),o}t(zo,"markdownToLines");function jm(r){if(!r)return"";return`<p>${r.replace(/\\n|\n/g,"<br />")}</p>`}t(jm,"nonMarkdownToHTML");function Gm(r,{markdownAutoWrap:e}={}){let i=we.lexer(r);function s(o){if(o.type==="text"){if(e===!1)return o.text.replace(/\n */g,"<br/>").replace(/ /g," ");return o.text.replace(/\n */g,"<br/>")}else if(o.type==="strong")return`<strong>${o.tokens?.map(s).join("")}</strong>`;else if(o.type==="em")return`<em>${o.tokens?.map(s).join("")}</em>`;else if(o.type==="paragraph")return`<p>${o.tokens?.map(s).join("")}</p>`;else if(o.type==="space")return"";else if(o.type==="html")return`${o.text}`;else if(o.type==="escape")return o.text;return a.warn(`Unsupported markdown: ${o.type}`),o.raw}return t(s,"output"),i.map(s).join("")}t(Gm,"markdownToHTML");var _w=function(r){var e=function(){},i=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(y){return setTimeout(y,16)};function s(){var y=this;y.reads=[],y.writes=[],y.raf=i.bind(r),e("initialized",y)}t(s,"FastDom"),s.prototype={constructor:s,runTasks:t(function(y){e("run tasks");var c;while(c=y.shift())c()},"runTasks"),measure:t(function(y,c){e("measure");var x=!c?y:y.bind(c);return this.reads.push(x),o(this),x},"measure"),mutate:t(function(y,c){e("mutate");var x=!c?y:y.bind(c);return this.writes.push(x),o(this),x},"mutate"),clear:t(function(y){return e("clear",y),h(this.reads,y)||h(this.writes,y)},"clear"),extend:t(function(y){if(e("extend",y),typeof y!="object")throw Error("expected object");var c=Object.create(this);if(l(c,y),c.fastdom=this,c.initialize)c.initialize();return c},"extend"),catch:null};function o(y){if(!y.scheduled)y.scheduled=!0,y.raf(n.bind(null,y)),e("flush scheduled")}t(o,"scheduleFlush");function n(y){e("flush");var{writes:c,reads:x}=y,b;try{e("flushing reads",x.length),y.runTasks(x),e("flushing writes",c.length),y.runTasks(c)}catch(_){b=_}if(y.scheduled=!1,x.length||c.length)o(y);if(b)if(e("task errored",b.message),y.catch)y.catch(b);else throw b}t(n,"flush");function h(y,c){var x=y.indexOf(c);return!!~x&&!!y.splice(x,1)}t(h,"remove");function l(y,c){for(var x in c)if(c.hasOwnProperty(x))y[x]=c[x]}t(l,"mixin");var d=r.fastdom=r.fastdom||new s;return d}(typeof window<"u"?window:globalThis),Xm={initialize:t(function(){this._tasks=new Map},"initialize"),mutate:t(function(r,e){return Af(this,"mutate",r,e)},"mutate"),measure:t(function(r,e){return Af(this,"measure",r,e)},"measure"),clear:t(function(r){var e=this._tasks,i=e.get(r);this.fastdom.clear(i),e.delete(r)},"clear")};function Af(r,e,i,s){var{_tasks:o,fastdom:n}=r,h,l=new Promise(function(d,y){h=n[e](function(){o.delete(l);try{d(s?i.call(s):i())}catch(c){y(c)}},s)});return o.set(l,h),l}t(Af,"create");var{initialize:p9,mutate:g9,measure:m9,clear:y9}=Xm,Bw=Xm,vw=_w.extend({raf(r){if(typeof queueMicrotask==="function")queueMicrotask(r);else setTimeout(r,0)}}).extend(Bw),Ei=vw;function Vm(r){if(Intl.Segmenter)return[...new Intl.Segmenter().segment(r)].map((e)=>e.segment);return[...r]}t(Vm,"splitTextToChars");function Km(r,e){let i=Vm(e.content);return Of(r,[],i,e.type)}t(Km,"splitWordToFitWidth");function Of(r,e,i,s){if(i.length===0)return[{content:e.join(""),type:s},{content:"",type:s}];let[o,...n]=i,h=[...e,o];if(r([{content:h.join(""),type:s}]))return Of(r,h,n,s);if(e.length===0&&o)e.push(o),i.shift();return[{content:e.join(""),type:s},{content:i.join(""),type:s}]}t(Of,"splitWordToFitWidthRecursion");function Zm(r,e){if(r.some(({content:i})=>i.includes(`
|
|
231
|
+
`)))throw Error("splitLineToFitWidth does not support newlines in the line");return Xl(r,e)}t(Zm,"splitLineToFitWidth");function Xl(r,e,i=[],s=[]){if(r.length===0){if(s.length>0)i.push(s);return i.length>0?i:[]}let o="";if(r[0].content===" ")o=" ",r.shift();let n=r.shift()??{content:" ",type:"normal"},h=[...s];if(o!=="")h.push({content:o,type:"normal"});if(h.push(n),e(h))return Xl(r,e,i,h);if(s.length>0)i.push(s),r.unshift(n);else if(n.content){let[l,d]=Km(e,n);if(i.push([l]),d.content)r.unshift(d)}return Xl(r,e,i)}t(Xl,"splitLineToFitWidthRecursion");function Mf(r,e){if(e)r.attr("style",e)}t(Mf,"applyStyle");var Hm=16384;async function Qm(r,e,i,s,o=!1,n=S(),h=0){let l=r.append("foreignObject");l.attr("width",`${Math.min(10*i,Hm)}px`),l.attr("height",`${Math.min(10*i,Hm)}px`);let d=l.append("xhtml:div"),y=Me(e.label)?await za(e.label.replace(k.lineBreakRegex,`
|
|
232
|
+
`),n):U(e.label,n),c=e.isNode?"nodeLabel":"edgeLabel",x=d.append("span");if(x.html(y),Mf(x,e.labelStyle),x.attr("class",`${c} ${s}`),Mf(d,e.labelStyle),d.style("display","table-cell"),d.style("white-space","nowrap"),d.style("line-height","1.5"),i!==Number.POSITIVE_INFINITY)d.style("max-width",i+"px"),d.style("text-align","center");if(d.attr("xmlns","http://www.w3.org/1999/xhtml"),o)d.attr("class","labelBkg");let b=await Ei.measure(()=>d.node().getBoundingClientRect());if(b.width===i)d.style("display","table"),d.style("white-space","break-spaces"),d.style("width",i+"px");else if(b.width<h)d.style("display","table"),d.style("width",h+"px"),d.style("text-align","center");return l.node()}t(Qm,"addHtmlSpan");function Vl(r,e,i,s=!1){let o=r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*i-0.1+"em").attr("dy",i+"em");if(s)o.attr("text-anchor","middle");return o}t(Vl,"createTspan");function Jm(r,e,i){let s=r.append("text"),o=Vl(s,1,e);Kl(o,i);let n=o.node().getComputedTextLength();return s.remove(),n}t(Jm,"computeWidthOfText");function zs(r,e,i){let s=r.append("text"),o=Vl(s,1,e);Kl(o,[{content:i,type:"normal"}]);let n=o.node()?.getBoundingClientRect();if(n)s.remove();return n}t(zs,"computeDimensionOfText");function ty(r,e,i,s=!1,o=!1){let h=e.append("g"),l=h.insert("rect").attr("class","background").attr("style","stroke: none"),d=h.append("text").attr("y","-10.1");if(o)d.attr("text-anchor","middle");let y=0;for(let c of i){let x=t((_)=>Jm(h,1.1,_)<=r,"checkWidth"),b=x(c)?[c]:Zm(c,x);for(let _ of b){let v=Vl(d,y,1.1,o);Kl(v,_),y++}}if(s){let c=d.node().getBBox(),x=2;return l.attr("x",c.x-2).attr("y",c.y-2).attr("width",c.width+4).attr("height",c.height+4),h.node()}else return d.node()}t(ty,"createFormattedText");function Ef(r){let e=/&(amp|lt|gt);/g;return r.replace(e,(i,s)=>{switch(s){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return i}})}t(Ef,"decodeHTMLEntities");function Kl(r,e){r.text(""),e.forEach((i,s)=>{let o=r.append("tspan").attr("font-style",i.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",i.type==="strong"?"bold":"normal");if(s===0)o.text(Ef(i.content));else o.text(" "+Ef(i.content))})}t(Kl,"updateTextContentAndStyles");async function ey(r,e={}){let i=[];r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(o,n,h)=>(i.push((async()=>{let l=`${n}:${h}`;if(await Dl(l))return await qt(l,void 0,{class:"label-icon"});else return`<i class='${U(o,e).replace(":"," ")}'></i>`})()),o));let s=await Promise.all(i);return r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>s.shift()??"")}t(ey,"replaceIconSubstring");var rt=t(async(r,e="",{style:i="",isTitle:s=!1,classes:o="",useHtmlLabels:n=!0,markdown:h=!0,isNode:l=!0,width:d=200,minWidth:y=0,addSvgBackground:c=!1}={},x)=>{if(a.debug("XYZ createText",e,i,s,o,n,l,"addSvgBackground: ",c),n){let b=h?Gm(e,x):jm(e),_=await ey(Pn(b),x),v=e.replace(/\\\\/g,"\\"),M={isNode:l,label:Me(e)?v:_,labelStyle:i.replace("fill:","color:")};return await Qm(r,M,d,o,c,x,y)}else{let b=Pn(e.replace(/<br\s*\/?>/g,"<br/>")),_=h?zo(b.replace("<br>","<br/>"),x):Um(b),v=ty(d,r,_,e?c:!1,!l);if(l){if(/stroke:/.exec(i))i=i.replace("stroke:","lineColor:");let M=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");f(v).attr("style",M)}else{let M=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");f(v).select("rect").attr("style",M.replace(/background:/g,"fill:"));let q=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");f(v).select("text").attr("style",q)}if(s)f(v).selectAll("tspan.text-outer-tspan").classed("title-row",!0);else f(v).selectAll("tspan.text-outer-tspan").classed("row",!0);return v}},"createText");var Si=new Set(["redux-color","redux-dark-color"]),Lw=12,Fw=64,Ie=t((r)=>Array.isArray(r)&&r.length>0,"hasPalette"),Te=t((r,e)=>r!=null&&Si.has(r)&&Ie(e),"isColorTheme"),Aw=/^[\w-]+$/,Ee=t((r)=>{let e=typeof r==="string"||typeof r==="number"?String(r):"";return Aw.test(e)?e:"classic"},"safeLook"),cn=t((r)=>Ie(r)?r.length:0,"paletteSlotCount"),Lt=t((r,e)=>{if(Ie(e))return cn(e);return typeof r==="number"&&Number.isInteger(r)&&r>0&&r<=Fw?r:Lw},"colorSlotCount"),It=t((r,e,i,s)=>{if(e===void 0||!Te(i,s))return;let o=e%cn(s);r.attr("data-color-id",`color-${o}`)},"stampColorSlot");function If(r,e,i){if(r&&r.length){let[s,o]=e,n=Math.PI/180*i,h=Math.cos(n),l=Math.sin(n);for(let d of r){let[y,c]=d;d[0]=(y-s)*h-(c-o)*l+s,d[1]=(y-s)*l+(c-o)*h+o}}}function Mw(r,e){return r[0]===e[0]&&r[1]===e[1]}function Ew(r,e,i,s=1){let o=i,n=Math.max(e,0.1),h=r[0]&&r[0][0]&&typeof r[0][0]=="number"?[r]:r,l=[0,0];if(o)for(let y of h)If(y,l,o);let d=function(y,c,x){let b=[];for(let j of y){let K=[...j];Mw(K[0],K[K.length-1])||K.push([K[0][0],K[0][1]]),K.length>2&&b.push(K)}let _=[];c=Math.max(c,0.1);let v=[];for(let j of b)for(let K=0;K<j.length-1;K++){let J=j[K],tt=j[K+1];if(J[1]!==tt[1]){let at=Math.min(J[1],tt[1]);v.push({ymin:at,ymax:Math.max(J[1],tt[1]),x:at===J[1]?J[0]:tt[0],islope:(tt[0]-J[0])/(tt[1]-J[1])})}}if(v.sort((j,K)=>j.ymin<K.ymin?-1:j.ymin>K.ymin?1:j.x<K.x?-1:j.x>K.x?1:j.ymax===K.ymax?0:(j.ymax-K.ymax)/Math.abs(j.ymax-K.ymax)),!v.length)return _;let M=[],q=v[0].ymin,W=0;for(;M.length||v.length;){if(v.length){let j=-1;for(let K=0;K<v.length&&!(v[K].ymin>q);K++)j=K;v.splice(0,j+1).forEach((K)=>{M.push({s:q,edge:K})})}if(M=M.filter((j)=>!(j.edge.ymax<=q)),M.sort((j,K)=>j.edge.x===K.edge.x?0:(j.edge.x-K.edge.x)/Math.abs(j.edge.x-K.edge.x)),(x!==1||W%c==0)&&M.length>1)for(let j=0;j<M.length;j+=2){let K=j+1;if(K>=M.length)break;let J=M[j].edge,tt=M[K].edge;_.push([[Math.round(J.x),q],[Math.round(tt.x),q]])}q+=x,M.forEach((j)=>{j.edge.x=j.edge.x+x*j.edge.islope}),W++}return _}(h,n,s);if(o){for(let y of h)If(y,l,-o);(function(y,c,x){let b=[];y.forEach((_)=>b.push(..._)),If(b,c,x)})(d,l,-o)}return d}function Ja(r,e){var i;let s=e.hachureAngle+90,o=e.hachureGap;o<0&&(o=4*e.strokeWidth),o=Math.round(Math.max(o,0.1));let n=1;return e.roughness>=1&&(((i=e.randomizer)===null||i===void 0?void 0:i.next())||Math.random())>0.7&&(n=o),Ew(r,o,s,n||1)}class sh{constructor(r){this.helper=r}fillPolygons(r,e){return this._fillPolygons(r,e)}_fillPolygons(r,e){let i=Ja(r,e);return{type:"fillSketch",ops:this.renderLines(i,e)}}renderLines(r,e){let i=[];for(let s of r)i.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],e));return i}}function ah(r){let e=r[0],i=r[1];return Math.sqrt(Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2))}class cy extends sh{fillPolygons(r,e){let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,0.1);let s=Ja(r,Object.assign({},e,{hachureGap:i})),o=Math.PI/180*e.hachureAngle,n=[],h=0.5*i*Math.cos(o),l=0.5*i*Math.sin(o);for(let[d,y]of s)ah([d,y])&&n.push([[d[0]-h,d[1]+l],[...y]],[[d[0]+h,d[1]-l],[...y]]);return{type:"fillSketch",ops:this.renderLines(n,e)}}}class uy extends sh{fillPolygons(r,e){let i=this._fillPolygons(r,e),s=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),o=this._fillPolygons(r,s);return i.ops=i.ops.concat(o.ops),i}}class fy{constructor(r){this.helper=r}fillPolygons(r,e){let i=Ja(r,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(i,e)}dotsOnLines(r,e){let i=[],s=e.hachureGap;s<0&&(s=4*e.strokeWidth),s=Math.max(s,0.1);let o=e.fillWeight;o<0&&(o=e.strokeWidth/2);let n=s/4;for(let h of r){let l=ah(h),d=l/s,y=Math.ceil(d)-1,c=l-y*s,x=(h[0][0]+h[1][0])/2-s/4,b=Math.min(h[0][1],h[1][1]);for(let _=0;_<y;_++){let v=b+c+_*s,M=x-n+2*Math.random()*n,q=v-n+2*Math.random()*n,W=this.helper.ellipse(M,q,o,o,e);i.push(...W.ops)}}return{type:"fillSketch",ops:i}}}class dy{constructor(r){this.helper=r}fillPolygons(r,e){let i=Ja(r,e);return{type:"fillSketch",ops:this.dashedLine(i,e)}}dashedLine(r,e){let i=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,s=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,o=[];return r.forEach((n)=>{let h=ah(n),l=Math.floor(h/(i+s)),d=(h+s-l*(i+s))/2,y=n[0],c=n[1];y[0]>c[0]&&(y=n[1],c=n[0]);let x=Math.atan((c[1]-y[1])/(c[0]-y[0]));for(let b=0;b<l;b++){let _=b*(i+s),v=_+i,M=[y[0]+_*Math.cos(x)+d*Math.cos(x),y[1]+_*Math.sin(x)+d*Math.sin(x)],q=[y[0]+v*Math.cos(x)+d*Math.cos(x),y[1]+v*Math.sin(x)+d*Math.sin(x)];o.push(...this.helper.doubleLineOps(M[0],M[1],q[0],q[1],e))}}),o}}class py{constructor(r){this.helper=r}fillPolygons(r,e){let i=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,s=e.zigzagOffset<0?i:e.zigzagOffset,o=Ja(r,e=Object.assign({},e,{hachureGap:i+s}));return{type:"fillSketch",ops:this.zigzagLines(o,s,e)}}zigzagLines(r,e,i){let s=[];return r.forEach((o)=>{let n=ah(o),h=Math.round(n/(2*e)),l=o[0],d=o[1];l[0]>d[0]&&(l=o[1],d=o[0]);let y=Math.atan((d[1]-l[1])/(d[0]-l[0]));for(let c=0;c<h;c++){let x=2*c*e,b=2*(c+1)*e,_=Math.sqrt(2*Math.pow(e,2)),v=[l[0]+x*Math.cos(y),l[1]+x*Math.sin(y)],M=[l[0]+b*Math.cos(y),l[1]+b*Math.sin(y)],q=[v[0]+_*Math.cos(y+Math.PI/4),v[1]+_*Math.sin(y+Math.PI/4)];s.push(...this.helper.doubleLineOps(v[0],v[1],q[0],q[1],i),...this.helper.doubleLineOps(q[0],q[1],M[0],M[1],i))}}),s}}var Cr={};class gy{constructor(r){this.seed=r}next(){return this.seed?(2147483647&(this.seed=Math.imul(48271,this.seed)))/2147483648:Math.random()}}var Ow=0,$f=1,ry=2,Zl={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Df(r,e){return r.type===e}function zf(r){let e=[],i=function(h){let l=[];for(;h!=="";)if(h.match(/^([ \t\r\n,]+)/))h=h.substr(RegExp.$1.length);else if(h.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:Ow,text:RegExp.$1},h=h.substr(RegExp.$1.length);else{if(!h.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:$f,text:`${parseFloat(RegExp.$1)}`},h=h.substr(RegExp.$1.length)}return l[l.length]={type:ry,text:""},l}(r),s="BOD",o=0,n=i[o];for(;!Df(n,ry);){let h=0,l=[];if(s==="BOD"){if(n.text!=="M"&&n.text!=="m")return zf("M0,0"+r);o++,h=Zl[n.text],s=n.text}else Df(n,$f)?h=Zl[s]:(o++,h=Zl[n.text],s=n.text);if(!(o+h<i.length))throw Error("Path data ended short");for(let d=o;d<o+h;d++){let y=i[d];if(!Df(y,$f))throw Error("Param not a number: "+s+","+y.text);l[l.length]=+y.text}if(typeof Zl[s]!="number")throw Error("Bad segment: "+s);{let d={key:s,data:l};e.push(d),o+=h,n=i[o],s==="M"&&(s="L"),s==="m"&&(s="l")}}return e}function my(r){let e=0,i=0,s=0,o=0,n=[];for(let{key:h,data:l}of r)switch(h){case"M":n.push({key:"M",data:[...l]}),[e,i]=l,[s,o]=l;break;case"m":e+=l[0],i+=l[1],n.push({key:"M",data:[e,i]}),s=e,o=i;break;case"L":n.push({key:"L",data:[...l]}),[e,i]=l;break;case"l":e+=l[0],i+=l[1],n.push({key:"L",data:[e,i]});break;case"C":n.push({key:"C",data:[...l]}),e=l[4],i=l[5];break;case"c":{let d=l.map((y,c)=>c%2?y+i:y+e);n.push({key:"C",data:d}),e=d[4],i=d[5];break}case"Q":n.push({key:"Q",data:[...l]}),e=l[2],i=l[3];break;case"q":{let d=l.map((y,c)=>c%2?y+i:y+e);n.push({key:"Q",data:d}),e=d[2],i=d[3];break}case"A":n.push({key:"A",data:[...l]}),e=l[5],i=l[6];break;case"a":e+=l[5],i+=l[6],n.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],e,i]});break;case"H":n.push({key:"H",data:[...l]}),e=l[0];break;case"h":e+=l[0],n.push({key:"H",data:[e]});break;case"V":n.push({key:"V",data:[...l]}),i=l[0];break;case"v":i+=l[0],n.push({key:"V",data:[i]});break;case"S":n.push({key:"S",data:[...l]}),e=l[2],i=l[3];break;case"s":{let d=l.map((y,c)=>c%2?y+i:y+e);n.push({key:"S",data:d}),e=d[2],i=d[3];break}case"T":n.push({key:"T",data:[...l]}),e=l[0],i=l[1];break;case"t":e+=l[0],i+=l[1],n.push({key:"T",data:[e,i]});break;case"Z":case"z":n.push({key:"Z",data:[]}),e=s,i=o}return n}function yy(r){let e=[],i="",s=0,o=0,n=0,h=0,l=0,d=0;for(let{key:y,data:c}of r){switch(y){case"M":e.push({key:"M",data:[...c]}),[s,o]=c,[n,h]=c;break;case"C":e.push({key:"C",data:[...c]}),s=c[4],o=c[5],l=c[2],d=c[3];break;case"L":e.push({key:"L",data:[...c]}),[s,o]=c;break;case"H":s=c[0],e.push({key:"L",data:[s,o]});break;case"V":o=c[0],e.push({key:"L",data:[s,o]});break;case"S":{let x=0,b=0;i==="C"||i==="S"?(x=s+(s-l),b=o+(o-d)):(x=s,b=o),e.push({key:"C",data:[x,b,...c]}),l=c[0],d=c[1],s=c[2],o=c[3];break}case"T":{let[x,b]=c,_=0,v=0;i==="Q"||i==="T"?(_=s+(s-l),v=o+(o-d)):(_=s,v=o);let M=s+2*(_-s)/3,q=o+2*(v-o)/3,W=x+2*(_-x)/3,j=b+2*(v-b)/3;e.push({key:"C",data:[M,q,W,j,x,b]}),l=_,d=v,s=x,o=b;break}case"Q":{let[x,b,_,v]=c,M=s+2*(x-s)/3,q=o+2*(b-o)/3,W=_+2*(x-_)/3,j=v+2*(b-v)/3;e.push({key:"C",data:[M,q,W,j,_,v]}),l=x,d=b,s=_,o=v;break}case"A":{let x=Math.abs(c[0]),b=Math.abs(c[1]),_=c[2],v=c[3],M=c[4],q=c[5],W=c[6];if(x===0||b===0)e.push({key:"C",data:[s,o,q,W,q,W]}),s=q,o=W;else if(s!==q||o!==W)xy(s,o,q,W,x,b,_,v,M).forEach(function(j){e.push({key:"C",data:j})}),s=q,o=W;break}case"Z":e.push({key:"Z",data:[]}),s=n,o=h}i=y}return e}function Ra(r,e,i){return[r*Math.cos(i)-e*Math.sin(i),r*Math.sin(i)+e*Math.cos(i)]}function xy(r,e,i,s,o,n,h,l,d,y){let c=(x=h,Math.PI*x/180);var x;let b=[],_=0,v=0,M=0,q=0;if(y)[_,v,M,q]=y;else{[r,e]=Ra(r,e,-c),[i,s]=Ra(i,s,-c);let it=(r-i)/2,ot=(e-s)/2,mt=it*it/(o*o)+ot*ot/(n*n);mt>1&&(mt=Math.sqrt(mt),o*=mt,n*=mt);let et=o*o,_t=n*n,Mt=et*_t-et*ot*ot-_t*it*it,Vt=et*ot*ot+_t*it*it,Xt=(l===d?-1:1)*Math.sqrt(Math.abs(Mt/Vt));M=Xt*o*ot/n+(r+i)/2,q=Xt*-n*it/o+(e+s)/2,_=Math.asin(parseFloat(((e-q)/n).toFixed(9))),v=Math.asin(parseFloat(((s-q)/n).toFixed(9))),r<M&&(_=Math.PI-_),i<M&&(v=Math.PI-v),_<0&&(_=2*Math.PI+_),v<0&&(v=2*Math.PI+v),d&&_>v&&(_-=2*Math.PI),!d&&v>_&&(v-=2*Math.PI)}let W=v-_;if(Math.abs(W)>120*Math.PI/180){let it=v,ot=i,mt=s;v=d&&v>_?_+120*Math.PI/180*1:_+120*Math.PI/180*-1,b=xy(i=M+o*Math.cos(v),s=q+n*Math.sin(v),ot,mt,o,n,h,0,d,[v,it,M,q])}W=v-_;let j=Math.cos(_),K=Math.sin(_),J=Math.cos(v),tt=Math.sin(v),at=Math.tan(W/4),st=1.3333333333333333*o*at,dt=1.3333333333333333*n*at,bt=[r,e],At=[r+st*K,e-dt*j],wt=[i+st*tt,s-dt*J],kt=[i,s];if(At[0]=2*bt[0]-At[0],At[1]=2*bt[1]-At[1],y)return[At,wt,kt].concat(b);{b=[At,wt,kt].concat(b);let it=[];for(let ot=0;ot<b.length;ot+=3){let mt=Ra(b[ot][0],b[ot][1],c),et=Ra(b[ot+1][0],b[ot+1][1],c),_t=Ra(b[ot+2][0],b[ot+2][1],c);it.push([mt[0],mt[1],et[0],et[1],_t[0],_t[1]])}return it}}var Iw={randOffset:function(r,e){return le(r,e)},randOffsetWithRange:function(r,e,i){return rh(r,e,i)},ellipse:function(r,e,i,s,o){let n=by(i,s,o);return qf(r,e,o,n).opset},doubleLineOps:function(r,e,i,s,o){return Xi(r,e,i,s,o,!0)}};function Cy(r,e,i,s,o){return{type:"path",ops:Xi(r,e,i,s,o)}}function th(r,e,i){let s=(r||[]).length;if(s>2){let o=[];for(let n=0;n<s-1;n++)o.push(...Xi(r[n][0],r[n][1],r[n+1][0],r[n+1][1],i));return e&&o.push(...Xi(r[s-1][0],r[s-1][1],r[0][0],r[0][1],i)),{type:"path",ops:o}}return s===2?Cy(r[0][0],r[0][1],r[1][0],r[1][1],i):{type:"path",ops:[]}}function $w(r,e,i,s,o){return function(n,h){return th(n,!0,h)}([[r,e],[r+i,e],[r+i,e+s],[r,e+s]],o)}function iy(r,e){if(r.length){let i=typeof r[0][0]=="number"?[r]:r,s=Ql(i[0],1*(1+0.2*e.roughness),e),o=e.disableMultiStroke?[]:Ql(i[0],1.5*(1+0.22*e.roughness),ay(e));for(let n=1;n<i.length;n++){let h=i[n];if(h.length){let l=Ql(h,1*(1+0.2*e.roughness),e),d=e.disableMultiStroke?[]:Ql(h,1.5*(1+0.22*e.roughness),ay(e));for(let y of l)y.op!=="move"&&s.push(y);for(let y of d)y.op!=="move"&&o.push(y)}}return{type:"path",ops:s.concat(o)}}return{type:"path",ops:[]}}function by(r,e,i){let s=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(r/2,2)+Math.pow(e/2,2))/2)),o=Math.ceil(Math.max(i.curveStepCount,i.curveStepCount/Math.sqrt(200)*s)),n=2*Math.PI/o,h=Math.abs(r/2),l=Math.abs(e/2),d=1-i.curveFitting;return h+=le(h*d,i),l+=le(l*d,i),{increment:n,rx:h,ry:l}}function qf(r,e,i,s){let[o,n]=ny(s.increment,r,e,s.rx,s.ry,1,s.increment*rh(0.1,rh(0.4,1,i),i),i),h=ih(o,null,i);if(!i.disableMultiStroke&&i.roughness!==0){let[l]=ny(s.increment,r,e,s.rx,s.ry,1.5,0,i),d=ih(l,null,i);h=h.concat(d)}return{estimatedPoints:n,opset:{type:"path",ops:h}}}function oy(r,e,i,s,o,n,h,l,d){let y=r,c=e,x=Math.abs(i/2),b=Math.abs(s/2);x+=le(0.01*x,d),b+=le(0.01*b,d);let _=o,v=n;for(;_<0;)_+=2*Math.PI,v+=2*Math.PI;v-_>2*Math.PI&&(_=0,v=2*Math.PI);let M=2*Math.PI/d.curveStepCount,q=Math.min(M/2,(v-_)/2),W=ly(q,y,c,x,b,_,v,1,d);if(!d.disableMultiStroke){let j=ly(q,y,c,x,b,_,v,1.5,d);W.push(...j)}return h&&(l?W.push(...Xi(y,c,y+x*Math.cos(_),c+b*Math.sin(_),d),...Xi(y,c,y+x*Math.cos(v),c+b*Math.sin(v),d)):W.push({op:"lineTo",data:[y,c]},{op:"lineTo",data:[y+x*Math.cos(_),c+b*Math.sin(_)]})),{type:"path",ops:W}}function sy(r,e){let i=yy(my(zf(r))),s=[],o=[0,0],n=[0,0];for(let{key:h,data:l}of i)switch(h){case"M":n=[l[0],l[1]],o=[l[0],l[1]];break;case"L":s.push(...Xi(n[0],n[1],l[0],l[1],e)),n=[l[0],l[1]];break;case"C":{let[d,y,c,x,b,_]=l;s.push(...Dw(d,y,c,x,b,_,n,e)),n=[b,_];break}case"Z":s.push(...Xi(n[0],n[1],o[0],o[1],e)),n=[o[0],o[1]]}return{type:"path",ops:s}}function Pf(r,e){let i=[];for(let s of r)if(s.length){let o=e.maxRandomnessOffset||0,n=s.length;if(n>2){i.push({op:"move",data:[s[0][0]+le(o,e),s[0][1]+le(o,e)]});for(let h=1;h<n;h++)i.push({op:"lineTo",data:[s[h][0]+le(o,e),s[h][1]+le(o,e)]})}}return{type:"fillPath",ops:i}}function ps(r,e){return function(i,s){let o=i.fillStyle||"hachure";if(!Cr[o])switch(o){case"zigzag":Cr[o]||(Cr[o]=new cy(s));break;case"cross-hatch":Cr[o]||(Cr[o]=new uy(s));break;case"dots":Cr[o]||(Cr[o]=new fy(s));break;case"dashed":Cr[o]||(Cr[o]=new dy(s));break;case"zigzag-line":Cr[o]||(Cr[o]=new py(s));break;default:o="hachure",Cr[o]||(Cr[o]=new sh(s))}return Cr[o]}(e,Iw).fillPolygons(r,e)}function ay(r){let e=Object.assign({},r);return e.randomizer=void 0,r.seed&&(e.seed=r.seed+1),e}function ky(r){return r.randomizer||(r.randomizer=new gy(r.seed||0)),r.randomizer.next()}function rh(r,e,i,s=1){return i.roughness*s*(ky(i)*(e-r)+r)}function le(r,e,i=1){return rh(-r,r,e,i)}function Xi(r,e,i,s,o,n=!1){let h=n?o.disableMultiStrokeFill:o.disableMultiStroke,l=Nf(r,e,i,s,o,!0,!1);if(h)return l;let d=Nf(r,e,i,s,o,!0,!0);return l.concat(d)}function Nf(r,e,i,s,o,n,h){let l=Math.pow(r-i,2)+Math.pow(e-s,2),d=Math.sqrt(l),y=1;y=d<200?1:d>500?0.4:-0.0016668*d+1.233334;let c=o.maxRandomnessOffset||0;c*c*100>l&&(c=d/10);let x=c/2,b=0.2+0.2*ky(o),_=o.bowing*o.maxRandomnessOffset*(s-e)/200,v=o.bowing*o.maxRandomnessOffset*(r-i)/200;_=le(_,o,y),v=le(v,o,y);let M=[],q=()=>le(x,o,y),W=()=>le(c,o,y),j=o.preserveVertices;return n&&(h?M.push({op:"move",data:[r+(j?0:q()),e+(j?0:q())]}):M.push({op:"move",data:[r+(j?0:le(c,o,y)),e+(j?0:le(c,o,y))]})),h?M.push({op:"bcurveTo",data:[_+r+(i-r)*b+q(),v+e+(s-e)*b+q(),_+r+2*(i-r)*b+q(),v+e+2*(s-e)*b+q(),i+(j?0:q()),s+(j?0:q())]}):M.push({op:"bcurveTo",data:[_+r+(i-r)*b+W(),v+e+(s-e)*b+W(),_+r+2*(i-r)*b+W(),v+e+2*(s-e)*b+W(),i+(j?0:W()),s+(j?0:W())]}),M}function Ql(r,e,i){if(!r.length)return[];let s=[];s.push([r[0][0]+le(e,i),r[0][1]+le(e,i)]),s.push([r[0][0]+le(e,i),r[0][1]+le(e,i)]);for(let o=1;o<r.length;o++)s.push([r[o][0]+le(e,i),r[o][1]+le(e,i)]),o===r.length-1&&s.push([r[o][0]+le(e,i),r[o][1]+le(e,i)]);return ih(s,null,i)}function ih(r,e,i){let s=r.length,o=[];if(s>3){let n=[],h=1-i.curveTightness;o.push({op:"move",data:[r[1][0],r[1][1]]});for(let l=1;l+2<s;l++){let d=r[l];n[0]=[d[0],d[1]],n[1]=[d[0]+(h*r[l+1][0]-h*r[l-1][0])/6,d[1]+(h*r[l+1][1]-h*r[l-1][1])/6],n[2]=[r[l+1][0]+(h*r[l][0]-h*r[l+2][0])/6,r[l+1][1]+(h*r[l][1]-h*r[l+2][1])/6],n[3]=[r[l+1][0],r[l+1][1]],o.push({op:"bcurveTo",data:[n[1][0],n[1][1],n[2][0],n[2][1],n[3][0],n[3][1]]})}if(e&&e.length===2){let l=i.maxRandomnessOffset;o.push({op:"lineTo",data:[e[0]+le(l,i),e[1]+le(l,i)]})}}else s===3?(o.push({op:"move",data:[r[1][0],r[1][1]]}),o.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[2][0],r[2][1]]})):s===2&&o.push(...Nf(r[0][0],r[0][1],r[1][0],r[1][1],i,!0,!0));return o}function ny(r,e,i,s,o,n,h,l){let d=[],y=[];if(l.roughness===0){r/=4,y.push([e+s*Math.cos(-r),i+o*Math.sin(-r)]);for(let c=0;c<=2*Math.PI;c+=r){let x=[e+s*Math.cos(c),i+o*Math.sin(c)];d.push(x),y.push(x)}y.push([e+s*Math.cos(0),i+o*Math.sin(0)]),y.push([e+s*Math.cos(r),i+o*Math.sin(r)])}else{let c=le(0.5,l)-Math.PI/2;y.push([le(n,l)+e+0.9*s*Math.cos(c-r),le(n,l)+i+0.9*o*Math.sin(c-r)]);let x=2*Math.PI+c-0.01;for(let b=c;b<x;b+=r){let _=[le(n,l)+e+s*Math.cos(b),le(n,l)+i+o*Math.sin(b)];d.push(_),y.push(_)}y.push([le(n,l)+e+s*Math.cos(c+2*Math.PI+0.5*h),le(n,l)+i+o*Math.sin(c+2*Math.PI+0.5*h)]),y.push([le(n,l)+e+0.98*s*Math.cos(c+h),le(n,l)+i+0.98*o*Math.sin(c+h)]),y.push([le(n,l)+e+0.9*s*Math.cos(c+0.5*h),le(n,l)+i+0.9*o*Math.sin(c+0.5*h)])}return[y,d]}function ly(r,e,i,s,o,n,h,l,d){let y=n+le(0.1,d),c=[];c.push([le(l,d)+e+0.9*s*Math.cos(y-r),le(l,d)+i+0.9*o*Math.sin(y-r)]);for(let x=y;x<=h;x+=r)c.push([le(l,d)+e+s*Math.cos(x),le(l,d)+i+o*Math.sin(x)]);return c.push([e+s*Math.cos(h),i+o*Math.sin(h)]),c.push([e+s*Math.cos(h),i+o*Math.sin(h)]),ih(c,null,d)}function Dw(r,e,i,s,o,n,h,l){let d=[],y=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+0.3],c=[0,0],x=l.disableMultiStroke?1:2,b=l.preserveVertices;for(let _=0;_<x;_++)_===0?d.push({op:"move",data:[h[0],h[1]]}):d.push({op:"move",data:[h[0]+(b?0:le(y[0],l)),h[1]+(b?0:le(y[0],l))]}),c=b?[o,n]:[o+le(y[_],l),n+le(y[_],l)],d.push({op:"bcurveTo",data:[r+le(y[_],l),e+le(y[_],l),i+le(y[_],l),s+le(y[_],l),c[0],c[1]]});return d}function Na(r){return[...r]}function hy(r,e=0){let i=r.length;if(i<3)throw Error("A curve must have at least three points.");let s=[];if(i===3)s.push(Na(r[0]),Na(r[1]),Na(r[2]),Na(r[2]));else{let o=[];o.push(r[0],r[0]);for(let l=1;l<r.length;l++)o.push(r[l]),l===r.length-1&&o.push(r[l]);let n=[],h=1-e;s.push(Na(o[0]));for(let l=1;l+2<o.length;l++){let d=o[l];n[0]=[d[0],d[1]],n[1]=[d[0]+(h*o[l+1][0]-h*o[l-1][0])/6,d[1]+(h*o[l+1][1]-h*o[l-1][1])/6],n[2]=[o[l+1][0]+(h*o[l][0]-h*o[l+2][0])/6,o[l+1][1]+(h*o[l][1]-h*o[l+2][1])/6],n[3]=[o[l+1][0],o[l+1][1]],s.push(n[1],n[2],n[3])}}return s}function eh(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)}function Pw(r,e,i){let s=eh(e,i);if(s===0)return eh(r,e);let o=((r[0]-e[0])*(i[0]-e[0])+(r[1]-e[1])*(i[1]-e[1]))/s;return o=Math.max(0,Math.min(1,o)),eh(r,ao(e,i,o))}function ao(r,e,i){return[r[0]+(e[0]-r[0])*i,r[1]+(e[1]-r[1])*i]}function Wf(r,e,i,s){let o=s||[];if(function(l,d){let y=l[d+0],c=l[d+1],x=l[d+2],b=l[d+3],_=3*c[0]-2*y[0]-b[0];_*=_;let v=3*c[1]-2*y[1]-b[1];v*=v;let M=3*x[0]-2*b[0]-y[0];M*=M;let q=3*x[1]-2*b[1]-y[1];return q*=q,_<M&&(_=M),v<q&&(v=q),_+v}(r,e)<i){let l=r[e+0];if(o.length)(n=o[o.length-1],h=l,Math.sqrt(eh(n,h)))>1&&o.push(l);else o.push(l);o.push(r[e+3])}else{let d=r[e+0],y=r[e+1],c=r[e+2],x=r[e+3],b=ao(d,y,0.5),_=ao(y,c,0.5),v=ao(c,x,0.5),M=ao(b,_,0.5),q=ao(_,v,0.5),W=ao(M,q,0.5);Wf([d,b,M,W],0,i,o),Wf([W,q,v,x],0,i,o)}var n,h;return o}function Rw(r,e){return oh(r,0,r.length,e)}function oh(r,e,i,s,o){let n=o||[],h=r[e],l=r[i-1],d=0,y=1;for(let c=e+1;c<i-1;++c){let x=Pw(r[c],h,l);x>d&&(d=x,y=c)}return Math.sqrt(d)>s?(oh(r,e,y+1,s,n),oh(r,y,i,s,n)):(n.length||n.push(h),n.push(l)),n}function Rf(r,e=0.15,i){let s=[],o=(r.length-1)/3;for(let n=0;n<o;n++)Wf(r,3*n,e,s);return i&&i>0?oh(s,0,s.length,i):s}var Sr="none";class Qa{constructor(r){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:0.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:0.8},this.config=r||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2147483648)}_o(r){return r?Object.assign({},this.defaultOptions,r):this.defaultOptions}_d(r,e,i){return{shape:r,sets:e||[],options:i||this.defaultOptions}}line(r,e,i,s,o){let n=this._o(o);return this._d("line",[Cy(r,e,i,s,n)],n)}rectangle(r,e,i,s,o){let n=this._o(o),h=[],l=$w(r,e,i,s,n);if(n.fill){let d=[[r,e],[r+i,e],[r+i,e+s],[r,e+s]];n.fillStyle==="solid"?h.push(Pf([d],n)):h.push(ps([d],n))}return n.stroke!==Sr&&h.push(l),this._d("rectangle",h,n)}ellipse(r,e,i,s,o){let n=this._o(o),h=[],l=by(i,s,n),d=qf(r,e,n,l);if(n.fill)if(n.fillStyle==="solid"){let y=qf(r,e,n,l).opset;y.type="fillPath",h.push(y)}else h.push(ps([d.estimatedPoints],n));return n.stroke!==Sr&&h.push(d.opset),this._d("ellipse",h,n)}circle(r,e,i,s){let o=this.ellipse(r,e,i,i,s);return o.shape="circle",o}linearPath(r,e){let i=this._o(e);return this._d("linearPath",[th(r,!1,i)],i)}arc(r,e,i,s,o,n,h=!1,l){let d=this._o(l),y=[],c=oy(r,e,i,s,o,n,h,!0,d);if(h&&d.fill)if(d.fillStyle==="solid"){let x=Object.assign({},d);x.disableMultiStroke=!0;let b=oy(r,e,i,s,o,n,!0,!1,x);b.type="fillPath",y.push(b)}else y.push(function(x,b,_,v,M,q,W){let j=x,K=b,J=Math.abs(_/2),tt=Math.abs(v/2);J+=le(0.01*J,W),tt+=le(0.01*tt,W);let at=M,st=q;for(;at<0;)at+=2*Math.PI,st+=2*Math.PI;st-at>2*Math.PI&&(at=0,st=2*Math.PI);let dt=(st-at)/W.curveStepCount,bt=[];for(let At=at;At<=st;At+=dt)bt.push([j+J*Math.cos(At),K+tt*Math.sin(At)]);return bt.push([j+J*Math.cos(st),K+tt*Math.sin(st)]),bt.push([j,K]),ps([bt],W)}(r,e,i,s,o,n,d));return d.stroke!==Sr&&y.push(c),this._d("arc",y,d)}curve(r,e){let i=this._o(e),s=[],o=iy(r,i);if(i.fill&&i.fill!==Sr)if(i.fillStyle==="solid"){let n=iy(r,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(n.ops)})}else{let n=[],h=r;if(h.length){let l=typeof h[0][0]=="number"?[h]:h;for(let d of l)d.length<3?n.push(...d):d.length===3?n.push(...Rf(hy([d[0],d[0],d[1],d[2]]),10,(1+i.roughness)/2)):n.push(...Rf(hy(d),10,(1+i.roughness)/2))}n.length&&s.push(ps([n],i))}return i.stroke!==Sr&&s.push(o),this._d("curve",s,i)}polygon(r,e){let i=this._o(e),s=[],o=th(r,!0,i);return i.fill&&(i.fillStyle==="solid"?s.push(Pf([r],i)):s.push(ps([r],i))),i.stroke!==Sr&&s.push(o),this._d("polygon",s,i)}path(r,e){let i=this._o(e),s=[];if(!r)return this._d("path",s,i);r=(r||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=i.fill&&i.fill!=="transparent"&&i.fill!==Sr,n=i.stroke!==Sr,h=!!(i.simplification&&i.simplification<1),l=function(y,c,x){let b=yy(my(zf(y))),_=[],v=[],M=[0,0],q=[],W=()=>{q.length>=4&&v.push(...Rf(q,c)),q=[]},j=()=>{W(),v.length&&(_.push(v),v=[])};for(let{key:J,data:tt}of b)switch(J){case"M":j(),M=[tt[0],tt[1]],v.push(M);break;case"L":W(),v.push([tt[0],tt[1]]);break;case"C":if(!q.length){let at=v.length?v[v.length-1]:M;q.push([at[0],at[1]])}q.push([tt[0],tt[1]]),q.push([tt[2],tt[3]]),q.push([tt[4],tt[5]]);break;case"Z":W(),v.push([M[0],M[1]])}if(j(),!x)return _;let K=[];for(let J of _){let tt=Rw(J,x);tt.length&&K.push(tt)}return K}(r,1,h?4-4*(i.simplification||1):(1+i.roughness)/2),d=sy(r,i);if(o)if(i.fillStyle==="solid")if(l.length===1){let y=sy(r,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(y.ops)})}else s.push(Pf(l,i));else s.push(ps(l,i));return n&&(h?l.forEach((y)=>{s.push(th(y,!1,i))}):s.push(d)),this._d("path",s,i)}opsToPath(r,e){let i="";for(let s of r.ops){let o=typeof e=="number"&&e>=0?s.data.map((n)=>+n.toFixed(e)):s.data;switch(s.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(r){let e=r.sets||[],i=r.options||this.defaultOptions,s=[];for(let o of e){let n=null;switch(o.type){case"path":n={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Sr};break;case"fillPath":n={d:this.opsToPath(o),stroke:Sr,strokeWidth:0,fill:i.fill||Sr};break;case"fillSketch":n=this.fillSketch(o,i)}n&&s.push(n)}return s}fillSketch(r,e){let i=e.fillWeight;return i<0&&(i=e.strokeWidth/2),{d:this.opsToPath(r),stroke:e.fill||Sr,strokeWidth:i,fill:Sr}}_mergedShape(r){return r.filter((e,i)=>i===0||e.op!=="move")}}class wy{constructor(r,e){this.canvas=r,this.ctx=this.canvas.getContext("2d"),this.gen=new Qa(e)}draw(r){let e=r.sets||[],i=r.options||this.getDefaultOptions(),s=this.ctx,o=r.options.fixedDecimalPlaceDigits;for(let n of e)switch(n.type){case"path":s.save(),s.strokeStyle=i.stroke==="none"?"transparent":i.stroke,s.lineWidth=i.strokeWidth,i.strokeLineDash&&s.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(s.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(s,n,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=i.fill||"";let h=r.shape==="curve"||r.shape==="polygon"||r.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,n,o,h),s.restore();break}case"fillSketch":this.fillSketch(s,n,i)}}fillSketch(r,e,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2),r.save(),i.fillLineDash&&r.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(r.lineDashOffset=i.fillLineDashOffset),r.strokeStyle=i.fill||"",r.lineWidth=s,this._drawToContext(r,e,i.fixedDecimalPlaceDigits),r.restore()}_drawToContext(r,e,i,s="nonzero"){r.beginPath();for(let o of e.ops){let n=typeof i=="number"&&i>=0?o.data.map((h)=>+h.toFixed(i)):o.data;switch(o.op){case"move":r.moveTo(n[0],n[1]);break;case"bcurveTo":r.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case"lineTo":r.lineTo(n[0],n[1])}}e.type==="fillPath"?r.fill(s):r.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(r,e,i,s,o){let n=this.gen.line(r,e,i,s,o);return this.draw(n),n}rectangle(r,e,i,s,o){let n=this.gen.rectangle(r,e,i,s,o);return this.draw(n),n}ellipse(r,e,i,s,o){let n=this.gen.ellipse(r,e,i,s,o);return this.draw(n),n}circle(r,e,i,s){let o=this.gen.circle(r,e,i,s);return this.draw(o),o}linearPath(r,e){let i=this.gen.linearPath(r,e);return this.draw(i),i}polygon(r,e){let i=this.gen.polygon(r,e);return this.draw(i),i}arc(r,e,i,s,o,n,h=!1,l){let d=this.gen.arc(r,e,i,s,o,n,h,l);return this.draw(d),d}curve(r,e){let i=this.gen.curve(r,e);return this.draw(i),i}path(r,e){let i=this.gen.path(r,e);return this.draw(i),i}}var Jl="http://www.w3.org/2000/svg";class Sy{constructor(r,e){this.svg=r,this.gen=new Qa(e)}draw(r){let e=r.sets||[],i=r.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(Jl,"g"),n=r.options.fixedDecimalPlaceDigits;for(let h of e){let l=null;switch(h.type){case"path":l=s.createElementNS(Jl,"path"),l.setAttribute("d",this.opsToPath(h,n)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=s.createElementNS(Jl,"path"),l.setAttribute("d",this.opsToPath(h,n)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),r.shape!=="curve"&&r.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(s,h,i)}l&&o.appendChild(l)}return o}fillSketch(r,e,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2);let o=r.createElementNS(Jl,"path");return o.setAttribute("d",this.opsToPath(e,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(r,e){return this.gen.opsToPath(r,e)}line(r,e,i,s,o){let n=this.gen.line(r,e,i,s,o);return this.draw(n)}rectangle(r,e,i,s,o){let n=this.gen.rectangle(r,e,i,s,o);return this.draw(n)}ellipse(r,e,i,s,o){let n=this.gen.ellipse(r,e,i,s,o);return this.draw(n)}circle(r,e,i,s){let o=this.gen.circle(r,e,i,s);return this.draw(o)}linearPath(r,e){let i=this.gen.linearPath(r,e);return this.draw(i)}polygon(r,e){let i=this.gen.polygon(r,e);return this.draw(i)}arc(r,e,i,s,o,n,h=!1,l){let d=this.gen.arc(r,e,i,s,o,n,h,l);return this.draw(d)}curve(r,e){let i=this.gen.curve(r,e);return this.draw(i)}path(r,e){let i=this.gen.path(r,e);return this.draw(i)}}var g={canvas:(r,e)=>new wy(r,e),svg:(r,e)=>new Sy(r,e),generator:(r)=>new Qa(r),newSeed:()=>Qa.newSeed()};var qw=1,Nw=3;async function td(r){let e=r.getElementsByTagName("img");if(!e||e.length===0)return;let i=!ed(r);await Promise.all([...e].map((s)=>new Promise((o)=>{function n(){if(s.style.display="flex",s.style.flexDirection="column",i){let h=u().fontSize?u().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[d=B.fontSize]=Tt(h),y=d*5+"px";s.style.minWidth=y,s.style.maxWidth=y}else s.style.width="100%";o(s)}t(n,"setupImage"),setTimeout(()=>{if(s.complete)n()}),s.addEventListener("error",n),s.addEventListener("load",n)})))}t(td,"configureLabelImages");function ed(r){if(r.nodeType===Nw)return r.textContent?.trim()!=="";if(r.nodeType!==qw)return!1;if(r.tagName.toLowerCase()==="img")return!1;return[...r.childNodes].some(ed)}t(ed,"hasTextBesidesImages");var Ty=3,Ww=32,zw=t(async(r,e,i)=>{let s=u(),o=r.insert("g").attr("class",i??"node default").attr("id",e.domId||e.id),n=o.insert("g").attr("class","label").attr("style",De(e.labelStyle)),l=[{text:typeof e.label==="string"?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map((W)=>({text:W,cssClass:"c4-descr"}))].filter((W)=>W.text),d=e.width?Math.max(e.width-2*(e.padding??0),Ww):u().flowchart?.wrappingWidth??200,c=s.c4?.wrap??!0?d:Number.POSITIVE_INFINITY,x=await Promise.all(l.map(async(W)=>{let j=n.append("g").attr("class",W.cssClass),K=await rt(j,U(Pn(W.text??""),s),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:c,style:e.labelStyle},s);return f(K).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),f(K).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:j,box:j.node().getBBox()}})),b=Math.max(...x.map(({box:W})=>W.width),0),_=0;for(let{el:W,box:j}of x)W.attr("transform",`translate(${b/2-j.x-j.width/2}, ${_-j.y})`),_+=j.height+Ty;let v=x.length>0?_-Ty:0;n.insert("rect",":first-child"),n.attr("transform",`translate(${-b/2}, ${-v/2})`);let M=n.node().getBBox(),q=(e.padding??0)/2;return{shapeSvg:o,bbox:M,halfPadding:q,label:n}},"c4LabelHelper"),_y=t((r,e)=>{let{x:i,y:s,width:o,height:n}=r;if(o>=e)return r;if(!("left"in r))return{x:i-(e-o)/2,y:s,width:e,height:n};return{x:i,y:s,width:e,height:n,top:s,left:i,bottom:s+n,right:i+e,toJSON:t(()=>({}),"toJSON")}},"withMinWidth"),z=t(async(r,e,i,{ignoreMinWidth:s=!1}={})=>{if(e.stereotype!==void 0)return zw(r,e,i);let o,n=e.useHtmlLabels||sn(u()?.htmlLabels);if(!i)o="node default";else o=i;let h=r.insert("g").attr("class",o).attr("id",e.domId||e.id),l=h.insert("g").attr("class","label").attr("style",De(e.labelStyle)),d;if(e.label===void 0)d="";else d=typeof e.label==="string"?e.label:e.label[0];let y=!!e.icon||!!e.img,c=e.labelType==="markdown",x=d&&!e.width&&!s?e.minWidth??0:0,b=await rt(l,U(Pn(d),u()),{useHtmlLabels:n,width:e.width||e.wrappingWidth||u().flowchart?.wrappingWidth,minWidth:x,classes:c?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:y,markdown:c},u()),_=(e?.padding??0)/2,v;if(n){let M=b.children[0],q=f(b);await td(M),v=await Ei.measure(()=>M.getBoundingClientRect()),v=_y(v,x),q.attr("width",v.width),q.attr("height",v.height)}else v=await Ei.measure(()=>b.getBBox()),v=_y(v,x);if(n)l.attr("transform","translate("+-v.width/2+", "+-v.height/2+")");else l.attr("transform","translate(0, "+-v.height/2+")");if(e.centerLabel)l.attr("transform","translate("+-v.width/2+", "+-v.height/2+")");return l.insert("rect",":first-child"),{shapeSvg:h,bbox:v,halfPadding:_,label:l}},"labelHelper"),qo=t(async(r,e,i)=>{let s=i.useHtmlLabels??He(u()),o=r.insert("g").attr("class","label").attr("style",i.labelStyle||""),n=await rt(o,U(Pn(e),u()),{useHtmlLabels:s,width:i.width||u()?.flowchart?.wrappingWidth,style:i.labelStyle,addSvgBackground:!!i.icon||!!i.img}),h=i.padding/2,l;if(He(u())){let d=n.children[0],y=f(n);l=await Ei.measure(()=>d.getBoundingClientRect()),y.attr("width",l.width),y.attr("height",l.height)}else l=await Ei.measure(()=>n.getBBox());if(s)o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");else o.attr("transform","translate(0, "+-l.height/2+")");if(i.centerLabel)o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");return o.insert("rect",":first-child"),{shapeSvg:r,bbox:l,halfPadding:h,label:o}},"insertLabel"),O=t((r,e,i)=>{if(i){r.width=i.width,r.height=i.height;return}let s=e.node().getBBox();r.width=s.width,r.height=s.height},"updateNodeBounds"),te=t((r,e)=>(r.look==="handDrawn"?"rough-node":"node")+" "+r.cssClasses+" "+(e||""),"getNodeClasses");function ye(r){let e=r.map((i,s)=>`${s===0?"M":"L"}${i.x},${i.y}`);return e.push("Z"),e.join(" ")}t(ye,"createPathFromPoints");function Vi(r,e,i,s,o,n){let h=[],l=50,d=i-r,y=s-e,c=d/n,x=2*Math.PI/c,b=e+y/2;for(let _=0;_<=50;_++){let v=_/50,M=r+v*d,q=b+o*Math.sin(x*(M-r));h.push({x:M,y:q})}return h}t(Vi,"generateFullSineWavePoints");function ai(r,e,i,s,o,n){let h=[],l=o*Math.PI/180,c=(n*Math.PI/180-l)/(s-1);for(let x=0;x<s;x++){let b=l+x*c,_=r+i*Math.cos(b),v=e+i*Math.sin(b);h.push({x:-_,y:-v})}return h}t(ai,"generateCirclePoints");function Kf(r){let e=Array.from(r.childNodes).filter((d)=>d.tagName==="path"),i=document.createElementNS("http://www.w3.org/2000/svg","path"),s=e.map((d)=>d.getAttribute("d")).filter((d)=>d!==null).join(" ");i.setAttribute("d",s);let o=e.find((d)=>d.getAttribute("fill")!=="none"),n=e.find((d)=>d.getAttribute("stroke")!=="none"),h=t((d,y)=>d?.getAttribute(y)??void 0,"getAttr");if(o){let d={fill:h(o,"fill"),"fill-opacity":h(o,"fill-opacity")??"1"};Object.entries(d).forEach(([y,c])=>{if(c)i.setAttribute(y,c)})}if(n){let d={stroke:h(n,"stroke"),"stroke-width":h(n,"stroke-width")??"1","stroke-opacity":h(n,"stroke-opacity")??"1"};Object.entries(d).forEach(([y,c])=>{if(c)i.setAttribute(y,c)})}let l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(i),l}t(Kf,"mergePaths");var Hw=t((r,e)=>{var{x:i,y:s}=r,o=e.x-i,n=e.y-s,h=r.width/2,l=r.height/2,d,y;if(Math.abs(n)*h>Math.abs(o)*l){if(n<0)l=-l;d=n===0?0:l*o/n,y=l}else{if(o<0)h=-h;d=h,y=o===0?0:h*n/o}return{x:i+d,y:s+y}},"intersectRect"),ni=Hw;function Gy(r,e){return r.intersect(e)}t(Gy,"intersectNode");var Yw=Gy;function Xy(r,e,i,s){var{x:o,y:n}=r,h=o-s.x,l=n-s.y,d=Math.sqrt(e*e*l*l+i*i*h*h),y=Math.abs(e*i*h/d);if(s.x<o)y=-y;var c=Math.abs(e*i*l/d);if(s.y<n)c=-c;return{x:o+y,y:n+c}}t(Xy,"intersectEllipse");var Vy=Xy;function Ky(r,e,i){return Vy(r,e,e,i)}t(Ky,"intersectCircle");var Uw=Ky;function Zy(r,e,i,s){{let o=e.y-r.y,n=r.x-e.x,h=e.x*r.y-r.x*e.y,l=o*i.x+n*i.y+h,d=o*s.x+n*s.y+h,y=0.000001;if(l!==0&&d!==0&&Zf(l,d))return;let c=s.y-i.y,x=i.x-s.x,b=s.x*i.y-i.x*s.y,_=c*r.x+x*r.y+b,v=c*e.x+x*e.y+b;if(Math.abs(_)<0.000001&&Math.abs(v)<0.000001&&Zf(_,v))return;let M=o*x-c*n;if(M===0)return;let q=(n*b-x*h)/M,W=(c*h-o*b)/M;return{x:q,y:W}}}t(Zy,"intersectLine");function Zf(r,e){return r*e>0}t(Zf,"sameSign");var jw=Zy;function Qy(r,e,i){let{x:s,y:o}=r,n=[],{POSITIVE_INFINITY:h,POSITIVE_INFINITY:l}=Number;if(typeof e.forEach==="function")e.forEach(function(c){h=Math.min(h,c.x),l=Math.min(l,c.y)});else h=Math.min(h,e.x),l=Math.min(l,e.y);let d=s-r.width/2-h,y=o-r.height/2-l;for(let c=0;c<e.length;c++){let x=e[c],b=e[c<e.length-1?c+1:0],_=jw(r,i,{x:d+x.x,y:y+x.y},{x:d+b.x,y:y+b.y});if(_)n.push(_)}if(!n.length)return r;if(n.length>1)n.sort(function(c,x){let b=c.x-i.x,_=c.y-i.y,v=Math.sqrt(b*b+_*_),M=x.x-i.x,q=x.y-i.y,W=Math.sqrt(M*M+q*q);return v<W?-1:v===W?0:1});return n[0]}t(Qy,"intersectPolygon");var Gw=Qy,T={node:Yw,circle:Uw,ellipse:Vy,polygon:Gw,rect:ni},br=t((r,e,i,s,o)=>["M",r+o,e,"H",r+i-o,"A",o,o,0,0,1,r+i,e+o,"V",e+s-o,"A",o,o,0,0,1,r+i-o,e+s,"H",r+o,"A",o,o,0,0,1,r,e+s-o,"V",e+o,"A",o,o,0,0,1,r+o,e,"Z"].join(" "),"createRoundedRectPathD"),Xw=t(async(r,e,i,s=!1,o=!1)=>{let n=e||"";if(typeof n==="object")n=n[0];let h=u(),l=He(h);return await rt(r,n,{style:i,isTitle:s,useHtmlLabels:l,markdown:!1,isNode:o,width:Number.POSITIVE_INFINITY},h)},"createLabel"),Hr=Xw;function Jy(r,e){let{labelStyles:i}=E(e);e.labelStyle=i;let s=te(e),o=s;if(!s)o="anchor";let n=r.insert("g").attr("class",o).attr("id",e.domId||e.id),h=1,{cssStyles:l}=e,d=g.svg(n),y=Kt(e,{fill:"black",stroke:"none",fillStyle:"solid"});if(e.look!=="handDrawn")y.roughness=0;let c=d.circle(0,0,h*2,y),x=n.insert(()=>c,":first-child");return x.attr("class","anchor").attr("style",De(l)),O(e,x),e.intersect=function(b){return a.info("Circle intersect",e,h,b),T.circle(e,h,b)},n}t(Jy,"anchor");function Qf(r,e,i,s,o,n,h){let d=(r+i)/2,y=(e+s)/2,c=Math.atan2(s-e,i-r),x=(i-r)/2,b=(s-e)/2,_=x/o,v=b/n,M=Math.sqrt(_**2+v**2);if(M>1)throw Error("The given radii are too small to create an arc between the points.");let q=Math.sqrt(1-M**2),W=d+q*n*Math.sin(c)*(h?-1:1),j=y-q*o*Math.cos(c)*(h?-1:1),K=Math.atan2((e-j)/n,(r-W)/o),tt=Math.atan2((s-j)/n,(i-W)/o)-K;if(h&&tt<0)tt+=2*Math.PI;if(!h&&tt>0)tt-=2*Math.PI;let at=[];for(let st=0;st<20;st++){let dt=st/19,bt=K+dt*tt,At=W+o*Math.cos(bt),wt=j+n*Math.sin(bt);at.push({x:At,y:wt})}return at}t(Qf,"generateArcPoints");function tx(r,e,i){let[s,o]=[e,i].sort((n,h)=>h-n);return o*(1-Math.sqrt(1-(r/s/2)**2))}t(tx,"calculateArcSagitta");async function ex(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,h=e.look==="neo"?12:o,l=t((bt)=>bt+h,"calcTotalHeight"),d=t((bt)=>{let At=bt/2;return[At/(2.5+bt/50),At]},"calcEllipseRadius"),{shapeSvg:y,bbox:c}=await z(r,e,te(e)),x=l(e?.height?e?.height:c.height),[b,_]=d(x),v=tx(x,b,_),q=(e?.width?e?.width:c.width)+n*2+v-v,W=x,{cssStyles:j}=e,K=[{x:q/2,y:-W/2},{x:-q/2,y:-W/2},...Qf(-q/2,-W/2,-q/2,W/2,b,_,!1),{x:q/2,y:W/2},...Qf(q/2,W/2,q/2,-W/2,b,_,!0)],J=g.svg(y),tt=Kt(e,{});if(e.look!=="handDrawn")tt.roughness=0,tt.fillStyle="solid";let at=ye(K),st=J.path(at,tt),dt=y.insert(()=>st,":first-child");if(dt.attr("class","basic label-container outer-path"),j&&e.look!=="handDrawn")dt.selectAll("path").attr("style",j);if(s&&e.look!=="handDrawn")dt.selectAll("path").attr("style",s);return dt.attr("transform",`translate(${b/2}, 0)`),O(e,dt),e.intersect=function(bt){return T.polygon(e,K,bt)},y}t(ex,"bowTieRect");async function rx(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{shapeSvg:n,bbox:h,label:l}=await z(r,e,te(e)),d=i?.nodeBorder??i?.lineColor??"currentColor",y=e.padding??12,c=Math.max(h.width+y*2,e.width??0,80),x=Math.max(Math.min(c*0.08,12),5),b=Math.max(h.height+y*2+x,e.height??0),_=-b/2+x,v=b/2,M=c*0.72,q=[`M${-c/2},${_}`,`L${-M/2},${v}`,`A${M/2},${x} 0 0 0 ${M/2},${v}`,`L${c/2},${_}`,`A${c/2},${x} 0 0 0 ${-c/2},${_}`,"Z"].join(" "),{cssStyles:W}=e,j=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let dt=g.svg(n).path(q,Kt(e,{}));if(j.node()?.appendChild(dt),W)j.attr("style",W)}else j.append("path").attr("d",q).attr("style",o);j.append("ellipse").attr("cx",0).attr("cy",_).attr("rx",c/2).attr("ry",x).attr("style",`fill:none;stroke:${d};stroke-width:1px`),O(e,j);let K=_+(v-_)/2;l.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${K-h.height/2-(h.y-(h.top??0))})`);let J=12,tt=t((st,dt,bt)=>Array.from({length:J+1},(At,wt)=>{let kt=Math.PI-wt*Math.PI/J;return{x:st*Math.cos(kt),y:dt+bt*x*Math.sin(kt)}}),"arc"),at=[...tt(c/2,_,-1),...tt(M/2,v,1).reverse()];return e.intersect=function(st){return T.polygon(e,at,st)},n}t(rx,"bucket");var Hf=20,Yf=8,Vw=80,Kw=8;function ix(r){let{themeVariables:e}=u(),{clusterBkg:i,clusterBorder:s}=e;switch(r){case"flow":return{rx:10,fill:"none",stroke:e.flowContainerStroke||e.secondaryBorderColor,strokeWidth:0.75,cssClass:"flow-collapsed"};default:return{rx:Kw,fill:i,stroke:s,cssClass:"collapsed-group"}}}t(ix,"getCollapsedStyle");async function ox(r,e){let i=ix(e.metadata?.containerType),{fill:s,stroke:o}=i,{nodeStyles:n}=E(e),{shapeSvg:h,bbox:l}=await z(r,e,te(e)),{theme:d,themeVariables:y}=u();It(h,e.colorIndex,d,y.borderColorArray);let c=e.padding??8,x=l.height,b=Math.max(l.width+c*2,Vw,e?.width??0),_=Math.max(x+Yf+Hf+c*2,e?.height??0),v=-b/2,M=-_/2,q=-(Yf+Hf)/2,W=h.select(".label");if(W)if(e.useHtmlLabels??He(u()))W.attr("transform",`translate(${-l.width/2}, ${-l.height/2+q})`);else W.attr("transform",`translate(0, ${-l.height/2+q})`);let j;if(e.look==="handDrawn"){let st=g.svg(h),dt=Kt(e,{fill:s,stroke:o,...i.strokeWidth===void 0?{}:{strokeWidth:i.strokeWidth},...s==="none"?{fillWeight:0}:{fillStyle:"solid"}}),bt=st.path(br(v,M,b,_,i.rx),dt);j=h.insert(()=>bt,":first-child"),j.attr("class","basic label-container "+i.cssClass).attr("style",De(e.cssStyles))}else if(j=h.insert("rect",":first-child"),j.attr("class","basic label-container "+i.cssClass).attr("style",n).attr("rx",i.rx).attr("ry",i.rx).attr("x",v).attr("y",M).attr("width",b).attr("height",_).attr("fill",s).attr("stroke",o),i.strokeWidth!==void 0)j.attr("stroke-width",i.strokeWidth+"px");let K=M+c+x+Yf;h.append("line").attr("class","collapsed-separator").attr("x1",v+8).attr("y1",K).attr("x2",v+b-8).attr("y2",K).attr("stroke",o).attr("stroke-dasharray","3, 3");let J=K+Hf/2,tt=2.5,at=10;for(let st=-1;st<=1;st++)h.append("circle").attr("class","collapsed-indicator").attr("cx",st*at).attr("cy",J).attr("r",tt).attr("fill",o);return O(e,j),e.calcIntersect=function(st,dt){return T.rect(st,dt)},e.intersect=function(st){return T.rect(e,st)},h}t(ox,"collapsedGroup");function li(r,e,i,s){return r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+i/2+")")}t(li,"insertPolygonShape");var Zw=["right","left","up","down"],rd="point",Qw=t((r)=>{let e=new Set;for(let i of r)switch(i){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(i);break}return e},"expandAndDeduplicateDirections"),Jw=t((r)=>Zw.filter((e)=>r.has(e)).join("|")||rd,"getDirectionKey"),By={"right|left|up|down":t(({height:r,midpoint:e,padding:i,width:s})=>[{x:0,y:0},{x:e,y:0},{x:s/2,y:2*i},{x:s-e,y:0},{x:s,y:0},{x:s,y:-r/3},{x:s+2*i,y:-r/2},{x:s,y:-2*r/3},{x:s,y:-r},{x:s-e,y:-r},{x:s/2,y:-r-2*i},{x:e,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*i,y:-r/2},{x:0,y:-r/3}],"right|left|up|down"),"right|left|up":t(({height:r,midpoint:e,width:i})=>[{x:e,y:0},{x:i-e,y:0},{x:i,y:-r/2},{x:i-e,y:-r},{x:e,y:-r},{x:0,y:-r/2}],"right|left|up"),"right|left|down":t(({height:r,midpoint:e,width:i})=>[{x:0,y:0},{x:e,y:-r},{x:i-e,y:-r},{x:i,y:0}],"right|left|down"),"right|up|down":t(({height:r,midpoint:e,width:i})=>[{x:0,y:0},{x:i,y:-e},{x:i,y:-r+e},{x:0,y:-r}],"right|up|down"),"left|up|down":t(({height:r,midpoint:e,width:i})=>[{x:i,y:0},{x:0,y:-e},{x:0,y:-r+e},{x:i,y:-r}],"left|up|down"),"right|left":t(({height:r,midpoint:e,padding:i,width:s})=>[{x:e,y:0},{x:e,y:-i},{x:s-e,y:-i},{x:s-e,y:0},{x:s,y:-r/2},{x:s-e,y:-r},{x:s-e,y:-r+i},{x:e,y:-r+i},{x:e,y:-r},{x:0,y:-r/2}],"right|left"),"up|down":t(({height:r,midpoint:e,padding:i,width:s})=>[{x:s/2,y:0},{x:0,y:-i},{x:e,y:-i},{x:e,y:-r+i},{x:0,y:-r+i},{x:s/2,y:-r},{x:s,y:-r+i},{x:s-e,y:-r+i},{x:s-e,y:-i},{x:s,y:-i}],"up|down"),"right|up":t(({height:r,midpoint:e,width:i})=>[{x:0,y:0},{x:i,y:-e},{x:0,y:-r}],"right|up"),"right|down":t(({height:r,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-r}],"right|down"),"left|up":t(({height:r,midpoint:e,width:i})=>[{x:i,y:0},{x:0,y:-e},{x:i,y:-r}],"left|up"),"left|down":t(({height:r,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-r}],"left|down"),right:t(({height:r,midpoint:e,padding:i,width:s})=>[{x:e,y:-i},{x:e,y:-i},{x:s-e,y:-i},{x:s-e,y:0},{x:s,y:-r/2},{x:s-e,y:-r},{x:s-e,y:-r+i},{x:e,y:-r+i},{x:e,y:-r+i}],"right"),left:t(({height:r,midpoint:e,padding:i,width:s})=>[{x:e,y:0},{x:e,y:-i},{x:s-e,y:-i},{x:s-e,y:-r+i},{x:e,y:-r+i},{x:e,y:-r},{x:0,y:-r/2}],"left"),up:t(({height:r,midpoint:e,padding:i,width:s})=>[{x:e,y:-i},{x:e,y:-r+i},{x:0,y:-r+i},{x:s/2,y:-r},{x:s,y:-r+i},{x:s-e,y:-r+i},{x:s-e,y:-i}],"up"),down:t(({height:r,midpoint:e,padding:i,width:s})=>[{x:s/2,y:0},{x:0,y:-i},{x:e,y:-i},{x:e,y:-r+i},{x:s-e,y:-r+i},{x:s-e,y:-i},{x:s,y:-i}],"down"),[rd]:()=>[{x:0,y:0}]},tS=t((r,e,i,s)=>{let o=Qw(r),n=(i.padding??0)/2,h=e.height+4*n,l=h/2,d=s??e.width+2*l+2*n,y=Jw(o);return(By[y]??By[rd])({height:h,midpoint:l,padding:n,width:d})},"getArrowPoints");async function sx(r,e){let i=e,{shapeSvg:s,bbox:o}=await z(r,i,te(i)),n=i.padding??0,h=o.height+2*n,l=h/2,d=o.width+2*l+n,y=i.width??0,x=i.positioned&&(i.widthInColumns??1)>1&&y>d?y:d,b=tS(i.directions??[],o,i,x),_=li(s,x,h,b);return _.attr("style",i.style??null),O(i,_),i.intersect=function(v){return T.polygon(i,b,v)},s}t(sx,"block_arrow");async function ax(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{shapeSvg:n,bbox:h,label:l}=await z(r,e,te(e)),d=i?.nodeBorder??i?.lineColor??"currentColor",y=e.padding??12,c=18,x=12,b=Math.max(h.width+y*2,e.width??0,90),_=Math.max(h.height+y*2+c,e.height??0),v=-_/2,{cssStyles:M}=e,q=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let K=g.svg(n).path(br(-b/2,v,b,_,x),Kt(e,{}));if(q.node()?.appendChild(K),M)q.attr("style",M)}else q.append("rect").attr("x",-b/2).attr("y",v).attr("width",b).attr("height",_).attr("rx",x).attr("ry",x).attr("style",o);q.append("line").attr("x1",-b/2).attr("y1",v+c).attr("x2",b/2).attr("y2",v+c).attr("style",`stroke:${d};stroke-width:1px`);for(let j=0;j<3;j++)q.append("circle").attr("cx",-b/2+12+j*9).attr("cy",v+c/2).attr("r",2.5).attr("style",`fill:${d};stroke:none`);q.append("rect").attr("class","browser-address-bar").attr("x",-b/2+44).attr("y",v+4).attr("width",Math.max(b-56,10)).attr("height",c-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${d};stroke-width:1px;opacity:0.6`),O(e,q);let W=v+c+(_-c)/2;return l.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${W-h.height/2-(h.y-(h.top??0))})`),e.intersect=function(j){return T.rect(e,j)},n}t(ax,"browser");var nh=12;async function nx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?28:o,h=e.look==="neo"?24:o,{shapeSvg:l,bbox:d}=await z(r,e,te(e)),y=(e?.width??d.width)+(e.look==="neo"?n*2:n+nh),c=(e?.height??d.height)+(e.look==="neo"?h*2:h),x=0,b=y,_=-c,v=0,M=[{x:x+nh,y:_},{x:b,y:_},{x:b,y:v},{x,y:v},{x,y:_+nh},{x:x+nh,y:_}],q,{cssStyles:W}=e;if(e.look==="handDrawn"){let j=g.svg(l),K=Kt(e,{}),J=ye(M),tt=j.path(J,K);if(q=l.insert(()=>tt,":first-child").attr("transform",`translate(${-y/2}, ${c/2})`),W)q.attr("style",W)}else q=li(l,y,c,M);if(s)q.attr("style",s);return O(e,q),e.intersect=function(j){return T.polygon(e,M,j)},l}t(nx,"card");function lx(r,e){let{nodeStyles:i}=E(e);e.label="";let s=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,n=Math.max(28,e.width??0),h=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],l=g.svg(s),d=Kt(e,{});if(e.look!=="handDrawn")d.roughness=0,d.fillStyle="solid";let y=ye(h),c=l.path(y,d),x=s.insert(()=>c,":first-child");if(o&&e.look!=="handDrawn")x.selectAll("path").attr("style",o);if(i&&e.look!=="handDrawn")x.selectAll("path").attr("style",i);return e.width=28,e.height=28,e.intersect=function(b){return T.polygon(e,h,b)},s}t(lx,"choice");async function id(r,e,i){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{shapeSvg:n,bbox:h,halfPadding:l}=await z(r,e,te(e),{ignoreMinWidth:!0}),d=16,y=i?.padding??l,c=Math.sqrt(h.width**2+h.height**2)/2,x=e.look==="neo"?c+d:c+y,b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(n),M=Kt(e,{}),q=v.circle(0,0,x*2,M);b=n.insert(()=>q,":first-child"),b.attr("class","basic label-container").attr("style",De(_))}else b=n.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",x).attr("cx",0).attr("cy",0);return O(e,b),e.calcIntersect=function(v,M){let q=v.width/2;return T.circle(v,q,M)},e.intersect=function(v){return a.info("Circle intersect",e,x,v),T.circle(e,x,v)},n}t(id,"circle");async function hx(r,e){let i=e,s=["node",i.cssClasses,i.class].filter(Boolean).join(" "),{shapeSvg:o,bbox:n,halfPadding:h}=await z(r,i,s),l=o.insert("rect",":first-child"),d=i.padding??0,y=i.positioned?i.width??0:n.width+d,c=i.positioned?i.height??0:n.height+d,x=i.positioned?-y/2:-n.width/2-h,b=i.positioned?-c/2:-n.height/2-h;return l.attr("class","basic cluster composite label-container").attr("style",i.style??null).attr("rx",i.rx??null).attr("ry",i.ry??null).attr("x",x).attr("y",b).attr("width",y).attr("height",c),O(i,l),i.intersect=function(_){return T.rect(i,_)},o}t(hx,"composite");async function cx(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{shapeSvg:n,bbox:h,label:l}=await z(r,e,te(e)),d=i?.nodeBorder??i?.lineColor??"currentColor",y=e.padding??12,c=20,x=12,b=Math.max(h.width+y*2,e.width??0,90),_=Math.max(h.height+y*2+c,e.height??0),v=-_/2,{cssStyles:M}=e,q=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let K=g.svg(n).path(br(-b/2,v,b,_,x),Kt(e,{}));if(q.node()?.appendChild(K),M)q.attr("style",M)}else q.append("rect").attr("x",-b/2).attr("y",v).attr("width",b).attr("height",_).attr("rx",x).attr("ry",x).attr("style",o);q.append("text").attr("x",-b/2+12).attr("y",v+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${d}`).text(">_"),O(e,q);let W=v+c+(_-c)/2;return l.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${W-h.height/2-(h.y-(h.top??0))})`),e.intersect=function(j){return T.rect(e,j)},n}t(cx,"consoleWindow");function ux(r){let e=Math.cos(Math.PI/4),i=Math.sin(Math.PI/4),s=r*2,o={x:s/2*e,y:s/2*i},n={x:-(s/2)*e,y:s/2*i},h={x:-(s/2)*e,y:-(s/2)*i},l={x:s/2*e,y:-(s/2)*i};return`M ${n.x},${n.y} L ${l.x},${l.y}
|
|
233
|
+
M ${o.x},${o.y} L ${h.x},${h.y}`}t(ux,"createLine");function fx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i,e.label="";let o=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:h}=e,l=g.svg(o),d=Kt(e,{});if(e.look!=="handDrawn")d.roughness=0,d.fillStyle="solid";let y=l.circle(0,0,n*2,d),c=ux(n),x=l.path(c,d),b=o.insert(()=>y,":first-child");if(b.insert(()=>x),b.attr("class","outer-path"),h&&e.look!=="handDrawn")b.selectAll("path").attr("style",h);if(s&&e.look!=="handDrawn")b.selectAll("path").attr("style",s);return O(e,b),e.intersect=function(_){return a.info("crossedCircle intersect",e,{radius:n,point:_}),T.circle(e,n,_)},o}t(fx,"crossedCircle");function Oi(r,e,i,s=100,o=0,n=180){let h=[],l=o*Math.PI/180,c=(n*Math.PI/180-l)/(s-1);for(let x=0;x<s;x++){let b=l+x*c,_=r+i*Math.cos(b),v=e+i*Math.sin(b);h.push({x:-_,y:-v})}return h}t(Oi,"generateCirclePoints");async function dx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:h}=await z(r,e,te(e)),l=e.look==="neo"?18:e.padding??0,d=e.look==="neo"?12:e.padding??0,y=n.width+l,c=n.height+d,x=Math.max(5,c*0.1),{cssStyles:b}=e,_=[...Oi(y/2,-c/2,x,30,-90,0),{x:-y/2-x,y:x},...Oi(y/2+x*2,-x,x,20,-180,-270),...Oi(y/2+x*2,x,x,20,-90,-180),{x:-y/2-x,y:-c/2},...Oi(y/2,c/2,x,20,0,90)],v=[{x:y/2,y:-c/2-x},{x:-y/2,y:-c/2-x},...Oi(y/2,-c/2,x,20,-90,0),{x:-y/2-x,y:-x},...Oi(y/2+y*0.1,-x,x,20,-180,-270),...Oi(y/2+y*0.1,x,x,20,-90,-180),{x:-y/2-x,y:c/2},...Oi(y/2,c/2,x,20,0,90),{x:-y/2,y:c/2+x},{x:y/2,y:c/2+x}],M=g.svg(o),q=Kt(e,{fill:"none"});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let j=ye(_).replace("Z",""),K=M.path(j,q),J=ye(v),tt=M.path(J,{...q}),at=o.insert("g",":first-child");if(at.insert(()=>tt,":first-child").attr("stroke-opacity",0),at.insert(()=>K,":first-child"),at.attr("class","text"),b&&e.look!=="handDrawn")at.selectAll("path").attr("style",b);if(s&&e.look!=="handDrawn")at.selectAll("path").attr("style",s);return at.attr("transform",`translate(${x}, 0)`),h.attr("transform",`translate(${-y/2+x-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),O(e,at),e.intersect=function(st){return T.polygon(e,v,st)},o}t(dx,"curlyBraceLeft");function Ii(r,e,i,s=100,o=0,n=180){let h=[],l=o*Math.PI/180,c=(n*Math.PI/180-l)/(s-1);for(let x=0;x<s;x++){let b=l+x*c,_=r+i*Math.cos(b),v=e+i*Math.sin(b);h.push({x:_,y:v})}return h}t(Ii,"generateCirclePoints");async function px(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:h}=await z(r,e,te(e)),l=e.look==="neo"?18:e.padding??0,d=e.look==="neo"?12:e.padding??0,y=n.width+(e.look==="neo"?l*2:l),c=n.height+(e.look==="neo"?d*2:d),x=Math.max(5,c*0.1),{cssStyles:b}=e,_=[...Ii(y/2,-c/2,x,20,-90,0),{x:y/2+x,y:-x},...Ii(y/2+x*2,-x,x,20,-180,-270),...Ii(y/2+x*2,x,x,20,-90,-180),{x:y/2+x,y:c/2},...Ii(y/2,c/2,x,20,0,90)],v=[{x:-y/2,y:-c/2-x},{x:y/2,y:-c/2-x},...Ii(y/2,-c/2,x,20,-90,0),{x:y/2+x,y:-x},...Ii(y/2+x*2,-x,x,20,-180,-270),...Ii(y/2+x*2,x,x,20,-90,-180),{x:y/2+x,y:c/2},...Ii(y/2,c/2,x,20,0,90),{x:y/2,y:c/2+x},{x:-y/2,y:c/2+x}],M=g.svg(o),q=Kt(e,{fill:"none"});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let j=ye(_).replace("Z",""),K=M.path(j,q),J=ye(v),tt=M.path(J,{...q}),at=o.insert("g",":first-child");if(at.insert(()=>tt,":first-child").attr("stroke-opacity",0),at.insert(()=>K,":first-child"),at.attr("class","text"),b&&e.look!=="handDrawn")at.selectAll("path").attr("style",b);if(s&&e.look!=="handDrawn")at.selectAll("path").attr("style",s);return at.attr("transform",`translate(${-x}, 0)`),h.attr("transform",`translate(${-y/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),O(e,at),e.intersect=function(st){return T.polygon(e,v,st)},o}t(px,"curlyBraceRight");function rr(r,e,i,s=100,o=0,n=180){let h=[],l=o*Math.PI/180,c=(n*Math.PI/180-l)/(s-1);for(let x=0;x<s;x++){let b=l+x*c,_=r+i*Math.cos(b),v=e+i*Math.sin(b);h.push({x:-_,y:-v})}return h}t(rr,"generateCirclePoints");async function gx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:h}=await z(r,e,te(e)),l=e.look==="neo"?18:e.padding??0,d=e.look==="neo"?12:e.padding??0,y=n.width+(e.look==="neo"?l*2:l),c=n.height+(e.look==="neo"?d*2:d),x=Math.max(5,c*0.1),{cssStyles:b}=e,_=[...rr(y/2,-c/2,x,30,-90,0),{x:-y/2-x,y:x},...rr(y/2+x*2,-x,x,20,-180,-270),...rr(y/2+x*2,x,x,20,-90,-180),{x:-y/2-x,y:-c/2},...rr(y/2,c/2,x,20,0,90)],v=[...rr(-y/2+x+x/2,-c/2,x,20,-90,-180),{x:y/2-x/2,y:x},...rr(-y/2-x/2,-x,x,20,0,90),...rr(-y/2-x/2,x,x,20,-90,0),{x:y/2-x/2,y:-x},...rr(-y/2+x+x/2,c/2,x,30,-180,-270)],M=[{x:y/2,y:-c/2-x},{x:-y/2,y:-c/2-x},...rr(y/2,-c/2,x,20,-90,0),{x:-y/2-x,y:-x},...rr(y/2+x*2,-x,x,20,-180,-270),...rr(y/2+x*2,x,x,20,-90,-180),{x:-y/2-x,y:c/2},...rr(y/2,c/2,x,20,0,90),{x:-y/2,y:c/2+x},{x:y/2-x-x/2,y:c/2+x},...rr(-y/2+x+x/2,-c/2,x,20,-90,-180),{x:y/2-x/2,y:x},...rr(-y/2-x/2,-x,x,20,0,90),...rr(-y/2-x/2,x,x,20,-90,0),{x:y/2-x/2,y:-x},...rr(-y/2+x+x/2,c/2,x,30,-180,-270)],q=g.svg(o),W=Kt(e,{fill:"none"});if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let K=ye(_).replace("Z",""),J=q.path(K,W),at=ye(v).replace("Z",""),st=q.path(at,W),dt=ye(M),bt=q.path(dt,{...W}),At=o.insert("g",":first-child");if(At.insert(()=>bt,":first-child").attr("stroke-opacity",0),At.insert(()=>J,":first-child"),At.insert(()=>st,":first-child"),At.attr("class","text"),b&&e.look!=="handDrawn")At.selectAll("path").attr("style",b);if(s&&e.look!=="handDrawn")At.selectAll("path").attr("style",s);return At.attr("transform",`translate(${x-x/4}, 0)`),h.attr("transform",`translate(${-y/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),O(e,At),e.intersect=function(wt){return T.polygon(e,M,wt)},o}t(gx,"curlyBraces");async function mx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,h=e.look==="neo"?12:o,l=20,d=5,{shapeSvg:y,bbox:c}=await z(r,e,te(e)),x=Math.max(d,c.height+h*2,e?.height??0),b=x/2,_=b-Math.sqrt(Math.max(0,b**2-(c.height/2)**2)),v=Math.max(x/4,_),M=Math.max(l,c.width+n*2+v*2,(c.width+n*2)*1.25,e?.width??0),{cssStyles:q}=e,W=g.svg(y),j=Kt(e,{});if(e.look!=="handDrawn")j.roughness=0,j.fillStyle="solid";let K=M,J=x,tt=K-b,at=J/4,st=[{x:tt,y:0},{x:at,y:0},{x:0,y:J/2},{x:at,y:J},{x:tt,y:J},...ai(-tt,-J/2,b,50,270,90)],dt=ye(st),bt=W.path(dt,j),At=y.insert(()=>bt,":first-child");if(At.attr("class","basic label-container outer-path"),q&&e.look!=="handDrawn")At.selectChildren("path").attr("style",q);if(s&&e.look!=="handDrawn")At.selectChildren("path").attr("style",s);return At.attr("transform",`translate(${-M/2}, ${-x/2})`),O(e,At),e.intersect=function(wt){return T.polygon(e,st,wt)},y}t(mx,"curvedTrapezoid");async function yx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:h}=await z(r,e,te(e)),l=e.padding??20,d=Math.max(n.width+l*2,e.width??0,100),y=Math.min(Math.max(d*0.23,16),56),c=y*0.27,x=Math.max(n.height+l*2,e.height?e.height-(2*y-c):0),b=Math.min(d*0.177,x*0.45),_=x+2*y-c,v=-_/2,M=v+2*y-c,q=o.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:W}=e;if(e.look==="handDrawn"){let dt=g.svg(o),bt=Kt(e,{}),At=dt.path(br(-d/2,M,d,x,b),bt),wt=dt.circle(0,v+y,y*2,bt);if(q.insert(()=>wt,":first-child"),q.insert(()=>At,":first-child"),W)q.attr("style",W)}else q.append("rect").attr("x",-d/2).attr("y",M).attr("width",d).attr("height",x).attr("rx",b).attr("ry",b).attr("style",s),q.append("circle").attr("cx",0).attr("cy",v+y).attr("r",y).attr("style",s);O(e,q);let j=M+x/2;h.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${j-n.height/2-(n.y-(n.top??0))})`);let K=v+y,J=Math.asin(Math.min(1,(M-K)/y))*180/Math.PI,tt=24,st=[...ai(0,-K,y,tt,180+J,-J),...ai(-(-d/2+b),-(M+b),b,12,90,0),...ai(-(-d/2+b),-(_/2-b),b,12,360,270),...ai(-(d/2-b),-(_/2-b),b,12,270,180),...ai(-(d/2-b),-(M+b),b,12,180,90)];return e.intersect=function(dt){return T.polygon(e,st,dt)},o}t(yx,"person");var eS=t((r,e,i,s,o,n)=>[`M${r},${e+n}`,`a${o},${n} 0,0,0 ${i},0`,`a${o},${n} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${n} 0,0,0 ${i},0`,`l0,${-s}`].join(" "),"createCylinderPathD"),rS=t((r,e,i,s,o,n)=>[`M${r},${e+n}`,`M${r+i},${e+n}`,`a${o},${n} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${n} 0,0,0 ${i},0`,`l0,${-s}`].join(" "),"createOuterCylinderPathD"),iS=t((r,e,i,s,o,n)=>[`M${r-i/2},${-s/2}`,`a${o},${n} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD"),vy=8,Ly=8;async function xx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?24:o,h=e.look==="neo"?24:o,l=e.width??0;if(e.width){if(e.width=e.width-h,e.width<Ly)e.width=Ly}if(e.height){let j=l/2/(2.5+l/50);if(e.height=e.height-n-j*3,e.height<vy)e.height=vy}let{shapeSvg:d,bbox:y,label:c}=await z(r,e,te(e)),x=Math.max(e.width??0,y.width)+h,b=x/2,_=b/(2.5+x/50),v=Math.max(e.height??0,y.height)+n+_,M,{cssStyles:q}=e;if(e.look==="handDrawn"){let W=g.svg(d),j=rS(0,0,x,v,b,_),K=iS(0,_,x,v,b,_),J=Kt(e,{}),tt=W.path(j,J),at=W.path(K,Kt(e,{fill:"none"}));if(M=d.insert(()=>at,":first-child"),M=d.insert(()=>tt,":first-child"),M.attr("class","basic label-container"),q)M.attr("style",q)}else{let W=eS(0,0,x,v,b,_);M=d.insert("path",":first-child").attr("d",W).attr("class","basic label-container outer-path").attr("style",De(q)).attr("style",s)}return M.attr("label-offset-y",_),M.attr("transform",`translate(${-x/2}, ${-(v/2+_)})`),O(e,M),c.attr("transform",`translate(${-(y.width/2)-(y.x-(y.left??0))}, ${-(y.height/2)+(e.padding??0)/1.5-(y.y-(y.top??0))})`),e.intersect=function(W){let j=T.rect(e,W),K=j.x-(e.x??0);if(b!=0&&(Math.abs(K)<(e.width??0)/2||Math.abs(K)==(e.width??0)/2&&Math.abs(j.y-(e.y??0))>(e.height??0)/2-_)){let J=_*_*(1-K*K/(b*b));if(J>0)J=Math.sqrt(J);if(J=_-J,W.y-(e.y??0)>0)J=-J;j.y+=J}return j},d}t(xx,"cylinder");async function Cs(r,e,i){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{shapeSvg:n,bbox:h}=await z(r,e,te(e)),l=Math.max(h.width+i.labelPaddingX*2,e?.width||0),d=Math.max(h.height+i.labelPaddingY*2,e?.height||0),y=-l/2,c=-d/2,x,{rx:b,ry:_}=e,{cssStyles:v}=e;if(i?.rx&&i.ry)b=i.rx,_=i.ry;if(e.look==="handDrawn"){let M=g.svg(n),q=Kt(e,{}),W=b||_?M.path(br(y,c,l,d,b||0),q):M.rectangle(y,c,l,d,q);x=n.insert(()=>W,":first-child"),x.attr("class","basic label-container").attr("style",De(v))}else x=n.insert("rect",":first-child"),x.attr("class","basic label-container").attr("style",o).attr("rx",De(b)).attr("ry",De(_)).attr("x",y).attr("y",c).attr("width",l).attr("height",d);return O(e,x,e.look==="handDrawn"?void 0:{width:l,height:d}),e.calcIntersect=function(M,q){return T.rect(M,q)},e.intersect=function(M){return T.rect(e,M)},n}t(Cs,"drawRect");async function Cx(r,e){let{cssClasses:i,labelPaddingX:s,labelPaddingY:o,padding:n,width:h,height:l}=e,d={rx:0,ry:0,classes:i??"",labelPaddingX:s??(n??0)*2,labelPaddingY:o??n??0},y=await Cs(r,e,d);if(e.look==="handDrawn"){let _=g.svg(y),v=Kt(e,{}),M=y.select(".basic.label-container > path:nth-child(2)"),q=M.node();if(!q)return y;let W=null;if(q instanceof SVGGraphicsElement)W=q.getBBox();else return y;return y.insert(()=>_.line(W.x,W.y,W.x+W.width,W.y,v),".basic.label-container g.label"),y.insert(()=>_.line(W.x,W.y+W.height,W.x+W.width,W.y+W.height,v),".basic.label-container g.label"),M.remove(),y}let c=y.select(".basic.label-container"),x=(Number(c.attr("width"))||h)??0,b=(Number(c.attr("height"))||l)??0;if(x>0&&b>0)c.attr("stroke-dasharray",`${x} ${b}`);return y}t(Cx,"datastore");async function bx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?16:e.padding??0,{shapeSvg:h,bbox:l,label:d}=await z(r,e,te(e)),y=l.width+o,c=l.height+n,x=c*0.2,b=-y/2,_=-c/2-x/2,{cssStyles:v}=e,M=g.svg(h),q=Kt(e,{});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let W=[{x:b,y:_+x},{x:-b,y:_+x},{x:-b,y:-_},{x:b,y:-_},{x:b,y:_},{x:-b,y:_},{x:-b,y:_+x}],j=M.polygon(W.map((J)=>[J.x,J.y]),q),K=h.insert(()=>j,":first-child");if(K.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn")K.selectAll("path").attr("style",v);if(s&&e.look!=="handDrawn")K.selectAll("path").attr("style",s);return d.attr("transform",`translate(${b+(e.padding??0)/2-(l.x-(l.left??0))}, ${_+x+(e.padding??0)/2-(l.y-(l.top??0))})`),O(e,K),e.intersect=function(J){return T.rect(e,J)},h}t(bx,"dividedRectangle");async function kx(r,e){let{labelStyles:i,nodeStyles:s}=E(e),o=e.look==="neo"?12:5;e.labelStyle=i;let n=e.padding??0,h=e.look==="neo"?16:n,{shapeSvg:l,bbox:d}=await z(r,e,te(e),{ignoreMinWidth:!0}),y=Math.sqrt(d.width**2+d.height**2)/2,c=(e?.width?e?.width/2:y)+(h??0),x=c+o,b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(l),M=Kt(e,{roughness:0.2,strokeWidth:2.5}),q=Kt(e,{roughness:0.2,strokeWidth:1.5}),W=v.circle(0,0,x*2,M),j=v.circle(0,0,c*2,q);b=l.insert("g",":first-child"),b.attr("class",De(e.cssClasses)).attr("style",De(_)),b.node()?.appendChild(W),b.node()?.appendChild(j)}else{b=l.insert("g",":first-child");let v=b.insert("circle",":first-child"),M=b.insert("circle");b.attr("class","basic label-container").attr("style",s),v.attr("class","outer-circle").attr("style",s).attr("r",x).attr("cx",0).attr("cy",0),M.attr("class","inner-circle").attr("style",s).attr("r",c).attr("cx",0).attr("cy",0)}return O(e,b),e.intersect=function(v){return a.info("DoubleCircle intersect",e,x,v),T.circle(e,x,v)},l}t(kx,"doublecircle");async function wx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,halfPadding:h}=await z(r,e,te(e)),{theme:l,themeVariables:d}=u();It(o,e.colorIndex,l,d.borderColorArray);let y=h??10,c=n.width/2+y*2,x=n.height/2+y*2,b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(o),M=Kt(e,{}),q=v.ellipse(0,0,c*2,x*2,M);if(b=o.insert(()=>q,":first-child"),b.attr("class","basic label-container"),_)b.attr("style",_)}else b=o.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",s).attr("rx",c).attr("ry",x).attr("cx",0).attr("cy",0);return e.width=c*2,e.height=x*2,O(e,b),e.calcIntersect=function(v,M){let q=v.width/2,W=v.height/2;return T.ellipse(v,q,W,M)},e.intersect=function(v){return T.ellipse(e,c,x,v)},o}t(wx,"usecaseEllipse");function Sx(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);e.label="",e.labelStyle=s;let n=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),h=7,{cssStyles:l}=e,d=g.svg(n),{nodeBorder:y}=i,c=Kt(e,{fillStyle:"solid"});if(e.look!=="handDrawn")c.roughness=0;let x=d.circle(0,0,h*2,c),b=n.insert(()=>x,":first-child");if(b.selectAll("path").attr("style",`fill: ${y} !important;`),l&&l.length>0&&e.look!=="handDrawn")b.selectAll("path").attr("style",l);if(o&&e.look!=="handDrawn")b.selectAll("path").attr("style",o);return O(e,b),e.intersect=function(_){return a.info("filledCircle intersect",e,{radius:h,point:_}),T.circle(e,h,_)},n}t(Sx,"filledCircle");var Fy=10,Ay=10;async function Tx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?o*2:o;if(e.width||e.height){if(e.height=e?.height??0,e.height<Fy)e.height=Fy;if(e.width=(e?.width??0)-n-n/2,e.width<Ay)e.width=Ay}let{shapeSvg:h,bbox:l,label:d}=await z(r,e,te(e)),y=(e?.width?e?.width:l.width)+(n??0),c=e?.height?e?.height:y+l.height,x=c,b=[{x:0,y:-c},{x,y:-c},{x:x/2,y:0}],{cssStyles:_}=e,v=g.svg(h),M=Kt(e,{});if(e.look!=="handDrawn")M.roughness=0,M.fillStyle="solid";let q=ye(b),W=v.path(q,M),j=h.insert(()=>W,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`).attr("class","outer-path");if(_&&e.look!=="handDrawn")j.selectChildren("path").attr("style",_);if(s&&e.look!=="handDrawn")j.selectChildren("path").attr("style",s);return e.width=y,e.height=c,O(e,j),d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-c/2+(e.padding??0)/2+(l.y-(l.top??0))})`),e.intersect=function(K){return a.info("Triangle intersect",e,b,K),T.polygon(e,b,K)},h}t(Tx,"flippedTriangle");async function _x(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:h}=await z(r,e,te(e)),l=e.padding??12,d=Math.max(n.width+l*2,e.width??0,90),y=n.height+l*2,c=Math.max(Math.min(y*0.16,14),8),x=Math.max(y+c,e.height??0),b=x-c,_=Math.max(d*0.38,28),v=-x/2,M=[{x:-d/2,y:v},{x:-d/2+_,y:v},{x:-d/2+_,y:v+c},{x:d/2,y:v+c},{x:d/2,y:x/2},{x:-d/2,y:x/2}],q=[`M${M[0].x},${M[0].y}`,...M.slice(1).map((J)=>`L${J.x},${J.y}`),"Z"].join(" "),{cssStyles:W}=e,j;if(e.look==="handDrawn"){let tt=g.svg(o).path(q,Kt(e,{}));if(j=o.insert(()=>tt,":first-child").attr("class","basic label-container"),W)j.attr("style",W)}else j=o.insert("path",":first-child").attr("d",q).attr("class","basic label-container").attr("style",s);if(e.look==="handDrawn")O(e,j);else O(e,j,{width:d,height:x});let K=v+c+b/2;return h.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${K-n.height/2-(n.y-(n.top??0))})`),e.intersect=function(J){return T.polygon(e,M,J)},o}t(_x,"folder");function Bx(r,e,{dir:i,config:{state:s,themeVariables:o}}){let{nodeStyles:n}=E(e);e.label="";let h=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,d=Math.max(70,e?.width??0),y=Math.max(10,e?.height??0);if(i==="LR"||i==="RL")d=Math.max(10,e?.width??0),y=Math.max(70,e?.height??0);let c=-1*d/2,x=-1*y/2,b=g.svg(h),_=Kt(e,{stroke:o.lineColor,fill:o.lineColor});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let v=b.rectangle(c,x,d,y,_),M=h.insert(()=>v,":first-child");if(l&&e.look!=="handDrawn")M.selectAll("path").attr("style",l);if(n&&e.look!=="handDrawn")M.selectAll("path").attr("style",n);O(e,M);let q=s?.padding??0;if(e.width&&e.height)e.width+=q/2||0,e.height+=q/2||0;return e.intersect=function(W){return T.rect(e,W)},h}t(Bx,"forkJoin");async function vx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=15,n=10,h=e.look==="neo"?16:e.padding??0,l=e.look==="neo"?12:e.padding??0;if(e.width||e.height){if(e.height=(e?.height??0)-l*2,e.height<n)e.height=n;if(e.width=(e?.width??0)-h*2,e.width<o)e.width=o}let{shapeSvg:d,bbox:y}=await z(r,e,te(e)),c=(e?.height?e?.height:Math.max(n,y.height))+l*2,x=c/2,b=x-Math.sqrt(Math.max(0,x**2-(y.height/2)**2)),_=(e?.width?e?.width:Math.max(o,y.width)+b*2)+h*2,{cssStyles:v}=e,M=g.svg(d),q=Kt(e,{});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let W=[{x:-_/2,y:-c/2},{x:_/2-x,y:-c/2},...ai(-_/2+x,0,x,50,90,270),{x:_/2-x,y:c/2},{x:-_/2,y:c/2}],j=ye(W),K=M.path(j,q),J=d.insert(()=>K,":first-child");if(J.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn")J.selectChildren("path").attr("style",v);if(s&&e.look!=="handDrawn")J.selectChildren("path").attr("style",s);return O(e,J),e.intersect=function(tt){return a.info("Pill intersect",e,{radius:x,point:tt}),T.polygon(e,W,tt)},d}t(vx,"halfRoundedRectangle");var oS=t((r,e,i,s,o)=>[`M${r+o},${e}`,`L${r+i-o},${e}`,`L${r+i},${e-s/2}`,`L${r+i-o},${e-s}`,`L${r+o},${e-s}`,`L${r},${e-s/2}`,"Z"].join(" "),"createHexagonPathD");async function Lx(r,e){let{labelStyles:i,nodeStyles:s}=E(e),o=e.look==="neo"?3.5:4;e.labelStyle=i;let n=e.padding??0,h=70,l=32,d=e.look==="neo"?h:n,y=e.look==="neo"?l:n;if(e.width||e.height){let K=(e.height??0)/o;e.width=(e?.width??0)-2*K-y,e.height=(e.height??0)-d}let{shapeSvg:c,bbox:x}=await z(r,e,te(e)),b=(e?.height?e?.height:x.height)+d,_=b/o,v=(e?.width?e?.width:x.width)+2*_+y,M=[{x:_,y:0},{x:v-_,y:0},{x:v,y:-b/2},{x:v-_,y:-b},{x:_,y:-b},{x:0,y:-b/2}],q,{cssStyles:W}=e;if(e.look==="handDrawn"){let j=g.svg(c),K=Kt(e,{}),J=oS(0,0,v,b,_),tt=j.path(J,K);if(q=c.insert(()=>tt,":first-child").attr("transform",`translate(${-v/2}, ${b/2})`),W)q.attr("style",W)}else q=li(c,v,b,M);if(s)q.attr("style",s);return e.width=v,e.height=b,O(e,q),e.intersect=function(j){return T.polygon(e,M,j)},c}t(Lx,"hexagon");async function Fx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.label="",e.labelStyle=i;let{shapeSvg:o}=await z(r,e,te(e)),n=Math.max(30,e?.width??0),h=Math.max(30,e?.height??0),{cssStyles:l}=e,d=g.svg(o),y=Kt(e,{});if(e.look!=="handDrawn")y.roughness=0,y.fillStyle="solid";let c=[{x:0,y:0},{x:n,y:0},{x:0,y:h},{x:n,y:h}],x=ye(c),b=d.path(x,y),_=o.insert(()=>b,":first-child");if(_.attr("class","basic label-container outer-path"),l&&e.look!=="handDrawn")_.selectChildren("path").attr("style",l);if(s&&e.look!=="handDrawn")_.selectChildren("path").attr("style",s);return _.attr("transform",`translate(${-n/2}, ${-h/2})`),O(e,_),e.intersect=function(v){return a.info("Pill intersect",e,{points:c}),T.polygon(e,c,v)},o}t(Fx,"hourglass");async function Ax(r,e,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=E(e);e.labelStyle=o;let n=e.assetHeight??48,h=e.assetWidth??48,l=Math.max(n,h),d=s?.wrappingWidth;e.width=Math.max(l,d??0);let{shapeSvg:y,bbox:c,label:x}=await z(r,e,"icon-shape default"),b=e.pos==="t",_=l,v=l,{nodeBorder:M}=i,{stylesMap:q}=ii(e),W=-v/2,j=-_/2,K=e.label?8:0,J=g.svg(y),tt=Kt(e,{stroke:"none",fill:"none"});if(e.look!=="handDrawn")tt.roughness=0,tt.fillStyle="solid";let at=J.rectangle(W,j,v,_,tt),st=Math.max(v,c.width),dt=_+c.height+K,bt=J.rectangle(-st/2,-dt/2,st,dt,{...tt,fill:"transparent",stroke:"none"}),At=y.insert(()=>at,":first-child"),wt=y.insert(()=>bt);if(e.icon){let kt=y.append("g");kt.html(`<g>${await qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let it=kt.node().getBBox(),{width:ot,height:mt,x:et,y:_t}=it;kt.attr("transform",`translate(${-ot/2-et},${b?c.height/2+K/2-mt/2-_t:-c.height/2-K/2-mt/2-_t})`),kt.attr("style",`color: ${q.get("stroke")??M};`)}return x.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${b?-dt/2:dt/2-c.height})`),At.attr("transform",`translate(0,${b?c.height/2+K/2:-c.height/2-K/2})`),O(e,wt),e.intersect=function(kt){if(a.info("iconSquare intersect",e,kt),!e.label)return T.rect(e,kt);let it=e.x??0,ot=e.y??0,mt=e.height??0,et=[];if(b)et=[{x:it-c.width/2,y:ot-mt/2},{x:it+c.width/2,y:ot-mt/2},{x:it+c.width/2,y:ot-mt/2+c.height+K},{x:it+v/2,y:ot-mt/2+c.height+K},{x:it+v/2,y:ot+mt/2},{x:it-v/2,y:ot+mt/2},{x:it-v/2,y:ot-mt/2+c.height+K},{x:it-c.width/2,y:ot-mt/2+c.height+K}];else et=[{x:it-v/2,y:ot-mt/2},{x:it+v/2,y:ot-mt/2},{x:it+v/2,y:ot-mt/2+_},{x:it+c.width/2,y:ot-mt/2+_},{x:it+c.width/2/2,y:ot+mt/2},{x:it-c.width/2,y:ot+mt/2},{x:it-c.width/2,y:ot-mt/2+_},{x:it-v/2,y:ot-mt/2+_}];return T.polygon(e,et,kt)},y}t(Ax,"icon");async function Mx(r,e,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=E(e);e.labelStyle=o;let n=e.assetHeight??48,h=e.assetWidth??48,l=Math.max(n,h),d=s?.wrappingWidth;e.width=Math.max(l,d??0);let{shapeSvg:y,bbox:c,label:x}=await z(r,e,"icon-shape default"),b=20,_=e.label?8:0,v=e.pos==="t",{nodeBorder:M,mainBkg:q}=i,{stylesMap:W}=ii(e),j=g.svg(y),K=Kt(e,{});if(e.look!=="handDrawn")K.roughness=0,K.fillStyle="solid";let J=W.get("fill");K.stroke=J??q;let tt=y.append("g");if(e.icon)tt.html(`<g>${await qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let at=tt.node().getBBox(),{width:st,height:dt,x:bt,y:At}=at,wt=Math.max(st,dt)*Math.SQRT2+b*2,kt=j.circle(0,0,wt,K),it=Math.max(wt,c.width),ot=wt+c.height+_,mt=j.rectangle(-it/2,-ot/2,it,ot,{...K,fill:"transparent",stroke:"none"}),et=y.insert(()=>kt,":first-child"),_t=y.insert(()=>mt);return tt.attr("transform",`translate(${-st/2-bt},${v?c.height/2+_/2-dt/2-At:-c.height/2-_/2-dt/2-At})`),tt.attr("style",`color: ${W.get("stroke")??M};`),x.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${v?-ot/2:ot/2-c.height})`),et.attr("transform",`translate(0,${v?c.height/2+_/2:-c.height/2-_/2})`),O(e,_t),e.intersect=function(Mt){return a.info("iconSquare intersect",e,Mt),T.rect(e,Mt)},y}t(Mx,"iconCircle");async function Ex(r,e,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=E(e);e.labelStyle=o;let n=e.assetHeight??48,h=e.assetWidth??48,l=Math.max(n,h),d=s?.wrappingWidth;e.width=Math.max(l,d??0);let{shapeSvg:y,bbox:c,halfPadding:x,label:b}=await z(r,e,"icon-shape default"),_=e.pos==="t",v=l+x*2,M=l+x*2,{nodeBorder:q,mainBkg:W}=i,{stylesMap:j}=ii(e),K=-M/2,J=-v/2,tt=e.label?8:0,at=g.svg(y),st=Kt(e,{});if(e.look!=="handDrawn")st.roughness=0,st.fillStyle="solid";let dt=j.get("fill");st.stroke=dt??W;let bt=at.path(br(K,J,M,v,5),st),At=Math.max(M,c.width),wt=v+c.height+tt,kt=at.rectangle(-At/2,-wt/2,At,wt,{...st,fill:"transparent",stroke:"none"}),it=y.insert(()=>bt,":first-child").attr("class","icon-shape2"),ot=y.insert(()=>kt);if(e.icon){let mt=y.append("g");mt.html(`<g>${await qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let et=mt.node().getBBox(),{width:_t,height:Mt,x:Vt,y:Xt}=et;mt.attr("transform",`translate(${-_t/2-Vt},${_?c.height/2+tt/2-Mt/2-Xt:-c.height/2-tt/2-Mt/2-Xt})`),mt.attr("style",`color: ${j.get("stroke")??q};`)}return b.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${_?-wt/2:wt/2-c.height})`),it.attr("transform",`translate(0,${_?c.height/2+tt/2:-c.height/2-tt/2})`),O(e,ot),e.intersect=function(mt){if(a.info("iconSquare intersect",e,mt),!e.label)return T.rect(e,mt);let et=e.x??0,_t=e.y??0,Mt=e.height??0,Vt=[];if(_)Vt=[{x:et-c.width/2,y:_t-Mt/2},{x:et+c.width/2,y:_t-Mt/2},{x:et+c.width/2,y:_t-Mt/2+c.height+tt},{x:et+M/2,y:_t-Mt/2+c.height+tt},{x:et+M/2,y:_t+Mt/2},{x:et-M/2,y:_t+Mt/2},{x:et-M/2,y:_t-Mt/2+c.height+tt},{x:et-c.width/2,y:_t-Mt/2+c.height+tt}];else Vt=[{x:et-M/2,y:_t-Mt/2},{x:et+M/2,y:_t-Mt/2},{x:et+M/2,y:_t-Mt/2+v},{x:et+c.width/2,y:_t-Mt/2+v},{x:et+c.width/2/2,y:_t+Mt/2},{x:et-c.width/2,y:_t+Mt/2},{x:et-c.width/2,y:_t-Mt/2+v},{x:et-M/2,y:_t-Mt/2+v}];return T.polygon(e,Vt,mt)},y}t(Ex,"iconRounded");async function Ox(r,e,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=E(e);e.labelStyle=o;let n=e.assetHeight??48,h=e.assetWidth??48,l=Math.max(n,h),d=s?.wrappingWidth;e.width=Math.max(l,d??0);let{shapeSvg:y,bbox:c,halfPadding:x,label:b}=await z(r,e,"icon-shape default"),_=e.pos==="t",v=l+x*2,M=l+x*2,{nodeBorder:q,mainBkg:W}=i,{stylesMap:j}=ii(e),K=-M/2,J=-v/2,tt=e.label?8:0,at=g.svg(y),st=Kt(e,{});if(e.look!=="handDrawn")st.roughness=0,st.fillStyle="solid";let dt=j.get("fill");st.stroke=dt??W;let bt=at.path(br(K,J,M,v,0.1),st),At=Math.max(M,c.width),wt=v+c.height+tt,kt=at.rectangle(-At/2,-wt/2,At,wt,{...st,fill:"transparent",stroke:"none"}),it=y.insert(()=>bt,":first-child"),ot=y.insert(()=>kt);if(e.icon){let mt=y.append("g");mt.html(`<g>${await qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let et=mt.node().getBBox(),{width:_t,height:Mt,x:Vt,y:Xt}=et;mt.attr("transform",`translate(${-_t/2-Vt},${_?c.height/2+tt/2-Mt/2-Xt:-c.height/2-tt/2-Mt/2-Xt})`),mt.attr("style",`color: ${j.get("stroke")??q};`)}return b.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${_?-wt/2:wt/2-c.height})`),it.attr("transform",`translate(0,${_?c.height/2+tt/2:-c.height/2-tt/2})`),O(e,ot),e.intersect=function(mt){if(a.info("iconSquare intersect",e,mt),!e.label)return T.rect(e,mt);let et=e.x??0,_t=e.y??0,Mt=e.height??0,Vt=[];if(_)Vt=[{x:et-c.width/2,y:_t-Mt/2},{x:et+c.width/2,y:_t-Mt/2},{x:et+c.width/2,y:_t-Mt/2+c.height+tt},{x:et+M/2,y:_t-Mt/2+c.height+tt},{x:et+M/2,y:_t+Mt/2},{x:et-M/2,y:_t+Mt/2},{x:et-M/2,y:_t-Mt/2+c.height+tt},{x:et-c.width/2,y:_t-Mt/2+c.height+tt}];else Vt=[{x:et-M/2,y:_t-Mt/2},{x:et+M/2,y:_t-Mt/2},{x:et+M/2,y:_t-Mt/2+v},{x:et+c.width/2,y:_t-Mt/2+v},{x:et+c.width/2/2,y:_t+Mt/2},{x:et-c.width/2,y:_t+Mt/2},{x:et-c.width/2,y:_t-Mt/2+v},{x:et-M/2,y:_t-Mt/2+v}];return T.polygon(e,Vt,mt)},y}t(Ox,"iconSquare");async function Ix(r,e,{config:{flowchart:i}}){let s=new Image;s.src=e?.img??"",await s.decode();let o=Number(s.naturalWidth.toString().replace("px","")),n=Number(s.naturalHeight.toString().replace("px",""));e.imageAspectRatio=o/n;let{labelStyles:h}=E(e);e.labelStyle=h;let l=i?.wrappingWidth;e.defaultWidth=i?.wrappingWidth;let d=Math.max(e.label?l??0:0,e?.assetWidth??o),y=e.constraint==="on"?e?.assetHeight?e.assetHeight*e.imageAspectRatio:d:d,c=e.constraint==="on"?y/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(y,l??0);let{shapeSvg:x,bbox:b,label:_}=await z(r,e,"image-shape default"),v=e.pos==="t",M=-y/2,q=-c/2,W=e.label?8:0,j=g.svg(x),K=Kt(e,{});if(e.look!=="handDrawn")K.roughness=0,K.fillStyle="solid";let J=j.rectangle(M,q,y,c,K),tt=Math.max(y,b.width),at=c+b.height+W,st=j.rectangle(-tt/2,-at/2,tt,at,{...K,fill:"none",stroke:"none"}),dt=x.insert(()=>J,":first-child"),bt=x.insert(()=>st);if(e.img){let At=x.append("image");At.attr("href",e.img),At.attr("width",y),At.attr("height",c),At.attr("preserveAspectRatio","none"),At.attr("transform",`translate(${-y/2},${v?at/2-c:-at/2})`)}return _.attr("transform",`translate(${-b.width/2-(b.x-(b.left??0))},${v?-c/2-b.height/2-W/2:c/2-b.height/2+W/2})`),dt.attr("transform",`translate(0,${v?b.height/2+W/2:-b.height/2-W/2})`),O(e,bt),e.intersect=function(At){if(a.info("iconSquare intersect",e,At),!e.label)return T.rect(e,At);let wt=e.x??0,kt=e.y??0,it=e.height??0,ot=[];if(v)ot=[{x:wt-b.width/2,y:kt-it/2},{x:wt+b.width/2,y:kt-it/2},{x:wt+b.width/2,y:kt-it/2+b.height+W},{x:wt+y/2,y:kt-it/2+b.height+W},{x:wt+y/2,y:kt+it/2},{x:wt-y/2,y:kt+it/2},{x:wt-y/2,y:kt-it/2+b.height+W},{x:wt-b.width/2,y:kt-it/2+b.height+W}];else ot=[{x:wt-y/2,y:kt-it/2},{x:wt+y/2,y:kt-it/2},{x:wt+y/2,y:kt-it/2+c},{x:wt+b.width/2,y:kt-it/2+c},{x:wt+b.width/2/2,y:kt+it/2},{x:wt-b.width/2,y:kt+it/2},{x:wt-b.width/2,y:kt-it/2+c},{x:wt-y/2,y:kt-it/2+c}];return T.polygon(e,ot,At)},x}t(Ix,"imageSquare");async function $x(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=o,h=e.look==="neo"?o*2:o,{shapeSvg:l,bbox:d}=await z(r,e,te(e)),y=Math.max(d.height+n*2,e.height??0),c=Math.max(d.width+h*2,(e.width??0)-y),x=[{x:0,y:0},{x:c,y:0},{x:c+3*y/6,y:-y},{x:-3*y/6,y:-y}],b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(l),M=Kt(e,{}),q=ye(x),W=v.path(q,M);if(b=l.insert(()=>W,":first-child").attr("transform",`translate(${-c/2}, ${y/2})`),_)b.attr("style",_)}else b=li(l,c,y,x);if(s)b.attr("style",s);return e.width=c,e.height=y,O(e,b),e.intersect=function(v){return T.polygon(e,x,v)},l}t($x,"inv_trapezoid");async function Dx(r,e){let{shapeSvg:i,bbox:s,label:o}=await z(r,e,"label"),n=i.insert("rect",":first-child"),h=0.1,l=0.1;return n.attr("width",0.1).attr("height",0.1),i.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),O(e,n),e.intersect=function(d){return T.rect(e,d)},i}t(Dx,"labelRect");async function Px(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=o,h=e.look==="neo"?o*2:o,{shapeSvg:l,bbox:d}=await z(r,e,te(e)),y=Math.max(d.height+n,e.height??0),c=Math.max(d.width+h,(e.width??0)-y),x=[{x:0,y:0},{x:c+3*y/6,y:0},{x:c,y:-y},{x:-(3*y)/6,y:-y}],b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(l),M=Kt(e,{}),q=ye(x),W=v.path(q,M);if(b=l.insert(()=>W,":first-child").attr("transform",`translate(${-c/2}, ${y/2})`),_)b.attr("style",_)}else b=li(l,c,y,x);if(s)b.attr("style",s);return e.width=c,e.height=y,O(e,b),e.intersect=function(v){return T.polygon(e,x,v)},l}t(Px,"lean_left");async function Rx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=o,h=e.look==="neo"?o*2:o,{shapeSvg:l,bbox:d}=await z(r,e,te(e)),y=Math.max(d.height+n,e.height??0),c=Math.max(d.width+h,(e.width??0)-y),x=[{x:-3*y/6,y:0},{x:c,y:0},{x:c+3*y/6,y:-y},{x:0,y:-y}],b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(l),M=Kt(e,{}),q=ye(x),W=v.path(q,M);if(b=l.insert(()=>W,":first-child").attr("transform",`translate(${-c/2}, ${y/2})`),_)b.attr("style",_)}else b=li(l,c,y,x);if(s)b.attr("style",s);return e.width=c,e.height=y,O(e,b),e.intersect=function(v){return T.polygon(e,x,v)},l}t(Rx,"lean_right");function qx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.label="",e.labelStyle=i;let o=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,h=Math.max(35,e?.width??0),l=Math.max(35,e?.height??0),d=7,y=[{x:h,y:0},{x:0,y:l+d/2},{x:h-2*d,y:l+d/2},{x:0,y:2*l},{x:h,y:l-d/2},{x:2*d,y:l-d/2}],c=g.svg(o),x=Kt(e,{});if(e.look!=="handDrawn")x.roughness=0,x.fillStyle="solid";let b=ye(y),_=c.path(b,x),v=o.insert(()=>_,":first-child");if(v.attr("class","outer-path"),n&&e.look!=="handDrawn")v.selectAll("path").attr("style",n);if(s&&e.look!=="handDrawn")v.selectAll("path").attr("style",s);return v.attr("transform",`translate(-${h/2},${-l})`),O(e,v),e.intersect=function(M){return a.info("lightningBolt intersect",e,M),T.polygon(e,y,M)},o}t(qx,"lightningBolt");var sS=t((r,e,i,s,o,n,h)=>[`M${r},${e+n}`,`a${o},${n} 0,0,0 ${i},0`,`a${o},${n} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${n} 0,0,0 ${i},0`,`l0,${-s}`,`M${r},${e+n+h}`,`a${o},${n} 0,0,0 ${i},0`].join(" "),"createCylinderPathD"),aS=t((r,e,i,s,o,n,h)=>[`M${r},${e+n}`,`M${r+i},${e+n}`,`a${o},${n} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${n} 0,0,0 ${i},0`,`l0,${-s}`,`M${r},${e+n+h}`,`a${o},${n} 0,0,0 ${i},0`].join(" "),"createOuterCylinderPathD"),nS=t((r,e,i,s,o,n)=>[`M${r-i/2},${-s/2}`,`a${o},${n} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD"),My=10,Ey=10;async function Nx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,h=e.look==="neo"?24:o;if(e.width||e.height){let W=e.width??0;if(e.width=(e.width??0)-n,e.width<Ey)e.width=Ey;let K=W/2/(2.5+W/50);if(e.height=(e.height??0)-h-K*3,e.height<My)e.height=My}let{shapeSvg:l,bbox:d,label:y}=await z(r,e,te(e)),c=(e?.width?e?.width:d.width)+n*2,x=c/2,b=x/(2.5+c/50),_=(e?.height?e?.height:d.height)+b+h*2,v=_*0.1,M,{cssStyles:q}=e;if(e.look==="handDrawn"){let W=g.svg(l),j=aS(0,0,c,_,x,b,v),K=nS(0,b,c,_,x,b),J=Kt(e,{}),tt=W.path(j,J),at=W.path(K,J);if(l.insert(()=>at,":first-child").attr("class","line"),M=l.insert(()=>tt,":first-child"),M.attr("class","basic label-container"),q)M.attr("style",q)}else{let W=sS(0,0,c,_,x,b,v);M=l.insert("path",":first-child").attr("d",W).attr("class","basic label-container outer-path").attr("style",De(q)).attr("style",s)}return M.attr("label-offset-y",b),M.attr("transform",`translate(${-c/2}, ${-(_/2+b)})`),O(e,M),y.attr("transform",`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)+b-(d.y-(d.top??0))})`),e.intersect=function(W){let j=T.rect(e,W),K=j.x-(e.x??0);if(x!=0&&(Math.abs(K)<(e.width??0)/2||Math.abs(K)==(e.width??0)/2&&Math.abs(j.y-(e.y??0))>(e.height??0)/2-b)){let J=b*b*(1-K*K/(x*x));if(J>0)J=Math.sqrt(J);if(J=b-J,W.y-(e.y??0)>0)J=-J;j.y+=J}return j},l}t(Nx,"linedCylinder");async function Wx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,h=e.look==="neo"?12:o;if(e.width||e.height){let J=e.width;if(e.width=(J??0)*10/11-n*2,e.width<10)e.width=10;if(e.height=(e?.height??0)-h*2,e.height<10)e.height=10}let{shapeSvg:l,bbox:d,label:y}=await z(r,e,te(e)),c=(e?.width?e?.width:d.width)+(n??0)*2,x=(e?.height?e?.height:d.height)+(h??0)*2,b=e.look==="neo"?x/4:x/8,_=x+b,{cssStyles:v}=e,M=g.svg(l),q=Kt(e,{});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let W=[{x:-c/2-c/2*0.1,y:-_/2},{x:-c/2-c/2*0.1,y:_/2},...Vi(-c/2-c/2*0.1,_/2,c/2+c/2*0.1,_/2,b,0.8),{x:c/2+c/2*0.1,y:-_/2},{x:-c/2-c/2*0.1,y:-_/2},{x:-c/2,y:-_/2},{x:-c/2,y:_/2*1.1},{x:-c/2,y:-_/2}],j=M.polygon(W.map((J)=>[J.x,J.y]),q),K=l.insert(()=>j,":first-child");if(K.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn")K.selectAll("path").attr("style",v);if(s&&e.look!=="handDrawn")K.selectAll("path").attr("style",s);return K.attr("transform",`translate(0,${-b/2})`),y.attr("transform",`translate(${-c/2+(e.padding??0)+c/2*0.1/2-(d.x-(d.left??0))},${-x/2+(e.padding??0)-b-(d.y-(d.top??0))})`),O(e,K),e.intersect=function(J){return T.polygon(e,W,J)},l}t(Wx,"linedWaveEdgedRect");var lS=56,Uf=72,Oy=8,Iy=2,hS=8,cS={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},$y=Math.PI/3,Dy=0.6,jf=t((r,e)=>{let i=e*Dy,s=e*Math.sqrt(1-Dy**2),o=Math.cos($y),n=-Math.sin($y),h=i*-n,l=r+i*o,d=s*o,y=s*n;return`M ${h-d} ${l-y} L ${h+d} ${l+y}`},"businessMarkerPathForCircle"),uS={normal:jf(-24,12),hollow:jf(-23,9),awesome:jf(-21,13),icon:"M 12 -8 L 26 -26"},Py=t((r,e,i)=>{let s=(e.x??0)-(e.left??0),o=(e.y??0)-(e.top??0);r.attr("transform",`translate(${-e.width/2-s},${i-e.height/2-o})`)},"positionLabel"),od=t((r,e,i,s,o=!1)=>{if(e.look==="handDrawn"){let l=g.svg(r).path(i,Kt(e,o?{fill:"none"}:{}));return r.insert(()=>l,":first-child").attr("class",s)}let n=r.append("path").attr("class",s).attr("d",i);if(o)n.attr("fill","none");return n},"appendActorPath"),fS=t((r,e,i,s,o,n,h=!1)=>{if(e.look==="handDrawn"){let y=g.svg(r).circle(i,s,o*2,Kt(e,h?{fill:"none"}:{}));return r.insert(()=>y,":first-child").attr("class",n)}let l=r.append("circle").attr("class",n).attr("cx",i).attr("cy",s).attr("r",o);if(h)l.attr("fill","none");return l},"appendActorCircle");var dS=t((r,e,i)=>{if(!e.business)return;r.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",uS[i]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function en(r,e,i,s){let{labelStyles:o,nodeStyles:n}=E(e);e.labelStyle=o;let h=i==="icon"||e.stereotype!==void 0?{...e,icon:i==="icon"?void 0:e.icon,stereotype:void 0}:e,{shapeSvg:l,bbox:d,label:y}=await z(r,h,te(e,`usecase-actor-variant usecase-actor-${i}`)),c=e.accessibleName??e.label;if(c)l.attr("role","img").attr("aria-label",c);y.attr("class","label actor-label usecase-actor-label");let{theme:x,themeVariables:b}=u();It(l,e.colorIndex,x,b.borderColorArray);let _,v;if(e.stereotype){let dt=await qo(l,`«${e.stereotype}»`,{labelStyle:o,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});_=dt.label.attr("class","label usecase-stereotype"),v=dt.bbox}let M=l.append("g").attr("class",`usecase-actor-glyph ${cS[i]}`).attr("style",n||null);await s(M,e),dS(M,e,i);let q=e.padding??hS,W=v?.height??0,j=Uf+Oy+d.height+(v?W+Iy:0),K=Math.max(lS,d.width,v?.width??0)+q*2,J=j+q*2,tt=-j/2;M.attr("transform",`translate(0,${tt+Uf/2})`);let at=tt+Uf+Oy;if(_&&v)at+=W/2,Py(_,v,at),at+=W/2+Iy;Py(y,d,at+d.height/2);let st=l.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-K/2).attr("y",-J/2).attr("width",K).attr("height",J).attr("opacity",0).attr("aria-hidden","true");return O(e,st),e.intersect=(dt)=>T.rect(e,dt),l}t(en,"renderUsecaseActor");var pS=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");async function zx(r,e){return en(r,e,"normal",(i,s)=>{od(i,s,pS,"usecase-actor-stick")})}t(zx,"usecaseActor");var gS=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");async function Hx(r,e){return en(r,e,"awesome",(i,s)=>{od(i,s,gS,"usecase-actor-awesome-silhouette")})}t(Hx,"usecaseActorAwesome");var mS=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");async function Yx(r,e){return en(r,e,"hollow",(i,s)=>{fS(i,s,0,-23,9,"usecase-actor-hollow-head",!0),od(i,s,mS,"usecase-actor-hollow-body",!0)})}t(Yx,"usecaseActorHollow");var gs=52,Ry=42,qy=-2,yS=t(async(r,e)=>{let i=-gs/2,s=qy-gs/2;if(e.look==="handDrawn"){let c=g.svg(r).rectangle(i,s,gs,gs,Kt(e,{}));r.insert(()=>c,":first-child").attr("class","usecase-actor-icon-frame")}else r.append("rect").attr("class","usecase-actor-icon-frame").attr("x",i).attr("y",s).attr("width",gs).attr("height",gs).attr("rx",4).attr("ry",4);let o=e.icon??"",n=await Dl(o.includes(":")?o:`fa:${o}`),h=await qt(o,{height:Ry,width:Ry,fallbackPrefix:"fa"}),l=r.append("g").attr("class",`usecase-actor-icon-symbol${n?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${h}</g>`),d=l.node()?.getBBox();if(d)l.attr("transform",`translate(${-d.width/2-d.x},${qy-d.height/2-d.y})`)},"drawIconActor");async function Ux(r,e){return en(r,e,"icon",yS)}t(Ux,"usecaseActorIcon");var Ny=t((r,e,i)=>{let s=(e.x??0)-(e.left??0),o=(e.y??0)-(e.top??0);r.attr("transform",`translate(${-e.width/2-s},${i-e.height/2-o})`)},"positionLabel");async function jx(r,e){let i=e,{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let n=i.stereotype?{...e,stereotype:void 0}:e,{shapeSvg:h,bbox:l,halfPadding:d,label:y}=await z(r,n,te(e,"usecase-business-shape"));y.attr("class","label usecase-label");let{theme:c,themeVariables:x}=u();It(h,e.colorIndex,c,x.borderColorArray);let b,_;if(i.stereotype){let it=await qo(h,`«${i.stereotype}»`,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});b=it.label.attr("class","label usecase-stereotype"),_=it.bbox}let v=_?2:0,M=l.height+(_?.height??0)+v,q=Math.max(l.width,_?.width??0),W=d??10,j=q/2+W*2,K=M/2+W*2,J=Math.min(Math.max(W/5,1),W/2),tt=q/2+J,at=j-J,st=tt/j,dt=at/j,bt=K*Math.sqrt(Math.max(0,1-st*st)),At=-K*Math.sqrt(Math.max(0,1-dt*dt));if(b&&_)Ny(b,_,-M/2+_.height/2);Ny(y,l,M/2-l.height/2);let wt;if(e.look==="handDrawn"){let ot=g.svg(h).ellipse(0,0,j*2,K*2,Kt(e,{}));wt=h.insert(()=>ot,":first-child").attr("class","basic label-container usecase-business-ellipse")}else wt=h.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",o).attr("rx",j).attr("ry",K).attr("cx",0).attr("cy",0);h.append("path").attr("class","usecase-business-marker").attr("d",`M ${tt} ${bt} L ${at} ${At}`).attr("fill","none").attr("style",o||null);let kt=i.accessibleName??i.label;if(kt)h.attr("role","img").attr("aria-label",kt);return O(e,wt),e.calcIntersect=(it,ot)=>T.ellipse(it,it.width/2,it.height/2,ot),e.intersect=(it)=>T.ellipse(e,j,K,it),h}t(jx,"usecaseBusiness");var Gf=8,Wy=4,xS=1,Xf=t((r,e,i,s)=>{let o=(e.x??0)-(e.left??0),n=(e.y??0)-(e.top??0);r.attr("transform",`translate(${i-e.width/2-o},${s-e.height/2-n})`)},"positionLabel"),CS=t((r)=>{let e=Number.parseFloat(r??"");return Number.isFinite(e)&&e>=0?e:xS},"numericStrokeWidth");async function Gx(r,e){let i=e,{labelStyles:s,nodeStyles:o}=E(e),{stylesMap:n}=ii(e);e.labelStyle=s;let{shapeSvg:h,bbox:l,label:d}=await z(r,e,te(e,"usecase-json-table"));if(h.attr("role","img"),i.accessibleName)h.attr("aria-label",i.accessibleName);d.attr("class","label usecase-json-title");let y=h.append("g").attr("class","usecase-json-table-grid"),c=[];for(let it of i.jsonRows??[]){let ot=await qo(y,it.key,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0}),mt=await qo(y,it.value,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0});c.push({key:{label:ot.label.attr("class","label usecase-json-key"),bbox:ot.bbox},value:{label:mt.label.attr("class","label usecase-json-value"),bbox:mt.bbox}})}let x=Math.max(0,...c.map(({key:it})=>it.bbox.width))+Gf*2,b=Math.max(0,...c.map(({value:it})=>it.bbox.width))+Gf*2,_=l.width+Gf*2,v=Math.max(_,x+b),M=b+Math.max(0,v-x-b),q=l.height+Wy*2,W=c.map(({key:it,value:ot})=>Math.max(it.bbox.height,ot.bbox.height)+Wy*2),j=q+W.reduce((it,ot)=>it+ot,0),K=CS(n.get("stroke-width")),J=v+K*2,tt=j+K*2,at=-v/2,st=-j/2,dt=e.look==="handDrawn"?g.svg(h):void 0,bt=dt?Kt(e,{}):void 0,At=t((it,ot,mt,et,_t,Mt)=>{if(dt&&bt){let Vt=dt.rectangle(mt,et,_t,Mt,bt);return it.insert(()=>Vt,":first-child").attr("class",ot)}return it.insert("rect",":first-child").attr("class",ot).attr("x",mt).attr("y",et).attr("width",_t).attr("height",Mt).attr("style",o)},"insertCell"),wt=At(h,"label-container usecase-json-border",-J/2,-tt/2,J,tt);At(y,"usecase-json-cell usecase-json-title-cell",at,st,v,q),y.node()?.append(d.node()),Xf(d,l,0,st+q/2);let kt=st+q;return c.forEach(({key:it,value:ot},mt)=>{let et=W[mt],_t=y.append("g").attr("class","usecase-json-row").attr("data-row-index",mt).attr("transform",`translate(0,${kt})`);At(_t,"usecase-json-cell usecase-json-key-cell",at,0,x,et),At(_t,"usecase-json-cell usecase-json-value-cell",at+x,0,M,et),_t.node()?.append(it.label.node(),ot.label.node()),Xf(it.label,it.bbox,at+x/2,et/2),Xf(ot.label,ot.bbox,at+x+M/2,et/2),kt+=et}),O(e,wt),e.intersect=(it)=>T.rect(e,it),h}t(Gx,"usecaseJsonTable");async function Xx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,h=e.look==="neo"?12:o,l=e.look==="neo"?10:5;if(e.width||e.height)e.width=Math.max((e?.width??0)-n*2-2*l,10),e.height=Math.max((e?.height??0)-h*2-2*l,10);let{shapeSvg:d,bbox:y,label:c}=await z(r,e,te(e)),x=(e?.width?e?.width:y.width)+n*2+2*l,b=(e?.height?e?.height:y.height)+h*2+2*l,_=x-2*l,v=b-2*l,M=-_/2,q=-v/2,{cssStyles:W}=e,j=g.svg(d),K=Kt(e,{}),J=[{x:M-l,y:q+l},{x:M-l,y:q+v+l},{x:M+_-l,y:q+v+l},{x:M+_-l,y:q+v},{x:M+_,y:q+v},{x:M+_,y:q+v-l},{x:M+_+l,y:q+v-l},{x:M+_+l,y:q-l},{x:M+l,y:q-l},{x:M+l,y:q},{x:M,y:q},{x:M,y:q+l}],tt=[{x:M,y:q+l},{x:M+_-l,y:q+l},{x:M+_-l,y:q+v},{x:M+_,y:q+v},{x:M+_,y:q},{x:M,y:q}];if(e.look!=="handDrawn")K.roughness=0,K.fillStyle="solid";let at=ye(J),st=j.path(at,K),dt=ye(tt),bt=j.path(dt,K);if(e.look!=="handDrawn")st=Kf(st),bt=Kf(bt);let At=d.insert("g",":first-child");if(At.insert(()=>st),At.insert(()=>bt),At.attr("class","basic label-container outer-path"),W&&e.look!=="handDrawn")At.selectAll("path").attr("style",W);if(s&&e.look!=="handDrawn")At.selectAll("path").attr("style",s);return c.attr("transform",`translate(${-(y.width/2)-l-(y.x-(y.left??0))}, ${-(y.height/2)+l-(y.y-(y.top??0))})`),O(e,At),e.intersect=function(wt){return T.polygon(e,J,wt)},d}t(Xx,"multiRect");async function Vx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:h}=await z(r,e,te(e)),l=e.padding??0,d=e.look==="neo"?16:l,y=e.look==="neo"?12:l,c=!0;if(e.width||e.height)c=!1,e.width=(e?.width??0)-d*2,e.height=(e?.height??0)-y*3;let x=Math.max(n.width,e?.width??0)+d*2,b=Math.max(n.height,e?.height??0)+y*3,_=e.look==="neo"?b/4:b/8,v=b+(c?_/2:-_/2),M=-x/2,q=-v/2,W=10,{cssStyles:j}=e,K=Vi(M-W,q+v+W,M+x-W,q+v+W,_,0.8),J=K?.[K.length-1],tt=[{x:M-W,y:q+W},{x:M-W,y:q+v+W},...K,{x:M+x-W,y:J.y-W},{x:M+x,y:J.y-W},{x:M+x,y:J.y-2*W},{x:M+x+W,y:J.y-2*W},{x:M+x+W,y:q-W},{x:M+W,y:q-W},{x:M+W,y:q},{x:M,y:q},{x:M,y:q+W}],at=[{x:M,y:q+W},{x:M+x-W,y:q+W},{x:M+x-W,y:J.y-W},{x:M+x,y:J.y-W},{x:M+x,y:q},{x:M,y:q}],st=g.svg(o),dt=Kt(e,{});if(e.look!=="handDrawn")dt.roughness=0,dt.fillStyle="solid";let bt=ye(tt),At=st.path(bt,dt),wt=ye(at),kt=st.path(wt,dt),it=o.insert(()=>At,":first-child");if(it.insert(()=>kt),it.attr("class","basic label-container outer-path"),j&&e.look!=="handDrawn")it.selectAll("path").attr("style",j);if(s&&e.look!=="handDrawn")it.selectAll("path").attr("style",s);return it.attr("transform",`translate(0,${-_/2})`),h.attr("transform",`translate(${-(n.width/2)-W-(n.x-(n.left??0))}, ${-(n.height/2)+W-_-(n.y-(n.top??0))})`),O(e,it),e.intersect=function(ot){return T.polygon(e,tt,ot)},o}t(Vx,"multiWaveEdgedRectangle");async function Kx(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);if(e.labelStyle=s,!(e.useHtmlLabels||He(S())))e.centerLabel=!0;let{shapeSvg:h,bbox:l,label:d}=await z(r,e,te(e)),y=Math.max(l.width+(e.padding??0)*2,e?.width??0),c=Math.max(l.height+(e.padding??0)*2,e?.height??0),x=-y/2,b=-c/2,{cssStyles:_}=e,v=g.svg(h),M=Kt(e,{fill:i.noteBkgColor,stroke:i.noteBorderColor});if(e.look!=="handDrawn")M.roughness=0,M.fillStyle="solid";let q=v.rectangle(x,b,y,c,M),W=h.insert(()=>q,":first-child");if(W.attr("class","basic label-container outer-path"),d.attr("class","label noteLabel"),_&&e.look!=="handDrawn")W.selectAll("path").attr("style",_);if(o&&e.look!=="handDrawn")W.selectAll("path").attr("style",o);return d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),O(e,W),e.intersect=function(j){return T.rect(e,j)},h}t(Kx,"note");var bS=t((r,e,i)=>[`M${r+i/2},${e}`,`L${r+i},${e-i/2}`,`L${r+i/2},${e-i}`,`L${r},${e-i/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Zx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n}=await z(r,e,te(e)),h=n.width+(e.padding??0),l=n.height+(e.padding??0),d=h+l,y=0.5,c=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],x,{cssStyles:b}=e;if(e.look==="handDrawn"){let _=g.svg(o),v=Kt(e,{}),M=bS(0,0,d),q=_.path(M,v);if(x=o.insert(()=>q,":first-child").attr("transform",`translate(${-d/2+y}, ${d/2})`),b)x.attr("style",b)}else x=li(o,d,d,c),x.attr("transform",`translate(${-d/2+y}, ${d/2})`);if(s)x.attr("style",s);return O(e,x),e.calcIntersect=function(_,v){let M=_.width,q=[{x:M/2,y:0},{x:M,y:-M/2},{x:M/2,y:-M},{x:0,y:-M/2}];return T.polygon(_,q,v)},e.intersect=function(_){return this.calcIntersect(e,_)},o}t(Zx,"question");async function Qx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?21:o??0,h=e.look==="neo"?12:o??0,{shapeSvg:l,bbox:d,label:y}=await z(r,e,te(e)),c=d.width+(e.look==="neo"?n*2:n),x=Math.max(d.height+(e.look==="neo"?h*2:h),e.height??0),b=x/4,v=-Math.max(c,(e.width??0)-b)/2,M=-x/2,q=M/2,W=[{x:v+q,y:M},{x:v,y:0},{x:v+q,y:-M},{x:-v,y:-M},{x:-v,y:M}],{cssStyles:j}=e,K=g.svg(l),J=Kt(e,{});if(e.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let tt=ye(W),at=K.path(tt,J),st=l.insert(()=>at,":first-child");if(st.attr("class","basic label-container outer-path"),j&&e.look!=="handDrawn")st.selectAll("path").attr("style",j);if(s&&e.look!=="handDrawn")st.selectAll("path").attr("style",s);return st.attr("transform",`translate(${-q/2},0)`),y.attr("transform",`translate(${-q/2-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),O(e,st),e.intersect=function(dt){return T.polygon(e,W,dt)},l}t(Qx,"rect_left_inv_arrow");async function Jx(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o;if(!e.cssClasses)o="node default";else o="node "+e.cssClasses;let n=r.insert("g").attr("class",o).attr("id",e.domId||e.id),h=n.insert("g"),l=n.insert("g").attr("class","label").attr("style",s),{description:d,label:y}=e,c=await Hr(l,y,e.labelStyle,!0,!0),x={width:0,height:0};if(He(u())){let dt=c.children[0],bt=f(c);x=dt.getBoundingClientRect(),bt.attr("width",x.width),bt.attr("height",x.height)}a.info("Text 2",d);let b=d||[],_=c.getBBox(),v=await Hr(l,Array.isArray(b)?b.join("<br/>"):b,e.labelStyle,!0,!0),M=v.children[0],q=f(v);x=M.getBoundingClientRect(),q.attr("width",x.width),q.attr("height",x.height);let W=(e.padding||0)/2;f(v).attr("transform","translate( "+(x.width>_.width?0:(_.width-x.width)/2)+", "+(_.height+W+5)+")"),f(c).attr("transform","translate( "+(x.width<_.width?0:-(_.width-x.width)/2)+", 0)"),x=l.node().getBBox(),l.attr("transform","translate("+-x.width/2+", "+(-x.height/2-W+3)+")");let j=x.width+(e.padding||0),K=x.height+(e.padding||0),J=-x.width/2-W,tt=-x.height/2-W,at,st;if(e.look==="handDrawn"){let dt=g.svg(n),bt=Kt(e,{}),At=dt.path(br(J,tt,j,K,e.rx||0),bt),wt=dt.line(-x.width/2-W,-x.height/2-W+_.height+W,x.width/2+W,-x.height/2-W+_.height+W,bt);st=n.insert(()=>(a.debug("Rough node insert CXC",At),wt),":first-child"),at=n.insert(()=>(a.debug("Rough node insert CXC",At),At),":first-child")}else at=h.insert("rect",":first-child"),st=h.insert("line"),at.attr("class","outer title-state").attr("style",s).attr("x",-x.width/2-W).attr("y",-x.height/2-W).attr("width",x.width+(e.padding||0)).attr("height",x.height+(e.padding||0)),st.attr("class","divider").attr("x1",-x.width/2-W).attr("x2",x.width/2+W).attr("y1",-x.height/2-W+_.height+W).attr("y2",-x.height/2-W+_.height+W);return O(e,at),e.intersect=function(dt){return T.rect(e,dt)},n}t(Jx,"rectWithTitle");async function t0(r,e,{config:{themeVariables:i}}){let s=i?.radius??5,o={rx:s,ry:s,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return Cs(r,e,o)}t(t0,"roundedRect");var no=8;async function e0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?12:e.padding??0,{shapeSvg:h,bbox:l,label:d}=await z(r,e,te(e)),y=(e?.width??l.width)+o*2+(e.look==="neo"?no:no*2),c=(e?.height??l.height)+n*2,x=y-no,b=c,_=no-y/2,v=-c/2,{cssStyles:M}=e,q=g.svg(h),W=Kt(e,{});if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let j=[{x:_,y:v},{x:_+x,y:v},{x:_+x,y:v+b},{x:_-no,y:v+b},{x:_-no,y:v},{x:_,y:v},{x:_,y:v+b}],K=q.polygon(j.map((tt)=>[tt.x,tt.y]),W),J=h.insert(()=>K,":first-child");if(J.attr("class","basic label-container outer-path").attr("style",De(M)),s&&e.look!=="handDrawn")J.selectAll("path").attr("style",s);if(M&&e.look!=="handDrawn")J.selectAll("path").attr("style",s);return d.attr("transform",`translate(${no/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),O(e,J),e.intersect=function(tt){return T.rect(e,tt)},h}t(e0,"shadedProcess");async function r0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,h=e.look==="neo"?12:o;if(e.width||e.height)e.width=Math.max((e?.width??0)-n*2,10),e.height=Math.max((e?.height??0)/1.5-h*2,10);let{shapeSvg:l,bbox:d,label:y}=await z(r,e,te(e)),c=(e?.width?e?.width:d.width)+n*2,x=((e?.height?e?.height:d.height)+h*2)*1.5,b=c,_=x/1.5,v=-b/2,M=-_/2,{cssStyles:q}=e,W=g.svg(l),j=Kt(e,{});if(e.look!=="handDrawn")j.roughness=0,j.fillStyle="solid";let K=[{x:v,y:M},{x:v,y:M+_},{x:v+b,y:M+_},{x:v+b,y:M-_/2}],J=ye(K),tt=W.path(J,j),at=l.insert(()=>tt,":first-child");if(at.attr("class","basic label-container outer-path"),q&&e.look!=="handDrawn")at.selectChildren("path").attr("style",q);if(s&&e.look!=="handDrawn")at.selectChildren("path").attr("style",s);return at.attr("transform",`translate(0, ${_/4})`),y.attr("transform",`translate(${-b/2+(e.padding??0)-(d.x-(d.left??0))}, ${-_/4+(e.padding??0)-(d.y-(d.top??0))})`),O(e,at),e.intersect=function(st){return T.polygon(e,K,st)},l}t(r0,"slopedRect");async function i0(r,e){let i=e.padding??0,s=e.look==="neo"?16:i*2,o=e.look==="neo"?12:i,n={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??s,labelPaddingY:o},h=await Cs(r,e,n);if(e.colorIndex!==void 0){let{theme:l,themeVariables:d}=u();It(h,e.colorIndex,l,d.borderColorArray)}return h}t(i0,"squareRect");var Jf=50,kS=t((r,e,i)=>{let s=r.height+i,o=s*Math.cos(Math.PI/(2*(Jf-1))),n=Math.sqrt(Math.max(0,o**2-r.height**2));return{w:Math.max(r.width+s/4+e,1.5*s+(s-o),r.width+e+s-n),h:s}},"stadiumDimensions");async function o0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?40:o,h=e.look==="neo"?24:o,{shapeSvg:l,bbox:d}=await z(r,e,te(e)),{w:y,h:c}=kS(d,n,h),x=c/2,{cssStyles:b}=e,_=g.svg(l),v=Kt(e,{});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let M=[{x:-y/2+x,y:-c/2},{x:y/2-x,y:-c/2},...ai(-y/2+x,0,x,Jf,90,270),{x:y/2-x,y:c/2},...ai(y/2-x,0,x,Jf,270,450)],q=ye(M),W=_.path(q,v),j=l.insert(()=>W,":first-child");if(j.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn")j.selectChildren("path").attr("style",b);if(s&&e.look!=="handDrawn")j.selectChildren("path").attr("style",s);return O(e,j),e.intersect=function(K){return T.polygon(e,M,K)},l}t(o0,"stadium");async function s0(r,e){let i={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5,classes:"flowchart-node"};return Cs(r,e,i)}t(s0,"state");function a0(r,e,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s;let{cssStyles:n}=e,{lineColor:h,stateBorder:l,nodeBorder:d,nodeShadow:y}=i;if(e.width||e.height){if((e.width??0)<14)e.width=14;if((e.height??0)<14)e.height=14}if(!e.width)e.width=14;if(!e.height)e.height=14;let c=r.insert("g").attr("class","node default").attr("id",e.domId??e.id),x=g.svg(c),b=Kt(e,{});if(e.look!=="handDrawn")b.roughness=0,b.fillStyle="solid";let _=x.circle(0,0,e.width,{...b,stroke:h,strokeWidth:2}),v=l??d,M=(e.width??0)*5/14,q=x.circle(0,0,M,{...b,fill:v,stroke:v,strokeWidth:2,fillStyle:"solid"}),W=c.insert(()=>_,":first-child");if(W.insert(()=>q),e.look!=="handDrawn")W.attr("class","outer-path");if(n)W.selectAll("path").attr("style",n);if(o)W.selectAll("path").attr("style",o);if(e.width<25&&y&&e.look!=="handDrawn"){let j=r.node()?.ownerSVGElement?.id??"",K=j?`${j}-drop-shadow-small`:"drop-shadow-small";W.attr("style",`filter:url(#${K})`)}return O(e,W),e.intersect=function(j){return T.circle(e,(e.width??0)/2,j)},c}t(a0,"stateEnd");function n0(r,e,{config:{themeVariables:i}}){let{lineColor:s,nodeShadow:o}=i;if(e.width||e.height){if((e.width??0)<14)e.width=14;if((e.height??0)<14)e.height=14}if(!e.width)e.width=14;if(!e.height)e.height=14;let n=r.insert("g").attr("class","node default").attr("id",e.domId||e.id),h;if(e.look==="handDrawn"){let d=g.svg(n).circle(0,0,e.width,Gg(s));h=n.insert(()=>d),h.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else h=n.insert("circle",":first-child"),h.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&o&&e.look!=="handDrawn"){let l=r.node()?.ownerSVGElement?.id??"",d=l?`${l}-drop-shadow-small`:"drop-shadow-small";h.attr("style",`filter:url(#${d})`)}return O(e,h),e.intersect=function(l){return T.circle(e,(e.width??7)/2,l)},n}t(n0,"stateStart");var ms=8;async function l0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e?.padding??8,n=e.look==="neo"?28:o,h=e.look==="neo"?12:o,{shapeSvg:l,bbox:d}=await z(r,e,te(e)),y=Math.max(d.width+2*ms+n,e.width??0),c=Math.max(d.height+h,e.height??0),x=y-2*ms,b=c,_=-y/2,v=-c/2,M=[{x:0,y:0},{x,y:0},{x,y:-b},{x:0,y:-b},{x:0,y:0},{x:-8,y:0},{x:x+8,y:0},{x:x+8,y:-b},{x:-8,y:-b},{x:-8,y:0}];if(e.look==="handDrawn"){let q=g.svg(l),W=Kt(e,{}),j=q.rectangle(_,v,x+16,b,W),K=q.line(_+ms,v,_+ms,v+b,W),J=q.line(_+ms+x,v,_+ms+x,v+b,W);l.insert(()=>K,":first-child"),l.insert(()=>J,":first-child");let tt=l.insert(()=>j,":first-child"),{cssStyles:at}=e;tt.attr("class","basic label-container").attr("style",De(at)),O(e,tt)}else{let q=li(l,x,b,M);if(s)q.attr("style",s);O(e,q)}return e.intersect=function(q){return T.polygon(e,M,q)},l}t(l0,"subroutine");var Vf=0.2;async function h0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,h=e.look==="neo"?12:o;if(e.width||e.height)e.height=Math.max((e?.height??0)-h*2,10),e.width=Math.max((e?.width??0)-n*2-Vf*(e.height+h*2),10);let{shapeSvg:l,bbox:d}=await z(r,e,te(e)),y=(e?.height?e?.height:d.height)+h*2,c=Vf*y,x=Vf*y,_=(e?.width?e?.width:d.width)+n*2+c-c,v=y,M=-_/2,q=-v/2,{cssStyles:W}=e,j=g.svg(l),K=Kt(e,{}),J=[{x:M-c/2,y:q},{x:M+_+c/2,y:q},{x:M+_+c/2,y:q+v},{x:M-c/2,y:q+v}],tt=[{x:M+_-c/2,y:q+v},{x:M+_+c/2,y:q+v},{x:M+_+c/2,y:q+v-x}];if(e.look!=="handDrawn")K.roughness=0,K.fillStyle="solid";let at=ye(J),st=j.path(at,K),dt=ye(tt),bt=j.path(dt,{...K,fillStyle:"solid"}),At=l.insert(()=>bt,":first-child");if(At.insert(()=>st,":first-child"),At.attr("class","basic label-container outer-path"),W&&e.look!=="handDrawn")At.selectAll("path").attr("style",W);if(s&&e.look!=="handDrawn")At.selectAll("path").attr("style",s);return O(e,At),e.intersect=function(wt){return T.polygon(e,J,wt)},l}t(h0,"taggedRect");async function c0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,label:h}=await z(r,e,te(e)),l=Math.max(n.width+(e.padding??0)*2,e?.width??0),d=Math.max(n.height+(e.padding??0)*2,e?.height??0),y=d/8,c=0.2*l,x=0.2*d,b=d+y,{cssStyles:_}=e,v=g.svg(o),M=Kt(e,{});if(e.look!=="handDrawn")M.roughness=0,M.fillStyle="solid";let q=[{x:-l/2-l/2*0.1,y:b/2},...Vi(-l/2-l/2*0.1,b/2,l/2+l/2*0.1,b/2,y,0.8),{x:l/2+l/2*0.1,y:-b/2},{x:-l/2-l/2*0.1,y:-b/2}],W=-l/2+l/2*0.1,j=-b/2-x*0.4,K=[{x:W+l-c,y:(j+d)*1.3},{x:W+l,y:j+d-x},{x:W+l,y:(j+d)*0.9},...Vi(W+l,(j+d)*1.25,W+l-c,(j+d)*1.3,-d*0.02,0.5)],J=ye(q),tt=v.path(J,M),at=ye(K),st=v.path(at,{...M,fillStyle:"solid"}),dt=o.insert(()=>st,":first-child");if(dt.insert(()=>tt,":first-child"),dt.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")dt.selectAll("path").attr("style",_);if(s&&e.look!=="handDrawn")dt.selectAll("path").attr("style",s);return dt.attr("transform",`translate(0,${-y/2})`),h.attr("transform",`translate(${-l/2+(e.padding??0)-(n.x-(n.left??0))},${-d/2+(e.padding??0)-y/2-(n.y-(n.top??0))})`),O(e,dt),e.intersect=function(bt){return T.polygon(e,q,bt)},o}t(c0,"taggedWaveEdgedRectangle");async function u0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n}=await z(r,e,te(e)),h=Math.max(n.width+(e.padding??0),e?.width||0),l=Math.max(n.height+(e.padding??0),e?.height||0),d=-h/2,y=-l/2,c=o.insert("rect",":first-child");return c.attr("class","text").attr("style",s).attr("rx",0).attr("ry",0).attr("x",d).attr("y",y).attr("width",h).attr("height",l),O(e,c),e.intersect=function(x){return T.rect(e,x)},o}t(u0,"text");var wS=t((r,e,i,s,o,n)=>`M${r},${e}
|
|
234
|
+
a${o},${n} 0,0,1 0,${-s}
|
|
235
|
+
l${i},0
|
|
236
|
+
a${o},${n} 0,0,1 0,${s}
|
|
237
|
+
M${i},${-s}
|
|
238
|
+
a${o},${n} 0,0,0 0,${s}
|
|
239
|
+
l${-i},0`,"createCylinderPathD"),SS=t((r,e,i,s,o,n)=>[`M${r},${e}`,`M${r+i},${e}`,`a${o},${n} 0,0,0 0,${-s}`,`l${-i},0`,`a${o},${n} 0,0,0 0,${s}`,`l${i},0`].join(" "),"createOuterCylinderPathD"),TS=t((r,e,i,s,o,n)=>[`M${r+i/2},${-s/2}`,`a${o},${n} 0,0,0 0,${s}`].join(" "),"createInnerCylinderPathD"),zy=5,Hy=10;async function f0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?12:o/2,h=e.height??0;if(e.height){if(e.height=e.height-n,e.height<zy)e.height=zy}if(e.width){let W=h/2/(2.5+h/50);if(e.width=e.width-n-W*3,e.width<Hy)e.width=Hy}let{shapeSvg:l,bbox:d,label:y}=await z(r,e,te(e)),c=Math.max(e.height??0,d.height)+n,x=c/2,b=x/(2.5+c/50),_=Math.max(e.width??0,d.width)+b+n,{cssStyles:v}=e,M;if(e.look==="handDrawn"){let q=g.svg(l),W=SS(0,0,_,c,b,x),j=TS(0,0,_,c,b,x),K=q.path(W,Kt(e,{})),J=q.path(j,Kt(e,{fill:"none"}));if(M=l.insert(()=>J,":first-child"),M=l.insert(()=>K,":first-child"),M.attr("class","basic label-container"),v)M.attr("style",v)}else{let q=wS(0,0,_,c,b,x);if(M=l.insert("path",":first-child").attr("d",q).attr("class","basic label-container").attr("style",De(v)).attr("style",s),M.attr("class","basic label-container outer-path"),v)M.selectAll("path").attr("style",v);if(s)M.selectAll("path").attr("style",s)}return M.attr("label-offset-x",b),M.attr("transform",`translate(${-_/2}, ${c/2} )`),y.attr("transform",`translate(${-(d.width/2)-b-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),O(e,M),e.intersect=function(q){let W=T.rect(e,q),j=W.y-(e.y??0);if(x!=0&&(Math.abs(j)<(e.height??0)/2||Math.abs(j)==(e.height??0)/2&&Math.abs(W.x-(e.x??0))>(e.width??0)/2-b)){let K=b*b*(1-j*j/(x*x));if(K!=0)K=Math.sqrt(Math.abs(K));if(K=b-K,q.x-(e.x??0)>0)K=-K;W.x+=K}return W},l}t(f0,"tiltedCylinder");async function d0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?o:o,h=e.look==="neo"?o*2:o,{shapeSvg:l,bbox:d}=await z(r,e,te(e)),y=Math.max(d.height+n,e.height??0),c=Math.max(d.width+h,(e.width??0)-y),x=[{x:-3*y/6,y:0},{x:c+3*y/6,y:0},{x:c,y:-y},{x:0,y:-y}],b,{cssStyles:_}=e;if(e.look==="handDrawn"){let v=g.svg(l),M=Kt(e,{}),q=ye(x),W=v.path(q,M);if(b=l.insert(()=>W,":first-child").attr("transform",`translate(${-c/2}, ${y/2})`),_)b.attr("style",_)}else b=li(l,c,y,x);if(s)b.attr("style",s);return e.width=c,e.height=y,O(e,b),e.intersect=function(v){return T.polygon(e,x,v)},l}t(d0,"trapezoid");async function p0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,h=e.look==="neo"?12:o,l=15,d=5;if(e.width||e.height){if(e.height=(e.height??0)-h*2,e.height<d)e.height=d;if(e.width=(e.width??0)-n*2,e.width<l)e.width=l}let{shapeSvg:y,bbox:c}=await z(r,e,te(e)),x=(e?.width?e?.width:c.width)+n*2,b=(e?.height?e?.height:c.height)+h*2,{cssStyles:_}=e,v=g.svg(y),M=Kt(e,{});if(e.look!=="handDrawn")M.roughness=0,M.fillStyle="solid";let q=[{x:-x/2*0.8,y:-b/2},{x:x/2*0.8,y:-b/2},{x:x/2,y:-b/2*0.6},{x:x/2,y:b/2},{x:-x/2,y:b/2},{x:-x/2,y:-b/2*0.6}],W=ye(q),j=v.path(W,M),K=y.insert(()=>j,":first-child");if(K.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")K.selectChildren("path").attr("style",_);if(s&&e.look!=="handDrawn")K.selectChildren("path").attr("style",s);return O(e,K),e.intersect=function(J){return T.polygon(e,q,J)},y}t(p0,"trapezoidalPentagon");var Yy=10,Uy=10;async function g0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?o*2:o;if(e.width||e.height){if(e.width=((e?.width??0)-n)/2,e.width<Uy)e.width=Uy;if(e.height=e?.height??0,e.height<Yy)e.height=Yy}let{shapeSvg:h,bbox:l,label:d}=await z(r,e,te(e)),y=sn(u().flowchart?.htmlLabels),c=(e?.width?e?.width:l.width)+n,x=e?.height?e?.height:c+l.height,b=x,_=[{x:0,y:0},{x:b,y:0},{x:b/2,y:-x}],{cssStyles:v}=e,M=g.svg(h),q=Kt(e,{});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let W=ye(_),j=M.path(W,q),K=h.insert(()=>j,":first-child").attr("transform",`translate(${-x/2}, ${x/2})`).attr("class","outer-path");if(v&&e.look!=="handDrawn")K.selectChildren("path").attr("style",v);if(s&&e.look!=="handDrawn")K.selectChildren("path").attr("style",s);return e.width=c,e.height=x,O(e,K),d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${x/2-(l.height+(e.padding??0)/(y?2:1)-(l.y-(l.top??0)))})`),e.intersect=function(J){return a.info("Triangle intersect",e,_,J),T.polygon(e,_,J)},h}t(g0,"triangle");async function m0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,h=e.look==="neo"?12:o,l=!0;if(e.width||e.height){if(l=!1,e.width=(e?.width??0)-n*2,e.width<10)e.width=10;if(e.height=(e?.height??0)-h*2,e.height<10)e.height=10}let{shapeSvg:d,bbox:y,label:c}=await z(r,e,te(e)),x=(e?.width?e?.width:y.width)+(n??0)*2,b=(e?.height?e?.height:y.height)+(h??0)*2,_=e.look==="neo"?b/4:b/8,v=b+(l?_:-_),{cssStyles:M}=e,W=14-x,j=W>0?W/2:0,K=g.svg(d),J=Kt(e,{});if(e.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let tt=[{x:-x/2-j,y:v/2},...Vi(-x/2-j,v/2,x/2+j,v/2,_,0.8),{x:x/2+j,y:-v/2},{x:-x/2-j,y:-v/2}],at=ye(tt),st=K.path(at,J),dt=d.insert(()=>st,":first-child");if(dt.attr("class","basic label-container outer-path"),M&&e.look!=="handDrawn")dt.selectAll("path").attr("style",M);if(s&&e.look!=="handDrawn")dt.selectAll("path").attr("style",s);return dt.attr("transform",`translate(0,${-_/2})`),c.attr("transform",`translate(${-x/2+(e.padding??0)-(y.x-(y.left??0))},${-b/2+(e.padding??0)-_-(y.y-(y.top??0))})`),O(e,dt),e.intersect=function(bt){return T.polygon(e,tt,bt)},d}t(m0,"waveEdgedRectangle");async function y0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.padding??0,n=e.look==="neo"?16:o,h=e.look==="neo"?20:o;if(e.width||e.height){if(e.width=e?.width??0,e.width<20)e.width=20;if(e.height=e?.height??0,e.height<10)e.height=10;let J=Math.min(e.height*0.2,e.height/4);e.height=Math.ceil(e.height-h-J*2.2222222222222223),e.width=e.width-n*2}let{shapeSvg:l,bbox:d}=await z(r,e,te(e)),y=(e?.width?e?.width:d.width)+n*2,c=(e?.height?e?.height:d.height)+h,x=c/8,b=c+x*2,{cssStyles:_}=e,v=g.svg(l),M=Kt(e,{});if(e.look!=="handDrawn")M.roughness=0,M.fillStyle="solid";let q=[{x:-y/2,y:b/2},...Vi(-y/2,b/2,y/2,b/2,x,1),{x:y/2,y:-b/2},...Vi(y/2,-b/2,-y/2,-b/2,x,-1)],W=ye(q),j=v.path(W,M),K=l.insert(()=>j,":first-child");if(K.attr("class","basic label-container"),_&&e.look!=="handDrawn")K.selectAll("path").attr("style",_);if(s&&e.look!=="handDrawn")K.selectAll("path").attr("style",s);return O(e,K),e.intersect=function(J){return T.polygon(e,q,J)},l}t(y0,"waveRectangle");var Re=10;async function x0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?12:e.padding??0;if(e.width||e.height)e.width=Math.max((e?.width??0)-o*2-Re,10),e.height=Math.max((e?.height??0)-n*2-Re,10);let{shapeSvg:h,bbox:l,label:d}=await z(r,e,te(e)),y=(e?.width?e?.width:l.width)+o*2+Re,c=(e?.height?e?.height:l.height)+n*2+Re,x=y-Re,b=c-Re,_=-x/2,v=-b/2,{cssStyles:M}=e,q=g.svg(h),W=Kt(e,{}),j=[{x:_-Re,y:v-Re},{x:_-Re,y:v+b},{x:_+x,y:v+b},{x:_+x,y:v-Re}],K=`M${_-Re},${v-Re} L${_+x},${v-Re} L${_+x},${v+b} L${_-Re},${v+b} L${_-Re},${v-Re}
|
|
240
|
+
M${_-Re},${v} L${_+x},${v}
|
|
241
|
+
M${_},${v-Re} L${_},${v+b}`;if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let J=q.path(K,W),tt=h.insert(()=>J,":first-child");if(tt.attr("transform",`translate(${Re/2}, ${Re/2})`),tt.attr("class","basic label-container outer-path"),M&&e.look!=="handDrawn")tt.selectAll("path").attr("style",M);if(s&&e.look!=="handDrawn")tt.selectAll("path").attr("style",s);return d.attr("transform",`translate(${-(l.width/2)+Re/2-(l.x-(l.left??0))}, ${-(l.height/2)+Re/2-(l.y-(l.top??0))})`),O(e,tt),e.intersect=function(at){return T.polygon(e,j,at)},h}t(x0,"windowPane");var jy=new Set(["redux-color","redux-dark-color"]),_S=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function sd(r,e){let i=e;if(i.alias)e.label=i.alias;let{theme:s,themeVariables:o}=S(),{rowEven:n,rowOdd:h,nodeBorder:l,borderColorArray:d}=o;if(e.look==="handDrawn"){let{themeVariables:Gt}=S(),{background:re}=Gt,ae={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${re}`]};await sd(r,ae)}let y=S();e.useHtmlLabels=y.htmlLabels;let c=y.er?.diagramPadding??10,x=y.er?.entityPadding??6,{cssStyles:b}=e,{labelStyles:_,nodeStyles:v}=E(e);if(i.attributes.length===0&&e.label){let Gt={rx:0,ry:0,labelPaddingX:c,labelPaddingY:c*1.5,classes:""};if(Rt(e.label,y)+Gt.labelPaddingX*2<y.er.minEntityWidth)e.width=y.er.minEntityWidth;let re=await Cs(r,e,Gt);if(s!=null&&jy.has(s)){let ae=i.colorIndex??0;re.attr("data-color-id",`color-${ae%d.length}`)}if(!sn(y.htmlLabels)){let ae=re.select("text"),ne=ae.node()?.getBBox();ae.attr("transform",`translate(${-ne.width/2}, 0)`)}return re}if(!y.htmlLabels)c*=1.25,x*=1.25;let M=te(e);if(!M)M="node default";let q=r.insert("g").attr("class",M).attr("id",e.domId||e.id),W=await ys(q,e.label??"",y,0,0,["name"],_);W.height+=x;let j=0,K=[],J=[],tt=0,at=0,st=0,dt=0,bt=!0,At=!0;for(let Gt of i.attributes){let re=await ys(q,Gt.type,y,0,j,["attribute-type"],_);tt=Math.max(tt,re.width+c);let ae=await ys(q,Gt.name,y,0,j,["attribute-name"],_);at=Math.max(at,ae.width+c);let ne=await ys(q,Gt.keys.join(),y,0,j,["attribute-keys"],_);st=Math.max(st,ne.width+c);let Ae=await ys(q,Gt.comment,y,0,j,["attribute-comment"],_);dt=Math.max(dt,Ae.width+c);let ve=Math.max(re.height,ae.height,ne.height,Ae.height)+x;J.push({yOffset:j,rowHeight:ve}),j+=ve}let wt=4;if(st<=c)bt=!1,st=0,wt--;if(dt<=c)At=!1,dt=0,wt--;let kt=q.node().getBBox();if(W.width+c*2-(tt+at+st+dt)>0){let Gt=W.width+c*2-(tt+at+st+dt);if(tt+=Gt/wt,at+=Gt/wt,st>0)st+=Gt/wt;if(dt>0)dt+=Gt/wt}let it=tt+at+st+dt,ot=g.svg(q),mt=Kt(e,{});if(e.look!=="handDrawn")mt.roughness=0,mt.fillStyle="solid";let et=0;if(J.length>0)et=J.reduce((Gt,re)=>Gt+(re?.rowHeight??0),0);let _t=Math.max(kt.width+c*2,e?.width||0,it),Mt=Math.max((et??0)+W.height,e?.height||0),Vt=-_t/2,Xt=-Mt/2;if(q.selectAll("g:not(:first-child)").each((Gt,re,ae)=>{let ne=f(ae[re]),Ae=ne.attr("transform"),ve=0,Ar=0;if(Ae){let Tr=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Ae);if(Tr){if(ve=parseFloat(Tr[1]),Ar=parseFloat(Tr[2]),ne.attr("class").includes("attribute-name"))ve+=tt;else if(ne.attr("class").includes("attribute-keys"))ve+=tt+at;else if(ne.attr("class").includes("attribute-comment"))ve+=tt+at+st}}ne.attr("transform",`translate(${Vt+c/2+ve}, ${Ar+Xt+W.height+x/2})`)}),q.select(".name").attr("transform","translate("+-W.width/2+", "+(Xt+x/2)+")"),s!=null&&jy.has(s)){let Gt=i.colorIndex??0;q.attr("data-color-id",`color-${Gt%d.length}`)}let se=ot.rectangle(Vt,Xt,_t,Mt,mt),oe=q.insert(()=>se,":first-child").attr("class","outer-path").attr("style",b.join(""));K.push(0);for(let[Gt,re]of J.entries()){let ne=(Gt+1)%2===0&&re.yOffset!==0,Ae=ot.rectangle(Vt,W.height+Xt+re?.yOffset,_t,re?.rowHeight,{...mt,fill:ne?n:h,stroke:l});q.insert(()=>Ae,"g.label").attr("style",b.join("")).attr("class",`row-rect-${ne?"even":"odd"}`)}let de=0.0001,ge=xs(Vt,W.height+Xt,_t+Vt,W.height+Xt,de),he=ot.polygon(ge.map((Gt)=>[Gt.x,Gt.y]),mt);if(q.insert(()=>he).attr("class","divider"),ge=xs(tt+Vt,W.height+Xt,tt+Vt,Mt+Xt,de),he=ot.polygon(ge.map((Gt)=>[Gt.x,Gt.y]),mt),q.insert(()=>he).attr("class","divider"),bt){let Gt=tt+at+Vt;ge=xs(Gt,W.height+Xt,Gt,Mt+Xt,de),he=ot.polygon(ge.map((re)=>[re.x,re.y]),mt),q.insert(()=>he).attr("class","divider")}if(At){let Gt=tt+at+st+Vt;ge=xs(Gt,W.height+Xt,Gt,Mt+Xt,de),he=ot.polygon(ge.map((re)=>[re.x,re.y]),mt),q.insert(()=>he).attr("class","divider")}for(let Gt of K){let re=W.height+Xt+Gt;ge=xs(Vt,re,_t+Vt,re,de),he=ot.polygon(ge.map((ae)=>[ae.x,ae.y]),mt),q.insert(()=>he).attr("class","divider")}if(O(e,oe),v&&e.look!=="handDrawn")if(s!=null&&_S.has(s))q.selectAll("path").attr("style",v);else{let re=v.split(";")?.filter((ae)=>ae.includes("stroke"))?.map((ae)=>`${ae}`).join("; ");q.selectAll("path").attr("style",re??""),q.selectAll(".row-rect-even path").attr("style",v)}return e.intersect=function(Gt){return T.rect(e,Gt)},q}t(sd,"erBox");async function ys(r,e,i,s=0,o=0,n=[],h=""){let l=r.insert("g").attr("class",`label ${n.join(" ")}`).attr("transform",`translate(${s}, ${o})`).attr("style",h);if(e!==Zn(e))e=Zn(e),e=e.replaceAll("<","<").replaceAll(">",">");let d=l.node().appendChild(await rt(l,e,{width:Rt(e,i)+100,style:h,useHtmlLabels:i.htmlLabels},i));if(e.includes("<")||e.includes(">")){let c=d.children[0];c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">");while(c.childNodes[0])c=c.childNodes[0],c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">")}let y=d.getBBox();if(sn(i.htmlLabels)){let c=d.children[0];c.style.textAlign="start";let x=f(d);y=c.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return y}t(ys,"addText");function xs(r,e,i,s,o){if(r===i)return[{x:r-o/2,y:e},{x:r+o/2,y:e},{x:i+o/2,y:s},{x:i-o/2,y:s}];return[{x:r,y:e-o/2},{x:r,y:e+o/2},{x:i,y:s+o/2},{x:i,y:s-o/2}]}t(xs,"lineToPolygon");async function C0(r,e,i,s,o=i.class.padding??12){let n=!s?3:0,h=r.insert("g").attr("class",te(e)).attr("id",e.domId||e.id),l=null,d=null,y=null,c=null,x=0,b=0,_=0;if(l=h.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let j=e.annotations[0];await tn(l,{text:`«${j}»`},0),x=l.node().getBBox().height}d=h.insert("g").attr("class","label-group text"),await tn(d,e,0,["font-weight: bolder"]);let v=d.node().getBBox();b=v.height,y=h.insert("g").attr("class","members-group text");let M=0;for(let j of e.members){let K=await tn(y,j,M,[j.parseClassifier()]);M+=K+n}if(_=y.node().getBBox().height,_<=0)_=o/2;c=h.insert("g").attr("class","methods-group text");let q=0;for(let j of e.methods){let K=await tn(c,j,q,[j.parseClassifier()]);q+=K+n}let W=h.node().getBBox();if(l!==null){let j=l.node().getBBox();l.attr("transform",`translate(${-j.width/2})`)}return d.attr("transform",`translate(${-v.width/2}, ${x})`),W=h.node().getBBox(),y.attr("transform",`translate(0, ${x+b+o*2})`),W=h.node().getBBox(),c.attr("transform",`translate(0, ${x+b+(_?_+o*4:o*2)})`),W=h.node().getBBox(),{shapeSvg:h,bbox:W}}t(C0,"textHelper");async function tn(r,e,i,s=[]){let o=r.insert("g").attr("class","label").attr("style",s.join("; ")),n=S(),h="useHtmlLabels"in e?e.useHtmlLabels:sn(n.htmlLabels)??!0,l="";if("text"in e)l=e.text;else l=e.label;if(!h&&l.startsWith("\\"))l=l.substring(1);if(Me(l))h=!0;let d=await rt(o,$n(Pn(l)),{width:Rt(l,n)+50,classes:"markdown-node-label",useHtmlLabels:h},n),y,c=1;if(!h){if(s.includes("font-weight: bolder"))f(d).selectAll("tspan").attr("font-weight","");c=d.children.length;let x=d.children[0];if(d.textContent===""||d.textContent.includes(">")){if(x.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" ")x.textContent=x.textContent[0]+" "+x.textContent.substring(1)}if(x.textContent==="undefined")x.textContent="";y=d.getBBox()}else{let x=d.children[0],b=f(d);if(c=x.innerHTML.split("<br>").length,x.innerHTML.includes("</math>"))c+=x.innerHTML.split("<mrow>").length-1;await td(x),y=x.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}return o.attr("transform","translate(0,"+(-y.height/(2*c)+i)+")"),y.height}t(tn,"addText");async function b0(r,e){let i=u(),{theme:s,themeVariables:o}=i,{useGradient:n,borderColorArray:h}=o,l=i.class.padding??12,d=l,y=e.useHtmlLabels??sn(i.htmlLabels)??!0,c=e;c.annotations=c.annotations??[],c.members=c.members??[],c.methods=c.methods??[];let{shapeSvg:x,bbox:b}=await C0(r,e,i,y,d);It(x,e.colorIndex,s,h);let{labelStyles:_,nodeStyles:v}=E(e);e.labelStyle=_,e.cssStyles=c.styles||"";let M=c.styles?.join(";")||v||"";if(!e.cssStyles)e.cssStyles=M.replaceAll("!important","").split(";");let q=c.members.length===0&&c.methods.length===0&&!i.class?.hideEmptyMembersBox,W=g.svg(x),j=Kt(e,{});if(e.look!=="handDrawn")j.roughness=0,j.fillStyle="solid";let K=Math.max(e.width??0,b.width),J=Math.max(e.height??0,b.height),tt=(e.height??0)>b.height;if(c.members.length===0&&c.methods.length===0)J+=d;else if(c.members.length>0&&c.methods.length===0)J+=d*2;let at=-K/2,st=-J/2,dt=q?l*2:c.members.length===0&&c.methods.length===0?-l:0;if(tt)dt=l*2;let bt=W.rectangle(at-l,st-l-(q?l:c.members.length===0&&c.methods.length===0?-l/2:0),K+2*l,J+2*l+dt,j),At=x.insert(()=>bt,":first-child");At.attr("class","basic label-container outer-path");let wt=At.node().getBBox(),kt=x.select(".annotation-group").node().getBBox().height-(q?l/2:0)||0,it=x.select(".label-group").node().getBBox().height-(q?l/2:0)||0,ot=x.select(".members-group").node().getBBox().height-(q?l/2:0)||0,mt=(kt+it+st+l-(st-l-(q?l:c.members.length===0&&c.methods.length===0?-l/2:0)))/2;if(x.selectAll(".text").each((et,_t,Mt)=>{let Vt=f(Mt[_t]),Xt=Vt.attr("transform"),se=0;if(Xt){let he=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Xt);if(he)se=parseFloat(he[2])}let oe=se+st+l-(q?l:c.members.length===0&&c.methods.length===0?-l/2:0);if(Vt.attr("class").includes("methods-group")){let ge=Math.max(ot,d/2);if(tt)oe=Math.max(mt,kt+it+ge+st+d*2+l)+d*2;else oe=kt+it+ge+st+d*4+l}if(c.members.length===0&&c.methods.length===0&&i.class?.hideEmptyMembersBox)if(c.annotations.length>0)oe=se-d;else oe=se;if(!y)oe-=4;let de=at;if(Vt.attr("class").includes("label-group")||Vt.attr("class").includes("annotation-group"))de=-Vt.node()?.getBBox().width/2||0,x.selectAll("text").each(function(ge,he,Gt){if(window.getComputedStyle(Gt[he]).textAnchor==="middle")de=0});Vt.attr("transform",`translate(${de}, ${oe})`)}),c.members.length>0||c.methods.length>0||q){let et=kt+it+st+l,_t=W.line(wt.x,et,wt.x+wt.width,et+0.001,j);x.insert(()=>_t).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",M)}if(q||c.members.length>0||c.methods.length>0){let et=kt+it+ot+st+d*2+l,_t=W.line(wt.x,tt?Math.max(mt,et):et,wt.x+wt.width,(tt?Math.max(mt,et):et)+0.001,j);x.insert(()=>_t).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",M)}if(c.look!=="handDrawn")x.selectAll("path").attr("style",M);if(At.select(":nth-child(2)").attr("style",M),x.selectAll(".divider").select("path").attr("style",M),e.labelStyle)x.selectAll("span").attr("style",e.labelStyle);else x.selectAll("span").attr("style",M);if(!y){let et=RegExp(/color\s*:\s*([^;]*)/),_t=et.exec(M);if(_t){let Mt=_t[0].replace("color","fill");x.selectAll("tspan").attr("style",Mt)}else if(_){let Mt=et.exec(_);if(Mt){let Vt=Mt[0].replace("color","fill");x.selectAll("tspan").attr("style",Vt)}}}return O(e,At),e.intersect=function(et){return T.rect(e,et)},x}t(b0,"classBox");async function k0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let o=e,n=e,h=20,l=20,d="verifyMethod"in e,y=te(e),c=u(),{themeVariables:x}=c,{borderColorArray:b,requirementEdgeLabelBackground:_}=x,v=c.layout==="elk"?"start":"center",M=r.insert("g").attr("class",y).attr("id",e.domId??e.id),q;if(d)q=await si(M,`<<${o.type}>>`,0,e.labelStyle);else q=await si(M,"<<Element>>",0,e.labelStyle);let W=q,j=await si(M,o.name,W,e.labelStyle+"; font-weight: bold;");if(W+=j+l,d){let wt=await si(M,`${o.requirementId?`ID: ${o.requirementId}`:""}`,W,e.labelStyle,v);W+=wt;let kt=await si(M,`${o.text?`Text: ${o.text}`:""}`,W,e.labelStyle,v);W+=kt;let it=await si(M,`${o.risk?`Risk: ${o.risk}`:""}`,W,e.labelStyle,v);W+=it,await si(M,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:""}`,W,e.labelStyle,v)}else{let wt=await si(M,`${n.type?`Type: ${n.type}`:""}`,W,e.labelStyle,v);W+=wt,await si(M,`${n.docRef?`Doc Ref: ${n.docRef}`:""}`,W,e.labelStyle,v)}let K=(M.node()?.getBBox().width??200)+h,J=(M.node()?.getBBox().height??200)+h,tt=-K/2,at=-J/2,st=g.svg(M),dt=Kt(e,{});if(e.look!=="handDrawn")dt.roughness=0,dt.fillStyle="solid";let bt=st.rectangle(tt,at,K,J,dt),At=M.insert(()=>bt,":first-child");if(At.attr("class","basic label-container outer-path").attr("style",s),b?.length){let wt=e.colorIndex??0;M.attr("data-color-id",`color-${wt%b.length}`)}if(M.selectAll(".label").each((wt,kt,it)=>{let ot=f(it[kt]),mt=ot.attr("transform"),et=0,_t=0;if(mt){let se=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(mt);if(se)et=parseFloat(se[1]),_t=parseFloat(se[2])}let Mt=_t-J/2,Vt=tt+h/2;if(kt===0||kt===1)Vt=et;ot.attr("transform",`translate(${Vt}, ${Mt+h})`)}),W>q+j+l){let wt=at+q+j+l,kt;if(e.look==="neo"){let mt=[[tt,wt],[tt+K,wt],[tt+K,wt+0.001],[tt,wt+0.001]];kt=st.polygon(mt,dt)}else kt=st.line(tt,wt,tt+K,wt,dt);M.insert(()=>kt).attr("class","divider")}if(O(e,At),e.intersect=function(wt){return T.rect(e,wt)},s&&e.look!=="handDrawn"&&(_||b?.length))M.selectAll("path").attr("style",s);return M}t(k0,"requirementBox");async function si(r,e,i,s="",o="center"){if(e==="")return 0;let n=r.insert("g").attr("class","label").attr("style",s),h=u(),l=h.htmlLabels??!0,d=await rt(n,$n(Pn(e)),{width:Rt(e,h)+50,classes:"markdown-node-label",useHtmlLabels:l,style:s},h),y;if(!l){let c=d.children[0];for(let x of c.children)if(s)x.setAttribute("style",s);if(o==="start"){c.setAttribute("text-anchor","start");for(let x of c.children)x.setAttribute("text-anchor","start")}y=d.getBBox(),y.height+=6}else{let c=d.children[0],x=f(d);if(o==="start")f(c).style("text-align","left");y=c.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return n.attr("transform",`translate(${-y.width/2},${-y.height/2+i})`),y.height}t(si,"addText");var BS=t((r)=>{switch(r){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function w0(r,e,{config:i}){let{labelStyles:s,nodeStyles:o}=E(e);e.labelStyle=s||"";let n=10,h=e.width;e.width=(e.width??200)-10;let{shapeSvg:l,bbox:d,label:y}=await z(r,e,te(e)),c=e.padding||10,x="",b;if("ticket"in e&&e.ticket&&i?.kanban?.ticketBaseUrl)x=i?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),b=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",x).attr("target","_blank");let _={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1},v,M;if(b)({label:v,bbox:M}=await qo(b,"ticket"in e&&e.ticket||"",_));else({label:v,bbox:M}=await qo(l,"ticket"in e&&e.ticket||"",_));let{label:q,bbox:W}=await qo(l,"assigned"in e&&e.assigned||"",_);e.width=h;let j=10,K=e?.width||0,J=Math.max(M.height,W.height)/2,tt=Math.max(d.height+j*2,e?.height||0)+J,at=-K/2,st=-tt/2;y.attr("transform","translate("+(c-K/2)+", "+(-J-d.height/2)+")"),v.attr("transform","translate("+(c-K/2)+", "+(-J+d.height/2)+")"),q.attr("transform","translate("+(c+K/2-W.width-2*n)+", "+(-J+d.height/2)+")");let dt,{rx:bt,ry:At}=e,{cssStyles:wt}=e;if(e.look==="handDrawn"){let kt=g.svg(l),it=Kt(e,{}),ot=bt||At?kt.path(br(at,st,K,tt,bt||0),it):kt.rectangle(at,st,K,tt,it);dt=l.insert(()=>ot,":first-child"),dt.attr("class","basic label-container").attr("style",wt?wt:null)}else{dt=l.insert("rect",":first-child"),dt.attr("class","basic label-container __APA__").attr("style",o).attr("rx",bt??5).attr("ry",At??5).attr("x",at).attr("y",st).attr("width",K).attr("height",tt);let kt="priority"in e&&e.priority;if(kt){let it=l.append("line"),ot=at+2,mt=st+Math.floor((bt??0)/2),et=st+tt-Math.floor((bt??0)/2);it.attr("x1",ot).attr("y1",mt).attr("x2",ot).attr("y2",et).attr("stroke-width","4").attr("stroke",BS(kt))}}return O(e,dt),e.height=tt,e.intersect=function(kt){return T.rect(e,kt)},l}t(w0,"kanbanItem");async function S0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,halfPadding:h,label:l}=await z(r,e,te(e)),d=n.width+10*h,y=n.height+8*h,c=0.15*d,{cssStyles:x}=e,b=n.width+20,_=n.height+20,v=Math.max(d,b),M=Math.max(y,_);l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`);let q,W=`M0 0
|
|
242
|
+
a${c},${c} 1 0,0 ${v*0.25},${-1*M*0.1}
|
|
243
|
+
a${c},${c} 1 0,0 ${v*0.25},0
|
|
244
|
+
a${c},${c} 1 0,0 ${v*0.25},0
|
|
245
|
+
a${c},${c} 1 0,0 ${v*0.25},${M*0.1}
|
|
246
|
+
|
|
247
|
+
a${c},${c} 1 0,0 ${v*0.15},${M*0.33}
|
|
248
|
+
a${c*0.8},${c*0.8} 1 0,0 0,${M*0.34}
|
|
249
|
+
a${c},${c} 1 0,0 ${-1*v*0.15},${M*0.33}
|
|
250
|
+
|
|
251
|
+
a${c},${c} 1 0,0 ${-1*v*0.25},${M*0.15}
|
|
252
|
+
a${c},${c} 1 0,0 ${-1*v*0.25},0
|
|
253
|
+
a${c},${c} 1 0,0 ${-1*v*0.25},0
|
|
254
|
+
a${c},${c} 1 0,0 ${-1*v*0.25},${-1*M*0.15}
|
|
255
|
+
|
|
256
|
+
a${c},${c} 1 0,0 ${-1*v*0.1},${-1*M*0.33}
|
|
257
|
+
a${c*0.8},${c*0.8} 1 0,0 0,${-1*M*0.34}
|
|
258
|
+
a${c},${c} 1 0,0 ${v*0.1},${-1*M*0.33}
|
|
259
|
+
H0 V0 Z`;if(e.look==="handDrawn"){let j=g.svg(o),K=Kt(e,{}),J=j.path(W,K);q=o.insert(()=>J,":first-child"),q.attr("class","basic label-container").attr("style",De(x))}else q=o.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",W);return q.attr("transform",`translate(${-v/2}, ${-M/2})`),O(e,q),e.calcIntersect=function(j,K){return T.rect(j,K)},e.intersect=function(j){return a.info("Bang intersect",e,j),T.rect(e,j)},o}t(S0,"bang");async function T0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,halfPadding:h,label:l}=await z(r,e,te(e)),d=n.width+2*h,y=n.height+2*h,c=0.15*d,x=0.25*d,b=0.35*d,_=0.2*d,{cssStyles:v}=e,M,q=`M0 0
|
|
260
|
+
a${c},${c} 0 0,1 ${d*0.25},${-1*d*0.1}
|
|
261
|
+
a${b},${b} 1 0,1 ${d*0.4},${-1*d*0.1}
|
|
262
|
+
a${x},${x} 1 0,1 ${d*0.35},${d*0.2}
|
|
263
|
+
|
|
264
|
+
a${c},${c} 1 0,1 ${d*0.15},${y*0.35}
|
|
265
|
+
a${_},${_} 1 0,1 ${-1*d*0.15},${y*0.65}
|
|
266
|
+
|
|
267
|
+
a${x},${c} 1 0,1 ${-1*d*0.25},${d*0.15}
|
|
268
|
+
a${b},${b} 1 0,1 ${-1*d*0.5},0
|
|
269
|
+
a${c},${c} 1 0,1 ${-1*d*0.25},${-1*d*0.15}
|
|
270
|
+
|
|
271
|
+
a${c},${c} 1 0,1 ${-1*d*0.1},${-1*y*0.35}
|
|
272
|
+
a${_},${_} 1 0,1 ${d*0.1},${-1*y*0.65}
|
|
273
|
+
H0 V0 Z`;if(e.look==="handDrawn"){let W=g.svg(o),j=Kt(e,{}),K=W.path(q,j);M=o.insert(()=>K,":first-child"),M.attr("class","basic label-container").attr("style",De(v))}else M=o.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",q);return l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),M.attr("transform",`translate(${-d/2}, ${-y/2})`),O(e,M),e.calcIntersect=function(W,j){return T.rect(W,j)},e.intersect=function(W){return a.info("Cloud intersect",e,W),T.rect(e,W)},o}t(T0,"cloud");async function _0(r,e){let{labelStyles:i,nodeStyles:s}=E(e);e.labelStyle=i;let{shapeSvg:o,bbox:n,halfPadding:h,label:l}=await z(r,e,te(e)),d=n.width+8*h,y=n.height+2*h,c=5,x=e.look==="neo"?`
|
|
274
|
+
M${-d/2} ${y/2-c}
|
|
275
|
+
v${-y+2*c}
|
|
276
|
+
q0,-${c} ${c},-${c}
|
|
277
|
+
h${d-2*c}
|
|
278
|
+
q${c},0 ${c},${c}
|
|
279
|
+
v${y-c}
|
|
280
|
+
H${-d/2}
|
|
281
|
+
Z
|
|
282
|
+
`:`
|
|
283
|
+
M${-d/2} ${y/2-c}
|
|
284
|
+
v${-y+2*c}
|
|
285
|
+
q0,-${c} ${c},-${c}
|
|
286
|
+
h${d-2*c}
|
|
287
|
+
q${c},0 ${c},${c}
|
|
288
|
+
v${y-2*c}
|
|
289
|
+
q0,${c} ${-c},${c}
|
|
290
|
+
h${-(d-2*c)}
|
|
291
|
+
q${-c},0 ${-c},${-c}
|
|
292
|
+
Z
|
|
293
|
+
`;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);let b=o.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",s).attr("d",x);return o.append("line").attr("class","node-line-").attr("x1",-d/2).attr("y1",y/2).attr("x2",d/2).attr("y2",y/2),l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),o.append(()=>l.node()),O(e,b),e.calcIntersect=function(_,v){return T.rect(_,v)},e.intersect=function(_){return T.rect(e,_)},o}t(_0,"defaultMindmapNode");async function B0(r,e){let i={padding:e.padding??0};return id(r,e,i)}t(B0,"mindmapCircle");var vS=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:i0},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:t0},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:o0},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:l0},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:xx},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Cx},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:_x},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:rx},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:cx},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:ax},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:yx},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:id},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:S0},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:T0},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Zx},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Lx},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Rx},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Px},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:d0},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:$x},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:kx},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:u0},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:nx},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:e0},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:n0},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:a0},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Bx},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Fx},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:dx},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:px},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:gx},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:qx},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:m0},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:vx},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:f0},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Nx},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:mx},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:bx},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:g0},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:x0},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Sx},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:p0},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Tx},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:r0},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Vx},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Xx},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:ex},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:fx},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:c0},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:h0},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:y0},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Qx},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Wx}],LS=t(()=>{let e=[...Object.entries({state:s0,choice:lx,note:Kx,composite:hx,rectWithTitle:Jx,labelRect:Dx,block_arrow:sx,collapsedGroup:ox,iconSquare:Ox,iconCircle:Mx,icon:Ax,iconRounded:Ex,imageSquare:Ix,anchor:Jy,kanbanItem:w0,mindmapCircle:B0,defaultMindmapNode:_0,classBox:b0,erBox:sd,requirementBox:k0,usecaseActor:zx,usecaseActorHollow:Yx,usecaseActorAwesome:Hx,usecaseActorIcon:Ux,usecaseBusiness:jx,usecaseEllipse:wx,usecaseJsonTable:Gx}),...vS.flatMap((i)=>[i.shortName,..."aliases"in i?i.aliases:[],..."internalAliases"in i?i.internalAliases:[]].map((o)=>[o,i.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Ti=LS();function Ka(r){return r in Ti}t(Ka,"isValidShape");var vn=t(({flowchart:r})=>{let e=r?.subGraphTitleMargin?.top??0,i=r?.subGraphTitleMargin?.bottom??0,s=e+i;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:i,subGraphTitleTotalMargin:s}},"getSubGraphTitleMargins"),lh=new Map;async function bn(r,e,i){let s,o;if(e.shape==="rect")if(e.rx&&e.ry)e.shape="roundedRect";else e.shape="squareRect";let n=e.shape?Ti[e.shape]:void 0;if(!n)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let h;if(i.config.securityLevel==="sandbox")h="_top";else if(e.linkTarget)h=e.linkTarget||"_blank";s=r.insert("svg:a").attr("xlink:href",e.link).attr("target",h??null),o=await n(s,e,i)}else o=await n(r,e,i),s=o;if(s.attr("data-look",De(e.look)),e.tooltip)o.attr("title",e.tooltip);if(lh.set(e.id,s),e.haveCallback)s.attr("class",s.attr("class")+" clickable");return s}t(bn,"insertNode");var ml=t((r,e)=>{lh.set(e.id,r)},"setNodeElem"),fl=t(()=>{lh.clear()},"clear"),un=t((r)=>{let e=lh.get(r.id);a.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");let i=8,s=r.diff||0;if(r.clusterNode)e.attr("transform","translate("+(r.x+s-r.width/2)+", "+(r.y-r.height/2-i)+")");else e.attr("transform","translate("+r.x+", "+r.y+")");return s},"positionNode");var FS=t(async(r,e)=>{let i=u(),{theme:s,themeVariables:o,handDrawnSeed:n}=i,{clusterBkg:h,clusterBorder:l,borderColorArray:d}=o,y=l,{labelStyles:c,nodeStyles:x,borderStyles:b,backgroundStyles:_}=E(e),v=r.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.domId??e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look);It(v,e.colorIndex,s,d);let M=sn(i.flowchart.htmlLabels),q=e.direction==="LR",W=v.insert("g").attr("class","cluster-label swimlane-label"),j=await rt(W,e.label,{style:e.labelStyle,useHtmlLabels:M,isNode:!0,width:e.width}),K=j.getBBox();if(M){let mt=j.children[0],et=f(j);K=mt.getBoundingClientRect(),et.attr("width",K.width),et.attr("height",K.height)}let J=e.padding??0,tt=e.width<=K.width+J?K.width+J:e.width;if(e.width<=K.width+J)e.diff=(tt-e.width)/2-J;else e.diff=-J;let at=e.height,st=e.y-at/2,dt=e.y+at/2,bt=e.x-tt/2,At=e.swimlaneContentTop!==void 0?e.swimlaneContentTop:st+at/3,wt=q?4:0,kt=K.height+2*wt,it,ot;if(q){let mt=Math.max(kt,K.height+2*wt),et=bt+mt,_t=Math.max(0,tt-mt);if(e.look==="handDrawn"){let Xt=g.svg(v),se=Kt(e,{roughness:0.7,fill:h,stroke:y,seed:n}),oe=Kt(e,{roughness:0.7,fill:"none",stroke:y,seed:n}),de=Xt.rectangle(bt,st,mt,at,se);it=v.insert(()=>de,":first-child").attr("class","swimlane-title");let ge=Xt.rectangle(et,st,_t,at,oe);ot=v.insert(()=>ge,":first-child").attr("class","swimlane-body"),it.select("path:nth-child(2)").attr("style",b.join(";")),it.select("path").attr("style",_.join(";").replace("fill","stroke"))}else it=v.insert("rect",":first-child"),ot=v.insert("rect",":first-child"),it.attr("class","swimlane-title").attr("style",x).attr("x",bt).attr("y",st).attr("width",mt).attr("height",at).attr("fill",h).attr("stroke",y),ot.attr("class","swimlane-body").attr("style",x).attr("x",et).attr("y",st).attr("width",_t).attr("height",at).attr("fill","none").attr("stroke",y);let Mt=bt+mt/2,Vt=e.y;W.attr("transform",`translate(${Mt}, ${Vt}) rotate(-90) translate(${-K.width/2}, ${-K.height/2})`)}else{let mt=Math.max(0,At-st),et=Math.min(kt,mt),_t=st+et,Mt=Math.max(0,dt-_t),Vt=e.x-tt/2;if(e.look==="handDrawn"){let oe=g.svg(v),de=Kt(e,{roughness:0.7,fill:h,stroke:y,fillWeight:3,seed:n}),ge=Kt(e,{roughness:0.7,fill:"none",stroke:y,seed:n}),he=oe.rectangle(Vt,st,tt,et,de);it=v.insert(()=>he,":first-child").attr("class","swimlane-title");let Gt=oe.rectangle(Vt,_t,tt,Mt,ge);ot=v.insert(()=>Gt,":first-child").attr("class","swimlane-body"),it.select("path:nth-child(2)").attr("style",b.join(";")),it.select("path").attr("style",_.join(";").replace("fill","stroke"))}else it=v.insert("rect",":first-child"),ot=v.insert("rect",":first-child"),it.attr("class","swimlane-title").attr("style",x).attr("x",Vt).attr("y",st).attr("width",tt).attr("height",et).attr("fill",h).attr("stroke",y),ot.attr("class","swimlane-body").attr("style",x).attr("x",Vt).attr("y",_t).attr("width",tt).attr("height",Mt).attr("fill","none").attr("stroke",y);let Xt=e.x-K.width/2,se=st+(et-K.height)/2;W.attr("transform",`translate(${Xt}, ${se})`)}if(a.trace("Swimlane data ",e,JSON.stringify(e)),c){let mt=W.select("span");if(mt)mt.attr("style",c)}return e.offsetX=0,e.width=tt,e.height=at,e.offsetY=K.height-J/2,e.intersect=function(mt){return ni(e,mt)},{cluster:v,labelBBox:K}},"swimlane"),v0=t(async(r,e)=>{a.info("Creating subgraph rect for ",e.id,e);let i=u(),{theme:s,themeVariables:o,handDrawnSeed:n}=i,{clusterBkg:h,clusterBorder:l,borderColorArray:d}=o,{labelStyles:y,nodeStyles:c,borderStyles:x,backgroundStyles:b}=E(e),_=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look);It(_,e.colorIndex,s,d);let v=He(i),M=_.insert("g").attr("class","cluster-label "),q;if(e.labelType==="markdown")q=await rt(M,e.label,{style:e.labelStyle,useHtmlLabels:v,isNode:!0,width:e.width});else q=await Hr(M,e.label,e.labelStyle||"",!1,!0);let W=q.getBBox();if(He(i)){let bt=q.children[0],At=f(q);W=bt.getBoundingClientRect(),At.attr("width",W.width),At.attr("height",W.height)}let j=e.width<=W.width+e.padding?W.width+e.padding:e.width;if(e.width<=W.width+e.padding)e.diff=(j-e.width)/2-e.padding;else e.diff=-e.padding;let K=e.height,J=e.x-j/2,tt=e.y-K/2;a.trace("Data ",e,JSON.stringify(e));let at;if(e.look==="handDrawn"){let bt=g.svg(_),At=Kt(e,{roughness:0.7,fill:h,stroke:l,fillWeight:3,seed:n}),wt=bt.path(br(J,tt,j,K,0),At);at=_.insert(()=>(a.debug("Rough node insert CXC",wt),wt),":first-child"),at.select("path:nth-child(2)").attr("style",x.join(";")),at.select("path").attr("style",b.join(";").replace("fill","stroke"))}else at=_.insert("rect",":first-child"),at.attr("style",c).attr("rx",e.rx).attr("ry",e.ry).attr("x",J).attr("y",tt).attr("width",j).attr("height",K);let{subGraphTitleTopMargin:st}=vn(i);if(M.attr("transform",`translate(${e.x-W.width/2}, ${e.y-e.height/2+st})`),y){let bt=M.select("span");if(bt)bt.attr("style",y)}let dt=at.node().getBBox();return e.offsetX=0,e.width=dt.width,e.height=dt.height,e.offsetY=W.height-e.padding/2,e.intersect=function(bt){return ni(e,bt)},{cluster:_,labelBBox:W}},"rect"),AS=t((r,e)=>{let i=r.insert("g").attr("class","note-cluster").attr("id",e.domId),s=i.insert("rect",":first-child"),o=0*e.padding,n=o/2;s.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-n).attr("y",e.y-e.height/2-n).attr("width",e.width+o).attr("height",e.height+o).attr("fill","none");let h=s.node().getBBox();return e.width=h.width,e.height=h.height,e.intersect=function(l){return ni(e,l)},{cluster:i,labelBBox:{width:0,height:0}}},"noteGroup"),MS=t(async(r,e)=>{let i=u(),{theme:s,themeVariables:o,handDrawnSeed:n}=i,{altBackground:h,borderColorArray:l,compositeBackground:d,compositeTitleBackground:y,nodeBorder:c}=o,x=r.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look);It(x,e.colorIndex,s,l);let b=x.insert("g",":first-child"),_=x.insert("g").attr("class","cluster-label"),v=x.append("rect"),M=await Hr(_,e.label,e.labelStyle,void 0,!0),q=M.getBBox();if(He(i)){let wt=M.children[0],kt=f(M);q=wt.getBoundingClientRect(),kt.attr("width",q.width),kt.attr("height",q.height)}let W=0*e.padding,j=W/2,K=(e.width<=q.width+e.padding?q.width+e.padding:e.width)+W;if(e.width<=q.width+e.padding)e.diff=(K-e.width)/2-e.padding;else e.diff=-e.padding;let J=e.height+W,tt=e.height+W-q.height-6,at=e.x-K/2,st=e.y-J/2;e.width=K;let dt=e.y-e.height/2-j+q.height+2,bt;if(e.look==="handDrawn"){let wt=e.cssClasses.includes("statediagram-cluster-alt"),kt=g.svg(x),it=e.rx||e.ry?kt.path(br(at,st,K,J,10),{roughness:0.7,fill:y,fillStyle:"solid",stroke:c,seed:n}):kt.rectangle(at,st,K,J,{seed:n});bt=x.insert(()=>it,":first-child");let ot=kt.rectangle(at,dt,K,tt,{fill:wt?h:d,fillStyle:wt?"hachure":"solid",stroke:c,seed:n});bt=x.insert(()=>it,":first-child"),v=x.insert(()=>ot),bt.attr("class","outer"),v.attr("class","inner")}else{bt=b.insert("rect",":first-child");let wt="outer";bt.attr("class",wt).attr("x",at).attr("y",st).attr("width",K).attr("height",J).attr("data-look",e.look),v.attr("class","inner").attr("x",at).attr("y",dt).attr("width",K).attr("height",tt)}_.attr("transform",`translate(${e.x-q.width/2}, ${st+1-(He(i)?0:3)})`);let At=bt.node().getBBox();return e.height=At.height,e.offsetX=0,e.offsetY=q.height-e.padding/2,e.labelBBox=q,e.intersect=function(wt){return ni(e,wt)},{cluster:x,labelBBox:q}},"roundedWithTitle"),ES=t(async(r,e)=>{a.info("Creating subgraph rect for ",e.id,e);let i=u(),{themeVariables:s,handDrawnSeed:o}=i,{clusterBkg:n,clusterBorder:h}=s,{labelStyles:l,nodeStyles:d,borderStyles:y,backgroundStyles:c}=E(e),x=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),b=He(i),_=x.insert("g").attr("class","cluster-label "),v=await rt(_,e.label,{style:e.labelStyle,useHtmlLabels:b,isNode:!0,width:e.width}),M=v.getBBox();if(He(i)){let st=v.children[0],dt=f(v);M=st.getBoundingClientRect(),dt.attr("width",M.width),dt.attr("height",M.height)}let q=e.width<=M.width+e.padding?M.width+e.padding:e.width;if(e.width<=M.width+e.padding)e.diff=(q-e.width)/2-e.padding;else e.diff=-e.padding;let W=e.height,j=e.x-q/2,K=e.y-W/2;a.trace("Data ",e,JSON.stringify(e));let J;if(e.look==="handDrawn"){let st=g.svg(x),dt=Kt(e,{roughness:0.7,fill:n,stroke:h,fillWeight:4,seed:o}),bt=st.path(br(j,K,q,W,e.rx),dt);J=x.insert(()=>(a.debug("Rough node insert CXC",bt),bt),":first-child"),J.select("path:nth-child(2)").attr("style",y.join(";")),J.select("path").attr("style",c.join(";").replace("fill","stroke"))}else J=x.insert("rect",":first-child"),J.attr("style",d).attr("rx",e.rx).attr("ry",e.ry).attr("x",j).attr("y",K).attr("width",q).attr("height",W);let{subGraphTitleTopMargin:tt}=vn(i);if(_.attr("transform",`translate(${e.x-M.width/2}, ${e.y-e.height/2+tt})`),l){let st=_.select("span");if(st)st.attr("style",l)}let at=J.node().getBBox();return e.offsetX=0,e.width=at.width,e.height=at.height,e.offsetY=M.height-e.padding/2,e.intersect=function(st){return ni(e,st)},{cluster:x,labelBBox:M}},"kanbanSection"),OS=t((r,e)=>{let i=u(),{theme:s,themeVariables:o,handDrawnSeed:n}=i,{altBackground:h,nodeBorder:l,borderColorArray:d}=o,y=r.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look);It(y,e.colorIndex,s,d);let c=y.insert("g",":first-child"),x=0*e.padding,b=e.width+x;e.diff=-e.padding;let _=e.height+x,v=e.x-b/2,M=e.y-_/2;e.width=b;let q;if(e.look==="handDrawn"){let K=g.svg(y).rectangle(v,M,b,_,{fill:h??"#efefef",fillStyle:"solid",roughness:0.5,strokeLineDash:[5],stroke:l,seed:n});q=y.insert(()=>K,":first-child").attr("class","divider")}else{q=c.insert("rect",":first-child");let j="outer";if(e.look==="neo")j="divider";else j="divider";q.attr("class",j).attr("x",v).attr("y",M).attr("width",b).attr("height",_).attr("data-look",e.look)}let W=q.node().getBBox();return e.height=W.height,e.offsetX=0,e.offsetY=0,e.intersect=function(j){return ni(e,j)},{cluster:y,labelBBox:{}}},"divider"),IS=t(async(r,e,i)=>{a.info(`Creating ${i.cssClass} for `,e.id,e);let s=u(),{theme:o,themeVariables:n,handDrawnSeed:h}=s,{borderColorArray:l}=n,{labelStyles:d,borderStyles:y}=E(e),c=r.insert("g").attr("class","cluster "+i.cssClass+" "+e.cssClasses).attr("id",e.domId??e.id).attr("data-look",e.look);It(c,e.colorIndex,o,l);let x=He(s),b=c.insert("g").attr("class","cluster-label"),_={width:0,height:0},v=e.label?.trim();if(v){let tt;if(e.labelType==="markdown")tt=await rt(b,e.label,{style:e.labelStyle,useHtmlLabels:x,isNode:!0,width:e.width});else tt=await Hr(b,e.label,e.labelStyle||"",!1,!0);if(_=tt.getBBox(),x){let at=tt.children[0],st=f(tt);_=at.getBoundingClientRect(),st.attr("width",_.width),st.attr("height",_.height)}}let M=e.width<=_.width+e.padding?_.width+e.padding:e.width;if(e.width<=_.width+e.padding)e.diff=(M-e.width)/2-e.padding;else e.diff=-e.padding;let q=e.height,W=e.x-M/2,j=e.y-q/2,K;if(e.look==="handDrawn"){let tt=g.svg(c),at=Kt(e,{roughness:i.roughness,fill:i.fill,stroke:i.stroke,strokeWidth:i.strokeWidth,seed:h,...i.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...i.strokeDash?{strokeLineDash:i.strokeDash}:{}}),st=tt.path(br(W,j,M,q,i.rx),at);K=c.insert(()=>st,":first-child"),K.select("path:nth-child(2)").attr("style",y.join(";"))}else if(K=c.insert("rect",":first-child"),K.attr("rx",i.rx).attr("ry",i.rx).attr("x",W).attr("y",j).attr("width",M).attr("height",q).attr("fill",i.fill).attr("stroke",i.stroke).attr("stroke-width",i.strokeWidth+"px"),i.strokeDash)K.attr("stroke-dasharray",i.strokeDash.join(", "));if(v){let{subGraphTitleTopMargin:tt}=vn(s);if(b.attr("transform",`translate(${e.x-_.width/2}, ${e.y-e.height/2+tt})`),d){let at=b.select("span");if(at)at.attr("style",d)}}let J=K.node().getBBox();return e.offsetX=0,e.width=J.width,e.height=J.height,e.offsetY=_.height-e.padding/2,e.intersect=function(tt){return ni(e,tt)},{cluster:c,labelBBox:_}},"createContainerGroup"),$S=t(async(r,e)=>{let{themeVariables:i}=u(),s=i.flowContainerStroke||i.secondaryBorderColor;return IS(r,e,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:s,strokeWidth:0.75,roughness:0.7})},"flowGroup"),DS=t((r,e)=>{let i=r.boundaryType||"rect",s=i==="package"?20:r.padding,o=i==="package"?e.height+10:0,n=Math.max(r.width,e.width+s),h=i==="package"?Math.max(r.height,o+r.padding*2):r.height,l=r.x-n/2,d=r.y-h/2;return{boundaryType:i,width:n,height:h,x:l,y:d,bodyY:d+o,bodyHeight:h-o,tabHeight:o,tabWidth:i==="package"?Math.min(n,Math.max(80,e.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),PS=t(async(r,e)=>{a.info("Creating usecase system boundary for ",e.id,e);let i=u(),{theme:s,themeVariables:o,handDrawnSeed:n}=i,{clusterBkg:h,clusterBorder:l,borderColorArray:d}=o,{labelStyles:y,nodeStyles:c}=E(e),{stylesMap:x}=ii(e),b=e.boundaryType||"rect",_=r.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${b} ${e.cssClasses}`).attr("id",typeof e.domId==="string"?e.domId:e.id).attr("data-boundary-type",b).attr("data-look",e.look);It(_,e.colorIndex,s,d);let v=He(i),M=_.insert("g").attr("class","cluster-label system-boundary-title"),q=await rt(M,e.label,{style:y,useHtmlLabels:v,isNode:!0}),W=q.getBBox();if(v){let it=q.children[0],ot=f(q);W=it.getBoundingClientRect(),ot.attr("width",W.width),ot.attr("height",W.height)}let j=DS(e,W),{width:K,height:J,x:tt,y:at,bodyY:st,bodyHeight:dt,tabHeight:bt,tabWidth:At}=j;e.diff=e.width<=W.width+e.padding?(K-e.width)/2-e.padding:-e.padding;let wt=Kt(e,{fill:x.get("fill")||h,stroke:x.get("stroke")||l,strokeWidth:x.get("stroke-width")?.replace("px","")||1,seed:n});if(e.look==="handDrawn"){let it=g.svg(_),ot=it.rectangle(tt,st,K,dt,wt);if(_.insert(()=>ot,":first-child").attr("class","boundary-body label-container"),b==="package"){let mt=it.rectangle(tt,at,At,bt,wt);_.insert(()=>mt,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else if(_.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",c).attr("x",tt).attr("y",st).attr("width",K).attr("height",dt),b==="package")_.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",c).attr("x",tt).attr("y",at).attr("width",At).attr("height",bt);let{subGraphTitleTopMargin:kt}=vn(i);if(b==="package")M.attr("transform",`translate(${tt+(At-W.width)/2}, ${at+(bt-W.height)/2})`);else M.attr("transform",`translate(${e.x-W.width/2}, ${at+kt})`);if(y)M.attr("style",y),M.select("span").attr("style",y);return e.offsetX=0,e.width=K,e.height=J,e.offsetY=W.height-e.padding/2,e.labelBBox=W,e.intersect=function(it){return ni(e,it)},{cluster:_,labelBBox:W}},"usecaseSystemBoundary"),RS=v0,qS={rect:v0,squareRect:RS,roundedWithTitle:MS,noteGroup:AS,divider:OS,kanbanSection:ES,flowGroup:$S,usecaseSystemBoundary:PS,swimlane:FS};var L0=new Map,Xn=t(async(r,e)=>{let i=e.shape||"rect",s=await qS[i](r,e);return L0.set(e.id,s),s},"insertCluster"),hl=t(()=>{L0=new Map},"clear");var rn=t((r,e)=>{if(e)return"translate("+-r.width/2+", "+-r.height/2+")";let i=r.x??0,s=r.y??0;return"translate("+-(i+r.width/2)+", "+-(s+r.height/2)+")"},"computeLabelTransform"),ct={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},F0={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function an(r,e){if(r===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};r=$e(r),e=$e(e);let[i,s]=[r.x,r.y],[o,n]=[e.x,e.y],h=o-i,l=n-s;return{angle:Math.atan(l/h),deltaX:h,deltaY:l}}t(an,"calculateDeltaAndAngle");var $e=t((r)=>{if(Array.isArray(r))return{x:r[0],y:r[1]};return r},"pointTransformer"),NS=t((r)=>({x:t(function(e,i,s){let o=0,n=$e(s[0]).x<$e(s[s.length-1]).x?"left":"right";if(i===0&&Object.hasOwn(ct,r.arrowTypeStart)){let{angle:_,deltaX:v}=an(s[0],s[1]);o=ct[r.arrowTypeStart]*Math.cos(_)*(v>=0?1:-1)}else if(i===s.length-1&&Object.hasOwn(ct,r.arrowTypeEnd)){let{angle:_,deltaX:v}=an(s[s.length-1],s[s.length-2]);o=ct[r.arrowTypeEnd]*Math.cos(_)*(v>=0?1:-1)}let h=Math.abs($e(e).x-$e(s[s.length-1]).x),l=Math.abs($e(e).y-$e(s[s.length-1]).y),d=Math.abs($e(e).x-$e(s[0]).x),y=Math.abs($e(e).y-$e(s[0]).y),c=ct[r.arrowTypeStart],x=ct[r.arrowTypeEnd],b=1;if(h<x&&h>0&&l<x){let _=x+b-h;_*=n==="right"?-1:1,o-=_}if(d<c&&d>0&&y<c){let _=c+b-d;_*=n==="right"?-1:1,o+=_}return $e(e).x+o},"x"),y:t(function(e,i,s){let o=0,n=$e(s[0]).y<$e(s[s.length-1]).y?"down":"up";if(i===0&&Object.hasOwn(ct,r.arrowTypeStart)){let{angle:_,deltaY:v}=an(s[0],s[1]);o=ct[r.arrowTypeStart]*Math.abs(Math.sin(_))*(v>=0?1:-1)}else if(i===s.length-1&&Object.hasOwn(ct,r.arrowTypeEnd)){let{angle:_,deltaY:v}=an(s[s.length-1],s[s.length-2]);o=ct[r.arrowTypeEnd]*Math.abs(Math.sin(_))*(v>=0?1:-1)}let h=Math.abs($e(e).y-$e(s[s.length-1]).y),l=Math.abs($e(e).x-$e(s[s.length-1]).x),d=Math.abs($e(e).y-$e(s[0]).y),y=Math.abs($e(e).x-$e(s[0]).x),c=ct[r.arrowTypeStart],x=ct[r.arrowTypeEnd],b=1;if(h<x&&h>0&&l<x){let _=x+b-h;_*=n==="up"?-1:1,o-=_}if(d<c&&d>0&&y<c){let _=c+b-d;_*=n==="up"?-1:1,o+=_}return $e(e).y+o},"y")}),"getLineFunctionsWithOffset"),WS=t((r,e,i,s,o,n=!1,h)=>{if(e.arrowTypeStart)A0(r,"start",e.arrowTypeStart,i,s,o,n,h);if(e.arrowTypeEnd)A0(r,"end",e.arrowTypeEnd,i,s,o,n,h)},"addEdgeMarkers"),zS={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},HS=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],A0=t((r,e,i,s,o,n,h=!1,l)=>{if(!i||i==="none")return;let d=zS[i],y=d&&HS.includes(d.type);if(!d){a.warn(`Unknown arrow type: ${i}`);return}let c=d.type,_=`${o}_${n}-${c}${e==="start"?"Start":"End"}${h&&y?"-margin":""}`;if(l&&l.trim()!==""){let v=l.replace(/[^\dA-Za-z]/g,"_"),M=`${_}_${v}`;if(!document.getElementById(M)){let q=document.getElementById(_);if(q){let W=q.cloneNode(!0);W.id=M,W.querySelectorAll("path, circle, line").forEach((K)=>{if(K.setAttribute("stroke",l),d.fill)K.setAttribute("fill",l)}),q.parentNode?.appendChild(W)}}r.attr(`marker-${e}`,`url(${s}#${M})`)}else r.attr(`marker-${e}`,`url(${s}#${_})`)},"addEdgeMarker"),YS=t((r)=>typeof r==="string"?r:u()?.flowchart?.curve,"resolveEdgeCurveType"),ra=new Map,ut=new Map,gl=t(()=>{ra.clear(),ut.clear()},"clear"),Us=t((r)=>Boolean(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),on=t((r)=>{if(!r)return"";if(typeof r==="string")return r;return r.reduce((e,i)=>e+";"+i,"")},"getLabelStyles"),xn=t(async(r,e)=>{let i=u(),s=He(i),{labelStyles:o}=E(e);e.labelStyle=o;let n=r.insert("g").attr("class","edgeLabel"),h=n.insert("g").attr("class","label").attr("data-id",e.id),l=e.labelType==="markdown",d=void 0,y=await rt(r,e.label,{style:on(e.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:l,width:l?d:void 0},i);h.node().appendChild(y),a.info("abc82",e,e.labelType);let c,x;if(s){let _=y.children[0],v=f(y);c=await Ei.measure(()=>_.getBoundingClientRect()),x=c,v.attr("width",c.width),v.attr("height",c.height)}else{let _=f(y).select("text").node();await Ei.measure(()=>{if(c=y.getBBox(),_&&typeof _.getBBox==="function")x=_.getBBox();else x=c})}h.attr("transform",rn(x,s)),ra.set(e.id,n),e.width=c.width,e.height=c.height;let b;if(e.startLabelLeft){let _=r.insert("g").attr("class","edgeTerminals"),v=_.insert("g").attr("class","inner"),M=await Hr(v,e.startLabelLeft,on(e.labelStyle)||"",!1,!1);b=M;let q=M.getBBox();if(s){let W=M.children[0],j=f(M);q=W.getBoundingClientRect(),j.attr("width",q.width),j.attr("height",q.height)}if(v.attr("transform",rn(q,s)),!ut.get(e.id))ut.set(e.id,{});ut.get(e.id).startLeft=_,hn(b,e.startLabelLeft,q),nn(e,"startLeft",q)}if(e.startLabelRight){let _=r.insert("g").attr("class","edgeTerminals"),v=_.insert("g").attr("class","inner"),M=await Hr(v,e.startLabelRight,on(e.labelStyle)||"",!1,!1);b=M;let q=M.getBBox();if(s){let W=M.children[0],j=f(M);q=W.getBoundingClientRect(),j.attr("width",q.width),j.attr("height",q.height)}if(v.attr("transform",rn(q,s)),!ut.get(e.id))ut.set(e.id,{});ut.get(e.id).startRight=_,hn(b,e.startLabelRight,q),nn(e,"startRight",q)}if(e.endLabelLeft){let _=r.insert("g").attr("class","edgeTerminals"),v=_.insert("g").attr("class","inner"),M=await Hr(v,e.endLabelLeft,on(e.labelStyle)||"",!1,!1);b=M;let q=M.getBBox();if(s){let W=M.children[0],j=f(M);q=W.getBoundingClientRect(),j.attr("width",q.width),j.attr("height",q.height)}if(v.attr("transform",rn(q,s)),!ut.get(e.id))ut.set(e.id,{});ut.get(e.id).endLeft=_,hn(b,e.endLabelLeft,q),nn(e,"endLeft",q)}if(e.endLabelRight){let _=r.insert("g").attr("class","edgeTerminals"),v=_.insert("g").attr("class","inner"),M=await Hr(v,e.endLabelRight,on(e.labelStyle)||"",!1,!1);b=M;let q=M.getBBox();if(s){let W=M.children[0],j=f(M);q=W.getBoundingClientRect(),j.attr("width",q.width),j.attr("height",q.height)}if(v.attr("transform",rn(q,s)),!ut.get(e.id))ut.set(e.id,{});ut.get(e.id).endRight=_,hn(b,e.endLabelRight,q),nn(e,"endRight",q)}return y},"insertEdgeLabel");function nn(r,e,i){r.terminalLabelSizes??={},r.terminalLabelSizes[e]={width:i.width,height:i.height}}t(nn,"recordTerminalLabelSize");function hn(r,e,i){if(He(u())&&r)r.style.width=Math.max(e.length*9,i.width)+"px",r.style.height=i.height+"px"}t(hn,"setTerminalWidth");var js=t((r,e)=>{let{x:i,y:s}=r;if(e?.updatedPath){let o=F.calcLabelPosition(e.updatedPath);if(e.originalPath){let n=F.calcLabelPosition(e.originalPath);i=r.x+(o.x-n.x),s=r.y+(o.y-n.y)}else i=o.x,s=o.y}return{x:i,y:s}},"resolveEdgeLabelPosition"),aa=t((r,e)=>{a.debug("Moving label abc88 ",r.id,r.label,ra.get(r.id),e);let i=u(),{subGraphTitleTotalMargin:s}=vn(i);if(r.label){let n=ra.get(r.id),{x:h,y:l}=js(r,e);a.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",h,",",l,") abc88"),n.attr("transform",`translate(${h}, ${l+s/2})`)}let o=e.updatedPath?e.updatedPath:e.originalPath;if(r.startLabelLeft){let n=ut.get(r.id).startLeft,{x:h,y:l}=r;if(o){let d=F.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",o);h=d.x,l=d.y}n.attr("transform",`translate(${h}, ${l})`)}if(r.startLabelRight){let n=ut.get(r.id).startRight,{x:h,y:l}=r;if(o){let d=F.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",o);h=d.x,l=d.y}n.attr("transform",`translate(${h}, ${l})`)}if(r.endLabelLeft){let n=ut.get(r.id).endLeft,{x:h,y:l}=r;if(o){let d=F.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",o);h=d.x,l=d.y}n.attr("transform",`translate(${h}, ${l})`)}if(r.endLabelRight){let n=ut.get(r.id).endRight,{x:h,y:l}=r;if(o){let d=F.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",o);h=d.x,l=d.y}n.attr("transform",`translate(${h}, ${l})`)}},"positionEdgeLabel"),US=t((r,e)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(e))return e;if(e.length!==2)return e;let[i,s]=e,o=Math.abs(s.x-i.x),n=Math.abs(s.y-i.y);if(o<0.001||n<0.001)return e;if(n>=o)return[i,{x:i.x,y:s.y},s];return[i,{x:s.x,y:i.y},s]},"orthogonalizeToLabelClippedPoints"),jS=t((r,e)=>{let{x:i,y:s}=r,o=Math.abs(e.x-i),n=Math.abs(e.y-s),h=r.width/2,l=r.height/2;return o>=h||n>=l},"outsideNode"),GS=t((r,e,i)=>{a.debug(`intersection calc abc89:
|
|
294
|
+
outsidePoint: ${JSON.stringify(e)}
|
|
295
|
+
insidePoint : ${JSON.stringify(i)}
|
|
296
|
+
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let{x:s,y:o}=r,n=Math.abs(s-i.x),h=r.width/2,l=i.x<e.x?h-n:h+n,d=r.height/2,y=Math.abs(e.y-i.y),c=Math.abs(e.x-i.x);if(Math.abs(o-e.y)*h>Math.abs(s-e.x)*d){let x=i.y<e.y?e.y-d-o:o-d-e.y;l=c*x/y;let b={x:i.x<e.x?i.x+l:i.x-c+l,y:i.y<e.y?i.y+y-x:i.y-y+x};if(l===0)b.x=e.x,b.y=e.y;if(c===0)b.x=e.x;if(y===0)b.y=e.y;return a.debug(`abc89 top/bottom calc, Q ${y}, q ${x}, R ${c}, r ${l}`,b),b}else{if(i.x<e.x)l=e.x-h-s;else l=s-h-e.x;let x=y*l/c,b=i.x<e.x?i.x+c-l:i.x-c+l,_=i.y<e.y?i.y+x:i.y-x;if(a.debug(`sides calc abc89, Q ${y}, q ${x}, R ${c}, r ${l}`,{_x:b,_y:_}),l===0)b=e.x,_=e.y;if(c===0)b=e.x;if(y===0)_=e.y;return{x:b,y:_}}},"intersection"),M0=t((r,e)=>{a.warn("abc88 cutPathAtIntersect",r,e);let i=[],s=r[0],o=!1;return r.forEach((n)=>{if(a.info("abc88 checking point",n,e),!jS(e,n)&&!o){let h=GS(e,s,n);a.debug("abc88 inside",n,s,h),a.debug("abc88 intersection",h,e);let l=!1;if(i.forEach((d)=>{l=l||d.x===h.x&&d.y===h.y}),!i.some((d)=>d.x===h.x&&d.y===h.y))i.push(h);else a.warn("abc88 no intersect",h,i);o=!0}else if(a.warn("abc88 outside",n,s),s=n,!o)i.push(n)}),a.debug("returning points",i),i},"cutPathAtIntersect");function O0(r){let e=[],i=[];for(let s=1;s<r.length-1;s++){let o=r[s-1],n=r[s],h=r[s+1];if(o.x===n.x&&n.y===h.y&&Math.abs(n.x-h.x)>5&&Math.abs(n.y-o.y)>5)e.push(n),i.push(s);else if(o.y===n.y&&n.x===h.x&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-h.y)>5)e.push(n),i.push(s)}return{cornerPoints:e,cornerPointPositions:i}}t(O0,"extractCornerPoints");var E0=t(function(r,e,i){let s=e.x-r.x,o=e.y-r.y,n=Math.sqrt(s*s+o*o),h=i/n;return{x:e.x-h*s,y:e.y-h*o}},"findAdjacentPoint"),XS=t(function(r){let{cornerPointPositions:e}=O0(r),i=[];for(let s=0;s<r.length;s++)if(e.includes(s)){let o=r[s-1],n=r[s+1],h=r[s],l=E0(o,h,5),d=E0(n,h,5),y=d.x-l.x,c=d.y-l.y;i.push(l);let x=Math.sqrt(2)*2,b={x:h.x,y:h.y};if(Math.abs(n.x-o.x)>10&&Math.abs(n.y-o.y)>=10){a.debug("Corner point fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));let _=5;if(h.x===l.x)b={x:y<0?l.x-_+x:l.x+_-x,y:c<0?l.y-x:l.y+x};else b={x:y<0?l.x-x:l.x+x,y:c<0?l.y-_+x:l.y+_-x}}else a.debug("Corner point skipping fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));i.push(b,d)}else i.push(r[s]);return i},"fixCorners"),VS=t((r,e,i)=>{let s=r-e-i,o=2,n=2,h=4,l=Math.floor(s/4),d=Number.isFinite(l)?Math.max(0,l):0,y=Array(d).fill("2 2").join(" ");return`0 ${e} ${y} ${i}`},"generateDashArray"),Kn=t(function(r,e,i,s,o,n,h,l=!1,d=void 0){if(!h)throw Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:y,layout:c}=u(),x=d??c,b=e.points,_=!1,v=o;var M=n;let q=[];for(let Xt in e.cssCompiledStyles){if(_i(Xt))continue;q.push(e.cssCompiledStyles[Xt])}if(x==="swimlane"){if(!l&&M.intersect&&v.intersect&&Array.isArray(b)&&b.length>=2)if(b.length===2)b=[v.intersect(b[0]),M.intersect(b[1])];else{let Xt=b.slice(1,-1),se=Xt[0],oe=Xt[Xt.length-1],de=0.5,ge=Math.abs(b[b.length-1].x-oe.x)<0.5&&Math.abs(b[b.length-1].y-oe.y)<0.5,he=v.intersect(se),Gt=ge?oe:M.intersect(oe),re=Math.abs(Gt.x-oe.x)<0.5&&Math.abs(Gt.y-oe.y)<0.5,ne=Math.abs(he.x-se.x)<0.5&&Math.abs(he.y-se.y)<0.5?[]:[he],Ae=re?[]:[Gt];b=[...ne,...Xt,...Ae]}b=US(e,b)}else if(M.intersect&&v.intersect&&!l)b=b.slice(1,e.points.length-1),b.unshift(v.intersect(b[0])),b.push(M.intersect(b[b.length-1]));let W=btoa(JSON.stringify(b));if(e.toCluster)a.info("to cluster abc88",i.get(e.toCluster)),b=M0(e.points,i.get(e.toCluster).node),_=!0;if(e.fromCluster)a.debug("from cluster abc88",i.get(e.fromCluster),JSON.stringify(b,null,2)),b=M0(b.reverse(),i.get(e.fromCluster).node).reverse(),_=!0;let j=b.filter((Xt)=>!Number.isNaN(Xt.y)),K=YS(e.curve);if(K!=="rounded")j=XS(j);let J=ri;switch(K){case"linear":J=ri;break;case"basis":J=eo;break;case"cardinal":J=wa;break;case"bumpX":J=ta;break;case"bumpY":J=ba;break;case"catmullRom":J=Ta;break;case"monotoneX":J=_a;break;case"monotoneY":J=va;break;case"natural":J=as;break;case"step":J=ns;break;case"stepAfter":J=Aa;break;case"stepBefore":J=La;break;case"rounded":J=ri;break;default:J=eo}let{x:tt,y:at}=NS(e),st=ea().x(tt).y(at).curve(J),dt;switch(e.thickness){case"normal":dt="edge-thickness-normal";break;case"thick":dt="edge-thickness-thick";break;case"invisible":dt="edge-thickness-invisible";break;default:dt="edge-thickness-normal"}switch(e.pattern){case"solid":dt+=" edge-pattern-solid";break;case"dotted":dt+=" edge-pattern-dotted";break;case"dashed":dt+=" edge-pattern-dashed";break;default:dt+=" edge-pattern-solid"}let bt,At=K==="rounded"?I0($0(j,e),5):st(j),wt=Array.isArray(e.style)?e.style:[e.style],kt=wt.find((Xt)=>Xt?.startsWith("stroke:")),it="";if(e.animate)it="edge-animation-fast";if(e.animation)it="edge-animation-"+e.animation;let ot=!1;if(e.look==="handDrawn"){let Xt=g.svg(r);Object.assign([],j);let se=Xt.path(At,{roughness:0.3,seed:y});dt+=" transition",bt=f(se).select("path").attr("id",`${h}-${e.id}`).attr("class"," "+dt+(e.classes?" "+e.classes:"")+(it?" "+it:"")).attr("style",wt?wt.reduce((de,ge)=>de+";"+ge,""):"");let oe=bt.attr("d");bt.attr("d",oe),r.node().appendChild(bt.node())}else{let Xt=q.join(";"),se=wt?wt.reduce((re,ae)=>re+ae+";",""):"",oe=(Xt?Xt+";"+se+";":se)+";"+(wt?wt.reduce((re,ae)=>re+";"+ae,""):"");bt=r.append("path").attr("d",At).attr("id",`${h}-${e.id}`).attr("class"," "+dt+(e.classes?" "+e.classes:"")+(it?" "+it:"")).attr("style",oe),kt=oe.match(/stroke:([^;]+)/)?.[1],ot=e.animate===!0||!!e.animation||Xt.includes("animation");let de=bt.node(),ge=typeof de.getTotalLength==="function"?de.getTotalLength():0,he=F0[e.arrowTypeStart]||0,Gt=F0[e.arrowTypeEnd]||0;if(e.look==="neo"&&!ot){let ae=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?VS(ge,he,Gt):`0 ${he} ${ge-he-Gt} ${Gt}`}; stroke-dashoffset: 0;`;bt.attr("style",ae+bt.attr("style"))}}if(bt.attr("data-edge",!0),bt.attr("data-et","edge"),bt.attr("data-id",e.id),bt.attr("data-points",W),bt.attr("data-look",De(e.look)),e.showPoints)j.forEach((Xt)=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",Xt.x).attr("cy",Xt.y)});let mt="";if(u().flowchart.arrowMarkerAbsolute||u().state.arrowMarkerAbsolute)mt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,mt=mt.replace(/\(/g,"\\(").replace(/\)/g,"\\)");a.info("arrowTypeStart",e.arrowTypeStart),a.info("arrowTypeEnd",e.arrowTypeEnd);let et=!ot&&e?.look==="neo";WS(bt,e,mt,h,s,et,kt);let _t=Math.floor(b.length/2),Mt=b[_t];if(!F.isLabelCoordinateInPath(Mt,bt.attr("d")))_=!0;let Vt={};if(_)Vt.updatedPath=b;return Vt.originalPath=e.points,Vt},"insertEdge");function I0(r,e){if(r.length<2)return"";let i="",s=r.length,o=0.00001;for(let n=0;n<s;n++){let h=r[n],l=r[n-1],d=r[n+1];if(n===0)i+=`M${h.x},${h.y}`;else if(n===s-1)i+=`L${h.x},${h.y}`;else{let y=h.x-l.x,c=h.y-l.y,x=d.x-h.x,b=d.y-h.y,_=Math.hypot(y,c),v=Math.hypot(x,b);if(_<o||v<o){i+=`L${h.x},${h.y}`;continue}let M=y/_,q=c/_,W=x/v,j=b/v,K=M*W+q*j,J=Math.max(-1,Math.min(1,K)),tt=Math.acos(J);if(tt<o||Math.abs(Math.PI-tt)<o){i+=`L${h.x},${h.y}`;continue}let at=Math.min(e/Math.sin(tt/2),_/2,v/2),st=h.x-M*at,dt=h.y-q*at,bt=h.x+W*at,At=h.y+j*at;i+=`L${st},${dt}`,i+=`Q${h.x},${h.y} ${bt},${At}`}}return i}t(I0,"generateRoundedPath");function ad(r,e){if(!r||!e)return{angle:0,deltaX:0,deltaY:0};let i=e.x-r.x,s=e.y-r.y;return{angle:Math.atan2(s,i),deltaX:i,deltaY:s}}t(ad,"calculateDeltaAndAngle");function $0(r,e){let i=r.map((o)=>({...o}));if(r.length>=2&&ct[e.arrowTypeStart]){let o=ct[e.arrowTypeStart],n=r[0],h=r[1],{angle:l}=ad(n,h),d=o*Math.cos(l),y=o*Math.sin(l);i[0].x=n.x+d,i[0].y=n.y+y}let s=r.length;if(s>=2&&ct[e.arrowTypeEnd]){let o=ct[e.arrowTypeEnd],n=r[s-1],h=r[s-2],{angle:l}=ad(h,n),d=o*Math.cos(l),y=o*Math.sin(l);i[s-1].x=n.x-d,i[s-1].y=n.y-y}return i}t($0,"applyMarkerOffsetsToPoints");var KS=t((r,e,i,s)=>{e.forEach((o)=>{bT[o](r,i,s)})},"insertMarkers"),ZS=t((r,e,i)=>{a.trace("Making markers for ",i),r.append("defs").append("marker").attr("id",i+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",i+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",i+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),QS=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),JS=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),tT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),eT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",i+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",i+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",i+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),rT=t((r,e,i)=>{r.append("marker").attr("id",i+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),iT=t((r,e,i)=>{r.append("marker").attr("id",i+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),oT=t((r,e,i)=>{r.append("marker").attr("id",i+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",i+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),sT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),aT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{transitionColor:n}=o;r.append("defs").append("marker").attr("id",i+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",i+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),nT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",i+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),lT=t((r,e,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),s.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),hT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",i+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),cT=t((r,e,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),uT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",i+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",i+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),fT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n,mainBkg:h}=o,l=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",h??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),l.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let d=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");d.append("circle").attr("fill",h??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),d.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),dT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",i+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",i+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),pT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n,mainBkg:h}=o,l=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",h??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),l.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let d=r.append("defs").append("marker").attr("id",i+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");d.append("circle").attr("fill",h??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),d.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),gT=t((r,e,i)=>{r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
297
|
+
L20,10
|
|
298
|
+
M20,10
|
|
299
|
+
L0,20`)},"requirement_arrow"),mT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
300
|
+
L20,10
|
|
301
|
+
M20,10
|
|
302
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),yT=t((r,e,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),xT=t((r,e,i)=>{let s=S(),{themeVariables:o}=s,{strokeWidth:n}=o,h=r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");h.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),h.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),h.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),h.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),CT=t((r,e,i)=>{r.append("marker").attr("id",i+"_"+e+"-hierarchyEnd").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",i+"_"+e+"-hierarchyStart").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),bT={extension:ZS,composition:QS,aggregation:JS,dependency:tT,lollipop:eT,point:rT,circle:iT,cross:oT,barb:sT,barbNeo:aT,hierarchy:CT,only_one:nT,zero_or_one:lT,one_or_more:hT,zero_or_more:cT,only_one_neo:uT,zero_or_one_neo:fT,one_or_more_neo:dT,zero_or_more_neo:pT,requirement_arrow:gT,requirement_contains:yT,requirement_arrow_neo:mT,requirement_contains_neo:xT},ia=KS;var kT={common:k,getConfig:S,insertCluster:Xn,insertEdge:Kn,insertEdgeLabel:xn,insertMarkers:ia,insertNode:bn,interpolateToCurve:Wl,labelHelper:z,log:a,positionEdgeLabel:aa},wT=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],fn=Object.create(null),qs=t((r)=>{for(let e of r)fn[e.name]=e},"registerLayoutLoaders"),ST=t(()=>{let r=t(async()=>await (C("z0a8cnq8"),import("./chunk-z0a8cnq8.js")),"loader");return[{name:"elk",loader:r,algorithm:"elk.layered"},...wT.map((e)=>({name:e,loader:r,algorithm:e}))]},"elkLayoutLoaders"),TT=t(()=>{qs([{name:"dagre",loader:t(async()=>await (C("hby0hkv4"),import("./chunk-hby0hkv4.js")),"loader")},{name:"swimlane",loader:t(async()=>await (C("ey0zwvbx"),import("./chunk-ey0zwvbx.js")),"loader")},{name:"cose-bilkent",loader:t(async()=>await (C("nwxjdetb"),import("./chunk-nwxjdetb.js")),"loader")},...ST()])},"registerDefaultLayoutLoaders");TT();var Fe=t(async(r,e)=>{if(!Object.hasOwn(fn,r.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);if(r.diagramId)for(let o of r.nodes){let n=o.domId||o.id;o.domId=`${r.diagramId}-${n}`}let i=fn[r.layoutAlgorithm],s=await i.loader();return yo(e,r.config),s.render(r,e,kT,{algorithm:i.algorithm})},"render"),nd="dagre",ze=t((r="",{fallback:e=nd}={})=>{if(Object.hasOwn(fn,r))return r;for(let i of[e,nd])if(Object.hasOwn(fn,i))return a.warn(`Layout algorithm ${r} is not registered. Using ${i} as fallback.`),i;throw Error(`Neither layout algorithm ${r}, ${e}, nor ${nd} is registered.`)},"getRegisteredLayoutAlgorithm");
|
|
303
|
+
export{t,Hn,so,a,hi,Y,lt,Le,ce,$a,p,m,nt,Ts,Es,Rr,Ba,lo,el,Ce,Ge,Yn,B,As,ir,sn,co,tl,nl,rl,Rs,Ls,S,al,gi,il,He,Zr,U,Is,Zn,Me,Fa,za,k,G,ln,uo,ol,po,A,R,I,L,D,P,N,u,or,Lr,Ua,yi,mo,f,Ir,ja,Dr,Nn,Ds,Ct,qa,sl,sr,Xr,gt,Va,_e,Ns,St,Nr,ll,fo,Mn,Kr,yt,Wa,bi,Qr,cl,Ms,Jr,ul,xi,ho,go,ea,ta,Q,Ut,jt,yo,_i,E,Ps,Mr,qt,na,Pr,lr,vo,Ga,Ha,Ya,Za,bo,xo,_o,wo,ko,Co,So,To,Eo,Ao,Ro,Lo,Io,Do,No,Mo,Po,cr,Xa,wi,Oo,Os,dl,$o,$s,Bs,Or,ki,Rt,Ci,Bo,Fs,Tt,X,F,pl,Pn,vt,Fo,zo,zs,rt,Si,Ie,Te,Ee,cn,Lt,It,g,z,O,T,Ti,Ka,vn,bn,ml,fl,un,Xn,hl,ct,ra,ut,gl,Us,xn,js,aa,Kn,ia,qs,Fe,ze};
|