@bkm016/basalt 0.1.37 → 0.1.38
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-02kyx0dt.js +3 -0
- package/chunk-19nje7ny.js +5 -0
- package/chunk-1rt7fvft.js +51 -0
- package/chunk-23qfxx3v.js +3 -0
- package/chunk-28dpfw91.js +20 -0
- package/chunk-2bz3h7k7.js +18 -0
- package/chunk-2etdp9zt.js +3 -0
- package/chunk-3bc88p88.js +2 -0
- package/chunk-3bqs901a.js +3 -0
- package/chunk-4kg028qe.js +3 -0
- package/chunk-4ry04733.js +2 -0
- package/chunk-4zvzk6m5.js +25 -0
- package/chunk-5ngmwd2s.js +3 -0
- package/chunk-5yzts6r0.js +3 -0
- package/chunk-6bvjnr88.js +3 -0
- package/chunk-76jjaj1p.js +7 -0
- package/chunk-7ph88zkj.js +3 -0
- package/chunk-7t89zqqx.js +8 -0
- package/chunk-80vdhw6b.js +2 -0
- package/chunk-89aqq5v0.js +59 -0
- package/chunk-8bcc3rqc.js +2 -0
- package/chunk-97531m3c.js +2 -0
- package/chunk-9b4ssdy4.js +3 -0
- package/chunk-9map5c1b.js +12 -0
- package/chunk-a0ycrvgz.js +2 -0
- package/chunk-ah2ttnaa.js +2 -0
- package/chunk-awe58cxg.js +3175 -0
- package/chunk-b3ss17r8.js +547 -0
- package/chunk-b5ph3ffy.js +39 -0
- package/chunk-cz9r99b6.js +2 -0
- package/chunk-d57kcznk.js +16 -0
- package/chunk-etf8mj2z.js +2 -0
- package/chunk-fkgx9eab.js +2 -0
- package/chunk-fmvs5wd0.js +11 -0
- package/chunk-fpksd95h.js +3 -0
- package/chunk-hj1zcq3p.js +13 -0
- package/chunk-jaat2z8t.js +117 -0
- package/chunk-jkc887x8.js +2 -0
- package/chunk-jnas3anm.js +3 -0
- package/chunk-k3p05x7q.js +2 -0
- package/chunk-k6fqtjt8.js +3 -0
- package/chunk-kh4b25x0.js +12 -0
- package/chunk-kn8p9hm4.js +3 -0
- package/chunk-kxznfjhk.js +2 -0
- package/chunk-ma4nhnnj.js +3 -0
- package/chunk-n09zsaws.js +60 -0
- package/chunk-nb7c0e4a.js +10 -0
- package/chunk-pvbaf50c.js +7 -0
- package/chunk-pzg6f8rv.js +3 -0
- package/chunk-q7scf6rq.js +5 -0
- package/chunk-qc0d97yy.js +9 -0
- package/chunk-qn316bye.js +3 -0
- package/chunk-rapgtezp.js +3 -0
- package/chunk-rbz68jdh.js +2 -0
- package/chunk-rkq3zqph.js +3 -0
- package/chunk-rva3kxc4.js +3 -0
- package/chunk-s8ce8wwb.js +5 -0
- package/chunk-srmxyfvj.js +4 -0
- package/chunk-ss48r7hh.js +2 -0
- package/chunk-trf8d8md.js +2 -0
- package/chunk-v312dzv1.js +2 -0
- package/chunk-v9pc3ad7.js +3 -0
- package/chunk-vq3b921g.js +2 -0
- package/chunk-w8arnzsm.js +10 -0
- package/chunk-wa3w6q66.js +2 -0
- package/chunk-wyaep3eb.js +103 -0
- package/chunk-x31xqemq.js +3 -0
- package/chunk-x4nt43pv.js +2 -0
- package/chunk-xjr4j102.js +31 -0
- package/chunk-xtzxv389.js +3 -0
- package/chunk-y91ea95f.js +7 -0
- package/chunk-yyeq63ns.js +2 -0
- package/chunk-z1hbxv39.js +2 -0
- package/chunk-zej3kgxg.js +5 -0
- package/chunk-zkhn196x.js +25 -0
- package/chunk-zztar24h.js +8 -0
- package/compiled.js +9 -9
- package/package.json +1 -1
- package/ui-test-worker.js +34 -33
- package/web/chunk-0qmwgbg8.js +1 -0
- package/web/chunk-0qmwgbg8.js.br +0 -0
- package/web/chunk-0qmwgbg8.js.gz +0 -0
- package/web/chunk-0vavwwh2.js +2 -0
- package/web/chunk-0vavwwh2.js.br +0 -0
- package/web/chunk-0vavwwh2.js.gz +0 -0
- package/web/chunk-0vmbj6hc.js +89 -0
- package/web/chunk-0vmbj6hc.js.br +0 -0
- package/web/chunk-0vmbj6hc.js.gz +0 -0
- package/web/chunk-17qjx34e.js +1 -0
- package/web/chunk-17qjx34e.js.br +0 -0
- package/web/chunk-17qjx34e.js.gz +0 -0
- package/web/chunk-1vewct29.js +78 -0
- package/web/chunk-1vewct29.js.br +0 -0
- package/web/chunk-1vewct29.js.gz +0 -0
- package/web/chunk-2hz3atj2.js +1 -0
- package/web/chunk-2hz3atj2.js.br +0 -0
- package/web/chunk-2hz3atj2.js.gz +0 -0
- package/web/chunk-3c66z204.js +1 -0
- package/web/chunk-3c66z204.js.br +0 -0
- package/web/chunk-3c66z204.js.gz +0 -0
- package/web/chunk-3ctk7p8b.js +200 -0
- package/web/chunk-3ctk7p8b.js.br +0 -0
- package/web/chunk-3ctk7p8b.js.gz +0 -0
- package/web/chunk-3rnbw3ds.js +2 -0
- package/web/chunk-3rnbw3ds.js.br +0 -0
- package/web/chunk-3rnbw3ds.js.gz +0 -0
- package/web/chunk-3t6c1rn7.js +2 -0
- package/web/chunk-3t6c1rn7.js.br +0 -0
- package/web/chunk-3t6c1rn7.js.gz +0 -0
- package/web/chunk-48f75wpj.js +1 -0
- package/web/chunk-48f75wpj.js.br +0 -0
- package/web/chunk-48f75wpj.js.gz +0 -0
- package/web/chunk-4sr7g3z6.js +70 -0
- package/web/chunk-4sr7g3z6.js.br +0 -0
- package/web/chunk-4sr7g3z6.js.gz +0 -0
- package/web/chunk-54kxhs8a.js +1 -0
- package/web/chunk-54kxhs8a.js.br +0 -0
- package/web/chunk-54kxhs8a.js.gz +0 -0
- package/web/chunk-5cbw7v9g.js +324 -0
- package/web/chunk-5cbw7v9g.js.br +0 -0
- package/web/chunk-5cbw7v9g.js.gz +0 -0
- package/web/chunk-5kxhdpsw.js +99 -0
- package/web/chunk-5kxhdpsw.js.br +0 -0
- package/web/chunk-5kxhdpsw.js.gz +0 -0
- package/web/chunk-5s16b1h5.js +2 -0
- package/web/chunk-5s16b1h5.js.br +0 -0
- package/web/chunk-5s16b1h5.js.gz +0 -0
- package/web/chunk-5z2f4vfh.js +1 -0
- package/web/chunk-5z2f4vfh.js.br +0 -0
- package/web/chunk-5z2f4vfh.js.gz +0 -0
- package/web/chunk-664zwasq.js +217 -0
- package/web/chunk-664zwasq.js.br +0 -0
- package/web/chunk-664zwasq.js.gz +0 -0
- package/web/chunk-6hgxmv17.js +1 -0
- package/web/chunk-6hgxmv17.js.br +0 -0
- package/web/chunk-6hgxmv17.js.gz +0 -0
- package/web/chunk-6wesgn4j.js +332 -0
- package/web/chunk-6wesgn4j.js.br +0 -0
- package/web/chunk-6wesgn4j.js.gz +0 -0
- package/web/chunk-6xnzhe0e.js +12 -0
- package/web/chunk-6xnzhe0e.js.br +0 -0
- package/web/chunk-6xnzhe0e.js.gz +0 -0
- package/web/chunk-73effb3e.js +1 -0
- package/web/chunk-73effb3e.js.br +0 -0
- package/web/chunk-73effb3e.js.gz +0 -0
- package/web/chunk-744jv40n.js +7 -0
- package/web/chunk-744jv40n.js.br +0 -0
- package/web/chunk-744jv40n.js.gz +0 -0
- package/web/chunk-74x21fpx.js +23 -0
- package/web/chunk-74x21fpx.js.br +0 -0
- package/web/chunk-74x21fpx.js.gz +0 -0
- package/web/chunk-75jp6b07.js +1 -0
- package/web/chunk-75jp6b07.js.br +0 -0
- package/web/chunk-75jp6b07.js.gz +0 -0
- package/web/chunk-776d411a.js +1143 -0
- package/web/chunk-776d411a.js.br +0 -0
- package/web/chunk-776d411a.js.gz +0 -0
- package/web/chunk-77fdf0t8.js +1 -0
- package/web/chunk-77fdf0t8.js.br +0 -0
- package/web/chunk-77fdf0t8.js.gz +0 -0
- package/web/chunk-85cyf9df.js +1 -0
- package/web/chunk-85cyf9df.js.br +0 -0
- package/web/chunk-85cyf9df.js.gz +0 -0
- package/web/chunk-8kxc78xp.js +4 -0
- package/web/chunk-8kxc78xp.js.br +0 -0
- package/web/chunk-8kxc78xp.js.gz +0 -0
- package/web/chunk-9j7v0e4v.js +2 -0
- package/web/chunk-9j7v0e4v.js.br +0 -0
- package/web/chunk-9j7v0e4v.js.gz +0 -0
- package/web/chunk-9kfxbebp.js +2 -0
- package/web/chunk-9kfxbebp.js.br +1 -0
- package/web/chunk-9kfxbebp.js.gz +0 -0
- package/web/chunk-b1x8wmyp.js +1 -0
- package/web/chunk-b1x8wmyp.js.br +2 -0
- package/web/chunk-b1x8wmyp.js.gz +0 -0
- package/web/chunk-bpy0qc5f.js +1 -0
- package/web/chunk-bpy0qc5f.js.br +0 -0
- package/web/chunk-bpy0qc5f.js.gz +0 -0
- package/web/chunk-brsvdef4.js +1 -0
- package/web/chunk-brsvdef4.js.br +0 -0
- package/web/chunk-brsvdef4.js.gz +0 -0
- package/web/chunk-bs8vnwtv.js +106 -0
- package/web/chunk-bs8vnwtv.js.br +0 -0
- package/web/chunk-bs8vnwtv.js.gz +0 -0
- package/web/chunk-cd3hhgn9.js +2 -0
- package/web/chunk-cd3hhgn9.js.br +0 -0
- package/web/chunk-cd3hhgn9.js.gz +0 -0
- package/web/chunk-ckpx6ky8.js +2 -0
- package/web/chunk-ckpx6ky8.js.br +0 -0
- package/web/chunk-ckpx6ky8.js.gz +0 -0
- package/web/chunk-cn4846p5.js +140 -0
- package/web/chunk-cn4846p5.js.br +0 -0
- package/web/chunk-cn4846p5.js.gz +0 -0
- package/web/chunk-cngcze57.js +84 -0
- package/web/chunk-cngcze57.js.br +0 -0
- package/web/chunk-cngcze57.js.gz +0 -0
- package/web/chunk-csg9anab.js +62 -0
- package/web/chunk-csg9anab.js.br +0 -0
- package/web/chunk-csg9anab.js.gz +0 -0
- package/web/chunk-ct98jt0b.js +2 -0
- package/web/chunk-ct98jt0b.js.br +0 -0
- package/web/chunk-ct98jt0b.js.gz +0 -0
- package/web/chunk-d67p0nr5.js +8 -0
- package/web/chunk-d67p0nr5.js.br +0 -0
- package/web/chunk-d67p0nr5.js.gz +0 -0
- package/web/chunk-dqynqkew.js +3 -0
- package/web/chunk-dqynqkew.js.br +0 -0
- package/web/chunk-dqynqkew.js.gz +0 -0
- package/web/chunk-drn8wj2p.js +41 -0
- package/web/chunk-drn8wj2p.js.br +0 -0
- package/web/chunk-drn8wj2p.js.gz +0 -0
- package/web/chunk-e0r89rgm.js +2 -0
- package/web/chunk-e0r89rgm.js.br +0 -0
- package/web/chunk-e0r89rgm.js.gz +0 -0
- package/web/chunk-e6ffgm2z.js +89 -0
- package/web/chunk-e6ffgm2z.js.br +0 -0
- package/web/chunk-e6ffgm2z.js.gz +0 -0
- package/web/chunk-ebphre6k.js +292 -0
- package/web/chunk-ebphre6k.js.br +0 -0
- package/web/chunk-ebphre6k.js.gz +0 -0
- package/web/chunk-edeebkv0.js +2 -0
- package/web/chunk-edeebkv0.js.br +0 -0
- package/web/chunk-edeebkv0.js.gz +0 -0
- package/web/chunk-edkvcg8g.js +1 -0
- package/web/chunk-edkvcg8g.js.br +0 -0
- package/web/chunk-edkvcg8g.js.gz +0 -0
- package/web/chunk-evt920fg.js +142 -0
- package/web/chunk-evt920fg.js.br +0 -0
- package/web/chunk-evt920fg.js.gz +0 -0
- package/web/chunk-ezehzx5e.js +1 -0
- package/web/chunk-ezehzx5e.js.br +2 -0
- package/web/chunk-ezehzx5e.js.gz +0 -0
- package/web/chunk-f020aqdg.js +38 -0
- package/web/chunk-f020aqdg.js.br +0 -0
- package/web/chunk-f020aqdg.js.gz +0 -0
- package/web/chunk-f5a5x6be.js +1 -0
- package/web/chunk-f5a5x6be.js.br +0 -0
- package/web/chunk-f5a5x6be.js.gz +0 -0
- package/web/chunk-fkmw2m49.js +1 -0
- package/web/chunk-fkmw2m49.js.br +0 -0
- package/web/chunk-fkmw2m49.js.gz +0 -0
- package/web/chunk-fn0hha9d.js +2 -0
- package/web/chunk-fn0hha9d.js.br +0 -0
- package/web/chunk-fn0hha9d.js.gz +0 -0
- package/web/chunk-fp5ny5dy.js +4 -0
- package/web/chunk-fp5ny5dy.js.br +0 -0
- package/web/chunk-fp5ny5dy.js.gz +0 -0
- package/web/chunk-fwckng4e.js +34 -0
- package/web/chunk-fwckng4e.js.br +0 -0
- package/web/chunk-fwckng4e.js.gz +0 -0
- package/web/chunk-g7yyp4ks.js +2 -0
- package/web/chunk-g7yyp4ks.js.br +0 -0
- package/web/chunk-g7yyp4ks.js.gz +0 -0
- package/web/chunk-gbhkp5f4.js +1 -0
- package/web/chunk-gbhkp5f4.js.br +2 -0
- package/web/chunk-gbhkp5f4.js.gz +0 -0
- package/web/chunk-ghz85g7f.js +1 -0
- package/web/chunk-ghz85g7f.js.br +0 -0
- package/web/chunk-ghz85g7f.js.gz +0 -0
- package/web/chunk-gpjdkgxz.js +2 -0
- package/web/chunk-gpjdkgxz.js.br +0 -0
- package/web/chunk-gpjdkgxz.js.gz +0 -0
- package/web/chunk-h3d8gb7m.js +1 -0
- package/web/chunk-h3d8gb7m.js.br +0 -0
- package/web/chunk-h3d8gb7m.js.gz +0 -0
- package/web/chunk-h47k4j7f.js +1 -0
- package/web/chunk-h47k4j7f.js.br +0 -0
- package/web/chunk-h47k4j7f.js.gz +0 -0
- package/web/chunk-h702ns45.js +1 -0
- package/web/chunk-h702ns45.js.br +0 -0
- package/web/chunk-h702ns45.js.gz +0 -0
- package/web/chunk-j3tjbge9.js +1 -0
- package/web/chunk-j3tjbge9.js.br +0 -0
- package/web/chunk-j3tjbge9.js.gz +0 -0
- package/web/chunk-j91f1v68.js +2 -0
- package/web/chunk-j91f1v68.js.br +0 -0
- package/web/chunk-j91f1v68.js.gz +0 -0
- package/web/chunk-jd82z5gg.js +1 -0
- package/web/chunk-jd82z5gg.js.br +0 -0
- package/web/chunk-jd82z5gg.js.gz +0 -0
- package/web/chunk-jmksme0n.js +2 -0
- package/web/chunk-jmksme0n.js.br +0 -0
- package/web/chunk-jmksme0n.js.gz +0 -0
- package/web/chunk-jz0wjyzp.js +7 -0
- package/web/chunk-jz0wjyzp.js.br +0 -0
- package/web/chunk-jz0wjyzp.js.gz +0 -0
- package/web/chunk-ka8jrbr5.js +55 -0
- package/web/chunk-ka8jrbr5.js.br +0 -0
- package/web/chunk-ka8jrbr5.js.gz +0 -0
- package/web/chunk-m770h1wv.js +2 -0
- package/web/chunk-m770h1wv.js.br +0 -0
- package/web/chunk-m770h1wv.js.gz +0 -0
- package/web/chunk-mfsdyw6v.js +2 -0
- package/web/chunk-mfsdyw6v.js.br +0 -0
- package/web/chunk-mfsdyw6v.js.gz +0 -0
- package/web/chunk-mvmpr9bn.js +1 -0
- package/web/chunk-mvmpr9bn.js.br +0 -0
- package/web/chunk-mvmpr9bn.js.gz +0 -0
- package/web/chunk-my4zxtxx.js +2 -0
- package/web/chunk-my4zxtxx.js.br +0 -0
- package/web/chunk-my4zxtxx.js.gz +0 -0
- package/web/chunk-n7nx158t.js +1 -0
- package/web/chunk-n7nx158t.js.br +0 -0
- package/web/chunk-n7nx158t.js.gz +0 -0
- package/web/chunk-na88frn3.js +1 -0
- package/web/chunk-na88frn3.js.br +0 -0
- package/web/chunk-na88frn3.js.gz +0 -0
- package/web/chunk-nbncq48b.js +1 -0
- package/web/chunk-nbncq48b.js.br +0 -0
- package/web/chunk-nbncq48b.js.gz +0 -0
- package/web/chunk-nyydkfyf.js +1 -0
- package/web/chunk-nyydkfyf.js.br +0 -0
- package/web/chunk-nyydkfyf.js.gz +0 -0
- package/web/chunk-nz06k08x.js +39 -0
- package/web/chunk-nz06k08x.js.br +0 -0
- package/web/chunk-nz06k08x.js.gz +0 -0
- package/web/chunk-p62swsj6.js +139 -0
- package/web/chunk-p62swsj6.js.br +0 -0
- package/web/chunk-p62swsj6.js.gz +0 -0
- package/web/chunk-pajjgx94.js +169 -0
- package/web/chunk-pajjgx94.js.br +0 -0
- package/web/chunk-pajjgx94.js.gz +0 -0
- package/web/chunk-phdpzq61.js +370 -0
- package/web/chunk-phdpzq61.js.br +0 -0
- package/web/chunk-phdpzq61.js.gz +0 -0
- package/web/chunk-pj9r4ha1.js +2 -0
- package/web/chunk-pj9r4ha1.js.br +0 -0
- package/web/chunk-pj9r4ha1.js.gz +0 -0
- package/web/chunk-pqvre6md.js +24 -0
- package/web/chunk-pqvre6md.js.br +0 -0
- package/web/chunk-pqvre6md.js.gz +0 -0
- package/web/chunk-pvq527d1.js +303 -0
- package/web/chunk-pvq527d1.js.br +0 -0
- package/web/chunk-pvq527d1.js.gz +0 -0
- package/web/chunk-pzbqpfpj.js +24 -0
- package/web/chunk-pzbqpfpj.js.br +0 -0
- package/web/chunk-pzbqpfpj.js.gz +0 -0
- package/web/chunk-q990zhg4.js +1 -0
- package/web/chunk-q990zhg4.js.br +0 -0
- package/web/chunk-q990zhg4.js.gz +0 -0
- package/web/chunk-qed51xj9.js +2 -0
- package/web/chunk-qed51xj9.js.br +0 -0
- package/web/chunk-qed51xj9.js.gz +0 -0
- package/web/chunk-r9m8jh7x.js +2 -0
- package/web/chunk-r9m8jh7x.js.br +0 -0
- package/web/chunk-r9m8jh7x.js.gz +0 -0
- package/web/chunk-rjax57j0.js +40 -0
- package/web/chunk-rjax57j0.js.br +0 -0
- package/web/chunk-rjax57j0.js.gz +0 -0
- package/web/chunk-s00tks2b.js +98 -0
- package/web/chunk-s00tks2b.js.br +0 -0
- package/web/chunk-s00tks2b.js.gz +0 -0
- package/web/chunk-s3symq0h.js +1 -0
- package/web/chunk-s3symq0h.js.br +0 -0
- package/web/chunk-s3symq0h.js.gz +0 -0
- package/web/chunk-sh2d0212.js +1 -0
- package/web/chunk-sh2d0212.js.br +0 -0
- package/web/chunk-sh2d0212.js.gz +0 -0
- package/web/chunk-t8ksmf3z.js +2 -0
- package/web/chunk-t8ksmf3z.js.br +0 -0
- package/web/chunk-t8ksmf3z.js.gz +0 -0
- package/web/chunk-te4ab7ee.css +1 -0
- package/web/chunk-te4ab7ee.css.br +0 -0
- package/web/chunk-te4ab7ee.css.gz +0 -0
- package/web/chunk-tjhxbt15.js +1 -0
- package/web/chunk-tjhxbt15.js.br +0 -0
- package/web/chunk-tjhxbt15.js.gz +0 -0
- package/web/chunk-tqr5maem.js +291 -0
- package/web/chunk-tqr5maem.js.br +0 -0
- package/web/chunk-tqr5maem.js.gz +0 -0
- package/web/chunk-tt3vgkx6.js +7 -0
- package/web/chunk-tt3vgkx6.js.br +0 -0
- package/web/chunk-tt3vgkx6.js.gz +0 -0
- package/web/chunk-v56w6y8n.js +2 -0
- package/web/chunk-v56w6y8n.js.br +0 -0
- package/web/chunk-v56w6y8n.js.gz +0 -0
- package/web/chunk-v65dz9y5.js +1 -0
- package/web/chunk-v65dz9y5.js.br +0 -0
- package/web/chunk-v65dz9y5.js.gz +0 -0
- package/web/chunk-vaspzebe.js +1 -0
- package/web/chunk-vaspzebe.js.br +0 -0
- package/web/chunk-vaspzebe.js.gz +0 -0
- package/web/chunk-ve5dccwy.js +1 -0
- package/web/chunk-ve5dccwy.js.br +0 -0
- package/web/chunk-ve5dccwy.js.gz +0 -0
- package/web/chunk-vsxzq4nb.js +1 -0
- package/web/chunk-vsxzq4nb.js.br +0 -0
- package/web/chunk-vsxzq4nb.js.gz +0 -0
- package/web/chunk-vvn66f2x.js +16 -0
- package/web/chunk-vvn66f2x.js.br +0 -0
- package/web/chunk-vvn66f2x.js.gz +0 -0
- package/web/chunk-vvqey05d.js +1 -0
- package/web/chunk-vvqey05d.js.br +2 -0
- package/web/chunk-vvqey05d.js.gz +0 -0
- package/web/chunk-w6ajcbm8.js +1 -0
- package/web/chunk-w6ajcbm8.js.br +0 -0
- package/web/chunk-w6ajcbm8.js.gz +0 -0
- package/web/chunk-w6p6dy3k.js +2 -0
- package/web/chunk-w6p6dy3k.js.br +0 -0
- package/web/chunk-w6p6dy3k.js.gz +0 -0
- package/web/chunk-wy1k8vz2.js +1 -0
- package/web/chunk-wy1k8vz2.js.br +0 -0
- package/web/chunk-wy1k8vz2.js.gz +0 -0
- package/web/chunk-wzgv2gv2.js +120 -0
- package/web/chunk-wzgv2gv2.js.br +0 -0
- package/web/chunk-wzgv2gv2.js.gz +0 -0
- package/web/chunk-x78hqhxv.js +1 -0
- package/web/chunk-x78hqhxv.js.br +2 -0
- package/web/chunk-x78hqhxv.js.gz +0 -0
- package/web/chunk-x7mw8704.js +36 -0
- package/web/chunk-x7mw8704.js.br +0 -0
- package/web/chunk-x7mw8704.js.gz +0 -0
- package/web/chunk-x85z35es.js +2 -0
- package/web/chunk-x85z35es.js.br +0 -0
- package/web/chunk-x85z35es.js.gz +0 -0
- package/web/chunk-xbrhmxd8.js +214 -0
- package/web/chunk-xbrhmxd8.js.br +0 -0
- package/web/chunk-xbrhmxd8.js.gz +0 -0
- package/web/chunk-xjpqg11m.js +1 -0
- package/web/chunk-xjpqg11m.js.br +0 -0
- package/web/chunk-xjpqg11m.js.gz +0 -0
- package/web/chunk-y2x9v76f.js +2 -0
- package/web/chunk-y2x9v76f.js.br +0 -0
- package/web/chunk-y2x9v76f.js.gz +0 -0
- package/web/chunk-y48mj5d7.js +1 -0
- package/web/chunk-y48mj5d7.js.br +0 -0
- package/web/chunk-y48mj5d7.js.gz +0 -0
- package/web/chunk-ykc1rttf.js +1 -0
- package/web/chunk-ykc1rttf.js.br +0 -0
- package/web/chunk-ykc1rttf.js.gz +0 -0
- package/web/chunk-yyw0rdyy.js +1 -0
- package/web/chunk-yyw0rdyy.js.br +0 -0
- package/web/chunk-yyw0rdyy.js.gz +0 -0
- package/web/chunk-yzyrc28t.js +30 -0
- package/web/chunk-yzyrc28t.js.br +0 -0
- package/web/chunk-yzyrc28t.js.gz +0 -0
- package/web/chunk-z7j6wnn3.js +2 -0
- package/web/chunk-z7j6wnn3.js.br +0 -0
- package/web/chunk-z7j6wnn3.js.gz +0 -0
- package/web/chunk-z8fgdsx5.js +1 -0
- package/web/chunk-z8fgdsx5.js.br +0 -0
- package/web/chunk-z8fgdsx5.js.gz +0 -0
- package/web/index.html +3 -13
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/web/manifest-g1mfa85c.webmanifest +35 -0
- package/web/manifest-g1mfa85c.webmanifest.br +0 -0
- package/web/manifest-g1mfa85c.webmanifest.gz +0 -0
- package/web/manifest.webmanifest +2 -2
- package/web/manifest.webmanifest.br +0 -0
- package/web/manifest.webmanifest.gz +0 -0
- package/web/sw.js +33 -16
- package/web/sw.js.br +0 -0
- package/web/sw.js.gz +0 -0
- package/worker.js +1 -1
- package/chunk-1xam7mw7.js +0 -2
- package/chunk-2df7yf47.js +0 -3
- package/chunk-3a3ta83t.js +0 -12
- package/chunk-3bb12192.js +0 -39
- package/chunk-3j24he2c.js +0 -25
- package/chunk-3yyt010j.js +0 -2
- package/chunk-4hrkad68.js +0 -2
- package/chunk-4kw8vvae.js +0 -3
- package/chunk-5xj2kq5h.js +0 -3
- package/chunk-6hajdf5x.js +0 -2
- package/chunk-6rkwh4w5.js +0 -3
- package/chunk-7ygt906s.js +0 -2
- package/chunk-8jf1kd0m.js +0 -3
- package/chunk-95npkaze.js +0 -5
- package/chunk-9yqn7drg.js +0 -3
- package/chunk-9zwy8ypg.js +0 -117
- package/chunk-ad5asgnr.js +0 -2
- package/chunk-akdav0ay.js +0 -3
- package/chunk-arzyd0f7.js +0 -8
- package/chunk-avrzwnbk.js +0 -2
- package/chunk-b3fwt4jy.js +0 -2
- package/chunk-b41a7yc5.js +0 -7
- package/chunk-be4p5qak.js +0 -103
- package/chunk-br7606yh.js +0 -7
- package/chunk-brgcdzj9.js +0 -60
- package/chunk-bvh3ccr2.js +0 -3
- package/chunk-c0htgv5v.js +0 -3
- package/chunk-ch8bhqmp.js +0 -2
- package/chunk-d2t7tx0d.js +0 -16
- package/chunk-d5qsqt4v.js +0 -2
- package/chunk-d5sxt7bc.js +0 -13
- package/chunk-dz8jyvp4.js +0 -547
- package/chunk-e431qjnf.js +0 -3
- package/chunk-e69h0e2f.js +0 -2
- package/chunk-e9rp422g.js +0 -9
- package/chunk-etvf4tkk.js +0 -3
- package/chunk-ewr4r5yx.js +0 -18
- package/chunk-ezm2t479.js +0 -11
- package/chunk-f5prr1x7.js +0 -59
- package/chunk-fxs37w3f.js +0 -10
- package/chunk-g27efryh.js +0 -20
- package/chunk-g8zcrfzr.js +0 -2
- package/chunk-gde46g2m.js +0 -2
- package/chunk-gnf6jvxv.js +0 -25
- package/chunk-gswcr5j6.js +0 -2
- package/chunk-h22spg1q.js +0 -3
- package/chunk-h2br80f8.js +0 -3
- package/chunk-he09tqj5.js +0 -2
- package/chunk-hkx2cpc5.js +0 -3
- package/chunk-hwkmxr9a.js +0 -5
- package/chunk-j9jg8h44.js +0 -2
- package/chunk-jhgf0vpr.js +0 -5
- package/chunk-k3ndw7d4.js +0 -3
- package/chunk-k8mc2tn3.js +0 -3
- package/chunk-mbf7201c.js +0 -5
- package/chunk-mzhebc7e.js +0 -7
- package/chunk-n1c3t0nj.js +0 -2
- package/chunk-nmpqx2sh.js +0 -3
- package/chunk-p0dacr9z.js +0 -12
- package/chunk-q8gv26ze.js +0 -3
- package/chunk-qj6bf18b.js +0 -3
- package/chunk-rxq62z5t.js +0 -3
- package/chunk-s27309w7.js +0 -3
- package/chunk-sjwsj82f.js +0 -10
- package/chunk-tadyy9xh.js +0 -51
- package/chunk-vgvp6cpk.js +0 -2
- package/chunk-vj5p29fr.js +0 -2
- package/chunk-wbpt03pe.js +0 -31
- package/chunk-wgjt31wp.js +0 -8
- package/chunk-wk6vjpmj.js +0 -3
- package/chunk-x1spmnj8.js +0 -2
- package/chunk-x4anmcq9.js +0 -4
- package/chunk-xd5hf1rg.js +0 -3178
- package/chunk-xpbt4cpe.js +0 -2
- package/chunk-yw2k2syh.js +0 -3
- package/chunk-z3x79jnt.js +0 -3
- package/chunk-zd569v9h.js +0 -2
- package/web/chunk-05b25kh6.js +0 -332
- package/web/chunk-05b25kh6.js.br +0 -0
- package/web/chunk-05b25kh6.js.gz +0 -0
- package/web/chunk-0g6z1xs1.js +0 -2
- package/web/chunk-0g6z1xs1.js.br +0 -0
- package/web/chunk-0g6z1xs1.js.gz +0 -0
- package/web/chunk-0kj45mje.js +0 -2
- package/web/chunk-0kj45mje.js.br +0 -0
- package/web/chunk-0kj45mje.js.gz +0 -0
- package/web/chunk-0wt52yw3.js +0 -1
- package/web/chunk-0wt52yw3.js.br +0 -2
- package/web/chunk-0wt52yw3.js.gz +0 -0
- package/web/chunk-0x9cf6bp.js +0 -38
- package/web/chunk-0x9cf6bp.js.br +0 -0
- package/web/chunk-0x9cf6bp.js.gz +0 -0
- package/web/chunk-0y2f60q6.js +0 -1
- package/web/chunk-0y2f60q6.js.br +0 -0
- package/web/chunk-0y2f60q6.js.gz +0 -0
- package/web/chunk-1axw7vb0.js +0 -214
- package/web/chunk-1axw7vb0.js.br +0 -0
- package/web/chunk-1axw7vb0.js.gz +0 -0
- package/web/chunk-1es5ak4r.js +0 -1
- package/web/chunk-1es5ak4r.js.br +0 -0
- package/web/chunk-1es5ak4r.js.gz +0 -0
- package/web/chunk-1vhk8j0c.js +0 -1
- package/web/chunk-1vhk8j0c.js.br +0 -0
- package/web/chunk-1vhk8j0c.js.gz +0 -0
- package/web/chunk-21jtjwe1.js +0 -1
- package/web/chunk-21jtjwe1.js.br +0 -0
- package/web/chunk-21jtjwe1.js.gz +0 -0
- package/web/chunk-26grg3rq.js +0 -1144
- package/web/chunk-26grg3rq.js.br +0 -0
- package/web/chunk-26grg3rq.js.gz +0 -0
- package/web/chunk-2nwvdqxm.js +0 -1
- package/web/chunk-2nwvdqxm.js.br +0 -0
- package/web/chunk-2nwvdqxm.js.gz +0 -0
- package/web/chunk-2vh05ags.js +0 -2
- package/web/chunk-2vh05ags.js.br +0 -0
- package/web/chunk-2vh05ags.js.gz +0 -0
- package/web/chunk-2wvgy7f4.js +0 -1
- package/web/chunk-2wvgy7f4.js.br +0 -0
- package/web/chunk-2wvgy7f4.js.gz +0 -0
- package/web/chunk-33bfatdr.js +0 -4
- package/web/chunk-33bfatdr.js.br +0 -0
- package/web/chunk-33bfatdr.js.gz +0 -0
- package/web/chunk-38xsaxws.js +0 -1
- package/web/chunk-38xsaxws.js.br +0 -0
- package/web/chunk-38xsaxws.js.gz +0 -0
- package/web/chunk-3av47wwa.js +0 -7
- package/web/chunk-3av47wwa.js.br +0 -0
- package/web/chunk-3av47wwa.js.gz +0 -0
- package/web/chunk-3rxgch48.js +0 -1
- package/web/chunk-3rxgch48.js.br +0 -0
- package/web/chunk-3rxgch48.js.gz +0 -0
- package/web/chunk-40j8gxty.js +0 -303
- package/web/chunk-40j8gxty.js.br +0 -0
- package/web/chunk-40j8gxty.js.gz +0 -0
- package/web/chunk-43kq2dk7.js +0 -21
- package/web/chunk-43kq2dk7.js.br +0 -0
- package/web/chunk-43kq2dk7.js.gz +0 -0
- package/web/chunk-4cw67sdz.js +0 -78
- package/web/chunk-4cw67sdz.js.br +0 -0
- package/web/chunk-4cw67sdz.js.gz +0 -0
- package/web/chunk-4k4c2se1.js +0 -2
- package/web/chunk-4k4c2se1.js.br +0 -0
- package/web/chunk-4k4c2se1.js.gz +0 -0
- package/web/chunk-50dr941q.js +0 -55
- package/web/chunk-50dr941q.js.br +0 -0
- package/web/chunk-50dr941q.js.gz +0 -0
- package/web/chunk-56hx6a5h.js +0 -1
- package/web/chunk-56hx6a5h.js.br +0 -0
- package/web/chunk-56hx6a5h.js.gz +0 -0
- package/web/chunk-5m1p98r5.js +0 -2
- package/web/chunk-5m1p98r5.js.br +0 -0
- package/web/chunk-5m1p98r5.js.gz +0 -0
- package/web/chunk-5m45mc2k.js +0 -99
- package/web/chunk-5m45mc2k.js.br +0 -0
- package/web/chunk-5m45mc2k.js.gz +0 -0
- package/web/chunk-6gfa17h5.js +0 -1
- package/web/chunk-6gfa17h5.js.br +0 -0
- package/web/chunk-6gfa17h5.js.gz +0 -0
- package/web/chunk-7e57me98.js +0 -1
- package/web/chunk-7e57me98.js.br +0 -0
- package/web/chunk-7e57me98.js.gz +0 -0
- package/web/chunk-7ht7dssg.js +0 -1
- package/web/chunk-7ht7dssg.js.br +0 -0
- package/web/chunk-7ht7dssg.js.gz +0 -0
- package/web/chunk-8jxg1srx.js +0 -1
- package/web/chunk-8jxg1srx.js.br +0 -2
- package/web/chunk-8jxg1srx.js.gz +0 -0
- package/web/chunk-8q9970dm.js +0 -2
- package/web/chunk-8q9970dm.js.br +0 -0
- package/web/chunk-8q9970dm.js.gz +0 -0
- package/web/chunk-8t1kh5r9.js +0 -370
- package/web/chunk-8t1kh5r9.js.br +0 -0
- package/web/chunk-8t1kh5r9.js.gz +0 -0
- package/web/chunk-8za5fkrq.js +0 -1
- package/web/chunk-8za5fkrq.js.br +0 -0
- package/web/chunk-8za5fkrq.js.gz +0 -0
- package/web/chunk-96dhr80q.js +0 -8
- package/web/chunk-96dhr80q.js.br +0 -0
- package/web/chunk-96dhr80q.js.gz +0 -0
- package/web/chunk-98y5p1r2.js +0 -1
- package/web/chunk-98y5p1r2.js.br +0 -0
- package/web/chunk-98y5p1r2.js.gz +0 -0
- package/web/chunk-9f77mxfz.js +0 -98
- package/web/chunk-9f77mxfz.js.br +0 -0
- package/web/chunk-9f77mxfz.js.gz +0 -0
- package/web/chunk-9g2fam83.js +0 -2
- package/web/chunk-9g2fam83.js.br +0 -0
- package/web/chunk-9g2fam83.js.gz +0 -0
- package/web/chunk-9we3a8ak.js +0 -84
- package/web/chunk-9we3a8ak.js.br +0 -0
- package/web/chunk-9we3a8ak.js.gz +0 -0
- package/web/chunk-adfd0mhj.js +0 -1
- package/web/chunk-adfd0mhj.js.br +0 -0
- package/web/chunk-adfd0mhj.js.gz +0 -0
- package/web/chunk-aem9wyqq.js +0 -30
- package/web/chunk-aem9wyqq.js.br +0 -0
- package/web/chunk-aem9wyqq.js.gz +0 -0
- package/web/chunk-ajzrsqpp.js +0 -1
- package/web/chunk-ajzrsqpp.js.br +0 -0
- package/web/chunk-ajzrsqpp.js.gz +0 -0
- package/web/chunk-b4t33dft.js +0 -7
- package/web/chunk-b4t33dft.js.br +0 -0
- package/web/chunk-b4t33dft.js.gz +0 -0
- package/web/chunk-b86sddt6.js +0 -1
- package/web/chunk-b86sddt6.js.br +0 -0
- package/web/chunk-b86sddt6.js.gz +0 -0
- package/web/chunk-bt8ww8df.js +0 -142
- package/web/chunk-bt8ww8df.js.br +0 -0
- package/web/chunk-bt8ww8df.js.gz +0 -0
- package/web/chunk-c1tsq0ta.js +0 -1
- package/web/chunk-c1tsq0ta.js.br +0 -0
- package/web/chunk-c1tsq0ta.js.gz +0 -0
- package/web/chunk-ckkd4qn1.js +0 -1
- package/web/chunk-ckkd4qn1.js.br +0 -0
- package/web/chunk-ckkd4qn1.js.gz +0 -0
- package/web/chunk-cxh1ztpm.js +0 -200
- package/web/chunk-cxh1ztpm.js.br +0 -0
- package/web/chunk-cxh1ztpm.js.gz +0 -0
- package/web/chunk-db2pew8j.js +0 -2
- package/web/chunk-db2pew8j.js.br +0 -0
- package/web/chunk-db2pew8j.js.gz +0 -0
- package/web/chunk-dk2jv3kv.js +0 -2
- package/web/chunk-dk2jv3kv.js.br +0 -0
- package/web/chunk-dk2jv3kv.js.gz +0 -0
- package/web/chunk-dk9efr2r.js +0 -1
- package/web/chunk-dk9efr2r.js.br +0 -0
- package/web/chunk-dk9efr2r.js.gz +0 -0
- package/web/chunk-dmn5rvmt.js +0 -169
- package/web/chunk-dmn5rvmt.js.br +0 -0
- package/web/chunk-dmn5rvmt.js.gz +0 -0
- package/web/chunk-dtzm3qsp.js +0 -34
- package/web/chunk-dtzm3qsp.js.br +0 -0
- package/web/chunk-dtzm3qsp.js.gz +0 -0
- package/web/chunk-e1j49cha.js +0 -140
- package/web/chunk-e1j49cha.js.br +0 -0
- package/web/chunk-e1j49cha.js.gz +0 -0
- package/web/chunk-e24ammbc.js +0 -292
- package/web/chunk-e24ammbc.js.br +0 -0
- package/web/chunk-e24ammbc.js.gz +0 -0
- package/web/chunk-ebvk893x.js +0 -2
- package/web/chunk-ebvk893x.js.br +0 -0
- package/web/chunk-ebvk893x.js.gz +0 -0
- package/web/chunk-ecv7r3t9.js +0 -24
- package/web/chunk-ecv7r3t9.js.br +0 -0
- package/web/chunk-ecv7r3t9.js.gz +0 -0
- package/web/chunk-etkhjrfg.js +0 -1
- package/web/chunk-etkhjrfg.js.br +0 -0
- package/web/chunk-etkhjrfg.js.gz +0 -0
- package/web/chunk-f3ennx3q.js +0 -1
- package/web/chunk-f3ennx3q.js.br +0 -0
- package/web/chunk-f3ennx3q.js.gz +0 -0
- package/web/chunk-f5wyg9zh.js +0 -2
- package/web/chunk-f5wyg9zh.js.br +0 -0
- package/web/chunk-f5wyg9zh.js.gz +0 -0
- package/web/chunk-fpg6cdg9.js +0 -1
- package/web/chunk-fpg6cdg9.js.br +0 -0
- package/web/chunk-fpg6cdg9.js.gz +0 -0
- package/web/chunk-fq9kkd61.js +0 -1
- package/web/chunk-fq9kkd61.js.br +0 -0
- package/web/chunk-fq9kkd61.js.gz +0 -0
- package/web/chunk-fr9gd1pt.js +0 -1
- package/web/chunk-fr9gd1pt.js.br +0 -0
- package/web/chunk-fr9gd1pt.js.gz +0 -0
- package/web/chunk-fsfpgs2w.css +0 -1
- package/web/chunk-fsfpgs2w.css.br +0 -0
- package/web/chunk-fsfpgs2w.css.gz +0 -0
- package/web/chunk-ftggg1s9.js +0 -324
- package/web/chunk-ftggg1s9.js.br +0 -0
- package/web/chunk-ftggg1s9.js.gz +0 -0
- package/web/chunk-g337nkpz.js +0 -2
- package/web/chunk-g337nkpz.js.br +0 -0
- package/web/chunk-g337nkpz.js.gz +0 -0
- package/web/chunk-g52np0en.js +0 -1
- package/web/chunk-g52np0en.js.br +0 -0
- package/web/chunk-g52np0en.js.gz +0 -0
- package/web/chunk-gc6pdwjs.js +0 -2
- package/web/chunk-gc6pdwjs.js.br +0 -0
- package/web/chunk-gc6pdwjs.js.gz +0 -0
- package/web/chunk-gks3ybk7.js +0 -291
- package/web/chunk-gks3ybk7.js.br +0 -0
- package/web/chunk-gks3ybk7.js.gz +0 -0
- package/web/chunk-hr1t5hxj.js +0 -1
- package/web/chunk-hr1t5hxj.js.br +0 -0
- package/web/chunk-hr1t5hxj.js.gz +0 -0
- package/web/chunk-k67ze3zq.js +0 -2
- package/web/chunk-k67ze3zq.js.br +0 -0
- package/web/chunk-k67ze3zq.js.gz +0 -0
- package/web/chunk-kcrkppec.js +0 -1
- package/web/chunk-kcrkppec.js.br +0 -0
- package/web/chunk-kcrkppec.js.gz +0 -0
- package/web/chunk-kd2346aw.js +0 -2
- package/web/chunk-kd2346aw.js.br +0 -0
- package/web/chunk-kd2346aw.js.gz +0 -0
- package/web/chunk-kh93xybm.js +0 -62
- package/web/chunk-kh93xybm.js.br +0 -0
- package/web/chunk-kh93xybm.js.gz +0 -0
- package/web/chunk-m32tg04f.js +0 -1
- package/web/chunk-m32tg04f.js.br +0 -0
- package/web/chunk-m32tg04f.js.gz +0 -0
- package/web/chunk-mg98g3yx.js +0 -106
- package/web/chunk-mg98g3yx.js.br +0 -0
- package/web/chunk-mg98g3yx.js.gz +0 -0
- package/web/chunk-mqdvg55y.js +0 -2
- package/web/chunk-mqdvg55y.js.br +0 -0
- package/web/chunk-mqdvg55y.js.gz +0 -0
- package/web/chunk-myg415b8.js +0 -1
- package/web/chunk-myg415b8.js.br +0 -0
- package/web/chunk-myg415b8.js.gz +0 -0
- package/web/chunk-myn0rj98.js +0 -2
- package/web/chunk-myn0rj98.js.br +0 -0
- package/web/chunk-myn0rj98.js.gz +0 -0
- package/web/chunk-nvq8s71g.js +0 -1
- package/web/chunk-nvq8s71g.js.br +0 -0
- package/web/chunk-nvq8s71g.js.gz +0 -0
- package/web/chunk-pphtw0xj.js +0 -7
- package/web/chunk-pphtw0xj.js.br +0 -0
- package/web/chunk-pphtw0xj.js.gz +0 -0
- package/web/chunk-ptdh13r5.js +0 -1
- package/web/chunk-ptdh13r5.js.br +0 -0
- package/web/chunk-ptdh13r5.js.gz +0 -0
- package/web/chunk-q1gyt5y6.js +0 -1
- package/web/chunk-q1gyt5y6.js.br +0 -0
- package/web/chunk-q1gyt5y6.js.gz +0 -0
- package/web/chunk-q40c0y7d.js +0 -24
- package/web/chunk-q40c0y7d.js.br +0 -0
- package/web/chunk-q40c0y7d.js.gz +0 -0
- package/web/chunk-q7pyqxqn.js +0 -89
- package/web/chunk-q7pyqxqn.js.br +0 -0
- package/web/chunk-q7pyqxqn.js.gz +0 -0
- package/web/chunk-r5rt7t62.js +0 -1
- package/web/chunk-r5rt7t62.js.br +0 -0
- package/web/chunk-r5rt7t62.js.gz +0 -0
- package/web/chunk-ra8jt8jw.js +0 -2
- package/web/chunk-ra8jt8jw.js.br +0 -0
- package/web/chunk-ra8jt8jw.js.gz +0 -0
- package/web/chunk-rgh3x4h4.js +0 -1
- package/web/chunk-rgh3x4h4.js.br +0 -0
- package/web/chunk-rgh3x4h4.js.gz +0 -0
- package/web/chunk-rvcq48wy.js +0 -1
- package/web/chunk-rvcq48wy.js.br +0 -0
- package/web/chunk-rvcq48wy.js.gz +0 -0
- package/web/chunk-rvgx4jhr.js +0 -1
- package/web/chunk-rvgx4jhr.js.br +0 -0
- package/web/chunk-rvgx4jhr.js.gz +0 -0
- package/web/chunk-rxvvg771.js +0 -1
- package/web/chunk-rxvvg771.js.br +0 -0
- package/web/chunk-rxvvg771.js.gz +0 -0
- package/web/chunk-sfb3w9nf.js +0 -1
- package/web/chunk-sfb3w9nf.js.br +0 -2
- package/web/chunk-sfb3w9nf.js.gz +0 -0
- package/web/chunk-srwx1v8c.js +0 -39
- package/web/chunk-srwx1v8c.js.br +0 -0
- package/web/chunk-srwx1v8c.js.gz +0 -0
- package/web/chunk-t1et0w6s.js +0 -2
- package/web/chunk-t1et0w6s.js.br +0 -0
- package/web/chunk-t1et0w6s.js.gz +0 -0
- package/web/chunk-tm7c78hm.js +0 -1
- package/web/chunk-tm7c78hm.js.br +0 -0
- package/web/chunk-tm7c78hm.js.gz +0 -0
- package/web/chunk-tmrh8hv1.js +0 -1
- package/web/chunk-tmrh8hv1.js.br +0 -0
- package/web/chunk-tmrh8hv1.js.gz +0 -0
- package/web/chunk-tntwwpyh.js +0 -2
- package/web/chunk-tntwwpyh.js.br +0 -0
- package/web/chunk-tntwwpyh.js.gz +0 -0
- package/web/chunk-tyengwea.js +0 -12
- package/web/chunk-tyengwea.js.br +0 -0
- package/web/chunk-tyengwea.js.gz +0 -0
- package/web/chunk-v13gqed9.js +0 -2
- package/web/chunk-v13gqed9.js.br +0 -0
- package/web/chunk-v13gqed9.js.gz +0 -0
- package/web/chunk-v6srkjvx.js +0 -41
- package/web/chunk-v6srkjvx.js.br +0 -0
- package/web/chunk-v6srkjvx.js.gz +0 -0
- package/web/chunk-vyn5qg7j.js +0 -1
- package/web/chunk-vyn5qg7j.js.br +0 -0
- package/web/chunk-vyn5qg7j.js.gz +0 -0
- package/web/chunk-w8se91rf.js +0 -2
- package/web/chunk-w8se91rf.js.br +0 -0
- package/web/chunk-w8se91rf.js.gz +0 -0
- package/web/chunk-wc533d3w.js +0 -4
- package/web/chunk-wc533d3w.js.br +0 -0
- package/web/chunk-wc533d3w.js.gz +0 -0
- package/web/chunk-wdd9pasx.js +0 -1
- package/web/chunk-wdd9pasx.js.br +0 -0
- package/web/chunk-wdd9pasx.js.gz +0 -0
- package/web/chunk-we9q8a9q.js +0 -2
- package/web/chunk-we9q8a9q.js.br +0 -0
- package/web/chunk-we9q8a9q.js.gz +0 -0
- package/web/chunk-wjpdjzkt.js +0 -36
- package/web/chunk-wjpdjzkt.js.br +0 -0
- package/web/chunk-wjpdjzkt.js.gz +0 -0
- package/web/chunk-wwnzjj7x.js +0 -2
- package/web/chunk-wwnzjj7x.js.br +0 -0
- package/web/chunk-wwnzjj7x.js.gz +0 -0
- package/web/chunk-wypacndw.js +0 -120
- package/web/chunk-wypacndw.js.br +0 -0
- package/web/chunk-wypacndw.js.gz +0 -0
- package/web/chunk-x3p573sq.js +0 -2
- package/web/chunk-x3p573sq.js.br +0 -0
- package/web/chunk-x3p573sq.js.gz +0 -0
- package/web/chunk-x6zh7fcc.js +0 -16
- package/web/chunk-x6zh7fcc.js.br +0 -0
- package/web/chunk-x6zh7fcc.js.gz +0 -0
- package/web/chunk-x87bgw5s.js +0 -89
- package/web/chunk-x87bgw5s.js.br +0 -0
- package/web/chunk-x87bgw5s.js.gz +0 -0
- package/web/chunk-xevjmmdd.js +0 -217
- package/web/chunk-xevjmmdd.js.br +0 -0
- package/web/chunk-xevjmmdd.js.gz +0 -0
- package/web/chunk-xwjytx6p.js +0 -139
- package/web/chunk-xwjytx6p.js.br +0 -0
- package/web/chunk-xwjytx6p.js.gz +0 -0
- package/web/chunk-y0xvbh5g.js +0 -1
- package/web/chunk-y0xvbh5g.js.br +0 -0
- package/web/chunk-y0xvbh5g.js.gz +0 -0
- package/web/chunk-ya7gs2bv.js +0 -1
- package/web/chunk-ya7gs2bv.js.br +0 -0
- package/web/chunk-ya7gs2bv.js.gz +0 -0
- package/web/chunk-ybq42mr5.js +0 -2
- package/web/chunk-ybq42mr5.js.br +0 -0
- package/web/chunk-ybq42mr5.js.gz +0 -0
- package/web/chunk-yhzcc87m.js +0 -3
- package/web/chunk-yhzcc87m.js.br +0 -0
- package/web/chunk-yhzcc87m.js.gz +0 -0
- package/web/chunk-yphdbf42.js +0 -70
- package/web/chunk-yphdbf42.js.br +0 -0
- package/web/chunk-yphdbf42.js.gz +0 -0
- package/web/chunk-ythxsag5.js +0 -40
- package/web/chunk-ythxsag5.js.br +0 -0
- package/web/chunk-ythxsag5.js.gz +0 -0
- package/web/chunk-z0smmkfw.js +0 -2
- package/web/chunk-z0smmkfw.js.br +0 -0
- package/web/chunk-z0smmkfw.js.gz +0 -0
- package/web/chunk-zmm3f9sr.js +0 -1
- package/web/chunk-zmm3f9sr.js.br +0 -0
- package/web/chunk-zmm3f9sr.js.gz +0 -0
- package/web/chunk-zxt6qh82.js +0 -2
- package/web/chunk-zxt6qh82.js.br +0 -0
- package/web/chunk-zxt6qh82.js.gz +0 -0
- package/web/manifest-txf6vfbq.webmanifest +0 -35
- package/web/manifest-txf6vfbq.webmanifest.br +0 -0
- package/web/manifest-txf6vfbq.webmanifest.gz +0 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import{rt,at,A}from"./chunk-776d411a.js";var wo=at(function(Jl,th){(function(r,e){typeof Jl=="object"&&typeof th<"u"?th.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(Jl,function(){var r=1000,e=60000,o=3600000,a="millisecond",s="second",n="minute",c="hour",l="day",f="week",p="month",u="quarter",m="year",y="date",k="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,O={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(Tt){var it=["th","st","nd","rd"],ot=Tt%100;return"["+Tt+(it[(ot-20)%10]||it[ot]||it[0])+"]"}},q=function(Tt,it,ot){var xt=String(Tt);return!xt||xt.length>=it?Tt:""+Array(it+1-xt.length).join(ot)+Tt},W={s:q,z:function(Tt){var it=-Tt.utcOffset(),ot=Math.abs(it),xt=Math.floor(ot/60),et=ot%60;return(it<=0?"+":"-")+q(xt,2,"0")+":"+q(et,2,"0")},m:function Tt(it,ot){if(it.date()<ot.date())return-Tt(ot,it);var xt=12*(ot.year()-it.year())+(ot.month()-it.month()),et=it.clone().add(xt,p),Bt=ot-et<0,Mt=it.clone().add(xt+(Bt?-1:1),p);return+(-(xt+(ot-et)/(Bt?et-Mt:Mt-et))||0)},a:function(Tt){return Tt<0?Math.ceil(Tt)||0:Math.floor(Tt)},p:function(Tt){return{M:p,y:m,w:f,d:l,D:y,h:c,m:n,s,ms:a,Q:u}[Tt]||String(Tt||"").toLowerCase().replace(/s$/,"")},u:function(Tt){return Tt===void 0}},j="en",Q={};Q[j]=O;var J="$isDayjsObject",ut=function(Tt){return Tt instanceof At||!(!Tt||!Tt[J])},lt=function Tt(it,ot,xt){var et;if(!it)return j;if(typeof it=="string"){var Bt=it.toLowerCase();Q[Bt]&&(et=Bt),ot&&(Q[Bt]=ot,et=Bt);var Mt=it.split("-");if(!et&&Mt.length>1)return Tt(Mt[0])}else{var Vt=it.name;Q[Vt]=it,et=Vt}return!xt&&et&&(j=et),et||!xt&&j},gt=function(Tt,it){if(ut(Tt))return Tt.clone();var ot=typeof it=="object"?it:{};return ot.date=Tt,ot.args=arguments,new At(ot)},wt=W;wt.l=lt,wt.i=ut,wt.w=function(Tt,it){return gt(Tt,{locale:it.$L,utc:it.$u,x:it.$x,$offset:it.$offset})};var At=function(){function Tt(ot){this.$L=lt(ot.locale,null,!0),this.parse(ot),this.$x=this.$x||ot.x||{},this[J]=!0}var it=Tt.prototype;return it.parse=function(ot){this.$d=function(xt){var{date:et,utc:Bt}=xt;if(et===null)return new Date(NaN);if(wt.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(w);if(Mt){var Vt=Mt[2]-1||0,Xt=(Mt[7]||"0").substring(0,3);return Bt?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 wt},it.isValid=function(){return this.$d.toString()!==k},it.isSame=function(ot,xt){var et=gt(ot);return this.startOf(xt)<=et&&et<=this.endOf(xt)},it.isAfter=function(ot,xt){return gt(ot)<this.startOf(xt)},it.isBefore=function(ot,xt){return this.endOf(xt)<gt(ot)},it.$g=function(ot,xt,et){return wt.u(ot)?this[xt]:this.set(et,ot)},it.unix=function(){return Math.floor(this.valueOf()/1000)},it.valueOf=function(){return this.$d.getTime()},it.startOf=function(ot,xt){var et=this,Bt=!!wt.u(xt)||xt,Mt=wt.p(ot),Vt=function(ae,ue){var fe=wt.w(et.$u?Date.UTC(et.$y,ue,ae):new Date(et.$y,ue,ae),et);return Bt?fe:fe.endOf(l)},Xt=function(ae,ue){return wt.w(et.toDate()[ae].apply(et.toDate("s"),(Bt?[0,0,0,0]:[23,59,59,999]).slice(ue)),et)},ce=this.$W,le=this.$M,ye=this.$D,Ce="set"+(this.$u?"UTC":"");switch(Mt){case m:return Bt?Vt(1,0):Vt(31,11);case p:return Bt?Vt(1,le):Vt(0,le+1);case f:var pe=this.$locale().weekStart||0,Gt=(ce<pe?ce+7:ce)-pe;return Vt(Bt?ye-Gt:ye+(6-Gt),le);case l:case y:return Xt(Ce+"Hours",0);case c:return Xt(Ce+"Minutes",1);case n:return Xt(Ce+"Seconds",2);case s:return Xt(Ce+"Milliseconds",3);default:return this.clone()}},it.endOf=function(ot){return this.startOf(ot,!1)},it.$set=function(ot,xt){var et,Bt=wt.p(ot),Mt="set"+(this.$u?"UTC":""),Vt=(et={},et[l]=Mt+"Date",et[y]=Mt+"Date",et[p]=Mt+"Month",et[m]=Mt+"FullYear",et[c]=Mt+"Hours",et[n]=Mt+"Minutes",et[s]=Mt+"Seconds",et[a]=Mt+"Milliseconds",et)[Bt],Xt=Bt===l?this.$D+(xt-this.$W):xt;if(Bt===p||Bt===m){var ce=this.clone().set(y,1);ce.$d[Vt](Xt),ce.init(),this.$d=ce.set(y,Math.min(this.$D,ce.daysInMonth())).$d}else Vt&&this.$d[Vt](Xt);return this.init(),this},it.set=function(ot,xt){return this.clone().$set(ot,xt)},it.get=function(ot){return this[wt.p(ot)]()},it.add=function(ot,xt){var et,Bt=this;ot=Number(ot);var Mt=wt.p(xt),Vt=function(le){var ye=gt(Bt);return wt.w(ye.date(ye.date()+Math.round(le*ot)),Bt)};if(Mt===p)return this.set(p,this.$M+ot);if(Mt===m)return this.set(m,this.$y+ot);if(Mt===l)return Vt(1);if(Mt===f)return Vt(7);var Xt=(et={},et[n]=e,et[c]=o,et[s]=r,et)[Mt]||1,ce=this.$d.getTime()+ot*Xt;return wt.w(ce,this)},it.subtract=function(ot,xt){return this.add(-1*ot,xt)},it.format=function(ot){var xt=this,et=this.$locale();if(!this.isValid())return et.invalidDate||k;var Bt=ot||"YYYY-MM-DDTHH:mm:ssZ",Mt=wt.z(this),Vt=this.$H,Xt=this.$m,ce=this.$M,{weekdays:le,months:ye,meridiem:Ce}=et,pe=function(ue,fe,Ae,Fe){return ue&&(ue[fe]||ue(xt,Bt))||Ae[fe].slice(0,Fe)},Gt=function(ue){return wt.s(Vt%12||12,ue,"0")},ae=Ce||function(ue,fe,Ae){var Fe=ue<12?"AM":"PM";return Ae?Fe.toLowerCase():Fe};return Bt.replace(_,function(ue,fe){return fe||function(Ae){switch(Ae){case"YY":return String(xt.$y).slice(-2);case"YYYY":return wt.s(xt.$y,4,"0");case"M":return ce+1;case"MM":return wt.s(ce+1,2,"0");case"MMM":return pe(et.monthsShort,ce,ye,3);case"MMMM":return pe(ye,ce);case"D":return xt.$D;case"DD":return wt.s(xt.$D,2,"0");case"d":return String(xt.$W);case"dd":return pe(et.weekdaysMin,xt.$W,le,2);case"ddd":return pe(et.weekdaysShort,xt.$W,le,3);case"dddd":return le[xt.$W];case"H":return String(Vt);case"HH":return wt.s(Vt,2,"0");case"h":return Gt(1);case"hh":return Gt(2);case"a":return ae(Vt,Xt,!0);case"A":return ae(Vt,Xt,!1);case"m":return String(Xt);case"mm":return wt.s(Xt,2,"0");case"s":return String(xt.$s);case"ss":return wt.s(xt.$s,2,"0");case"SSS":return wt.s(xt.$ms,3,"0");case"Z":return Mt}return null}(ue)||Mt.replace(":","")})},it.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},it.diff=function(ot,xt,et){var Bt,Mt=this,Vt=wt.p(xt),Xt=gt(ot),ce=(Xt.utcOffset()-this.utcOffset())*e,le=this-Xt,ye=function(){return wt.m(Mt,Xt)};switch(Vt){case m:Bt=ye()/12;break;case p:Bt=ye();break;case u:Bt=ye()/3;break;case f:Bt=(le-ce)/604800000;break;case l:Bt=(le-ce)/86400000;break;case c:Bt=le/o;break;case n:Bt=le/e;break;case s:Bt=le/r;break;default:Bt=le}return et?Bt:wt.a(Bt)},it.daysInMonth=function(){return this.endOf(p).$D},it.$locale=function(){return Q[this.$L]},it.locale=function(ot,xt){if(!ot)return this.$L;var et=this.clone(),Bt=lt(ot,xt,!0);return Bt&&(et.$L=Bt),et},it.clone=function(){return wt.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()},Tt}(),_t=At.prototype;return gt.prototype=_t,[["$ms",a],["$s",s],["$m",n],["$H",c],["$W",l],["$M",p],["$y",m],["$D",y]].forEach(function(Tt){_t[Tt[1]]=function(it){return this.$g(it,Tt[0],Tt[1])}}),gt.extend=function(Tt,it){return Tt.$i||(Tt(it,At,gt),Tt.$i=!0),gt},gt.locale=lt,gt.isDayjs=ut,gt.unix=function(Tt){return gt(1000*Tt)},gt.en=Q[j],gt.Ls=Q,gt.p={},gt})});var sm=at(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 xa=at(function(nm){Object.defineProperty(nm,"__esModule",{value:!0});nm.sanitizeUrl=T2;var nr=sm();function k2(r){return nr.relativeFirstCharacters.indexOf(r[0])>-1}function w2(r){var e=r.replace(nr.ctrlCharactersRegex,"");return e.replace(nr.htmlEntitiesRegex,function(o,a){return String.fromCharCode(a)})}function S2(r){return URL.canParse(r)}function am(r){try{return decodeURIComponent(r)}catch(e){return r}}function T2(r){if(!r)return nr.BLANK_URL;var e,o=am(r.trim());do o=w2(o).replace(nr.htmlCtrlEntityRegex,"").replace(nr.ctrlCharactersRegex,"").replace(nr.whitespaceEscapeCharsRegex,"").trim(),o=am(o),e=o.match(nr.ctrlCharactersRegex)||o.match(nr.htmlEntitiesRegex)||o.match(nr.htmlCtrlEntityRegex)||o.match(nr.whitespaceEscapeCharsRegex);while(e&&e.length>0);var a=o;if(!a)return nr.BLANK_URL;if(k2(a))return a;var s=a.trimStart(),n=s.match(nr.urlSchemeRegex);if(!n)return a;var c=n[0].toLowerCase().trim();if(nr.invalidProtocolRegex.test(c))return nr.BLANK_URL;var l=s.replace(/\\/g,"/");if(c==="mailto:"||c.includes("://"))return l;if(c==="http:"||c==="https:"){if(!S2(l))return nr.BLANK_URL;var f=new URL(l);return f.protocol=f.protocol.toLowerCase(),f.hostname=f.hostname.toLowerCase(),f.toString()}return l}});var _d=Object.defineProperty,t=(r,e)=>_d(r,"name",{value:e,configurable:!0}),or=(r,e)=>{for(var o in e)_d(r,o,{get:e[o],enumerable:!0})};var Bd=rt(wo(),1),wi={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},i={trace:t((...r)=>{},"trace"),debug:t((...r)=>{},"debug"),info:t((...r)=>{},"info"),warn:t((...r)=>{},"warn"),error:t((...r)=>{},"error"),fatal:t((...r)=>{},"fatal")},Ni=t(function(r="fatal"){let e=wi.fatal;if(typeof r==="string"){if(r.toLowerCase()in wi)e=wi[r]}else if(typeof r==="number")e=r;if(i.trace=()=>{},i.debug=()=>{},i.info=()=>{},i.warn=()=>{},i.error=()=>{},i.fatal=()=>{},e<=wi.fatal)i.fatal=console.error?console.error.bind(console,Mr("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Mr("FATAL"));if(e<=wi.error)i.error=console.error?console.error.bind(console,Mr("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Mr("ERROR"));if(e<=wi.warn)i.warn=console.warn?console.warn.bind(console,Mr("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Mr("WARN"));if(e<=wi.info)i.info=console.info?console.info.bind(console,Mr("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Mr("INFO"));if(e<=wi.debug)i.debug=console.debug?console.debug.bind(console,Mr("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Mr("DEBUG"));if(e<=wi.trace)i.trace=console.debug?console.debug.bind(console,Mr("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Mr("TRACE"))},"setLogLevel"),Mr=t((r)=>`%c${Bd.default().format("ss.SSS")} : ${r} : `,"format");var pn={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,o)=>{if(o<0)o+=1;if(o>1)o-=1;if(o<0.16666666666666666)return r+(e-r)*6*o;if(o<0.5)return e;if(o<0.6666666666666666)return r+(e-r)*(0.6666666666666666-o)*6;return r},hsl2rgb:({h:r,s:e,l:o},a)=>{if(!e)return o*2.55;r/=360,e/=100,o/=100;let s=o<0.5?o*(1+e):o+e-o*e,n=2*o-s;switch(a){case"r":return pn.hue2rgb(n,s,r+0.3333333333333333)*255;case"g":return pn.hue2rgb(n,s,r)*255;case"b":return pn.hue2rgb(n,s,r-0.3333333333333333)*255}},rgb2hsl:({r,g:e,b:o},a)=>{r/=255,e/=255,o/=255;let s=Math.max(r,e,o),n=Math.min(r,e,o),c=(s+n)/2;if(a==="l")return c*100;if(s===n)return 0;let l=s-n,f=c>0.5?l/(2-s-n):l/(s+n);if(a==="s")return f*100;switch(s){case r:return((e-o)/l+(e<o?6:0))*60;case e:return((o-r)/l+2)*60;case o:return((r-e)/l+4)*60;default:return-1}}},vd=pn;var rC={clamp:(r,e,o)=>{if(e>o)return Math.min(e,Math.max(o,r));return Math.min(o,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},X=oC;var Si={};for(let r=0;r<=255;r++)Si[r]=X.unit.dec2hex(r);var Ve={ALL:0,RGB:1,HSL:2};class Ad{constructor(){this.type=Ve.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=Ve.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=Ve.ALL,this}_ensureHSL(){let r=this.data,{h:e,s:o,l:a}=r;if(e===void 0)r.h=X.channel.rgb2hsl(r,"h");if(o===void 0)r.s=X.channel.rgb2hsl(r,"s");if(a===void 0)r.l=X.channel.rgb2hsl(r,"l")}_ensureRGB(){let r=this.data,{r:e,g:o,b:a}=r;if(e===void 0)r.r=X.channel.hsl2rgb(r,"r");if(o===void 0)r.g=X.channel.hsl2rgb(r,"g");if(a===void 0)r.b=X.channel.hsl2rgb(r,"b")}get r(){let r=this.data,e=r.r;if(!this.type.is(Ve.HSL)&&e!==void 0)return e;return this._ensureHSL(),X.channel.hsl2rgb(r,"r")}get g(){let r=this.data,e=r.g;if(!this.type.is(Ve.HSL)&&e!==void 0)return e;return this._ensureHSL(),X.channel.hsl2rgb(r,"g")}get b(){let r=this.data,e=r.b;if(!this.type.is(Ve.HSL)&&e!==void 0)return e;return this._ensureHSL(),X.channel.hsl2rgb(r,"b")}get h(){let r=this.data,e=r.h;if(!this.type.is(Ve.RGB)&&e!==void 0)return e;return this._ensureRGB(),X.channel.rgb2hsl(r,"h")}get s(){let r=this.data,e=r.s;if(!this.type.is(Ve.RGB)&&e!==void 0)return e;return this._ensureRGB(),X.channel.rgb2hsl(r,"s")}get l(){let r=this.data,e=r.l;if(!this.type.is(Ve.RGB)&&e!==void 0)return e;return this._ensureRGB(),X.channel.rgb2hsl(r,"l")}get a(){return this.data.a}set r(r){this.type.set(Ve.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(Ve.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(Ve.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(Ve.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(Ve.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(Ve.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 o=e[1],a=parseInt(o,16),s=o.length,n=s%4===0,c=s>4,l=c?1:17,f=c?8:4,p=n?0:-1,u=c?255:15;return Zi.set({r:(a>>f*(p+3)&u)*l,g:(a>>f*(p+2)&u)*l,b:(a>>f*(p+1)&u)*l,a:n?(a&u)*l/255:1},r)},stringify:(r)=>{let{r:e,g:o,b:a,a:s}=r;if(s<1)return`#${Si[Math.round(e)]}${Si[Math.round(o)]}${Si[Math.round(a)]}${Si[Math.round(s*255)]}`;else return`#${Si[Math.round(e)]}${Si[Math.round(o)]}${Si[Math.round(a)]}`}},so=Id;var yn={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(yn.hueRe);if(e){let[,o,a]=e;switch(a){case"grad":return X.channel.clamp.h(parseFloat(o)*0.9);case"rad":return X.channel.clamp.h(parseFloat(o)*180/Math.PI);case"turn":return X.channel.clamp.h(parseFloat(o)*360)}}return X.channel.clamp.h(parseFloat(r))},parse:(r)=>{let e=r.charCodeAt(0);if(e!==104&&e!==72)return;let o=r.match(yn.re);if(!o)return;let[,a,s,n,c,l]=o;return Zi.set({h:yn._hue2deg(a),s:X.channel.clamp.s(parseFloat(s)),l:X.channel.clamp.l(parseFloat(n)),a:c?X.channel.clamp.a(l?parseFloat(c)/100:parseFloat(c)):1},r)},stringify:(r)=>{let{h:e,s:o,l:a,a:s}=r;if(s<1)return`hsla(${X.lang.round(e)}, ${X.lang.round(o)}%, ${X.lang.round(a)}%, ${s})`;else return`hsl(${X.lang.round(e)}, ${X.lang.round(o)}%, ${X.lang.round(a)}%)`}},Os=yn;var xn={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=xn.colors[r];if(!e)return;return so.parse(e)},stringify:(r)=>{let e=so.stringify(r);for(let o in xn.colors)if(xn.colors[o]===e)return o;return}},eh=xn;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 o=r.match($d.re);if(!o)return;let[,a,s,n,c,l,f,p,u]=o;return Zi.set({r:X.channel.clamp.r(s?parseFloat(a)*2.55:parseFloat(a)),g:X.channel.clamp.g(c?parseFloat(n)*2.55:parseFloat(n)),b:X.channel.clamp.b(f?parseFloat(l)*2.55:parseFloat(l)),a:p?X.channel.clamp.a(u?parseFloat(p)/100:parseFloat(p)):1},r)},stringify:(r)=>{let{r:e,g:o,b:a,a:s}=r;if(s<1)return`rgba(${X.lang.round(e)}, ${X.lang.round(o)}, ${X.lang.round(a)}, ${X.lang.round(s)})`;else return`rgb(${X.lang.round(e)}, ${X.lang.round(o)}, ${X.lang.round(a)})`}},Is=$d;var aC={format:{keyword:eh,hex:so,rgb:Is,rgba:Is,hsl:Os,hsla:Os},parse:(r)=>{if(typeof r!=="string")return r;let e=so.parse(r)||Is.parse(r)||Os.parse(r)||eh.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(Ve.HSL)||r.data.r===void 0)return Os.stringify(r);else if(r.a<1||!Number.isInteger(r.r)||!Number.isInteger(r.g)||!Number.isInteger(r.b))return Is.stringify(r);else return so.stringify(r)}},mt=aC;var nC=(r,e)=>{let o=mt.parse(r);for(let a in e)o[a]=X.channel.clamp[a](e[a]);return mt.stringify(o)},Cn=nC;var lC=(r,e,o=0,a=1)=>{if(typeof r!=="number")return Cn(r,{a:e});let s=Zi.set({r:X.channel.clamp.r(r),g:X.channel.clamp.g(e),b:X.channel.clamp.b(o),a:X.channel.clamp.a(a)});return mt.stringify(s)},Oe=lC;var hC=(r)=>{let{r:e,g:o,b:a}=mt.parse(r),s=0.2126*X.channel.toLinear(e)+0.7152*X.channel.toLinear(o)+0.0722*X.channel.toLinear(a);return X.lang.round(s)},Dd=hC;var cC=(r)=>Dd(r)>=0.5,Pd=cC;var uC=(r)=>!Pd(r),he=uC;var fC=(r,e,o)=>{let a=mt.parse(r),s=a[e],n=X.channel.clamp[e](s+o);if(s!==n)a[e]=n;return mt.stringify(a)},Za=fC;var dC=(r,e)=>Za(r,"l",e),h=dC;var pC=(r,e)=>Za(r,"l",-e),g=pC;var gC=(r,e)=>{let o=mt.parse(r),a={};for(let s in e){if(!e[s])continue;a[s]=o[s]+e[s]}return Cn(r,a)},N=gC;var mC=(r,e,o=50)=>{let{r:a,g:s,b:n,a:c}=mt.parse(r),{r:l,g:f,b:p,a:u}=mt.parse(e),m=o/100,y=m*2-1,k=c-u,_=((y*k===-1?y:(y+k)/(1+y*k))+1)/2,O=1-_,q=a*_+l*O,W=s*_+f*O,j=n*_+p*O,Q=c*m+u*(1-m);return Oe(q,W,j,Q)},Rd=mC;var yC=(r,e=100)=>{let o=mt.parse(r);return o.r=255-o.r,o.g=255-o.g,o.b=255-o.b,Rd(o,r,e)},dt=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 o=0,a=Array(e);o<e;o++)a[o]=r[o];return a}function CC(r){if(Array.isArray(r))return r}function bC(r,e){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,s,n,c,l=[],f=!0,p=!1;try{if(n=(o=o.call(r)).next,e===0){if(Object(o)!==o)return;f=!1}else for(;!(f=(a=n.call(o)).done)&&(l.push(a.value),l.length!==e);f=!0);}catch(u){p=!0,s=u}finally{try{if(!f&&o.return!=null&&(c=o.return(),Object(c)!==c))return}finally{if(p)throw s}}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 o={}.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?qd(r,e):void 0}}function bn(r){var e,o;function a(n,c){try{var l=r[n](c),f=l.value,p=f instanceof xC;Promise.resolve(p?f.v:f).then(function(u){if(p){var m=n==="return"&&f.k?n:"next";if(!f.k||u.done)return a(m,u);u=r[m](u).value}s(!!l.done,u)},function(u){a("throw",u)})}catch(u){s(2,u)}}function s(n,c){n===2?e.reject(c):e.resolve({value:c,done:n}),(e=e.next)?a(e.key,e.arg):o=null}this._invoke=function(n,c){return new Promise(function(l,f){var p={key:n,arg:c,resolve:l,reject:f,next:null};o?o=o.next=p:(e=o=p,a(n,c))})},typeof r.return!="function"&&(this.return=void 0)}bn.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},bn.prototype.next=function(r){return this._invoke("next",r)},bn.prototype.throw=function(r){return this._invoke("throw",r)},bn.prototype.return=function(r){return this._invoke("return",r)};var{entries:tp,setPrototypeOf:Nd,isFrozen:TC,getPrototypeOf:ep,getOwnPropertyDescriptor:rp,freeze:Ze,seal:tr,create:rs}=Object,ip=typeof Reflect<"u"&&Reflect,{apply:uh,construct:fh}=ip;if(!Ze)Ze=function(e){return e};if(!tr)tr=function(e){return e};if(!uh)uh=function(e,o){for(var a=arguments.length,s=Array(a>2?a-2:0),n=2;n<a;n++)s[n-2]=arguments[n];return e.apply(o,s)};if(!fh)fh=function(e){for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return new e(...a)};var Ti=Me(Array.prototype.forEach);Array.prototype.indexOf;var _C=Me(Array.prototype.lastIndexOf),Wd=Me(Array.prototype.pop),$s=Me(Array.prototype.push),BC=Me(Array.prototype.slice),vC=Me(Array.prototype.splice),is=Array.isArray,rh=op(Set),ih=Me(Set.prototype.add),Ds=Me(Set.prototype.has),ao=Me(String.prototype.toLowerCase),oh=Me(String.prototype.toString),zd=Me(String.prototype.match),Ps=Me(String.prototype.replace),Hd=Me(String.prototype.indexOf),LC=Me(String.prototype.trim),FC=Me(Number.prototype.toString),AC=Me(Boolean.prototype.toString),Yd=typeof BigInt>"u"?null:Me(BigInt.prototype.toString),Ud=typeof Symbol>"u"?null:Me(Symbol.prototype.toString),xr=Me(Object.prototype.hasOwnProperty),Rs=Me(Object.prototype.toString),Je=Me(RegExp.prototype.test),_i=op(TypeError);function Me(r){return function(e){if(e instanceof RegExp)e.lastIndex=0;for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return uh(r,e,a)}}function op(r){return function(){for(var e=arguments.length,o=Array(e),a=0;a<e;a++)o[a]=arguments[a];return fh(r,o)}}function Se(r,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ao;if(Nd)Nd(r,null);if(!is(e))return r;let a=e.length;while(a--){let s=e[a];if(typeof s==="string"){let n=o(s);if(n!==s){if(!TC(e))e[a]=n;s=n}}r[s]=!0}return r}function MC(r){for(let e=0;e<r.length;e++)if(!xr(r,e))r[e]=null;return r}function Br(r){let e=rs(null);for(let a of tp(r)){var o=wC(a,2);let s=o[0],n=o[1];if(xr(r,s))if(is(n))e[s]=MC(n);else if(n&&typeof n==="object"&&n.constructor===Object)e[s]=Br(n);else e[s]=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 Rs(r);case"function":case"object":{if(r===null)return Rs(r);let e=r,o=Er(e,"toString");if(typeof o==="function"){let a=o(e);return typeof a==="string"?a:Rs(a)}return Rs(r)}default:return Rs(r)}}function Er(r,e){while(r!==null){let a=rp(r,e);if(a){if(a.get)return Me(a.get);if(typeof a.value==="function")return Me(a.value)}r=ep(r)}function o(){return null}return o}function OC(r,e){while(r!==null){let o=rp(r,e);if(o)return o.get?Me(o.get):null;r=ep(r)}return null}function IC(r){try{return Je(r,""),!0}catch(e){return!1}}var jd=Ze(["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"]),sh=Ze(["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=Ze(["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=Ze(["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"]),nh=Ze(["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=Ze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gd=Ze(["#text"]),Xd=Ze(["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"]),lh=Ze(["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=Ze(["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"]),kn=Ze(["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),hh=tr(/<[/\w!]/g),Zd=tr(/<[/\w]/g),jC=tr(/<\/no(script|embed|frames)/i),Qd=tr(/\/>/i),Ge={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=Ze(Se({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),XC=function(){return typeof window>"u"?null:window},VC=function(e,o){if(typeof e!=="object"||typeof e.createPolicy!=="function")return null;let a=null,s="data-tt-policy-suffix";if(o&&o.hasAttribute(s))a=o.getAttribute(s);let n="dompurify"+(a?"#"+a:"");try{return e.createPolicy(n,{createHTML(c){return c},createScriptURL(c){return c}})}catch(c){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Jd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Qi=function(e,o,a,s){return xr(e,o)&&is(e[o])?Se(s.base?Br(s.base):{},e[o],s.transform):a},ch=function(e,o,a){let s=xr(e,o)?e[o]:void 0;return s&&typeof s==="object"?Br(s):a()};function sp(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:XC(),e=(Yt)=>sp(Yt);if(e.version="3.4.17",e.removed=[],!r||!r.document||r.document.nodeType!==Ge.document||!r.Element)return e.isSupported=!1,e;let o=r.document,a=o,s=a.currentScript;r.DocumentFragment;let{HTMLTemplateElement:n,Node:c,Element:l,NodeFilter:f}=r;r.NamedNodeMap===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let{DOMParser:p,trustedTypes:u}=r,m=l.prototype,y=Er(m,"cloneNode"),k=Er(m,"remove"),w=Er(m,"removeAttributeNode"),_=Er(m,"nextSibling"),O=Er(m,"childNodes"),q=Er(m,"parentNode"),W=Er(m,"shadowRoot"),j=Er(m,"attributes"),Q=c&&c.prototype?Er(c.prototype,"nodeType"):null,J=c&&c.prototype?Er(c.prototype,"nodeName"):null,ut=c&&c.prototype?Er(c.prototype,"ownerDocument"):null,lt=function(K){return Q?Q(K):K.nodeType},gt=function(K){return J?J(K):K.nodeName},wt=OC(m,"namespaceURI"),At=function(K){return wt?wt(K):K.namespaceURI};if(typeof n==="function"){let Yt=o.createElement("template");if(Yt.content&&Yt.content.ownerDocument)o=Yt.content.ownerDocument}let _t,Tt="",it,ot=!1,xt=0,et=function(){if(xt>0)throw _i('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.')},Bt=function(K){et(),xt++;try{return _t.createHTML(K)}finally{xt--}},Mt=function(K){et(),xt++;try{return _t.createScriptURL(K)}finally{xt--}},Vt=function(){if(!ot)it=VC(u,s),ot=!0;return it},Xt=o,{implementation:ce,createNodeIterator:le,createDocumentFragment:ye,getElementsByTagName:Ce}=Xt,pe=a.importNode,Gt=Jd();e.isSupported=typeof tp==="function"&&typeof q==="function"&&ce&&ce.createHTMLDocument!==void 0;let ae=PC,ue=RC,fe=qC,Ae=NC,Fe=WC,Ir=zC,xi=HC,Fr=UC,Yi=Kd,ve=null,gr=Se({},[...jd,...sh,...ah,...nh,...Gd]),_e=null,Ci=Se({},[...Xd,...lh,...Vd,...kn]),Qe=Object.seal(rs(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}})),Ar=null,Ui=null,je=Object.seal(rs(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ji=!0,Wr=!0,bi=!1,ki=!0,x=!1,yt=!0,Lt=!1,Ot=!1,vt=null,jt=null,U=!1,bt=!1,Nt=!1,Et=!1,$t=!0,Ut=!1,Wt="user-content-",re=!0,ee=!1,ie=null,se={},xe=null,Le=Se({},["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"]),Fs=null,Gi=Se({},["audio","video","img","source","image","track"]),Xi=null,ld=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nn="http://www.w3.org/1998/Math/MathML",ln="http://www.w3.org/2000/svg",zr="http://www.w3.org/1999/xhtml",xo=zr,ql=!1,Nl=null,D0=Se({},[nn,ln,zr],oh),hd=Ze(["mi","mo","mn","ms","mtext"]),Wl=Se({},hd),cd=Ze(["annotation-xml"]),zl=Se({},cd),P0=Se({},["title","style","font","a","script"]),As=null,R0=["application/xhtml+xml","text/html"],q0="text/html",He=null,bo=null,N0=o.createElement("form"),ud=function(K){return K instanceof RegExp||K instanceof Function},Hl=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(bo&&bo===K)return;if(!K||typeof K!=="object")K={};K=Br(K),As=R0.indexOf(K.PARSER_MEDIA_TYPE)===-1?q0:K.PARSER_MEDIA_TYPE,He=As==="application/xhtml+xml"?oh:ao,ve=Qi(K,"ALLOWED_TAGS",gr,{transform:He}),_e=Qi(K,"ALLOWED_ATTR",Ci,{transform:He}),Nl=Qi(K,"ALLOWED_NAMESPACES",D0,{transform:oh}),Xi=Qi(K,"ADD_URI_SAFE_ATTR",ld,{transform:He,base:ld}),Fs=Qi(K,"ADD_DATA_URI_TAGS",Gi,{transform:He,base:Gi}),xe=Qi(K,"FORBID_CONTENTS",Le,{transform:He}),Ar=Qi(K,"FORBID_TAGS",Br({}),{transform:He}),Ui=Qi(K,"FORBID_ATTR",Br({}),{transform:He}),se=xr(K,"USE_PROFILES")?K.USE_PROFILES&&typeof K.USE_PROFILES==="object"?Br(K.USE_PROFILES):K.USE_PROFILES:!1,ji=K.ALLOW_ARIA_ATTR!==!1,Wr=K.ALLOW_DATA_ATTR!==!1,bi=K.ALLOW_UNKNOWN_PROTOCOLS||!1,ki=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,x=K.SAFE_FOR_TEMPLATES||!1,yt=K.SAFE_FOR_XML!==!1,Lt=K.WHOLE_DOCUMENT||!1,bt=K.RETURN_DOM||!1,Nt=K.RETURN_DOM_FRAGMENT||!1,Et=K.RETURN_TRUSTED_TYPE||!1,U=K.FORCE_BODY||!1,$t=K.SANITIZE_DOM!==!1,Ut=K.SANITIZE_NAMED_PROPS||!1,re=K.KEEP_CONTENT!==!1,ee=K.IN_PLACE||!1,Yi=IC(K.ALLOWED_URI_REGEXP)?K.ALLOWED_URI_REGEXP:Kd,xo=typeof K.NAMESPACE==="string"?K.NAMESPACE:zr,Wl=ch(K,"MATHML_TEXT_INTEGRATION_POINTS",()=>Se({},hd)),zl=ch(K,"HTML_INTEGRATION_POINTS",()=>Se({},cd));let pt=ch(K,"CUSTOM_ELEMENT_HANDLING",()=>rs(null));if(Qe=rs(null),xr(pt,"tagNameCheck")&&ud(pt.tagNameCheck))Qe.tagNameCheck=pt.tagNameCheck;if(xr(pt,"attributeNameCheck")&&ud(pt.attributeNameCheck))Qe.attributeNameCheck=pt.attributeNameCheck;if(xr(pt,"allowCustomizedBuiltInElements")&&typeof pt.allowCustomizedBuiltInElements==="boolean")Qe.allowCustomizedBuiltInElements=pt.allowCustomizedBuiltInElements;if(tr(Qe),x)Wr=!1;if(Nt)bt=!0;if(se){if(ve=Se({},Gd),_e=rs(null),se.html===!0)Se(ve,jd),Se(_e,Xd);if(se.svg===!0)Se(ve,sh),Se(_e,lh),Se(_e,kn);if(se.svgFilters===!0)Se(ve,ah),Se(_e,lh),Se(_e,kn);if(se.mathMl===!0)Se(ve,nh),Se(_e,Vd),Se(_e,kn)}if(je.tagCheck=null,je.attributeCheck=null,xr(K,"ADD_TAGS")){if(typeof K.ADD_TAGS==="function")je.tagCheck=K.ADD_TAGS;else if(is(K.ADD_TAGS)){if(ve===gr)ve=Br(ve);Se(ve,K.ADD_TAGS,He)}}if(xr(K,"ADD_ATTR")){if(typeof K.ADD_ATTR==="function")je.attributeCheck=K.ADD_ATTR;else if(is(K.ADD_ATTR)){if(_e===Ci)_e=Br(_e);Se(_e,K.ADD_ATTR,He)}}if(xr(K,"ADD_FORBID_CONTENTS")&&is(K.ADD_FORBID_CONTENTS)){if(xe===Le)xe=Br(xe);Se(xe,K.ADD_FORBID_CONTENTS,He)}if(re)ve["#text"]=!0;if(Lt)Se(ve,["html","head","body"]);if(ve.table)Se(ve,["tbody"]),delete Ar.tbody;if(K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!=="function")throw _i('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw _i('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let Dt=_t;_t=K.TRUSTED_TYPES_POLICY;try{Tt=Bt("")}catch(qt){throw _t=Dt,qt}}else if(K.TRUSTED_TYPES_POLICY===null)_t=void 0,Tt="";else{if(_t===void 0)_t=Vt();if(_t&&typeof Tt==="string")Tt=Bt("")}if(Ze)Ze(K);bo=K},fd=Se({},[...sh,...ah,...$C]),dd=Se({},[...nh,...DC]),W0=function(K,pt,Dt){if(pt.namespaceURI===zr)return K==="svg";if(pt.namespaceURI===nn)return K==="svg"&&(Dt==="annotation-xml"||Wl[Dt]);return Boolean(fd[K])},z0=function(K,pt,Dt){if(pt.namespaceURI===zr)return K==="math";if(pt.namespaceURI===ln)return K==="math"&&zl[Dt];return Boolean(dd[K])},H0=function(K,pt,Dt){if(pt.namespaceURI===ln&&!zl[Dt])return!1;if(pt.namespaceURI===nn&&!Wl[Dt])return!1;return!dd[K]&&(P0[K]||!fd[K])},Y0=function(K){let pt=At(K),Dt=ao(gt(K)),qt=q(K),ne,me;if(qt&<(qt)===Ge.element)ne={namespaceURI:At(qt)},me=ao(gt(qt));else ne={namespaceURI:xo},me="template";if(!Nl[pt])return!1;if(pt===ln)return W0(Dt,ne,me);if(pt===nn)return z0(Dt,ne,me);if(pt===zr)return H0(Dt,ne,me);if(As==="application/xhtml+xml"&&Nl[pt])return!0;return!1},Vi=function(K){$s(e.removed,{element:K});try{q(K).removeChild(K)}catch(pt){if(k(K),!q(K))throw _i("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},pd=function(K,pt,Dt){try{w(K,pt)}catch(qt){try{K.removeAttribute(Dt)}catch(ne){}}},Yl=function(K){jl(K);let pt=O(K);if(pt)Ti(BC(pt),(qt)=>{try{k(qt)}catch(ne){}});let Dt=lt(K)===Ge.element?j(K):null;if(Dt)for(let qt=Dt.length-1;qt>=0;--qt){let ne=Dt[qt],me=ne&&ne.name;if(typeof me==="string")pd(K,ne,me)}},_o=function(K,pt,Dt){if(!Dt)try{Dt=pt.getAttributeNode(K)}catch(qt){Dt=null}$s(e.removed,{attribute:Dt||null,from:pt});try{if(Dt)w(pt,Dt);else pt.removeAttribute(K)}catch(qt){try{pt.removeAttribute(K)}catch(ne){}}if(K==="is")if(bt||Nt)try{Vi(pt)}catch(qt){}else try{pt.setAttribute(K,"")}catch(qt){}},gd=function(K){let pt=j(K);if(!pt)return;for(let Dt=pt.length-1;Dt>=0;--Dt){let qt=pt[Dt],ne=qt&&qt.name;if(typeof ne!=="string"||_e[He(ne)])continue;pd(K,qt,ne)}},Ul=function(K,pt){let Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,qt=[K];while(qt.length>0){let ne=qt.pop();if(pt(ne)===!1)continue;if(Dt&<(ne)===Ge.element){let be=W(ne);if(Ki(be))qt.push(be)}let me=O(ne);if(me)for(let be=me.length-1;be>=0;--be)qt.push(me[be])}},jl=function(K){Ul(K,(pt)=>{if(lt(pt)===Ge.element)gd(pt)})},Gl=function(K){let pt=[];return Ul(K,(Dt)=>{pt.push(Dt)},!0),pt},U0=function(K,pt){let Dt=rh();Ti(Gl(K),(qt)=>{if(lt(qt)===Ge.element)ih(Dt,qt)}),Ti(pt,(qt)=>{if(lt(qt)===Ge.element&&!Ds(Dt,qt))gd(qt)})},md=function(K,pt){let Dt=!1;return Ti(e.removed,(qt)=>{if(qt.element)Dt=Dt||qt.element===K,jl(qt.element)}),U0(K,pt),Dt},j0=8,G0=function(K,pt){let Dt=ie,qt=null,ne=()=>{if(!qt)qt=rh(),Ti(pt,(me)=>{ih(qt,me)});return qt};for(let me=0;;me++){let be=Gl(K),Xe=[K],Hr=!1;if(Ti(be,(hr)=>{if(lt(hr)===Ge.documentFragment)$s(Xe,hr);else if(!Hr&&!Ds(Dt,hr))Hr=Ds(ne(),hr)}),!Hr)return;if(me>=j0)throw _i("the tree kept changing during in-place sanitization; refusing to return it");Ti(Xe,(hr,mr)=>{X0(hr,mr>0,K,ne())})}},X0=function(K,pt,Dt,qt){let ne=Xl(K),me;while(me=ne.nextNode()){if(!Ds(qt,me)||Ds(ie,me))continue;if(pt)$r(Gt.uponSanitizeShadowNode,me,null);if(Kl(me,Dt),Zl(me,Dt),Ki(me.content))Es(me.content)}},V0=function(K){if(ie)ih(ie,K)},yd=function(K,pt){if(!yt)return!1;if(K==="patchsrc")return!0;return K==="for"&&pt!=="label"&&pt!=="output"},K0=function(K){if(!yt)return;Ul(K,(pt)=>{let Dt=lt(pt);if(Dt===Ge.processingInstruction||Dt===Ge.comment&&Je(Zd,pt.data)){try{k(pt)}catch(qt){}return!1}if(Dt===Ge.element){let qt=pt,ne=He(gt(pt));try{if(qt.hasAttribute&&qt.hasAttribute("patchsrc"))qt.removeAttribute("patchsrc");if(qt.hasAttribute&&qt.hasAttribute("for")&&yd("for",ne))qt.removeAttribute("for")}catch(me){}}return!0})},xd=function(K){let pt=null,Dt=null;if(U)K="<remove></remove>"+K;else{let me=zd(K,/^[\r\n\t ]+/);Dt=me&&me[0]}if(As==="application/xhtml+xml"&&xo===zr)K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>";let qt=_t?Bt(K):K;if(xo===zr)try{pt=new p().parseFromString(qt,As)}catch(me){}if(!pt||!pt.documentElement){pt=ce.createDocument(xo,"template",null);try{pt.documentElement.innerHTML=ql?Tt:qt}catch(me){}}let ne=pt.body||pt.documentElement;if(K&&Dt)ne.insertBefore(o.createTextNode(Dt),ne.childNodes[0]||null);if(xo===zr)return Ce.call(pt,Lt?"html":"body")[0];return Lt?pt.documentElement:ne},Xl=function(K){let pt=ut?ut(K):K.ownerDocument;return le.call(pt||K,K,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},cn=function(K){return K=Ps(K,ae," "),K=Ps(K,ue," "),K=Ps(K,fe," "),K},Vl=function(K){var pt;Cd(K);let Dt=(pt=K.querySelectorAll)===null||pt===void 0?void 0:pt.call(K,"template");if(Dt)Ti(Dt,(qt)=>{if(Ki(qt.content))Vl(qt.content)})},Cd=function(K){K.normalize();let pt=ut?ut(K):K.ownerDocument,Dt=le.call(pt||K,K,f.SHOW_TEXT|f.SHOW_COMMENT|f.SHOW_CDATA_SECTION|f.SHOW_PROCESSING_INSTRUCTION,null),qt=Dt.nextNode();while(qt)qt.data=cn(qt.data),qt=Dt.nextNode()},un=function(K){let pt=J?J(K):null;if(typeof pt!=="string")return!1;if(He(pt)!=="form")return!1;return typeof K.nodeName!=="string"||typeof K.textContent!=="string"||typeof K.removeChild!=="function"||K.attributes!==j(K)||typeof K.removeAttribute!=="function"||typeof K.removeAttributeNode!=="function"||typeof K.getAttributeNode!=="function"||typeof K.setAttribute!=="function"||typeof K.namespaceURI!=="string"||typeof K.insertBefore!=="function"||typeof K.hasChildNodes!=="function"||K.nodeType!==Q(K)||K.childNodes!==O(K)},Ki=function(K){if(!Q||typeof K!=="object"||K===null)return!1;try{return Q(K)===Ge.documentFragment}catch(pt){return!1}},Ms=function(K){if(!Q||typeof K!=="object"||K===null)return!1;try{return typeof Q(K)==="number"}catch(pt){return!1}};function $r(Yt,K,pt){if(Yt.length===0)return;Ti(Yt,(Dt)=>{Dt.call(e,K,pt,bo)})}let Z0=function(K,pt){if(yt&&K.hasChildNodes()&&!Ms(K.firstElementChild)&&Je(hh,K.textContent)&&Je(hh,K.innerHTML))return!0;if(yt&&GC[pt]&<(K)===Ge.element&&At(K)===zr&&(Ms(K.firstElementChild)||typeof K.textContent==="string"&&Je(hh,K.textContent)))return!0;if(K.nodeType===Ge.processingInstruction)return!0;if(yt&&K.nodeType===Ge.comment&&Je(Zd,K.data))return!0;return!1},dn=function(K,pt){if(K instanceof RegExp)return Je(K,pt);if(K instanceof Function){for(var Dt=arguments.length,qt=Array(Dt>2?Dt-2:0),ne=2;ne<Dt;ne++)qt[ne-2]=arguments[ne];return Boolean(K(pt,...qt))}return!1},Q0=function(K,pt,Dt){if(!Ar[pt]&&wd(pt)&&dn(Qe.tagNameCheck,pt))return!1;if(re&&!xe[pt]&&!xe[ao(pt)]){let qt=q(K),ne=O(K);if(ne&&qt){let me=ne.length;for(let be=me-1;be>=0;--be){let Xe=K===Dt?y(ne[be],!0):ne[be];qt.insertBefore(Xe,_(K))}}}return Vi(K),!0},bd=function(K,pt,Dt,qt){if(K.length===0)return pt;return pt===Dt||pt===qt?Br(pt):pt},vo=function(K,pt){if(K===pt||q(K)!==null)return!1;if(ee)jl(K);return!0},Kl=function(K,pt){if(V0(K),$r(Gt.beforeSanitizeElements,K,null),vo(K,pt))return!0;if(un(K))return Vi(K),!0;let Dt=He(gt(K));if(ve=bd(Gt.uponSanitizeElement,ve,gr,vt),$r(Gt.uponSanitizeElement,K,{tagName:Dt,allowedTags:ve}),vo(K,pt))return!0;if(Z0(K,Dt))return Vi(K),!0;if(Ar[Dt]||!(je.tagCheck instanceof Function&&je.tagCheck(Dt))&&!ve[Dt]){let qt=Q0(K,Dt,pt);if(qt===!1){if($r(Gt.afterSanitizeElements,K,null),vo(K,pt))return!0}return qt}if(lt(K)===Ge.element&&!Y0(K))return Vi(K),!0;if((Dt==="noscript"||Dt==="noembed"||Dt==="noframes")&&Je(jC,K.innerHTML))return Vi(K),!0;if(x&&K.nodeType===Ge.text){let qt=cn(K.textContent);if(K.textContent!==qt)$s(e.removed,{element:K.cloneNode()}),K.textContent=qt}return $r(Gt.afterSanitizeElements,K,null),vo(K,pt)},kd=function(K,pt,Dt){if(Ui[pt])return!1;if(yd(pt,K))return!1;if($t&&(pt==="id"||pt==="name")&&((Dt in o)||(Dt in N0)))return!1;let qt=_e[pt]||je.attributeCheck instanceof Function&&je.attributeCheck(pt,K);if(Wr&&Je(Ae,pt))return!0;if(ji&&Je(Fe,pt))return!0;if(!qt)return wd(K)&&dn(Qe.tagNameCheck,K)&&dn(Qe.attributeNameCheck,pt,K)||pt==="is"&&Qe.allowCustomizedBuiltInElements&&dn(Qe.tagNameCheck,Dt);if(Xi[pt])return!0;if(Je(Yi,Ps(Dt,xi,"")))return!0;if((pt==="src"||pt==="xlink:href"||pt==="href")&&K!=="script"&&Hd(Dt,"data:")===0&&Fs[K])return!0;if(bi&&!Je(Ir,Ps(Dt,xi,"")))return!0;return!Dt},J0=Se({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wd=function(K){return!J0[ao(K)]&&Je(Fr,K)},tC=function(K,pt,Dt,qt){if(_t&&typeof u==="object"&&typeof u.getAttributeType==="function"&&!Dt)switch(u.getAttributeType(K,pt)){case"TrustedHTML":return Bt(qt);case"TrustedScriptURL":return Mt(qt)}return qt},eC=function(K,pt,Dt,qt){try{if(Dt)K.setAttributeNS(Dt,pt,qt);else K.setAttribute(pt,qt);if(un(K))return Vi(K),!1;return!0}catch(ne){return _o(pt,K),!1}},Sd=function(K,pt){if(yt&&Je(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,pt))return!0;return ao(K)==="attributename"&&zd(pt,"href")!==null},Zl=function(K,pt){if($r(Gt.beforeSanitizeAttributes,K,null),vo(K,pt))return;let Dt=K.attributes;if(!Dt||un(K))return;_e=bd(Gt.uponSanitizeAttribute,_e,Ci,jt);let qt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_e,forceKeepAttr:void 0},ne=Dt.length,me=He(K.nodeName);while(ne--){let be=Dt[ne],{name:Xe,namespaceURI:Hr,value:hr}=be,mr=He(Xe),ts=hr,yr=Xe==="value"?ts:LC(ts),Td=!1;if(qt.attrName=mr,qt.attrValue=yr,qt.keepAttr=!0,qt.forceKeepAttr=void 0,$r(Gt.uponSanitizeAttribute,K,qt),yr=qt.attrValue,Ut&&(mr==="id"||mr==="name")&&Hd(yr,Wt)!==0)_o(Xe,K,be),yr=Wt+yr,Td=!0;if(Sd(Xe,yr)){_o(Xe,K,be);continue}if(qt.forceKeepAttr)continue;if(!qt.keepAttr){_o(Xe,K,be);continue}if(!ki&&Je(Qd,yr)){_o(Xe,K,be);continue}if(x)yr=cn(yr);if(!kd(me,mr,yr)){_o(Xe,K,be);continue}if(yr=tC(me,mr,Hr,yr),yr!==ts){if(eC(K,Xe,Hr,yr)&&Td)Wd(e.removed)}}$r(Gt.afterSanitizeAttributes,K,null),vo(K,pt)},Es=function(K){let pt=null,Dt=Xl(K);$r(Gt.beforeSanitizeShadowDOM,K,null);while(pt=Dt.nextNode()){if($r(Gt.uponSanitizeShadowNode,pt,null),Kl(pt,K),Zl(pt,K),Ki(pt.content))Es(pt.content);if(lt(pt)===Ge.element){let qt=W(pt);if(Ki(qt))Ql(qt),Es(qt)}}if(x)Cd(K);$r(Gt.afterSanitizeShadowDOM,K,null)},Ql=function(K){let pt=[{node:K,shadow:null}];while(pt.length>0){let Dt=pt.pop();if(Dt.shadow){Es(Dt.shadow);continue}let qt=Dt.node,ne=lt(qt)===Ge.element,me=O(qt);if(me)for(let be=me.length-1;be>=0;--be)pt.push({node:me[be],shadow:null});if(ne){let be=J?J(qt):null;if(typeof be==="string"&&He(be)==="template"){let Xe=qt.content;if(Ki(Xe))pt.push({node:Xe,shadow:null})}}if(ne){let be=W(qt);if(Ki(be))pt.push({node:null,shadow:be},{node:be,shadow:null})}}};return e.sanitize=function(Yt){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pt=null,Dt=null,qt=null,ne=null;if(ql=!Yt,ql)Yt="<!-->";if(typeof Yt!=="string"&&!Ms(Yt)){if(Yt=EC(Yt),typeof Yt!=="string")throw _i("dirty is not a string, aborting")}if(!e.isSupported)return Yt;if(Ot)ve=vt,_e=jt;else Hl(K);if(Gt.uponSanitizeElement.length>0||Gt.uponSanitizeAttribute.length>0)ve=Br(ve);if(Gt.uponSanitizeAttribute.length>0)_e=Br(_e);e.removed=[];let me=ee&&typeof Yt!=="string"&&Ms(Yt),be=[],Xe=ie;if(me){K0(Yt);let mr=gt(Yt);if(typeof mr==="string"){let ts=He(mr);if(!ve[ts]||Ar[ts])throw Yl(Yt),_i("root node is forbidden and cannot be sanitized in-place")}if(un(Yt))throw Yl(Yt),_i("root node is clobbered and cannot be sanitized in-place");be=Gl(Yt),ie=rh()}else if(Ms(Yt)){if(pt=xd("<!---->"),Dt=pt.ownerDocument.importNode(Yt,!0),Dt.nodeType===Ge.element&&Dt.nodeName==="BODY")pt=Dt;else if(Dt.nodeName==="HTML")pt=Dt;else pt.appendChild(Dt);Ql(pt)}else{if(!bt&&!x&&!Lt&&Yt.indexOf("<")===-1)return _t&&Et?Bt(Yt):Yt;if(pt=xd(Yt),!pt)return bt?null:Et?Tt:""}if(pt&&U)Vi(pt.firstChild);let Hr=me?Yt:pt;try{if(me)Ql(Yt);let mr=Xl(Hr);while(qt=mr.nextNode())if(Kl(qt,Hr),Zl(qt,Hr),Ki(qt.content))Es(qt.content);if(me)G0(Yt,be)}catch(mr){if(me)Yl(Yt),md(Yt,be);throw mr}finally{ie=Xe}if(me){if(md(Yt,be))throw _i("a node selected for removal could not be safely returned; refusing to sanitize in place");if(x)Vl(Yt);return Yt}if(bt){if(x)Vl(pt);if(Nt){ne=ye.call(pt.ownerDocument);while(pt.firstChild)ne.appendChild(pt.firstChild)}else ne=pt;if(_e.shadowroot||_e.shadowrootmode)ne=pe.call(a,ne,!0);return ne}let hr=Lt?pt.outerHTML:pt.innerHTML;if(Lt&&ve["!doctype"]&&pt.ownerDocument&&pt.ownerDocument.doctype&&pt.ownerDocument.doctype.name&&Je(YC,pt.ownerDocument.doctype.name))hr="<!DOCTYPE "+pt.ownerDocument.doctype.name+`>
|
|
3
|
+
`+hr;if(x)hr=cn(hr);return _t&&Et?Bt(hr):hr},e.setConfig=function(){let Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hl(Yt),Ot=!0,vt=ve,jt=_e},e.clearConfig=function(){bo=null,Ot=!1,vt=null,jt=null,_t=it,Tt=""},e.isValidAttribute=function(Yt,K,pt){if(!bo)Hl({});let Dt=He(Yt),qt=He(K);if(typeof pt==="string"&&(Sd(K,pt)||!ki&&Je(Qd,pt)))return!1;return kd(Dt,qt,pt)},e.addHook=function(Yt,K){if(typeof K!=="function")return;if(!xr(Gt,Yt))return;$s(Gt[Yt],K)},e.removeHook=function(Yt,K){if(!xr(Gt,Yt))return;if(K!==void 0){let pt=_C(Gt[Yt],K);return pt===-1?void 0:vC(Gt[Yt],pt,1)[0]}return Wd(Gt[Yt])},e.removeHooks=function(Yt){if(!xr(Gt,Yt))return;Gt[Yt]=[]},e.removeAllHooks=function(){Gt=Jd()},e}var st=sp();var os=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Bn=/\s/,KC=t((r)=>{let e="",o=0,a=0;while(a<r.length){let s=r.indexOf("%%",a);if(s===-1)break;let n=r.indexOf(`
|
|
4
|
+
`,s);if(n===-1)break;let c=s;while(c>o&&Bn.test(r[c-1]))c--;e+=r.slice(o,c)+`
|
|
5
|
+
`,o=n+1,a=o}return e+r.slice(o)},"stripAnyComments"),wn=t((r)=>r===`
|
|
6
|
+
`||r==="\r","isLineBreak"),ZC=t((r,e)=>{let o=-1;for(let a=e;a<r.length&&Bn.test(r[a]);a++)if(wn(r[a]))o=a;return o},"lastLineBreakInWhitespaceRun"),js=t((r)=>{let e=0;while(e<r.length&&Bn.test(r[e])&&!wn(r[e]))e++;let o=r.slice(0,e);if(!r.startsWith("---",e))return;let a=[];for(let u=e+3;u<r.length&&Bn.test(r[u]);u++)if(wn(r[u]))a.push(u);if(a.length===0)return;let s=`${o}---`,n=t((u)=>wn(r[u])&&r.startsWith(s,u+1)?ZC(r,u+1+s.length):-1,"closingEnd"),c=a[0]+1,l=-1;for(let u=c;u<r.length;u++)if(n(u)!==-1)l=u;if(l===-1)return;let f=a[0];for(let u of a)if(u<l)f=u;let p=f+1;for(let u=p;u<=l;u++){let m=n(u);if(m!==-1)return{indent:o,body:r.slice(p,u),length:m+1}}return},"matchFrontMatter"),qs=class extends Error{static{t(this,"UnknownDiagramError")}constructor(r){super(r);this.name="UnknownDiagramError"}},Xr={},Qa=t(function(r,e){let o=js(r);r=KC((o?r.slice(o.length):r).replace(os,""));for(let[a,{detector:s}]of Object.entries(Xr))if(s(r,e))return a;throw new qs(`No diagram type detected matching given configuration for text: ${r}`)},"detectType"),ko=t((...r)=>{for(let{id:e,detector:o,loader:a}of r)up(e,o,a)},"registerLazyLoadedDiagrams"),up=t((r,e,o)=>{if(Xr[r])i.warn(`Detector with key ${r} already exists. Overwriting.`);Xr[r]={detector:e,loader:o},i.debug(`Detector with key ${r} added${o?" with loader":""}`)},"addDetector"),vc=t((r)=>Xr[r].loader,"getDiagramLoader"),dh=t((r,e,{depth:o=2}={})=>{let a={depth:o};if(Array.isArray(e)&&!Array.isArray(r))return e.forEach((s)=>dh(r,s,a)),r;else if(Array.isArray(e)&&Array.isArray(r))return e.forEach((s)=>{if(!r.includes(s))r.push(s)}),r;if(r===void 0||r===null||o<=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 s=r;Object.entries(e).forEach(([n,c])=>{if(typeof c==="object"){if(c===null)return;if(!Object.hasOwn(r,n))Object.defineProperty(r,n,{value:void 0,writable:!0,enumerable:!0,configurable:!0});if(s[n]===void 0)s[n]=Array.isArray(c)?[]:{};if(typeof s[n]==="object")s[n]=dh(s[n],c,{depth:o-1})}else if(typeof s[n]!=="object")if(Object.hasOwn(r,n))s[n]=c;else Object.defineProperty(r,n,{value:c,writable:!0,enumerable:!0,configurable:!0})})}return r},"assignWithDepth"),Ne=dh,Yr="#ffffff",Ur="#f2f2f2",ge=t((r,e)=>e?N(r,{s:-40,l:10}):N(r,{s:-40,l:-10}),"mkBorder"),ap=t((r)=>typeof r==="object"&&r!==null&&!Array.isArray(r),"isPlainObject"),Dr=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||N(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||N(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ge(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ge(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ge(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(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?g(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||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(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||h(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||g(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||g(this.mainBkg,10);else this.rowOdd=this.rowOdd||h(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||h(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||N(this.primaryColor,{h:30}),this.cScale4=this.cScale4||N(this.primaryColor,{h:60}),this.cScale5=this.cScale5||N(this.primaryColor,{h:90}),this.cScale6=this.cScale6||N(this.primaryColor,{h:120}),this.cScale7=this.cScale7||N(this.primaryColor,{h:150}),this.cScale8=this.cScale8||N(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||N(this.primaryColor,{h:270}),this.cScale10=this.cScale10||N(this.primaryColor,{h:300}),this.cScale11=this.cScale11||N(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||dt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||h(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||g(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]||N(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||N(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||N(this.primaryColor,{h:64}),this.fillType3=this.fillType3||N(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||N(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||N(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||N(this.primaryColor,{h:128}),this.fillType7=this.fillType7||N(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||N(this.primaryColor,{l:-10}),this.pie5=this.pie5||N(this.secondaryColor,{l:-10}),this.pie6=this.pie6||N(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||N(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||N(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||N(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||N(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||N(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||N(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??N(this.primaryColor,{l:-30}),this.venn2=this.venn2??N(this.secondaryColor,{l:-30}),this.venn3=this.venn3??N(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??N(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??N(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??N(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??N(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??N(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||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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?g(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||N(this.primaryColor,{h:-30}),this.git4=this.git4||N(this.primaryColor,{h:-60}),this.git5=this.git5||N(this.primaryColor,{h:-90}),this.git6=this.git6||N(this.primaryColor,{h:60}),this.git7=this.git7||N(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ur,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((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])}),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=h(this.primaryColor,16),this.tertiaryColor=N(this.primaryColor,{h:-160}),this.primaryBorderColor=dt(this.background),this.secondaryBorderColor=ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ge(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.lineColor=dt(this.background),this.textColor=dt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(dt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Oe(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=g("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=g(this.sectionBkgColor,10),this.taskBorderColor=Oe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Oe(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||h(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||g(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=h(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=h(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=h(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=dt(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=N(this.primaryColor,{h:64}),this.fillType3=N(this.secondaryColor,{h:64}),this.fillType4=N(this.primaryColor,{h:-64}),this.fillType5=N(this.secondaryColor,{h:-64}),this.fillType6=N(this.primaryColor,{h:128}),this.fillType7=N(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||N(this.primaryColor,{h:30}),this.cScale4=this.cScale4||N(this.primaryColor,{h:60}),this.cScale5=this.cScale5||N(this.primaryColor,{h:90}),this.cScale6=this.cScale6||N(this.primaryColor,{h:120}),this.cScale7=this.cScale7||N(this.primaryColor,{h:150}),this.cScale8=this.cScale8||N(this.primaryColor,{h:210}),this.cScale9=this.cScale9||N(this.primaryColor,{h:270}),this.cScale10=this.cScale10||N(this.primaryColor,{h:300}),this.cScale11=this.cScale11||N(this.primaryColor,{h:330});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||dt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScalePeer"+r]=this["cScalePeer"+r]||h(this["cScale"+r],10);for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||N(this.mainBkg,{h:30,s:-30,l:-(-10+r*4)}),this["surfacePeer"+r]=this["surfacePeer"+r]||N(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)]??h(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||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=h(this.secondaryColor,20),this.git1=h(this.pie2||this.secondaryColor,20),this.git2=h(this.pie3||this.tertiaryColor,20),this.git3=h(this.pie4||N(this.primaryColor,{h:-30}),20),this.git4=h(this.pie5||N(this.primaryColor,{h:-60}),20),this.git5=h(this.pie6||N(this.primaryColor,{h:-90}),10),this.git6=h(this.pie7||N(this.primaryColor,{h:60}),10),this.git7=h(this.pie8||N(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||dt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||dt(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||h("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||h("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||h("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||h("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||h(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||h(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||h(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||h(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])})}},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=N(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=N(this.primaryColor,{h:-160}),this.primaryBorderColor=ge(this.primaryColor,this.darkMode),this.secondaryBorderColor=ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ge(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.lineColor=dt(this.background),this.textColor=dt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=ge(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=Oe(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||N(this.primaryColor,{h:30}),this.cScale4=this.cScale4||N(this.primaryColor,{h:60}),this.cScale5=this.cScale5||N(this.primaryColor,{h:90}),this.cScale6=this.cScale6||N(this.primaryColor,{h:120}),this.cScale7=this.cScale7||N(this.primaryColor,{h:150}),this.cScale8=this.cScale8||N(this.primaryColor,{h:210}),this.cScale9=this.cScale9||N(this.primaryColor,{h:270}),this.cScale10=this.cScale10||N(this.primaryColor,{h:300}),this.cScale11=this.cScale11||N(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||g(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||g(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=g(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||g(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||N(this["cScale"+r],{h:180});for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||N(this.mainBkg,{h:30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||N(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||dt(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||dt(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||h(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||h(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=N(this.primaryColor,{h:64}),this.fillType3=N(this.secondaryColor,{h:64}),this.fillType4=N(this.primaryColor,{h:-64}),this.fillType5=N(this.secondaryColor,{h:-64}),this.fillType6=N(this.primaryColor,{h:128}),this.fillType7=N(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||N(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||N(this.primaryColor,{l:-10}),this.pie5=this.pie5||N(this.secondaryColor,{l:-30}),this.pie6=this.pie6||N(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||N(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||N(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||N(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||N(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||N(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||N(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??N(this.primaryColor,{l:-30}),this.venn2=this.venn2??N(this.secondaryColor,{l:-30}),this.venn3=this.venn3??N(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??N(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??N(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??N(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??N(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??N(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||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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||N(this.primaryColor,{h:-30}),this.git4=this.git4||N(this.primaryColor,{h:-60}),this.git5=this.git5||N(this.primaryColor,{h:-90}),this.git6=this.git6||N(this.primaryColor,{h:60}),this.git7=this.git7||N(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||g(dt(this.git0),25),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||dt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||dt(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ur}calculate(r){if(Object.keys(this).forEach((o)=>{if(this[o]==="calculated")this[o]=void 0}),typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])})}},tt=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=h("#cde498",10),this.primaryBorderColor=ge(this.primaryColor,this.darkMode),this.secondaryBorderColor=ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ge(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.primaryColor),this.lineColor=dt(this.background),this.textColor=dt(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=g(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||N(this.primaryColor,{h:30}),this.cScale4=this.cScale4||N(this.primaryColor,{h:60}),this.cScale5=this.cScale5||N(this.primaryColor,{h:90}),this.cScale6=this.cScale6||N(this.primaryColor,{h:120}),this.cScale7=this.cScale7||N(this.primaryColor,{h:150}),this.cScale8=this.cScale8||N(this.primaryColor,{h:210}),this.cScale9=this.cScale9||N(this.primaryColor,{h:270}),this.cScale10=this.cScale10||N(this.primaryColor,{h:300}),this.cScale11=this.cScale11||N(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||g(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||g(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=g(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||g(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||N(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]||N(this.mainBkg,{h:30,s:-30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||N(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||h(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||h(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=N(this.primaryColor,{h:64}),this.fillType3=N(this.secondaryColor,{h:64}),this.fillType4=N(this.primaryColor,{h:-64}),this.fillType5=N(this.secondaryColor,{h:-64}),this.fillType6=N(this.primaryColor,{h:128}),this.fillType7=N(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||N(this.primaryColor,{l:-30}),this.pie5=this.pie5||N(this.secondaryColor,{l:-30}),this.pie6=this.pie6||N(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||N(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||N(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||N(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||N(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||N(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||N(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??N(this.primaryColor,{l:-30}),this.venn2=this.venn2??N(this.secondaryColor,{l:-30}),this.venn3=this.venn3??N(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??N(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??N(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??N(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??N(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??N(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||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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||N(this.primaryColor,{h:-30}),this.git4=this.git4||N(this.primaryColor,{h:-60}),this.git5=this.git5||N(this.primaryColor,{h:-90}),this.git6=this.git6||N(this.primaryColor,{h:60}),this.git7=this.git7||N(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||dt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||dt(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ur}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])})}},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=h(this.contrast,55),this.background="#ffffff",this.tertiaryColor=N(this.primaryColor,{h:-160}),this.primaryBorderColor=ge(this.primaryColor,this.darkMode),this.secondaryBorderColor=ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ge(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.lineColor=dt(this.background),this.textColor=dt(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||h(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=h(this.contrast,55),this.border2=this.contrast,this.actorBorder=h(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]||dt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)if(this.darkMode)this["cScalePeer"+r]=this["cScalePeer"+r]||h(this["cScale"+r],10);else this["cScalePeer"+r]=this["cScalePeer"+r]||g(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]||N(this.mainBkg,{l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||N(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=h(this.contrast,30),this.sectionBkgColor2=h(this.contrast,30),this.taskBorderColor=g(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=h(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=g(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=N(this.primaryColor,{h:64}),this.fillType3=N(this.secondaryColor,{h:64}),this.fillType4=N(this.primaryColor,{h:-64}),this.fillType5=N(this.secondaryColor,{h:-64}),this.fillType6=N(this.primaryColor,{h:128}),this.fillType7=N(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||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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=g(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||N(this.primaryColor,{h:-30}),this.git4=this.pie5||N(this.primaryColor,{h:-60}),this.git5=this.pie6||N(this.primaryColor,{h:-90}),this.git6=this.pie7||N(this.primaryColor,{h:60}),this.git7=this.pie8||N(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ur}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])})}},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=ge(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||N(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||N(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ge(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ge(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ge(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(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?g(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||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(this.lineColor),this.rectBkgColor=this.rectBkgColor||(he(this.background)?h(this.background,4):g(this.background,4));let r="#ECECFE",e="#E9E9F1",o=N(r,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||o,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||h(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||o,this.cScale3=this.cScale3||N(r,{h:30}),this.cScale4=this.cScale4||N(r,{h:60}),this.cScale5=this.cScale5||N(r,{h:90}),this.cScale6=this.cScale6||N(r,{h:120}),this.cScale7=this.cScale7||N(r,{h:150}),this.cScale8=this.cScale8||N(r,{h:210,l:150}),this.cScale9=this.cScale9||N(r,{h:270}),this.cScale10=this.cScale10||N(r,{h:300}),this.cScale11=this.cScale11||N(r,{h:330}),this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||dt(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)if(this.darkMode)this["cScalePeer"+s]=this["cScalePeer"+s]||h(this["cScale"+s],10);else this["cScalePeer"+s]=this["cScalePeer"+s]||g(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||N(this.mainBkg,{h:180,s:-15,l:a*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||N(this.mainBkg,{h:180,s:-15,l:a*(8+s*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||N(r,{h:64}),this.fillType3=this.fillType3||N(e,{h:64}),this.fillType4=this.fillType4||N(r,{h:-64}),this.fillType5=this.fillType5||N(e,{h:-64}),this.fillType6=this.fillType6||N(r,{h:128}),this.fillType7=this.fillType7||N(e,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||e,this.pie3=this.pie3||o,this.pie4=this.pie4||N(r,{l:-10}),this.pie5=this.pie5||N(e,{l:-10}),this.pie6=this.pie6||N(o,{l:-10}),this.pie7=this.pie7||N(r,{h:60,l:-10}),this.pie8=this.pie8||N(r,{h:-60,l:-10}),this.pie9=this.pie9||N(r,{h:120,l:0}),this.pie10=this.pie10||N(r,{h:60,l:-20}),this.pie11=this.pie11||N(r,{h:-60,l:-20}),this.pie12=this.pie12||N(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||N(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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?g(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||o,this.git3=this.git3||N(r,{h:-30}),this.git4=this.git4||N(r,{h:-60}),this.git5=this.git5||N(r,{h:-90}),this.git6=this.git6||N(r,{h:60}),this.git7=this.git7||N(r,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ur}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])})}},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=h(this.primaryColor,16),this.tertiaryColor=N(this.primaryColor,{h:-160}),this.primaryBorderColor=dt(this.background),this.secondaryBorderColor=ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ge(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(dt("#323D47"),10),this.border1="#ccc",this.border2=Oe(255,255,255,0.25),this.arrowheadColor=dt(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||N(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||N(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ge(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ge(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ge(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(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"?h(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?g(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||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(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||h(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||N(this.primaryColor,{h:30}),this.cScale4=this.cScale4||N(this.primaryColor,{h:60}),this.cScale5=this.cScale5||N(this.primaryColor,{h:90}),this.cScale6=this.cScale6||N(this.primaryColor,{h:120}),this.cScale7=this.cScale7||N(this.primaryColor,{h:150}),this.cScale8=this.cScale8||N(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||N(this.primaryColor,{h:270}),this.cScale10=this.cScale10||N(this.primaryColor,{h:300}),this.cScale11=this.cScale11||N(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||dt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||h(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||g(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]||N(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||N(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||N(this.primaryColor,{h:64}),this.fillType3=this.fillType3||N(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||N(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||N(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||N(this.primaryColor,{h:128}),this.fillType7=this.fillType7||N(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||N(this.primaryColor,{l:-10}),this.pie5=this.pie5||N(this.secondaryColor,{l:-10}),this.pie6=this.pie6||N(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||N(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||N(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||N(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||N(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||N(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||N(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||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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?g(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=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ur}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])})}};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=ge("#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||N(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||N(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ge(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ge(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ge(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(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?g(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||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(this.lineColor),this.rectBkgColor=this.rectBkgColor||(he(this.background)?h(this.background,4):g(this.background,4));let r="#ECECFE",e="#E9E9F1",o=N(r,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||o,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||h(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 s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=this.mainBkg;if(this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||dt(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)if(this.darkMode)this["cScalePeer"+s]=this["cScalePeer"+s]||h(this["cScale"+s],10);else this["cScalePeer"+s]=this["cScalePeer"+s]||g(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||N(this.mainBkg,{h:180,s:-15,l:a*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||N(this.mainBkg,{h:180,s:-15,l:a*(8+s*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||N(r,{h:64}),this.fillType3=this.fillType3||N(e,{h:64}),this.fillType4=this.fillType4||N(r,{h:-64}),this.fillType5=this.fillType5||N(e,{h:-64}),this.fillType6=this.fillType6||N(r,{h:128}),this.fillType7=this.fillType7||N(e,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||e,this.pie3=this.pie3||o,this.pie4=this.pie4||N(r,{l:-10}),this.pie5=this.pie5||N(e,{l:-10}),this.pie6=this.pie6||N(o,{l:-10}),this.pie7=this.pie7||N(r,{h:60,l:-10}),this.pie8=this.pie8||N(r,{h:-60,l:-10}),this.pie9=this.pie9||N(r,{h:120,l:0}),this.pie10=this.pie10||N(r,{h:60,l:-20}),this.pie11=this.pie11||N(r,{h:-60,l:-20}),this.pie12=this.pie12||N(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||N(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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?g(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||o,this.git3=this.git3||N(r,{h:-30}),this.git4=this.git4||N(r,{h:-60}),this.git5=this.git5||N(r,{h:-90}),this.git6=this.git6||N(r,{h:60}),this.git7=this.git7||N(r,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ur}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])})}},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=h(this.primaryColor,16),this.tertiaryColor=N(this.primaryColor,{h:-160}),this.primaryBorderColor=dt(this.background),this.secondaryBorderColor=ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ge(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(dt("#323D47"),10),this.border1="#ccc",this.border2=Oe(255,255,255,0.25),this.arrowheadColor=dt(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||N(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||N(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ge(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ge(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ge(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(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"?h(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?g(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||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(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||h(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||N(this.primaryColor,{h:30}),this.cScale4=this.cScale4||N(this.primaryColor,{h:60}),this.cScale5=this.cScale5||N(this.primaryColor,{h:90}),this.cScale6=this.cScale6||N(this.primaryColor,{h:120}),this.cScale7=this.cScale7||N(this.primaryColor,{h:150}),this.cScale8=this.cScale8||N(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||N(this.primaryColor,{h:270}),this.cScale10=this.cScale10||N(this.primaryColor,{h:300}),this.cScale11=this.cScale11||N(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||dt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||h(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||g(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]||N(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||N(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||N(this.primaryColor,{h:64}),this.fillType3=this.fillType3||N(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||N(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||N(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||N(this.primaryColor,{h:128}),this.fillType7=this.fillType7||N(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||N(this.primaryColor,{l:-10}),this.pie5=this.pie5||N(this.secondaryColor,{l:-10}),this.pie6=this.pie6||N(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||N(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||N(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||N(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||N(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||N(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||N(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||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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?g(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||N(this.primaryColor,{h:-30}),this.git4=this.git4||N(this.primaryColor,{h:-60}),this.git5=this.git5||N(this.primaryColor,{h:-90}),this.git6=this.git6||N(this.primaryColor,{h:60}),this.git7=this.git7||N(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ur}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])})}},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=ge("#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||N(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||N(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ge(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ge(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ge(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(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?g(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||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(this.lineColor),this.rectBkgColor=this.rectBkgColor||(he(this.background)?h(this.background,4):g(this.background,4));let r="#ECECFE",e="#E9E9F1",o=N(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||h(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 s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||dt(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)if(this.darkMode)this["cScalePeer"+s]=this["cScalePeer"+s]||h(this["cScale"+s],10);else this["cScalePeer"+s]=this["cScalePeer"+s]||g(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||N(this.mainBkg,{h:180,s:-15,l:a*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||N(this.mainBkg,{h:180,s:-15,l:a*(8+s*3)});this.classText=this.classText||this.textColor;for(let s=0;s<8;s++)this["fillType"+s]=this["fillType"+s]||this.bkgColorArray[s];for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["pie"+(s+1)]=this["pie"+(s+1)]||this["cScale"+s];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 s=0;s<8;s++)this["venn"+(s+1)]=this["venn"+(s+1)]??this.borderColorArray[s%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||N(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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?g(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||o,this.git3=this.git3||N(r,{h:-30}),this.git4=this.git4||N(r,{h:-60}),this.git5=this.git5||N(r,{h:-90}),this.git6=this.git6||N(r,{h:60}),this.git7=this.git7||N(r,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ur}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])})}},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=h(this.primaryColor,16),this.tertiaryColor=N(this.primaryColor,{h:-160}),this.primaryBorderColor=dt(this.background),this.secondaryBorderColor=ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ge(this.tertiaryColor,this.darkMode),this.primaryTextColor=dt(this.primaryColor),this.secondaryTextColor=dt(this.secondaryColor),this.tertiaryTextColor=dt(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(dt("#323D47"),10),this.border1="#ccc",this.border2=Oe(255,255,255,0.25),this.arrowheadColor=dt(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||N(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||N(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ge(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ge(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ge(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ge(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||dt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dt(this.tertiaryColor),this.lineColor=this.lineColor||dt(this.background),this.arrowheadColor=this.arrowheadColor||dt(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"?h(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?g(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||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dt(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||h(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 o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||dt(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||h(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||g(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=g(this["cScale"+o],75);let r=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||N(this.mainBkg,{h:180,s:-15,l:r*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||N(this.mainBkg,{h:180,s:-15,l:r*(8+o*3)});this.classText=this.classText||this.textColor,["#701a75","#134e4a","#7c2d12","#581c87","#14532d","#4c1d95","#7f1d1d","#713f12"].forEach((o,a)=>{this["fillType"+a]=this["fillType"+a]||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||"#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 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||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(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?g(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||N(this.primaryColor,{h:-30}),this.git4=this.git4||N(this.primaryColor,{h:-60}),this.git5=this.git5||N(this.primaryColor,{h:-90}),this.git6=this.git6||N(this.primaryColor,{h:60}),this.git7=this.git7||N(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||dt(this.git0),this.gitInv1=this.gitInv1||dt(this.git1),this.gitInv2=this.gitInv2||dt(this.git2),this.gitInv3=this.gitInv3||dt(this.git3),this.gitInv4=this.gitInv4||dt(this.git4),this.gitInv5=this.gitInv5||dt(this.git5),this.gitInv6=this.gitInv6||dt(this.git6),this.gitInv7=this.gitInv7||dt(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ur}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Dr(this[o],r[o])})}},xb=t((r)=>{let e=new yb;return e.calculate(r),e},"getThemeVariables"),sr={base:{getThemeVariables:JC},dark:{getThemeVariables:eb},default:{getThemeVariables:tt},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}},Ue={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={...Ue,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:sr.default.getThemeVariables(),sequence:{...Ue.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:Ue.class?.theme,look:Ue.class?.look,layout:Ue.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Ue.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ue.c4,useWidth:void 0,personFont:t(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Ue.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:{...Ue.pie,useWidth:984},xyChart:{...Ue.xyChart,useWidth:void 0},requirement:{...Ue.requirement,useWidth:void 0},packet:{...Ue.packet},eventmodeling:{...Ue.eventmodeling},treeView:{...Ue.treeView,useWidth:void 0},radar:{...Ue.radar},usecase:{...Ue.usecase},railroad:{...Ue.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:{...Ue.ishikawa},sankey:{...Ue.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:{...Ue.venn},cynefin:{...Ue.cynefin}},dp=t((r,e="")=>Object.keys(r).reduce((o,a)=>{if(Array.isArray(r[a]))return o;else if(typeof r[a]==="object"&&r[a]!==null)return[...o,e+a,...dp(r[a],"")];return[...o,e+a]},[]),"keyify"),Cb=new Set(dp(fp,"")),z=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 o of Object.keys(r)){let a=r[o];if(o.startsWith("__")||o.includes("proto")||o.includes("constr")||typeof a!=="string"||!e.test(a))i.debug("sanitize deleting dictionary entry:",o,a),delete r[o]}},"sanitizeDictionaryConfig"),Hs=t((r)=>{if(i.debug("sanitizeDirective called with",r),typeof r!=="object"||r==null)return;if(Array.isArray(r)){r.forEach((e)=>Hs(e));return}for(let e of Object.keys(r)){if(i.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Cb.has(e)||r[e]==null){i.debug("sanitize deleting key: ",e),delete r[e];continue}if(typeof r[e]==="object"){let a=wb[e];if(a)Sb(r[e],a);else i.debug("sanitizing object",e),Hs(r[e]);continue}let o=["themeCSS","fontFamily","altFontFamily"];for(let a of o)if(e.includes(a))i.debug("sanitizing css option",e),r[e]=Vs(r[e])}if(r.themeVariables)for(let e of Object.keys(r.themeVariables)){let o=r.themeVariables[e];if(o?.match&&!o.match(/^[\d "#%(),.;A-Za-z]+$/))r.themeVariables[e]=""}i.debug("After sanitization",r)},"sanitizeDirective"),Vs=t((r)=>{let e=0,o=0;for(let a of r){if(e<o)return"{ /* ERROR: Unbalanced CSS */ }";if(a==="{")e++;else if(a==="}")o++}if(e!==o)return"{ /* ERROR: Unbalanced CSS */ }";return r},"sanitizeCss"),_r=Object.freeze(z),Tb=["theme","look","layout"],_b=new Set(["classic","handDrawn","neo"]),Bb=t((r,e)=>{if(r==="theme")return e==="null"||Object.hasOwn(sr,e);return r!=="look"||_b.has(e)},"isUsableAppearance"),vb=t((r,e,o)=>{if(!r)return;return[r[e]?.[o],r[o]].find((s)=>s!==void 0&&Bb(o,s))},"readAppearance"),mn=t((r)=>r===!1||["false","null","0"].includes(String(r).trim().toLowerCase())?!1:!0,"evaluate"),ur=Ne({},_r),vn,Fn={},vi=[],Ns=Ne({},_r),zs,Lb=t((r,e)=>{if(!zs)return;let o=[e,...[...vi].reverse(),Fn,_r],a=r[zs];for(let s of Tb)for(let n of o){let c=vb(n,zs,s);if(c===void 0)continue;if(r[s]=c,a?.[s]!==void 0)a[s]=c;break}},"resolveAppearance"),ss=t((r,e)=>{let o=Ne({},r),a={};for(let n of e)pp(n),a=Ne(a,n);if(o=Ne(o,a),Lb(o,a),(Boolean(a.theme)||o.theme!==r.theme)&&o.theme&&Object.hasOwn(sr,o.theme)){let n=Ne({},vn),c=Ne(n.themeVariables||{},a.themeVariables);o.themeVariables=sr[o.theme].getThemeVariables(c)}return Ns=o,Ab(Ns),Ns},"updateCurrentConfig"),Co=t((r)=>{zs=r===void 0?void 0:kb(r),ss(ur,vi)},"setDiagramConfigScope"),yc=t((r)=>{if(ur=Ne({},_r),ur=Ne(ur,r),Fn=Ne({},r),r.theme&&Object.hasOwn(sr,r.theme))ur.themeVariables=sr[r.theme].getThemeVariables(r.themeVariables);return ss(ur,vi),ur},"setSiteConfig"),bc=t((r)=>{vn=Ne({},r)},"saveConfigFromInitialize"),xc=t((r)=>(ur=Ne(ur,r),Fn=Ne(Fn,r),ss(ur,vi),ur),"updateSiteConfig"),Gs=t(()=>Ne({},ur),"getSiteConfig"),Ws=t((r)=>(ss(Ns,[r]),S()),"setConfig"),S=t(()=>Ne({},Ns),"getConfig"),pp=t((r)=>{if(!r)return;["secure",...ur.secure??[]].forEach((e)=>{if(Object.hasOwn(r,e))i.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"),_c=t((r)=>{if(Hs(r),r.fontFamily&&!r.themeVariables?.fontFamily)r.themeVariables={...r.themeVariables,fontFamily:r.fontFamily};vi.push(r),ss(ur,vi)},"addDirective"),Mi=t((r=ur)=>{vi=[],zs=void 0,ss(r,vi)},"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;i.warn(Fb[r]),np[r]=!0},"issueWarning"),Ab=t((r)=>{if(!r)return;if(r.lazyLoadedDiagrams||r.loadExternalDiagramsAtStartup)gp("LAZY_LOAD_DEPRECATED")},"checkConfig"),wc=t(()=>{let r={};if(vn)r=Ne(r,vn);for(let e of vi)r=Ne(r,e);return r},"getUserDefinedConfig"),nt=t((r)=>{if(r.flowchart?.htmlLabels!=null)gp("FLOWCHART_HTML_LABELS_DEPRECATED");return mn(r.htmlLabels??r.flowchart?.htmlLabels??!0)},"getEffectiveHtmlLabels"),ma=/<\/?br\s*\/?>/gi,Mb=new RegExp(ma.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(){st.addHook("beforeSanitizeAttributes",(e)=>{if(e.tagName==="A"&&e.hasAttribute("target"))e.setAttribute("data-temp-href-target",e.getAttribute("target")??"")}),st.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(),st.sanitize(r)),"removeScript"),lp=t((r,e)=>{if(nt(e)){let o=e.securityLevel;if(o==="antiscript"||o==="strict"||o==="sandbox")r=yp(r);else if(o!=="loose")r=xp(r),r=r.replace(/</g,"<").replace(/>/g,">"),r=r.replace(/=/g,"="),r=Pb(r)}return r},"sanitizeMore"),G=t((r,e)=>{if(!r)return r;if(e.dompurifyConfig)r=st.sanitize(lp(r,e),e.dompurifyConfig).toString();else r=st.sanitize(lp(r,e),{FORBID_TAGS:["style"]}).toString();return r},"sanitizeText"),Ib=t((r,e)=>{if(typeof r==="string")return G(r,e);return r.flat().map((o)=>G(o,e))},"sanitizeTextOrArray"),$b=t((r)=>Mb.test(r),"hasBreaks"),Db=t((r)=>r.split(ma),"splitBreaks"),Pb=t((r)=>r.replace(/#br#/g,"<br/>"),"placeholderToBreak"),xp=t((r)=>r.replace(ma,"#br#"),"breakToPlaceholder"),Ys=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((o)=>!isNaN(o));return Math.max(...e)},"getMax"),qb=t(function(...r){let e=r.filter((o)=>!isNaN(o));return Math.min(...e)},"getMin"),cr=t(function(r){let e=r.split(/(,)/),o=[];for(let a=0;a<e.length;a++){let s=e[a];if(s===","&&a>0&&a+1<e.length){let n=e[a-1],c=e[a+1];if(Nb(n,c))s=n+","+c,a++,o.pop()}o.push(Wb(s))}return o.join("")},"parseGenericTypes"),ph=t((r,e)=>Math.max(0,r.split(e).length-1),"countOccurrence"),Nb=t((r,e)=>{let o=ph(r,"~"),a=ph(e,"~");return o===1&&a===1},"shouldCombineSets"),Wb=t((r)=>{let e=ph(r,"~"),o=!1;if(e<=1)return r;if(e%2!==0&&r.startsWith("~"))r=r.substring(1),o=!0;let a=[...r],s=a.indexOf("~"),n=a.lastIndexOf("~");while(s!==-1&&n!==-1&&s!==n)a[s]="<",a[n]=">",s=a.indexOf("~"),n=a.lastIndexOf("~");if(o)a.unshift("~");return a.join("")},"processSet"),hp=t(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Sn=/\$\$(.*?)\$\$/g,qe=t((r)=>(r.match(Sn)?.length??0)>0,"hasKatex"),Ja=t(async(r,e)=>{let o=document.createElement("div");o.innerHTML=await ei(r,e),o.id="katex-temp",o.style.visibility="hidden",o.style.position="absolute",o.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",o);let s={width:o.clientWidth,height:o.clientHeight};return o.remove(),s},"calculateMathMLDimensions"),zb=t(async(r,e)=>{if(!qe(r))return r;if(!(hp()||e.legacyMathML||e.forceLegacyMathML))return r.replace(Sn,"MathML is unsupported in this environment.");{let{default:o}=await (A("nj0cv1cq"),import("./chunk-nj0cv1cq.js")),a=e.forceLegacyMathML||!hp()&&e.legacyMathML?"htmlAndMathml":"mathml";return r.split(ma).map((s)=>qe(s)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>`:`<div>${s}</div>`).join("").replace(Sn,(s,n)=>o.renderToString(n,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}return r.replace(Sn,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),ei=t(async(r,e)=>G(await zb(r,e),e),"renderKatexSanitized"),C={getRows:Eb,sanitizeText:G,sanitizeTextOrArray:Ib,hasBreaks:$b,splitBreaks:Db,lineBreakRegex:ma,removeScript:yp,getUrl:Ys,evaluate:mn,getMax:Rb,getMin:qb},Hb=t(function(r,e){for(let o of e)r.attr(o[0],o[1])},"d3Attrs"),Yb=t(function(r,e,o){let a=new Map;if(o)a.set("width","100%"),a.set("style",`max-width: ${e}px;`);else a.set("height",r),a.set("width",e);return a},"calculateSvgSizeAttrs"),Y=t(function(r,e,o,a){let s=Yb(e,o,a);Hb(r,s)},"configureSvgSize"),fn=t(function(r,e,o,a){let s=e.node().getBBox(),{width:n,height:c}=s;i.info(`SVG bounds: ${n}x${c}`,s);let l=0,f=0;i.info(`Graph bounds: ${l}x${f}`,r),l=n+o*2,f=c+o*2,i.info(`Calculated bounds: ${l}x${f}`),Y(e,f,l,a);let p=`${s.x-o} ${s.y-o} ${s.width+2*o} ${s.height+2*o}`;e.attr("viewBox",p)},"setupGraphViewbox"),_n={};function So(r){return[...r.cssRules].map((e)=>e.cssText).join(`
|
|
7
|
+
`)}t(So,"cssStyleSheetToString");var Ub=t((r,e,o,a)=>{let s="";if(r in _n&&_n[r])s=_n[r]({...o,svgId:a});else i.warn(`No theme found for ${r}`);return`& {
|
|
8
|
+
font-family: ${o.fontFamily};
|
|
9
|
+
font-size: ${o.fontSize};
|
|
10
|
+
fill: ${o.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: ${o.errorBkgColor};
|
|
38
|
+
}
|
|
39
|
+
& .error-text {
|
|
40
|
+
fill: ${o.errorTextColor};
|
|
41
|
+
stroke: ${o.errorTextColor};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
& .edge-thickness-normal {
|
|
45
|
+
stroke-width: ${o.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: ${o.lineColor};
|
|
66
|
+
stroke: ${o.lineColor};
|
|
67
|
+
}
|
|
68
|
+
& .marker.cross {
|
|
69
|
+
stroke: ${o.lineColor};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
& svg {
|
|
73
|
+
font-family: ${o.fontFamily};
|
|
74
|
+
font-size: ${o.fontSize};
|
|
75
|
+
}
|
|
76
|
+
& p {
|
|
77
|
+
margin: 0
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
${s}
|
|
81
|
+
.node .neo-node {
|
|
82
|
+
stroke: ${o.nodeBorder};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
86
|
+
stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
|
|
87
|
+
filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-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: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
|
|
96
|
+
stroke-width: ${o.strokeWidth??1}px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-look="neo"].node .outer-path {
|
|
100
|
+
filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-look="neo"].node .neo-line path {
|
|
104
|
+
stroke: ${o.nodeBorder};
|
|
105
|
+
filter: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-look="neo"].node circle{
|
|
109
|
+
stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
|
|
110
|
+
filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-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: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
|
|
119
|
+
filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
123
|
+
stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
|
|
124
|
+
filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
${e}
|
|
128
|
+
`},"getStyles"),jb=t((r,e)=>{if(e!==void 0)_n[r]=e},"addStylesForDiagram"),kc=Ub,Ao={};or(Ao,{clear:()=>L,getAccDescription:()=>I,getAccTitle:()=>P,getDiagramTitle:()=>D,setAccDescription:()=>R,setAccTitle:()=>M,setDiagramTitle:()=>B});var gh="",mh="",yh="",xh=t((r)=>G(r,S()),"sanitizeText"),L=t(()=>{gh="",yh="",mh=""},"clear"),M=t((r)=>{gh=xh(r).replace(/^\s+/g,"")},"setAccTitle"),P=t(()=>gh,"getAccTitle"),R=t((r)=>{yh=xh(r).replace(/\n\s+/g,`
|
|
129
|
+
`)},"setAccDescription"),I=t(()=>yh,"getAccDescription"),B=t((r)=>{mh=xh(r)},"setDiagramTitle"),D=t(()=>mh,"getDiagramTitle"),cp=i,Gb=Ni,d=S,wr=Ws,Kr=_r,Mn=t((r)=>G(r,d()),"sanitizeText"),ti=fn,Xb=t(()=>Ao,"getCommonDb"),An={},Ri=t((r,e,o)=>{if(An[r])cp.warn(`Diagram with id ${r} already registered. Overwriting.`);if(An[r]=e,o)up(r,o);jb(r,e.styles),e.injectUtils?.(cp,Gb,d,Mn,ti,Xb(),()=>{})},"registerDiagram"),To=t((r)=>{if(r in An)return An[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,o={},a;r<e;++r){if(!(a=arguments[r]+"")||a in o||/[\s.]/.test(a))throw Error("illegal type: "+a);o[a]=[]}return new On(o)}function On(r){this._=r}function Zb(r,e){return r.trim().split(/^|\s+/).map(function(o){var a="",s=o.indexOf(".");if(s>=0)a=o.slice(s+1),o=o.slice(0,s);if(o&&!e.hasOwnProperty(o))throw Error("unknown type: "+o);return{type:o,name:a}})}On.prototype=bp.prototype={constructor:On,on:function(r,e){var o=this._,a=Zb(r+"",o),s,n=-1,c=a.length;if(arguments.length<2){while(++n<c)if((s=(r=a[n]).type)&&(s=Qb(o[s],r.name)))return s;return}if(e!=null&&typeof e!=="function")throw Error("invalid callback: "+e);while(++n<c)if(s=(r=a[n]).type)o[s]=Cp(o[s],r.name,e);else if(e==null)for(s in o)o[s]=Cp(o[s],r.name,null);return this},copy:function(){var r={},e=this._;for(var o in e)r[o]=e[o].slice();return new On(r)},call:function(r,e){if((s=arguments.length-2)>0)for(var o=Array(s),a=0,s,n;a<s;++a)o[a]=arguments[a+2];if(!this._.hasOwnProperty(r))throw Error("unknown type: "+r);for(n=this._[r],a=0,s=n.length;a<s;++a)n[a].value.apply(e,o)},apply:function(r,e,o){if(!this._.hasOwnProperty(r))throw Error("unknown type: "+r);for(var a=this._[r],s=0,n=a.length;s<n;++s)a[s].value.apply(e,o)}};function Qb(r,e){for(var o=0,a=r.length,s;o<a;++o)if((s=r[o]).name===e)return s.value}function Cp(r,e,o){for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r[a]=Kb,r=r.slice(0,a).concat(r.slice(a+1));break}if(o!=null)r.push({name:e,value:o});return r}var Ch=bp;var In="http://www.w3.org/1999/xhtml",bh={svg:"http://www.w3.org/2000/svg",xhtml:In,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function jr(r){var e=r+="",o=e.indexOf(":");if(o>=0&&(e=r.slice(0,o))!=="xmlns")r=r.slice(o+1);return bh.hasOwnProperty(e)?{space:bh[e],local:r}:r}function Jb(r){return function(){var e=this.ownerDocument,o=this.namespaceURI;return o===In&&e.documentElement.namespaceURI===In?e.createElement(r):e.createElementNS(o,r)}}function tk(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function Us(r){var e=jr(r);return(e.local?tk:Jb)(e)}function ek(){}function Ji(r){return r==null?ek:function(){return this.querySelector(r)}}function kh(r){if(typeof r!=="function")r=Ji(r);for(var e=this._groups,o=e.length,a=Array(o),s=0;s<o;++s)for(var n=e[s],c=n.length,l=a[s]=Array(c),f,p,u=0;u<c;++u)if((f=n[u])&&(p=r.call(f,f.__data__,u,n))){if("__data__"in f)p.__data__=f.__data__;l[u]=p}return new De(a,this._parents)}function wh(r){return r==null?[]:Array.isArray(r)?r:Array.from(r)}function rk(){return[]}function as(r){return r==null?rk:function(){return this.querySelectorAll(r)}}function ik(r){return function(){return wh(r.apply(this,arguments))}}function Sh(r){if(typeof r==="function")r=ik(r);else r=as(r);for(var e=this._groups,o=e.length,a=[],s=[],n=0;n<o;++n)for(var c=e[n],l=c.length,f,p=0;p<l;++p)if(f=c[p])a.push(r.call(f,f.__data__,p,c)),s.push(f);return new De(a,s)}function ns(r){return function(){return this.matches(r)}}function $n(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 Th(r){return this.select(r==null?ak:sk(typeof r==="function"?r:$n(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 _h(r){return this.selectAll(r==null?lk:hk(typeof r==="function"?r:$n(r)))}function Bh(r){if(typeof r!=="function")r=ns(r);for(var e=this._groups,o=e.length,a=Array(o),s=0;s<o;++s)for(var n=e[s],c=n.length,l=a[s]=[],f,p=0;p<c;++p)if((f=n[p])&&r.call(f,f.__data__,p,n))l.push(f);return new De(a,this._parents)}function ra(r){return Array(r.length)}function vh(){return new De(this._enter||this._groups.map(ra),this._parents)}function ia(r,e){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=e}ia.prototype={constructor:ia,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 Lh(r){return function(){return r}}function ck(r,e,o,a,s,n){var c=0,l,f=e.length,p=n.length;for(;c<p;++c)if(l=e[c])l.__data__=n[c],a[c]=l;else o[c]=new ia(r,n[c]);for(;c<f;++c)if(l=e[c])s[c]=l}function uk(r,e,o,a,s,n,c){var l,f,p=new Map,u=e.length,m=n.length,y=Array(u),k;for(l=0;l<u;++l)if(f=e[l])if(y[l]=k=c.call(f,f.__data__,l,e)+"",p.has(k))s[l]=f;else p.set(k,f);for(l=0;l<m;++l)if(k=c.call(r,n[l],l,n)+"",f=p.get(k))a[l]=f,f.__data__=n[l],p.delete(k);else o[l]=new ia(r,n[l]);for(l=0;l<u;++l)if((f=e[l])&&p.get(y[l])===f)s[l]=f}function fk(r){return r.__data__}function Fh(r,e){if(!arguments.length)return Array.from(this,fk);var o=e?uk:ck,a=this._parents,s=this._groups;if(typeof r!=="function")r=Lh(r);for(var n=s.length,c=Array(n),l=Array(n),f=Array(n),p=0;p<n;++p){var u=a[p],m=s[p],y=m.length,k=dk(r.call(u,u&&u.__data__,p,a)),w=k.length,_=l[p]=Array(w),O=c[p]=Array(w),q=f[p]=Array(y);o(u,m,_,O,q,k,e);for(var W=0,j=0,Q,J;W<w;++W)if(Q=_[W]){if(W>=j)j=W+1;while(!(J=O[j])&&++j<w);Q._next=J||null}}return c=new De(c,a),c._enter=l,c._exit=f,c}function dk(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function Ah(){return new De(this._exit||this._groups.map(ra),this._parents)}function Mh(r,e,o){var a=this.enter(),s=this,n=this.exit();if(typeof r==="function"){if(a=r(a),a)a=a.selection()}else a=a.append(r+"");if(e!=null){if(s=e(s),s)s=s.selection()}if(o==null)n.remove();else o(n);return a&&s?a.merge(s).order():s}function Eh(r){var e=r.selection?r.selection():r;for(var o=this._groups,a=e._groups,s=o.length,n=a.length,c=Math.min(s,n),l=Array(s),f=0;f<c;++f)for(var p=o[f],u=a[f],m=p.length,y=l[f]=Array(m),k,w=0;w<m;++w)if(k=p[w]||u[w])y[w]=k;for(;f<s;++f)l[f]=o[f];return new De(l,this._parents)}function Oh(){for(var r=this._groups,e=-1,o=r.length;++e<o;)for(var a=r[e],s=a.length-1,n=a[s],c;--s>=0;)if(c=a[s]){if(n&&c.compareDocumentPosition(n)^4)n.parentNode.insertBefore(c,n);n=c}return this}function Ih(r){if(!r)r=pk;function e(m,y){return m&&y?r(m.__data__,y.__data__):!m-!y}for(var o=this._groups,a=o.length,s=Array(a),n=0;n<a;++n){for(var c=o[n],l=c.length,f=s[n]=Array(l),p,u=0;u<l;++u)if(p=c[u])f[u]=p;f.sort(e)}return new De(s,this._parents).order()}function pk(r,e){return r<e?-1:r>e?1:r>=e?0:NaN}function $h(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function Dh(){return Array.from(this)}function Ph(){for(var r=this._groups,e=0,o=r.length;e<o;++e)for(var a=r[e],s=0,n=a.length;s<n;++s){var c=a[s];if(c)return c}return null}function Rh(){let r=0;for(let e of this)++r;return r}function qh(){return!this.node()}function Nh(r){for(var e=this._groups,o=0,a=e.length;o<a;++o)for(var s=e[o],n=0,c=s.length,l;n<c;++n)if(l=s[n])r.call(l,l.__data__,n,s);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 o=e.apply(this,arguments);if(o==null)this.removeAttribute(r);else this.setAttribute(r,o)}}function bk(r,e){return function(){var o=e.apply(this,arguments);if(o==null)this.removeAttributeNS(r.space,r.local);else this.setAttributeNS(r.space,r.local,o)}}function Wh(r,e){var o=jr(r);if(arguments.length<2){var a=this.node();return o.local?a.getAttributeNS(o.space,o.local):a.getAttribute(o)}return this.each((e==null?o.local?mk:gk:typeof e==="function"?o.local?bk:Ck:o.local?xk:yk)(o,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,o){return function(){this.style.setProperty(r,e,o)}}function Sk(r,e,o){return function(){var a=e.apply(this,arguments);if(a==null)this.style.removeProperty(r);else this.style.setProperty(r,a,o)}}function zh(r,e,o){return arguments.length>1?this.each((e==null?kk:typeof e==="function"?Sk:wk)(r,e,o==null?"":o)):to(this.node(),r)}function to(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 o=e.apply(this,arguments);if(o==null)delete this[r];else this[r]=o}}function Hh(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 Yh(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 o=Yh(r),a=-1,s=e.length;while(++a<s)o.add(e[a])}function Tp(r,e){var o=Yh(r),a=-1,s=e.length;while(++a<s)o.remove(e[a])}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 Uh(r,e){var o=kp(r+"");if(arguments.length<2){var a=Yh(this.node()),s=-1,n=o.length;while(++s<n)if(!a.contains(o[s]))return!1;return!0}return this.each((typeof e==="function"?Fk:e?vk:Lk)(o,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 jh(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 Gh(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 Xh(){return this.each(Dk)}function Pk(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Vh(){return this.each(Pk)}function Kh(r){var e=typeof r==="function"?r:Us(r);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Rk(){return null}function Zh(r,e){var o=typeof r==="function"?r:Us(r),a=e==null?Rk:typeof e==="function"?e:Ji(e);return this.select(function(){return this.insertBefore(o.apply(this,arguments),a.apply(this,arguments)||null)})}function qk(){var r=this.parentNode;if(r)r.removeChild(this)}function Qh(){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 Jh(r){return this.select(r?Wk:Nk)}function sc(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 o="",a=e.indexOf(".");if(a>=0)o=e.slice(a+1),e=e.slice(0,a);return{type:e,name:o}})}function Yk(r){return function(){var e=this.__on;if(!e)return;for(var o=0,a=-1,s=e.length,n;o<s;++o)if(n=e[o],(!r.type||n.type===r.type)&&n.name===r.name)this.removeEventListener(n.type,n.listener,n.options);else e[++a]=n;if(++a)e.length=a;else delete this.__on}}function Uk(r,e,o){return function(){var a=this.__on,s,n=zk(e);if(a){for(var c=0,l=a.length;c<l;++c)if((s=a[c]).type===r.type&&s.name===r.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=n,s.options=o),s.value=e;return}}if(this.addEventListener(r.type,n,o),s={type:r.type,name:r.name,value:e,listener:n,options:o},!a)this.__on=[s];else a.push(s)}}function lc(r,e,o){var a=Hk(r+""),s,n=a.length,c;if(arguments.length<2){var l=this.node().__on;if(l){for(var f=0,p=l.length,u;f<p;++f)for(s=0,u=l[f];s<n;++s)if((c=a[s]).type===u.type&&c.name===u.name)return u.value}return}l=e?Uk:Yk;for(s=0;s<n;++s)this.each(l(a[s],e,o));return this}function _p(r,e,o){var a=oa(r),s=a.CustomEvent;if(typeof s==="function")s=new s(e,o);else if(s=a.document.createEvent("Event"),o)s.initEvent(e,o.bubbles,o.cancelable),s.detail=o.detail;else s.initEvent(e,!1,!1);r.dispatchEvent(s)}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 hc(r,e){return this.each((typeof e==="function"?Gk:jk)(r,e))}function*cc(){for(var r=this._groups,e=0,o=r.length;e<o;++e)for(var a=r[e],s=0,n=a.length,c;s<n;++s)if(c=a[s])yield c}var uc=[null];function De(r,e){this._groups=r,this._parents=e}function Bp(){return new De([[document.documentElement]],uc)}function Xk(){return this}De.prototype=Bp.prototype={constructor:De,select:kh,selectAll:Sh,selectChild:Th,selectChildren:_h,filter:Bh,data:Fh,enter:vh,exit:Ah,join:Mh,merge:Eh,selection:Xk,order:Oh,sort:Ih,call:$h,nodes:Dh,node:Ph,size:Rh,empty:qh,each:Nh,attr:Wh,style:zh,property:Hh,classed:Uh,text:jh,html:Gh,raise:Xh,lower:Vh,append:Kh,insert:Zh,remove:Qh,clone:Jh,datum:sc,on:lc,dispatch:hc,[Symbol.iterator]:cc};var Li=Bp;function v(r){return typeof r==="string"?new De([[document.querySelector(r)]],[document.documentElement]):new De([[r]],uc)}function Zr(r,e,o){r.prototype=e.prototype=o,o.constructor=r}function ni(r,e){var o=Object.create(r.prototype);for(var a in e)o[a]=e[a];return o}function Qr(){}var sa=0.7,Rn=1/sa,ls="\\s*([+-]?\\d+)\\s*",aa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vk=/^#([0-9a-f]{3,8})$/,Kk=new RegExp(`^rgb\\(${ls},${ls},${ls}\\)$`),Zk=new RegExp(`^rgb\\(${Gr},${Gr},${Gr}\\)$`),Qk=new RegExp(`^rgba\\(${ls},${ls},${ls},${aa}\\)$`),Jk=new RegExp(`^rgba\\(${Gr},${Gr},${Gr},${aa}\\)$`),t1=new RegExp(`^hsl\\(${aa},${Gr},${Gr}\\)$`),e1=new RegExp(`^hsla\\(${aa},${Gr},${Gr},${aa}\\)$`),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};Zr(Qr,Un,{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 Un(r){var e,o;return r=(r+"").trim().toLowerCase(),(e=Vk.exec(r))?(o=e[1].length,e=parseInt(e[1],16),o===6?Ap(e):o===3?new Rt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):o===8?Dn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):o===4?Dn(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 Rt(e[1],e[2],e[3],1):(e=Zk.exec(r))?new Rt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Qk.exec(r))?Dn(e[1],e[2],e[3],e[4]):(e=Jk.exec(r))?Dn(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 Rt(NaN,NaN,NaN,0):null}function Ap(r){return new Rt(r>>16&255,r>>8&255,r&255,1)}function Dn(r,e,o,a){if(a<=0)r=e=o=NaN;return new Rt(r,e,o,a)}function Xs(r){if(!(r instanceof Qr))r=Un(r);if(!r)return new Rt;return r=r.rgb(),new Rt(r.r,r.g,r.b,r.opacity)}function hs(r,e,o,a){return arguments.length===1?Xs(r):new Rt(r,e,o,a==null?1:a)}function Rt(r,e,o,a){this.r=+r,this.g=+e,this.b=+o,this.opacity=+a}Zr(Rt,hs,ni(Qr,{brighter(r){return r=r==null?Rn:Math.pow(Rn,r),new Rt(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?sa:Math.pow(sa,r),new Rt(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Rt(lo(this.r),lo(this.g),lo(this.b),Nn(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`#${no(this.r)}${no(this.g)}${no(this.b)}`}function o1(){return`#${no(this.r)}${no(this.g)}${no(this.b)}${no((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ep(){let r=Nn(this.opacity);return`${r===1?"rgb(":"rgba("}${lo(this.r)}, ${lo(this.g)}, ${lo(this.b)}${r===1?")":`, ${r})`}`}function Nn(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function lo(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function no(r){return r=lo(r),(r<16?"0":"")+r.toString(16)}function Op(r,e,o,a){if(a<=0)r=e=o=NaN;else if(o<=0||o>=1)r=e=NaN;else if(e<=0)r=NaN;return new Pr(r,e,o,a)}function $p(r){if(r instanceof Pr)return new Pr(r.h,r.s,r.l,r.opacity);if(!(r instanceof Qr))r=Un(r);if(!r)return new Pr;if(r instanceof Pr)return r;r=r.rgb();var e=r.r/255,o=r.g/255,a=r.b/255,s=Math.min(e,o,a),n=Math.max(e,o,a),c=NaN,l=n-s,f=(n+s)/2;if(l){if(e===n)c=(o-a)/l+(o<a)*6;else if(o===n)c=(a-e)/l+2;else c=(e-o)/l+4;l/=f<0.5?n+s:2-n-s,c*=60}else l=f>0&&f<1?0:c;return new Pr(c,l,f,r.opacity)}function Dp(r,e,o,a){return arguments.length===1?$p(r):new Pr(r,e,o,a==null?1:a)}function Pr(r,e,o,a){this.h=+r,this.s=+e,this.l=+o,this.opacity=+a}Zr(Pr,Dp,ni(Qr,{brighter(r){return r=r==null?Rn:Math.pow(Rn,r),new Pr(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?sa:Math.pow(sa,r),new Pr(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,o=this.l,a=o+(o<0.5?o:1-o)*e,s=2*o-a;return new Rt(fc(r>=240?r-240:r+120,s,a),fc(r,s,a),fc(r<120?r+240:r-120,s,a),this.opacity)},clamp(){return new Pr(Ip(this.h),Pn(this.s),Pn(this.l),Nn(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=Nn(this.opacity);return`${r===1?"hsl(":"hsla("}${Ip(this.h)}, ${Pn(this.s)*100}%, ${Pn(this.l)*100}%${r===1?")":`, ${r})`}`}}));function Ip(r){return r=(r||0)%360,r<0?r+360:r}function Pn(r){return Math.max(0,Math.min(1,r||0))}function fc(r,e,o){return(r<60?e+(o-e)*r/60:r<180?o:r<240?e+(o-e)*(240-r)/60:e)*255}function dc(r,e,o,a,s){var n=r*r,c=n*r;return((1-3*r+3*n-c)*e+(4-6*n+3*c)*o+(1+3*r+3*n-3*c)*a+c*s)/6}function pc(r){var e=r.length-1;return function(o){var a=o<=0?o=0:o>=1?(o=1,e-1):Math.floor(o*e),s=r[a],n=r[a+1],c=a>0?r[a-1]:2*s-n,l=a<e-1?r[a+2]:2*n-s;return dc((o-a/e)*e,c,s,n,l)}}function gc(r){var e=r.length;return function(o){var a=Math.floor(((o%=1)<0?++o:o)*e),s=r[(a+e-1)%e],n=r[a%e],c=r[(a+1)%e],l=r[(a+2)%e];return dc((o-a/e)*e,s,n,c,l)}}var ri=(r)=>()=>r;function Pp(r,e){return function(o){return r+o*e}}function s1(r,e,o){return r=Math.pow(r,o),e=Math.pow(e,o)-r,o=1/o,function(a){return Math.pow(r+a*e,o)}}function Cc(r,e){var o=e-r;return o?Pp(r,o>180||o<-180?o-360*Math.round(o/360):o):ri(isNaN(r)?e:r)}function Rp(r){return(r=+r)===1?kr:function(e,o){return o-e?s1(e,o,r):ri(isNaN(e)?o:e)}}function kr(r,e){var o=e-r;return o?Pp(r,o):ri(isNaN(r)?e:r)}var fa=function r(e){var o=Rp(e);function a(s,n){var c=o((s=hs(s)).r,(n=hs(n)).r),l=o(s.g,n.g),f=o(s.b,n.b),p=kr(s.opacity,n.opacity);return function(u){return s.r=c(u),s.g=l(u),s.b=f(u),s.opacity=p(u),s+""}}return a.gamma=r,a}(1);function qp(r){return function(e){var o=e.length,a=Array(o),s=Array(o),n=Array(o),c,l;for(c=0;c<o;++c)l=hs(e[c]),a[c]=l.r||0,s[c]=l.g||0,n[c]=l.b||0;return a=r(a),s=r(s),n=r(n),l.opacity=1,function(f){return l.r=a(f),l.g=s(f),l.b=n(f),l+""}}}var a1=qp(pc),n1=qp(gc);function kt(r,e){return r=+r,e=+e,function(o){return r*(1-o)+e*o}}var Bc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mc=new RegExp(Bc.source,"g");function l1(r){return function(){return r}}function h1(r){return function(e){return r(e)+""}}function ai(r,e){var o=Bc.lastIndex=mc.lastIndex=0,a,s,n,c=-1,l=[],f=[];r=r+"",e=e+"";while((a=Bc.exec(r))&&(s=mc.exec(e))){if((n=s.index)>o)if(n=e.slice(o,n),l[c])l[c]+=n;else l[++c]=n;if((a=a[0])===(s=s[0]))if(l[c])l[c]+=s;else l[++c]=s;else l[++c]=null,f.push({i:c,x:kt(a,s)});o=mc.lastIndex}if(o<e.length)if(n=e.slice(o),l[c])l[c]+=n;else l[++c]=n;return l.length<2?f[0]?h1(f[0].x):l1(e):(e=f.length,function(p){for(var u=0,m;u<e;++u)l[(m=f[u]).i]=m.x(p);return l.join("")})}var Np=180/Math.PI,Wn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zn(r,e,o,a,s,n){var c,l,f;if(c=Math.sqrt(r*r+e*e))r/=c,e/=c;if(f=r*o+e*a)o-=r*f,a-=e*f;if(l=Math.sqrt(o*o+a*a))o/=l,a/=l,f/=l;if(r*a<e*o)r=-r,e=-e,f=-f,c=-c;return{translateX:s,translateY:n,rotate:Math.atan2(e,r)*Np,skewX:Math.atan(f)*Np,scaleX:c,scaleY:l}}var Hn;function Wp(r){let e=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(r+"");return e.isIdentity?Wn:zn(e.a,e.b,e.c,e.d,e.e,e.f)}function zp(r){if(r==null)return Wn;if(!Hn)Hn=document.createElementNS("http://www.w3.org/2000/svg","g");if(Hn.setAttribute("transform",r),!(r=Hn.transform.baseVal.consolidate()))return Wn;return r=r.matrix,zn(r.a,r.b,r.c,r.d,r.e,r.f)}function Hp(r,e,o,a){function s(p){return p.length?p.pop()+" ":""}function n(p,u,m,y,k,w){if(p!==m||u!==y){var _=k.push("translate(",null,e,null,o);w.push({i:_-4,x:kt(p,m)},{i:_-2,x:kt(u,y)})}else if(m||y)k.push("translate("+m+e+y+o)}function c(p,u,m,y){if(p!==u){if(p-u>180)u+=360;else if(u-p>180)p+=360;y.push({i:m.push(s(m)+"rotate(",null,a)-2,x:kt(p,u)})}else if(u)m.push(s(m)+"rotate("+u+a)}function l(p,u,m,y){if(p!==u)y.push({i:m.push(s(m)+"skewX(",null,a)-2,x:kt(p,u)});else if(u)m.push(s(m)+"skewX("+u+a)}function f(p,u,m,y,k,w){if(p!==m||u!==y){var _=k.push(s(k)+"scale(",null,",",null,")");w.push({i:_-4,x:kt(p,m)},{i:_-2,x:kt(u,y)})}else if(m!==1||y!==1)k.push(s(k)+"scale("+m+","+y+")")}return function(p,u){var m=[],y=[];return p=r(p),u=r(u),n(p.translateX,p.translateY,u.translateX,u.translateY,m,y),c(p.rotate,u.rotate,m,y),l(p.skewX,u.skewX,m,y),f(p.scaleX,p.scaleY,u.scaleX,u.scaleY,m,y),p=u=null,function(k){var w=-1,_=y.length,O;while(++w<_)m[(O=y[w]).i]=O.x(k);return m.join("")}}}var Fc=Hp(Wp,"px, ","px)","deg)"),Oc=Hp(zp,", ",")",")");var cs=0,ca=0,la=0,Up=1000,Yn,ua,Gn=0,ho=0,Xn=0,da=typeof performance==="object"&&performance.now?performance:Date,jp=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function Ca(){return ho||(jp(c1),ho=da.now()+Xn)}function c1(){ho=0}function pa(){this._call=this._time=this._next=null}pa.prototype=Vn.prototype={constructor:pa,restart:function(r,e,o){if(typeof r!=="function")throw TypeError("callback is not a function");if(o=(o==null?Ca():+o)+(e==null?0:+e),!this._next&&ua!==this){if(ua)ua._next=this;else Yn=this;ua=this}this._call=r,this._time=o,Ic()},stop:function(){if(this._call)this._call=null,this._time=1/0,Ic()}};function Vn(r,e,o){var a=new pa;return a.restart(r,e,o),a}function Gp(){Ca(),++cs;var r=Yn,e;while(r){if((e=ho-r._time)>=0)r._call.call(void 0,e);r=r._next}--cs}function Yp(){ho=(Gn=da.now())+Xn,cs=ca=0;try{Gp()}finally{cs=0,f1(),ho=0}}function u1(){var r=da.now(),e=r-Gn;if(e>Up)Xn-=e,Gn=r}function f1(){var r,e=Yn,o,a=1/0;while(e)if(e._call){if(a>e._time)a=e._time;r=e,e=e._next}else o=e._next,e._next=null,e=r?r._next=o:Yn=o;ua=r,Ic(a)}function Ic(r){if(cs)return;if(ca)ca=clearTimeout(ca);var e=r-ho;if(e>24){if(r<1/0)ca=setTimeout(Yp,r-da.now()-Xn);if(la)la=clearInterval(la)}else{if(!la)Gn=da.now(),la=setInterval(u1,Up);cs=1,jp(Yp)}}function Sa(r,e,o){var a=new pa;return e=e==null?0:+e,a.restart((s)=>{a.stop(),r(s+e)},e,o),a}var d1=Ch("start","end","cancel","interrupt"),p1=[],Kp=0,Xp=1,Zn=2,Kn=3,Vp=4,Qn=5,Ta=6;function Ai(r,e,o,a,s,n){var c=r.__transition;if(!c)r.__transition={};else if(o in c)return;g1(r,o,{name:e,index:a,group:s,on:d1,tween:p1,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:Kp})}function Ba(r,e){var o=Ke(r,e);if(o.state>Kp)throw Error("too late; already scheduled");return o}function er(r,e){var o=Ke(r,e);if(o.state>Kn)throw Error("too late; already running");return o}function Ke(r,e){var o=r.__transition;if(!o||!(o=o[e]))throw Error("transition not found");return o}function g1(r,e,o){var a=r.__transition,s;a[e]=o,o.timer=Vn(n,0,o.time);function n(p){if(o.state=Xp,o.timer.restart(c,o.delay,o.time),o.delay<=p)c(p-o.delay)}function c(p){var u,m,y,k;if(o.state!==Xp)return f();for(u in a){if(k=a[u],k.name!==o.name)continue;if(k.state===Kn)return Sa(c);if(k.state===Vp)k.state=Ta,k.timer.stop(),k.on.call("interrupt",r,r.__data__,k.index,k.group),delete a[u];else if(+u<e)k.state=Ta,k.timer.stop(),k.on.call("cancel",r,r.__data__,k.index,k.group),delete a[u]}if(Sa(function(){if(o.state===Kn)o.state=Vp,o.timer.restart(l,o.delay,o.time),l(p)}),o.state=Zn,o.on.call("start",r,r.__data__,o.index,o.group),o.state!==Zn)return;o.state=Kn,s=Array(y=o.tween.length);for(u=0,m=-1;u<y;++u)if(k=o.tween[u].value.call(r,r.__data__,o.index,o.group))s[++m]=k;s.length=m+1}function l(p){var u=p<o.duration?o.ease.call(null,p/o.duration):(o.timer.restart(f),o.state=Qn,1),m=-1,y=s.length;while(++m<y)s[m].call(r,u);if(o.state===Qn)o.on.call("end",r,r.__data__,o.index,o.group),f()}function f(){o.state=Ta,o.timer.stop(),delete a[e];for(var p in a)return;delete r.__transition}}function La(r,e){var o=r.__transition,a,s,n=!0,c;if(!o)return;e=e==null?null:e+"";for(c in o){if((a=o[c]).name!==e){n=!1;continue}s=a.state>Zn&&a.state<Qn,a.state=Ta,a.timer.stop(),a.on.call(s?"interrupt":"cancel",r,r.__data__,a.index,a.group),delete o[c]}if(n)delete r.__transition}function $c(r){return this.each(function(){La(this,r)})}function m1(r,e){var o,a;return function(){var s=er(this,r),n=s.tween;if(n!==o){a=o=n;for(var c=0,l=a.length;c<l;++c)if(a[c].name===e){a=a.slice(),a.splice(c,1);break}}s.tween=a}}function y1(r,e,o){var a,s;if(typeof o!=="function")throw Error();return function(){var n=er(this,r),c=n.tween;if(c!==a){s=(a=c).slice();for(var l={name:e,value:o},f=0,p=s.length;f<p;++f)if(s[f].name===e){s[f]=l;break}if(f===p)s.push(l)}n.tween=s}}function Dc(r,e){var o=this._id;if(r+="",arguments.length<2){var a=Ke(this.node(),o).tween;for(var s=0,n=a.length,c;s<n;++s)if((c=a[s]).name===r)return c.value;return null}return this.each((e==null?m1:y1)(o,r,e))}function us(r,e,o){var a=r._id;return r.each(function(){var s=er(this,a);(s.value||(s.value={}))[e]=o.apply(this,arguments)}),function(s){return Ke(s,a).value[e]}}function Fa(r,e){var o;return(typeof e==="number"?kt:e instanceof Un?fa:(o=Un(e))?(e=o,fa):ai)(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,o){var a,s=o+"",n;return function(){var c=this.getAttribute(r);return c===s?null:c===a?n:n=e(a=c,o)}}function k1(r,e,o){var a,s=o+"",n;return function(){var c=this.getAttributeNS(r.space,r.local);return c===s?null:c===a?n:n=e(a=c,o)}}function w1(r,e,o){var a,s,n;return function(){var c,l=o(this),f;if(l==null)return void this.removeAttribute(r);return c=this.getAttribute(r),f=l+"",c===f?null:c===a&&f===s?n:(s=f,n=e(a=c,l))}}function S1(r,e,o){var a,s,n;return function(){var c,l=o(this),f;if(l==null)return void this.removeAttributeNS(r.space,r.local);return c=this.getAttributeNS(r.space,r.local),f=l+"",c===f?null:c===a&&f===s?n:(s=f,n=e(a=c,l))}}function qc(r,e){var o=jr(r),a=o==="transform"?Oc:Fa;return this.attrTween(r,typeof e==="function"?(o.local?S1:w1)(o,a,us(this,"attr."+r,e)):e==null?(o.local?C1:x1)(o):(o.local?k1:b1)(o,a,e))}function T1(r,e){return function(o){this.setAttribute(r,e.call(this,o))}}function _1(r,e){return function(o){this.setAttributeNS(r.space,r.local,e.call(this,o))}}function B1(r,e){var o,a;function s(){var n=e.apply(this,arguments);if(n!==a)o=(a=n)&&_1(r,n);return o}return s._value=e,s}function v1(r,e){var o,a;function s(){var n=e.apply(this,arguments);if(n!==a)o=(a=n)&&T1(r,n);return o}return s._value=e,s}function Wc(r,e){var o="attr."+r;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!=="function")throw Error();var a=jr(r);return this.tween(o,(a.local?B1:v1)(a,e))}function L1(r,e){return function(){Ba(this,r).delay=+e.apply(this,arguments)}}function F1(r,e){return e=+e,function(){Ba(this,r).delay=e}}function zc(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?L1:F1)(e,r)):Ke(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)):Ke(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)):Ke(this.node(),e).ease}function O1(r,e){return function(){var o=e.apply(this,arguments);if(typeof o!=="function")throw Error();er(this,r).ease=o}}function Uc(r){if(typeof r!=="function")throw Error();return this.each(O1(this._id,r))}function jc(r){if(typeof r!=="function")r=ns(r);for(var e=this._groups,o=e.length,a=Array(o),s=0;s<o;++s)for(var n=e[s],c=n.length,l=a[s]=[],f,p=0;p<c;++p)if((f=n[p])&&r.call(f,f.__data__,p,n))l.push(f);return new fr(a,this._parents,this._name,this._id)}function Gc(r){if(r._id!==this._id)throw Error();for(var e=this._groups,o=r._groups,a=e.length,s=o.length,n=Math.min(a,s),c=Array(a),l=0;l<n;++l)for(var f=e[l],p=o[l],u=f.length,m=c[l]=Array(u),y,k=0;k<u;++k)if(y=f[k]||p[k])m[k]=y;for(;l<a;++l)c[l]=e[l];return new fr(c,this._parents,this._name,this._id)}function I1(r){return(r+"").trim().split(/^|\s+/).every(function(e){var o=e.indexOf(".");if(o>=0)e=e.slice(0,o);return!e||e==="start"})}function $1(r,e,o){var a,s,n=I1(e)?Ba:er;return function(){var c=n(this,r),l=c.on;if(l!==a)(s=(a=l).copy()).on(e,o);c.on=s}}function Xc(r,e){var o=this._id;return arguments.length<2?Ke(this.node(),o).on.on(r):this.each($1(o,r,e))}function D1(r){return function(){var e=this.parentNode;for(var o in this.__transition)if(+o!==r)return;if(e)e.removeChild(this)}}function Vc(){return this.on("end.remove",D1(this._id))}function Kc(r){var e=this._name,o=this._id;if(typeof r!=="function")r=Ji(r);for(var a=this._groups,s=a.length,n=Array(s),c=0;c<s;++c)for(var l=a[c],f=l.length,p=n[c]=Array(f),u,m,y=0;y<f;++y)if((u=l[y])&&(m=r.call(u,u.__data__,y,l))){if("__data__"in u)m.__data__=u.__data__;p[y]=m,Ai(p[y],e,o,y,p,Ke(u,o))}return new fr(n,this._parents,e,o)}function Zc(r){var e=this._name,o=this._id;if(typeof r!=="function")r=as(r);for(var a=this._groups,s=a.length,n=[],c=[],l=0;l<s;++l)for(var f=a[l],p=f.length,u,m=0;m<p;++m)if(u=f[m]){for(var y=r.call(u,u.__data__,m,f),k,w=Ke(u,o),_=0,O=y.length;_<O;++_)if(k=y[_])Ai(k,e,o,_,y,w);n.push(y),c.push(u)}return new fr(n,c,e,o)}var P1=Li.prototype.constructor;function Qc(){return new P1(this._groups,this._parents)}function R1(r,e){var o,a,s;return function(){var n=to(this,r),c=(this.style.removeProperty(r),to(this,r));return n===c?null:n===o&&c===a?s:s=e(o=n,a=c)}}function Zp(r){return function(){this.style.removeProperty(r)}}function q1(r,e,o){var a,s=o+"",n;return function(){var c=to(this,r);return c===s?null:c===a?n:n=e(a=c,o)}}function N1(r,e,o){var a,s,n;return function(){var c=to(this,r),l=o(this),f=l+"";if(l==null)f=l=(this.style.removeProperty(r),to(this,r));return c===f?null:c===a&&f===s?n:(s=f,n=e(a=c,l))}}function W1(r,e){var o,a,s,n="style."+e,c="end."+n,l;return function(){var f=er(this,r),p=f.on,u=f.value[n]==null?l||(l=Zp(e)):void 0;if(p!==o||s!==u)(a=(o=p).copy()).on(c,s=u);f.on=a}}function Jc(r,e,o){var a=(r+="")==="transform"?Fc:Fa;return e==null?this.styleTween(r,R1(r,a)).on("end.style."+r,Zp(r)):typeof e==="function"?this.styleTween(r,N1(r,a,us(this,"style."+r,e))).each(W1(this._id,r)):this.styleTween(r,q1(r,a,e),o).on("end.style."+r,null)}function z1(r,e,o){return function(a){this.style.setProperty(r,e.call(this,a),o)}}function H1(r,e,o){var a,s;function n(){var c=e.apply(this,arguments);if(c!==s)a=(s=c)&&z1(r,c,o);return a}return n._value=e,n}function tu(r,e,o){var a="style."+(r+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!=="function")throw Error();return this.tween(a,H1(r,e,o==null?"":o))}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(us(this,"text",r)):Y1(r==null?"":r+""))}function j1(r){return function(e){this.textContent=r.call(this,e)}}function G1(r){var e,o;function a(){var s=r.apply(this,arguments);if(s!==o)e=(o=s)&&j1(s);return e}return a._value=r,a}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,o=Jn();for(var a=this._groups,s=a.length,n=0;n<s;++n)for(var c=a[n],l=c.length,f,p=0;p<l;++p)if(f=c[p]){var u=Ke(f,e);Ai(f,r,o,p,c,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new fr(a,this._parents,r,o)}function ou(){var r,e,o=this,a=o._id,s=o.size();return new Promise(function(n,c){var l={value:c},f={value:function(){if(--s===0)n()}};if(o.each(function(){var p=er(this,a),u=p.on;if(u!==r)e=(r=u).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(f);p.on=e}),s===0)n()})}var X1=0;function fr(r,e,o,a){this._groups=r,this._parents=e,this._name=o,this._id=a}function Qp(r){return Li().transition(r)}function Jn(){return++X1}var Ei=Li.prototype;fr.prototype=Qp.prototype={constructor:fr,select:Kc,selectAll:Zc,selectChild:Ei.selectChild,selectChildren:Ei.selectChildren,filter:jc,merge:Gc,selection:Qc,transition:iu,call:Ei.call,nodes:Ei.nodes,node:Ei.node,size:Ei.size,empty:Ei.empty,each:Ei.each,on:Xc,attr:qc,attrTween:Wc,style:Jc,styleTween:tu,text:eu,textTween:ru,remove:Vc,tween:Dc,delay:zc,duration:Hc,ease:Yc,easeVarying:Uc,end:ou,[Symbol.iterator]:Ei[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 o;while(!(o=r.__transition)||!(o=o[e]))if(!(r=r.parentNode))throw Error(`transition ${e} not found`);return o}function su(r){var e,o;if(r instanceof fr)e=r._id,r=r._name;else e=Jn(),(o=V1).time=Ca(),r=r==null?null:r+"";for(var a=this._groups,s=a.length,n=0;n<s;++n)for(var c=a[n],l=c.length,f,p=0;p<l;++p)if(f=c[p])Ai(f,r,e,p,c,o||K1(f,e));return new fr(a,this._parents,r,e)}Li.prototype.interrupt=$c;Li.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,o=r.length;e<o;++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 o=10**e;return function(a){this._+=a[0];for(let s=1,n=a.length;s<n;++s)this._+=Math.round(arguments[s]*o)/o+a[s]}}class fs{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,o,a){this._append`Q${+r},${+e},${this._x1=+o},${this._y1=+a}`}bezierCurveTo(r,e,o,a,s,n){this._append`C${+r},${+e},${+o},${+a},${this._x1=+s},${this._y1=+n}`}arcTo(r,e,o,a,s){if(r=+r,e=+e,o=+o,a=+a,s=+s,s<0)throw Error(`negative radius: ${s}`);let n=this._x1,c=this._y1,l=o-r,f=a-e,p=n-r,u=c-e,m=p*p+u*u;if(this._x1===null)this._append`M${this._x1=r},${this._y1=e}`;else if(!(m>0.000001));else if(!(Math.abs(u*l-f*p)>0.000001)||!s)this._append`L${this._x1=r},${this._y1=e}`;else{let y=o-n,k=a-c,w=l*l+f*f,_=y*y+k*k,O=Math.sqrt(w),q=Math.sqrt(m),W=s*Math.tan((nu-Math.acos((w+m-_)/(2*O*q)))/2),j=W/q,Q=W/O;if(Math.abs(j-1)>0.000001)this._append`L${r+j*p},${e+j*u}`;this._append`A${s},${s},0,0,${+(u*y>p*k)},${this._x1=r+Q*l},${this._y1=e+Q*f}`}}arc(r,e,o,a,s,n){if(r=+r,e=+e,o=+o,n=!!n,o<0)throw Error(`negative radius: ${o}`);let c=o*Math.cos(a),l=o*Math.sin(a),f=r+c,p=e+l,u=1^n,m=n?a-s:s-a;if(this._x1===null)this._append`M${f},${p}`;else if(Math.abs(this._x1-f)>0.000001||Math.abs(this._y1-p)>0.000001)this._append`L${f},${p}`;if(!o)return;if(m<0)m=m%lu+lu;if(m>Q1)this._append`A${o},${o},0,1,${u},${r-c},${e-l}A${o},${o},0,1,${u},${this._x1=f},${this._y1=p}`;else if(m>0.000001)this._append`A${o},${o},0,${+(m>=nu)},${u},${this._x1=r+o*Math.cos(s)},${this._y1=e+o*Math.sin(s)}`}rect(r,e,o,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+e}h${o=+o}v${+a}h${-o}Z`}toString(){return this._}}function eg(){return new fs}eg.prototype=fs.prototype;function ke(r){return function(){return r}}var{abs:Ks,atan2:Pt,cos:Jr,max:Sc,min:Eo,sin:jn,sqrt:ha}=Math,Ct=0.000000000001,ii=Math.PI,Pi=ii/2,ga=2*ii;function Ac(r){return r>1?0:r<-1?ii:Math.acos(r)}function Zs(r){return r>=1?Pi:r<=-1?-Pi:Math.asin(r)}function va(r){let e=3;return r.digits=function(o){if(!arguments.length)return e;if(o==null)e=null;else{let a=Math.floor(o);if(!(a>=0))throw RangeError(`invalid digits: ${o}`);e=a}return r},()=>new fs(e)}var Tc=Array.prototype.slice;function Ii(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 Vr(r){return new rg(r)}function Lo(r){return r[0]}function No(r){return r[1]}function ya(r,e){var o=ke(!0),a=null,s=Vr,n=null,c=va(l);r=typeof r==="function"?r:r===void 0?Lo:ke(r),e=typeof e==="function"?e:e===void 0?No:ke(e);function l(f){var p,u=(f=Ii(f)).length,m,y=!1,k;if(a==null)n=s(k=c());for(p=0;p<=u;++p){if(!(p<u&&o(m=f[p],p,f))===y)if(y=!y)n.lineStart();else n.lineEnd();if(y)n.point(+r(m,p,f),+e(m,p,f))}if(k)return n=null,k+""||null}return l.x=function(f){return arguments.length?(r=typeof f==="function"?f:ke(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f==="function"?f:ke(+f),l):e},l.defined=function(f){return arguments.length?(o=typeof f==="function"?f:ke(!!f),l):o},l.curve=function(f){return arguments.length?(s=f,a!=null&&(n=s(a)),l):s},l.context=function(f){return arguments.length?(f==null?a=n=null:n=s(a=f),l):a},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 ba(r){return new hu(r,!0)}function Aa(r){return new hu(r,!1)}function vr(){}function ds(r,e,o){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+o)/6)}function Ma(r){this._context=r}Ma.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:ds(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:ds(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function co(r){return new Ma(r)}function ig(r){this._context=r}ig.prototype={areaStart:vr,areaEnd:vr,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:ds(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function el(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 o=(this._x0+4*this._x1+r)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(o,a):this._context.moveTo(o,a);break;case 3:this._point=4;default:ds(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function rl(r){return new og(r)}function sg(r,e){this._basis=new Ma(r),this._beta=e}sg.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,e=this._y,o=r.length-1;if(o>0){var a=r[0],s=e[0],n=r[o]-a,c=e[o]-s,l=-1,f;while(++l<=o)f=l/o,this._basis.point(this._beta*r[l]+(1-this._beta)*(a+f*n),this._beta*e[l]+(1-this._beta)*(s+f*c))}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 o(a){return e===1?new Ma(a):new sg(a,e)}return o.beta=function(a){return r(+a)},o}(0.85);function ps(r,e,o){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-o),r._x2,r._y2)}function il(r,e){this._context=r,this._k=(1-e)/6}il.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:ps(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:ps(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 Ea=function r(e){function o(a){return new il(a,e)}return o.tension=function(a){return r(+a)},o}(0);function ol(r,e){this._context=r,this._k=(1-e)/6}ol.prototype={areaStart:vr,areaEnd:vr,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:ps(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 o(a){return new ol(a,e)}return o.tension=function(a){return r(+a)},o}(0);function sl(r,e){this._context=r,this._k=(1-e)/6}sl.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:ps(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 o(a){return new sl(a,e)}return o.tension=function(a){return r(+a)},o}(0);function Oa(r,e,o){var{_x1:a,_y1:s,_x2:n,_y2:c}=r;if(r._l01_a>Ct){var l=2*r._l01_2a+3*r._l01_a*r._l12_a+r._l12_2a,f=3*r._l01_a*(r._l01_a+r._l12_a);a=(a*l-r._x0*r._l12_2a+r._x2*r._l01_2a)/f,s=(s*l-r._y0*r._l12_2a+r._y2*r._l01_2a)/f}if(r._l23_a>Ct){var p=2*r._l23_2a+3*r._l23_a*r._l12_a+r._l12_2a,u=3*r._l23_a*(r._l23_a+r._l12_a);n=(n*p+r._x1*r._l23_2a-e*r._l12_2a)/u,c=(c*p+r._y1*r._l23_2a-o*r._l12_2a)/u}r._context.bezierCurveTo(a,s,n,c,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 o=this._x2-r,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+a*a,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:Oa(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 Ia=function r(e){function o(a){return e?new ag(a,e):new il(a,0)}return o.alpha=function(a){return r(+a)},o}(0.5);function ng(r,e){this._context=r,this._alpha=e}ng.prototype={areaStart:vr,areaEnd:vr,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 o=this._x2-r,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+a*a,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:Oa(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 o(a){return e?new ng(a,e):new ol(a,0)}return o.alpha=function(a){return r(+a)},o}(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 o=this._x2-r,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+a*a,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:Oa(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 o(a){return e?new lg(a,e):new sl(a,0)}return o.alpha=function(a){return r(+a)},o}(0.5);function hg(r){this._context=r}hg.prototype={areaStart:vr,areaEnd:vr,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,o){var a=r._x1-r._x0,s=e-r._x1,n=(r._y1-r._y0)/(a||s<0&&-0),c=(o-r._y1)/(s||a<0&&-0),l=(n*s+c*a)/(a+s);return(cg(n)+cg(c))*Math.min(Math.abs(n),Math.abs(c),0.5*Math.abs(l))||0}function fg(r,e){var o=r._x1-r._x0;return o?(3*(r._y1-r._y0)/o-e)/2:e}function gu(r,e,o){var{_x0:a,_y0:s,_x1:n,_y1:c}=r,l=(n-a)/3;r._context.bezierCurveTo(a+l,s+l*e,n-l,c-l*o,n,c)}function nl(r){this._context=r}nl.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 o=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,o=ug(this,r,e)),o);break;default:gu(this,this._t0,o=ug(this,r,e));break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=o}};function dg(r){this._context=new pg(r)}(dg.prototype=Object.create(nl.prototype)).point=function(r,e){nl.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,o,a,s,n){this._context.bezierCurveTo(e,r,a,o,n,s)}};function $a(r){return new nl(r)}function Da(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,o=r.length;if(o)if(this._line?this._context.lineTo(r[0],e[0]):this._context.moveTo(r[0],e[0]),o===2)this._context.lineTo(r[1],e[1]);else{var a=gg(r),s=gg(e);for(var n=0,c=1;c<o;++n,++c)this._context.bezierCurveTo(a[0][n],s[0][n],a[1][n],s[1][n],r[c],e[c])}if(this._line||this._line!==0&&o===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,o=r.length-1,a,s=Array(o),n=Array(o),c=Array(o);s[0]=0,n[0]=2,c[0]=r[0]+2*r[1];for(e=1;e<o-1;++e)s[e]=1,n[e]=4,c[e]=4*r[e]+2*r[e+1];s[o-1]=2,n[o-1]=7,c[o-1]=8*r[o-1]+r[o];for(e=1;e<o;++e)a=s[e]/n[e-1],n[e]-=a,c[e]-=a*c[e-1];s[o-1]=c[o-1]/n[o-1];for(e=o-2;e>=0;--e)s[e]=(c[e]-s[e+1])/n[e];n[o-1]=(r[o]+s[o-1])/2;for(e=0;e<o-1;++e)n[e]=2*r[e+1]-s[e+1];return[s,n]}function gs(r){return new mg(r)}function ll(r,e){this._context=r,this._t=e}ll.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 o=this._x*(1-this._t)+r*this._t;this._context.lineTo(o,this._y),this._context.lineTo(o,e)}break}}this._x=r,this._y=e}};function ms(r){return new ll(r,0.5)}function Pa(r){return new ll(r,0)}function Ra(r){return new ll(r,1)}function eo(r,e,o){this.k=r,this.x=e,this.y=o}eo.prototype={constructor:eo,scale:function(r){return r===1?this:new eo(this.k*r,this.x,this.y)},translate:function(r,e){return r===0&e===0?this:new eo(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 eo(1,0,0);yu.prototype=eo.prototype;function yu(r){while(!r.__zoom)if(!(r=r.parentNode))return mu;return r.__zoom}var te=t((r)=>{let{securityLevel:e}=d(),o=v("body");if(e==="sandbox"){let n=v(`#i${r}`).node()?.contentDocument??document;o=v(n.body)}return o.select(`#${r}`)},"selectSvgElement");function zg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}t(zg,"getDefaultExportFromCjs");var ir={},hl={},ro={},yg;function ys(){if(yg)return ro;yg=1;function r(c){return typeof c>"u"||c===null}t(r,"isNothing");function e(c){return typeof c==="object"&&c!==null}t(e,"isObject");function o(c){if(Array.isArray(c))return c;else if(r(c))return[];return[c]}t(o,"toArray");function a(c,l){if(l){let f=Object.keys(l);for(let p=0,u=f.length;p<u;p+=1){let m=f[p];c[m]=l[m]}}return c}t(a,"extend");function s(c,l){let f="";for(let p=0;p<l;p+=1)f+=c;return f}t(s,"repeat");function n(c){return c===0&&Number.NEGATIVE_INFINITY===1/c}return t(n,"isNegativeZero"),ro.isNothing=r,ro.isObject=e,ro.toArray=o,ro.repeat=s,ro.isNegativeZero=n,ro.extend=a,ro}t(ys,"requireCommon");var xu,xg;function xs(){if(xg)return xu;xg=1;function r(o,a){let s="",n=o.reason||"(unknown reason)";if(!o.mark)return n;if(o.mark.name)s+='in "'+o.mark.name+'" ';if(s+="("+(o.mark.line+1)+":"+(o.mark.column+1)+")",!a&&o.mark.snippet)s+=`
|
|
130
|
+
|
|
131
|
+
`+o.mark.snippet;return n+" "+s}t(r,"formatError");function e(o,a){if(Error.call(this),this.name="YAMLException",this.reason=o,this.mark=a,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(a){return this.name+": "+r(this,a)},"toString"),xu=e,xu}t(xs,"requireException");var Cu,Cg;function Hg(){if(Cg)return Cu;Cg=1;let r=ys();function e(s,n,c,l,f){let p="",u="",m=Math.floor(f/2)-1;if(l-n>m)p=" ... ",n=l-m+p.length;if(c-l>m)u=" ...",c=l+m-u.length;return{str:p+s.slice(n,c).replace(/\t/g,"→")+u,pos:l-n+p.length}}t(e,"getLine");function o(s,n){return r.repeat(" ",n-s.length)+s}t(o,"padStart");function a(s,n){if(n=Object.create(n||null),!s.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 c=/\r?\n|\r|\0/g,l=[0],f=[],p,u=-1;while(p=c.exec(s.buffer))if(f.push(p.index),l.push(p.index+p[0].length),s.position<=p.index&&u<0)u=l.length-2;if(u<0)u=l.length-1;let m="",y=Math.min(s.line+n.linesAfter,f.length).toString().length,k=n.maxLength-(n.indent+y+3);for(let _=1;_<=n.linesBefore;_++){if(u-_<0)break;let O=e(s.buffer,l[u-_],f[u-_],s.position-(l[u]-l[u-_]),k);m=r.repeat(" ",n.indent)+o((s.line-_+1).toString(),y)+" | "+O.str+`
|
|
132
|
+
`+m}let w=e(s.buffer,l[u],f[u],s.position,k);m+=r.repeat(" ",n.indent)+o((s.line+1).toString(),y)+" | "+w.str+`
|
|
133
|
+
`,m+=r.repeat("-",n.indent+y+3+w.pos)+`^
|
|
134
|
+
`;for(let _=1;_<=n.linesAfter;_++){if(u+_>=f.length)break;let O=e(s.buffer,l[u+_],f[u+_],s.position-(l[u]-l[u+_]),k);m+=r.repeat(" ",n.indent)+o((s.line+_+1).toString(),y)+" | "+O.str+`
|
|
135
|
+
`}return m.replace(/\n$/,"")}return t(a,"makeSnippet"),Cu=a,Cu}t(Hg,"requireSnippet");var bu,bg;function ar(){if(bg)return bu;bg=1;let r=xs(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];function a(n){let c={};if(n!==null)Object.keys(n).forEach(function(l){n[l].forEach(function(f){c[String(f)]=l})});return c}t(a,"compileStyleAliases");function s(n,c){if(c=c||{},Object.keys(c).forEach(function(l){if(e.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+n+'" YAML type.')}),this.options=c,this.tag=n,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(l){return l},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.representName=c.representName||null,this.defaultStyle=c.defaultStyle||null,this.multi=c.multi||!1,this.styleAliases=a(c.styleAliases||null),o.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}return t(s,"Type2"),bu=s,bu}t(ar,"requireType");var ku,kg;function Nu(){if(kg)return ku;kg=1;let r=xs(),e=ar();function o(n,c){let l=[];return n[c].forEach(function(f){let p=l.length;l.forEach(function(u,m){if(u.tag===f.tag&&u.kind===f.kind&&u.multi===f.multi)p=m}),l[p]=f}),l}t(o,"compileList");function a(){let n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function c(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(c,"collectType");for(let l=0,f=arguments.length;l<f;l+=1)arguments[l].forEach(c);return n}t(a,"compileMap");function s(n){return this.extend(n)}return t(s,"Schema2"),s.prototype.extend=t(function(c){let l=[],f=[];if(c instanceof e)f.push(c);else if(Array.isArray(c))f=f.concat(c);else if(c&&(Array.isArray(c.implicit)||Array.isArray(c.explicit))){if(c.implicit)l=l.concat(c.implicit);if(c.explicit)f=f.concat(c.explicit)}else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(u){if(!(u instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.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(u.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),f.forEach(function(u){if(!(u instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let p=Object.create(s.prototype);return p.implicit=(this.implicit||[]).concat(l),p.explicit=(this.explicit||[]).concat(f),p.compiledImplicit=o(p,"implicit"),p.compiledExplicit=o(p,"explicit"),p.compiledTypeMap=a(p.compiledImplicit,p.compiledExplicit),p},"extend"),ku=s,ku}t(Nu,"requireSchema");var wu,wg;function Wu(){if(wg)return wu;return wg=1,wu=new(ar())("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(ar())("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(ar())("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=ar();function e(s){if(s===null)return!0;let n=s.length;return n===1&&s==="~"||n===4&&(s==="null"||s==="Null"||s==="NULL")}t(e,"resolveYamlNull");function o(){return null}t(o,"constructYamlNull");function a(s){return s===null}return t(a,"isNull"),Bu=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:o,predicate:a,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=ar();function e(s){if(s===null)return!1;let n=s.length;return n===4&&(s==="true"||s==="True"||s==="TRUE")||n===5&&(s==="false"||s==="False"||s==="FALSE")}t(e,"resolveYamlBoolean");function o(s){return s==="true"||s==="True"||s==="TRUE"}t(o,"constructYamlBoolean");function a(s){return Object.prototype.toString.call(s)==="[object Boolean]"}return t(a,"isBoolean"),vu=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:o,predicate:a,represent:{lowercase:t(function(s){return s?"true":"false"},"lowercase"),uppercase:t(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:t(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),vu}t(ju,"requireBool");var Lu,Lg;function Gu(){if(Lg)return Lu;Lg=1;let r=ys(),e=ar();function o(p){return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}t(o,"isHexCode");function a(p){return p>=48&&p<=55}t(a,"isOctCode");function s(p){return p>=48&&p<=57}t(s,"isDecCode");function n(p){if(p===null)return!1;let u=p.length,m=0,y=!1;if(!u)return!1;let k=p[m];if(k==="-"||k==="+")k=p[++m];if(k==="0"){if(m+1===u)return!0;if(k=p[++m],k==="b"){m++;for(;m<u;m++){if(k=p[m],k!=="0"&&k!=="1")return!1;y=!0}return y&&isFinite(c(p))}if(k==="x"){m++;for(;m<u;m++){if(!o(p.charCodeAt(m)))return!1;y=!0}return y&&isFinite(c(p))}if(k==="o"){m++;for(;m<u;m++){if(!a(p.charCodeAt(m)))return!1;y=!0}return y&&isFinite(c(p))}}for(;m<u;m++){if(!s(p.charCodeAt(m)))return!1;y=!0}if(!y)return!1;return isFinite(c(p))}t(n,"resolveYamlInteger");function c(p){let u=p,m=1,y=u[0];if(y==="-"||y==="+"){if(y==="-")m=-1;u=u.slice(1),y=u[0]}if(u==="0")return 0;if(y==="0"){if(u[1]==="b")return m*parseInt(u.slice(2),2);if(u[1]==="x")return m*parseInt(u.slice(2),16);if(u[1]==="o")return m*parseInt(u.slice(2),8)}return m*parseInt(u,10)}t(c,"parseYamlInteger");function l(p){return c(p)}t(l,"constructYamlInteger");function f(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1===0&&!r.isNegativeZero(p))}return t(f,"isInteger"),Lu=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:n,construct:l,predicate:f,represent:{binary:t(function(p){return p>=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)},"binary"),octal:t(function(p){return p>=0?"0o"+p.toString(8):"-0o"+p.toString(8).slice(1)},"octal"),decimal:t(function(p){return p.toString(10)},"decimal"),hexadecimal:t(function(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.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=ys(),e=ar(),o=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(p){if(p===null)return!1;if(!o.test(p))return!1;if(isFinite(parseFloat(p,10)))return!0;return a.test(p)}t(s,"resolveYamlFloat");function n(p){let u=p.toLowerCase(),m=u[0]==="-"?-1:1;if("+-".indexOf(u[0])>=0)u=u.slice(1);if(u===".inf")return m===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(u===".nan")return NaN;return m*parseFloat(u,10)}t(n,"constructYamlFloat");let c=/^[-+]?[0-9]+e/;function l(p,u){if(isNaN(p))switch(u){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===p)switch(u){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===p)switch(u){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(p))return"-0.0";let m=p.toString(10);return c.test(m)?m.replace("e",".e"):m}t(l,"representYamlFloat");function f(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1!==0||r.isNegativeZero(p))}return t(f,"isFloat"),Fu=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:n,predicate:f,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=ar(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=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 a(c){if(c===null)return!1;if(e.exec(c)!==null)return!0;if(o.exec(c)!==null)return!0;return!1}t(a,"resolveYamlTimestamp");function s(c){let l=0,f=null,p=e.exec(c);if(p===null)p=o.exec(c);if(p===null)throw Error("Date resolve error");let u=+p[1],m=+p[2]-1,y=+p[3];if(!p[4])return new Date(Date.UTC(u,m,y));let k=+p[4],w=+p[5],_=+p[6];if(p[7]){l=p[7].slice(0,3);while(l.length<3)l+="0";l=+l}if(p[9]){let q=+p[10],W=+(p[11]||0);if(f=(q*60+W)*60000,p[9]==="-")f=-f}let O=new Date(Date.UTC(u,m,y,k,w,_,l));if(f)O.setTime(O.getTime()-f);return O}t(s,"constructYamlTimestamp");function n(c){return c.toISOString()}return t(n,"representYamlTimestamp"),Eu=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:a,construct:s,instanceOf:Date,represent:n}),Eu}t(Zu,"requireTimestamp");var Ou,Og;function Qu(){if(Og)return Ou;Og=1;let r=ar();function e(o){return o==="<<"||o===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=ar(),e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
136
|
+
\r`;function o(c){if(c===null)return!1;let l=0,f=c.length,p=e;for(let u=0;u<f;u++){let m=p.indexOf(c.charAt(u));if(m>64)continue;if(m<0)return!1;l+=6}return l%8===0}t(o,"resolveYamlBinary");function a(c){let l=c.replace(/[\r\n=]/g,""),f=l.length,p=e,u=0,m=[];for(let k=0;k<f;k++){if(k%4===0&&k)m.push(u>>16&255),m.push(u>>8&255),m.push(u&255);u=u<<6|p.indexOf(l.charAt(k))}let y=f%4*6;if(y===0)m.push(u>>16&255),m.push(u>>8&255),m.push(u&255);else if(y===18)m.push(u>>10&255),m.push(u>>2&255);else if(y===12)m.push(u>>4&255);return new Uint8Array(m)}t(a,"constructYamlBinary");function s(c){let l="",f=0,p=c.length,u=e;for(let y=0;y<p;y++){if(y%3===0&&y)l+=u[f>>18&63],l+=u[f>>12&63],l+=u[f>>6&63],l+=u[f&63];f=(f<<8)+c[y]}let m=p%3;if(m===0)l+=u[f>>18&63],l+=u[f>>12&63],l+=u[f>>6&63],l+=u[f&63];else if(m===2)l+=u[f>>10&63],l+=u[f>>4&63],l+=u[f<<2&63],l+=u[64];else if(m===1)l+=u[f>>2&63],l+=u[f<<4&63],l+=u[64],l+=u[64];return l}t(s,"representYamlBinary");function n(c){return Object.prototype.toString.call(c)==="[object Uint8Array]"}return t(n,"isBinary"),Iu=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:o,construct:a,predicate:n,represent:s}),Iu}t(Ju,"requireBinary");var $u,$g;function tf(){if($g)return $u;$g=1;let r=ar(),e=Object.prototype.hasOwnProperty,o=Object.prototype.toString;function a(n){if(n===null)return!0;let c=[],l=n;for(let f=0,p=l.length;f<p;f+=1){let u=l[f],m=!1;if(o.call(u)!=="[object Object]")return!1;let y;for(y in u)if(e.call(u,y))if(!m)m=!0;else return!1;if(!m)return!1;if(c.indexOf(y)===-1)c.push(y);else return!1}return!0}t(a,"resolveYamlOmap");function s(n){return n!==null?n:[]}return t(s,"constructYamlOmap"),$u=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:a,construct:s}),$u}t(tf,"requireOmap");var Du,Dg;function ef(){if(Dg)return Du;Dg=1;let r=ar(),e=Object.prototype.toString;function o(s){if(s===null)return!0;let n=s,c=Array(n.length);for(let l=0,f=n.length;l<f;l+=1){let p=n[l];if(e.call(p)!=="[object Object]")return!1;let u=Object.keys(p);if(u.length!==1)return!1;c[l]=[u[0],p[u[0]]]}return!0}t(o,"resolveYamlPairs");function a(s){if(s===null)return[];let n=s,c=Array(n.length);for(let l=0,f=n.length;l<f;l+=1){let p=n[l],u=Object.keys(p);c[l]=[u[0],p[u[0]]]}return c}return t(a,"constructYamlPairs"),Du=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:o,construct:a}),Du}t(ef,"requirePairs");var Pu,Pg;function rf(){if(Pg)return Pu;Pg=1;let r=ar(),e=Object.prototype.hasOwnProperty;function o(s){if(s===null)return!0;let n=s;for(let c in n)if(e.call(n,c)){if(n[c]!==null)return!1}return!0}t(o,"resolveYamlSet");function a(s){return s!==null?s:{}}return t(a,"constructYamlSet"),Pu=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:o,construct:a}),Pu}t(rf,"requireSet");var Ru,Rg;function cl(){if(Rg)return Ru;return Rg=1,Ru=Ku().extend({implicit:[Zu(),Qu()],explicit:[Ju(),tf(),ef(),rf()]}),Ru}t(cl,"require_default");var qg;function Yg(){if(qg)return hl;qg=1;let r=ys(),e=xs(),o=Hg(),a=cl(),s=Object.prototype.hasOwnProperty,n=1,c=2,l=3,f=4,p=1,u=2,m=3,y=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,k=/[\x85\u2028\u2029]/,w=/[,\[\]{}]/,_=/^(?:!|!!|![0-9A-Za-z-]+!)$/,O=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function q(x){return Object.prototype.toString.call(x)}t(q,"_class");function W(x){return x===10||x===13}t(W,"isEol");function j(x){return x===9||x===32}t(j,"isWhiteSpace");function Q(x){return x===9||x===32||x===10||x===13}t(Q,"isWsOrEol");function J(x){return x===44||x===91||x===93||x===123||x===125}t(J,"isFlowIndicator");function ut(x){if(x>=48&&x<=57)return x-48;let yt=x|32;if(yt>=97&&yt<=102)return yt-97+10;return-1}t(ut,"fromHexCode");function lt(x){if(x===120)return 2;if(x===117)return 4;if(x===85)return 8;return 0}t(lt,"escapedHexLen");function gt(x){if(x>=48&&x<=57)return x-48;return-1}t(gt,"fromDecimalCode");function wt(x){switch(x){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(wt,"simpleEscapeSequence");function At(x){if(x<=65535)return String.fromCharCode(x);return String.fromCharCode((x-65536>>10)+55296,(x-65536&1023)+56320)}t(At,"charFromCodepoint");function _t(x,yt,Lt){if(yt==="__proto__")Object.defineProperty(x,yt,{configurable:!0,enumerable:!0,writable:!0,value:Lt});else x[yt]=Lt}t(_t,"setProperty");let Tt=Array(256),it=Array(256);for(let x=0;x<256;x++)Tt[x]=wt(x)?1:0,it[x]=wt(x);function ot(x,yt){this.input=x,this.filename=yt.filename||null,this.schema=yt.schema||a,this.onWarning=yt.onWarning||null,this.legacy=yt.legacy||!1,this.json=yt.json||!1,this.listener=yt.listener||null,this.maxDepth=typeof yt.maxDepth==="number"?yt.maxDepth:100,this.maxTotalMergeKeys=typeof yt.maxTotalMergeKeys==="number"?yt.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=x.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 xt(x,yt){let Lt={name:x.filename,buffer:x.input.slice(0,-1),position:x.position,line:x.line,column:x.position-x.lineStart};return Lt.snippet=o(Lt),new e(yt,Lt)}t(xt,"generateError");function et(x,yt){throw xt(x,yt)}t(et,"throwError");function Bt(x,yt){if(x.onWarning)x.onWarning.call(null,xt(x,yt))}t(Bt,"throwWarning");function Mt(x,yt,Lt){let Ot=x.anchorMapTransactions;if(Ot.length!==0){let vt=Ot[Ot.length-1];if(!s.call(vt,yt))vt[yt]={existed:s.call(x.anchorMap,yt),value:x.anchorMap[yt]}}x.anchorMap[yt]=Lt}t(Mt,"storeAnchor");function Vt(x){x.anchorMapTransactions.push(Object.create(null))}t(Vt,"beginAnchorTransaction");function Xt(x){let yt=x.anchorMapTransactions.pop(),Lt=x.anchorMapTransactions;if(Lt.length===0)return;let Ot=Lt[Lt.length-1],vt=Object.keys(yt);for(let jt=0,U=vt.length;jt<U;jt+=1){let bt=vt[jt];if(!s.call(Ot,bt))Ot[bt]=yt[bt]}}t(Xt,"commitAnchorTransaction");function ce(x){let yt=x.anchorMapTransactions.pop(),Lt=Object.keys(yt);for(let Ot=Lt.length-1;Ot>=0;Ot-=1){let vt=yt[Lt[Ot]];if(vt.existed)x.anchorMap[Lt[Ot]]=vt.value;else delete x.anchorMap[Lt[Ot]]}}t(ce,"rollbackAnchorTransaction");function le(x){return{position:x.position,line:x.line,lineStart:x.lineStart,lineIndent:x.lineIndent,firstTabInLine:x.firstTabInLine,tag:x.tag,anchor:x.anchor,kind:x.kind,result:x.result}}t(le,"snapshotState");function ye(x,yt){x.position=yt.position,x.line=yt.line,x.lineStart=yt.lineStart,x.lineIndent=yt.lineIndent,x.firstTabInLine=yt.firstTabInLine,x.tag=yt.tag,x.anchor=yt.anchor,x.kind=yt.kind,x.result=yt.result}t(ye,"restoreState");let Ce={YAML:t(function(yt,Lt,Ot){if(yt.version!==null)et(yt,"duplication of %YAML directive");if(Ot.length!==1)et(yt,"YAML directive accepts exactly one argument");let vt=/^([0-9]+)\.([0-9]+)$/.exec(Ot[0]);if(vt===null)et(yt,"ill-formed argument of the YAML directive");let jt=parseInt(vt[1],10),U=parseInt(vt[2],10);if(jt!==1)et(yt,"unacceptable YAML version of the document");if(yt.version=Ot[0],yt.checkLineBreaks=U<2,U!==1&&U!==2)Bt(yt,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:t(function(yt,Lt,Ot){let vt;if(Ot.length!==2)et(yt,"TAG directive accepts exactly two arguments");let jt=Ot[0];if(vt=Ot[1],!_.test(jt))et(yt,"ill-formed tag handle (first argument) of the TAG directive");if(s.call(yt.tagMap,jt))et(yt,'there is a previously declared suffix for "'+jt+'" tag handle');if(!O.test(vt))et(yt,"ill-formed tag prefix (second argument) of the TAG directive");try{vt=decodeURIComponent(vt)}catch(U){et(yt,"tag prefix is malformed: "+vt)}yt.tagMap[jt]=vt},"handleTagDirective")};function pe(x,yt,Lt,Ot){if(yt<Lt){let vt=x.input.slice(yt,Lt);if(Ot)for(let jt=0,U=vt.length;jt<U;jt+=1){let bt=vt.charCodeAt(jt);if(!(bt===9||bt>=32&&bt<=1114111))et(x,"expected valid JSON character")}else if(y.test(vt))et(x,"the stream contains non-printable characters");x.result+=vt}}t(pe,"captureSegment");function Gt(x,yt,Lt,Ot){if(!r.isObject(Lt))et(x,"cannot merge mappings; the provided source object is unacceptable");let vt=Object.keys(Lt);for(let jt=0,U=vt.length;jt<U;jt+=1){let bt=vt[jt];if(x.maxTotalMergeKeys!==-1&&++x.totalMergeKeys>x.maxTotalMergeKeys)et(x,"merge keys exceeded maxTotalMergeKeys ("+x.maxTotalMergeKeys+")");if(!s.call(yt,bt))_t(yt,bt,Lt[bt]),Ot[bt]=!0}}t(Gt,"mergeMappings");function ae(x,yt,Lt,Ot,vt,jt,U,bt,Nt){if(Array.isArray(vt)){vt=Array.prototype.slice.call(vt);for(let Et=0,$t=vt.length;Et<$t;Et+=1){if(Array.isArray(vt[Et]))et(x,"nested arrays are not supported inside keys");if(typeof vt==="object"&&q(vt[Et])==="[object Object]")vt[Et]="[object Object]"}}if(typeof vt==="object"&&q(vt)==="[object Object]")vt="[object Object]";if(vt=String(vt),yt===null)yt={};if(Ot==="tag:yaml.org,2002:merge")if(Array.isArray(jt))for(let Et=0,$t=jt.length;Et<$t;Et+=1)Gt(x,yt,jt[Et],Lt);else Gt(x,yt,jt,Lt);else{if(!x.json&&!s.call(Lt,vt)&&s.call(yt,vt))x.line=U||x.line,x.lineStart=bt||x.lineStart,x.position=Nt||x.position,et(x,"duplicated mapping key");_t(yt,vt,jt),delete Lt[vt]}return yt}t(ae,"storeMappingPair");function ue(x){let yt=x.input.charCodeAt(x.position);if(yt===10)x.position++;else if(yt===13){if(x.position++,x.input.charCodeAt(x.position)===10)x.position++}else et(x,"a line break is expected");x.line+=1,x.lineStart=x.position,x.firstTabInLine=-1}t(ue,"readLineBreak");function fe(x,yt,Lt){let Ot=0,vt=x.input.charCodeAt(x.position);while(vt!==0){while(j(vt)){if(vt===9&&x.firstTabInLine===-1)x.firstTabInLine=x.position;vt=x.input.charCodeAt(++x.position)}if(yt&&vt===35)do vt=x.input.charCodeAt(++x.position);while(vt!==10&&vt!==13&&vt!==0);if(W(vt)){ue(x),vt=x.input.charCodeAt(x.position),Ot++,x.lineIndent=0;while(vt===32)x.lineIndent++,vt=x.input.charCodeAt(++x.position)}else break}if(Lt!==-1&&Ot!==0&&x.lineIndent<Lt)Bt(x,"deficient indentation");return Ot}t(fe,"skipSeparationSpace");function Ae(x){let yt=x.position,Lt=x.input.charCodeAt(yt);if((Lt===45||Lt===46)&&Lt===x.input.charCodeAt(yt+1)&&Lt===x.input.charCodeAt(yt+2)){if(yt+=3,Lt=x.input.charCodeAt(yt),Lt===0||Q(Lt))return!0}return!1}t(Ae,"testDocumentSeparator");function Fe(x,yt){if(yt===1)x.result+=" ";else if(yt>1)x.result+=r.repeat(`
|
|
138
|
+
`,yt-1)}t(Fe,"writeFoldedLines");function Ir(x,yt,Lt){let Ot,vt,jt,U,bt,Nt,{kind:Et,result:$t}=x,Ut=x.input.charCodeAt(x.position);if(Q(Ut)||J(Ut)||Ut===35||Ut===38||Ut===42||Ut===33||Ut===124||Ut===62||Ut===39||Ut===34||Ut===37||Ut===64||Ut===96)return!1;if(Ut===63||Ut===45){let Wt=x.input.charCodeAt(x.position+1);if(Q(Wt)||Lt&&J(Wt))return!1}x.kind="scalar",x.result="",Ot=vt=x.position,jt=!1;while(Ut!==0){if(Ut===58){let Wt=x.input.charCodeAt(x.position+1);if(Q(Wt)||Lt&&J(Wt))break}else if(Ut===35){let Wt=x.input.charCodeAt(x.position-1);if(Q(Wt))break}else if(x.position===x.lineStart&&Ae(x)||Lt&&J(Ut))break;else if(W(Ut))if(U=x.line,bt=x.lineStart,Nt=x.lineIndent,fe(x,!1,-1),x.lineIndent>=yt){jt=!0,Ut=x.input.charCodeAt(x.position);continue}else{x.position=vt,x.line=U,x.lineStart=bt,x.lineIndent=Nt;break}if(jt)pe(x,Ot,vt,!1),Fe(x,x.line-U),Ot=vt=x.position,jt=!1;if(!j(Ut))vt=x.position+1;Ut=x.input.charCodeAt(++x.position)}if(pe(x,Ot,vt,!1),x.result)return!0;return x.kind=Et,x.result=$t,!1}t(Ir,"readPlainScalar");function xi(x,yt){let Lt,Ot,vt=x.input.charCodeAt(x.position);if(vt!==39)return!1;x.kind="scalar",x.result="",x.position++,Lt=Ot=x.position;while((vt=x.input.charCodeAt(x.position))!==0)if(vt===39)if(pe(x,Lt,x.position,!0),vt=x.input.charCodeAt(++x.position),vt===39)Lt=x.position,x.position++,Ot=x.position;else return!0;else if(W(vt))pe(x,Lt,Ot,!0),Fe(x,fe(x,!1,yt)),Lt=Ot=x.position;else if(x.position===x.lineStart&&Ae(x))et(x,"unexpected end of the document within a single quoted scalar");else if(x.position++,!j(vt))Ot=x.position;et(x,"unexpected end of the stream within a single quoted scalar")}t(xi,"readSingleQuotedScalar");function Fr(x,yt){let Lt,Ot,vt,jt=x.input.charCodeAt(x.position);if(jt!==34)return!1;x.kind="scalar",x.result="",x.position++,Lt=Ot=x.position;while((jt=x.input.charCodeAt(x.position))!==0)if(jt===34)return pe(x,Lt,x.position,!0),x.position++,!0;else if(jt===92){if(pe(x,Lt,x.position,!0),jt=x.input.charCodeAt(++x.position),W(jt))fe(x,!1,yt);else if(jt<256&&Tt[jt])x.result+=it[jt],x.position++;else if((vt=lt(jt))>0){let U=vt,bt=0;for(;U>0;U--)if(jt=x.input.charCodeAt(++x.position),(vt=ut(jt))>=0)bt=(bt<<4)+vt;else et(x,"expected hexadecimal character");x.result+=At(bt),x.position++}else et(x,"unknown escape sequence");Lt=Ot=x.position}else if(W(jt))pe(x,Lt,Ot,!0),Fe(x,fe(x,!1,yt)),Lt=Ot=x.position;else if(x.position===x.lineStart&&Ae(x))et(x,"unexpected end of the document within a double quoted scalar");else if(x.position++,!j(jt))Ot=x.position;et(x,"unexpected end of the stream within a double quoted scalar")}t(Fr,"readDoubleQuotedScalar");function Yi(x,yt){let Lt=!0,Ot,vt,jt,U=x.tag,bt,Nt=x.anchor,Et,$t,Ut,Wt,re=Object.create(null),ee,ie,se,xe=x.input.charCodeAt(x.position);if(xe===91)Et=93,Wt=!1,bt=[];else if(xe===123)Et=125,Wt=!0,bt={};else return!1;if(x.anchor!==null)Mt(x,x.anchor,bt);xe=x.input.charCodeAt(++x.position);while(xe!==0){if(fe(x,!0,yt),xe=x.input.charCodeAt(x.position),xe===Et)return x.position++,x.tag=U,x.anchor=Nt,x.kind=Wt?"mapping":"sequence",x.result=bt,!0;else if(!Lt)et(x,"missed comma between flow collection entries");else if(xe===44)et(x,"expected the node content, but found ','");if(ie=ee=se=null,$t=Ut=!1,xe===63){let Le=x.input.charCodeAt(x.position+1);if(Q(Le))$t=Ut=!0,x.position++,fe(x,!0,yt)}if(Ot=x.line,vt=x.lineStart,jt=x.position,je(x,yt,n,!1,!0),ie=x.tag,ee=x.result,fe(x,!0,yt),xe=x.input.charCodeAt(x.position),(Ut||x.line===Ot)&&xe===58)$t=!0,xe=x.input.charCodeAt(++x.position),fe(x,!0,yt),je(x,yt,n,!1,!0),se=x.result;if(Wt)ae(x,bt,re,ie,ee,se,Ot,vt,jt);else if($t)bt.push(ae(x,null,re,ie,ee,se,Ot,vt,jt));else bt.push(ee);if(fe(x,!0,yt),xe=x.input.charCodeAt(x.position),xe===44)Lt=!0,xe=x.input.charCodeAt(++x.position);else Lt=!1}et(x,"unexpected end of the stream within a flow collection")}t(Yi,"readFlowCollection");function ve(x,yt){let Lt,Ot=p,vt=!1,jt=!1,U=yt,bt=0,Nt=!1,Et,$t=x.input.charCodeAt(x.position);if($t===124)Lt=!1;else if($t===62)Lt=!0;else return!1;x.kind="scalar",x.result="";while($t!==0)if($t=x.input.charCodeAt(++x.position),$t===43||$t===45)if(p===Ot)Ot=$t===43?m:u;else et(x,"repeat of a chomping mode identifier");else if((Et=gt($t))>=0)if(Et===0)et(x,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!jt)U=yt+Et-1,jt=!0;else et(x,"repeat of an indentation width identifier");else break;if(j($t)){do $t=x.input.charCodeAt(++x.position);while(j($t));if($t===35)do $t=x.input.charCodeAt(++x.position);while(!W($t)&&$t!==0)}while($t!==0){ue(x),x.lineIndent=0,$t=x.input.charCodeAt(x.position);while((!jt||x.lineIndent<U)&&$t===32)x.lineIndent++,$t=x.input.charCodeAt(++x.position);if(!jt&&x.lineIndent>U)U=x.lineIndent;if(W($t)){bt++;continue}if(!jt&&U===0)et(x,"missing indentation for block scalar");if(x.lineIndent<U){if(Ot===m)x.result+=r.repeat(`
|
|
139
|
+
`,vt?1+bt:bt);else if(Ot===p){if(vt)x.result+=`
|
|
140
|
+
`}break}if(Lt)if(j($t))Nt=!0,x.result+=r.repeat(`
|
|
141
|
+
`,vt?1+bt:bt);else if(Nt)Nt=!1,x.result+=r.repeat(`
|
|
142
|
+
`,bt+1);else if(bt===0){if(vt)x.result+=" "}else x.result+=r.repeat(`
|
|
143
|
+
`,bt);else x.result+=r.repeat(`
|
|
144
|
+
`,vt?1+bt:bt);vt=!0,jt=!0,bt=0;let Ut=x.position;while(!W($t)&&$t!==0)$t=x.input.charCodeAt(++x.position);pe(x,Ut,x.position,!1)}return!0}t(ve,"readBlockScalar");function gr(x,yt){let{tag:Lt,anchor:Ot}=x,vt=[],jt=!1;if(x.firstTabInLine!==-1)return!1;if(x.anchor!==null)Mt(x,x.anchor,vt);let U=x.input.charCodeAt(x.position);while(U!==0){if(x.firstTabInLine!==-1)x.position=x.firstTabInLine,et(x,"tab characters must not be used in indentation");if(U!==45)break;let bt=x.input.charCodeAt(x.position+1);if(!Q(bt))break;if(jt=!0,x.position++,fe(x,!0,-1)){if(x.lineIndent<=yt){vt.push(null),U=x.input.charCodeAt(x.position);continue}}let Nt=x.line;if(je(x,yt,l,!1,!0),vt.push(x.result),fe(x,!0,-1),U=x.input.charCodeAt(x.position),(x.line===Nt||x.lineIndent>yt)&&U!==0)et(x,"bad indentation of a sequence entry");else if(x.lineIndent<yt)break}if(jt)return x.tag=Lt,x.anchor=Ot,x.kind="sequence",x.result=vt,!0;return!1}t(gr,"readBlockSequence");function _e(x,yt,Lt){let Ot,vt,jt,U,{tag:bt,anchor:Nt}=x,Et={},$t=Object.create(null),Ut=null,Wt=null,re=null,ee=!1,ie=!1;if(x.firstTabInLine!==-1)return!1;if(x.anchor!==null)Mt(x,x.anchor,Et);let se=x.input.charCodeAt(x.position);while(se!==0){if(!ee&&x.firstTabInLine!==-1)x.position=x.firstTabInLine,et(x,"tab characters must not be used in indentation");let xe=x.input.charCodeAt(x.position+1),Le=x.line;if((se===63||se===58)&&Q(xe)){if(se===63){if(ee)ae(x,Et,$t,Ut,Wt,null,vt,jt,U),Ut=Wt=re=null;ie=!0,ee=!0,Ot=!0}else if(ee)ee=!1,Ot=!0;else et(x,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");x.position+=1,se=xe}else{if(vt=x.line,jt=x.lineStart,U=x.position,!je(x,Lt,c,!1,!0))break;if(x.line===Le){se=x.input.charCodeAt(x.position);while(j(se))se=x.input.charCodeAt(++x.position);if(se===58){if(se=x.input.charCodeAt(++x.position),!Q(se))et(x,"a whitespace character is expected after the key-value separator within a block mapping");if(ee)ae(x,Et,$t,Ut,Wt,null,vt,jt,U),Ut=Wt=re=null;ie=!0,ee=!1,Ot=!1,Ut=x.tag,Wt=x.result}else if(ie)et(x,"can not read an implicit mapping pair; a colon is missed");else return x.tag=bt,x.anchor=Nt,!0}else if(ie)et(x,"can not read a block mapping entry; a multiline key may not be an implicit key");else return x.tag=bt,x.anchor=Nt,!0}if(x.line===Le||x.lineIndent>yt){if(ee)vt=x.line,jt=x.lineStart,U=x.position;if(je(x,yt,f,!0,Ot))if(ee)Wt=x.result;else re=x.result;if(!ee)ae(x,Et,$t,Ut,Wt,re,vt,jt,U),Ut=Wt=re=null;fe(x,!0,-1),se=x.input.charCodeAt(x.position)}if((x.line===Le||x.lineIndent>yt)&&se!==0)et(x,"bad indentation of a mapping entry");else if(x.lineIndent<yt)break}if(ee)ae(x,Et,$t,Ut,Wt,null,vt,jt,U);if(ie)x.tag=bt,x.anchor=Nt,x.kind="mapping",x.result=Et;return ie}t(_e,"readBlockMapping");function Ci(x){let yt=!1,Lt=!1,Ot,vt,jt=x.input.charCodeAt(x.position);if(jt!==33)return!1;if(x.tag!==null)et(x,"duplication of a tag property");if(jt=x.input.charCodeAt(++x.position),jt===60)yt=!0,jt=x.input.charCodeAt(++x.position);else if(jt===33)Lt=!0,Ot="!!",jt=x.input.charCodeAt(++x.position);else Ot="!";let U=x.position;if(yt){do jt=x.input.charCodeAt(++x.position);while(jt!==0&&jt!==62);if(x.position<x.length)vt=x.input.slice(U,x.position),jt=x.input.charCodeAt(++x.position);else et(x,"unexpected end of the stream within a verbatim tag")}else{while(jt!==0&&!Q(jt)){if(jt===33)if(!Lt){if(Ot=x.input.slice(U-1,x.position+1),!_.test(Ot))et(x,"named tag handle cannot contain such characters");Lt=!0,U=x.position+1}else et(x,"tag suffix cannot contain exclamation marks");jt=x.input.charCodeAt(++x.position)}if(vt=x.input.slice(U,x.position),w.test(vt))et(x,"tag suffix cannot contain flow indicator characters")}if(vt&&!O.test(vt))et(x,"tag name cannot contain such characters: "+vt);try{vt=decodeURIComponent(vt)}catch(bt){et(x,"tag name is malformed: "+vt)}if(yt)x.tag=vt;else if(s.call(x.tagMap,Ot))x.tag=x.tagMap[Ot]+vt;else if(Ot==="!")x.tag="!"+vt;else if(Ot==="!!")x.tag="tag:yaml.org,2002:"+vt;else et(x,'undeclared tag handle "'+Ot+'"');return!0}t(Ci,"readTagProperty");function Qe(x){let yt=x.input.charCodeAt(x.position);if(yt!==38)return!1;if(x.anchor!==null)et(x,"duplication of an anchor property");yt=x.input.charCodeAt(++x.position);let Lt=x.position;while(yt!==0&&!Q(yt)&&!J(yt))yt=x.input.charCodeAt(++x.position);if(x.position===Lt)et(x,"name of an anchor node must contain at least one character");return x.anchor=x.input.slice(Lt,x.position),!0}t(Qe,"readAnchorProperty");function Ar(x){let yt=x.input.charCodeAt(x.position);if(yt!==42)return!1;yt=x.input.charCodeAt(++x.position);let Lt=x.position;while(yt!==0&&!Q(yt)&&!J(yt))yt=x.input.charCodeAt(++x.position);if(x.position===Lt)et(x,"name of an alias node must contain at least one character");let Ot=x.input.slice(Lt,x.position);if(!s.call(x.anchorMap,Ot))et(x,'unidentified alias "'+Ot+'"');return x.result=x.anchorMap[Ot],fe(x,!0,-1),!0}t(Ar,"readAlias");function Ui(x,yt,Lt,Ot){let vt=le(x);if(Vt(x),ye(x,yt),x.tag=null,x.anchor=null,x.kind=null,x.result=null,_e(x,Lt,Ot)&&x.kind==="mapping")return Xt(x),!0;return ce(x),ye(x,vt),!1}t(Ui,"tryReadBlockMappingFromProperty");function je(x,yt,Lt,Ot,vt){let jt,U,bt=1,Nt=!1,Et=!1,$t=null,Ut,Wt,re;if(x.depth>=x.maxDepth)et(x,"nesting exceeded maxDepth ("+x.maxDepth+")");if(x.depth+=1,x.listener!==null)x.listener("open",x);x.tag=null,x.anchor=null,x.kind=null,x.result=null;let ee=jt=U=f===Lt||l===Lt;if(Ot){if(fe(x,!0,-1)){if(Nt=!0,x.lineIndent>yt)bt=1;else if(x.lineIndent===yt)bt=0;else if(x.lineIndent<yt)bt=-1}}if(bt===1)while(!0){let ie=x.input.charCodeAt(x.position),se=le(x);if(Nt&&(ie===33&&x.tag!==null||ie===38&&x.anchor!==null))break;if(!Ci(x)&&!Qe(x))break;if($t===null)$t=se;if(fe(x,!0,-1)){if(Nt=!0,U=ee,x.lineIndent>yt)bt=1;else if(x.lineIndent===yt)bt=0;else if(x.lineIndent<yt)bt=-1}else U=!1}if(U)U=Nt||vt;if(bt===1||f===Lt){if(n===Lt||c===Lt)Wt=yt;else Wt=yt+1;if(re=x.position-x.lineStart,bt===1)if(U&&(gr(x,re)||_e(x,re,Wt))||Yi(x,Wt))Et=!0;else{let ie=x.input.charCodeAt(x.position);if($t!==null&&ee&&!U&&ie!==124&&ie!==62&&Ui(x,$t,$t.position-$t.lineStart,Wt))Et=!0;else if(jt&&ve(x,Wt)||xi(x,Wt)||Fr(x,Wt))Et=!0;else if(Ar(x)){if(Et=!0,x.tag!==null||x.anchor!==null)et(x,"alias node should not have any properties")}else if(Ir(x,Wt,n===Lt)){if(Et=!0,x.tag===null)x.tag="?"}if(x.anchor!==null)Mt(x,x.anchor,x.result)}else if(bt===0)Et=U&&gr(x,re)}if(x.tag===null){if(x.anchor!==null)Mt(x,x.anchor,x.result)}else if(x.tag==="?"){if(x.result!==null&&x.kind!=="scalar")et(x,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+x.kind+'"');for(let ie=0,se=x.implicitTypes.length;ie<se;ie+=1)if(Ut=x.implicitTypes[ie],Ut.resolve(x.result)){if(x.result=Ut.construct(x.result),x.tag=Ut.tag,x.anchor!==null)Mt(x,x.anchor,x.result);break}}else if(x.tag!=="!"){if(s.call(x.typeMap[x.kind||"fallback"],x.tag))Ut=x.typeMap[x.kind||"fallback"][x.tag];else{Ut=null;let ie=x.typeMap.multi[x.kind||"fallback"];for(let se=0,xe=ie.length;se<xe;se+=1)if(x.tag.slice(0,ie[se].tag.length)===ie[se].tag){Ut=ie[se];break}}if(!Ut)et(x,"unknown tag !<"+x.tag+">");if(x.result!==null&&Ut.kind!==x.kind)et(x,"unacceptable node kind for !<"+x.tag+'> tag; it should be "'+Ut.kind+'", not "'+x.kind+'"');if(!Ut.resolve(x.result,x.tag))et(x,"cannot resolve a node with !<"+x.tag+"> explicit tag");else if(x.result=Ut.construct(x.result,x.tag),x.anchor!==null)Mt(x,x.anchor,x.result)}if(x.listener!==null)x.listener("close",x);return x.depth-=1,x.tag!==null||x.anchor!==null||Et}t(je,"composeNode");function ji(x){let yt=x.position,Lt=!1,Ot;x.version=null,x.checkLineBreaks=x.legacy,x.tagMap=Object.create(null),x.anchorMap=Object.create(null);while((Ot=x.input.charCodeAt(x.position))!==0){if(fe(x,!0,-1),Ot=x.input.charCodeAt(x.position),x.lineIndent>0||Ot!==37)break;Lt=!0,Ot=x.input.charCodeAt(++x.position);let vt=x.position;while(Ot!==0&&!Q(Ot))Ot=x.input.charCodeAt(++x.position);let jt=x.input.slice(vt,x.position),U=[];if(jt.length<1)et(x,"directive name must not be less than one character in length");while(Ot!==0){while(j(Ot))Ot=x.input.charCodeAt(++x.position);if(Ot===35){do Ot=x.input.charCodeAt(++x.position);while(Ot!==0&&!W(Ot));break}if(W(Ot))break;vt=x.position;while(Ot!==0&&!Q(Ot))Ot=x.input.charCodeAt(++x.position);U.push(x.input.slice(vt,x.position))}if(Ot!==0)ue(x);if(s.call(Ce,jt))Ce[jt](x,jt,U);else Bt(x,'unknown document directive "'+jt+'"')}if(fe(x,!0,-1),x.lineIndent===0&&x.input.charCodeAt(x.position)===45&&x.input.charCodeAt(x.position+1)===45&&x.input.charCodeAt(x.position+2)===45)x.position+=3,fe(x,!0,-1);else if(Lt)et(x,"directives end mark is expected");if(je(x,x.lineIndent-1,f,!1,!0),fe(x,!0,-1),x.checkLineBreaks&&k.test(x.input.slice(yt,x.position)))Bt(x,"non-ASCII line breaks are interpreted as content");if(x.documents.push(x.result),x.position===x.lineStart&&Ae(x)){if(x.input.charCodeAt(x.position)===46)x.position+=3,fe(x,!0,-1);return}if(x.position<x.length-1)et(x,"end of the stream or a document separator is expected")}t(ji,"readDocument");function Wr(x,yt){if(x=String(x),yt=yt||{},x.length!==0){if(x.charCodeAt(x.length-1)!==10&&x.charCodeAt(x.length-1)!==13)x+=`
|
|
145
|
+
`;if(x.charCodeAt(0)===65279)x=x.slice(1)}let Lt=new ot(x,yt),Ot=x.indexOf("\x00");if(Ot!==-1)Lt.position=Ot,et(Lt,"null byte is not allowed in input");Lt.input+="\x00";while(Lt.input.charCodeAt(Lt.position)===32)Lt.lineIndent+=1,Lt.position+=1;while(Lt.position<Lt.length-1)ji(Lt);return Lt.documents}t(Wr,"loadDocuments");function bi(x,yt,Lt){if(yt!==null&&typeof yt==="object"&&typeof Lt>"u")Lt=yt,yt=null;let Ot=Wr(x,Lt);if(typeof yt!=="function")return Ot;for(let vt=0,jt=Ot.length;vt<jt;vt+=1)yt(Ot[vt])}t(bi,"loadAll2");function ki(x,yt){let Lt=Wr(x,yt);if(Lt.length===0)return;else if(Lt.length===1)return Lt[0];throw new e("expected a single document in the stream, but found more")}return t(ki,"load2"),hl.loadAll=bi,hl.load=ki,hl}t(Yg,"requireLoader");var qu={},Ng;function Ug(){if(Ng)return qu;Ng=1;let r=ys(),e=xs(),o=cl(),a=Object.prototype.toString,s=Object.prototype.hasOwnProperty,n=65279,c=9,l=10,f=13,p=32,u=33,m=34,y=35,k=37,w=38,_=39,O=42,q=44,W=45,j=58,Q=61,J=62,ut=63,lt=64,gt=91,wt=93,At=96,_t=123,Tt=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 xt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],et=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Bt(U,bt){if(bt===null)return{};let Nt={},Et=Object.keys(bt);for(let $t=0,Ut=Et.length;$t<Ut;$t+=1){let Wt=Et[$t],re=String(bt[Wt]);if(Wt.slice(0,2)==="!!")Wt="tag:yaml.org,2002:"+Wt.slice(2);let ee=U.compiledTypeMap.fallback[Wt];if(ee&&s.call(ee.styleAliases,re))re=ee.styleAliases[re];Nt[Wt]=re}return Nt}t(Bt,"compileStyleMap");function Mt(U){let bt,Nt,Et=U.toString(16).toUpperCase();if(U<=255)bt="x",Nt=2;else if(U<=65535)bt="u",Nt=4;else if(U<=4294967295)bt="U",Nt=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+bt+r.repeat("0",Nt-Et.length)+Et}t(Mt,"encodeHex");let Vt=1,Xt=2;function ce(U){this.schema=U.schema||o,this.indent=Math.max(1,U.indent||2),this.noArrayIndent=U.noArrayIndent||!1,this.skipInvalid=U.skipInvalid||!1,this.flowLevel=r.isNothing(U.flowLevel)?-1:U.flowLevel,this.styleMap=Bt(this.schema,U.styles||null),this.sortKeys=U.sortKeys||!1,this.lineWidth=U.lineWidth||80,this.noRefs=U.noRefs||!1,this.noCompatMode=U.noCompatMode||!1,this.condenseFlow=U.condenseFlow||!1,this.quotingType=U.quotingType==='"'?Xt:Vt,this.forceQuotes=U.forceQuotes||!1,this.replacer=typeof U.replacer==="function"?U.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}t(ce,"State");function le(U,bt){let Nt=r.repeat(" ",bt),Et=0,$t="",Ut=U.length;while(Et<Ut){let Wt,re=U.indexOf(`
|
|
146
|
+
`,Et);if(re===-1)Wt=U.slice(Et),Et=Ut;else Wt=U.slice(Et,re+1),Et=re+1;if(Wt.length&&Wt!==`
|
|
147
|
+
`)$t+=Nt;$t+=Wt}return $t}t(le,"indentString");function ye(U,bt){return`
|
|
148
|
+
`+r.repeat(" ",U.indent*bt)}t(ye,"generateNextLine");function Ce(U,bt){for(let Nt=0,Et=U.implicitTypes.length;Nt<Et;Nt+=1)if(U.implicitTypes[Nt].resolve(bt))return!0;return!1}t(Ce,"testImplicitResolving");function pe(U){return U===p||U===c}t(pe,"isWhitespace");function Gt(U){return U>=32&&U<=126||U>=161&&U<=55295&&U!==8232&&U!==8233||U>=57344&&U<=65533&&U!==n||U>=65536&&U<=1114111}t(Gt,"isPrintable");function ae(U){return Gt(U)&&U!==n&&U!==f&&U!==l}t(ae,"isNsCharOrWhitespace");function ue(U,bt,Nt){let Et=ae(U),$t=Et&&!pe(U);return(Nt?Et:Et&&U!==q&&U!==gt&&U!==wt&&U!==_t&&U!==it)&&U!==y&&!(bt===j&&!$t)||ae(bt)&&!pe(bt)&&U===y||bt===j&&$t}t(ue,"isPlainSafe");function fe(U){return Gt(U)&&U!==n&&!pe(U)&&U!==W&&U!==ut&&U!==j&&U!==q&&U!==gt&&U!==wt&&U!==_t&&U!==it&&U!==y&&U!==w&&U!==O&&U!==u&&U!==Tt&&U!==Q&&U!==J&&U!==_&&U!==m&&U!==k&&U!==lt&&U!==At}t(fe,"isPlainSafeFirst");function Ae(U){return!pe(U)&&U!==j}t(Ae,"isPlainSafeLast");function Fe(U,bt){let Nt=U.charCodeAt(bt),Et;if(Nt>=55296&&Nt<=56319&&bt+1<U.length){if(Et=U.charCodeAt(bt+1),Et>=56320&&Et<=57343)return(Nt-55296)*1024+Et-56320+65536}return Nt}t(Fe,"codePointAt");function Ir(U){return/^\n* /.test(U)}t(Ir,"needIndentIndicator");let xi=1,Fr=2,Yi=3,ve=4,gr=5;function _e(U,bt,Nt,Et,$t,Ut,Wt,re){let ee,ie=0,se=null,xe=!1,Le=!1,Fs=Et!==-1,Gi=-1,Xi=fe(Fe(U,0))&&Ae(Fe(U,U.length-1));if(bt||Wt)for(ee=0;ee<U.length;ie>=65536?ee+=2:ee++){if(ie=Fe(U,ee),!Gt(ie))return gr;Xi=Xi&&ue(ie,se,re),se=ie}else{for(ee=0;ee<U.length;ie>=65536?ee+=2:ee++){if(ie=Fe(U,ee),ie===l){if(xe=!0,Fs)Le=Le||ee-Gi-1>Et&&U[Gi+1]!==" ",Gi=ee}else if(!Gt(ie))return gr;Xi=Xi&&ue(ie,se,re),se=ie}Le=Le||Fs&&(ee-Gi-1>Et&&U[Gi+1]!==" ")}if(!xe&&!Le){if(Xi&&!Wt&&!$t(U))return xi;return Ut===Xt?gr:Fr}if(Nt>9&&Ir(U))return gr;if(!Wt)return Le?ve:Yi;return Ut===Xt?gr:Fr}t(_e,"chooseScalarStyle");function Ci(U,bt,Nt,Et,$t){U.dump=function(){if(bt.length===0)return U.quotingType===Xt?'""':"''";if(!U.noCompatMode){if(xt.indexOf(bt)!==-1||et.test(bt))return U.quotingType===Xt?'"'+bt+'"':"'"+bt+"'"}let Ut=U.indent*Math.max(1,Nt),Wt=U.lineWidth===-1?-1:Math.max(Math.min(U.lineWidth,40),U.lineWidth-Ut),re=Et||U.flowLevel>-1&&Nt>=U.flowLevel;function ee(ie){return Ce(U,ie)}switch(t(ee,"testAmbiguity"),_e(bt,re,U.indent,Wt,ee,U.quotingType,U.forceQuotes&&!Et,$t)){case xi:return bt;case Fr:return"'"+bt.replace(/'/g,"''")+"'";case Yi:return"|"+Qe(bt,U.indent)+Ar(le(bt,Ut));case ve:return">"+Qe(bt,U.indent)+Ar(le(Ui(bt,Wt),Ut));case gr:return'"'+ji(bt)+'"';default:throw new e("impossible error: invalid scalar style")}}()}t(Ci,"writeScalar");function Qe(U,bt){let Nt=Ir(U)?String(bt):"",Et=U[U.length-1]===`
|
|
149
|
+
`,Ut=Et&&(U[U.length-2]===`
|
|
150
|
+
`||U===`
|
|
151
|
+
`)?"+":Et?"":"-";return Nt+Ut+`
|
|
152
|
+
`}t(Qe,"blockHeader");function Ar(U){return U[U.length-1]===`
|
|
153
|
+
`?U.slice(0,-1):U}t(Ar,"dropEndingNewline");function Ui(U,bt){let Nt=/(\n+)([^\n]*)/g,Et=function(){let re=U.indexOf(`
|
|
154
|
+
`);return re=re!==-1?re:U.length,Nt.lastIndex=re,je(U.slice(0,re),bt)}(),$t=U[0]===`
|
|
155
|
+
`||U[0]===" ",Ut,Wt;while(Wt=Nt.exec(U)){let re=Wt[1],ee=Wt[2];Ut=ee[0]===" ",Et+=re+(!$t&&!Ut&&ee!==""?`
|
|
156
|
+
`:"")+je(ee,bt),$t=Ut}return Et}t(Ui,"foldString");function je(U,bt){if(U===""||U[0]===" ")return U;let Nt=/ [^ ]/g,Et,$t=0,Ut,Wt=0,re=0,ee="";while(Et=Nt.exec(U)){if(re=Et.index,re-$t>bt)Ut=Wt>$t?Wt:re,ee+=`
|
|
157
|
+
`+U.slice($t,Ut),$t=Ut+1;Wt=re}if(ee+=`
|
|
158
|
+
`,U.length-$t>bt&&Wt>$t)ee+=U.slice($t,Wt)+`
|
|
159
|
+
`+U.slice(Wt+1);else ee+=U.slice($t);return ee.slice(1)}t(je,"foldLine");function ji(U){let bt="",Nt=0;for(let Et=0;Et<U.length;Nt>=65536?Et+=2:Et++){Nt=Fe(U,Et);let $t=ot[Nt];if(!$t&&Gt(Nt)){if(bt+=U[Et],Nt>=65536)bt+=U[Et+1]}else bt+=$t||Mt(Nt)}return bt}t(ji,"escapeString");function Wr(U,bt,Nt){let Et="",$t=U.tag;for(let Ut=0,Wt=Nt.length;Ut<Wt;Ut+=1){let re=Nt[Ut];if(U.replacer)re=U.replacer.call(Nt,String(Ut),re);if(Lt(U,bt,re,!1,!1)||typeof re>"u"&&Lt(U,bt,null,!1,!1)){if(Et!=="")Et+=","+(!U.condenseFlow?" ":"");Et+=U.dump}}U.tag=$t,U.dump="["+Et+"]"}t(Wr,"writeFlowSequence");function bi(U,bt,Nt,Et){let $t="",Ut=U.tag;for(let Wt=0,re=Nt.length;Wt<re;Wt+=1){let ee=Nt[Wt];if(U.replacer)ee=U.replacer.call(Nt,String(Wt),ee);if(Lt(U,bt+1,ee,!0,!0,!1,!0)||typeof ee>"u"&&Lt(U,bt+1,null,!0,!0,!1,!0)){if(!Et||$t!=="")$t+=ye(U,bt);if(U.dump&&l===U.dump.charCodeAt(0))$t+="-";else $t+="- ";$t+=U.dump}}U.tag=Ut,U.dump=$t||"[]"}t(bi,"writeBlockSequence");function ki(U,bt,Nt){let Et="",$t=U.tag,Ut=Object.keys(Nt);for(let Wt=0,re=Ut.length;Wt<re;Wt+=1){let ee="";if(Et!=="")ee+=", ";if(U.condenseFlow)ee+='"';let ie=Ut[Wt],se=Nt[ie];if(U.replacer)se=U.replacer.call(Nt,ie,se);if(!Lt(U,bt,ie,!1,!1))continue;if(U.dump.length>1024)ee+="? ";if(ee+=U.dump+(U.condenseFlow?'"':"")+":"+(U.condenseFlow?"":" "),!Lt(U,bt,se,!1,!1))continue;ee+=U.dump,Et+=ee}U.tag=$t,U.dump="{"+Et+"}"}t(ki,"writeFlowMapping");function x(U,bt,Nt,Et){let $t="",Ut=U.tag,Wt=Object.keys(Nt);if(U.sortKeys===!0)Wt.sort();else if(typeof U.sortKeys==="function")Wt.sort(U.sortKeys);else if(U.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let re=0,ee=Wt.length;re<ee;re+=1){let ie="";if(!Et||$t!=="")ie+=ye(U,bt);let se=Wt[re],xe=Nt[se];if(U.replacer)xe=U.replacer.call(Nt,se,xe);if(!Lt(U,bt+1,se,!0,!0,!0))continue;let Le=U.tag!==null&&U.tag!=="?"||U.dump&&U.dump.length>1024;if(Le)if(U.dump&&l===U.dump.charCodeAt(0))ie+="?";else ie+="? ";if(ie+=U.dump,Le)ie+=ye(U,bt);if(!Lt(U,bt+1,xe,!0,Le))continue;if(U.dump&&l===U.dump.charCodeAt(0))ie+=":";else ie+=": ";ie+=U.dump,$t+=ie}U.tag=Ut,U.dump=$t||"{}"}t(x,"writeBlockMapping");function yt(U,bt,Nt){let Et=Nt?U.explicitTypes:U.implicitTypes;for(let $t=0,Ut=Et.length;$t<Ut;$t+=1){let Wt=Et[$t];if((Wt.instanceOf||Wt.predicate)&&(!Wt.instanceOf||typeof bt==="object"&&bt instanceof Wt.instanceOf)&&(!Wt.predicate||Wt.predicate(bt))){if(Nt)if(Wt.multi&&Wt.representName)U.tag=Wt.representName(bt);else U.tag=Wt.tag;else U.tag="?";if(Wt.represent){let re=U.styleMap[Wt.tag]||Wt.defaultStyle,ee;if(a.call(Wt.represent)==="[object Function]")ee=Wt.represent(bt,re);else if(s.call(Wt.represent,re))ee=Wt.represent[re](bt,re);else throw new e("!<"+Wt.tag+'> tag resolver accepts not "'+re+'" style');U.dump=ee}return!0}}return!1}t(yt,"detectType");function Lt(U,bt,Nt,Et,$t,Ut,Wt){if(U.tag=null,U.dump=Nt,!yt(U,Nt,!1))yt(U,Nt,!0);let re=a.call(U.dump),ee=Et;if(Et)Et=U.flowLevel<0||U.flowLevel>bt;let ie=re==="[object Object]"||re==="[object Array]",se,xe;if(ie)se=U.duplicates.indexOf(Nt),xe=se!==-1;if(U.tag!==null&&U.tag!=="?"||xe||U.indent!==2&&bt>0)$t=!1;if(xe&&U.usedDuplicates[se])U.dump="*ref_"+se;else{if(ie&&xe&&!U.usedDuplicates[se])U.usedDuplicates[se]=!0;if(re==="[object Object]"){if(Et&&Object.keys(U.dump).length!==0){if(x(U,bt,U.dump,$t),xe)U.dump="&ref_"+se+U.dump}else if(ki(U,bt,U.dump),xe)U.dump="&ref_"+se+" "+U.dump}else if(re==="[object Array]"){if(Et&&U.dump.length!==0){if(U.noArrayIndent&&!Wt&&bt>0)bi(U,bt-1,U.dump,$t);else bi(U,bt,U.dump,$t);if(xe)U.dump="&ref_"+se+U.dump}else if(Wr(U,bt,U.dump),xe)U.dump="&ref_"+se+" "+U.dump}else if(re==="[object String]"){if(U.tag!=="?")Ci(U,U.dump,bt,Ut,ee)}else if(re==="[object Undefined]")return!1;else{if(U.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+re)}if(U.tag!==null&&U.tag!=="?"){let Le=encodeURI(U.tag[0]==="!"?U.tag.slice(1):U.tag).replace(/!/g,"%21");if(U.tag[0]==="!")Le="!"+Le;else if(Le.slice(0,18)==="tag:yaml.org,2002:")Le="!!"+Le.slice(18);else Le="!<"+Le+">";U.dump=Le+" "+U.dump}}return!0}t(Lt,"writeNode");function Ot(U,bt){let Nt=[],Et=[];vt(U,Nt,Et);let $t=Et.length;for(let Ut=0;Ut<$t;Ut+=1)bt.duplicates.push(Nt[Et[Ut]]);bt.usedDuplicates=Array($t)}t(Ot,"getDuplicateReferences");function vt(U,bt,Nt){if(U!==null&&typeof U==="object"){let Et=bt.indexOf(U);if(Et!==-1){if(Nt.indexOf(Et)===-1)Nt.push(Et)}else if(bt.push(U),Array.isArray(U))for(let $t=0,Ut=U.length;$t<Ut;$t+=1)vt(U[$t],bt,Nt);else{let $t=Object.keys(U);for(let Ut=0,Wt=$t.length;Ut<Wt;Ut+=1)vt(U[$t[Ut]],bt,Nt)}}}t(vt,"inspectNode");function jt(U,bt){bt=bt||{};let Nt=new ce(bt);if(!Nt.noRefs)Ot(U,Nt);let Et=U;if(Nt.replacer)Et=Nt.replacer.call({"":Et},"",Et);if(Lt(Nt,0,Et,!0,!0))return Nt.dump+`
|
|
160
|
+
`;return""}return t(jt,"dump2"),qu.dump=jt,qu}t(Ug,"requireDumper");var Wg;function jg(){if(Wg)return ir;Wg=1;let r=Yg(),e=Ug();function o(a,s){return function(){throw Error("Function yaml."+a+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}return t(o,"renamed"),ir.Type=ar(),ir.Schema=Nu(),ir.FAILSAFE_SCHEMA=Yu(),ir.JSON_SCHEMA=Vu(),ir.CORE_SCHEMA=Ku(),ir.DEFAULT_SCHEMA=cl(),ir.load=r.load,ir.loadAll=r.loadAll,ir.dump=e.dump,ir.YAMLException=xs(),ir.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()},ir.safeLoad=o("safeLoad","load"),ir.safeLoadAll=o("safeLoadAll","loadAll"),ir.safeDump=o("safeDump","dump"),ir}t(jg,"requireJsYaml");var t2=jg(),e2=zg(t2),{Type:I3,Schema:$3,FAILSAFE_SCHEMA:D3,JSON_SCHEMA:Kt,CORE_SCHEMA:P3,DEFAULT_SCHEMA:R3,load:Zt,loadAll:q3,dump:N3,YAMLException:W3,types:z3,safeLoad:H3,safeLoadAll:Y3,safeDump:U3}=e2;var Mo=t((r,e)=>{let{theme:o,themeVariables:a}=e,{useGradient:s,gradientStart:n,gradientStop:c}=a??{},l=r.attr("id"),f=o?.includes("dark")?"#FFFFFF":"#000000",p=t((m,y,k)=>r.append("defs").append("filter").attr("id",m).attr("height",y).attr("width",y).append("feDropShadow").attr("dx",k).attr("dy",k).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",f),"dropShadow");if(p(`${l}-drop-shadow`,"130%","4"),p(`${l}-drop-shadow-small`,"150%","2"),!s)return;let u=r.append("linearGradient").attr("id",`${l}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");u.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),u.append("svg:stop").attr("offset","100%").attr("stop-color",c).attr("stop-opacity",1)},"insertLookDefs");var Gg=t((r)=>{let{handDrawnSeed:e}=d();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"),hi=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((o)=>{let[a,s]=o.split(":");e.set(a.trim(),s?.trim())}),e},"styles2Map"),Di=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}=hi(r),o=[],a=[],s=[],n=[];return e.forEach((c)=>{let l=c[0];if(Di(l))o.push(c.join(":")+" !important");else{if(a.push(c.join(":")+" !important"),l.includes("stroke"))s.push(c.join(":")+" !important");if(l==="fill")n.push(c.join(":")+" !important")}}),{labelStyles:o.join(";"),nodeStyles:a.join(";"),stylesArray:e,borderStyles:s,backgroundStyles:n}},"styles2String"),Jt=t((r,e)=>{let{themeVariables:o,handDrawnSeed:a}=d(),{nodeBorder:s,mainBkg:n}=o,{stylesMap:c}=hi(r);return Object.assign({roughness:0.7,fill:c.get("fill")||n,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:c.get("stroke")||s,seed:a,strokeWidth:c.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:o2(c.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 s=isNaN(e[0])?0:e[0];return[s,s]}let o=isNaN(e[0])?0:e[0],a=isNaN(e[1])?0:e[1];return[o,a]},"getStrokeDashArray");var of=(r,e,o,a="")=>{let s=r.split(":");if(r.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;a=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){let l=s.pop(),f=s.pop(),p={provider:s.length>0?s[0]:a,prefix:f,name:l};return e&&!ul(p)?null:p}let n=s[0],c=n.split("-");if(c.length>1){let l={provider:a,prefix:c.shift(),name:c.join("-")};return e&&!ul(l)?null:l}if(o&&a===""){let l={provider:a,prefix:"",name:n};return e&&!ul(l,o)?null:l}return null},ul=(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 o={};if(!r.hFlip!==!e.hFlip)o.hFlip=!0;if(!r.vFlip!==!e.vFlip)o.vFlip=!0;let a=((r.rotate||0)+(e.rotate||0))%4;if(a)o.rotate=a;return o}function af(r,e){let o=Vg(r,e);for(let a in Xg)if(a in Cs){if(a in r&&!(a in o))o[a]=Cs[a]}else if(a in e)o[a]=e[a];else if(a in r)o[a]=r[a];return o}function Kg(r,e){let o=r.icons,a=r.aliases||Object.create(null),s=Object.create(null);function n(c){if(o[c])return s[c]=[];if(!(c in s)){s[c]=null;let l=a[c]&&a[c].parent,f=l&&n(l);if(f)s[c]=[l].concat(f)}return s[c]}return(e||Object.keys(o).concat(Object.keys(a))).forEach(n),s}function Zg(r,e,o){let a=r.icons,s=r.aliases||Object.create(null),n={};function c(l){n=af(a[l]||s[l],n)}return c(e),o.forEach(c),af(r,n)}function nf(r,e){if(r.icons[e])return Zg(r,e,[]);let o=Kg(r,[e])[e];return o?Zg(r,e,o):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,o){if(e===1)return r;if(o=o||100,typeof r==="number")return Math.ceil(r*e*o)/o;if(typeof r!=="string")return r;let a=r.split(n2);if(a===null||!a.length)return r;let s=[],n=a.shift(),c=l2.test(n);while(!0){if(c){let l=parseFloat(n);if(isNaN(l))s.push(n);else s.push(Math.ceil(l*e*o)/o)}else s.push(n);if(n=a.shift(),n===void 0)return s.join("");c=!c}}function h2(r,e="defs"){let o="",a=r.indexOf("<"+e);while(a>=0){let s=r.indexOf(">",a),n=r.indexOf("</"+e);if(s===-1||n===-1)break;let c=r.indexOf(">",n);if(c===-1)break;o+=r.slice(s+1,n).trim(),r=r.slice(0,a).trim()+r.slice(c+1)}return{defs:o,content:r}}function c2(r,e){return r?"<defs>"+r+"</defs>"+e:e}function Jg(r,e,o){let a=h2(r);return c2(a.defs,e+a.content+o)}var u2=(r)=>r==="unset"||r==="undefined"||r==="none";function hf(r,e){let o={...sf,...r},a={...Qg,...e},s={left:o.left,top:o.top,width:o.width,height:o.height},n=o.body;[o,a].forEach((_)=>{let O=[],{hFlip:q,vFlip:W,rotate:j}=_;if(q)if(W)j+=2;else O.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),O.push("scale(-1 1)"),s.top=s.left=0;else if(W)O.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),O.push("scale(1 -1)"),s.top=s.left=0;let Q;if(j<0)j-=Math.floor(j/4)*4;switch(j=j%4,j){case 1:Q=s.height/2+s.top,O.unshift("rotate(90 "+Q.toString()+" "+Q.toString()+")");break;case 2:O.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:Q=s.width/2+s.left,O.unshift("rotate(-90 "+Q.toString()+" "+Q.toString()+")")}if(j%2===1){if(s.left!==s.top)Q=s.left,s.left=s.top,s.top=Q;if(s.width!==s.height)Q=s.width,s.width=s.height,s.height=Q}if(O.length)n=Jg(n,'<g transform="'+O.join(" ")+'">',"</g>")});let{width:c,height:l}=a,{width:f,height:p}=s,u,m;if(c===null)m=l===null?"1em":l==="auto"?p:l,u=lf(m,f/p);else u=c==="auto"?f:c,m=l===null?lf(u,p/f):l==="auto"?p:l;let y={},k=(_,O)=>{if(!u2(O))y[_]=O.toString()};k("width",u),k("height",m);let w=[s.left,s.top,f,p];return y.viewBox=w.join(" "),{attributes:y,viewBox:w,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=[],o;while(o=f2.exec(r))e.push(o[1]);if(!e.length)return r;let a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach((s)=>{let n=d2(s),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+n+a+"$3")}),r=r.replace(new RegExp(a,"g"),""),r}function uf(r,e){let o=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let a in e)o+=" "+a+'="'+e[a]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+r+"</svg>"}var Qs={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,ea=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(i.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 i.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),rm=t(async(r,e)=>{let o=of(r,!0,e!==void 0);if(!o)throw Error(`Invalid icon name: ${r}`);let a=o.prefix||e;if(!a)throw Error(`Icon name must contain a prefix: ${r}`);let s=ff.get(a);if(!s){let c=em.get(a);if(!c)throw Error(`Icon set not found: ${o.prefix}`);try{s={...await c(),prefix:a},ff.set(a,s)}catch(l){throw i.error(l),Error(`Failed to load icon set: ${o.prefix}`)}}let n=nf(s,o.name);if(!n)throw Error(`Icon not found: ${r}`);return n},"getRegisteredIconData"),fl=t(async(r)=>{try{return await rm(r),!0}catch{return!1}},"isIconAvailable"),Qt=t(async(r,e,o)=>{let a;try{a=await rm(r,e?.fallbackPrefix)}catch(c){i.error(c),a=Qs}let s=hf(a,e),n=uf(cf(s.body),{...s.attributes,...o});return G(n,S())},"getIconSVG");var xm=rt(xa(),1);function uo(r,e){if(typeof r!=="function"||e!=null&&typeof e!=="function")throw TypeError("Expected a function");let o=function(...a){let s=e?e.apply(this,a):a[0],n=o.cache;if(n.has(s))return n.get(s);let c=r.apply(this,a);return o.cache=n.set(s,c)||n,c};return o.cache=new(uo.Cache||Map),o}uo.Cache=Map;function ta(r){return r==null||typeof r!=="object"&&typeof r!=="function"}function Cr(r){if(r==null)return r===void 0?"[object Undefined]":"[object Null]";return Object.prototype.toString.call(r)}var Ro="[object RegExp]",oi="[object String]",si="[object Number]",ci="[object Boolean]",li="[object Arguments]",Po="[object Symbol]",Io="[object Date]",Do="[object Map]",Oo="[object Set]",$o="[object Array]";var Bo="[object ArrayBuffer]",Fo="[object Object]";var zo="[object DataView]",Ho="[object Uint8Array]",Uo="[object Uint8ClampedArray]",jo="[object Uint16Array]",qo="[object Uint32Array]";var Vo="[object Int8Array]",Go="[object Int16Array]",Wo="[object Int32Array]";var Yo="[object Float32Array]",Xo="[object Float64Array]";function bs(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function Sr(r){return bs(r)}function lm(){}function hm(r){if(ta(r))return r;if(Array.isArray(r)||bs(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 o=e.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new o(r);if(r instanceof RegExp){let a=new o(r);return a.lastIndex=r.lastIndex,a}if(r instanceof DataView)return new o(r.buffer.slice(0));if(r instanceof Error){let a;if(r instanceof AggregateError)a=new o(r.errors,r.message,{cause:r.cause});else a=new o(r.message,{cause:r.cause});return a.stack=r.stack,Object.assign(a,r),a}if(typeof File<"u"&&r instanceof File)return new o([r],r.name,{type:r.type,lastModified:r.lastModified});if(typeof r==="object")return Object.assign(Object.create(e),r);return r}function dl(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 pi(r){return typeof df.Buffer<"u"&&df.Buffer.isBuffer(r)}function cm(r){return r==="__proto__"}function pl(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 o=r[Symbol.toStringTag];if(o==null)return!1;if(!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable)return!1;return r.toString()===`[object ${o}]`}let e=r;while(Object.getPrototypeOf(e)!==null)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function um(r,e){return ks(r,void 0,r,new Map,e)}function ks(r,e,o,a=new Map,s=void 0){let n=s?.(r,e,o,a);if(n!==void 0)return n;if(ta(r))return r;if(a.has(r))return a.get(r);if(Array.isArray(r)){let c=Array(r.length);a.set(r,c);for(let l=0;l<r.length;l++)c[l]=ks(r[l],l,o,a,s);if(Object.hasOwn(r,"index"))c.index=r.index;if(Object.hasOwn(r,"input"))c.input=r.input;return c}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let c=new RegExp(r.source,r.flags);return c.lastIndex=r.lastIndex,c}if(r instanceof Map){let c=new Map;a.set(r,c);for(let[l,f]of r)c.set(l,ks(f,l,o,a,s));return c}if(r instanceof Set){let c=new Set;a.set(r,c);for(let l of r)c.add(ks(l,void 0,o,a,s));return c}if(pi(r))return r.subarray();if(bs(r)){let c=new(Object.getPrototypeOf(r)).constructor(r.length);a.set(r,c);for(let l=0;l<r.length;l++)c[l]=ks(r[l],l,o,a,s);return c}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let c=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return a.set(r,c),Or(c,r,o,a,s),c}if(typeof File<"u"&&r instanceof File){let c=new File([r],r.name,{type:r.type});return a.set(r,c),Or(c,r,o,a,s),c}if(typeof Blob<"u"&&r instanceof Blob){let c=new Blob([r],{type:r.type});return a.set(r,c),Or(c,r,o,a,s),c}if(r instanceof Error){let c=structuredClone(r);return a.set(r,c),c.message=r.message,c.name=r.name,c.stack=r.stack,c.cause=r.cause,c.constructor=r.constructor,Or(c,r,o,a,s),c}if(r instanceof Boolean){let c=new Boolean(r.valueOf());return a.set(r,c),Or(c,r,o,a,s),c}if(r instanceof Number){let c=new Number(r.valueOf());return a.set(r,c),Or(c,r,o,a,s),c}if(r instanceof String){let c=new String(r.valueOf());return a.set(r,c),Or(c,r,o,a,s),c}if(typeof r==="object"&&B2(r)){let c=Object.create(Object.getPrototypeOf(r));return a.set(r,c),Or(c,r,o,a,s),c}return r}function Or(r,e,o=r,a,s){let n=[...Object.keys(e),...dl(e)];for(let c=0;c<n.length;c++){let l=n[c],f=Object.getOwnPropertyDescriptor(r,l);if(f==null||f.writable)r[l]=ks(e[l],l,o,a,s)}}function B2(r){switch(Cr(r)){case li:case $o:case Bo:case zo:case ci:case Io:case Yo:case Xo:case Vo:case Go:case Wo:case Do:case si:case Fo:case Ro:case Oo:case oi:case Po:case Ho:case Uo:case jo:case qo:return!0;default:return!1}}function fm(r,e){return um(r,(o,a,s,n)=>{let c=e?.(o,a,s,n);if(c!==void 0)return c;if(typeof r!=="object")return;if(Cr(r)==="[object Object]"&&typeof r.constructor!=="function"){let l={};return n.set(r,l),Or(l,r,s,n),l}switch(Object.prototype.toString.call(r)){case si:case oi:case ci:{let l=new r.constructor(r?.valueOf());return Or(l,r),l}case li:{let l={};return Or(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}default:return}})}function pf(r){return fm(r)}function Oi(r){return r!==null&&typeof r==="object"&&Cr(r)==="[object Arguments]"}function qa(r){return typeof r==="object"&&r!==null}function dm(r){return Number.isSafeInteger(r)&&r>=0}function Ko(r){return r!=null&&typeof r!=="function"&&dm(r.length)}function pm(r){return qa(r)&&Ko(r)}function gm(r,...e){let o=e.slice(0,-1),a=e[e.length-1],s=r;for(let n=0;n<o.length;n++){let c=o[n];s=gl(s,c,a,new Map)}return s}function gl(r,e,o,a){if(ta(r))r=Object(r);if(e==null||typeof e!=="object")return r;if(a.has(e))return hm(a.get(e));if(a.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 s=[...Object.keys(e),...dl(e)];for(let n=0;n<s.length;n++){let c=s[n];if(cm(c))continue;let l=e[c],f=r[c];if(Oi(l))l={...l};if(Oi(f))f={...f};if(pi(l))l=pf(l);if(Array.isArray(l))if(Array.isArray(f)){let u=[],m=Reflect.ownKeys(f);for(let y=0;y<m.length;y++){let k=m[y];u[k]=f[k]}f=u}else if(pm(f)){let u=[];for(let m=0;m<f.length;m++)u[m]=f[m];f=u}else f=[];let p=o(f,l,c,r,e,a);if(p!==void 0)r[c]=p;else if(Array.isArray(l))r[c]=gl(f,l,o,a);else if(qa(f)&&qa(l)&&(pl(f)||pl(l)||Sr(f)||Sr(l)))r[c]=gl(f,l,o,a);else if(f==null&&pl(l))r[c]=gl({},l,o,a);else if(f==null&&Sr(l))r[c]=pf(l);else if(f===void 0||l!==void 0)r[c]=l}return r}function gf(r,...e){return gm(r,...e,lm)}var Js="",v2={curveBasis:co,curveBasisClosed:el,curveBasisOpen:rl,curveBumpX:ba,curveBumpY:Aa,curveBundle:cu,curveCardinalClosed:uu,curveCardinalOpen:fu,curveCardinal:Ea,curveCatmullRomClosed:du,curveCatmullRomOpen:pu,curveCatmullRom:Ia,curveLinear:Vr,curveLinearClosed:al,curveMonotoneX:$a,curveMonotoneY:Da,curveNatural:gs,curveStep:ms,curveStepAfter:Ra,curveStepBefore:Pa},L2=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,F2=t(function(r,e){let o=Cm(r,/(?:init\b)|(?:initialize\b)/),a={};if(Array.isArray(o)){let c=o.map((l)=>l.args);Hs(c),a=Ne(a,[...c])}else a=o.args;if(!a)return;let s=Qa(r,e),n="config";if(a[n]!==void 0){if(s==="flowchart-v2")s="flowchart";a[s]=a[n],delete a[n]}return a},"detectInit"),Cm=t(function(r,e=null){try{let o=new RegExp(`[%]{2}(?![{]${L2.source})(?=[}][%]{2}).*
|
|
161
|
+
`,"ig");r=r.trim().replace(o,"").replace(/'/gm,'"'),i.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${r}`);let a,s=[];while((a=os.exec(r))!==null){if(a.index===os.lastIndex)os.lastIndex++;if(a&&!e||e&&a[1]?.match(e)||e&&a[2]?.match(e)){let n=a[1]?a[1]:a[2],c=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:n,args:c})}}if(s.length===0)return{type:r,args:null};return s.length===1?s[0]:s}catch(o){return i.error(`ERROR: ${o.message} - Unable to parse directive type: '${e}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),Ec=t(function(r){return r.replace(os,"")},"removeDirectives"),A2=t(function(r,e){for(let[o,a]of e.entries())if(a.match(r))return o;return-1},"isSubstringInArray");function yl(r,e){if(!r)return e;let o=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return v2[o]??e}t(yl,"interpolateToCurve");function bm(r,e){let o=r.trim();if(!o)return;if(e.securityLevel!=="loose")return xm.sanitizeUrl(o);return o}t(bm,"formatUrl");var M2=t((r,...e)=>{let o=r.split("."),a=o.length-1,s=o[a],n=window;for(let c=0;c<a;c++)if(n=n[o[c]],!n){i.error(`Function name: ${r} not found in window`);return}n[s](...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,o=0;r.forEach((s)=>{o+=mf(s,e),e=s});let a=o/2;return yf(r,a)}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 o=Math.pow(10,e);return Math.round(r*o)/o},"roundNumber"),yf=t((r,e)=>{let o=void 0,a=e;for(let s of r){if(o){let n=mf(s,o);if(n===0)return o;if(n<a)a-=n;else{let c=a/n;if(c<=0)return o;if(c>=1)return{x:s.x,y:s.y};if(c>0&&c<1)return{x:mm((1-c)*o.x+c*s.x,5),y:mm((1-c)*o.y+c*s.y,5)}}}o=s}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),E2=t((r,e,o)=>{if(i.info(`our points ${JSON.stringify(e)}`),e[0]!==o)e=e.reverse();let s=yf(e,25),n=r?10:5,c=Math.atan2(e[0].y-s.y,e[0].x-s.x),l={x:0,y:0};return l.x=Math.sin(c)*n+(e[0].x+s.x)/2,l.y=-Math.cos(c)*n+(e[0].y+s.y)/2,l},"calcCardinalityPosition");function Sm(r,e,o){let a=structuredClone(o);if(i.info("our points",a),e!=="start_left"&&e!=="start_right")a.reverse();let s=25+r,n=yf(a,s),c=10+r*0.5,l=Math.atan2(a[0].y-n.y,a[0].x-n.x),f={x:0,y:0};if(e==="start_left")f.x=Math.sin(l+Math.PI)*c+(a[0].x+n.x)/2,f.y=-Math.cos(l+Math.PI)*c+(a[0].y+n.y)/2;else if(e==="end_right")f.x=Math.sin(l-Math.PI)*c+(a[0].x+n.x)/2,f.y=-Math.cos(l-Math.PI)*c+(a[0].y+n.y)/2;else if(e==="end_left")f.x=Math.sin(l)*c+(a[0].x+n.x)/2,f.y=-Math.cos(l)*c+(a[0].y+n.y)/2;else f.x=Math.sin(l)*c+(a[0].x+n.x)/2,f.y=-Math.cos(l)*c+(a[0].y+n.y)/2;return f}t(Sm,"calcTerminalLabelPosition");function Zo(r){let e="",o="";for(let a of r)if(a!==void 0)if(a.startsWith("color:")||a.startsWith("text-align:"))o=o+a+";";else e=e+a+";";return{style:e,labelStyle:o}}t(Zo,"getStylesFromArray");var ym=0,ec=t(()=>(ym++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ym),"generateId");function Tm(r){let e="",o="0123456789abcdef",a=o.length;for(let s=0;s<r;s++)e+=o.charAt(Math.floor(Math.random()*a));return e}t(Tm,"makeRandomHex");var tc=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 o=e.text.replace(C.lineBreakRegex," "),[,a]=It(e.fontSize),s=r.append("text");if(s.attr("x",e.x),s.attr("y",e.y),s.style("text-anchor",e.anchor),s.style("font-family",e.fontFamily),s.style("font-size",a),s.style("font-weight",e.fontWeight),s.attr("fill",e.fill),e.class!==void 0)s.attr("class",e.class);let n=s.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.attr("fill",e.fill),n.text(o),s},"drawSimpleText"),na=uo((r,e,o)=>{if(!r)return r;if(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),C.hasBreaks(r))return r;let a=r.split(" ").filter(Boolean),s=[],n="";return a.forEach((c,l)=>{let f=Ft(`${c} `,o),p=Ft(n,o);if(f>e){let{hyphenatedStrings:y,remainingWord:k}=$2(c,e,"-",o);s.push(n,...y),n=k}else if(p+f>=e)s.push(n),n=c;else n=[n,c].filter(Boolean).join(" ");if(l+1===a.length)s.push(n)}),s.filter((c)=>c!=="").join(o.joinWith)},(r,e,o)=>`${r}${e}${o.fontSize}${o.fontWeight}${o.fontFamily}${o.joinWith}`),$2=uo((r,e,o="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let s=[...r],n=[],c="";return s.forEach((l,f)=>{let p=`${c}${l}`;if(Ft(p,a)>=e){let m=f+1,y=s.length===m,k=`${p}${o}`;n.push(y?p:k),c=""}else c=p}),{hyphenatedStrings:n,remainingWord:c}},(r,e,o="-",a)=>`${r}${e}${o}${a.fontSize}${a.fontWeight}${a.fontFamily}`);function $i(r,e){return Bi(r,e).height}t($i,"calculateTextHeight");function Ft(r,e){return Bi(r,e).width}t(Ft,"calculateTextWidth");var Bi=uo((r,e)=>{let{fontSize:o=12,fontFamily:a="Arial",fontWeight:s=400}=e;if(!r)return{width:0,height:0};let[,n]=It(o),c=["sans-serif",a],l=r.split(C.lineBreakRegex),f=[],p=v("body");if(!p.remove)return{width:0,height:0,lineHeight:0};let u=p.append("svg");for(let y of c){let k=0,w={width:0,height:0,lineHeight:0};for(let _ of l){let O=O2();O.text=_||Js;let q=I2(u,O).style("font-size",n).style("font-weight",s).style("font-family",y),W=(q._groups||q)[0][0].getBBox();if(W.width===0&&W.height===0)throw Error("svg element not in render tree");w.width=Math.round(Math.max(w.width,W.width)),k=Math.round(W.height),w.height+=k,w.lineHeight=Math.round(Math.max(w.lineHeight,k))}f.push(w)}u.remove();let m=isNaN(f[1].height)||isNaN(f[1].width)||isNaN(f[1].lineHeight)||f[0].height>f[1].height&&f[0].width>f[1].width&&f[0].lineHeight>f[1].lineHeight?0:1;return f[m]},(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")}},ml,P2=t(function(r){return ml=ml||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ml.innerHTML=r,unescape(ml.textContent)},"entityDecode");function Qo(r){return"str"in r}t(Qo,"isDetailedError");function nc(r){if(r instanceof Error)return r.message;return String(r)}t(nc,"getErrorMessage");var R2=t((r,e,o,a)=>{if(!a)return;let s=r.node()?.getBBox();if(!s)return;r.append("text").text(a).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-o).attr("class",e)},"insertTitle"),It=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 Z(r,e){return gf({},r,e)}t(Z,"cleanAndMerge");var H={assignWithDepth:Ne,wrapLabel:na,calculateTextHeight:$i,calculateTextWidth:Ft,calculateTextDimensions:Bi,cleanAndMerge:Z,detectInit:F2,detectDirective:Cm,isSubstringInArray:A2,interpolateToCurve:yl,calcLabelPosition:wm,calcCardinalityPosition:E2,calcTerminalLabelPosition:Sm,formatUrl:bm,getStylesFromArray:Zo,generateId:ec,random:tc,runFunc:M2,entityDecode:P2,insertTitle:R2,isLabelCoordinateInPath:_m,parseFontSize:It,InitIDGenerator:D2},Lc=t(function(r){let e=r;return e=e.replace(/style.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),e=e.replace(/#\w+;/g,function(o){let a=o.substring(1,o.length-1);if(/^\+?\d+$/.test(a))return"fl°°"+a+"¶ß";else return"fl°"+a+"¶ß"}),e},"encodeEntities"),qn=t(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),St=t((r,e,{counter:o=0,prefix:a,suffix:s},n)=>{if(n)return n;return`${a?`${a}_`:""}${r}_${e}_${o}${s?`_${s}`:""}`},"getEdgeId");function Ie(r){return r??null}t(Ie,"handleUndefinedAttr");function _m(r,e){let o=Math.round(r.x),a=Math.round(r.y),s=e.replace(/(\d+\.\d+)/g,(n)=>Math.round(parseFloat(n)).toString());return s.includes(o.toString())||s.includes(a.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 po=Cf();function Em(r){po=r}var Ha={exec:()=>null};function Te(r,e=""){let o=typeof r=="string"?r:r.source,a={replace:(s,n)=>{let c=typeof n=="string"?n:n.source;return c=c.replace(dr.caret,"$1"),o=o.replace(s,c),a},getRegex:()=>new RegExp(o,e)};return a}var q2=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),dr={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|$)|$)/,Ya=/^ {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=Te(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=Te(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=Te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),G2=Te(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bf).getRegex(),wl="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=Te("^ {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",wl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$m=Te(kf).replace("hr",Ya).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",wl).getRegex(),V2=Te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$m).getRegex(),Tf={blockquote:V2,code:W2,def:j2,fences:z2,heading:H2,hr:Ya,html:X2,lheading:Im,list:G2,newline:N2,paragraph:$m,table:Ha,text:U2},Bm=Te("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ya).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",wl).getRegex(),K2={...Tf,lheading:Y2,table:Bm,paragraph:Te(kf).replace("hr",Ya).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",wl).getRegex()},Z2={...Tf,html:Te(`^ *(?: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:Ha,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Te(kf).replace("hr",Ya).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)))/,Sl=/[\p{P}\p{S}]/u,_f=/[\s\p{P}\p{S}]/u,Pm=/[^\s\p{P}\p{S}]/u,ew=Te(/^((?![*_])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=Te(/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=Te(qm,"u").replace(/punct/g,Sl).getRegex(),aw=Te(qm,"u").replace(/punct/g,Rm).getRegex(),Nm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nw=Te(Nm,"gu").replace(/notPunctSpace/g,Pm).replace(/punctSpace/g,_f).replace(/punct/g,Sl).getRegex(),lw=Te(Nm,"gu").replace(/notPunctSpace/g,iw).replace(/punctSpace/g,rw).replace(/punct/g,Rm).getRegex(),hw=Te("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pm).replace(/punctSpace/g,_f).replace(/punct/g,Sl).getRegex(),cw=Te(/\\(punct)/,"gu").replace(/punct/g,Sl).getRegex(),uw=Te(/^<(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=Te(Sf).replace("(?:-->|$)","-->").getRegex(),dw=Te("^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(),Cl=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,pw=Te(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Cl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Wm=Te(/^!?\[(label)\]\[(ref)\]/).replace("label",Cl).replace("ref",wf).getRegex(),zm=Te(/^!?\[(ref)\](?:\[\])?/).replace("ref",wf).getRegex(),gw=Te("reflink|nolink(?!\\()","g").replace("reflink",Wm).replace("nolink",zm).getRegex(),vm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Bf={_backpedal:Ha,anyPunctuation:cw,autolink:uw,blockSkip:ow,br:Dm,code:J2,del:Ha,emStrongLDelim:sw,emStrongRDelimAst:nw,emStrongRDelimUnd:hw,escape:Q2,link:pw,nolink:zm,punctuation:ew,reflink:Wm,reflinkSearch:gw,tag:dw,text:tw,url:Ha},mw={...Bf,link:Te(/^!?\[(label)\]\((.*?)\)/).replace("label",Cl).getRegex(),reflink:Te(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Cl).getRegex()},xf={...Bf,emStrongRDelimAst:lw,emStrongLDelim:aw,url:Te(/^((?: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:Te(/^([`~]+|[^`~])(?:(?= {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:Te(Dm).replace("{2,}","*").getRegex(),text:Te(xf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xl={normal:Tf,gfm:K2,pedantic:Z2},Na={normal:Bf,gfm:xf,breaks:yw,pedantic:mw},xw={"&":"&","<":"<",">":">",'"':""","'":"'"},Lm=(r)=>xw[r];function fi(r,e){if(e){if(dr.escapeTest.test(r))return r.replace(dr.escapeReplace,Lm)}else if(dr.escapeTestNoEncode.test(r))return r.replace(dr.escapeReplaceNoEncode,Lm);return r}function Fm(r){try{r=encodeURI(r).replace(dr.percentDecode,"%")}catch{return null}return r}function Am(r,e){let o=r.replace(dr.findPipe,(n,c,l)=>{let f=!1,p=c;for(;--p>=0&&l[p]==="\\";)f=!f;return f?"|":" |"}),a=o.split(dr.splitPipe),s=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),e)if(a.length>e)a.splice(e);else for(;a.length<e;)a.push("");for(;s<a.length;s++)a[s]=a[s].trim().replace(dr.slashPipe,"|");return a}function Wa(r,e,o){let a=r.length;if(a===0)return"";let s=0;for(;s<a;){let n=r.charAt(a-s-1);if(n===e&&!o)s++;else if(n!==e&&o)s++;else break}return r.slice(0,a-s)}function Cw(r,e){if(r.indexOf(e[1])===-1)return-1;let o=0;for(let a=0;a<r.length;a++)if(r[a]==="\\")a++;else if(r[a]===e[0])o++;else if(r[a]===e[1]&&(o--,o<0))return a;return o>0?-2:-1}function Mm(r,e,o,a,s){let n=e.href,c=e.title||null,l=r[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;let f={type:r[0].charAt(0)==="!"?"image":"link",raw:o,href:n,title:c,text:l,tokens:a.inlineTokens(l)};return a.state.inLink=!1,f}function bw(r,e,o){let a=r.match(o.other.indentCodeCompensation);if(a===null)return e;let s=a[1];return e.split(`
|
|
163
|
+
`).map((n)=>{let c=n.match(o.other.beginningSpace);if(c===null)return n;let[l]=c;return l.length>=s.length?n.slice(s.length):n}).join(`
|
|
164
|
+
`)}var bl=class{options;rules;lexer;constructor(r){this.options=r||po}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 o=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?o:Wa(o,`
|
|
165
|
+
`)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let o=e[0],a=bw(o,e[3]||"",this.rules);return{type:"code",raw:o,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:a}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let o=e[2].trim();if(this.rules.other.endingHash.test(o)){let a=Wa(o,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(o=a.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:Wa(e[0],`
|
|
166
|
+
`)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let o=Wa(e[0],`
|
|
167
|
+
`).split(`
|
|
168
|
+
`),a="",s="",n=[];for(;o.length>0;){let c=!1,l=[],f;for(f=0;f<o.length;f++)if(this.rules.other.blockquoteStart.test(o[f]))l.push(o[f]),c=!0;else if(!c)l.push(o[f]);else break;o=o.slice(f);let p=l.join(`
|
|
169
|
+
`),u=p.replace(this.rules.other.blockquoteSetextReplace,`
|
|
170
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
|
|
171
|
+
${p}`:p,s=s?`${s}
|
|
172
|
+
${u}`:u;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,n,!0),this.lexer.state.top=m,o.length===0)break;let y=n.at(-1);if(y?.type==="code")break;if(y?.type==="blockquote"){let k=y,w=k.raw+`
|
|
173
|
+
`+o.join(`
|
|
174
|
+
`),_=this.blockquote(w);n[n.length-1]=_,a=a.substring(0,a.length-k.raw.length)+_.raw,s=s.substring(0,s.length-k.text.length)+_.text;break}else if(y?.type==="list"){let k=y,w=k.raw+`
|
|
175
|
+
`+o.join(`
|
|
176
|
+
`),_=this.list(w);n[n.length-1]=_,a=a.substring(0,a.length-y.raw.length)+_.raw,s=s.substring(0,s.length-k.raw.length)+_.raw,o=w.substring(n.at(-1).raw.length).split(`
|
|
177
|
+
`);continue}}return{type:"blockquote",raw:a,tokens:n,text:s}}}list(r){let e=this.rules.block.list.exec(r);if(e){let o=e[1].trim(),a=o.length>1,s={type:"list",raw:"",ordered:a,start:a?+o.slice(0,-1):"",loose:!1,items:[]};o=a?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=a?o:"[*+-]");let n=this.rules.other.listItemRegex(o),c=!1;for(;r;){let f=!1,p="",u="";if(!(e=n.exec(r))||this.rules.block.hr.test(r))break;p=e[0],r=r.substring(p.length);let m=e[2].split(`
|
|
178
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,(q)=>" ".repeat(3*q.length)),y=r.split(`
|
|
179
|
+
`,1)[0],k=!m.trim(),w=0;if(this.options.pedantic?(w=2,u=m.trimStart()):k?w=e[1].length+1:(w=e[2].search(this.rules.other.nonSpaceChar),w=w>4?1:w,u=m.slice(w),w+=e[1].length),k&&this.rules.other.blankLine.test(y)&&(p+=y+`
|
|
180
|
+
`,r=r.substring(y.length+1),f=!0),!f){let q=this.rules.other.nextBulletRegex(w),W=this.rules.other.hrRegex(w),j=this.rules.other.fencesBeginRegex(w),Q=this.rules.other.headingBeginRegex(w),J=this.rules.other.htmlBeginRegex(w);for(;r;){let ut=r.split(`
|
|
181
|
+
`,1)[0],lt;if(y=ut,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),lt=y):lt=y.replace(this.rules.other.tabCharGlobal," "),j.test(y)||Q.test(y)||J.test(y)||q.test(y)||W.test(y))break;if(lt.search(this.rules.other.nonSpaceChar)>=w||!y.trim())u+=`
|
|
182
|
+
`+lt.slice(w);else{if(k||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||j.test(m)||Q.test(m)||W.test(m))break;u+=`
|
|
183
|
+
`+y}!k&&!y.trim()&&(k=!0),p+=ut+`
|
|
184
|
+
`,r=r.substring(ut.length+1),m=lt.slice(w)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(c=!0));let _=null,O;this.options.gfm&&(_=this.rules.other.listIsTask.exec(u),_&&(O=_[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:p,task:!!_,checked:O,loose:!1,text:u,tokens:[]}),s.raw+=p}let l=s.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let f=0;f<s.items.length;f++)if(this.lexer.state.top=!1,s.items[f].tokens=this.lexer.blockTokens(s.items[f].text,[]),!s.loose){let p=s.items[f].tokens.filter((m)=>m.type==="space"),u=p.length>0&&p.some((m)=>this.rules.other.anyLine.test(m.raw));s.loose=u}if(s.loose)for(let f=0;f<s.items.length;f++)s.items[f].loose=!0;return s}}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 o=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:o,raw:e[0],href:a,title:s}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let o=Am(e[1]),a=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
185
|
+
`):[],n={type:"table",raw:e[0],header:[],align:[],rows:[]};if(o.length===a.length){for(let c of a)this.rules.other.tableAlignRight.test(c)?n.align.push("right"):this.rules.other.tableAlignCenter.test(c)?n.align.push("center"):this.rules.other.tableAlignLeft.test(c)?n.align.push("left"):n.align.push(null);for(let c=0;c<o.length;c++)n.header.push({text:o[c],tokens:this.lexer.inline(o[c]),header:!0,align:n.align[c]});for(let c of s)n.rows.push(Am(c,n.header.length).map((l,f)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:n.align[f]})));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 o=e[1].charAt(e[1].length-1)===`
|
|
186
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:o,tokens:this.lexer.inline(o)}}}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 o=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let n=Wa(o.slice(0,-1),"\\");if((o.length-n.length)%2===0)return}else{let n=Cw(e[2],"()");if(n===-2)return;if(n>-1){let c=(e[0].indexOf("!")===0?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let a=e[2],s="";if(this.options.pedantic){let n=this.rules.other.pedanticHrefTitle.exec(a);n&&(a=n[1],s=n[3])}else s=e[3]?e[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?a=a.slice(1):a=a.slice(1,-1)),Mm(e,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let o;if((o=this.rules.inline.reflink.exec(r))||(o=this.rules.inline.nolink.exec(r))){let a=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=e[a.toLowerCase()];if(!s){let n=o[0].charAt(0);return{type:"text",raw:n,text:n}}return Mm(o,s,o[0],this.lexer,this.rules)}}emStrong(r,e,o=""){let a=this.rules.inline.emStrongLDelim.exec(r);if(!a||a[3]&&o.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[2])||!o||this.rules.inline.punctuation.exec(o)){let s=[...a[0]].length-1,n,c,l=s,f=0,p=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,e=e.slice(-1*r.length+s);(a=p.exec(e))!=null;){if(n=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!n)continue;if(c=[...n].length,a[3]||a[4]){l+=c;continue}else if((a[5]||a[6])&&s%3&&!((s+c)%3)){f+=c;continue}if(l-=c,l>0)continue;c=Math.min(c,c+l+f);let u=[...a[0]][0].length,m=r.slice(0,s+a.index+u+c);if(Math.min(s,c)%2){let k=m.slice(1,-1);return{type:"em",raw:m,text:k,tokens:this.lexer.inlineTokens(k)}}let y=m.slice(2,-2);return{type:"strong",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let o=e[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(o),s=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return a&&s&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:e[0],text:o}}}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 o,a;return e[2]==="@"?(o=e[1],a="mailto:"+o):(o=e[1],a=o),{type:"link",raw:e[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let o,a;if(e[2]==="@")o=e[0],a="mailto:"+o;else{let s;do s=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(s!==e[0]);o=e[0],e[1]==="www."?a="http://"+e[0]:a=e[0]}return{type:"link",raw:e[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let o=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:o}}}},Rr=class r{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||po,this.options.tokenizer=this.options.tokenizer||new bl,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 o={other:dr,block:xl.normal,inline:Na.normal};this.options.pedantic?(o.block=xl.pedantic,o.inline=Na.pedantic):this.options.gfm&&(o.block=xl.gfm,this.options.breaks?o.inline=Na.breaks:o.inline=Na.gfm),this.tokenizer.rules=o}static get rules(){return{block:xl,inline:Na}}static lex(e,o){return new r(o).lex(e)}static lexInline(e,o){return new r(o).inlineTokens(e)}lex(e){e=e.replace(dr.carriageReturn,`
|
|
187
|
+
`),this.blockTokens(e,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let a=this.inlineQueue[o];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,o=[],a=!1){for(this.options.pedantic&&(e=e.replace(dr.tabCharGlobal," ").replace(dr.spaceLine,""));e;){let s;if(this.options.extensions?.block?.some((c)=>(s=c.call({lexer:this},e,o))?(e=e.substring(s.raw.length),o.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);let c=o.at(-1);s.raw.length===1&&c!==void 0?c.raw+=`
|
|
188
|
+
`:o.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);let c=o.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
189
|
+
`)?"":`
|
|
190
|
+
`)+s.raw,c.text+=`
|
|
191
|
+
`+s.text,this.inlineQueue.at(-1).src=c.text):o.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);let c=o.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
192
|
+
`)?"":`
|
|
193
|
+
`)+s.raw,c.text+=`
|
|
194
|
+
`+s.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},o.push(s));continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),o.push(s);continue}let n=e;if(this.options.extensions?.startBlock){let c=1/0,l=e.slice(1),f;this.options.extensions.startBlock.forEach((p)=>{f=p.call({lexer:this},l),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(n=e.substring(0,c+1))}if(this.state.top&&(s=this.tokenizer.paragraph(n))){let c=o.at(-1);a&&c?.type==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
195
|
+
`)?"":`
|
|
196
|
+
`)+s.raw,c.text+=`
|
|
197
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):o.push(s),a=n.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);let c=o.at(-1);c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
198
|
+
`)?"":`
|
|
199
|
+
`)+s.raw,c.text+=`
|
|
200
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):o.push(s);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 this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let a=e,s=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)f.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let n;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)n=s[2]?s[2].length:0,a=a.slice(0,s.index+n)+"["+"a".repeat(s[0].length-n-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let c=!1,l="";for(;e;){c||(l=""),c=!1;let f;if(this.options.extensions?.inline?.some((u)=>(f=u.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))continue;if(f=this.tokenizer.escape(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.tag(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.link(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(f.raw.length);let u=o.at(-1);f.type==="text"&&u?.type==="text"?(u.raw+=f.raw,u.text+=f.text):o.push(f);continue}if(f=this.tokenizer.emStrong(e,a,l)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.codespan(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.br(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.del(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.autolink(e)){e=e.substring(f.raw.length),o.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(e))){e=e.substring(f.raw.length),o.push(f);continue}let p=e;if(this.options.extensions?.startInline){let u=1/0,m=e.slice(1),y;this.options.extensions.startInline.forEach((k)=>{y=k.call({lexer:this},m),typeof y=="number"&&y>=0&&(u=Math.min(u,y))}),u<1/0&&u>=0&&(p=e.substring(0,u+1))}if(f=this.tokenizer.inlineText(p)){e=e.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(l=f.raw.slice(-1)),c=!0;let u=o.at(-1);u?.type==="text"?(u.raw+=f.raw,u.text+=f.text):o.push(f);continue}if(e){let u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw Error(u)}}return o}},kl=class{options;parser;constructor(r){this.options=r||po}space(r){return""}code({text:r,lang:e,escaped:o}){let a=(e||"").match(dr.notSpaceStart)?.[0],s=r.replace(dr.endingNewline,"")+`
|
|
201
|
+
`;return a?'<pre><code class="language-'+fi(a)+'">'+(o?s:fi(s,!0))+`</code></pre>
|
|
202
|
+
`:"<pre><code>"+(o?s:fi(s,!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:o}=r,a="";for(let c=0;c<r.items.length;c++){let l=r.items[c];a+=this.listitem(l)}let s=e?"ol":"ul",n=e&&o!==1?' start="'+o+'"':"";return"<"+s+n+`>
|
|
208
|
+
`+a+"</"+s+`>
|
|
209
|
+
`}listitem(r){let e="";if(r.task){let o=this.checkbox({checked:!!r.checked});r.loose?r.tokens[0]?.type==="paragraph"?(r.tokens[0].text=o+" "+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=o+" "+fi(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):e+=o+" "}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="",o="";for(let s=0;s<r.header.length;s++)o+=this.tablecell(r.header[s]);e+=this.tablerow({text:o});let a="";for(let s=0;s<r.rows.length;s++){let n=r.rows[s];o="";for(let c=0;c<n.length;c++)o+=this.tablecell(n[c]);a+=this.tablerow({text:o})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
|
|
212
|
+
<thead>
|
|
213
|
+
`+e+`</thead>
|
|
214
|
+
`+a+`</table>
|
|
215
|
+
`}tablerow({text:r}){return`<tr>
|
|
216
|
+
${r}</tr>
|
|
217
|
+
`}tablecell(r){let e=this.parser.parseInline(r.tokens),o=r.header?"th":"td";return(r.align?`<${o} align="${r.align}">`:`<${o}>`)+e+`</${o}>
|
|
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>${fi(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:o}){let a=this.parser.parseInline(o),s=Fm(r);if(s===null)return a;r=s;let n='<a href="'+r+'"';return e&&(n+=' title="'+fi(e)+'"'),n+=">"+a+"</a>",n}image({href:r,title:e,text:o,tokens:a}){a&&(o=this.parser.parseInline(a,this.parser.textRenderer));let s=Fm(r);if(s===null)return fi(o);r=s;let n=`<img src="${r}" alt="${o}"`;return e&&(n+=` title="${fi(e)}"`),n+=">",n}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):("escaped"in r)&&r.escaped?r.text:fi(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""}},qr=class r{options;renderer;textRenderer;constructor(e){this.options=e||po,this.options.renderer=this.options.renderer||new kl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new vf}static parse(e,o){return new r(o).parse(e)}static parseInline(e,o){return new r(o).parseInline(e)}parse(e,o=!0){let a="";for(let s=0;s<e.length;s++){let n=e[s];if(this.options.extensions?.renderers?.[n.type]){let l=n,f=this.options.extensions.renderers[l.type].call({parser:this},l);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){a+=f||"";continue}}let c=n;switch(c.type){case"space":{a+=this.renderer.space(c);continue}case"hr":{a+=this.renderer.hr(c);continue}case"heading":{a+=this.renderer.heading(c);continue}case"code":{a+=this.renderer.code(c);continue}case"table":{a+=this.renderer.table(c);continue}case"blockquote":{a+=this.renderer.blockquote(c);continue}case"list":{a+=this.renderer.list(c);continue}case"html":{a+=this.renderer.html(c);continue}case"def":{a+=this.renderer.def(c);continue}case"paragraph":{a+=this.renderer.paragraph(c);continue}case"text":{let l=c,f=this.renderer.text(l);for(;s+1<e.length&&e[s+1].type==="text";)l=e[++s],f+=`
|
|
219
|
+
`+this.renderer.text(l);o?a+=this.renderer.paragraph({type:"paragraph",raw:f,text:f,tokens:[{type:"text",raw:f,text:f,escaped:!0}]}):a+=f;continue}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return a}parseInline(e,o=this.renderer){let a="";for(let s=0;s<e.length;s++){let n=e[s];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)){a+=l||"";continue}}let c=n;switch(c.type){case"escape":{a+=o.text(c);break}case"html":{a+=o.html(c);break}case"link":{a+=o.link(c);break}case"image":{a+=o.image(c);break}case"strong":{a+=o.strong(c);break}case"em":{a+=o.em(c);break}case"codespan":{a+=o.codespan(c);break}case"br":{a+=o.br(c);break}case"del":{a+=o.del(c);break}case"text":{a+=o.text(c);break}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return a}},za=class{options;block;constructor(r){this.options=r||po}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?Rr.lex:Rr.lexInline}provideParser(){return this.block?qr.parse:qr.parseInline}},kw=class{defaults=Cf();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=qr;Renderer=kl;TextRenderer=vf;Lexer=Rr;Tokenizer=bl;Hooks=za;constructor(...r){this.use(...r)}walkTokens(r,e){let o=[];for(let a of r)switch(o=o.concat(e.call(this,a)),a.type){case"table":{let s=a;for(let n of s.header)o=o.concat(this.walkTokens(n.tokens,e));for(let n of s.rows)for(let c of n)o=o.concat(this.walkTokens(c.tokens,e));break}case"list":{let s=a;o=o.concat(this.walkTokens(s.items,e));break}default:{let s=a;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach((n)=>{let c=s[n].flat(1/0);o=o.concat(this.walkTokens(c,e))}):s.tokens&&(o=o.concat(this.walkTokens(s.tokens,e)))}}return o}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach((o)=>{let a={...o};if(a.async=this.defaults.async||a.async||!1,o.extensions&&(o.extensions.forEach((s)=>{if(!s.name)throw Error("extension name required");if("renderer"in s){let n=e.renderers[s.name];n?e.renderers[s.name]=function(...c){let l=s.renderer.apply(this,c);return l===!1&&(l=n.apply(this,c)),l}:e.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let n=e[s.level];n?n.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),a.extensions=e),o.renderer){let s=this.defaults.renderer||new kl(this.defaults);for(let n in o.renderer){if(!(n in s))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let c=n,l=o.renderer[c],f=s[c];s[c]=(...p)=>{let u=l.apply(s,p);return u===!1&&(u=f.apply(s,p)),u||""}}a.renderer=s}if(o.tokenizer){let s=this.defaults.tokenizer||new bl(this.defaults);for(let n in o.tokenizer){if(!(n in s))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let c=n,l=o.tokenizer[c],f=s[c];s[c]=(...p)=>{let u=l.apply(s,p);return u===!1&&(u=f.apply(s,p)),u}}a.tokenizer=s}if(o.hooks){let s=this.defaults.hooks||new za;for(let n in o.hooks){if(!(n in s))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let c=n,l=o.hooks[c],f=s[c];za.passThroughHooks.has(n)?s[c]=(p)=>{if(this.defaults.async&&za.passThroughHooksRespectAsync.has(n))return(async()=>{let m=await l.call(s,p);return f.call(s,m)})();let u=l.call(s,p);return f.call(s,u)}:s[c]=(...p)=>{if(this.defaults.async)return(async()=>{let m=await l.apply(s,p);return m===!1&&(m=await f.apply(s,p)),m})();let u=l.apply(s,p);return u===!1&&(u=f.apply(s,p)),u}}a.hooks=s}if(o.walkTokens){let s=this.defaults.walkTokens,n=o.walkTokens;a.walkTokens=function(c){let l=[];return l.push(n.call(this,c)),s&&(l=l.concat(s.call(this,c))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return Rr.lex(r,e??this.defaults)}parser(r,e){return qr.parse(r,e??this.defaults)}parseMarkdown(r){return(e,o)=>{let a={...o},s={...this.defaults,...a},n=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&a.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(s.hooks&&(s.hooks.options=s,s.hooks.block=r),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(e):e,l=await(s.hooks?await s.hooks.provideLexer():r?Rr.lex:Rr.lexInline)(c,s),f=s.hooks?await s.hooks.processAllTokens(l):l;s.walkTokens&&await Promise.all(this.walkTokens(f,s.walkTokens));let p=await(s.hooks?await s.hooks.provideParser():r?qr.parse:qr.parseInline)(f,s);return s.hooks?await s.hooks.postprocess(p):p})().catch(n);try{s.hooks&&(e=s.hooks.preprocess(e));let c=(s.hooks?s.hooks.provideLexer():r?Rr.lex:Rr.lexInline)(e,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let l=(s.hooks?s.hooks.provideParser():r?qr.parse:qr.parseInline)(c,s);return s.hooks&&(l=s.hooks.postprocess(l)),l}catch(c){return n(c)}}}onError(r,e){return(o)=>{if(o.message+=`
|
|
220
|
+
Please report this to https://github.com/markedjs/marked.`,r){let a="<p>An error occurred:</p><pre>"+fi(o.message+"",!0)+"</pre>";return e?Promise.resolve(a):a}if(e)return Promise.reject(o);throw o}}},fo=new kw;function Be(r,e){return fo.parse(r,e)}Be.options=Be.setOptions=function(r){return fo.setOptions(r),Be.defaults=fo.defaults,Em(Be.defaults),Be};Be.getDefaults=Cf;Be.defaults=po;Be.use=function(...r){return fo.use(...r),Be.defaults=fo.defaults,Em(Be.defaults),Be};Be.walkTokens=function(r,e){return fo.walkTokens(r,e)};Be.parseInline=fo.parseInline;Be.Parser=qr;Be.parser=qr.parse;Be.Renderer=kl;Be.TextRenderer=vf;Be.Lexer=Rr;Be.lexer=Rr.lex;Be.Tokenizer=bl;Be.Hooks=za;Be.parse=Be;var{options:jH,setOptions:GH,use:XH,walkTokens:VH,parseInline:KH}=Be;var ZH=qr.parse,QH=Rr.lex;function Jo(r){var e=[];for(var o=1;o<arguments.length;o++)e[o-1]=arguments[o];var a=Array.from(typeof r==="string"?[r]:r);a[a.length-1]=a[a.length-1].replace(/\r?\n([\t ]*)$/,"");var s=a.reduce(function(l,f){var p=f.match(/\n([\t ]+|(?!\s).)/g);if(p)return l.concat(p.map(function(u){var m,y;return(y=(m=u.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&y!==void 0?y:0}));return l},[]);if(s.length){var n=new RegExp(`
|
|
221
|
+
[ ]{`.concat(Math.min.apply(Math,s),"}"),"g");a=a.map(function(l){return l.replace(n,`
|
|
222
|
+
`)})}a[0]=a[0].replace(/^\r?\n/,"");var c=a[0];return e.forEach(function(l,f){var p=c.match(/(?:^|\n)( *)$/),u=p?p[1]:"",m=l;if(typeof l==="string"&&l.includes(`
|
|
223
|
+
`))m=String(l).split(`
|
|
224
|
+
`).map(function(y,k){return k===0?y:"".concat(u).concat(y)}).join(`
|
|
225
|
+
`);c+=m+a[f+1]}),c}var Ff=typeof performance<"u"&&typeof performance.now==="function",ws=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 o=ws();try{return e()}finally{this.buckets[r]=(this.buckets[r]??0)+(ws()-o)}}async tick(r,e){if(!this.enabled)return e();let o=ws();try{return await e()}finally{this.buckets[r]=(this.buckets[r]??0)+(ws()-o)}}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:ws(),duration:-1,children:[]},o=this.stack.at(-1);if(o)o.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=ws();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 o=r.duration,a=e&&e!==r.name?`${r.name} [${e}]`:r.name,s=["ms % phase"],n=t((l,f)=>{let p=" ".repeat(f),u=l.duration.toFixed(1).padStart(8),m=o>0?`${(l.duration/o*100).toFixed(0).padStart(3)}%`:" -";s.push(`${u} ${m} ${p}${l.name}`);for(let y of l.children)n(y,f+1);if(l.children.length>0){let y=l.children.reduce((w,_)=>w+_.duration,0),k=l.duration-y;if(k>0.5){let w=k.toFixed(1).padStart(8);s.push(`${w} ${p} (self)`)}}},"walk");n(r,0);let c=Object.keys(this.buckets);if(c.length>0){s.push("—— buckets (summed) ——");for(let l of c)s.push(`${this.buckets[l].toFixed(1).padStart(8)} ${l}`)}console.log(`${Lf}mermaid render profile · ${a}
|
|
226
|
+
${s.join(`
|
|
227
|
+
`)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};function Ym(r,{markdownAutoWrap:e}){let a=r.replace(/<br\/>/g,`
|
|
228
|
+
`).replace(/\n{2,}/g,`
|
|
229
|
+
`);return Jo(a)}t(Ym,"preprocessMarkdown");function Um(r){return r.split(/\\n|\n|<br\s*\/?>/gi).map((e)=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((o)=>({content:o,type:"normal"}))??[])}t(Um,"nonMarkdownToLines");function es(r,e={}){let o=Ym(r,e),a=Be.lexer(o),s=[[]],n=0;function c(l,f="normal"){if(l.type==="text")l.text.split(`
|
|
230
|
+
`).forEach((u,m)=>{if(m!==0)n++,s.push([]);u.split(" ").forEach((y)=>{if(y=y.replace(/'/g,"'"),y)s[n].push({content:y,type:f})})});else if(l.type==="strong"||l.type==="em")l.tokens.forEach((p)=>{c(p,l.type)});else if(l.type==="html")s[n].push({content:l.text,type:"normal"})}return t(c,"processNode"),a.forEach((l)=>{if(l.type==="paragraph")l.tokens?.forEach((f)=>{c(f)});else if(l.type==="html")s[n].push({content:l.text,type:"normal"});else s[n].push({content:l.raw,type:"normal"})}),s}t(es,"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 o=Be.lexer(r);function a(s){if(s.type==="text"){if(e===!1)return s.text.replace(/\n */g,"<br/>").replace(/ /g," ");return s.text.replace(/\n */g,"<br/>")}else if(s.type==="strong")return`<strong>${s.tokens?.map(a).join("")}</strong>`;else if(s.type==="em")return`<em>${s.tokens?.map(a).join("")}</em>`;else if(s.type==="paragraph")return`<p>${s.tokens?.map(a).join("")}</p>`;else if(s.type==="space")return"";else if(s.type==="html")return`${s.text}`;else if(s.type==="escape")return s.text;return i.warn(`Unsupported markdown: ${s.type}`),s.raw}return t(a,"output"),o.map(a).join("")}t(Gm,"markdownToHTML");var _w=function(r){var e=function(){},o=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(p){return setTimeout(p,16)};function a(){var p=this;p.reads=[],p.writes=[],p.raf=o.bind(r),e("initialized",p)}t(a,"FastDom"),a.prototype={constructor:a,runTasks:t(function(p){e("run tasks");var u;while(u=p.shift())u()},"runTasks"),measure:t(function(p,u){e("measure");var m=!u?p:p.bind(u);return this.reads.push(m),s(this),m},"measure"),mutate:t(function(p,u){e("mutate");var m=!u?p:p.bind(u);return this.writes.push(m),s(this),m},"mutate"),clear:t(function(p){return e("clear",p),c(this.reads,p)||c(this.writes,p)},"clear"),extend:t(function(p){if(e("extend",p),typeof p!="object")throw Error("expected object");var u=Object.create(this);if(l(u,p),u.fastdom=this,u.initialize)u.initialize();return u},"extend"),catch:null};function s(p){if(!p.scheduled)p.scheduled=!0,p.raf(n.bind(null,p)),e("flush scheduled")}t(s,"scheduleFlush");function n(p){e("flush");var{writes:u,reads:m}=p,y;try{e("flushing reads",m.length),p.runTasks(m),e("flushing writes",u.length),p.runTasks(u)}catch(k){y=k}if(p.scheduled=!1,m.length||u.length)s(p);if(y)if(e("task errored",y.message),p.catch)p.catch(y);else throw y}t(n,"flush");function c(p,u){var m=p.indexOf(u);return!!~m&&!!p.splice(m,1)}t(c,"remove");function l(p,u){for(var m in u)if(u.hasOwnProperty(m))p[m]=u[m]}t(l,"mixin");var f=r.fastdom=r.fastdom||new a;return f}(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,o=e.get(r);this.fastdom.clear(o),e.delete(r)},"clear")};function Af(r,e,o,a){var{_tasks:s,fastdom:n}=r,c,l=new Promise(function(f,p){c=n[e](function(){s.delete(l);try{f(a?o.call(a):o())}catch(u){p(u)}},a)});return s.set(l,c),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),qi=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 o=Vm(e.content);return Of(r,[],o,e.type)}t(Km,"splitWordToFitWidth");function Of(r,e,o,a){if(o.length===0)return[{content:e.join(""),type:a},{content:"",type:a}];let[s,...n]=o,c=[...e,s];if(r([{content:c.join(""),type:a}]))return Of(r,c,n,a);if(e.length===0&&s)e.push(s),o.shift();return[{content:e.join(""),type:a},{content:o.join(""),type:a}]}t(Of,"splitWordToFitWidthRecursion");function Zm(r,e){if(r.some(({content:o})=>o.includes(`
|
|
231
|
+
`)))throw Error("splitLineToFitWidth does not support newlines in the line");return Tl(r,e)}t(Zm,"splitLineToFitWidth");function Tl(r,e,o=[],a=[]){if(r.length===0){if(a.length>0)o.push(a);return o.length>0?o:[]}let s="";if(r[0].content===" ")s=" ",r.shift();let n=r.shift()??{content:" ",type:"normal"},c=[...a];if(s!=="")c.push({content:s,type:"normal"});if(c.push(n),e(c))return Tl(r,e,o,c);if(a.length>0)o.push(a),r.unshift(n);else if(n.content){let[l,f]=Km(e,n);if(o.push([l]),f.content)r.unshift(f)}return Tl(r,e,o)}t(Tl,"splitLineToFitWidthRecursion");function Mf(r,e){if(e)r.attr("style",e)}t(Mf,"applyStyle");var Hm=16384;async function Qm(r,e,o,a,s=!1,n=S(),c=0){let l=r.append("foreignObject");l.attr("width",`${Math.min(10*o,Hm)}px`),l.attr("height",`${Math.min(10*o,Hm)}px`);let f=l.append("xhtml:div"),p=qe(e.label)?await ei(e.label.replace(C.lineBreakRegex,`
|
|
232
|
+
`),n):G(e.label,n),u=e.isNode?"nodeLabel":"edgeLabel",m=f.append("span");if(m.html(p),Mf(m,e.labelStyle),m.attr("class",`${u} ${a}`),Mf(f,e.labelStyle),f.style("display","table-cell"),f.style("white-space","nowrap"),f.style("line-height","1.5"),o!==Number.POSITIVE_INFINITY)f.style("max-width",o+"px"),f.style("text-align","center");if(f.attr("xmlns","http://www.w3.org/1999/xhtml"),s)f.attr("class","labelBkg");let y=await qi.measure(()=>f.node().getBoundingClientRect());if(y.width===o)f.style("display","table"),f.style("white-space","break-spaces"),f.style("width",o+"px");else if(y.width<c)f.style("display","table"),f.style("width",c+"px"),f.style("text-align","center");return l.node()}t(Qm,"addHtmlSpan");function _l(r,e,o,a=!1){let s=r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*o-0.1+"em").attr("dy",o+"em");if(a)s.attr("text-anchor","middle");return s}t(_l,"createTspan");function Jm(r,e,o){let a=r.append("text"),s=_l(a,1,e);Bl(s,o);let n=s.node().getComputedTextLength();return a.remove(),n}t(Jm,"computeWidthOfText");function rc(r,e,o){let a=r.append("text"),s=_l(a,1,e);Bl(s,[{content:o,type:"normal"}]);let n=s.node()?.getBoundingClientRect();if(n)a.remove();return n}t(rc,"computeDimensionOfText");function ty(r,e,o,a=!1,s=!1){let c=e.append("g"),l=c.insert("rect").attr("class","background").attr("style","stroke: none"),f=c.append("text").attr("y","-10.1");if(s)f.attr("text-anchor","middle");let p=0;for(let u of o){let m=t((k)=>Jm(c,1.1,k)<=r,"checkWidth"),y=m(u)?[u]:Zm(u,m);for(let k of y){let w=_l(f,p,1.1,s);Bl(w,k),p++}}if(a){let u=f.node().getBBox(),m=2;return l.attr("x",u.x-2).attr("y",u.y-2).attr("width",u.width+4).attr("height",u.height+4),c.node()}else return f.node()}t(ty,"createFormattedText");function Ef(r){let e=/&(amp|lt|gt);/g;return r.replace(e,(o,a)=>{switch(a){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return o}})}t(Ef,"decodeHTMLEntities");function Bl(r,e){r.text(""),e.forEach((o,a)=>{let s=r.append("tspan").attr("font-style",o.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",o.type==="strong"?"bold":"normal");if(a===0)s.text(Ef(o.content));else s.text(" "+Ef(o.content))})}t(Bl,"updateTextContentAndStyles");async function ey(r,e={}){let o=[];r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,n,c)=>(o.push((async()=>{let l=`${n}:${c}`;if(await fl(l))return await Qt(l,void 0,{class:"label-icon"});else return`<i class='${G(s,e).replace(":"," ")}'></i>`})()),s));let a=await Promise.all(o);return r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>a.shift()??"")}t(ey,"replaceIconSubstring");var ct=t(async(r,e="",{style:o="",isTitle:a=!1,classes:s="",useHtmlLabels:n=!0,markdown:c=!0,isNode:l=!0,width:f=200,minWidth:p=0,addSvgBackground:u=!1}={},m)=>{if(i.debug("XYZ createText",e,o,a,s,n,l,"addSvgBackground: ",u),n){let y=c?Gm(e,m):jm(e),k=await ey(qn(y),m),w=e.replace(/\\\\/g,"\\"),_={isNode:l,label:qe(e)?w:k,labelStyle:o.replace("fill:","color:")};return await Qm(r,_,f,s,u,m,p)}else{let y=qn(e.replace(/<br\s*\/?>/g,"<br/>")),k=c?es(y.replace("<br>","<br/>"),m):Um(y),w=ty(f,r,k,e?u:!1,!l);if(l){if(/stroke:/.exec(o))o=o.replace("stroke:","lineColor:");let _=o.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");v(w).attr("style",_)}else{let _=o.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");v(w).select("rect").attr("style",_.replace(/background:/g,"fill:"));let O=o.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");v(w).select("text").attr("style",O)}if(a)v(w).selectAll("tspan.text-outer-tspan").classed("title-row",!0);else v(w).selectAll("tspan.text-outer-tspan").classed("row",!0);return w}},"createText");var Fi=new Set(["redux-color","redux-dark-color"]),Lw=12,Fw=64,$e=t((r)=>Array.isArray(r)&&r.length>0,"hasPalette"),Re=t((r,e)=>r!=null&&Fi.has(r)&&$e(e),"isColorTheme"),Aw=/^[\w-]+$/,Pe=t((r)=>{let e=typeof r==="string"||typeof r==="number"?String(r):"";return Aw.test(e)?e:"classic"},"safeLook"),hn=t((r)=>$e(r)?r.length:0,"paletteSlotCount"),zt=t((r,e)=>{if($e(e))return hn(e);return typeof r==="number"&&Number.isInteger(r)&&r>0&&r<=Fw?r:Lw},"colorSlotCount"),Ht=t((r,e,o,a)=>{if(e===void 0||!Re(o,a))return;let s=e%hn(a);r.attr("data-color-id",`color-${s}`)},"stampColorSlot");function If(r,e,o){if(r&&r.length){let[a,s]=e,n=Math.PI/180*o,c=Math.cos(n),l=Math.sin(n);for(let f of r){let[p,u]=f;f[0]=(p-a)*c-(u-s)*l+a,f[1]=(p-a)*l+(u-s)*c+s}}}function Mw(r,e){return r[0]===e[0]&&r[1]===e[1]}function Ew(r,e,o,a=1){let s=o,n=Math.max(e,0.1),c=r[0]&&r[0][0]&&typeof r[0][0]=="number"?[r]:r,l=[0,0];if(s)for(let p of c)If(p,l,s);let f=function(p,u,m){let y=[];for(let W of p){let j=[...W];Mw(j[0],j[j.length-1])||j.push([j[0][0],j[0][1]]),j.length>2&&y.push(j)}let k=[];u=Math.max(u,0.1);let w=[];for(let W of y)for(let j=0;j<W.length-1;j++){let Q=W[j],J=W[j+1];if(Q[1]!==J[1]){let ut=Math.min(Q[1],J[1]);w.push({ymin:ut,ymax:Math.max(Q[1],J[1]),x:ut===Q[1]?Q[0]:J[0],islope:(J[0]-Q[0])/(J[1]-Q[1])})}}if(w.sort((W,j)=>W.ymin<j.ymin?-1:W.ymin>j.ymin?1:W.x<j.x?-1:W.x>j.x?1:W.ymax===j.ymax?0:(W.ymax-j.ymax)/Math.abs(W.ymax-j.ymax)),!w.length)return k;let _=[],O=w[0].ymin,q=0;for(;_.length||w.length;){if(w.length){let W=-1;for(let j=0;j<w.length&&!(w[j].ymin>O);j++)W=j;w.splice(0,W+1).forEach((j)=>{_.push({s:O,edge:j})})}if(_=_.filter((W)=>!(W.edge.ymax<=O)),_.sort((W,j)=>W.edge.x===j.edge.x?0:(W.edge.x-j.edge.x)/Math.abs(W.edge.x-j.edge.x)),(m!==1||q%u==0)&&_.length>1)for(let W=0;W<_.length;W+=2){let j=W+1;if(j>=_.length)break;let Q=_[W].edge,J=_[j].edge;k.push([[Math.round(Q.x),O],[Math.round(J.x),O]])}O+=m,_.forEach((W)=>{W.edge.x=W.edge.x+m*W.edge.islope}),q++}return k}(c,n,a);if(s){for(let p of c)If(p,l,-s);(function(p,u,m){let y=[];p.forEach((k)=>y.push(...k)),If(y,u,m)})(f,l,-s)}return f}function Xa(r,e){var o;let a=e.hachureAngle+90,s=e.hachureGap;s<0&&(s=4*e.strokeWidth),s=Math.round(Math.max(s,0.1));let n=1;return e.roughness>=1&&(((o=e.randomizer)===null||o===void 0?void 0:o.next())||Math.random())>0.7&&(n=s),Ew(r,s,a,n||1)}class $l{constructor(r){this.helper=r}fillPolygons(r,e){return this._fillPolygons(r,e)}_fillPolygons(r,e){let o=Xa(r,e);return{type:"fillSketch",ops:this.renderLines(o,e)}}renderLines(r,e){let o=[];for(let a of r)o.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],e));return o}}function Dl(r){let e=r[0],o=r[1];return Math.sqrt(Math.pow(e[0]-o[0],2)+Math.pow(e[1]-o[1],2))}class cy extends $l{fillPolygons(r,e){let o=e.hachureGap;o<0&&(o=4*e.strokeWidth),o=Math.max(o,0.1);let a=Xa(r,Object.assign({},e,{hachureGap:o})),s=Math.PI/180*e.hachureAngle,n=[],c=0.5*o*Math.cos(s),l=0.5*o*Math.sin(s);for(let[f,p]of a)Dl([f,p])&&n.push([[f[0]-c,f[1]+l],[...p]],[[f[0]+c,f[1]-l],[...p]]);return{type:"fillSketch",ops:this.renderLines(n,e)}}}class uy extends $l{fillPolygons(r,e){let o=this._fillPolygons(r,e),a=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),s=this._fillPolygons(r,a);return o.ops=o.ops.concat(s.ops),o}}class fy{constructor(r){this.helper=r}fillPolygons(r,e){let o=Xa(r,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(o,e)}dotsOnLines(r,e){let o=[],a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.max(a,0.1);let s=e.fillWeight;s<0&&(s=e.strokeWidth/2);let n=a/4;for(let c of r){let l=Dl(c),f=l/a,p=Math.ceil(f)-1,u=l-p*a,m=(c[0][0]+c[1][0])/2-a/4,y=Math.min(c[0][1],c[1][1]);for(let k=0;k<p;k++){let w=y+u+k*a,_=m-n+2*Math.random()*n,O=w-n+2*Math.random()*n,q=this.helper.ellipse(_,O,s,s,e);o.push(...q.ops)}}return{type:"fillSketch",ops:o}}}class dy{constructor(r){this.helper=r}fillPolygons(r,e){let o=Xa(r,e);return{type:"fillSketch",ops:this.dashedLine(o,e)}}dashedLine(r,e){let o=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,a=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,s=[];return r.forEach((n)=>{let c=Dl(n),l=Math.floor(c/(o+a)),f=(c+a-l*(o+a))/2,p=n[0],u=n[1];p[0]>u[0]&&(p=n[1],u=n[0]);let m=Math.atan((u[1]-p[1])/(u[0]-p[0]));for(let y=0;y<l;y++){let k=y*(o+a),w=k+o,_=[p[0]+k*Math.cos(m)+f*Math.cos(m),p[1]+k*Math.sin(m)+f*Math.sin(m)],O=[p[0]+w*Math.cos(m)+f*Math.cos(m),p[1]+w*Math.sin(m)+f*Math.sin(m)];s.push(...this.helper.doubleLineOps(_[0],_[1],O[0],O[1],e))}}),s}}class py{constructor(r){this.helper=r}fillPolygons(r,e){let o=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,a=e.zigzagOffset<0?o:e.zigzagOffset,s=Xa(r,e=Object.assign({},e,{hachureGap:o+a}));return{type:"fillSketch",ops:this.zigzagLines(s,a,e)}}zigzagLines(r,e,o){let a=[];return r.forEach((s)=>{let n=Dl(s),c=Math.round(n/(2*e)),l=s[0],f=s[1];l[0]>f[0]&&(l=s[1],f=s[0]);let p=Math.atan((f[1]-l[1])/(f[0]-l[0]));for(let u=0;u<c;u++){let m=2*u*e,y=2*(u+1)*e,k=Math.sqrt(2*Math.pow(e,2)),w=[l[0]+m*Math.cos(p),l[1]+m*Math.sin(p)],_=[l[0]+y*Math.cos(p),l[1]+y*Math.sin(p)],O=[w[0]+k*Math.cos(p+Math.PI/4),w[1]+k*Math.sin(p+Math.PI/4)];a.push(...this.helper.doubleLineOps(w[0],w[1],O[0],O[1],o),...this.helper.doubleLineOps(O[0],O[1],_[0],_[1],o))}}),a}}var br={};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,vl={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=[],o=function(c){let l=[];for(;c!=="";)if(c.match(/^([ \t\r\n,]+)/))c=c.substr(RegExp.$1.length);else if(c.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:Ow,text:RegExp.$1},c=c.substr(RegExp.$1.length);else{if(!c.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:$f,text:`${parseFloat(RegExp.$1)}`},c=c.substr(RegExp.$1.length)}return l[l.length]={type:ry,text:""},l}(r),a="BOD",s=0,n=o[s];for(;!Df(n,ry);){let c=0,l=[];if(a==="BOD"){if(n.text!=="M"&&n.text!=="m")return zf("M0,0"+r);s++,c=vl[n.text],a=n.text}else Df(n,$f)?c=vl[a]:(s++,c=vl[n.text],a=n.text);if(!(s+c<o.length))throw Error("Path data ended short");for(let f=s;f<s+c;f++){let p=o[f];if(!Df(p,$f))throw Error("Param not a number: "+a+","+p.text);l[l.length]=+p.text}if(typeof vl[a]!="number")throw Error("Bad segment: "+a);{let f={key:a,data:l};e.push(f),s+=c,n=o[s],a==="M"&&(a="L"),a==="m"&&(a="l")}}return e}function my(r){let e=0,o=0,a=0,s=0,n=[];for(let{key:c,data:l}of r)switch(c){case"M":n.push({key:"M",data:[...l]}),[e,o]=l,[a,s]=l;break;case"m":e+=l[0],o+=l[1],n.push({key:"M",data:[e,o]}),a=e,s=o;break;case"L":n.push({key:"L",data:[...l]}),[e,o]=l;break;case"l":e+=l[0],o+=l[1],n.push({key:"L",data:[e,o]});break;case"C":n.push({key:"C",data:[...l]}),e=l[4],o=l[5];break;case"c":{let f=l.map((p,u)=>u%2?p+o:p+e);n.push({key:"C",data:f}),e=f[4],o=f[5];break}case"Q":n.push({key:"Q",data:[...l]}),e=l[2],o=l[3];break;case"q":{let f=l.map((p,u)=>u%2?p+o:p+e);n.push({key:"Q",data:f}),e=f[2],o=f[3];break}case"A":n.push({key:"A",data:[...l]}),e=l[5],o=l[6];break;case"a":e+=l[5],o+=l[6],n.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],e,o]});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]}),o=l[0];break;case"v":o+=l[0],n.push({key:"V",data:[o]});break;case"S":n.push({key:"S",data:[...l]}),e=l[2],o=l[3];break;case"s":{let f=l.map((p,u)=>u%2?p+o:p+e);n.push({key:"S",data:f}),e=f[2],o=f[3];break}case"T":n.push({key:"T",data:[...l]}),e=l[0],o=l[1];break;case"t":e+=l[0],o+=l[1],n.push({key:"T",data:[e,o]});break;case"Z":case"z":n.push({key:"Z",data:[]}),e=a,o=s}return n}function yy(r){let e=[],o="",a=0,s=0,n=0,c=0,l=0,f=0;for(let{key:p,data:u}of r){switch(p){case"M":e.push({key:"M",data:[...u]}),[a,s]=u,[n,c]=u;break;case"C":e.push({key:"C",data:[...u]}),a=u[4],s=u[5],l=u[2],f=u[3];break;case"L":e.push({key:"L",data:[...u]}),[a,s]=u;break;case"H":a=u[0],e.push({key:"L",data:[a,s]});break;case"V":s=u[0],e.push({key:"L",data:[a,s]});break;case"S":{let m=0,y=0;o==="C"||o==="S"?(m=a+(a-l),y=s+(s-f)):(m=a,y=s),e.push({key:"C",data:[m,y,...u]}),l=u[0],f=u[1],a=u[2],s=u[3];break}case"T":{let[m,y]=u,k=0,w=0;o==="Q"||o==="T"?(k=a+(a-l),w=s+(s-f)):(k=a,w=s);let _=a+2*(k-a)/3,O=s+2*(w-s)/3,q=m+2*(k-m)/3,W=y+2*(w-y)/3;e.push({key:"C",data:[_,O,q,W,m,y]}),l=k,f=w,a=m,s=y;break}case"Q":{let[m,y,k,w]=u,_=a+2*(m-a)/3,O=s+2*(y-s)/3,q=k+2*(m-k)/3,W=w+2*(y-w)/3;e.push({key:"C",data:[_,O,q,W,k,w]}),l=m,f=y,a=k,s=w;break}case"A":{let m=Math.abs(u[0]),y=Math.abs(u[1]),k=u[2],w=u[3],_=u[4],O=u[5],q=u[6];if(m===0||y===0)e.push({key:"C",data:[a,s,O,q,O,q]}),a=O,s=q;else if(a!==O||s!==q)xy(a,s,O,q,m,y,k,w,_).forEach(function(W){e.push({key:"C",data:W})}),a=O,s=q;break}case"Z":e.push({key:"Z",data:[]}),a=n,s=c}o=p}return e}function Ua(r,e,o){return[r*Math.cos(o)-e*Math.sin(o),r*Math.sin(o)+e*Math.cos(o)]}function xy(r,e,o,a,s,n,c,l,f,p){let u=(m=c,Math.PI*m/180);var m;let y=[],k=0,w=0,_=0,O=0;if(p)[k,w,_,O]=p;else{[r,e]=Ua(r,e,-u),[o,a]=Ua(o,a,-u);let it=(r-o)/2,ot=(e-a)/2,xt=it*it/(s*s)+ot*ot/(n*n);xt>1&&(xt=Math.sqrt(xt),s*=xt,n*=xt);let et=s*s,Bt=n*n,Mt=et*Bt-et*ot*ot-Bt*it*it,Vt=et*ot*ot+Bt*it*it,Xt=(l===f?-1:1)*Math.sqrt(Math.abs(Mt/Vt));_=Xt*s*ot/n+(r+o)/2,O=Xt*-n*it/s+(e+a)/2,k=Math.asin(parseFloat(((e-O)/n).toFixed(9))),w=Math.asin(parseFloat(((a-O)/n).toFixed(9))),r<_&&(k=Math.PI-k),o<_&&(w=Math.PI-w),k<0&&(k=2*Math.PI+k),w<0&&(w=2*Math.PI+w),f&&k>w&&(k-=2*Math.PI),!f&&w>k&&(w-=2*Math.PI)}let q=w-k;if(Math.abs(q)>120*Math.PI/180){let it=w,ot=o,xt=a;w=f&&w>k?k+120*Math.PI/180*1:k+120*Math.PI/180*-1,y=xy(o=_+s*Math.cos(w),a=O+n*Math.sin(w),ot,xt,s,n,c,0,f,[w,it,_,O])}q=w-k;let W=Math.cos(k),j=Math.sin(k),Q=Math.cos(w),J=Math.sin(w),ut=Math.tan(q/4),lt=1.3333333333333333*s*ut,gt=1.3333333333333333*n*ut,wt=[r,e],At=[r+lt*j,e-gt*W],_t=[o+lt*J,a-gt*Q],Tt=[o,a];if(At[0]=2*wt[0]-At[0],At[1]=2*wt[1]-At[1],p)return[At,_t,Tt].concat(y);{y=[At,_t,Tt].concat(y);let it=[];for(let ot=0;ot<y.length;ot+=3){let xt=Ua(y[ot][0],y[ot][1],u),et=Ua(y[ot+1][0],y[ot+1][1],u),Bt=Ua(y[ot+2][0],y[ot+2][1],u);it.push([xt[0],xt[1],et[0],et[1],Bt[0],Bt[1]])}return it}}var Iw={randOffset:function(r,e){return de(r,e)},randOffsetWithRange:function(r,e,o){return El(r,e,o)},ellipse:function(r,e,o,a,s){let n=by(o,a,s);return qf(r,e,s,n).opset},doubleLineOps:function(r,e,o,a,s){return io(r,e,o,a,s,!0)}};function Cy(r,e,o,a,s){return{type:"path",ops:io(r,e,o,a,s)}}function Al(r,e,o){let a=(r||[]).length;if(a>2){let s=[];for(let n=0;n<a-1;n++)s.push(...io(r[n][0],r[n][1],r[n+1][0],r[n+1][1],o));return e&&s.push(...io(r[a-1][0],r[a-1][1],r[0][0],r[0][1],o)),{type:"path",ops:s}}return a===2?Cy(r[0][0],r[0][1],r[1][0],r[1][1],o):{type:"path",ops:[]}}function $w(r,e,o,a,s){return function(n,c){return Al(n,!0,c)}([[r,e],[r+o,e],[r+o,e+a],[r,e+a]],s)}function iy(r,e){if(r.length){let o=typeof r[0][0]=="number"?[r]:r,a=Ll(o[0],1*(1+0.2*e.roughness),e),s=e.disableMultiStroke?[]:Ll(o[0],1.5*(1+0.22*e.roughness),ay(e));for(let n=1;n<o.length;n++){let c=o[n];if(c.length){let l=Ll(c,1*(1+0.2*e.roughness),e),f=e.disableMultiStroke?[]:Ll(c,1.5*(1+0.22*e.roughness),ay(e));for(let p of l)p.op!=="move"&&a.push(p);for(let p of f)p.op!=="move"&&s.push(p)}}return{type:"path",ops:a.concat(s)}}return{type:"path",ops:[]}}function by(r,e,o){let a=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(r/2,2)+Math.pow(e/2,2))/2)),s=Math.ceil(Math.max(o.curveStepCount,o.curveStepCount/Math.sqrt(200)*a)),n=2*Math.PI/s,c=Math.abs(r/2),l=Math.abs(e/2),f=1-o.curveFitting;return c+=de(c*f,o),l+=de(l*f,o),{increment:n,rx:c,ry:l}}function qf(r,e,o,a){let[s,n]=ny(a.increment,r,e,a.rx,a.ry,1,a.increment*El(0.1,El(0.4,1,o),o),o),c=Ol(s,null,o);if(!o.disableMultiStroke&&o.roughness!==0){let[l]=ny(a.increment,r,e,a.rx,a.ry,1.5,0,o),f=Ol(l,null,o);c=c.concat(f)}return{estimatedPoints:n,opset:{type:"path",ops:c}}}function oy(r,e,o,a,s,n,c,l,f){let p=r,u=e,m=Math.abs(o/2),y=Math.abs(a/2);m+=de(0.01*m,f),y+=de(0.01*y,f);let k=s,w=n;for(;k<0;)k+=2*Math.PI,w+=2*Math.PI;w-k>2*Math.PI&&(k=0,w=2*Math.PI);let _=2*Math.PI/f.curveStepCount,O=Math.min(_/2,(w-k)/2),q=ly(O,p,u,m,y,k,w,1,f);if(!f.disableMultiStroke){let W=ly(O,p,u,m,y,k,w,1.5,f);q.push(...W)}return c&&(l?q.push(...io(p,u,p+m*Math.cos(k),u+y*Math.sin(k),f),...io(p,u,p+m*Math.cos(w),u+y*Math.sin(w),f)):q.push({op:"lineTo",data:[p,u]},{op:"lineTo",data:[p+m*Math.cos(k),u+y*Math.sin(k)]})),{type:"path",ops:q}}function sy(r,e){let o=yy(my(zf(r))),a=[],s=[0,0],n=[0,0];for(let{key:c,data:l}of o)switch(c){case"M":n=[l[0],l[1]],s=[l[0],l[1]];break;case"L":a.push(...io(n[0],n[1],l[0],l[1],e)),n=[l[0],l[1]];break;case"C":{let[f,p,u,m,y,k]=l;a.push(...Dw(f,p,u,m,y,k,n,e)),n=[y,k];break}case"Z":a.push(...io(n[0],n[1],s[0],s[1],e)),n=[s[0],s[1]]}return{type:"path",ops:a}}function Pf(r,e){let o=[];for(let a of r)if(a.length){let s=e.maxRandomnessOffset||0,n=a.length;if(n>2){o.push({op:"move",data:[a[0][0]+de(s,e),a[0][1]+de(s,e)]});for(let c=1;c<n;c++)o.push({op:"lineTo",data:[a[c][0]+de(s,e),a[c][1]+de(s,e)]})}}return{type:"fillPath",ops:o}}function Ss(r,e){return function(o,a){let s=o.fillStyle||"hachure";if(!br[s])switch(s){case"zigzag":br[s]||(br[s]=new cy(a));break;case"cross-hatch":br[s]||(br[s]=new uy(a));break;case"dots":br[s]||(br[s]=new fy(a));break;case"dashed":br[s]||(br[s]=new dy(a));break;case"zigzag-line":br[s]||(br[s]=new py(a));break;default:s="hachure",br[s]||(br[s]=new $l(a))}return br[s]}(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 El(r,e,o,a=1){return o.roughness*a*(ky(o)*(e-r)+r)}function de(r,e,o=1){return El(-r,r,e,o)}function io(r,e,o,a,s,n=!1){let c=n?s.disableMultiStrokeFill:s.disableMultiStroke,l=Nf(r,e,o,a,s,!0,!1);if(c)return l;let f=Nf(r,e,o,a,s,!0,!0);return l.concat(f)}function Nf(r,e,o,a,s,n,c){let l=Math.pow(r-o,2)+Math.pow(e-a,2),f=Math.sqrt(l),p=1;p=f<200?1:f>500?0.4:-0.0016668*f+1.233334;let u=s.maxRandomnessOffset||0;u*u*100>l&&(u=f/10);let m=u/2,y=0.2+0.2*ky(s),k=s.bowing*s.maxRandomnessOffset*(a-e)/200,w=s.bowing*s.maxRandomnessOffset*(r-o)/200;k=de(k,s,p),w=de(w,s,p);let _=[],O=()=>de(m,s,p),q=()=>de(u,s,p),W=s.preserveVertices;return n&&(c?_.push({op:"move",data:[r+(W?0:O()),e+(W?0:O())]}):_.push({op:"move",data:[r+(W?0:de(u,s,p)),e+(W?0:de(u,s,p))]})),c?_.push({op:"bcurveTo",data:[k+r+(o-r)*y+O(),w+e+(a-e)*y+O(),k+r+2*(o-r)*y+O(),w+e+2*(a-e)*y+O(),o+(W?0:O()),a+(W?0:O())]}):_.push({op:"bcurveTo",data:[k+r+(o-r)*y+q(),w+e+(a-e)*y+q(),k+r+2*(o-r)*y+q(),w+e+2*(a-e)*y+q(),o+(W?0:q()),a+(W?0:q())]}),_}function Ll(r,e,o){if(!r.length)return[];let a=[];a.push([r[0][0]+de(e,o),r[0][1]+de(e,o)]),a.push([r[0][0]+de(e,o),r[0][1]+de(e,o)]);for(let s=1;s<r.length;s++)a.push([r[s][0]+de(e,o),r[s][1]+de(e,o)]),s===r.length-1&&a.push([r[s][0]+de(e,o),r[s][1]+de(e,o)]);return Ol(a,null,o)}function Ol(r,e,o){let a=r.length,s=[];if(a>3){let n=[],c=1-o.curveTightness;s.push({op:"move",data:[r[1][0],r[1][1]]});for(let l=1;l+2<a;l++){let f=r[l];n[0]=[f[0],f[1]],n[1]=[f[0]+(c*r[l+1][0]-c*r[l-1][0])/6,f[1]+(c*r[l+1][1]-c*r[l-1][1])/6],n[2]=[r[l+1][0]+(c*r[l][0]-c*r[l+2][0])/6,r[l+1][1]+(c*r[l][1]-c*r[l+2][1])/6],n[3]=[r[l+1][0],r[l+1][1]],s.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=o.maxRandomnessOffset;s.push({op:"lineTo",data:[e[0]+de(l,o),e[1]+de(l,o)]})}}else a===3?(s.push({op:"move",data:[r[1][0],r[1][1]]}),s.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[2][0],r[2][1]]})):a===2&&s.push(...Nf(r[0][0],r[0][1],r[1][0],r[1][1],o,!0,!0));return s}function ny(r,e,o,a,s,n,c,l){let f=[],p=[];if(l.roughness===0){r/=4,p.push([e+a*Math.cos(-r),o+s*Math.sin(-r)]);for(let u=0;u<=2*Math.PI;u+=r){let m=[e+a*Math.cos(u),o+s*Math.sin(u)];f.push(m),p.push(m)}p.push([e+a*Math.cos(0),o+s*Math.sin(0)]),p.push([e+a*Math.cos(r),o+s*Math.sin(r)])}else{let u=de(0.5,l)-Math.PI/2;p.push([de(n,l)+e+0.9*a*Math.cos(u-r),de(n,l)+o+0.9*s*Math.sin(u-r)]);let m=2*Math.PI+u-0.01;for(let y=u;y<m;y+=r){let k=[de(n,l)+e+a*Math.cos(y),de(n,l)+o+s*Math.sin(y)];f.push(k),p.push(k)}p.push([de(n,l)+e+a*Math.cos(u+2*Math.PI+0.5*c),de(n,l)+o+s*Math.sin(u+2*Math.PI+0.5*c)]),p.push([de(n,l)+e+0.98*a*Math.cos(u+c),de(n,l)+o+0.98*s*Math.sin(u+c)]),p.push([de(n,l)+e+0.9*a*Math.cos(u+0.5*c),de(n,l)+o+0.9*s*Math.sin(u+0.5*c)])}return[p,f]}function ly(r,e,o,a,s,n,c,l,f){let p=n+de(0.1,f),u=[];u.push([de(l,f)+e+0.9*a*Math.cos(p-r),de(l,f)+o+0.9*s*Math.sin(p-r)]);for(let m=p;m<=c;m+=r)u.push([de(l,f)+e+a*Math.cos(m),de(l,f)+o+s*Math.sin(m)]);return u.push([e+a*Math.cos(c),o+s*Math.sin(c)]),u.push([e+a*Math.cos(c),o+s*Math.sin(c)]),Ol(u,null,f)}function Dw(r,e,o,a,s,n,c,l){let f=[],p=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+0.3],u=[0,0],m=l.disableMultiStroke?1:2,y=l.preserveVertices;for(let k=0;k<m;k++)k===0?f.push({op:"move",data:[c[0],c[1]]}):f.push({op:"move",data:[c[0]+(y?0:de(p[0],l)),c[1]+(y?0:de(p[0],l))]}),u=y?[s,n]:[s+de(p[k],l),n+de(p[k],l)],f.push({op:"bcurveTo",data:[r+de(p[k],l),e+de(p[k],l),o+de(p[k],l),a+de(p[k],l),u[0],u[1]]});return f}function ja(r){return[...r]}function hy(r,e=0){let o=r.length;if(o<3)throw Error("A curve must have at least three points.");let a=[];if(o===3)a.push(ja(r[0]),ja(r[1]),ja(r[2]),ja(r[2]));else{let s=[];s.push(r[0],r[0]);for(let l=1;l<r.length;l++)s.push(r[l]),l===r.length-1&&s.push(r[l]);let n=[],c=1-e;a.push(ja(s[0]));for(let l=1;l+2<s.length;l++){let f=s[l];n[0]=[f[0],f[1]],n[1]=[f[0]+(c*s[l+1][0]-c*s[l-1][0])/6,f[1]+(c*s[l+1][1]-c*s[l-1][1])/6],n[2]=[s[l+1][0]+(c*s[l][0]-c*s[l+2][0])/6,s[l+1][1]+(c*s[l][1]-c*s[l+2][1])/6],n[3]=[s[l+1][0],s[l+1][1]],a.push(n[1],n[2],n[3])}}return a}function Ml(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)}function Pw(r,e,o){let a=Ml(e,o);if(a===0)return Ml(r,e);let s=((r[0]-e[0])*(o[0]-e[0])+(r[1]-e[1])*(o[1]-e[1]))/a;return s=Math.max(0,Math.min(1,s)),Ml(r,go(e,o,s))}function go(r,e,o){return[r[0]+(e[0]-r[0])*o,r[1]+(e[1]-r[1])*o]}function Wf(r,e,o,a){let s=a||[];if(function(l,f){let p=l[f+0],u=l[f+1],m=l[f+2],y=l[f+3],k=3*u[0]-2*p[0]-y[0];k*=k;let w=3*u[1]-2*p[1]-y[1];w*=w;let _=3*m[0]-2*y[0]-p[0];_*=_;let O=3*m[1]-2*y[1]-p[1];return O*=O,k<_&&(k=_),w<O&&(w=O),k+w}(r,e)<o){let l=r[e+0];if(s.length)(n=s[s.length-1],c=l,Math.sqrt(Ml(n,c)))>1&&s.push(l);else s.push(l);s.push(r[e+3])}else{let f=r[e+0],p=r[e+1],u=r[e+2],m=r[e+3],y=go(f,p,0.5),k=go(p,u,0.5),w=go(u,m,0.5),_=go(y,k,0.5),O=go(k,w,0.5),q=go(_,O,0.5);Wf([f,y,_,q],0,o,s),Wf([q,O,w,m],0,o,s)}var n,c;return s}function Rw(r,e){return Il(r,0,r.length,e)}function Il(r,e,o,a,s){let n=s||[],c=r[e],l=r[o-1],f=0,p=1;for(let u=e+1;u<o-1;++u){let m=Pw(r[u],c,l);m>f&&(f=m,p=u)}return Math.sqrt(f)>a?(Il(r,e,p+1,a,n),Il(r,p,o,a,n)):(n.length||n.push(c),n.push(l)),n}function Rf(r,e=0.15,o){let a=[],s=(r.length-1)/3;for(let n=0;n<s;n++)Wf(r,3*n,e,a);return o&&o>0?Il(a,0,a.length,o):a}var Lr="none";class Ga{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,o){return{shape:r,sets:e||[],options:o||this.defaultOptions}}line(r,e,o,a,s){let n=this._o(s);return this._d("line",[Cy(r,e,o,a,n)],n)}rectangle(r,e,o,a,s){let n=this._o(s),c=[],l=$w(r,e,o,a,n);if(n.fill){let f=[[r,e],[r+o,e],[r+o,e+a],[r,e+a]];n.fillStyle==="solid"?c.push(Pf([f],n)):c.push(Ss([f],n))}return n.stroke!==Lr&&c.push(l),this._d("rectangle",c,n)}ellipse(r,e,o,a,s){let n=this._o(s),c=[],l=by(o,a,n),f=qf(r,e,n,l);if(n.fill)if(n.fillStyle==="solid"){let p=qf(r,e,n,l).opset;p.type="fillPath",c.push(p)}else c.push(Ss([f.estimatedPoints],n));return n.stroke!==Lr&&c.push(f.opset),this._d("ellipse",c,n)}circle(r,e,o,a){let s=this.ellipse(r,e,o,o,a);return s.shape="circle",s}linearPath(r,e){let o=this._o(e);return this._d("linearPath",[Al(r,!1,o)],o)}arc(r,e,o,a,s,n,c=!1,l){let f=this._o(l),p=[],u=oy(r,e,o,a,s,n,c,!0,f);if(c&&f.fill)if(f.fillStyle==="solid"){let m=Object.assign({},f);m.disableMultiStroke=!0;let y=oy(r,e,o,a,s,n,!0,!1,m);y.type="fillPath",p.push(y)}else p.push(function(m,y,k,w,_,O,q){let W=m,j=y,Q=Math.abs(k/2),J=Math.abs(w/2);Q+=de(0.01*Q,q),J+=de(0.01*J,q);let ut=_,lt=O;for(;ut<0;)ut+=2*Math.PI,lt+=2*Math.PI;lt-ut>2*Math.PI&&(ut=0,lt=2*Math.PI);let gt=(lt-ut)/q.curveStepCount,wt=[];for(let At=ut;At<=lt;At+=gt)wt.push([W+Q*Math.cos(At),j+J*Math.sin(At)]);return wt.push([W+Q*Math.cos(lt),j+J*Math.sin(lt)]),wt.push([W,j]),Ss([wt],q)}(r,e,o,a,s,n,f));return f.stroke!==Lr&&p.push(u),this._d("arc",p,f)}curve(r,e){let o=this._o(e),a=[],s=iy(r,o);if(o.fill&&o.fill!==Lr)if(o.fillStyle==="solid"){let n=iy(r,Object.assign(Object.assign({},o),{disableMultiStroke:!0,roughness:o.roughness?o.roughness+o.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(n.ops)})}else{let n=[],c=r;if(c.length){let l=typeof c[0][0]=="number"?[c]:c;for(let f of l)f.length<3?n.push(...f):f.length===3?n.push(...Rf(hy([f[0],f[0],f[1],f[2]]),10,(1+o.roughness)/2)):n.push(...Rf(hy(f),10,(1+o.roughness)/2))}n.length&&a.push(Ss([n],o))}return o.stroke!==Lr&&a.push(s),this._d("curve",a,o)}polygon(r,e){let o=this._o(e),a=[],s=Al(r,!0,o);return o.fill&&(o.fillStyle==="solid"?a.push(Pf([r],o)):a.push(Ss([r],o))),o.stroke!==Lr&&a.push(s),this._d("polygon",a,o)}path(r,e){let o=this._o(e),a=[];if(!r)return this._d("path",a,o);r=(r||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let s=o.fill&&o.fill!=="transparent"&&o.fill!==Lr,n=o.stroke!==Lr,c=!!(o.simplification&&o.simplification<1),l=function(p,u,m){let y=yy(my(zf(p))),k=[],w=[],_=[0,0],O=[],q=()=>{O.length>=4&&w.push(...Rf(O,u)),O=[]},W=()=>{q(),w.length&&(k.push(w),w=[])};for(let{key:Q,data:J}of y)switch(Q){case"M":W(),_=[J[0],J[1]],w.push(_);break;case"L":q(),w.push([J[0],J[1]]);break;case"C":if(!O.length){let ut=w.length?w[w.length-1]:_;O.push([ut[0],ut[1]])}O.push([J[0],J[1]]),O.push([J[2],J[3]]),O.push([J[4],J[5]]);break;case"Z":q(),w.push([_[0],_[1]])}if(W(),!m)return k;let j=[];for(let Q of k){let J=Rw(Q,m);J.length&&j.push(J)}return j}(r,1,c?4-4*(o.simplification||1):(1+o.roughness)/2),f=sy(r,o);if(s)if(o.fillStyle==="solid")if(l.length===1){let p=sy(r,Object.assign(Object.assign({},o),{disableMultiStroke:!0,roughness:o.roughness?o.roughness+o.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(p.ops)})}else a.push(Pf(l,o));else a.push(Ss(l,o));return n&&(c?l.forEach((p)=>{a.push(Al(p,!1,o))}):a.push(f)),this._d("path",a,o)}opsToPath(r,e){let o="";for(let a of r.ops){let s=typeof e=="number"&&e>=0?a.data.map((n)=>+n.toFixed(e)):a.data;switch(a.op){case"move":o+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":o+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":o+=`L${s[0]} ${s[1]} `}}return o.trim()}toPaths(r){let e=r.sets||[],o=r.options||this.defaultOptions,a=[];for(let s of e){let n=null;switch(s.type){case"path":n={d:this.opsToPath(s),stroke:o.stroke,strokeWidth:o.strokeWidth,fill:Lr};break;case"fillPath":n={d:this.opsToPath(s),stroke:Lr,strokeWidth:0,fill:o.fill||Lr};break;case"fillSketch":n=this.fillSketch(s,o)}n&&a.push(n)}return a}fillSketch(r,e){let o=e.fillWeight;return o<0&&(o=e.strokeWidth/2),{d:this.opsToPath(r),stroke:e.fill||Lr,strokeWidth:o,fill:Lr}}_mergedShape(r){return r.filter((e,o)=>o===0||e.op!=="move")}}class wy{constructor(r,e){this.canvas=r,this.ctx=this.canvas.getContext("2d"),this.gen=new Ga(e)}draw(r){let e=r.sets||[],o=r.options||this.getDefaultOptions(),a=this.ctx,s=r.options.fixedDecimalPlaceDigits;for(let n of e)switch(n.type){case"path":a.save(),a.strokeStyle=o.stroke==="none"?"transparent":o.stroke,a.lineWidth=o.strokeWidth,o.strokeLineDash&&a.setLineDash(o.strokeLineDash),o.strokeLineDashOffset&&(a.lineDashOffset=o.strokeLineDashOffset),this._drawToContext(a,n,s),a.restore();break;case"fillPath":{a.save(),a.fillStyle=o.fill||"";let c=r.shape==="curve"||r.shape==="polygon"||r.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,n,s,c),a.restore();break}case"fillSketch":this.fillSketch(a,n,o)}}fillSketch(r,e,o){let a=o.fillWeight;a<0&&(a=o.strokeWidth/2),r.save(),o.fillLineDash&&r.setLineDash(o.fillLineDash),o.fillLineDashOffset&&(r.lineDashOffset=o.fillLineDashOffset),r.strokeStyle=o.fill||"",r.lineWidth=a,this._drawToContext(r,e,o.fixedDecimalPlaceDigits),r.restore()}_drawToContext(r,e,o,a="nonzero"){r.beginPath();for(let s of e.ops){let n=typeof o=="number"&&o>=0?s.data.map((c)=>+c.toFixed(o)):s.data;switch(s.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(a):r.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(r,e,o,a,s){let n=this.gen.line(r,e,o,a,s);return this.draw(n),n}rectangle(r,e,o,a,s){let n=this.gen.rectangle(r,e,o,a,s);return this.draw(n),n}ellipse(r,e,o,a,s){let n=this.gen.ellipse(r,e,o,a,s);return this.draw(n),n}circle(r,e,o,a){let s=this.gen.circle(r,e,o,a);return this.draw(s),s}linearPath(r,e){let o=this.gen.linearPath(r,e);return this.draw(o),o}polygon(r,e){let o=this.gen.polygon(r,e);return this.draw(o),o}arc(r,e,o,a,s,n,c=!1,l){let f=this.gen.arc(r,e,o,a,s,n,c,l);return this.draw(f),f}curve(r,e){let o=this.gen.curve(r,e);return this.draw(o),o}path(r,e){let o=this.gen.path(r,e);return this.draw(o),o}}var Fl="http://www.w3.org/2000/svg";class Sy{constructor(r,e){this.svg=r,this.gen=new Ga(e)}draw(r){let e=r.sets||[],o=r.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,s=a.createElementNS(Fl,"g"),n=r.options.fixedDecimalPlaceDigits;for(let c of e){let l=null;switch(c.type){case"path":l=a.createElementNS(Fl,"path"),l.setAttribute("d",this.opsToPath(c,n)),l.setAttribute("stroke",o.stroke),l.setAttribute("stroke-width",o.strokeWidth+""),l.setAttribute("fill","none"),o.strokeLineDash&&l.setAttribute("stroke-dasharray",o.strokeLineDash.join(" ").trim()),o.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${o.strokeLineDashOffset}`);break;case"fillPath":l=a.createElementNS(Fl,"path"),l.setAttribute("d",this.opsToPath(c,n)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",o.fill||""),r.shape!=="curve"&&r.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(a,c,o)}l&&s.appendChild(l)}return s}fillSketch(r,e,o){let a=o.fillWeight;a<0&&(a=o.strokeWidth/2);let s=r.createElementNS(Fl,"path");return s.setAttribute("d",this.opsToPath(e,o.fixedDecimalPlaceDigits)),s.setAttribute("stroke",o.fill||""),s.setAttribute("stroke-width",a+""),s.setAttribute("fill","none"),o.fillLineDash&&s.setAttribute("stroke-dasharray",o.fillLineDash.join(" ").trim()),o.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${o.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(r,e){return this.gen.opsToPath(r,e)}line(r,e,o,a,s){let n=this.gen.line(r,e,o,a,s);return this.draw(n)}rectangle(r,e,o,a,s){let n=this.gen.rectangle(r,e,o,a,s);return this.draw(n)}ellipse(r,e,o,a,s){let n=this.gen.ellipse(r,e,o,a,s);return this.draw(n)}circle(r,e,o,a){let s=this.gen.circle(r,e,o,a);return this.draw(s)}linearPath(r,e){let o=this.gen.linearPath(r,e);return this.draw(o)}polygon(r,e){let o=this.gen.polygon(r,e);return this.draw(o)}arc(r,e,o,a,s,n,c=!1,l){let f=this.gen.arc(r,e,o,a,s,n,c,l);return this.draw(f)}curve(r,e){let o=this.gen.curve(r,e);return this.draw(o)}path(r,e){let o=this.gen.path(r,e);return this.draw(o)}}var b={canvas:(r,e)=>new wy(r,e),svg:(r,e)=>new Sy(r,e),generator:(r)=>new Ga(r),newSeed:()=>Ga.newSeed()};var qw=1,Nw=3;async function td(r){let e=r.getElementsByTagName("img");if(!e||e.length===0)return;let o=!ed(r);await Promise.all([...e].map((a)=>new Promise((s)=>{function n(){if(a.style.display="flex",a.style.flexDirection="column",o){let c=d().fontSize?d().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[f=z.fontSize]=It(c),p=f*5+"px";a.style.minWidth=p,a.style.maxWidth=p}else a.style.width="100%";s(a)}t(n,"setupImage"),setTimeout(()=>{if(a.complete)n()}),a.addEventListener("error",n),a.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,o)=>{let a=d(),s=r.insert("g").attr("class",o??"node default").attr("id",e.domId||e.id),n=s.insert("g").attr("class","label").attr("style",Ie(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((q)=>({text:q,cssClass:"c4-descr"}))].filter((q)=>q.text),f=e.width?Math.max(e.width-2*(e.padding??0),Ww):d().flowchart?.wrappingWidth??200,u=a.c4?.wrap??!0?f:Number.POSITIVE_INFINITY,m=await Promise.all(l.map(async(q)=>{let W=n.append("g").attr("class",q.cssClass),j=await ct(W,G(qn(q.text??""),a),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:u,style:e.labelStyle},a);return v(j).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),v(j).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:W,box:W.node().getBBox()}})),y=Math.max(...m.map(({box:q})=>q.width),0),k=0;for(let{el:q,box:W}of m)q.attr("transform",`translate(${y/2-W.x-W.width/2}, ${k-W.y})`),k+=W.height+Ty;let w=m.length>0?k-Ty:0;n.insert("rect",":first-child"),n.attr("transform",`translate(${-y/2}, ${-w/2})`);let _=n.node().getBBox(),O=(e.padding??0)/2;return{shapeSvg:s,bbox:_,halfPadding:O,label:n}},"c4LabelHelper"),_y=t((r,e)=>{let{x:o,y:a,width:s,height:n}=r;if(s>=e)return r;if(!("left"in r))return{x:o-(e-s)/2,y:a,width:e,height:n};return{x:o,y:a,width:e,height:n,top:a,left:o,bottom:a+n,right:o+e,toJSON:t(()=>({}),"toJSON")}},"withMinWidth"),V=t(async(r,e,o,{ignoreMinWidth:a=!1}={})=>{if(e.stereotype!==void 0)return zw(r,e,o);let s,n=e.useHtmlLabels||mn(d()?.htmlLabels);if(!o)s="node default";else s=o;let c=r.insert("g").attr("class",s).attr("id",e.domId||e.id),l=c.insert("g").attr("class","label").attr("style",Ie(e.labelStyle)),f;if(e.label===void 0)f="";else f=typeof e.label==="string"?e.label:e.label[0];let p=!!e.icon||!!e.img,u=e.labelType==="markdown",m=f&&!e.width&&!a?e.minWidth??0:0,y=await ct(l,G(qn(f),d()),{useHtmlLabels:n,width:e.width||e.wrappingWidth||d().flowchart?.wrappingWidth,minWidth:m,classes:u?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:p,markdown:u},d()),k=(e?.padding??0)/2,w;if(n){let _=y.children[0],O=v(y);await td(_),w=await qi.measure(()=>_.getBoundingClientRect()),w=_y(w,m),O.attr("width",w.width),O.attr("height",w.height)}else w=await qi.measure(()=>y.getBBox()),w=_y(w,m);if(n)l.attr("transform","translate("+-w.width/2+", "+-w.height/2+")");else l.attr("transform","translate(0, "+-w.height/2+")");if(e.centerLabel)l.attr("transform","translate("+-w.width/2+", "+-w.height/2+")");return l.insert("rect",":first-child"),{shapeSvg:c,bbox:w,halfPadding:k,label:l}},"labelHelper"),yo=t(async(r,e,o)=>{let a=o.useHtmlLabels??nt(d()),s=r.insert("g").attr("class","label").attr("style",o.labelStyle||""),n=await ct(s,G(qn(e),d()),{useHtmlLabels:a,width:o.width||d()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),c=o.padding/2,l;if(nt(d())){let f=n.children[0],p=v(n);l=await qi.measure(()=>f.getBoundingClientRect()),p.attr("width",l.width),p.attr("height",l.height)}else l=await qi.measure(()=>n.getBBox());if(a)s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");else s.attr("transform","translate(0, "+-l.height/2+")");if(o.centerLabel)s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");return s.insert("rect",":first-child"),{shapeSvg:r,bbox:l,halfPadding:c,label:s}},"insertLabel"),F=t((r,e,o)=>{if(o){r.width=o.width,r.height=o.height;return}let a=e.node().getBBox();r.width=a.width,r.height=a.height},"updateNodeBounds"),oe=t((r,e)=>(r.look==="handDrawn"?"rough-node":"node")+" "+r.cssClasses+" "+(e||""),"getNodeClasses");function we(r){let e=r.map((o,a)=>`${a===0?"M":"L"}${o.x},${o.y}`);return e.push("Z"),e.join(" ")}t(we,"createPathFromPoints");function oo(r,e,o,a,s,n){let c=[],l=50,f=o-r,p=a-e,u=f/n,m=2*Math.PI/u,y=e+p/2;for(let k=0;k<=50;k++){let w=k/50,_=r+w*f,O=y+s*Math.sin(m*(_-r));c.push({x:_,y:O})}return c}t(oo,"generateFullSineWavePoints");function gi(r,e,o,a,s,n){let c=[],l=s*Math.PI/180,u=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let y=l+m*u,k=r+o*Math.cos(y),w=e+o*Math.sin(y);c.push({x:-k,y:-w})}return c}t(gi,"generateCirclePoints");function Kf(r){let e=Array.from(r.childNodes).filter((f)=>f.tagName==="path"),o=document.createElementNS("http://www.w3.org/2000/svg","path"),a=e.map((f)=>f.getAttribute("d")).filter((f)=>f!==null).join(" ");o.setAttribute("d",a);let s=e.find((f)=>f.getAttribute("fill")!=="none"),n=e.find((f)=>f.getAttribute("stroke")!=="none"),c=t((f,p)=>f?.getAttribute(p)??void 0,"getAttr");if(s){let f={fill:c(s,"fill"),"fill-opacity":c(s,"fill-opacity")??"1"};Object.entries(f).forEach(([p,u])=>{if(u)o.setAttribute(p,u)})}if(n){let f={stroke:c(n,"stroke"),"stroke-width":c(n,"stroke-width")??"1","stroke-opacity":c(n,"stroke-opacity")??"1"};Object.entries(f).forEach(([p,u])=>{if(u)o.setAttribute(p,u)})}let l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(o),l}t(Kf,"mergePaths");var Hw=t((r,e)=>{var{x:o,y:a}=r,s=e.x-o,n=e.y-a,c=r.width/2,l=r.height/2,f,p;if(Math.abs(n)*c>Math.abs(s)*l){if(n<0)l=-l;f=n===0?0:l*s/n,p=l}else{if(s<0)c=-c;f=c,p=s===0?0:c*n/s}return{x:o+f,y:a+p}},"intersectRect"),mi=Hw;function Gy(r,e){return r.intersect(e)}t(Gy,"intersectNode");var Yw=Gy;function Xy(r,e,o,a){var{x:s,y:n}=r,c=s-a.x,l=n-a.y,f=Math.sqrt(e*e*l*l+o*o*c*c),p=Math.abs(e*o*c/f);if(a.x<s)p=-p;var u=Math.abs(e*o*l/f);if(a.y<n)u=-u;return{x:s+p,y:n+u}}t(Xy,"intersectEllipse");var Vy=Xy;function Ky(r,e,o){return Vy(r,e,e,o)}t(Ky,"intersectCircle");var Uw=Ky;function Zy(r,e,o,a){{let s=e.y-r.y,n=r.x-e.x,c=e.x*r.y-r.x*e.y,l=s*o.x+n*o.y+c,f=s*a.x+n*a.y+c,p=0.000001;if(l!==0&&f!==0&&Zf(l,f))return;let u=a.y-o.y,m=o.x-a.x,y=a.x*o.y-o.x*a.y,k=u*r.x+m*r.y+y,w=u*e.x+m*e.y+y;if(Math.abs(k)<0.000001&&Math.abs(w)<0.000001&&Zf(k,w))return;let _=s*m-u*n;if(_===0)return;let O=(n*y-m*c)/_,q=(u*c-s*y)/_;return{x:O,y:q}}}t(Zy,"intersectLine");function Zf(r,e){return r*e>0}t(Zf,"sameSign");var jw=Zy;function Qy(r,e,o){let{x:a,y:s}=r,n=[],{POSITIVE_INFINITY:c,POSITIVE_INFINITY:l}=Number;if(typeof e.forEach==="function")e.forEach(function(u){c=Math.min(c,u.x),l=Math.min(l,u.y)});else c=Math.min(c,e.x),l=Math.min(l,e.y);let f=a-r.width/2-c,p=s-r.height/2-l;for(let u=0;u<e.length;u++){let m=e[u],y=e[u<e.length-1?u+1:0],k=jw(r,o,{x:f+m.x,y:p+m.y},{x:f+y.x,y:p+y.y});if(k)n.push(k)}if(!n.length)return r;if(n.length>1)n.sort(function(u,m){let y=u.x-o.x,k=u.y-o.y,w=Math.sqrt(y*y+k*k),_=m.x-o.x,O=m.y-o.y,q=Math.sqrt(_*_+O*O);return w<q?-1:w===q?0:1});return n[0]}t(Qy,"intersectPolygon");var Gw=Qy,T={node:Yw,circle:Uw,ellipse:Vy,polygon:Gw,rect:mi},Tr=t((r,e,o,a,s)=>["M",r+s,e,"H",r+o-s,"A",s,s,0,0,1,r+o,e+s,"V",e+a-s,"A",s,s,0,0,1,r+o-s,e+a,"H",r+s,"A",s,s,0,0,1,r,e+a-s,"V",e+s,"A",s,s,0,0,1,r+s,e,"Z"].join(" "),"createRoundedRectPathD"),Xw=t(async(r,e,o,a=!1,s=!1)=>{let n=e||"";if(typeof n==="object")n=n[0];let c=d(),l=nt(c);return await ct(r,n,{style:o,isTitle:a,useHtmlLabels:l,markdown:!1,isNode:s,width:Number.POSITIVE_INFINITY},c)},"createLabel"),Nr=Xw;function Jy(r,e){let{labelStyles:o}=E(e);e.labelStyle=o;let a=oe(e),s=a;if(!a)s="anchor";let n=r.insert("g").attr("class",s).attr("id",e.domId||e.id),c=1,{cssStyles:l}=e,f=b.svg(n),p=Jt(e,{fill:"black",stroke:"none",fillStyle:"solid"});if(e.look!=="handDrawn")p.roughness=0;let u=f.circle(0,0,c*2,p),m=n.insert(()=>u,":first-child");return m.attr("class","anchor").attr("style",Ie(l)),F(e,m),e.intersect=function(y){return i.info("Circle intersect",e,c,y),T.circle(e,c,y)},n}t(Jy,"anchor");function Qf(r,e,o,a,s,n,c){let f=(r+o)/2,p=(e+a)/2,u=Math.atan2(a-e,o-r),m=(o-r)/2,y=(a-e)/2,k=m/s,w=y/n,_=Math.sqrt(k**2+w**2);if(_>1)throw Error("The given radii are too small to create an arc between the points.");let O=Math.sqrt(1-_**2),q=f+O*n*Math.sin(u)*(c?-1:1),W=p-O*s*Math.cos(u)*(c?-1:1),j=Math.atan2((e-W)/n,(r-q)/s),J=Math.atan2((a-W)/n,(o-q)/s)-j;if(c&&J<0)J+=2*Math.PI;if(!c&&J>0)J-=2*Math.PI;let ut=[];for(let lt=0;lt<20;lt++){let gt=lt/19,wt=j+gt*J,At=q+s*Math.cos(wt),_t=W+n*Math.sin(wt);ut.push({x:At,y:_t})}return ut}t(Qf,"generateArcPoints");function tx(r,e,o){let[a,s]=[e,o].sort((n,c)=>c-n);return s*(1-Math.sqrt(1-(r/a/2)**2))}t(tx,"calculateArcSagitta");async function ex(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s,l=t((wt)=>wt+c,"calcTotalHeight"),f=t((wt)=>{let At=wt/2;return[At/(2.5+wt/50),At]},"calcEllipseRadius"),{shapeSvg:p,bbox:u}=await V(r,e,oe(e)),m=l(e?.height?e?.height:u.height),[y,k]=f(m),w=tx(m,y,k),O=(e?.width?e?.width:u.width)+n*2+w-w,q=m,{cssStyles:W}=e,j=[{x:O/2,y:-q/2},{x:-O/2,y:-q/2},...Qf(-O/2,-q/2,-O/2,q/2,y,k,!1),{x:O/2,y:q/2},...Qf(O/2,q/2,O/2,-q/2,y,k,!0)],Q=b.svg(p),J=Jt(e,{});if(e.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let ut=we(j),lt=Q.path(ut,J),gt=p.insert(()=>lt,":first-child");if(gt.attr("class","basic label-container outer-path"),W&&e.look!=="handDrawn")gt.selectAll("path").attr("style",W);if(a&&e.look!=="handDrawn")gt.selectAll("path").attr("style",a);return gt.attr("transform",`translate(${y/2}, 0)`),F(e,gt),e.intersect=function(wt){return T.polygon(e,j,wt)},p}t(ex,"bowTieRect");async function rx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=E(e);e.labelStyle=a;let{shapeSvg:n,bbox:c,label:l}=await V(r,e,oe(e)),f=o?.nodeBorder??o?.lineColor??"currentColor",p=e.padding??12,u=Math.max(c.width+p*2,e.width??0,80),m=Math.max(Math.min(u*0.08,12),5),y=Math.max(c.height+p*2+m,e.height??0),k=-y/2+m,w=y/2,_=u*0.72,O=[`M${-u/2},${k}`,`L${-_/2},${w}`,`A${_/2},${m} 0 0 0 ${_/2},${w}`,`L${u/2},${k}`,`A${u/2},${m} 0 0 0 ${-u/2},${k}`,"Z"].join(" "),{cssStyles:q}=e,W=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let gt=b.svg(n).path(O,Jt(e,{}));if(W.node()?.appendChild(gt),q)W.attr("style",q)}else W.append("path").attr("d",O).attr("style",s);W.append("ellipse").attr("cx",0).attr("cy",k).attr("rx",u/2).attr("ry",m).attr("style",`fill:none;stroke:${f};stroke-width:1px`),F(e,W);let j=k+(w-k)/2;l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${j-c.height/2-(c.y-(c.top??0))})`);let Q=12,J=t((lt,gt,wt)=>Array.from({length:Q+1},(At,_t)=>{let Tt=Math.PI-_t*Math.PI/Q;return{x:lt*Math.cos(Tt),y:gt+wt*m*Math.sin(Tt)}}),"arc"),ut=[...J(u/2,k,-1),...J(_/2,w,1).reverse()];return e.intersect=function(lt){return T.polygon(e,ut,lt)},n}t(rx,"bucket");var Hf=20,Yf=8,Vw=80,Kw=8;function ix(r){let{themeVariables:e}=d(),{clusterBkg:o,clusterBorder:a}=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:o,stroke:a,cssClass:"collapsed-group"}}}t(ix,"getCollapsedStyle");async function ox(r,e){let o=ix(e.metadata?.containerType),{fill:a,stroke:s}=o,{nodeStyles:n}=E(e),{shapeSvg:c,bbox:l}=await V(r,e,oe(e)),{theme:f,themeVariables:p}=d();Ht(c,e.colorIndex,f,p.borderColorArray);let u=e.padding??8,m=l.height,y=Math.max(l.width+u*2,Vw,e?.width??0),k=Math.max(m+Yf+Hf+u*2,e?.height??0),w=-y/2,_=-k/2,O=-(Yf+Hf)/2,q=c.select(".label");if(q)if(e.useHtmlLabels??nt(d()))q.attr("transform",`translate(${-l.width/2}, ${-l.height/2+O})`);else q.attr("transform",`translate(0, ${-l.height/2+O})`);let W;if(e.look==="handDrawn"){let lt=b.svg(c),gt=Jt(e,{fill:a,stroke:s,...o.strokeWidth===void 0?{}:{strokeWidth:o.strokeWidth},...a==="none"?{fillWeight:0}:{fillStyle:"solid"}}),wt=lt.path(Tr(w,_,y,k,o.rx),gt);W=c.insert(()=>wt,":first-child"),W.attr("class","basic label-container "+o.cssClass).attr("style",Ie(e.cssStyles))}else if(W=c.insert("rect",":first-child"),W.attr("class","basic label-container "+o.cssClass).attr("style",n).attr("rx",o.rx).attr("ry",o.rx).attr("x",w).attr("y",_).attr("width",y).attr("height",k).attr("fill",a).attr("stroke",s),o.strokeWidth!==void 0)W.attr("stroke-width",o.strokeWidth+"px");let j=_+u+m+Yf;c.append("line").attr("class","collapsed-separator").attr("x1",w+8).attr("y1",j).attr("x2",w+y-8).attr("y2",j).attr("stroke",s).attr("stroke-dasharray","3, 3");let Q=j+Hf/2,J=2.5,ut=10;for(let lt=-1;lt<=1;lt++)c.append("circle").attr("class","collapsed-indicator").attr("cx",lt*ut).attr("cy",Q).attr("r",J).attr("fill",s);return F(e,W),e.calcIntersect=function(lt,gt){return T.rect(lt,gt)},e.intersect=function(lt){return T.rect(e,lt)},c}t(ox,"collapsedGroup");function yi(r,e,o,a){return r.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+o/2+")")}t(yi,"insertPolygonShape");var Zw=["right","left","up","down"],rd="point",Qw=t((r)=>{let e=new Set;for(let o of r)switch(o){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(o);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:o,width:a})=>[{x:0,y:0},{x:e,y:0},{x:a/2,y:2*o},{x:a-e,y:0},{x:a,y:0},{x:a,y:-r/3},{x:a+2*o,y:-r/2},{x:a,y:-2*r/3},{x:a,y:-r},{x:a-e,y:-r},{x:a/2,y:-r-2*o},{x:e,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*o,y:-r/2},{x:0,y:-r/3}],"right|left|up|down"),"right|left|up":t(({height:r,midpoint:e,width:o})=>[{x:e,y:0},{x:o-e,y:0},{x:o,y:-r/2},{x:o-e,y:-r},{x:e,y:-r},{x:0,y:-r/2}],"right|left|up"),"right|left|down":t(({height:r,midpoint:e,width:o})=>[{x:0,y:0},{x:e,y:-r},{x:o-e,y:-r},{x:o,y:0}],"right|left|down"),"right|up|down":t(({height:r,midpoint:e,width:o})=>[{x:0,y:0},{x:o,y:-e},{x:o,y:-r+e},{x:0,y:-r}],"right|up|down"),"left|up|down":t(({height:r,midpoint:e,width:o})=>[{x:o,y:0},{x:0,y:-e},{x:0,y:-r+e},{x:o,y:-r}],"left|up|down"),"right|left":t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:0},{x:e,y:-o},{x:a-e,y:-o},{x:a-e,y:0},{x:a,y:-r/2},{x:a-e,y:-r},{x:a-e,y:-r+o},{x:e,y:-r+o},{x:e,y:-r},{x:0,y:-r/2}],"right|left"),"up|down":t(({height:r,midpoint:e,padding:o,width:a})=>[{x:a/2,y:0},{x:0,y:-o},{x:e,y:-o},{x:e,y:-r+o},{x:0,y:-r+o},{x:a/2,y:-r},{x:a,y:-r+o},{x:a-e,y:-r+o},{x:a-e,y:-o},{x:a,y:-o}],"up|down"),"right|up":t(({height:r,midpoint:e,width:o})=>[{x:0,y:0},{x:o,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:o})=>[{x:o,y:0},{x:0,y:-e},{x:o,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:o,width:a})=>[{x:e,y:-o},{x:e,y:-o},{x:a-e,y:-o},{x:a-e,y:0},{x:a,y:-r/2},{x:a-e,y:-r},{x:a-e,y:-r+o},{x:e,y:-r+o},{x:e,y:-r+o}],"right"),left:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:0},{x:e,y:-o},{x:a-e,y:-o},{x:a-e,y:-r+o},{x:e,y:-r+o},{x:e,y:-r},{x:0,y:-r/2}],"left"),up:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:-o},{x:e,y:-r+o},{x:0,y:-r+o},{x:a/2,y:-r},{x:a,y:-r+o},{x:a-e,y:-r+o},{x:a-e,y:-o}],"up"),down:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:a/2,y:0},{x:0,y:-o},{x:e,y:-o},{x:e,y:-r+o},{x:a-e,y:-r+o},{x:a-e,y:-o},{x:a,y:-o}],"down"),[rd]:()=>[{x:0,y:0}]},tS=t((r,e,o,a)=>{let s=Qw(r),n=(o.padding??0)/2,c=e.height+4*n,l=c/2,f=a??e.width+2*l+2*n,p=Jw(s);return(By[p]??By[rd])({height:c,midpoint:l,padding:n,width:f})},"getArrowPoints");async function sx(r,e){let o=e,{shapeSvg:a,bbox:s}=await V(r,o,oe(o)),n=o.padding??0,c=s.height+2*n,l=c/2,f=s.width+2*l+n,p=o.width??0,m=o.positioned&&(o.widthInColumns??1)>1&&p>f?p:f,y=tS(o.directions??[],s,o,m),k=yi(a,m,c,y);return k.attr("style",o.style??null),F(o,k),o.intersect=function(w){return T.polygon(o,y,w)},a}t(sx,"block_arrow");async function ax(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=E(e);e.labelStyle=a;let{shapeSvg:n,bbox:c,label:l}=await V(r,e,oe(e)),f=o?.nodeBorder??o?.lineColor??"currentColor",p=e.padding??12,u=18,m=12,y=Math.max(c.width+p*2,e.width??0,90),k=Math.max(c.height+p*2+u,e.height??0),w=-k/2,{cssStyles:_}=e,O=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let j=b.svg(n).path(Tr(-y/2,w,y,k,m),Jt(e,{}));if(O.node()?.appendChild(j),_)O.attr("style",_)}else O.append("rect").attr("x",-y/2).attr("y",w).attr("width",y).attr("height",k).attr("rx",m).attr("ry",m).attr("style",s);O.append("line").attr("x1",-y/2).attr("y1",w+u).attr("x2",y/2).attr("y2",w+u).attr("style",`stroke:${f};stroke-width:1px`);for(let W=0;W<3;W++)O.append("circle").attr("cx",-y/2+12+W*9).attr("cy",w+u/2).attr("r",2.5).attr("style",`fill:${f};stroke:none`);O.append("rect").attr("class","browser-address-bar").attr("x",-y/2+44).attr("y",w+4).attr("width",Math.max(y-56,10)).attr("height",u-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${f};stroke-width:1px;opacity:0.6`),F(e,O);let q=w+u+(k-u)/2;return l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${q-c.height/2-(c.y-(c.top??0))})`),e.intersect=function(W){return T.rect(e,W)},n}t(ax,"browser");var Pl=12;async function nx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?28:s,c=e.look==="neo"?24:s,{shapeSvg:l,bbox:f}=await V(r,e,oe(e)),p=(e?.width??f.width)+(e.look==="neo"?n*2:n+Pl),u=(e?.height??f.height)+(e.look==="neo"?c*2:c),m=0,y=p,k=-u,w=0,_=[{x:m+Pl,y:k},{x:y,y:k},{x:y,y:w},{x:m,y:w},{x:m,y:k+Pl},{x:m+Pl,y:k}],O,{cssStyles:q}=e;if(e.look==="handDrawn"){let W=b.svg(l),j=Jt(e,{}),Q=we(_),J=W.path(Q,j);if(O=l.insert(()=>J,":first-child").attr("transform",`translate(${-p/2}, ${u/2})`),q)O.attr("style",q)}else O=yi(l,p,u,_);if(a)O.attr("style",a);return F(e,O),e.intersect=function(W){return T.polygon(e,_,W)},l}t(nx,"card");function lx(r,e){let{nodeStyles:o}=E(e);e.label="";let a=r.insert("g").attr("class",oe(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,n=Math.max(28,e.width??0),c=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],l=b.svg(a),f=Jt(e,{});if(e.look!=="handDrawn")f.roughness=0,f.fillStyle="solid";let p=we(c),u=l.path(p,f),m=a.insert(()=>u,":first-child");if(s&&e.look!=="handDrawn")m.selectAll("path").attr("style",s);if(o&&e.look!=="handDrawn")m.selectAll("path").attr("style",o);return e.width=28,e.height=28,e.intersect=function(y){return T.polygon(e,c,y)},a}t(lx,"choice");async function id(r,e,o){let{labelStyles:a,nodeStyles:s}=E(e);e.labelStyle=a;let{shapeSvg:n,bbox:c,halfPadding:l}=await V(r,e,oe(e),{ignoreMinWidth:!0}),f=16,p=o?.padding??l,u=Math.sqrt(c.width**2+c.height**2)/2,m=e.look==="neo"?u+f:u+p,y,{cssStyles:k}=e;if(e.look==="handDrawn"){let w=b.svg(n),_=Jt(e,{}),O=w.circle(0,0,m*2,_);y=n.insert(()=>O,":first-child"),y.attr("class","basic label-container").attr("style",Ie(k))}else y=n.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",m).attr("cx",0).attr("cy",0);return F(e,y),e.calcIntersect=function(w,_){let O=w.width/2;return T.circle(w,O,_)},e.intersect=function(w){return i.info("Circle intersect",e,m,w),T.circle(e,m,w)},n}t(id,"circle");async function hx(r,e){let o=e,a=["node",o.cssClasses,o.class].filter(Boolean).join(" "),{shapeSvg:s,bbox:n,halfPadding:c}=await V(r,o,a),l=s.insert("rect",":first-child"),f=o.padding??0,p=o.positioned?o.width??0:n.width+f,u=o.positioned?o.height??0:n.height+f,m=o.positioned?-p/2:-n.width/2-c,y=o.positioned?-u/2:-n.height/2-c;return l.attr("class","basic cluster composite label-container").attr("style",o.style??null).attr("rx",o.rx??null).attr("ry",o.ry??null).attr("x",m).attr("y",y).attr("width",p).attr("height",u),F(o,l),o.intersect=function(k){return T.rect(o,k)},s}t(hx,"composite");async function cx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=E(e);e.labelStyle=a;let{shapeSvg:n,bbox:c,label:l}=await V(r,e,oe(e)),f=o?.nodeBorder??o?.lineColor??"currentColor",p=e.padding??12,u=20,m=12,y=Math.max(c.width+p*2,e.width??0,90),k=Math.max(c.height+p*2+u,e.height??0),w=-k/2,{cssStyles:_}=e,O=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let j=b.svg(n).path(Tr(-y/2,w,y,k,m),Jt(e,{}));if(O.node()?.appendChild(j),_)O.attr("style",_)}else O.append("rect").attr("x",-y/2).attr("y",w).attr("width",y).attr("height",k).attr("rx",m).attr("ry",m).attr("style",s);O.append("text").attr("x",-y/2+12).attr("y",w+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${f}`).text(">_"),F(e,O);let q=w+u+(k-u)/2;return l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${q-c.height/2-(c.y-(c.top??0))})`),e.intersect=function(W){return T.rect(e,W)},n}t(cx,"consoleWindow");function ux(r){let e=Math.cos(Math.PI/4),o=Math.sin(Math.PI/4),a=r*2,s={x:a/2*e,y:a/2*o},n={x:-(a/2)*e,y:a/2*o},c={x:-(a/2)*e,y:-(a/2)*o},l={x:a/2*e,y:-(a/2)*o};return`M ${n.x},${n.y} L ${l.x},${l.y}
|
|
233
|
+
M ${s.x},${s.y} L ${c.x},${c.y}`}t(ux,"createLine");function fx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o,e.label="";let s=r.insert("g").attr("class",oe(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:c}=e,l=b.svg(s),f=Jt(e,{});if(e.look!=="handDrawn")f.roughness=0,f.fillStyle="solid";let p=l.circle(0,0,n*2,f),u=ux(n),m=l.path(u,f),y=s.insert(()=>p,":first-child");if(y.insert(()=>m),y.attr("class","outer-path"),c&&e.look!=="handDrawn")y.selectAll("path").attr("style",c);if(a&&e.look!=="handDrawn")y.selectAll("path").attr("style",a);return F(e,y),e.intersect=function(k){return i.info("crossedCircle intersect",e,{radius:n,point:k}),T.circle(e,n,k)},s}t(fx,"crossedCircle");function Wi(r,e,o,a=100,s=0,n=180){let c=[],l=s*Math.PI/180,u=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let y=l+m*u,k=r+o*Math.cos(y),w=e+o*Math.sin(y);c.push({x:-k,y:-w})}return c}t(Wi,"generateCirclePoints");async function dx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await V(r,e,oe(e)),l=e.look==="neo"?18:e.padding??0,f=e.look==="neo"?12:e.padding??0,p=n.width+l,u=n.height+f,m=Math.max(5,u*0.1),{cssStyles:y}=e,k=[...Wi(p/2,-u/2,m,30,-90,0),{x:-p/2-m,y:m},...Wi(p/2+m*2,-m,m,20,-180,-270),...Wi(p/2+m*2,m,m,20,-90,-180),{x:-p/2-m,y:-u/2},...Wi(p/2,u/2,m,20,0,90)],w=[{x:p/2,y:-u/2-m},{x:-p/2,y:-u/2-m},...Wi(p/2,-u/2,m,20,-90,0),{x:-p/2-m,y:-m},...Wi(p/2+p*0.1,-m,m,20,-180,-270),...Wi(p/2+p*0.1,m,m,20,-90,-180),{x:-p/2-m,y:u/2},...Wi(p/2,u/2,m,20,0,90),{x:-p/2,y:u/2+m},{x:p/2,y:u/2+m}],_=b.svg(s),O=Jt(e,{fill:"none"});if(e.look!=="handDrawn")O.roughness=0,O.fillStyle="solid";let W=we(k).replace("Z",""),j=_.path(W,O),Q=we(w),J=_.path(Q,{...O}),ut=s.insert("g",":first-child");if(ut.insert(()=>J,":first-child").attr("stroke-opacity",0),ut.insert(()=>j,":first-child"),ut.attr("class","text"),y&&e.look!=="handDrawn")ut.selectAll("path").attr("style",y);if(a&&e.look!=="handDrawn")ut.selectAll("path").attr("style",a);return ut.attr("transform",`translate(${m}, 0)`),c.attr("transform",`translate(${-p/2+m-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),F(e,ut),e.intersect=function(lt){return T.polygon(e,w,lt)},s}t(dx,"curlyBraceLeft");function Hi(r,e,o,a=100,s=0,n=180){let c=[],l=s*Math.PI/180,u=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let y=l+m*u,k=r+o*Math.cos(y),w=e+o*Math.sin(y);c.push({x:k,y:w})}return c}t(Hi,"generateCirclePoints");async function px(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await V(r,e,oe(e)),l=e.look==="neo"?18:e.padding??0,f=e.look==="neo"?12:e.padding??0,p=n.width+(e.look==="neo"?l*2:l),u=n.height+(e.look==="neo"?f*2:f),m=Math.max(5,u*0.1),{cssStyles:y}=e,k=[...Hi(p/2,-u/2,m,20,-90,0),{x:p/2+m,y:-m},...Hi(p/2+m*2,-m,m,20,-180,-270),...Hi(p/2+m*2,m,m,20,-90,-180),{x:p/2+m,y:u/2},...Hi(p/2,u/2,m,20,0,90)],w=[{x:-p/2,y:-u/2-m},{x:p/2,y:-u/2-m},...Hi(p/2,-u/2,m,20,-90,0),{x:p/2+m,y:-m},...Hi(p/2+m*2,-m,m,20,-180,-270),...Hi(p/2+m*2,m,m,20,-90,-180),{x:p/2+m,y:u/2},...Hi(p/2,u/2,m,20,0,90),{x:p/2,y:u/2+m},{x:-p/2,y:u/2+m}],_=b.svg(s),O=Jt(e,{fill:"none"});if(e.look!=="handDrawn")O.roughness=0,O.fillStyle="solid";let W=we(k).replace("Z",""),j=_.path(W,O),Q=we(w),J=_.path(Q,{...O}),ut=s.insert("g",":first-child");if(ut.insert(()=>J,":first-child").attr("stroke-opacity",0),ut.insert(()=>j,":first-child"),ut.attr("class","text"),y&&e.look!=="handDrawn")ut.selectAll("path").attr("style",y);if(a&&e.look!=="handDrawn")ut.selectAll("path").attr("style",a);return ut.attr("transform",`translate(${-m}, 0)`),c.attr("transform",`translate(${-p/2+(e.padding??0)/2-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),F(e,ut),e.intersect=function(lt){return T.polygon(e,w,lt)},s}t(px,"curlyBraceRight");function rr(r,e,o,a=100,s=0,n=180){let c=[],l=s*Math.PI/180,u=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let y=l+m*u,k=r+o*Math.cos(y),w=e+o*Math.sin(y);c.push({x:-k,y:-w})}return c}t(rr,"generateCirclePoints");async function gx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await V(r,e,oe(e)),l=e.look==="neo"?18:e.padding??0,f=e.look==="neo"?12:e.padding??0,p=n.width+(e.look==="neo"?l*2:l),u=n.height+(e.look==="neo"?f*2:f),m=Math.max(5,u*0.1),{cssStyles:y}=e,k=[...rr(p/2,-u/2,m,30,-90,0),{x:-p/2-m,y:m},...rr(p/2+m*2,-m,m,20,-180,-270),...rr(p/2+m*2,m,m,20,-90,-180),{x:-p/2-m,y:-u/2},...rr(p/2,u/2,m,20,0,90)],w=[...rr(-p/2+m+m/2,-u/2,m,20,-90,-180),{x:p/2-m/2,y:m},...rr(-p/2-m/2,-m,m,20,0,90),...rr(-p/2-m/2,m,m,20,-90,0),{x:p/2-m/2,y:-m},...rr(-p/2+m+m/2,u/2,m,30,-180,-270)],_=[{x:p/2,y:-u/2-m},{x:-p/2,y:-u/2-m},...rr(p/2,-u/2,m,20,-90,0),{x:-p/2-m,y:-m},...rr(p/2+m*2,-m,m,20,-180,-270),...rr(p/2+m*2,m,m,20,-90,-180),{x:-p/2-m,y:u/2},...rr(p/2,u/2,m,20,0,90),{x:-p/2,y:u/2+m},{x:p/2-m-m/2,y:u/2+m},...rr(-p/2+m+m/2,-u/2,m,20,-90,-180),{x:p/2-m/2,y:m},...rr(-p/2-m/2,-m,m,20,0,90),...rr(-p/2-m/2,m,m,20,-90,0),{x:p/2-m/2,y:-m},...rr(-p/2+m+m/2,u/2,m,30,-180,-270)],O=b.svg(s),q=Jt(e,{fill:"none"});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let j=we(k).replace("Z",""),Q=O.path(j,q),ut=we(w).replace("Z",""),lt=O.path(ut,q),gt=we(_),wt=O.path(gt,{...q}),At=s.insert("g",":first-child");if(At.insert(()=>wt,":first-child").attr("stroke-opacity",0),At.insert(()=>Q,":first-child"),At.insert(()=>lt,":first-child"),At.attr("class","text"),y&&e.look!=="handDrawn")At.selectAll("path").attr("style",y);if(a&&e.look!=="handDrawn")At.selectAll("path").attr("style",a);return At.attr("transform",`translate(${m-m/4}, 0)`),c.attr("transform",`translate(${-p/2+(e.padding??0)/2-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),F(e,At),e.intersect=function(_t){return T.polygon(e,_,_t)},s}t(gx,"curlyBraces");async function mx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s,l=20,f=5,{shapeSvg:p,bbox:u}=await V(r,e,oe(e)),m=Math.max(f,u.height+c*2,e?.height??0),y=m/2,k=y-Math.sqrt(Math.max(0,y**2-(u.height/2)**2)),w=Math.max(m/4,k),_=Math.max(l,u.width+n*2+w*2,(u.width+n*2)*1.25,e?.width??0),{cssStyles:O}=e,q=b.svg(p),W=Jt(e,{});if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let j=_,Q=m,J=j-y,ut=Q/4,lt=[{x:J,y:0},{x:ut,y:0},{x:0,y:Q/2},{x:ut,y:Q},{x:J,y:Q},...gi(-J,-Q/2,y,50,270,90)],gt=we(lt),wt=q.path(gt,W),At=p.insert(()=>wt,":first-child");if(At.attr("class","basic label-container outer-path"),O&&e.look!=="handDrawn")At.selectChildren("path").attr("style",O);if(a&&e.look!=="handDrawn")At.selectChildren("path").attr("style",a);return At.attr("transform",`translate(${-_/2}, ${-m/2})`),F(e,At),e.intersect=function(_t){return T.polygon(e,lt,_t)},p}t(mx,"curvedTrapezoid");async function yx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await V(r,e,oe(e)),l=e.padding??20,f=Math.max(n.width+l*2,e.width??0,100),p=Math.min(Math.max(f*0.23,16),56),u=p*0.27,m=Math.max(n.height+l*2,e.height?e.height-(2*p-u):0),y=Math.min(f*0.177,m*0.45),k=m+2*p-u,w=-k/2,_=w+2*p-u,O=s.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:q}=e;if(e.look==="handDrawn"){let gt=b.svg(s),wt=Jt(e,{}),At=gt.path(Tr(-f/2,_,f,m,y),wt),_t=gt.circle(0,w+p,p*2,wt);if(O.insert(()=>_t,":first-child"),O.insert(()=>At,":first-child"),q)O.attr("style",q)}else O.append("rect").attr("x",-f/2).attr("y",_).attr("width",f).attr("height",m).attr("rx",y).attr("ry",y).attr("style",a),O.append("circle").attr("cx",0).attr("cy",w+p).attr("r",p).attr("style",a);F(e,O);let W=_+m/2;c.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${W-n.height/2-(n.y-(n.top??0))})`);let j=w+p,Q=Math.asin(Math.min(1,(_-j)/p))*180/Math.PI,J=24,lt=[...gi(0,-j,p,J,180+Q,-Q),...gi(-(-f/2+y),-(_+y),y,12,90,0),...gi(-(-f/2+y),-(k/2-y),y,12,360,270),...gi(-(f/2-y),-(k/2-y),y,12,270,180),...gi(-(f/2-y),-(_+y),y,12,180,90)];return e.intersect=function(gt){return T.polygon(e,lt,gt)},s}t(yx,"person");var eS=t((r,e,o,a,s,n)=>[`M${r},${e+n}`,`a${s},${n} 0,0,0 ${o},0`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`].join(" "),"createCylinderPathD"),rS=t((r,e,o,a,s,n)=>[`M${r},${e+n}`,`M${r+o},${e+n}`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`].join(" "),"createOuterCylinderPathD"),iS=t((r,e,o,a,s,n)=>[`M${r-o/2},${-a/2}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createInnerCylinderPathD"),vy=8,Ly=8;async function xx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?24:s,c=e.look==="neo"?24:s,l=e.width??0;if(e.width){if(e.width=e.width-c,e.width<Ly)e.width=Ly}if(e.height){let W=l/2/(2.5+l/50);if(e.height=e.height-n-W*3,e.height<vy)e.height=vy}let{shapeSvg:f,bbox:p,label:u}=await V(r,e,oe(e)),m=Math.max(e.width??0,p.width)+c,y=m/2,k=y/(2.5+m/50),w=Math.max(e.height??0,p.height)+n+k,_,{cssStyles:O}=e;if(e.look==="handDrawn"){let q=b.svg(f),W=rS(0,0,m,w,y,k),j=iS(0,k,m,w,y,k),Q=Jt(e,{}),J=q.path(W,Q),ut=q.path(j,Jt(e,{fill:"none"}));if(_=f.insert(()=>ut,":first-child"),_=f.insert(()=>J,":first-child"),_.attr("class","basic label-container"),O)_.attr("style",O)}else{let q=eS(0,0,m,w,y,k);_=f.insert("path",":first-child").attr("d",q).attr("class","basic label-container outer-path").attr("style",Ie(O)).attr("style",a)}return _.attr("label-offset-y",k),_.attr("transform",`translate(${-m/2}, ${-(w/2+k)})`),F(e,_),u.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${-(p.height/2)+(e.padding??0)/1.5-(p.y-(p.top??0))})`),e.intersect=function(q){let W=T.rect(e,q),j=W.x-(e.x??0);if(y!=0&&(Math.abs(j)<(e.width??0)/2||Math.abs(j)==(e.width??0)/2&&Math.abs(W.y-(e.y??0))>(e.height??0)/2-k)){let Q=k*k*(1-j*j/(y*y));if(Q>0)Q=Math.sqrt(Q);if(Q=k-Q,q.y-(e.y??0)>0)Q=-Q;W.y+=Q}return W},f}t(xx,"cylinder");async function Ls(r,e,o){let{labelStyles:a,nodeStyles:s}=E(e);e.labelStyle=a;let{shapeSvg:n,bbox:c}=await V(r,e,oe(e)),l=Math.max(c.width+o.labelPaddingX*2,e?.width||0),f=Math.max(c.height+o.labelPaddingY*2,e?.height||0),p=-l/2,u=-f/2,m,{rx:y,ry:k}=e,{cssStyles:w}=e;if(o?.rx&&o.ry)y=o.rx,k=o.ry;if(e.look==="handDrawn"){let _=b.svg(n),O=Jt(e,{}),q=y||k?_.path(Tr(p,u,l,f,y||0),O):_.rectangle(p,u,l,f,O);m=n.insert(()=>q,":first-child"),m.attr("class","basic label-container").attr("style",Ie(w))}else m=n.insert("rect",":first-child"),m.attr("class","basic label-container").attr("style",s).attr("rx",Ie(y)).attr("ry",Ie(k)).attr("x",p).attr("y",u).attr("width",l).attr("height",f);return F(e,m,e.look==="handDrawn"?void 0:{width:l,height:f}),e.calcIntersect=function(_,O){return T.rect(_,O)},e.intersect=function(_){return T.rect(e,_)},n}t(Ls,"drawRect");async function Cx(r,e){let{cssClasses:o,labelPaddingX:a,labelPaddingY:s,padding:n,width:c,height:l}=e,f={rx:0,ry:0,classes:o??"",labelPaddingX:a??(n??0)*2,labelPaddingY:s??n??0},p=await Ls(r,e,f);if(e.look==="handDrawn"){let k=b.svg(p),w=Jt(e,{}),_=p.select(".basic.label-container > path:nth-child(2)"),O=_.node();if(!O)return p;let q=null;if(O instanceof SVGGraphicsElement)q=O.getBBox();else return p;return p.insert(()=>k.line(q.x,q.y,q.x+q.width,q.y,w),".basic.label-container g.label"),p.insert(()=>k.line(q.x,q.y+q.height,q.x+q.width,q.y+q.height,w),".basic.label-container g.label"),_.remove(),p}let u=p.select(".basic.label-container"),m=(Number(u.attr("width"))||c)??0,y=(Number(u.attr("height"))||l)??0;if(m>0&&y>0)u.attr("stroke-dasharray",`${m} ${y}`);return p}t(Cx,"datastore");async function bx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?16:e.padding??0,{shapeSvg:c,bbox:l,label:f}=await V(r,e,oe(e)),p=l.width+s,u=l.height+n,m=u*0.2,y=-p/2,k=-u/2-m/2,{cssStyles:w}=e,_=b.svg(c),O=Jt(e,{});if(e.look!=="handDrawn")O.roughness=0,O.fillStyle="solid";let q=[{x:y,y:k+m},{x:-y,y:k+m},{x:-y,y:-k},{x:y,y:-k},{x:y,y:k},{x:-y,y:k},{x:-y,y:k+m}],W=_.polygon(q.map((Q)=>[Q.x,Q.y]),O),j=c.insert(()=>W,":first-child");if(j.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn")j.selectAll("path").attr("style",w);if(a&&e.look!=="handDrawn")j.selectAll("path").attr("style",a);return f.attr("transform",`translate(${y+(e.padding??0)/2-(l.x-(l.left??0))}, ${k+m+(e.padding??0)/2-(l.y-(l.top??0))})`),F(e,j),e.intersect=function(Q){return T.rect(e,Q)},c}t(bx,"dividedRectangle");async function kx(r,e){let{labelStyles:o,nodeStyles:a}=E(e),s=e.look==="neo"?12:5;e.labelStyle=o;let n=e.padding??0,c=e.look==="neo"?16:n,{shapeSvg:l,bbox:f}=await V(r,e,oe(e),{ignoreMinWidth:!0}),p=Math.sqrt(f.width**2+f.height**2)/2,u=(e?.width?e?.width/2:p)+(c??0),m=u+s,y,{cssStyles:k}=e;if(e.look==="handDrawn"){let w=b.svg(l),_=Jt(e,{roughness:0.2,strokeWidth:2.5}),O=Jt(e,{roughness:0.2,strokeWidth:1.5}),q=w.circle(0,0,m*2,_),W=w.circle(0,0,u*2,O);y=l.insert("g",":first-child"),y.attr("class",Ie(e.cssClasses)).attr("style",Ie(k)),y.node()?.appendChild(q),y.node()?.appendChild(W)}else{y=l.insert("g",":first-child");let w=y.insert("circle",":first-child"),_=y.insert("circle");y.attr("class","basic label-container").attr("style",a),w.attr("class","outer-circle").attr("style",a).attr("r",m).attr("cx",0).attr("cy",0),_.attr("class","inner-circle").attr("style",a).attr("r",u).attr("cx",0).attr("cy",0)}return F(e,y),e.intersect=function(w){return i.info("DoubleCircle intersect",e,m,w),T.circle(e,m,w)},l}t(kx,"doublecircle");async function wx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:c}=await V(r,e,oe(e)),{theme:l,themeVariables:f}=d();Ht(s,e.colorIndex,l,f.borderColorArray);let p=c??10,u=n.width/2+p*2,m=n.height/2+p*2,y,{cssStyles:k}=e;if(e.look==="handDrawn"){let w=b.svg(s),_=Jt(e,{}),O=w.ellipse(0,0,u*2,m*2,_);if(y=s.insert(()=>O,":first-child"),y.attr("class","basic label-container"),k)y.attr("style",k)}else y=s.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",a).attr("rx",u).attr("ry",m).attr("cx",0).attr("cy",0);return e.width=u*2,e.height=m*2,F(e,y),e.calcIntersect=function(w,_){let O=w.width/2,q=w.height/2;return T.ellipse(w,O,q,_)},e.intersect=function(w){return T.ellipse(e,u,m,w)},s}t(wx,"usecaseEllipse");function Sx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=E(e);e.label="",e.labelStyle=a;let n=r.insert("g").attr("class",oe(e)).attr("id",e.domId??e.id),c=7,{cssStyles:l}=e,f=b.svg(n),{nodeBorder:p}=o,u=Jt(e,{fillStyle:"solid"});if(e.look!=="handDrawn")u.roughness=0;let m=f.circle(0,0,c*2,u),y=n.insert(()=>m,":first-child");if(y.selectAll("path").attr("style",`fill: ${p} !important;`),l&&l.length>0&&e.look!=="handDrawn")y.selectAll("path").attr("style",l);if(s&&e.look!=="handDrawn")y.selectAll("path").attr("style",s);return F(e,y),e.intersect=function(k){return i.info("filledCircle intersect",e,{radius:c,point:k}),T.circle(e,c,k)},n}t(Sx,"filledCircle");var Fy=10,Ay=10;async function Tx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?s*2:s;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:c,bbox:l,label:f}=await V(r,e,oe(e)),p=(e?.width?e?.width:l.width)+(n??0),u=e?.height?e?.height:p+l.height,m=u,y=[{x:0,y:-u},{x:m,y:-u},{x:m/2,y:0}],{cssStyles:k}=e,w=b.svg(c),_=Jt(e,{});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let O=we(y),q=w.path(O,_),W=c.insert(()=>q,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");if(k&&e.look!=="handDrawn")W.selectChildren("path").attr("style",k);if(a&&e.look!=="handDrawn")W.selectChildren("path").attr("style",a);return e.width=p,e.height=u,F(e,W),f.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-u/2+(e.padding??0)/2+(l.y-(l.top??0))})`),e.intersect=function(j){return i.info("Triangle intersect",e,y,j),T.polygon(e,y,j)},c}t(Tx,"flippedTriangle");async function _x(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await V(r,e,oe(e)),l=e.padding??12,f=Math.max(n.width+l*2,e.width??0,90),p=n.height+l*2,u=Math.max(Math.min(p*0.16,14),8),m=Math.max(p+u,e.height??0),y=m-u,k=Math.max(f*0.38,28),w=-m/2,_=[{x:-f/2,y:w},{x:-f/2+k,y:w},{x:-f/2+k,y:w+u},{x:f/2,y:w+u},{x:f/2,y:m/2},{x:-f/2,y:m/2}],O=[`M${_[0].x},${_[0].y}`,..._.slice(1).map((Q)=>`L${Q.x},${Q.y}`),"Z"].join(" "),{cssStyles:q}=e,W;if(e.look==="handDrawn"){let J=b.svg(s).path(O,Jt(e,{}));if(W=s.insert(()=>J,":first-child").attr("class","basic label-container"),q)W.attr("style",q)}else W=s.insert("path",":first-child").attr("d",O).attr("class","basic label-container").attr("style",a);if(e.look==="handDrawn")F(e,W);else F(e,W,{width:f,height:m});let j=w+u+y/2;return c.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${j-n.height/2-(n.y-(n.top??0))})`),e.intersect=function(Q){return T.polygon(e,_,Q)},s}t(_x,"folder");function Bx(r,e,{dir:o,config:{state:a,themeVariables:s}}){let{nodeStyles:n}=E(e);e.label="";let c=r.insert("g").attr("class",oe(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,f=Math.max(70,e?.width??0),p=Math.max(10,e?.height??0);if(o==="LR"||o==="RL")f=Math.max(10,e?.width??0),p=Math.max(70,e?.height??0);let u=-1*f/2,m=-1*p/2,y=b.svg(c),k=Jt(e,{stroke:s.lineColor,fill:s.lineColor});if(e.look!=="handDrawn")k.roughness=0,k.fillStyle="solid";let w=y.rectangle(u,m,f,p,k),_=c.insert(()=>w,":first-child");if(l&&e.look!=="handDrawn")_.selectAll("path").attr("style",l);if(n&&e.look!=="handDrawn")_.selectAll("path").attr("style",n);F(e,_);let O=a?.padding??0;if(e.width&&e.height)e.width+=O/2||0,e.height+=O/2||0;return e.intersect=function(q){return T.rect(e,q)},c}t(Bx,"forkJoin");async function vx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=15,n=10,c=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)-c*2,e.width<s)e.width=s}let{shapeSvg:f,bbox:p}=await V(r,e,oe(e)),u=(e?.height?e?.height:Math.max(n,p.height))+l*2,m=u/2,y=m-Math.sqrt(Math.max(0,m**2-(p.height/2)**2)),k=(e?.width?e?.width:Math.max(s,p.width)+y*2)+c*2,{cssStyles:w}=e,_=b.svg(f),O=Jt(e,{});if(e.look!=="handDrawn")O.roughness=0,O.fillStyle="solid";let q=[{x:-k/2,y:-u/2},{x:k/2-m,y:-u/2},...gi(-k/2+m,0,m,50,90,270),{x:k/2-m,y:u/2},{x:-k/2,y:u/2}],W=we(q),j=_.path(W,O),Q=f.insert(()=>j,":first-child");if(Q.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn")Q.selectChildren("path").attr("style",w);if(a&&e.look!=="handDrawn")Q.selectChildren("path").attr("style",a);return F(e,Q),e.intersect=function(J){return i.info("Pill intersect",e,{radius:m,point:J}),T.polygon(e,q,J)},f}t(vx,"halfRoundedRectangle");var oS=t((r,e,o,a,s)=>[`M${r+s},${e}`,`L${r+o-s},${e}`,`L${r+o},${e-a/2}`,`L${r+o-s},${e-a}`,`L${r+s},${e-a}`,`L${r},${e-a/2}`,"Z"].join(" "),"createHexagonPathD");async function Lx(r,e){let{labelStyles:o,nodeStyles:a}=E(e),s=e.look==="neo"?3.5:4;e.labelStyle=o;let n=e.padding??0,c=70,l=32,f=e.look==="neo"?c:n,p=e.look==="neo"?l:n;if(e.width||e.height){let j=(e.height??0)/s;e.width=(e?.width??0)-2*j-p,e.height=(e.height??0)-f}let{shapeSvg:u,bbox:m}=await V(r,e,oe(e)),y=(e?.height?e?.height:m.height)+f,k=y/s,w=(e?.width?e?.width:m.width)+2*k+p,_=[{x:k,y:0},{x:w-k,y:0},{x:w,y:-y/2},{x:w-k,y:-y},{x:k,y:-y},{x:0,y:-y/2}],O,{cssStyles:q}=e;if(e.look==="handDrawn"){let W=b.svg(u),j=Jt(e,{}),Q=oS(0,0,w,y,k),J=W.path(Q,j);if(O=u.insert(()=>J,":first-child").attr("transform",`translate(${-w/2}, ${y/2})`),q)O.attr("style",q)}else O=yi(u,w,y,_);if(a)O.attr("style",a);return e.width=w,e.height=y,F(e,O),e.intersect=function(W){return T.polygon(e,_,W)},u}t(Lx,"hexagon");async function Fx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.label="",e.labelStyle=o;let{shapeSvg:s}=await V(r,e,oe(e)),n=Math.max(30,e?.width??0),c=Math.max(30,e?.height??0),{cssStyles:l}=e,f=b.svg(s),p=Jt(e,{});if(e.look!=="handDrawn")p.roughness=0,p.fillStyle="solid";let u=[{x:0,y:0},{x:n,y:0},{x:0,y:c},{x:n,y:c}],m=we(u),y=f.path(m,p),k=s.insert(()=>y,":first-child");if(k.attr("class","basic label-container outer-path"),l&&e.look!=="handDrawn")k.selectChildren("path").attr("style",l);if(a&&e.look!=="handDrawn")k.selectChildren("path").attr("style",a);return k.attr("transform",`translate(${-n/2}, ${-c/2})`),F(e,k),e.intersect=function(w){return i.info("Pill intersect",e,{points:u}),T.polygon(e,u,w)},s}t(Fx,"hourglass");async function Ax(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=E(e);e.labelStyle=s;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),f=a?.wrappingWidth;e.width=Math.max(l,f??0);let{shapeSvg:p,bbox:u,label:m}=await V(r,e,"icon-shape default"),y=e.pos==="t",k=l,w=l,{nodeBorder:_}=o,{stylesMap:O}=hi(e),q=-w/2,W=-k/2,j=e.label?8:0,Q=b.svg(p),J=Jt(e,{stroke:"none",fill:"none"});if(e.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let ut=Q.rectangle(q,W,w,k,J),lt=Math.max(w,u.width),gt=k+u.height+j,wt=Q.rectangle(-lt/2,-gt/2,lt,gt,{...J,fill:"transparent",stroke:"none"}),At=p.insert(()=>ut,":first-child"),_t=p.insert(()=>wt);if(e.icon){let Tt=p.append("g");Tt.html(`<g>${await Qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let it=Tt.node().getBBox(),{width:ot,height:xt,x:et,y:Bt}=it;Tt.attr("transform",`translate(${-ot/2-et},${y?u.height/2+j/2-xt/2-Bt:-u.height/2-j/2-xt/2-Bt})`),Tt.attr("style",`color: ${O.get("stroke")??_};`)}return m.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${y?-gt/2:gt/2-u.height})`),At.attr("transform",`translate(0,${y?u.height/2+j/2:-u.height/2-j/2})`),F(e,_t),e.intersect=function(Tt){if(i.info("iconSquare intersect",e,Tt),!e.label)return T.rect(e,Tt);let it=e.x??0,ot=e.y??0,xt=e.height??0,et=[];if(y)et=[{x:it-u.width/2,y:ot-xt/2},{x:it+u.width/2,y:ot-xt/2},{x:it+u.width/2,y:ot-xt/2+u.height+j},{x:it+w/2,y:ot-xt/2+u.height+j},{x:it+w/2,y:ot+xt/2},{x:it-w/2,y:ot+xt/2},{x:it-w/2,y:ot-xt/2+u.height+j},{x:it-u.width/2,y:ot-xt/2+u.height+j}];else et=[{x:it-w/2,y:ot-xt/2},{x:it+w/2,y:ot-xt/2},{x:it+w/2,y:ot-xt/2+k},{x:it+u.width/2,y:ot-xt/2+k},{x:it+u.width/2/2,y:ot+xt/2},{x:it-u.width/2,y:ot+xt/2},{x:it-u.width/2,y:ot-xt/2+k},{x:it-w/2,y:ot-xt/2+k}];return T.polygon(e,et,Tt)},p}t(Ax,"icon");async function Mx(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=E(e);e.labelStyle=s;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),f=a?.wrappingWidth;e.width=Math.max(l,f??0);let{shapeSvg:p,bbox:u,label:m}=await V(r,e,"icon-shape default"),y=20,k=e.label?8:0,w=e.pos==="t",{nodeBorder:_,mainBkg:O}=o,{stylesMap:q}=hi(e),W=b.svg(p),j=Jt(e,{});if(e.look!=="handDrawn")j.roughness=0,j.fillStyle="solid";let Q=q.get("fill");j.stroke=Q??O;let J=p.append("g");if(e.icon)J.html(`<g>${await Qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let ut=J.node().getBBox(),{width:lt,height:gt,x:wt,y:At}=ut,_t=Math.max(lt,gt)*Math.SQRT2+y*2,Tt=W.circle(0,0,_t,j),it=Math.max(_t,u.width),ot=_t+u.height+k,xt=W.rectangle(-it/2,-ot/2,it,ot,{...j,fill:"transparent",stroke:"none"}),et=p.insert(()=>Tt,":first-child"),Bt=p.insert(()=>xt);return J.attr("transform",`translate(${-lt/2-wt},${w?u.height/2+k/2-gt/2-At:-u.height/2-k/2-gt/2-At})`),J.attr("style",`color: ${q.get("stroke")??_};`),m.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${w?-ot/2:ot/2-u.height})`),et.attr("transform",`translate(0,${w?u.height/2+k/2:-u.height/2-k/2})`),F(e,Bt),e.intersect=function(Mt){return i.info("iconSquare intersect",e,Mt),T.rect(e,Mt)},p}t(Mx,"iconCircle");async function Ex(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=E(e);e.labelStyle=s;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),f=a?.wrappingWidth;e.width=Math.max(l,f??0);let{shapeSvg:p,bbox:u,halfPadding:m,label:y}=await V(r,e,"icon-shape default"),k=e.pos==="t",w=l+m*2,_=l+m*2,{nodeBorder:O,mainBkg:q}=o,{stylesMap:W}=hi(e),j=-_/2,Q=-w/2,J=e.label?8:0,ut=b.svg(p),lt=Jt(e,{});if(e.look!=="handDrawn")lt.roughness=0,lt.fillStyle="solid";let gt=W.get("fill");lt.stroke=gt??q;let wt=ut.path(Tr(j,Q,_,w,5),lt),At=Math.max(_,u.width),_t=w+u.height+J,Tt=ut.rectangle(-At/2,-_t/2,At,_t,{...lt,fill:"transparent",stroke:"none"}),it=p.insert(()=>wt,":first-child").attr("class","icon-shape2"),ot=p.insert(()=>Tt);if(e.icon){let xt=p.append("g");xt.html(`<g>${await Qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let et=xt.node().getBBox(),{width:Bt,height:Mt,x:Vt,y:Xt}=et;xt.attr("transform",`translate(${-Bt/2-Vt},${k?u.height/2+J/2-Mt/2-Xt:-u.height/2-J/2-Mt/2-Xt})`),xt.attr("style",`color: ${W.get("stroke")??O};`)}return y.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${k?-_t/2:_t/2-u.height})`),it.attr("transform",`translate(0,${k?u.height/2+J/2:-u.height/2-J/2})`),F(e,ot),e.intersect=function(xt){if(i.info("iconSquare intersect",e,xt),!e.label)return T.rect(e,xt);let et=e.x??0,Bt=e.y??0,Mt=e.height??0,Vt=[];if(k)Vt=[{x:et-u.width/2,y:Bt-Mt/2},{x:et+u.width/2,y:Bt-Mt/2},{x:et+u.width/2,y:Bt-Mt/2+u.height+J},{x:et+_/2,y:Bt-Mt/2+u.height+J},{x:et+_/2,y:Bt+Mt/2},{x:et-_/2,y:Bt+Mt/2},{x:et-_/2,y:Bt-Mt/2+u.height+J},{x:et-u.width/2,y:Bt-Mt/2+u.height+J}];else Vt=[{x:et-_/2,y:Bt-Mt/2},{x:et+_/2,y:Bt-Mt/2},{x:et+_/2,y:Bt-Mt/2+w},{x:et+u.width/2,y:Bt-Mt/2+w},{x:et+u.width/2/2,y:Bt+Mt/2},{x:et-u.width/2,y:Bt+Mt/2},{x:et-u.width/2,y:Bt-Mt/2+w},{x:et-_/2,y:Bt-Mt/2+w}];return T.polygon(e,Vt,xt)},p}t(Ex,"iconRounded");async function Ox(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=E(e);e.labelStyle=s;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),f=a?.wrappingWidth;e.width=Math.max(l,f??0);let{shapeSvg:p,bbox:u,halfPadding:m,label:y}=await V(r,e,"icon-shape default"),k=e.pos==="t",w=l+m*2,_=l+m*2,{nodeBorder:O,mainBkg:q}=o,{stylesMap:W}=hi(e),j=-_/2,Q=-w/2,J=e.label?8:0,ut=b.svg(p),lt=Jt(e,{});if(e.look!=="handDrawn")lt.roughness=0,lt.fillStyle="solid";let gt=W.get("fill");lt.stroke=gt??q;let wt=ut.path(Tr(j,Q,_,w,0.1),lt),At=Math.max(_,u.width),_t=w+u.height+J,Tt=ut.rectangle(-At/2,-_t/2,At,_t,{...lt,fill:"transparent",stroke:"none"}),it=p.insert(()=>wt,":first-child"),ot=p.insert(()=>Tt);if(e.icon){let xt=p.append("g");xt.html(`<g>${await Qt(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let et=xt.node().getBBox(),{width:Bt,height:Mt,x:Vt,y:Xt}=et;xt.attr("transform",`translate(${-Bt/2-Vt},${k?u.height/2+J/2-Mt/2-Xt:-u.height/2-J/2-Mt/2-Xt})`),xt.attr("style",`color: ${W.get("stroke")??O};`)}return y.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${k?-_t/2:_t/2-u.height})`),it.attr("transform",`translate(0,${k?u.height/2+J/2:-u.height/2-J/2})`),F(e,ot),e.intersect=function(xt){if(i.info("iconSquare intersect",e,xt),!e.label)return T.rect(e,xt);let et=e.x??0,Bt=e.y??0,Mt=e.height??0,Vt=[];if(k)Vt=[{x:et-u.width/2,y:Bt-Mt/2},{x:et+u.width/2,y:Bt-Mt/2},{x:et+u.width/2,y:Bt-Mt/2+u.height+J},{x:et+_/2,y:Bt-Mt/2+u.height+J},{x:et+_/2,y:Bt+Mt/2},{x:et-_/2,y:Bt+Mt/2},{x:et-_/2,y:Bt-Mt/2+u.height+J},{x:et-u.width/2,y:Bt-Mt/2+u.height+J}];else Vt=[{x:et-_/2,y:Bt-Mt/2},{x:et+_/2,y:Bt-Mt/2},{x:et+_/2,y:Bt-Mt/2+w},{x:et+u.width/2,y:Bt-Mt/2+w},{x:et+u.width/2/2,y:Bt+Mt/2},{x:et-u.width/2,y:Bt+Mt/2},{x:et-u.width/2,y:Bt-Mt/2+w},{x:et-_/2,y:Bt-Mt/2+w}];return T.polygon(e,Vt,xt)},p}t(Ox,"iconSquare");async function Ix(r,e,{config:{flowchart:o}}){let a=new Image;a.src=e?.img??"",await a.decode();let s=Number(a.naturalWidth.toString().replace("px","")),n=Number(a.naturalHeight.toString().replace("px",""));e.imageAspectRatio=s/n;let{labelStyles:c}=E(e);e.labelStyle=c;let l=o?.wrappingWidth;e.defaultWidth=o?.wrappingWidth;let f=Math.max(e.label?l??0:0,e?.assetWidth??s),p=e.constraint==="on"?e?.assetHeight?e.assetHeight*e.imageAspectRatio:f:f,u=e.constraint==="on"?p/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(p,l??0);let{shapeSvg:m,bbox:y,label:k}=await V(r,e,"image-shape default"),w=e.pos==="t",_=-p/2,O=-u/2,q=e.label?8:0,W=b.svg(m),j=Jt(e,{});if(e.look!=="handDrawn")j.roughness=0,j.fillStyle="solid";let Q=W.rectangle(_,O,p,u,j),J=Math.max(p,y.width),ut=u+y.height+q,lt=W.rectangle(-J/2,-ut/2,J,ut,{...j,fill:"none",stroke:"none"}),gt=m.insert(()=>Q,":first-child"),wt=m.insert(()=>lt);if(e.img){let At=m.append("image");At.attr("href",e.img),At.attr("width",p),At.attr("height",u),At.attr("preserveAspectRatio","none"),At.attr("transform",`translate(${-p/2},${w?ut/2-u:-ut/2})`)}return k.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${w?-u/2-y.height/2-q/2:u/2-y.height/2+q/2})`),gt.attr("transform",`translate(0,${w?y.height/2+q/2:-y.height/2-q/2})`),F(e,wt),e.intersect=function(At){if(i.info("iconSquare intersect",e,At),!e.label)return T.rect(e,At);let _t=e.x??0,Tt=e.y??0,it=e.height??0,ot=[];if(w)ot=[{x:_t-y.width/2,y:Tt-it/2},{x:_t+y.width/2,y:Tt-it/2},{x:_t+y.width/2,y:Tt-it/2+y.height+q},{x:_t+p/2,y:Tt-it/2+y.height+q},{x:_t+p/2,y:Tt+it/2},{x:_t-p/2,y:Tt+it/2},{x:_t-p/2,y:Tt-it/2+y.height+q},{x:_t-y.width/2,y:Tt-it/2+y.height+q}];else ot=[{x:_t-p/2,y:Tt-it/2},{x:_t+p/2,y:Tt-it/2},{x:_t+p/2,y:Tt-it/2+u},{x:_t+y.width/2,y:Tt-it/2+u},{x:_t+y.width/2/2,y:Tt+it/2},{x:_t-y.width/2,y:Tt+it/2},{x:_t-y.width/2,y:Tt-it/2+u},{x:_t-p/2,y:Tt-it/2+u}];return T.polygon(e,ot,At)},m}t(Ix,"imageSquare");async function $x(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=s,c=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:f}=await V(r,e,oe(e)),p=Math.max(f.height+n*2,e.height??0),u=Math.max(f.width+c*2,(e.width??0)-p),m=[{x:0,y:0},{x:u,y:0},{x:u+3*p/6,y:-p},{x:-3*p/6,y:-p}],y,{cssStyles:k}=e;if(e.look==="handDrawn"){let w=b.svg(l),_=Jt(e,{}),O=we(m),q=w.path(O,_);if(y=l.insert(()=>q,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),k)y.attr("style",k)}else y=yi(l,u,p,m);if(a)y.attr("style",a);return e.width=u,e.height=p,F(e,y),e.intersect=function(w){return T.polygon(e,m,w)},l}t($x,"inv_trapezoid");async function Dx(r,e){let{shapeSvg:o,bbox:a,label:s}=await V(r,e,"label"),n=o.insert("rect",":first-child"),c=0.1,l=0.1;return n.attr("width",0.1).attr("height",0.1),o.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),F(e,n),e.intersect=function(f){return T.rect(e,f)},o}t(Dx,"labelRect");async function Px(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=s,c=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:f}=await V(r,e,oe(e)),p=Math.max(f.height+n,e.height??0),u=Math.max(f.width+c,(e.width??0)-p),m=[{x:0,y:0},{x:u+3*p/6,y:0},{x:u,y:-p},{x:-(3*p)/6,y:-p}],y,{cssStyles:k}=e;if(e.look==="handDrawn"){let w=b.svg(l),_=Jt(e,{}),O=we(m),q=w.path(O,_);if(y=l.insert(()=>q,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),k)y.attr("style",k)}else y=yi(l,u,p,m);if(a)y.attr("style",a);return e.width=u,e.height=p,F(e,y),e.intersect=function(w){return T.polygon(e,m,w)},l}t(Px,"lean_left");async function Rx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=s,c=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:f}=await V(r,e,oe(e)),p=Math.max(f.height+n,e.height??0),u=Math.max(f.width+c,(e.width??0)-p),m=[{x:-3*p/6,y:0},{x:u,y:0},{x:u+3*p/6,y:-p},{x:0,y:-p}],y,{cssStyles:k}=e;if(e.look==="handDrawn"){let w=b.svg(l),_=Jt(e,{}),O=we(m),q=w.path(O,_);if(y=l.insert(()=>q,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),k)y.attr("style",k)}else y=yi(l,u,p,m);if(a)y.attr("style",a);return e.width=u,e.height=p,F(e,y),e.intersect=function(w){return T.polygon(e,m,w)},l}t(Rx,"lean_right");function qx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.label="",e.labelStyle=o;let s=r.insert("g").attr("class",oe(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,c=Math.max(35,e?.width??0),l=Math.max(35,e?.height??0),f=7,p=[{x:c,y:0},{x:0,y:l+f/2},{x:c-2*f,y:l+f/2},{x:0,y:2*l},{x:c,y:l-f/2},{x:2*f,y:l-f/2}],u=b.svg(s),m=Jt(e,{});if(e.look!=="handDrawn")m.roughness=0,m.fillStyle="solid";let y=we(p),k=u.path(y,m),w=s.insert(()=>k,":first-child");if(w.attr("class","outer-path"),n&&e.look!=="handDrawn")w.selectAll("path").attr("style",n);if(a&&e.look!=="handDrawn")w.selectAll("path").attr("style",a);return w.attr("transform",`translate(-${c/2},${-l})`),F(e,w),e.intersect=function(_){return i.info("lightningBolt intersect",e,_),T.polygon(e,p,_)},s}t(qx,"lightningBolt");var sS=t((r,e,o,a,s,n,c)=>[`M${r},${e+n}`,`a${s},${n} 0,0,0 ${o},0`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`,`M${r},${e+n+c}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createCylinderPathD"),aS=t((r,e,o,a,s,n,c)=>[`M${r},${e+n}`,`M${r+o},${e+n}`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`,`M${r},${e+n+c}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createOuterCylinderPathD"),nS=t((r,e,o,a,s,n)=>[`M${r-o/2},${-a/2}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createInnerCylinderPathD"),My=10,Ey=10;async function Nx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?24:s;if(e.width||e.height){let q=e.width??0;if(e.width=(e.width??0)-n,e.width<Ey)e.width=Ey;let j=q/2/(2.5+q/50);if(e.height=(e.height??0)-c-j*3,e.height<My)e.height=My}let{shapeSvg:l,bbox:f,label:p}=await V(r,e,oe(e)),u=(e?.width?e?.width:f.width)+n*2,m=u/2,y=m/(2.5+u/50),k=(e?.height?e?.height:f.height)+y+c*2,w=k*0.1,_,{cssStyles:O}=e;if(e.look==="handDrawn"){let q=b.svg(l),W=aS(0,0,u,k,m,y,w),j=nS(0,y,u,k,m,y),Q=Jt(e,{}),J=q.path(W,Q),ut=q.path(j,Q);if(l.insert(()=>ut,":first-child").attr("class","line"),_=l.insert(()=>J,":first-child"),_.attr("class","basic label-container"),O)_.attr("style",O)}else{let q=sS(0,0,u,k,m,y,w);_=l.insert("path",":first-child").attr("d",q).attr("class","basic label-container outer-path").attr("style",Ie(O)).attr("style",a)}return _.attr("label-offset-y",y),_.attr("transform",`translate(${-u/2}, ${-(k/2+y)})`),F(e,_),p.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${-(f.height/2)+y-(f.y-(f.top??0))})`),e.intersect=function(q){let W=T.rect(e,q),j=W.x-(e.x??0);if(m!=0&&(Math.abs(j)<(e.width??0)/2||Math.abs(j)==(e.width??0)/2&&Math.abs(W.y-(e.y??0))>(e.height??0)/2-y)){let Q=y*y*(1-j*j/(m*m));if(Q>0)Q=Math.sqrt(Q);if(Q=y-Q,q.y-(e.y??0)>0)Q=-Q;W.y+=Q}return W},l}t(Nx,"linedCylinder");async function Wx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s;if(e.width||e.height){let Q=e.width;if(e.width=(Q??0)*10/11-n*2,e.width<10)e.width=10;if(e.height=(e?.height??0)-c*2,e.height<10)e.height=10}let{shapeSvg:l,bbox:f,label:p}=await V(r,e,oe(e)),u=(e?.width?e?.width:f.width)+(n??0)*2,m=(e?.height?e?.height:f.height)+(c??0)*2,y=e.look==="neo"?m/4:m/8,k=m+y,{cssStyles:w}=e,_=b.svg(l),O=Jt(e,{});if(e.look!=="handDrawn")O.roughness=0,O.fillStyle="solid";let q=[{x:-u/2-u/2*0.1,y:-k/2},{x:-u/2-u/2*0.1,y:k/2},...oo(-u/2-u/2*0.1,k/2,u/2+u/2*0.1,k/2,y,0.8),{x:u/2+u/2*0.1,y:-k/2},{x:-u/2-u/2*0.1,y:-k/2},{x:-u/2,y:-k/2},{x:-u/2,y:k/2*1.1},{x:-u/2,y:-k/2}],W=_.polygon(q.map((Q)=>[Q.x,Q.y]),O),j=l.insert(()=>W,":first-child");if(j.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn")j.selectAll("path").attr("style",w);if(a&&e.look!=="handDrawn")j.selectAll("path").attr("style",a);return j.attr("transform",`translate(0,${-y/2})`),p.attr("transform",`translate(${-u/2+(e.padding??0)+u/2*0.1/2-(f.x-(f.left??0))},${-m/2+(e.padding??0)-y-(f.y-(f.top??0))})`),F(e,j),e.intersect=function(Q){return T.polygon(e,q,Q)},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 o=e*Dy,a=e*Math.sqrt(1-Dy**2),s=Math.cos($y),n=-Math.sin($y),c=o*-n,l=r+o*s,f=a*s,p=a*n;return`M ${c-f} ${l-p} L ${c+f} ${l+p}`},"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,o)=>{let a=(e.x??0)-(e.left??0),s=(e.y??0)-(e.top??0);r.attr("transform",`translate(${-e.width/2-a},${o-e.height/2-s})`)},"positionLabel"),od=t((r,e,o,a,s=!1)=>{if(e.look==="handDrawn"){let l=b.svg(r).path(o,Jt(e,s?{fill:"none"}:{}));return r.insert(()=>l,":first-child").attr("class",a)}let n=r.append("path").attr("class",a).attr("d",o);if(s)n.attr("fill","none");return n},"appendActorPath"),fS=t((r,e,o,a,s,n,c=!1)=>{if(e.look==="handDrawn"){let p=b.svg(r).circle(o,a,s*2,Jt(e,c?{fill:"none"}:{}));return r.insert(()=>p,":first-child").attr("class",n)}let l=r.append("circle").attr("class",n).attr("cx",o).attr("cy",a).attr("r",s);if(c)l.attr("fill","none");return l},"appendActorCircle");var dS=t((r,e,o)=>{if(!e.business)return;r.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",uS[o]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function Ka(r,e,o,a){let{labelStyles:s,nodeStyles:n}=E(e);e.labelStyle=s;let c=o==="icon"||e.stereotype!==void 0?{...e,icon:o==="icon"?void 0:e.icon,stereotype:void 0}:e,{shapeSvg:l,bbox:f,label:p}=await V(r,c,oe(e,`usecase-actor-variant usecase-actor-${o}`)),u=e.accessibleName??e.label;if(u)l.attr("role","img").attr("aria-label",u);p.attr("class","label actor-label usecase-actor-label");let{theme:m,themeVariables:y}=d();Ht(l,e.colorIndex,m,y.borderColorArray);let k,w;if(e.stereotype){let gt=await yo(l,`«${e.stereotype}»`,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});k=gt.label.attr("class","label usecase-stereotype"),w=gt.bbox}let _=l.append("g").attr("class",`usecase-actor-glyph ${cS[o]}`).attr("style",n||null);await a(_,e),dS(_,e,o);let O=e.padding??hS,q=w?.height??0,W=Uf+Oy+f.height+(w?q+Iy:0),j=Math.max(lS,f.width,w?.width??0)+O*2,Q=W+O*2,J=-W/2;_.attr("transform",`translate(0,${J+Uf/2})`);let ut=J+Uf+Oy;if(k&&w)ut+=q/2,Py(k,w,ut),ut+=q/2+Iy;Py(p,f,ut+f.height/2);let lt=l.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-j/2).attr("y",-Q/2).attr("width",j).attr("height",Q).attr("opacity",0).attr("aria-hidden","true");return F(e,lt),e.intersect=(gt)=>T.rect(e,gt),l}t(Ka,"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 Ka(r,e,"normal",(o,a)=>{od(o,a,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 Ka(r,e,"awesome",(o,a)=>{od(o,a,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 Ka(r,e,"hollow",(o,a)=>{fS(o,a,0,-23,9,"usecase-actor-hollow-head",!0),od(o,a,mS,"usecase-actor-hollow-body",!0)})}t(Yx,"usecaseActorHollow");var Ts=52,Ry=42,qy=-2,yS=t(async(r,e)=>{let o=-Ts/2,a=qy-Ts/2;if(e.look==="handDrawn"){let u=b.svg(r).rectangle(o,a,Ts,Ts,Jt(e,{}));r.insert(()=>u,":first-child").attr("class","usecase-actor-icon-frame")}else r.append("rect").attr("class","usecase-actor-icon-frame").attr("x",o).attr("y",a).attr("width",Ts).attr("height",Ts).attr("rx",4).attr("ry",4);let s=e.icon??"",n=await fl(s.includes(":")?s:`fa:${s}`),c=await Qt(s,{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>${c}</g>`),f=l.node()?.getBBox();if(f)l.attr("transform",`translate(${-f.width/2-f.x},${qy-f.height/2-f.y})`)},"drawIconActor");async function Ux(r,e){return Ka(r,e,"icon",yS)}t(Ux,"usecaseActorIcon");var Ny=t((r,e,o)=>{let a=(e.x??0)-(e.left??0),s=(e.y??0)-(e.top??0);r.attr("transform",`translate(${-e.width/2-a},${o-e.height/2-s})`)},"positionLabel");async function jx(r,e){let o=e,{labelStyles:a,nodeStyles:s}=E(e);e.labelStyle=a;let n=o.stereotype?{...e,stereotype:void 0}:e,{shapeSvg:c,bbox:l,halfPadding:f,label:p}=await V(r,n,oe(e,"usecase-business-shape"));p.attr("class","label usecase-label");let{theme:u,themeVariables:m}=d();Ht(c,e.colorIndex,u,m.borderColorArray);let y,k;if(o.stereotype){let it=await yo(c,`«${o.stereotype}»`,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});y=it.label.attr("class","label usecase-stereotype"),k=it.bbox}let w=k?2:0,_=l.height+(k?.height??0)+w,O=Math.max(l.width,k?.width??0),q=f??10,W=O/2+q*2,j=_/2+q*2,Q=Math.min(Math.max(q/5,1),q/2),J=O/2+Q,ut=W-Q,lt=J/W,gt=ut/W,wt=j*Math.sqrt(Math.max(0,1-lt*lt)),At=-j*Math.sqrt(Math.max(0,1-gt*gt));if(y&&k)Ny(y,k,-_/2+k.height/2);Ny(p,l,_/2-l.height/2);let _t;if(e.look==="handDrawn"){let ot=b.svg(c).ellipse(0,0,W*2,j*2,Jt(e,{}));_t=c.insert(()=>ot,":first-child").attr("class","basic label-container usecase-business-ellipse")}else _t=c.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",s).attr("rx",W).attr("ry",j).attr("cx",0).attr("cy",0);c.append("path").attr("class","usecase-business-marker").attr("d",`M ${J} ${wt} L ${ut} ${At}`).attr("fill","none").attr("style",s||null);let Tt=o.accessibleName??o.label;if(Tt)c.attr("role","img").attr("aria-label",Tt);return F(e,_t),e.calcIntersect=(it,ot)=>T.ellipse(it,it.width/2,it.height/2,ot),e.intersect=(it)=>T.ellipse(e,W,j,it),c}t(jx,"usecaseBusiness");var Gf=8,Wy=4,xS=1,Xf=t((r,e,o,a)=>{let s=(e.x??0)-(e.left??0),n=(e.y??0)-(e.top??0);r.attr("transform",`translate(${o-e.width/2-s},${a-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 o=e,{labelStyles:a,nodeStyles:s}=E(e),{stylesMap:n}=hi(e);e.labelStyle=a;let{shapeSvg:c,bbox:l,label:f}=await V(r,e,oe(e,"usecase-json-table"));if(c.attr("role","img"),o.accessibleName)c.attr("aria-label",o.accessibleName);f.attr("class","label usecase-json-title");let p=c.append("g").attr("class","usecase-json-table-grid"),u=[];for(let it of o.jsonRows??[]){let ot=await yo(p,it.key,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0}),xt=await yo(p,it.value,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0});u.push({key:{label:ot.label.attr("class","label usecase-json-key"),bbox:ot.bbox},value:{label:xt.label.attr("class","label usecase-json-value"),bbox:xt.bbox}})}let m=Math.max(0,...u.map(({key:it})=>it.bbox.width))+Gf*2,y=Math.max(0,...u.map(({value:it})=>it.bbox.width))+Gf*2,k=l.width+Gf*2,w=Math.max(k,m+y),_=y+Math.max(0,w-m-y),O=l.height+Wy*2,q=u.map(({key:it,value:ot})=>Math.max(it.bbox.height,ot.bbox.height)+Wy*2),W=O+q.reduce((it,ot)=>it+ot,0),j=CS(n.get("stroke-width")),Q=w+j*2,J=W+j*2,ut=-w/2,lt=-W/2,gt=e.look==="handDrawn"?b.svg(c):void 0,wt=gt?Jt(e,{}):void 0,At=t((it,ot,xt,et,Bt,Mt)=>{if(gt&&wt){let Vt=gt.rectangle(xt,et,Bt,Mt,wt);return it.insert(()=>Vt,":first-child").attr("class",ot)}return it.insert("rect",":first-child").attr("class",ot).attr("x",xt).attr("y",et).attr("width",Bt).attr("height",Mt).attr("style",s)},"insertCell"),_t=At(c,"label-container usecase-json-border",-Q/2,-J/2,Q,J);At(p,"usecase-json-cell usecase-json-title-cell",ut,lt,w,O),p.node()?.append(f.node()),Xf(f,l,0,lt+O/2);let Tt=lt+O;return u.forEach(({key:it,value:ot},xt)=>{let et=q[xt],Bt=p.append("g").attr("class","usecase-json-row").attr("data-row-index",xt).attr("transform",`translate(0,${Tt})`);At(Bt,"usecase-json-cell usecase-json-key-cell",ut,0,m,et),At(Bt,"usecase-json-cell usecase-json-value-cell",ut+m,0,_,et),Bt.node()?.append(it.label.node(),ot.label.node()),Xf(it.label,it.bbox,ut+m/2,et/2),Xf(ot.label,ot.bbox,ut+m+_/2,et/2),Tt+=et}),F(e,_t),e.intersect=(it)=>T.rect(e,it),c}t(Gx,"usecaseJsonTable");async function Xx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s,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)-c*2-2*l,10);let{shapeSvg:f,bbox:p,label:u}=await V(r,e,oe(e)),m=(e?.width?e?.width:p.width)+n*2+2*l,y=(e?.height?e?.height:p.height)+c*2+2*l,k=m-2*l,w=y-2*l,_=-k/2,O=-w/2,{cssStyles:q}=e,W=b.svg(f),j=Jt(e,{}),Q=[{x:_-l,y:O+l},{x:_-l,y:O+w+l},{x:_+k-l,y:O+w+l},{x:_+k-l,y:O+w},{x:_+k,y:O+w},{x:_+k,y:O+w-l},{x:_+k+l,y:O+w-l},{x:_+k+l,y:O-l},{x:_+l,y:O-l},{x:_+l,y:O},{x:_,y:O},{x:_,y:O+l}],J=[{x:_,y:O+l},{x:_+k-l,y:O+l},{x:_+k-l,y:O+w},{x:_+k,y:O+w},{x:_+k,y:O},{x:_,y:O}];if(e.look!=="handDrawn")j.roughness=0,j.fillStyle="solid";let ut=we(Q),lt=W.path(ut,j),gt=we(J),wt=W.path(gt,j);if(e.look!=="handDrawn")lt=Kf(lt),wt=Kf(wt);let At=f.insert("g",":first-child");if(At.insert(()=>lt),At.insert(()=>wt),At.attr("class","basic label-container outer-path"),q&&e.look!=="handDrawn")At.selectAll("path").attr("style",q);if(a&&e.look!=="handDrawn")At.selectAll("path").attr("style",a);return u.attr("transform",`translate(${-(p.width/2)-l-(p.x-(p.left??0))}, ${-(p.height/2)+l-(p.y-(p.top??0))})`),F(e,At),e.intersect=function(_t){return T.polygon(e,Q,_t)},f}t(Xx,"multiRect");async function Vx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await V(r,e,oe(e)),l=e.padding??0,f=e.look==="neo"?16:l,p=e.look==="neo"?12:l,u=!0;if(e.width||e.height)u=!1,e.width=(e?.width??0)-f*2,e.height=(e?.height??0)-p*3;let m=Math.max(n.width,e?.width??0)+f*2,y=Math.max(n.height,e?.height??0)+p*3,k=e.look==="neo"?y/4:y/8,w=y+(u?k/2:-k/2),_=-m/2,O=-w/2,q=10,{cssStyles:W}=e,j=oo(_-q,O+w+q,_+m-q,O+w+q,k,0.8),Q=j?.[j.length-1],J=[{x:_-q,y:O+q},{x:_-q,y:O+w+q},...j,{x:_+m-q,y:Q.y-q},{x:_+m,y:Q.y-q},{x:_+m,y:Q.y-2*q},{x:_+m+q,y:Q.y-2*q},{x:_+m+q,y:O-q},{x:_+q,y:O-q},{x:_+q,y:O},{x:_,y:O},{x:_,y:O+q}],ut=[{x:_,y:O+q},{x:_+m-q,y:O+q},{x:_+m-q,y:Q.y-q},{x:_+m,y:Q.y-q},{x:_+m,y:O},{x:_,y:O}],lt=b.svg(s),gt=Jt(e,{});if(e.look!=="handDrawn")gt.roughness=0,gt.fillStyle="solid";let wt=we(J),At=lt.path(wt,gt),_t=we(ut),Tt=lt.path(_t,gt),it=s.insert(()=>At,":first-child");if(it.insert(()=>Tt),it.attr("class","basic label-container outer-path"),W&&e.look!=="handDrawn")it.selectAll("path").attr("style",W);if(a&&e.look!=="handDrawn")it.selectAll("path").attr("style",a);return it.attr("transform",`translate(0,${-k/2})`),c.attr("transform",`translate(${-(n.width/2)-q-(n.x-(n.left??0))}, ${-(n.height/2)+q-k-(n.y-(n.top??0))})`),F(e,it),e.intersect=function(ot){return T.polygon(e,J,ot)},s}t(Vx,"multiWaveEdgedRectangle");async function Kx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=E(e);if(e.labelStyle=a,!(e.useHtmlLabels||nt(S())))e.centerLabel=!0;let{shapeSvg:c,bbox:l,label:f}=await V(r,e,oe(e)),p=Math.max(l.width+(e.padding??0)*2,e?.width??0),u=Math.max(l.height+(e.padding??0)*2,e?.height??0),m=-p/2,y=-u/2,{cssStyles:k}=e,w=b.svg(c),_=Jt(e,{fill:o.noteBkgColor,stroke:o.noteBorderColor});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let O=w.rectangle(m,y,p,u,_),q=c.insert(()=>O,":first-child");if(q.attr("class","basic label-container outer-path"),f.attr("class","label noteLabel"),k&&e.look!=="handDrawn")q.selectAll("path").attr("style",k);if(s&&e.look!=="handDrawn")q.selectAll("path").attr("style",s);return f.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),F(e,q),e.intersect=function(W){return T.rect(e,W)},c}t(Kx,"note");var bS=t((r,e,o)=>[`M${r+o/2},${e}`,`L${r+o},${e-o/2}`,`L${r+o/2},${e-o}`,`L${r},${e-o/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Zx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n}=await V(r,e,oe(e)),c=n.width+(e.padding??0),l=n.height+(e.padding??0),f=c+l,p=0.5,u=[{x:f/2,y:0},{x:f,y:-f/2},{x:f/2,y:-f},{x:0,y:-f/2}],m,{cssStyles:y}=e;if(e.look==="handDrawn"){let k=b.svg(s),w=Jt(e,{}),_=bS(0,0,f),O=k.path(_,w);if(m=s.insert(()=>O,":first-child").attr("transform",`translate(${-f/2+p}, ${f/2})`),y)m.attr("style",y)}else m=yi(s,f,f,u),m.attr("transform",`translate(${-f/2+p}, ${f/2})`);if(a)m.attr("style",a);return F(e,m),e.calcIntersect=function(k,w){let _=k.width,O=[{x:_/2,y:0},{x:_,y:-_/2},{x:_/2,y:-_},{x:0,y:-_/2}];return T.polygon(k,O,w)},e.intersect=function(k){return this.calcIntersect(e,k)},s}t(Zx,"question");async function Qx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?21:s??0,c=e.look==="neo"?12:s??0,{shapeSvg:l,bbox:f,label:p}=await V(r,e,oe(e)),u=f.width+(e.look==="neo"?n*2:n),m=Math.max(f.height+(e.look==="neo"?c*2:c),e.height??0),y=m/4,w=-Math.max(u,(e.width??0)-y)/2,_=-m/2,O=_/2,q=[{x:w+O,y:_},{x:w,y:0},{x:w+O,y:-_},{x:-w,y:-_},{x:-w,y:_}],{cssStyles:W}=e,j=b.svg(l),Q=Jt(e,{});if(e.look!=="handDrawn")Q.roughness=0,Q.fillStyle="solid";let J=we(q),ut=j.path(J,Q),lt=l.insert(()=>ut,":first-child");if(lt.attr("class","basic label-container outer-path"),W&&e.look!=="handDrawn")lt.selectAll("path").attr("style",W);if(a&&e.look!=="handDrawn")lt.selectAll("path").attr("style",a);return lt.attr("transform",`translate(${-O/2},0)`),p.attr("transform",`translate(${-O/2-f.width/2-(f.x-(f.left??0))}, ${-(f.height/2)-(f.y-(f.top??0))})`),F(e,lt),e.intersect=function(gt){return T.polygon(e,q,gt)},l}t(Qx,"rect_left_inv_arrow");async function Jx(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s;if(!e.cssClasses)s="node default";else s="node "+e.cssClasses;let n=r.insert("g").attr("class",s).attr("id",e.domId||e.id),c=n.insert("g"),l=n.insert("g").attr("class","label").attr("style",a),{description:f,label:p}=e,u=await Nr(l,p,e.labelStyle,!0,!0),m={width:0,height:0};if(nt(d())){let gt=u.children[0],wt=v(u);m=gt.getBoundingClientRect(),wt.attr("width",m.width),wt.attr("height",m.height)}i.info("Text 2",f);let y=f||[],k=u.getBBox(),w=await Nr(l,Array.isArray(y)?y.join("<br/>"):y,e.labelStyle,!0,!0),_=w.children[0],O=v(w);m=_.getBoundingClientRect(),O.attr("width",m.width),O.attr("height",m.height);let q=(e.padding||0)/2;v(w).attr("transform","translate( "+(m.width>k.width?0:(k.width-m.width)/2)+", "+(k.height+q+5)+")"),v(u).attr("transform","translate( "+(m.width<k.width?0:-(k.width-m.width)/2)+", 0)"),m=l.node().getBBox(),l.attr("transform","translate("+-m.width/2+", "+(-m.height/2-q+3)+")");let W=m.width+(e.padding||0),j=m.height+(e.padding||0),Q=-m.width/2-q,J=-m.height/2-q,ut,lt;if(e.look==="handDrawn"){let gt=b.svg(n),wt=Jt(e,{}),At=gt.path(Tr(Q,J,W,j,e.rx||0),wt),_t=gt.line(-m.width/2-q,-m.height/2-q+k.height+q,m.width/2+q,-m.height/2-q+k.height+q,wt);lt=n.insert(()=>(i.debug("Rough node insert CXC",At),_t),":first-child"),ut=n.insert(()=>(i.debug("Rough node insert CXC",At),At),":first-child")}else ut=c.insert("rect",":first-child"),lt=c.insert("line"),ut.attr("class","outer title-state").attr("style",a).attr("x",-m.width/2-q).attr("y",-m.height/2-q).attr("width",m.width+(e.padding||0)).attr("height",m.height+(e.padding||0)),lt.attr("class","divider").attr("x1",-m.width/2-q).attr("x2",m.width/2+q).attr("y1",-m.height/2-q+k.height+q).attr("y2",-m.height/2-q+k.height+q);return F(e,ut),e.intersect=function(gt){return T.rect(e,gt)},n}t(Jx,"rectWithTitle");async function t0(r,e,{config:{themeVariables:o}}){let a=o?.radius??5,s={rx:a,ry:a,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return Ls(r,e,s)}t(t0,"roundedRect");var mo=8;async function e0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?12:e.padding??0,{shapeSvg:c,bbox:l,label:f}=await V(r,e,oe(e)),p=(e?.width??l.width)+s*2+(e.look==="neo"?mo:mo*2),u=(e?.height??l.height)+n*2,m=p-mo,y=u,k=mo-p/2,w=-u/2,{cssStyles:_}=e,O=b.svg(c),q=Jt(e,{});if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let W=[{x:k,y:w},{x:k+m,y:w},{x:k+m,y:w+y},{x:k-mo,y:w+y},{x:k-mo,y:w},{x:k,y:w},{x:k,y:w+y}],j=O.polygon(W.map((J)=>[J.x,J.y]),q),Q=c.insert(()=>j,":first-child");if(Q.attr("class","basic label-container outer-path").attr("style",Ie(_)),a&&e.look!=="handDrawn")Q.selectAll("path").attr("style",a);if(_&&e.look!=="handDrawn")Q.selectAll("path").attr("style",a);return f.attr("transform",`translate(${mo/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),F(e,Q),e.intersect=function(J){return T.rect(e,J)},c}t(e0,"shadedProcess");async function r0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s;if(e.width||e.height)e.width=Math.max((e?.width??0)-n*2,10),e.height=Math.max((e?.height??0)/1.5-c*2,10);let{shapeSvg:l,bbox:f,label:p}=await V(r,e,oe(e)),u=(e?.width?e?.width:f.width)+n*2,m=((e?.height?e?.height:f.height)+c*2)*1.5,y=u,k=m/1.5,w=-y/2,_=-k/2,{cssStyles:O}=e,q=b.svg(l),W=Jt(e,{});if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let j=[{x:w,y:_},{x:w,y:_+k},{x:w+y,y:_+k},{x:w+y,y:_-k/2}],Q=we(j),J=q.path(Q,W),ut=l.insert(()=>J,":first-child");if(ut.attr("class","basic label-container outer-path"),O&&e.look!=="handDrawn")ut.selectChildren("path").attr("style",O);if(a&&e.look!=="handDrawn")ut.selectChildren("path").attr("style",a);return ut.attr("transform",`translate(0, ${k/4})`),p.attr("transform",`translate(${-y/2+(e.padding??0)-(f.x-(f.left??0))}, ${-k/4+(e.padding??0)-(f.y-(f.top??0))})`),F(e,ut),e.intersect=function(lt){return T.polygon(e,j,lt)},l}t(r0,"slopedRect");async function i0(r,e){let o=e.padding??0,a=e.look==="neo"?16:o*2,s=e.look==="neo"?12:o,n={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??a,labelPaddingY:s},c=await Ls(r,e,n);if(e.colorIndex!==void 0){let{theme:l,themeVariables:f}=d();Ht(c,e.colorIndex,l,f.borderColorArray)}return c}t(i0,"squareRect");var Jf=50,kS=t((r,e,o)=>{let a=r.height+o,s=a*Math.cos(Math.PI/(2*(Jf-1))),n=Math.sqrt(Math.max(0,s**2-r.height**2));return{w:Math.max(r.width+a/4+e,1.5*a+(a-s),r.width+e+a-n),h:a}},"stadiumDimensions");async function o0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?40:s,c=e.look==="neo"?24:s,{shapeSvg:l,bbox:f}=await V(r,e,oe(e)),{w:p,h:u}=kS(f,n,c),m=u/2,{cssStyles:y}=e,k=b.svg(l),w=Jt(e,{});if(e.look!=="handDrawn")w.roughness=0,w.fillStyle="solid";let _=[{x:-p/2+m,y:-u/2},{x:p/2-m,y:-u/2},...gi(-p/2+m,0,m,Jf,90,270),{x:p/2-m,y:u/2},...gi(p/2-m,0,m,Jf,270,450)],O=we(_),q=k.path(O,w),W=l.insert(()=>q,":first-child");if(W.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn")W.selectChildren("path").attr("style",y);if(a&&e.look!=="handDrawn")W.selectChildren("path").attr("style",a);return F(e,W),e.intersect=function(j){return T.polygon(e,_,j)},l}t(o0,"stadium");async function s0(r,e){let o={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5,classes:"flowchart-node"};return Ls(r,e,o)}t(s0,"state");function a0(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=E(e);e.labelStyle=a;let{cssStyles:n}=e,{lineColor:c,stateBorder:l,nodeBorder:f,nodeShadow:p}=o;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 u=r.insert("g").attr("class","node default").attr("id",e.domId??e.id),m=b.svg(u),y=Jt(e,{});if(e.look!=="handDrawn")y.roughness=0,y.fillStyle="solid";let k=m.circle(0,0,e.width,{...y,stroke:c,strokeWidth:2}),w=l??f,_=(e.width??0)*5/14,O=m.circle(0,0,_,{...y,fill:w,stroke:w,strokeWidth:2,fillStyle:"solid"}),q=u.insert(()=>k,":first-child");if(q.insert(()=>O),e.look!=="handDrawn")q.attr("class","outer-path");if(n)q.selectAll("path").attr("style",n);if(s)q.selectAll("path").attr("style",s);if(e.width<25&&p&&e.look!=="handDrawn"){let W=r.node()?.ownerSVGElement?.id??"",j=W?`${W}-drop-shadow-small`:"drop-shadow-small";q.attr("style",`filter:url(#${j})`)}return F(e,q),e.intersect=function(W){return T.circle(e,(e.width??0)/2,W)},u}t(a0,"stateEnd");function n0(r,e,{config:{themeVariables:o}}){let{lineColor:a,nodeShadow:s}=o;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),c;if(e.look==="handDrawn"){let f=b.svg(n).circle(0,0,e.width,Gg(a));c=n.insert(()=>f),c.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else c=n.insert("circle",":first-child"),c.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&s&&e.look!=="handDrawn"){let l=r.node()?.ownerSVGElement?.id??"",f=l?`${l}-drop-shadow-small`:"drop-shadow-small";c.attr("style",`filter:url(#${f})`)}return F(e,c),e.intersect=function(l){return T.circle(e,(e.width??7)/2,l)},n}t(n0,"stateStart");var _s=8;async function l0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e?.padding??8,n=e.look==="neo"?28:s,c=e.look==="neo"?12:s,{shapeSvg:l,bbox:f}=await V(r,e,oe(e)),p=Math.max(f.width+2*_s+n,e.width??0),u=Math.max(f.height+c,e.height??0),m=p-2*_s,y=u,k=-p/2,w=-u/2,_=[{x:0,y:0},{x:m,y:0},{x:m,y:-y},{x:0,y:-y},{x:0,y:0},{x:-8,y:0},{x:m+8,y:0},{x:m+8,y:-y},{x:-8,y:-y},{x:-8,y:0}];if(e.look==="handDrawn"){let O=b.svg(l),q=Jt(e,{}),W=O.rectangle(k,w,m+16,y,q),j=O.line(k+_s,w,k+_s,w+y,q),Q=O.line(k+_s+m,w,k+_s+m,w+y,q);l.insert(()=>j,":first-child"),l.insert(()=>Q,":first-child");let J=l.insert(()=>W,":first-child"),{cssStyles:ut}=e;J.attr("class","basic label-container").attr("style",Ie(ut)),F(e,J)}else{let O=yi(l,m,y,_);if(a)O.attr("style",a);F(e,O)}return e.intersect=function(O){return T.polygon(e,_,O)},l}t(l0,"subroutine");var Vf=0.2;async function h0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s;if(e.width||e.height)e.height=Math.max((e?.height??0)-c*2,10),e.width=Math.max((e?.width??0)-n*2-Vf*(e.height+c*2),10);let{shapeSvg:l,bbox:f}=await V(r,e,oe(e)),p=(e?.height?e?.height:f.height)+c*2,u=Vf*p,m=Vf*p,k=(e?.width?e?.width:f.width)+n*2+u-u,w=p,_=-k/2,O=-w/2,{cssStyles:q}=e,W=b.svg(l),j=Jt(e,{}),Q=[{x:_-u/2,y:O},{x:_+k+u/2,y:O},{x:_+k+u/2,y:O+w},{x:_-u/2,y:O+w}],J=[{x:_+k-u/2,y:O+w},{x:_+k+u/2,y:O+w},{x:_+k+u/2,y:O+w-m}];if(e.look!=="handDrawn")j.roughness=0,j.fillStyle="solid";let ut=we(Q),lt=W.path(ut,j),gt=we(J),wt=W.path(gt,{...j,fillStyle:"solid"}),At=l.insert(()=>wt,":first-child");if(At.insert(()=>lt,":first-child"),At.attr("class","basic label-container outer-path"),q&&e.look!=="handDrawn")At.selectAll("path").attr("style",q);if(a&&e.look!=="handDrawn")At.selectAll("path").attr("style",a);return F(e,At),e.intersect=function(_t){return T.polygon(e,Q,_t)},l}t(h0,"taggedRect");async function c0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await V(r,e,oe(e)),l=Math.max(n.width+(e.padding??0)*2,e?.width??0),f=Math.max(n.height+(e.padding??0)*2,e?.height??0),p=f/8,u=0.2*l,m=0.2*f,y=f+p,{cssStyles:k}=e,w=b.svg(s),_=Jt(e,{});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let O=[{x:-l/2-l/2*0.1,y:y/2},...oo(-l/2-l/2*0.1,y/2,l/2+l/2*0.1,y/2,p,0.8),{x:l/2+l/2*0.1,y:-y/2},{x:-l/2-l/2*0.1,y:-y/2}],q=-l/2+l/2*0.1,W=-y/2-m*0.4,j=[{x:q+l-u,y:(W+f)*1.3},{x:q+l,y:W+f-m},{x:q+l,y:(W+f)*0.9},...oo(q+l,(W+f)*1.25,q+l-u,(W+f)*1.3,-f*0.02,0.5)],Q=we(O),J=w.path(Q,_),ut=we(j),lt=w.path(ut,{..._,fillStyle:"solid"}),gt=s.insert(()=>lt,":first-child");if(gt.insert(()=>J,":first-child"),gt.attr("class","basic label-container outer-path"),k&&e.look!=="handDrawn")gt.selectAll("path").attr("style",k);if(a&&e.look!=="handDrawn")gt.selectAll("path").attr("style",a);return gt.attr("transform",`translate(0,${-p/2})`),c.attr("transform",`translate(${-l/2+(e.padding??0)-(n.x-(n.left??0))},${-f/2+(e.padding??0)-p/2-(n.y-(n.top??0))})`),F(e,gt),e.intersect=function(wt){return T.polygon(e,O,wt)},s}t(c0,"taggedWaveEdgedRectangle");async function u0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n}=await V(r,e,oe(e)),c=Math.max(n.width+(e.padding??0),e?.width||0),l=Math.max(n.height+(e.padding??0),e?.height||0),f=-c/2,p=-l/2,u=s.insert("rect",":first-child");return u.attr("class","text").attr("style",a).attr("rx",0).attr("ry",0).attr("x",f).attr("y",p).attr("width",c).attr("height",l),F(e,u),e.intersect=function(m){return T.rect(e,m)},s}t(u0,"text");var wS=t((r,e,o,a,s,n)=>`M${r},${e}
|
|
234
|
+
a${s},${n} 0,0,1 0,${-a}
|
|
235
|
+
l${o},0
|
|
236
|
+
a${s},${n} 0,0,1 0,${a}
|
|
237
|
+
M${o},${-a}
|
|
238
|
+
a${s},${n} 0,0,0 0,${a}
|
|
239
|
+
l${-o},0`,"createCylinderPathD"),SS=t((r,e,o,a,s,n)=>[`M${r},${e}`,`M${r+o},${e}`,`a${s},${n} 0,0,0 0,${-a}`,`l${-o},0`,`a${s},${n} 0,0,0 0,${a}`,`l${o},0`].join(" "),"createOuterCylinderPathD"),TS=t((r,e,o,a,s,n)=>[`M${r+o/2},${-a/2}`,`a${s},${n} 0,0,0 0,${a}`].join(" "),"createInnerCylinderPathD"),zy=5,Hy=10;async function f0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?12:s/2,c=e.height??0;if(e.height){if(e.height=e.height-n,e.height<zy)e.height=zy}if(e.width){let q=c/2/(2.5+c/50);if(e.width=e.width-n-q*3,e.width<Hy)e.width=Hy}let{shapeSvg:l,bbox:f,label:p}=await V(r,e,oe(e)),u=Math.max(e.height??0,f.height)+n,m=u/2,y=m/(2.5+u/50),k=Math.max(e.width??0,f.width)+y+n,{cssStyles:w}=e,_;if(e.look==="handDrawn"){let O=b.svg(l),q=SS(0,0,k,u,y,m),W=TS(0,0,k,u,y,m),j=O.path(q,Jt(e,{})),Q=O.path(W,Jt(e,{fill:"none"}));if(_=l.insert(()=>Q,":first-child"),_=l.insert(()=>j,":first-child"),_.attr("class","basic label-container"),w)_.attr("style",w)}else{let O=wS(0,0,k,u,y,m);if(_=l.insert("path",":first-child").attr("d",O).attr("class","basic label-container").attr("style",Ie(w)).attr("style",a),_.attr("class","basic label-container outer-path"),w)_.selectAll("path").attr("style",w);if(a)_.selectAll("path").attr("style",a)}return _.attr("label-offset-x",y),_.attr("transform",`translate(${-k/2}, ${u/2} )`),p.attr("transform",`translate(${-(f.width/2)-y-(f.x-(f.left??0))}, ${-(f.height/2)-(f.y-(f.top??0))})`),F(e,_),e.intersect=function(O){let q=T.rect(e,O),W=q.y-(e.y??0);if(m!=0&&(Math.abs(W)<(e.height??0)/2||Math.abs(W)==(e.height??0)/2&&Math.abs(q.x-(e.x??0))>(e.width??0)/2-y)){let j=y*y*(1-W*W/(m*m));if(j!=0)j=Math.sqrt(Math.abs(j));if(j=y-j,O.x-(e.x??0)>0)j=-j;q.x+=j}return q},l}t(f0,"tiltedCylinder");async function d0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?s:s,c=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:f}=await V(r,e,oe(e)),p=Math.max(f.height+n,e.height??0),u=Math.max(f.width+c,(e.width??0)-p),m=[{x:-3*p/6,y:0},{x:u+3*p/6,y:0},{x:u,y:-p},{x:0,y:-p}],y,{cssStyles:k}=e;if(e.look==="handDrawn"){let w=b.svg(l),_=Jt(e,{}),O=we(m),q=w.path(O,_);if(y=l.insert(()=>q,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),k)y.attr("style",k)}else y=yi(l,u,p,m);if(a)y.attr("style",a);return e.width=u,e.height=p,F(e,y),e.intersect=function(w){return T.polygon(e,m,w)},l}t(d0,"trapezoid");async function p0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s,l=15,f=5;if(e.width||e.height){if(e.height=(e.height??0)-c*2,e.height<f)e.height=f;if(e.width=(e.width??0)-n*2,e.width<l)e.width=l}let{shapeSvg:p,bbox:u}=await V(r,e,oe(e)),m=(e?.width?e?.width:u.width)+n*2,y=(e?.height?e?.height:u.height)+c*2,{cssStyles:k}=e,w=b.svg(p),_=Jt(e,{});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let O=[{x:-m/2*0.8,y:-y/2},{x:m/2*0.8,y:-y/2},{x:m/2,y:-y/2*0.6},{x:m/2,y:y/2},{x:-m/2,y:y/2},{x:-m/2,y:-y/2*0.6}],q=we(O),W=w.path(q,_),j=p.insert(()=>W,":first-child");if(j.attr("class","basic label-container outer-path"),k&&e.look!=="handDrawn")j.selectChildren("path").attr("style",k);if(a&&e.look!=="handDrawn")j.selectChildren("path").attr("style",a);return F(e,j),e.intersect=function(Q){return T.polygon(e,O,Q)},p}t(p0,"trapezoidalPentagon");var Yy=10,Uy=10;async function g0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?s*2:s;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:c,bbox:l,label:f}=await V(r,e,oe(e)),p=mn(d().flowchart?.htmlLabels),u=(e?.width?e?.width:l.width)+n,m=e?.height?e?.height:u+l.height,y=m,k=[{x:0,y:0},{x:y,y:0},{x:y/2,y:-m}],{cssStyles:w}=e,_=b.svg(c),O=Jt(e,{});if(e.look!=="handDrawn")O.roughness=0,O.fillStyle="solid";let q=we(k),W=_.path(q,O),j=c.insert(()=>W,":first-child").attr("transform",`translate(${-m/2}, ${m/2})`).attr("class","outer-path");if(w&&e.look!=="handDrawn")j.selectChildren("path").attr("style",w);if(a&&e.look!=="handDrawn")j.selectChildren("path").attr("style",a);return e.width=u,e.height=m,F(e,j),f.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${m/2-(l.height+(e.padding??0)/(p?2:1)-(l.y-(l.top??0)))})`),e.intersect=function(Q){return i.info("Triangle intersect",e,k,Q),T.polygon(e,k,Q)},c}t(g0,"triangle");async function m0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s,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)-c*2,e.height<10)e.height=10}let{shapeSvg:f,bbox:p,label:u}=await V(r,e,oe(e)),m=(e?.width?e?.width:p.width)+(n??0)*2,y=(e?.height?e?.height:p.height)+(c??0)*2,k=e.look==="neo"?y/4:y/8,w=y+(l?k:-k),{cssStyles:_}=e,q=14-m,W=q>0?q/2:0,j=b.svg(f),Q=Jt(e,{});if(e.look!=="handDrawn")Q.roughness=0,Q.fillStyle="solid";let J=[{x:-m/2-W,y:w/2},...oo(-m/2-W,w/2,m/2+W,w/2,k,0.8),{x:m/2+W,y:-w/2},{x:-m/2-W,y:-w/2}],ut=we(J),lt=j.path(ut,Q),gt=f.insert(()=>lt,":first-child");if(gt.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")gt.selectAll("path").attr("style",_);if(a&&e.look!=="handDrawn")gt.selectAll("path").attr("style",a);return gt.attr("transform",`translate(0,${-k/2})`),u.attr("transform",`translate(${-m/2+(e.padding??0)-(p.x-(p.left??0))},${-y/2+(e.padding??0)-k-(p.y-(p.top??0))})`),F(e,gt),e.intersect=function(wt){return T.polygon(e,J,wt)},f}t(m0,"waveEdgedRectangle");async function y0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?20:s;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 Q=Math.min(e.height*0.2,e.height/4);e.height=Math.ceil(e.height-c-Q*2.2222222222222223),e.width=e.width-n*2}let{shapeSvg:l,bbox:f}=await V(r,e,oe(e)),p=(e?.width?e?.width:f.width)+n*2,u=(e?.height?e?.height:f.height)+c,m=u/8,y=u+m*2,{cssStyles:k}=e,w=b.svg(l),_=Jt(e,{});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let O=[{x:-p/2,y:y/2},...oo(-p/2,y/2,p/2,y/2,m,1),{x:p/2,y:-y/2},...oo(p/2,-y/2,-p/2,-y/2,m,-1)],q=we(O),W=w.path(q,_),j=l.insert(()=>W,":first-child");if(j.attr("class","basic label-container"),k&&e.look!=="handDrawn")j.selectAll("path").attr("style",k);if(a&&e.look!=="handDrawn")j.selectAll("path").attr("style",a);return F(e,j),e.intersect=function(Q){return T.polygon(e,O,Q)},l}t(y0,"waveRectangle");var ze=10;async function x0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=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)-s*2-ze,10),e.height=Math.max((e?.height??0)-n*2-ze,10);let{shapeSvg:c,bbox:l,label:f}=await V(r,e,oe(e)),p=(e?.width?e?.width:l.width)+s*2+ze,u=(e?.height?e?.height:l.height)+n*2+ze,m=p-ze,y=u-ze,k=-m/2,w=-y/2,{cssStyles:_}=e,O=b.svg(c),q=Jt(e,{}),W=[{x:k-ze,y:w-ze},{x:k-ze,y:w+y},{x:k+m,y:w+y},{x:k+m,y:w-ze}],j=`M${k-ze},${w-ze} L${k+m},${w-ze} L${k+m},${w+y} L${k-ze},${w+y} L${k-ze},${w-ze}
|
|
240
|
+
M${k-ze},${w} L${k+m},${w}
|
|
241
|
+
M${k},${w-ze} L${k},${w+y}`;if(e.look!=="handDrawn")q.roughness=0,q.fillStyle="solid";let Q=O.path(j,q),J=c.insert(()=>Q,":first-child");if(J.attr("transform",`translate(${ze/2}, ${ze/2})`),J.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")J.selectAll("path").attr("style",_);if(a&&e.look!=="handDrawn")J.selectAll("path").attr("style",a);return f.attr("transform",`translate(${-(l.width/2)+ze/2-(l.x-(l.left??0))}, ${-(l.height/2)+ze/2-(l.y-(l.top??0))})`),F(e,J),e.intersect=function(ut){return T.polygon(e,W,ut)},c}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 o=e;if(o.alias)e.label=o.alias;let{theme:a,themeVariables:s}=S(),{rowEven:n,rowOdd:c,nodeBorder:l,borderColorArray:f}=s;if(e.look==="handDrawn"){let{themeVariables:Gt}=S(),{background:ae}=Gt,ue={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ae}`]};await sd(r,ue)}let p=S();e.useHtmlLabels=p.htmlLabels;let u=p.er?.diagramPadding??10,m=p.er?.entityPadding??6,{cssStyles:y}=e,{labelStyles:k,nodeStyles:w}=E(e);if(o.attributes.length===0&&e.label){let Gt={rx:0,ry:0,labelPaddingX:u,labelPaddingY:u*1.5,classes:""};if(Ft(e.label,p)+Gt.labelPaddingX*2<p.er.minEntityWidth)e.width=p.er.minEntityWidth;let ae=await Ls(r,e,Gt);if(a!=null&&jy.has(a)){let ue=o.colorIndex??0;ae.attr("data-color-id",`color-${ue%f.length}`)}if(!mn(p.htmlLabels)){let ue=ae.select("text"),fe=ue.node()?.getBBox();ue.attr("transform",`translate(${-fe.width/2}, 0)`)}return ae}if(!p.htmlLabels)u*=1.25,m*=1.25;let _=oe(e);if(!_)_="node default";let O=r.insert("g").attr("class",_).attr("id",e.domId||e.id),q=await Bs(O,e.label??"",p,0,0,["name"],k);q.height+=m;let W=0,j=[],Q=[],J=0,ut=0,lt=0,gt=0,wt=!0,At=!0;for(let Gt of o.attributes){let ae=await Bs(O,Gt.type,p,0,W,["attribute-type"],k);J=Math.max(J,ae.width+u);let ue=await Bs(O,Gt.name,p,0,W,["attribute-name"],k);ut=Math.max(ut,ue.width+u);let fe=await Bs(O,Gt.keys.join(),p,0,W,["attribute-keys"],k);lt=Math.max(lt,fe.width+u);let Ae=await Bs(O,Gt.comment,p,0,W,["attribute-comment"],k);gt=Math.max(gt,Ae.width+u);let Fe=Math.max(ae.height,ue.height,fe.height,Ae.height)+m;Q.push({yOffset:W,rowHeight:Fe}),W+=Fe}let _t=4;if(lt<=u)wt=!1,lt=0,_t--;if(gt<=u)At=!1,gt=0,_t--;let Tt=O.node().getBBox();if(q.width+u*2-(J+ut+lt+gt)>0){let Gt=q.width+u*2-(J+ut+lt+gt);if(J+=Gt/_t,ut+=Gt/_t,lt>0)lt+=Gt/_t;if(gt>0)gt+=Gt/_t}let it=J+ut+lt+gt,ot=b.svg(O),xt=Jt(e,{});if(e.look!=="handDrawn")xt.roughness=0,xt.fillStyle="solid";let et=0;if(Q.length>0)et=Q.reduce((Gt,ae)=>Gt+(ae?.rowHeight??0),0);let Bt=Math.max(Tt.width+u*2,e?.width||0,it),Mt=Math.max((et??0)+q.height,e?.height||0),Vt=-Bt/2,Xt=-Mt/2;if(O.selectAll("g:not(:first-child)").each((Gt,ae,ue)=>{let fe=v(ue[ae]),Ae=fe.attr("transform"),Fe=0,Ir=0;if(Ae){let Fr=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Ae);if(Fr){if(Fe=parseFloat(Fr[1]),Ir=parseFloat(Fr[2]),fe.attr("class").includes("attribute-name"))Fe+=J;else if(fe.attr("class").includes("attribute-keys"))Fe+=J+ut;else if(fe.attr("class").includes("attribute-comment"))Fe+=J+ut+lt}}fe.attr("transform",`translate(${Vt+u/2+Fe}, ${Ir+Xt+q.height+m/2})`)}),O.select(".name").attr("transform","translate("+-q.width/2+", "+(Xt+m/2)+")"),a!=null&&jy.has(a)){let Gt=o.colorIndex??0;O.attr("data-color-id",`color-${Gt%f.length}`)}let ce=ot.rectangle(Vt,Xt,Bt,Mt,xt),le=O.insert(()=>ce,":first-child").attr("class","outer-path").attr("style",y.join(""));j.push(0);for(let[Gt,ae]of Q.entries()){let fe=(Gt+1)%2===0&&ae.yOffset!==0,Ae=ot.rectangle(Vt,q.height+Xt+ae?.yOffset,Bt,ae?.rowHeight,{...xt,fill:fe?n:c,stroke:l});O.insert(()=>Ae,"g.label").attr("style",y.join("")).attr("class",`row-rect-${fe?"even":"odd"}`)}let ye=0.0001,Ce=vs(Vt,q.height+Xt,Bt+Vt,q.height+Xt,ye),pe=ot.polygon(Ce.map((Gt)=>[Gt.x,Gt.y]),xt);if(O.insert(()=>pe).attr("class","divider"),Ce=vs(J+Vt,q.height+Xt,J+Vt,Mt+Xt,ye),pe=ot.polygon(Ce.map((Gt)=>[Gt.x,Gt.y]),xt),O.insert(()=>pe).attr("class","divider"),wt){let Gt=J+ut+Vt;Ce=vs(Gt,q.height+Xt,Gt,Mt+Xt,ye),pe=ot.polygon(Ce.map((ae)=>[ae.x,ae.y]),xt),O.insert(()=>pe).attr("class","divider")}if(At){let Gt=J+ut+lt+Vt;Ce=vs(Gt,q.height+Xt,Gt,Mt+Xt,ye),pe=ot.polygon(Ce.map((ae)=>[ae.x,ae.y]),xt),O.insert(()=>pe).attr("class","divider")}for(let Gt of j){let ae=q.height+Xt+Gt;Ce=vs(Vt,ae,Bt+Vt,ae,ye),pe=ot.polygon(Ce.map((ue)=>[ue.x,ue.y]),xt),O.insert(()=>pe).attr("class","divider")}if(F(e,le),w&&e.look!=="handDrawn")if(a!=null&&_S.has(a))O.selectAll("path").attr("style",w);else{let ae=w.split(";")?.filter((ue)=>ue.includes("stroke"))?.map((ue)=>`${ue}`).join("; ");O.selectAll("path").attr("style",ae??""),O.selectAll(".row-rect-even path").attr("style",w)}return e.intersect=function(Gt){return T.rect(e,Gt)},O}t(sd,"erBox");async function Bs(r,e,o,a=0,s=0,n=[],c=""){let l=r.insert("g").attr("class",`label ${n.join(" ")}`).attr("transform",`translate(${a}, ${s})`).attr("style",c);if(e!==cr(e))e=cr(e),e=e.replaceAll("<","<").replaceAll(">",">");let f=l.node().appendChild(await ct(l,e,{width:Ft(e,o)+100,style:c,useHtmlLabels:o.htmlLabels},o));if(e.includes("<")||e.includes(">")){let u=f.children[0];u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">");while(u.childNodes[0])u=u.childNodes[0],u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">")}let p=f.getBBox();if(mn(o.htmlLabels)){let u=f.children[0];u.style.textAlign="start";let m=v(f);p=u.getBoundingClientRect(),m.attr("width",p.width),m.attr("height",p.height)}return p}t(Bs,"addText");function vs(r,e,o,a,s){if(r===o)return[{x:r-s/2,y:e},{x:r+s/2,y:e},{x:o+s/2,y:a},{x:o-s/2,y:a}];return[{x:r,y:e-s/2},{x:r,y:e+s/2},{x:o,y:a+s/2},{x:o,y:a-s/2}]}t(vs,"lineToPolygon");async function C0(r,e,o,a,s=o.class.padding??12){let n=!a?3:0,c=r.insert("g").attr("class",oe(e)).attr("id",e.domId||e.id),l=null,f=null,p=null,u=null,m=0,y=0,k=0;if(l=c.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let W=e.annotations[0];await Va(l,{text:`«${W}»`},0),m=l.node().getBBox().height}f=c.insert("g").attr("class","label-group text"),await Va(f,e,0,["font-weight: bolder"]);let w=f.node().getBBox();y=w.height,p=c.insert("g").attr("class","members-group text");let _=0;for(let W of e.members){let j=await Va(p,W,_,[W.parseClassifier()]);_+=j+n}if(k=p.node().getBBox().height,k<=0)k=s/2;u=c.insert("g").attr("class","methods-group text");let O=0;for(let W of e.methods){let j=await Va(u,W,O,[W.parseClassifier()]);O+=j+n}let q=c.node().getBBox();if(l!==null){let W=l.node().getBBox();l.attr("transform",`translate(${-W.width/2})`)}return f.attr("transform",`translate(${-w.width/2}, ${m})`),q=c.node().getBBox(),p.attr("transform",`translate(0, ${m+y+s*2})`),q=c.node().getBBox(),u.attr("transform",`translate(0, ${m+y+(k?k+s*4:s*2)})`),q=c.node().getBBox(),{shapeSvg:c,bbox:q}}t(C0,"textHelper");async function Va(r,e,o,a=[]){let s=r.insert("g").attr("class","label").attr("style",a.join("; ")),n=S(),c="useHtmlLabels"in e?e.useHtmlLabels:mn(n.htmlLabels)??!0,l="";if("text"in e)l=e.text;else l=e.label;if(!c&&l.startsWith("\\"))l=l.substring(1);if(qe(l))c=!0;let f=await ct(s,Mn(qn(l)),{width:Ft(l,n)+50,classes:"markdown-node-label",useHtmlLabels:c},n),p,u=1;if(!c){if(a.includes("font-weight: bolder"))v(f).selectAll("tspan").attr("font-weight","");u=f.children.length;let m=f.children[0];if(f.textContent===""||f.textContent.includes(">")){if(m.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" ")m.textContent=m.textContent[0]+" "+m.textContent.substring(1)}if(m.textContent==="undefined")m.textContent="";p=f.getBBox()}else{let m=f.children[0],y=v(f);if(u=m.innerHTML.split("<br>").length,m.innerHTML.includes("</math>"))u+=m.innerHTML.split("<mrow>").length-1;await td(m),p=m.getBoundingClientRect(),y.attr("width",p.width),y.attr("height",p.height)}return s.attr("transform","translate(0,"+(-p.height/(2*u)+o)+")"),p.height}t(Va,"addText");async function b0(r,e){let o=d(),{theme:a,themeVariables:s}=o,{useGradient:n,borderColorArray:c}=s,l=o.class.padding??12,f=l,p=e.useHtmlLabels??mn(o.htmlLabels)??!0,u=e;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];let{shapeSvg:m,bbox:y}=await C0(r,e,o,p,f);Ht(m,e.colorIndex,a,c);let{labelStyles:k,nodeStyles:w}=E(e);e.labelStyle=k,e.cssStyles=u.styles||"";let _=u.styles?.join(";")||w||"";if(!e.cssStyles)e.cssStyles=_.replaceAll("!important","").split(";");let O=u.members.length===0&&u.methods.length===0&&!o.class?.hideEmptyMembersBox,q=b.svg(m),W=Jt(e,{});if(e.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let j=Math.max(e.width??0,y.width),Q=Math.max(e.height??0,y.height),J=(e.height??0)>y.height;if(u.members.length===0&&u.methods.length===0)Q+=f;else if(u.members.length>0&&u.methods.length===0)Q+=f*2;let ut=-j/2,lt=-Q/2,gt=O?l*2:u.members.length===0&&u.methods.length===0?-l:0;if(J)gt=l*2;let wt=q.rectangle(ut-l,lt-l-(O?l:u.members.length===0&&u.methods.length===0?-l/2:0),j+2*l,Q+2*l+gt,W),At=m.insert(()=>wt,":first-child");At.attr("class","basic label-container outer-path");let _t=At.node().getBBox(),Tt=m.select(".annotation-group").node().getBBox().height-(O?l/2:0)||0,it=m.select(".label-group").node().getBBox().height-(O?l/2:0)||0,ot=m.select(".members-group").node().getBBox().height-(O?l/2:0)||0,xt=(Tt+it+lt+l-(lt-l-(O?l:u.members.length===0&&u.methods.length===0?-l/2:0)))/2;if(m.selectAll(".text").each((et,Bt,Mt)=>{let Vt=v(Mt[Bt]),Xt=Vt.attr("transform"),ce=0;if(Xt){let pe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Xt);if(pe)ce=parseFloat(pe[2])}let le=ce+lt+l-(O?l:u.members.length===0&&u.methods.length===0?-l/2:0);if(Vt.attr("class").includes("methods-group")){let Ce=Math.max(ot,f/2);if(J)le=Math.max(xt,Tt+it+Ce+lt+f*2+l)+f*2;else le=Tt+it+Ce+lt+f*4+l}if(u.members.length===0&&u.methods.length===0&&o.class?.hideEmptyMembersBox)if(u.annotations.length>0)le=ce-f;else le=ce;if(!p)le-=4;let ye=ut;if(Vt.attr("class").includes("label-group")||Vt.attr("class").includes("annotation-group"))ye=-Vt.node()?.getBBox().width/2||0,m.selectAll("text").each(function(Ce,pe,Gt){if(window.getComputedStyle(Gt[pe]).textAnchor==="middle")ye=0});Vt.attr("transform",`translate(${ye}, ${le})`)}),u.members.length>0||u.methods.length>0||O){let et=Tt+it+lt+l,Bt=q.line(_t.x,et,_t.x+_t.width,et+0.001,W);m.insert(()=>Bt).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",_)}if(O||u.members.length>0||u.methods.length>0){let et=Tt+it+ot+lt+f*2+l,Bt=q.line(_t.x,J?Math.max(xt,et):et,_t.x+_t.width,(J?Math.max(xt,et):et)+0.001,W);m.insert(()=>Bt).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",_)}if(u.look!=="handDrawn")m.selectAll("path").attr("style",_);if(At.select(":nth-child(2)").attr("style",_),m.selectAll(".divider").select("path").attr("style",_),e.labelStyle)m.selectAll("span").attr("style",e.labelStyle);else m.selectAll("span").attr("style",_);if(!p){let et=RegExp(/color\s*:\s*([^;]*)/),Bt=et.exec(_);if(Bt){let Mt=Bt[0].replace("color","fill");m.selectAll("tspan").attr("style",Mt)}else if(k){let Mt=et.exec(k);if(Mt){let Vt=Mt[0].replace("color","fill");m.selectAll("tspan").attr("style",Vt)}}}return F(e,At),e.intersect=function(et){return T.rect(e,et)},m}t(b0,"classBox");async function k0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let s=e,n=e,c=20,l=20,f="verifyMethod"in e,p=oe(e),u=d(),{themeVariables:m}=u,{borderColorArray:y,requirementEdgeLabelBackground:k}=m,w=u.layout==="elk"?"start":"center",_=r.insert("g").attr("class",p).attr("id",e.domId??e.id),O;if(f)O=await di(_,`<<${s.type}>>`,0,e.labelStyle);else O=await di(_,"<<Element>>",0,e.labelStyle);let q=O,W=await di(_,s.name,q,e.labelStyle+"; font-weight: bold;");if(q+=W+l,f){let _t=await di(_,`${s.requirementId?`ID: ${s.requirementId}`:""}`,q,e.labelStyle,w);q+=_t;let Tt=await di(_,`${s.text?`Text: ${s.text}`:""}`,q,e.labelStyle,w);q+=Tt;let it=await di(_,`${s.risk?`Risk: ${s.risk}`:""}`,q,e.labelStyle,w);q+=it,await di(_,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,q,e.labelStyle,w)}else{let _t=await di(_,`${n.type?`Type: ${n.type}`:""}`,q,e.labelStyle,w);q+=_t,await di(_,`${n.docRef?`Doc Ref: ${n.docRef}`:""}`,q,e.labelStyle,w)}let j=(_.node()?.getBBox().width??200)+c,Q=(_.node()?.getBBox().height??200)+c,J=-j/2,ut=-Q/2,lt=b.svg(_),gt=Jt(e,{});if(e.look!=="handDrawn")gt.roughness=0,gt.fillStyle="solid";let wt=lt.rectangle(J,ut,j,Q,gt),At=_.insert(()=>wt,":first-child");if(At.attr("class","basic label-container outer-path").attr("style",a),y?.length){let _t=e.colorIndex??0;_.attr("data-color-id",`color-${_t%y.length}`)}if(_.selectAll(".label").each((_t,Tt,it)=>{let ot=v(it[Tt]),xt=ot.attr("transform"),et=0,Bt=0;if(xt){let ce=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(xt);if(ce)et=parseFloat(ce[1]),Bt=parseFloat(ce[2])}let Mt=Bt-Q/2,Vt=J+c/2;if(Tt===0||Tt===1)Vt=et;ot.attr("transform",`translate(${Vt}, ${Mt+c})`)}),q>O+W+l){let _t=ut+O+W+l,Tt;if(e.look==="neo"){let xt=[[J,_t],[J+j,_t],[J+j,_t+0.001],[J,_t+0.001]];Tt=lt.polygon(xt,gt)}else Tt=lt.line(J,_t,J+j,_t,gt);_.insert(()=>Tt).attr("class","divider")}if(F(e,At),e.intersect=function(_t){return T.rect(e,_t)},a&&e.look!=="handDrawn"&&(k||y?.length))_.selectAll("path").attr("style",a);return _}t(k0,"requirementBox");async function di(r,e,o,a="",s="center"){if(e==="")return 0;let n=r.insert("g").attr("class","label").attr("style",a),c=d(),l=c.htmlLabels??!0,f=await ct(n,Mn(qn(e)),{width:Ft(e,c)+50,classes:"markdown-node-label",useHtmlLabels:l,style:a},c),p;if(!l){let u=f.children[0];for(let m of u.children)if(a)m.setAttribute("style",a);if(s==="start"){u.setAttribute("text-anchor","start");for(let m of u.children)m.setAttribute("text-anchor","start")}p=f.getBBox(),p.height+=6}else{let u=f.children[0],m=v(f);if(s==="start")v(u).style("text-align","left");p=u.getBoundingClientRect(),m.attr("width",p.width),m.attr("height",p.height)}return n.attr("transform",`translate(${-p.width/2},${-p.height/2+o})`),p.height}t(di,"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:o}){let{labelStyles:a,nodeStyles:s}=E(e);e.labelStyle=a||"";let n=10,c=e.width;e.width=(e.width??200)-10;let{shapeSvg:l,bbox:f,label:p}=await V(r,e,oe(e)),u=e.padding||10,m="",y;if("ticket"in e&&e.ticket&&o?.kanban?.ticketBaseUrl)m=o?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),y=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",m).attr("target","_blank");let k={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1},w,_;if(y)({label:w,bbox:_}=await yo(y,"ticket"in e&&e.ticket||"",k));else({label:w,bbox:_}=await yo(l,"ticket"in e&&e.ticket||"",k));let{label:O,bbox:q}=await yo(l,"assigned"in e&&e.assigned||"",k);e.width=c;let W=10,j=e?.width||0,Q=Math.max(_.height,q.height)/2,J=Math.max(f.height+W*2,e?.height||0)+Q,ut=-j/2,lt=-J/2;p.attr("transform","translate("+(u-j/2)+", "+(-Q-f.height/2)+")"),w.attr("transform","translate("+(u-j/2)+", "+(-Q+f.height/2)+")"),O.attr("transform","translate("+(u+j/2-q.width-2*n)+", "+(-Q+f.height/2)+")");let gt,{rx:wt,ry:At}=e,{cssStyles:_t}=e;if(e.look==="handDrawn"){let Tt=b.svg(l),it=Jt(e,{}),ot=wt||At?Tt.path(Tr(ut,lt,j,J,wt||0),it):Tt.rectangle(ut,lt,j,J,it);gt=l.insert(()=>ot,":first-child"),gt.attr("class","basic label-container").attr("style",_t?_t:null)}else{gt=l.insert("rect",":first-child"),gt.attr("class","basic label-container __APA__").attr("style",s).attr("rx",wt??5).attr("ry",At??5).attr("x",ut).attr("y",lt).attr("width",j).attr("height",J);let Tt="priority"in e&&e.priority;if(Tt){let it=l.append("line"),ot=ut+2,xt=lt+Math.floor((wt??0)/2),et=lt+J-Math.floor((wt??0)/2);it.attr("x1",ot).attr("y1",xt).attr("x2",ot).attr("y2",et).attr("stroke-width","4").attr("stroke",BS(Tt))}}return F(e,gt),e.height=J,e.intersect=function(Tt){return T.rect(e,Tt)},l}t(w0,"kanbanItem");async function S0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:c,label:l}=await V(r,e,oe(e)),f=n.width+10*c,p=n.height+8*c,u=0.15*f,{cssStyles:m}=e,y=n.width+20,k=n.height+20,w=Math.max(f,y),_=Math.max(p,k);l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`);let O,q=`M0 0
|
|
242
|
+
a${u},${u} 1 0,0 ${w*0.25},${-1*_*0.1}
|
|
243
|
+
a${u},${u} 1 0,0 ${w*0.25},0
|
|
244
|
+
a${u},${u} 1 0,0 ${w*0.25},0
|
|
245
|
+
a${u},${u} 1 0,0 ${w*0.25},${_*0.1}
|
|
246
|
+
|
|
247
|
+
a${u},${u} 1 0,0 ${w*0.15},${_*0.33}
|
|
248
|
+
a${u*0.8},${u*0.8} 1 0,0 0,${_*0.34}
|
|
249
|
+
a${u},${u} 1 0,0 ${-1*w*0.15},${_*0.33}
|
|
250
|
+
|
|
251
|
+
a${u},${u} 1 0,0 ${-1*w*0.25},${_*0.15}
|
|
252
|
+
a${u},${u} 1 0,0 ${-1*w*0.25},0
|
|
253
|
+
a${u},${u} 1 0,0 ${-1*w*0.25},0
|
|
254
|
+
a${u},${u} 1 0,0 ${-1*w*0.25},${-1*_*0.15}
|
|
255
|
+
|
|
256
|
+
a${u},${u} 1 0,0 ${-1*w*0.1},${-1*_*0.33}
|
|
257
|
+
a${u*0.8},${u*0.8} 1 0,0 0,${-1*_*0.34}
|
|
258
|
+
a${u},${u} 1 0,0 ${w*0.1},${-1*_*0.33}
|
|
259
|
+
H0 V0 Z`;if(e.look==="handDrawn"){let W=b.svg(s),j=Jt(e,{}),Q=W.path(q,j);O=s.insert(()=>Q,":first-child"),O.attr("class","basic label-container").attr("style",Ie(m))}else O=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",q);return O.attr("transform",`translate(${-w/2}, ${-_/2})`),F(e,O),e.calcIntersect=function(W,j){return T.rect(W,j)},e.intersect=function(W){return i.info("Bang intersect",e,W),T.rect(e,W)},s}t(S0,"bang");async function T0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:c,label:l}=await V(r,e,oe(e)),f=n.width+2*c,p=n.height+2*c,u=0.15*f,m=0.25*f,y=0.35*f,k=0.2*f,{cssStyles:w}=e,_,O=`M0 0
|
|
260
|
+
a${u},${u} 0 0,1 ${f*0.25},${-1*f*0.1}
|
|
261
|
+
a${y},${y} 1 0,1 ${f*0.4},${-1*f*0.1}
|
|
262
|
+
a${m},${m} 1 0,1 ${f*0.35},${f*0.2}
|
|
263
|
+
|
|
264
|
+
a${u},${u} 1 0,1 ${f*0.15},${p*0.35}
|
|
265
|
+
a${k},${k} 1 0,1 ${-1*f*0.15},${p*0.65}
|
|
266
|
+
|
|
267
|
+
a${m},${u} 1 0,1 ${-1*f*0.25},${f*0.15}
|
|
268
|
+
a${y},${y} 1 0,1 ${-1*f*0.5},0
|
|
269
|
+
a${u},${u} 1 0,1 ${-1*f*0.25},${-1*f*0.15}
|
|
270
|
+
|
|
271
|
+
a${u},${u} 1 0,1 ${-1*f*0.1},${-1*p*0.35}
|
|
272
|
+
a${k},${k} 1 0,1 ${f*0.1},${-1*p*0.65}
|
|
273
|
+
H0 V0 Z`;if(e.look==="handDrawn"){let q=b.svg(s),W=Jt(e,{}),j=q.path(O,W);_=s.insert(()=>j,":first-child"),_.attr("class","basic label-container").attr("style",Ie(w))}else _=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",O);return l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),_.attr("transform",`translate(${-f/2}, ${-p/2})`),F(e,_),e.calcIntersect=function(q,W){return T.rect(q,W)},e.intersect=function(q){return i.info("Cloud intersect",e,q),T.rect(e,q)},s}t(T0,"cloud");async function _0(r,e){let{labelStyles:o,nodeStyles:a}=E(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:c,label:l}=await V(r,e,oe(e)),f=n.width+8*c,p=n.height+2*c,u=5,m=e.look==="neo"?`
|
|
274
|
+
M${-f/2} ${p/2-u}
|
|
275
|
+
v${-p+2*u}
|
|
276
|
+
q0,-${u} ${u},-${u}
|
|
277
|
+
h${f-2*u}
|
|
278
|
+
q${u},0 ${u},${u}
|
|
279
|
+
v${p-u}
|
|
280
|
+
H${-f/2}
|
|
281
|
+
Z
|
|
282
|
+
`:`
|
|
283
|
+
M${-f/2} ${p/2-u}
|
|
284
|
+
v${-p+2*u}
|
|
285
|
+
q0,-${u} ${u},-${u}
|
|
286
|
+
h${f-2*u}
|
|
287
|
+
q${u},0 ${u},${u}
|
|
288
|
+
v${p-2*u}
|
|
289
|
+
q0,${u} ${-u},${u}
|
|
290
|
+
h${-(f-2*u)}
|
|
291
|
+
q${-u},0 ${-u},${-u}
|
|
292
|
+
Z
|
|
293
|
+
`;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);let y=s.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",a).attr("d",m);return s.append("line").attr("class","node-line-").attr("x1",-f/2).attr("y1",p/2).attr("x2",f/2).attr("y2",p/2),l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),s.append(()=>l.node()),F(e,y),e.calcIntersect=function(k,w){return T.rect(k,w)},e.intersect=function(k){return T.rect(e,k)},s}t(_0,"defaultMindmapNode");async function B0(r,e){let o={padding:e.padding??0};return id(r,e,o)}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((o)=>[o.shortName,..."aliases"in o?o.aliases:[],..."internalAliases"in o?o.internalAliases:[]].map((s)=>[s,o.handler]))];return Object.fromEntries(e)},"generateShapeMap"),zi=LS();function ui(r){return r in zi}t(ui,"isValidShape");var Tn=t(({flowchart:r})=>{let e=r?.subGraphTitleMargin?.top??0,o=r?.subGraphTitleMargin?.bottom??0,a=e+o;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:o,subGraphTitleTotalMargin:a}},"getSubGraphTitleMargins"),Rl=new Map;async function En(r,e,o){let a,s;if(e.shape==="rect")if(e.rx&&e.ry)e.shape="roundedRect";else e.shape="squareRect";let n=e.shape?zi[e.shape]:void 0;if(!n)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let c;if(o.config.securityLevel==="sandbox")c="_top";else if(e.linkTarget)c=e.linkTarget||"_blank";a=r.insert("svg:a").attr("xlink:href",e.link).attr("target",c??null),s=await n(a,e,o)}else s=await n(r,e,o),a=s;if(a.attr("data-look",Ie(e.look)),e.tooltip)s.attr("title",e.tooltip);if(Rl.set(e.id,a),e.haveCallback)a.attr("class",a.attr("class")+" clickable");return a}t(En,"insertNode");var Nc=t((r,e)=>{Rl.set(e.id,r)},"setNodeElem"),Mc=t(()=>{Rl.clear()},"clear"),gn=t((r)=>{let e=Rl.get(r.id);i.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");let o=8,a=r.diff||0;if(r.clusterNode)e.attr("transform","translate("+(r.x+a-r.width/2)+", "+(r.y-r.height/2-o)+")");else e.attr("transform","translate("+r.x+", "+r.y+")");return a},"positionNode");var FS=t(async(r,e)=>{let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{clusterBkg:c,clusterBorder:l,borderColorArray:f}=s,p=l,{labelStyles:u,nodeStyles:m,borderStyles:y,backgroundStyles:k}=E(e),w=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);Ht(w,e.colorIndex,a,f);let _=mn(o.flowchart.htmlLabels),O=e.direction==="LR",q=w.insert("g").attr("class","cluster-label swimlane-label"),W=await ct(q,e.label,{style:e.labelStyle,useHtmlLabels:_,isNode:!0,width:e.width}),j=W.getBBox();if(_){let xt=W.children[0],et=v(W);j=xt.getBoundingClientRect(),et.attr("width",j.width),et.attr("height",j.height)}let Q=e.padding??0,J=e.width<=j.width+Q?j.width+Q:e.width;if(e.width<=j.width+Q)e.diff=(J-e.width)/2-Q;else e.diff=-Q;let ut=e.height,lt=e.y-ut/2,gt=e.y+ut/2,wt=e.x-J/2,At=e.swimlaneContentTop!==void 0?e.swimlaneContentTop:lt+ut/3,_t=O?4:0,Tt=j.height+2*_t,it,ot;if(O){let xt=Math.max(Tt,j.height+2*_t),et=wt+xt,Bt=Math.max(0,J-xt);if(e.look==="handDrawn"){let Xt=b.svg(w),ce=Jt(e,{roughness:0.7,fill:c,stroke:p,seed:n}),le=Jt(e,{roughness:0.7,fill:"none",stroke:p,seed:n}),ye=Xt.rectangle(wt,lt,xt,ut,ce);it=w.insert(()=>ye,":first-child").attr("class","swimlane-title");let Ce=Xt.rectangle(et,lt,Bt,ut,le);ot=w.insert(()=>Ce,":first-child").attr("class","swimlane-body"),it.select("path:nth-child(2)").attr("style",y.join(";")),it.select("path").attr("style",k.join(";").replace("fill","stroke"))}else it=w.insert("rect",":first-child"),ot=w.insert("rect",":first-child"),it.attr("class","swimlane-title").attr("style",m).attr("x",wt).attr("y",lt).attr("width",xt).attr("height",ut).attr("fill",c).attr("stroke",p),ot.attr("class","swimlane-body").attr("style",m).attr("x",et).attr("y",lt).attr("width",Bt).attr("height",ut).attr("fill","none").attr("stroke",p);let Mt=wt+xt/2,Vt=e.y;q.attr("transform",`translate(${Mt}, ${Vt}) rotate(-90) translate(${-j.width/2}, ${-j.height/2})`)}else{let xt=Math.max(0,At-lt),et=Math.min(Tt,xt),Bt=lt+et,Mt=Math.max(0,gt-Bt),Vt=e.x-J/2;if(e.look==="handDrawn"){let le=b.svg(w),ye=Jt(e,{roughness:0.7,fill:c,stroke:p,fillWeight:3,seed:n}),Ce=Jt(e,{roughness:0.7,fill:"none",stroke:p,seed:n}),pe=le.rectangle(Vt,lt,J,et,ye);it=w.insert(()=>pe,":first-child").attr("class","swimlane-title");let Gt=le.rectangle(Vt,Bt,J,Mt,Ce);ot=w.insert(()=>Gt,":first-child").attr("class","swimlane-body"),it.select("path:nth-child(2)").attr("style",y.join(";")),it.select("path").attr("style",k.join(";").replace("fill","stroke"))}else it=w.insert("rect",":first-child"),ot=w.insert("rect",":first-child"),it.attr("class","swimlane-title").attr("style",m).attr("x",Vt).attr("y",lt).attr("width",J).attr("height",et).attr("fill",c).attr("stroke",p),ot.attr("class","swimlane-body").attr("style",m).attr("x",Vt).attr("y",Bt).attr("width",J).attr("height",Mt).attr("fill","none").attr("stroke",p);let Xt=e.x-j.width/2,ce=lt+(et-j.height)/2;q.attr("transform",`translate(${Xt}, ${ce})`)}if(i.trace("Swimlane data ",e,JSON.stringify(e)),u){let xt=q.select("span");if(xt)xt.attr("style",u)}return e.offsetX=0,e.width=J,e.height=ut,e.offsetY=j.height-Q/2,e.intersect=function(xt){return mi(e,xt)},{cluster:w,labelBBox:j}},"swimlane"),v0=t(async(r,e)=>{i.info("Creating subgraph rect for ",e.id,e);let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{clusterBkg:c,clusterBorder:l,borderColorArray:f}=s,{labelStyles:p,nodeStyles:u,borderStyles:m,backgroundStyles:y}=E(e),k=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look);Ht(k,e.colorIndex,a,f);let w=nt(o),_=k.insert("g").attr("class","cluster-label "),O;if(e.labelType==="markdown")O=await ct(_,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width});else O=await Nr(_,e.label,e.labelStyle||"",!1,!0);let q=O.getBBox();if(nt(o)){let wt=O.children[0],At=v(O);q=wt.getBoundingClientRect(),At.attr("width",q.width),At.attr("height",q.height)}let W=e.width<=q.width+e.padding?q.width+e.padding:e.width;if(e.width<=q.width+e.padding)e.diff=(W-e.width)/2-e.padding;else e.diff=-e.padding;let j=e.height,Q=e.x-W/2,J=e.y-j/2;i.trace("Data ",e,JSON.stringify(e));let ut;if(e.look==="handDrawn"){let wt=b.svg(k),At=Jt(e,{roughness:0.7,fill:c,stroke:l,fillWeight:3,seed:n}),_t=wt.path(Tr(Q,J,W,j,0),At);ut=k.insert(()=>(i.debug("Rough node insert CXC",_t),_t),":first-child"),ut.select("path:nth-child(2)").attr("style",m.join(";")),ut.select("path").attr("style",y.join(";").replace("fill","stroke"))}else ut=k.insert("rect",":first-child"),ut.attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",Q).attr("y",J).attr("width",W).attr("height",j);let{subGraphTitleTopMargin:lt}=Tn(o);if(_.attr("transform",`translate(${e.x-q.width/2}, ${e.y-e.height/2+lt})`),p){let wt=_.select("span");if(wt)wt.attr("style",p)}let gt=ut.node().getBBox();return e.offsetX=0,e.width=gt.width,e.height=gt.height,e.offsetY=q.height-e.padding/2,e.intersect=function(wt){return mi(e,wt)},{cluster:k,labelBBox:q}},"rect"),AS=t((r,e)=>{let o=r.insert("g").attr("class","note-cluster").attr("id",e.domId),a=o.insert("rect",":first-child"),s=0*e.padding,n=s/2;a.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+s).attr("height",e.height+s).attr("fill","none");let c=a.node().getBBox();return e.width=c.width,e.height=c.height,e.intersect=function(l){return mi(e,l)},{cluster:o,labelBBox:{width:0,height:0}}},"noteGroup"),MS=t(async(r,e)=>{let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{altBackground:c,borderColorArray:l,compositeBackground:f,compositeTitleBackground:p,nodeBorder:u}=s,m=r.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look);Ht(m,e.colorIndex,a,l);let y=m.insert("g",":first-child"),k=m.insert("g").attr("class","cluster-label"),w=m.append("rect"),_=await Nr(k,e.label,e.labelStyle,void 0,!0),O=_.getBBox();if(nt(o)){let _t=_.children[0],Tt=v(_);O=_t.getBoundingClientRect(),Tt.attr("width",O.width),Tt.attr("height",O.height)}let q=0*e.padding,W=q/2,j=(e.width<=O.width+e.padding?O.width+e.padding:e.width)+q;if(e.width<=O.width+e.padding)e.diff=(j-e.width)/2-e.padding;else e.diff=-e.padding;let Q=e.height+q,J=e.height+q-O.height-6,ut=e.x-j/2,lt=e.y-Q/2;e.width=j;let gt=e.y-e.height/2-W+O.height+2,wt;if(e.look==="handDrawn"){let _t=e.cssClasses.includes("statediagram-cluster-alt"),Tt=b.svg(m),it=e.rx||e.ry?Tt.path(Tr(ut,lt,j,Q,10),{roughness:0.7,fill:p,fillStyle:"solid",stroke:u,seed:n}):Tt.rectangle(ut,lt,j,Q,{seed:n});wt=m.insert(()=>it,":first-child");let ot=Tt.rectangle(ut,gt,j,J,{fill:_t?c:f,fillStyle:_t?"hachure":"solid",stroke:u,seed:n});wt=m.insert(()=>it,":first-child"),w=m.insert(()=>ot),wt.attr("class","outer"),w.attr("class","inner")}else{wt=y.insert("rect",":first-child");let _t="outer";wt.attr("class",_t).attr("x",ut).attr("y",lt).attr("width",j).attr("height",Q).attr("data-look",e.look),w.attr("class","inner").attr("x",ut).attr("y",gt).attr("width",j).attr("height",J)}k.attr("transform",`translate(${e.x-O.width/2}, ${lt+1-(nt(o)?0:3)})`);let At=wt.node().getBBox();return e.height=At.height,e.offsetX=0,e.offsetY=O.height-e.padding/2,e.labelBBox=O,e.intersect=function(_t){return mi(e,_t)},{cluster:m,labelBBox:O}},"roundedWithTitle"),ES=t(async(r,e)=>{i.info("Creating subgraph rect for ",e.id,e);let o=d(),{themeVariables:a,handDrawnSeed:s}=o,{clusterBkg:n,clusterBorder:c}=a,{labelStyles:l,nodeStyles:f,borderStyles:p,backgroundStyles:u}=E(e),m=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),y=nt(o),k=m.insert("g").attr("class","cluster-label "),w=await ct(k,e.label,{style:e.labelStyle,useHtmlLabels:y,isNode:!0,width:e.width}),_=w.getBBox();if(nt(o)){let lt=w.children[0],gt=v(w);_=lt.getBoundingClientRect(),gt.attr("width",_.width),gt.attr("height",_.height)}let O=e.width<=_.width+e.padding?_.width+e.padding:e.width;if(e.width<=_.width+e.padding)e.diff=(O-e.width)/2-e.padding;else e.diff=-e.padding;let q=e.height,W=e.x-O/2,j=e.y-q/2;i.trace("Data ",e,JSON.stringify(e));let Q;if(e.look==="handDrawn"){let lt=b.svg(m),gt=Jt(e,{roughness:0.7,fill:n,stroke:c,fillWeight:4,seed:s}),wt=lt.path(Tr(W,j,O,q,e.rx),gt);Q=m.insert(()=>(i.debug("Rough node insert CXC",wt),wt),":first-child"),Q.select("path:nth-child(2)").attr("style",p.join(";")),Q.select("path").attr("style",u.join(";").replace("fill","stroke"))}else Q=m.insert("rect",":first-child"),Q.attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",W).attr("y",j).attr("width",O).attr("height",q);let{subGraphTitleTopMargin:J}=Tn(o);if(k.attr("transform",`translate(${e.x-_.width/2}, ${e.y-e.height/2+J})`),l){let lt=k.select("span");if(lt)lt.attr("style",l)}let ut=Q.node().getBBox();return e.offsetX=0,e.width=ut.width,e.height=ut.height,e.offsetY=_.height-e.padding/2,e.intersect=function(lt){return mi(e,lt)},{cluster:m,labelBBox:_}},"kanbanSection"),OS=t((r,e)=>{let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{altBackground:c,nodeBorder:l,borderColorArray:f}=s,p=r.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look);Ht(p,e.colorIndex,a,f);let u=p.insert("g",":first-child"),m=0*e.padding,y=e.width+m;e.diff=-e.padding;let k=e.height+m,w=e.x-y/2,_=e.y-k/2;e.width=y;let O;if(e.look==="handDrawn"){let j=b.svg(p).rectangle(w,_,y,k,{fill:c??"#efefef",fillStyle:"solid",roughness:0.5,strokeLineDash:[5],stroke:l,seed:n});O=p.insert(()=>j,":first-child").attr("class","divider")}else{O=u.insert("rect",":first-child");let W="outer";if(e.look==="neo")W="divider";else W="divider";O.attr("class",W).attr("x",w).attr("y",_).attr("width",y).attr("height",k).attr("data-look",e.look)}let q=O.node().getBBox();return e.height=q.height,e.offsetX=0,e.offsetY=0,e.intersect=function(W){return mi(e,W)},{cluster:p,labelBBox:{}}},"divider"),IS=t(async(r,e,o)=>{i.info(`Creating ${o.cssClass} for `,e.id,e);let a=d(),{theme:s,themeVariables:n,handDrawnSeed:c}=a,{borderColorArray:l}=n,{labelStyles:f,borderStyles:p}=E(e),u=r.insert("g").attr("class","cluster "+o.cssClass+" "+e.cssClasses).attr("id",e.domId??e.id).attr("data-look",e.look);Ht(u,e.colorIndex,s,l);let m=nt(a),y=u.insert("g").attr("class","cluster-label"),k={width:0,height:0},w=e.label?.trim();if(w){let J;if(e.labelType==="markdown")J=await ct(y,e.label,{style:e.labelStyle,useHtmlLabels:m,isNode:!0,width:e.width});else J=await Nr(y,e.label,e.labelStyle||"",!1,!0);if(k=J.getBBox(),m){let ut=J.children[0],lt=v(J);k=ut.getBoundingClientRect(),lt.attr("width",k.width),lt.attr("height",k.height)}}let _=e.width<=k.width+e.padding?k.width+e.padding:e.width;if(e.width<=k.width+e.padding)e.diff=(_-e.width)/2-e.padding;else e.diff=-e.padding;let O=e.height,q=e.x-_/2,W=e.y-O/2,j;if(e.look==="handDrawn"){let J=b.svg(u),ut=Jt(e,{roughness:o.roughness,fill:o.fill,stroke:o.stroke,strokeWidth:o.strokeWidth,seed:c,...o.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...o.strokeDash?{strokeLineDash:o.strokeDash}:{}}),lt=J.path(Tr(q,W,_,O,o.rx),ut);j=u.insert(()=>lt,":first-child"),j.select("path:nth-child(2)").attr("style",p.join(";"))}else if(j=u.insert("rect",":first-child"),j.attr("rx",o.rx).attr("ry",o.rx).attr("x",q).attr("y",W).attr("width",_).attr("height",O).attr("fill",o.fill).attr("stroke",o.stroke).attr("stroke-width",o.strokeWidth+"px"),o.strokeDash)j.attr("stroke-dasharray",o.strokeDash.join(", "));if(w){let{subGraphTitleTopMargin:J}=Tn(a);if(y.attr("transform",`translate(${e.x-k.width/2}, ${e.y-e.height/2+J})`),f){let ut=y.select("span");if(ut)ut.attr("style",f)}}let Q=j.node().getBBox();return e.offsetX=0,e.width=Q.width,e.height=Q.height,e.offsetY=k.height-e.padding/2,e.intersect=function(J){return mi(e,J)},{cluster:u,labelBBox:k}},"createContainerGroup"),$S=t(async(r,e)=>{let{themeVariables:o}=d(),a=o.flowContainerStroke||o.secondaryBorderColor;return IS(r,e,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:a,strokeWidth:0.75,roughness:0.7})},"flowGroup"),DS=t((r,e)=>{let o=r.boundaryType||"rect",a=o==="package"?20:r.padding,s=o==="package"?e.height+10:0,n=Math.max(r.width,e.width+a),c=o==="package"?Math.max(r.height,s+r.padding*2):r.height,l=r.x-n/2,f=r.y-c/2;return{boundaryType:o,width:n,height:c,x:l,y:f,bodyY:f+s,bodyHeight:c-s,tabHeight:s,tabWidth:o==="package"?Math.min(n,Math.max(80,e.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),PS=t(async(r,e)=>{i.info("Creating usecase system boundary for ",e.id,e);let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{clusterBkg:c,clusterBorder:l,borderColorArray:f}=s,{labelStyles:p,nodeStyles:u}=E(e),{stylesMap:m}=hi(e),y=e.boundaryType||"rect",k=r.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${y} ${e.cssClasses}`).attr("id",typeof e.domId==="string"?e.domId:e.id).attr("data-boundary-type",y).attr("data-look",e.look);Ht(k,e.colorIndex,a,f);let w=nt(o),_=k.insert("g").attr("class","cluster-label system-boundary-title"),O=await ct(_,e.label,{style:p,useHtmlLabels:w,isNode:!0}),q=O.getBBox();if(w){let it=O.children[0],ot=v(O);q=it.getBoundingClientRect(),ot.attr("width",q.width),ot.attr("height",q.height)}let W=DS(e,q),{width:j,height:Q,x:J,y:ut,bodyY:lt,bodyHeight:gt,tabHeight:wt,tabWidth:At}=W;e.diff=e.width<=q.width+e.padding?(j-e.width)/2-e.padding:-e.padding;let _t=Jt(e,{fill:m.get("fill")||c,stroke:m.get("stroke")||l,strokeWidth:m.get("stroke-width")?.replace("px","")||1,seed:n});if(e.look==="handDrawn"){let it=b.svg(k),ot=it.rectangle(J,lt,j,gt,_t);if(k.insert(()=>ot,":first-child").attr("class","boundary-body label-container"),y==="package"){let xt=it.rectangle(J,ut,At,wt,_t);k.insert(()=>xt,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else if(k.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",u).attr("x",J).attr("y",lt).attr("width",j).attr("height",gt),y==="package")k.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",u).attr("x",J).attr("y",ut).attr("width",At).attr("height",wt);let{subGraphTitleTopMargin:Tt}=Tn(o);if(y==="package")_.attr("transform",`translate(${J+(At-q.width)/2}, ${ut+(wt-q.height)/2})`);else _.attr("transform",`translate(${e.x-q.width/2}, ${ut+Tt})`);if(p)_.attr("style",p),_.select("span").attr("style",p);return e.offsetX=0,e.width=j,e.height=Q,e.offsetY=q.height-e.padding/2,e.labelBBox=q,e.intersect=function(it){return mi(e,it)},{cluster:k,labelBBox:q}},"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,lr=t(async(r,e)=>{let o=e.shape||"rect",a=await qS[o](r,e);return L0.set(e.id,a),a},"insertCluster"),Rc=t(()=>{L0=new Map},"clear");var tn=t((r,e)=>{if(e)return"translate("+-r.width/2+", "+-r.height/2+")";let o=r.x??0,a=r.y??0;return"translate("+-(o+r.width/2)+", "+-(a+r.height/2)+")"},"computeLabelTransform"),ft={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 rn(r,e){if(r===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};r=Ee(r),e=Ee(e);let[o,a]=[r.x,r.y],[s,n]=[e.x,e.y],c=s-o,l=n-a;return{angle:Math.atan(l/c),deltaX:c,deltaY:l}}t(rn,"calculateDeltaAndAngle");var Ee=t((r)=>{if(Array.isArray(r))return{x:r[0],y:r[1]};return r},"pointTransformer"),NS=t((r)=>({x:t(function(e,o,a){let s=0,n=Ee(a[0]).x<Ee(a[a.length-1]).x?"left":"right";if(o===0&&Object.hasOwn(ft,r.arrowTypeStart)){let{angle:k,deltaX:w}=rn(a[0],a[1]);s=ft[r.arrowTypeStart]*Math.cos(k)*(w>=0?1:-1)}else if(o===a.length-1&&Object.hasOwn(ft,r.arrowTypeEnd)){let{angle:k,deltaX:w}=rn(a[a.length-1],a[a.length-2]);s=ft[r.arrowTypeEnd]*Math.cos(k)*(w>=0?1:-1)}let c=Math.abs(Ee(e).x-Ee(a[a.length-1]).x),l=Math.abs(Ee(e).y-Ee(a[a.length-1]).y),f=Math.abs(Ee(e).x-Ee(a[0]).x),p=Math.abs(Ee(e).y-Ee(a[0]).y),u=ft[r.arrowTypeStart],m=ft[r.arrowTypeEnd],y=1;if(c<m&&c>0&&l<m){let k=m+y-c;k*=n==="right"?-1:1,s-=k}if(f<u&&f>0&&p<u){let k=u+y-f;k*=n==="right"?-1:1,s+=k}return Ee(e).x+s},"x"),y:t(function(e,o,a){let s=0,n=Ee(a[0]).y<Ee(a[a.length-1]).y?"down":"up";if(o===0&&Object.hasOwn(ft,r.arrowTypeStart)){let{angle:k,deltaY:w}=rn(a[0],a[1]);s=ft[r.arrowTypeStart]*Math.abs(Math.sin(k))*(w>=0?1:-1)}else if(o===a.length-1&&Object.hasOwn(ft,r.arrowTypeEnd)){let{angle:k,deltaY:w}=rn(a[a.length-1],a[a.length-2]);s=ft[r.arrowTypeEnd]*Math.abs(Math.sin(k))*(w>=0?1:-1)}let c=Math.abs(Ee(e).y-Ee(a[a.length-1]).y),l=Math.abs(Ee(e).x-Ee(a[a.length-1]).x),f=Math.abs(Ee(e).y-Ee(a[0]).y),p=Math.abs(Ee(e).x-Ee(a[0]).x),u=ft[r.arrowTypeStart],m=ft[r.arrowTypeEnd],y=1;if(c<m&&c>0&&l<m){let k=m+y-c;k*=n==="up"?-1:1,s-=k}if(f<u&&f>0&&p<u){let k=u+y-f;k*=n==="up"?-1:1,s+=k}return Ee(e).y+s},"y")}),"getLineFunctionsWithOffset"),WS=t((r,e,o,a,s,n=!1,c)=>{if(e.arrowTypeStart)A0(r,"start",e.arrowTypeStart,o,a,s,n,c);if(e.arrowTypeEnd)A0(r,"end",e.arrowTypeEnd,o,a,s,n,c)},"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,o,a,s,n,c=!1,l)=>{if(!o||o==="none")return;let f=zS[o],p=f&&HS.includes(f.type);if(!f){i.warn(`Unknown arrow type: ${o}`);return}let u=f.type,k=`${s}_${n}-${u}${e==="start"?"Start":"End"}${c&&p?"-margin":""}`;if(l&&l.trim()!==""){let w=l.replace(/[^\dA-Za-z]/g,"_"),_=`${k}_${w}`;if(!document.getElementById(_)){let O=document.getElementById(k);if(O){let q=O.cloneNode(!0);q.id=_,q.querySelectorAll("path, circle, line").forEach((j)=>{if(j.setAttribute("stroke",l),f.fill)j.setAttribute("fill",l)}),O.parentNode?.appendChild(q)}}r.attr(`marker-${e}`,`url(${a}#${_})`)}else r.attr(`marker-${e}`,`url(${a}#${k})`)},"addEdgeMarker"),YS=t((r)=>typeof r==="string"?r:d()?.flowchart?.curve,"resolveEdgeCurveType"),_a=new Map,ht=new Map,Pc=t(()=>{_a.clear(),ht.clear()},"clear"),ac=t((r)=>Boolean(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),en=t((r)=>{if(!r)return"";if(typeof r==="string")return r;return r.reduce((e,o)=>e+";"+o,"")},"getLabelStyles"),Ln=t(async(r,e)=>{let o=d(),a=nt(o),{labelStyles:s}=E(e);e.labelStyle=s;let n=r.insert("g").attr("class","edgeLabel"),c=n.insert("g").attr("class","label").attr("data-id",e.id),l=e.labelType==="markdown",f=void 0,p=await ct(r,e.label,{style:en(e.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1,markdown:l,width:l?f:void 0},o);c.node().appendChild(p),i.info("abc82",e,e.labelType);let u,m;if(a){let k=p.children[0],w=v(p);u=await qi.measure(()=>k.getBoundingClientRect()),m=u,w.attr("width",u.width),w.attr("height",u.height)}else{let k=v(p).select("text").node();await qi.measure(()=>{if(u=p.getBBox(),k&&typeof k.getBBox==="function")m=k.getBBox();else m=u})}c.attr("transform",tn(m,a)),_a.set(e.id,n),e.width=u.width,e.height=u.height;let y;if(e.startLabelLeft){let k=r.insert("g").attr("class","edgeTerminals"),w=k.insert("g").attr("class","inner"),_=await Nr(w,e.startLabelLeft,en(e.labelStyle)||"",!1,!1);y=_;let O=_.getBBox();if(a){let q=_.children[0],W=v(_);O=q.getBoundingClientRect(),W.attr("width",O.width),W.attr("height",O.height)}if(w.attr("transform",tn(O,a)),!ht.get(e.id))ht.set(e.id,{});ht.get(e.id).startLeft=k,sn(y,e.startLabelLeft,O),on(e,"startLeft",O)}if(e.startLabelRight){let k=r.insert("g").attr("class","edgeTerminals"),w=k.insert("g").attr("class","inner"),_=await Nr(w,e.startLabelRight,en(e.labelStyle)||"",!1,!1);y=_;let O=_.getBBox();if(a){let q=_.children[0],W=v(_);O=q.getBoundingClientRect(),W.attr("width",O.width),W.attr("height",O.height)}if(w.attr("transform",tn(O,a)),!ht.get(e.id))ht.set(e.id,{});ht.get(e.id).startRight=k,sn(y,e.startLabelRight,O),on(e,"startRight",O)}if(e.endLabelLeft){let k=r.insert("g").attr("class","edgeTerminals"),w=k.insert("g").attr("class","inner"),_=await Nr(w,e.endLabelLeft,en(e.labelStyle)||"",!1,!1);y=_;let O=_.getBBox();if(a){let q=_.children[0],W=v(_);O=q.getBoundingClientRect(),W.attr("width",O.width),W.attr("height",O.height)}if(w.attr("transform",tn(O,a)),!ht.get(e.id))ht.set(e.id,{});ht.get(e.id).endLeft=k,sn(y,e.endLabelLeft,O),on(e,"endLeft",O)}if(e.endLabelRight){let k=r.insert("g").attr("class","edgeTerminals"),w=k.insert("g").attr("class","inner"),_=await Nr(w,e.endLabelRight,en(e.labelStyle)||"",!1,!1);y=_;let O=_.getBBox();if(a){let q=_.children[0],W=v(_);O=q.getBoundingClientRect(),W.attr("width",O.width),W.attr("height",O.height)}if(w.attr("transform",tn(O,a)),!ht.get(e.id))ht.set(e.id,{});ht.get(e.id).endRight=k,sn(y,e.endLabelRight,O),on(e,"endRight",O)}return p},"insertEdgeLabel");function on(r,e,o){r.terminalLabelSizes??={},r.terminalLabelSizes[e]={width:o.width,height:o.height}}t(on,"recordTerminalLabelSize");function sn(r,e,o){if(nt(d())&&r)r.style.width=Math.max(e.length*9,o.width)+"px",r.style.height=o.height+"px"}t(sn,"setTerminalWidth");var ic=t((r,e)=>{let{x:o,y:a}=r;if(e?.updatedPath){let s=H.calcLabelPosition(e.updatedPath);if(e.originalPath){let n=H.calcLabelPosition(e.originalPath);o=r.x+(s.x-n.x),a=r.y+(s.y-n.y)}else o=s.x,a=s.y}return{x:o,y:a}},"resolveEdgeLabelPosition"),wa=t((r,e)=>{i.debug("Moving label abc88 ",r.id,r.label,_a.get(r.id),e);let o=d(),{subGraphTitleTotalMargin:a}=Tn(o);if(r.label){let n=_a.get(r.id),{x:c,y:l}=ic(r,e);i.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",c,",",l,") abc88"),n.attr("transform",`translate(${c}, ${l+a/2})`)}let s=e.updatedPath?e.updatedPath:e.originalPath;if(r.startLabelLeft){let n=ht.get(r.id).startLeft,{x:c,y:l}=r;if(s){let f=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",s);c=f.x,l=f.y}n.attr("transform",`translate(${c}, ${l})`)}if(r.startLabelRight){let n=ht.get(r.id).startRight,{x:c,y:l}=r;if(s){let f=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",s);c=f.x,l=f.y}n.attr("transform",`translate(${c}, ${l})`)}if(r.endLabelLeft){let n=ht.get(r.id).endLeft,{x:c,y:l}=r;if(s){let f=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",s);c=f.x,l=f.y}n.attr("transform",`translate(${c}, ${l})`)}if(r.endLabelRight){let n=ht.get(r.id).endRight,{x:c,y:l}=r;if(s){let f=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",s);c=f.x,l=f.y}n.attr("transform",`translate(${c}, ${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[o,a]=e,s=Math.abs(a.x-o.x),n=Math.abs(a.y-o.y);if(s<0.001||n<0.001)return e;if(n>=s)return[o,{x:o.x,y:a.y},a];return[o,{x:a.x,y:o.y},a]},"orthogonalizeToLabelClippedPoints"),jS=t((r,e)=>{let{x:o,y:a}=r,s=Math.abs(e.x-o),n=Math.abs(e.y-a),c=r.width/2,l=r.height/2;return s>=c||n>=l},"outsideNode"),GS=t((r,e,o)=>{i.debug(`intersection calc abc89:
|
|
294
|
+
outsidePoint: ${JSON.stringify(e)}
|
|
295
|
+
insidePoint : ${JSON.stringify(o)}
|
|
296
|
+
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let{x:a,y:s}=r,n=Math.abs(a-o.x),c=r.width/2,l=o.x<e.x?c-n:c+n,f=r.height/2,p=Math.abs(e.y-o.y),u=Math.abs(e.x-o.x);if(Math.abs(s-e.y)*c>Math.abs(a-e.x)*f){let m=o.y<e.y?e.y-f-s:s-f-e.y;l=u*m/p;let y={x:o.x<e.x?o.x+l:o.x-u+l,y:o.y<e.y?o.y+p-m:o.y-p+m};if(l===0)y.x=e.x,y.y=e.y;if(u===0)y.x=e.x;if(p===0)y.y=e.y;return i.debug(`abc89 top/bottom calc, Q ${p}, q ${m}, R ${u}, r ${l}`,y),y}else{if(o.x<e.x)l=e.x-c-a;else l=a-c-e.x;let m=p*l/u,y=o.x<e.x?o.x+u-l:o.x-u+l,k=o.y<e.y?o.y+m:o.y-m;if(i.debug(`sides calc abc89, Q ${p}, q ${m}, R ${u}, r ${l}`,{_x:y,_y:k}),l===0)y=e.x,k=e.y;if(u===0)y=e.x;if(p===0)k=e.y;return{x:y,y:k}}},"intersection"),M0=t((r,e)=>{i.warn("abc88 cutPathAtIntersect",r,e);let o=[],a=r[0],s=!1;return r.forEach((n)=>{if(i.info("abc88 checking point",n,e),!jS(e,n)&&!s){let c=GS(e,a,n);i.debug("abc88 inside",n,a,c),i.debug("abc88 intersection",c,e);let l=!1;if(o.forEach((f)=>{l=l||f.x===c.x&&f.y===c.y}),!o.some((f)=>f.x===c.x&&f.y===c.y))o.push(c);else i.warn("abc88 no intersect",c,o);s=!0}else if(i.warn("abc88 outside",n,a),a=n,!s)o.push(n)}),i.debug("returning points",o),o},"cutPathAtIntersect");function O0(r){let e=[],o=[];for(let a=1;a<r.length-1;a++){let s=r[a-1],n=r[a],c=r[a+1];if(s.x===n.x&&n.y===c.y&&Math.abs(n.x-c.x)>5&&Math.abs(n.y-s.y)>5)e.push(n),o.push(a);else if(s.y===n.y&&n.x===c.x&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-c.y)>5)e.push(n),o.push(a)}return{cornerPoints:e,cornerPointPositions:o}}t(O0,"extractCornerPoints");var E0=t(function(r,e,o){let a=e.x-r.x,s=e.y-r.y,n=Math.sqrt(a*a+s*s),c=o/n;return{x:e.x-c*a,y:e.y-c*s}},"findAdjacentPoint"),XS=t(function(r){let{cornerPointPositions:e}=O0(r),o=[];for(let a=0;a<r.length;a++)if(e.includes(a)){let s=r[a-1],n=r[a+1],c=r[a],l=E0(s,c,5),f=E0(n,c,5),p=f.x-l.x,u=f.y-l.y;o.push(l);let m=Math.sqrt(2)*2,y={x:c.x,y:c.y};if(Math.abs(n.x-s.x)>10&&Math.abs(n.y-s.y)>=10){i.debug("Corner point fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));let k=5;if(c.x===l.x)y={x:p<0?l.x-k+m:l.x+k-m,y:u<0?l.y-m:l.y+m};else y={x:p<0?l.x-m:l.x+m,y:u<0?l.y-k+m:l.y+k-m}}else i.debug("Corner point skipping fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));o.push(y,f)}else o.push(r[a]);return o},"fixCorners"),VS=t((r,e,o)=>{let a=r-e-o,s=2,n=2,c=4,l=Math.floor(a/4),f=Number.isFinite(l)?Math.max(0,l):0,p=Array(f).fill("2 2").join(" ");return`0 ${e} ${p} ${o}`},"generateDashArray"),pr=t(function(r,e,o,a,s,n,c,l=!1,f=void 0){if(!c)throw Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:p,layout:u}=d(),m=f??u,y=e.points,k=!1,w=s;var _=n;let O=[];for(let Xt in e.cssCompiledStyles){if(Di(Xt))continue;O.push(e.cssCompiledStyles[Xt])}if(m==="swimlane"){if(!l&&_.intersect&&w.intersect&&Array.isArray(y)&&y.length>=2)if(y.length===2)y=[w.intersect(y[0]),_.intersect(y[1])];else{let Xt=y.slice(1,-1),ce=Xt[0],le=Xt[Xt.length-1],ye=0.5,Ce=Math.abs(y[y.length-1].x-le.x)<0.5&&Math.abs(y[y.length-1].y-le.y)<0.5,pe=w.intersect(ce),Gt=Ce?le:_.intersect(le),ae=Math.abs(Gt.x-le.x)<0.5&&Math.abs(Gt.y-le.y)<0.5,fe=Math.abs(pe.x-ce.x)<0.5&&Math.abs(pe.y-ce.y)<0.5?[]:[pe],Ae=ae?[]:[Gt];y=[...fe,...Xt,...Ae]}y=US(e,y)}else if(_.intersect&&w.intersect&&!l)y=y.slice(1,e.points.length-1),y.unshift(w.intersect(y[0])),y.push(_.intersect(y[y.length-1]));let q=btoa(JSON.stringify(y));if(e.toCluster)i.info("to cluster abc88",o.get(e.toCluster)),y=M0(e.points,o.get(e.toCluster).node),k=!0;if(e.fromCluster)i.debug("from cluster abc88",o.get(e.fromCluster),JSON.stringify(y,null,2)),y=M0(y.reverse(),o.get(e.fromCluster).node).reverse(),k=!0;let W=y.filter((Xt)=>!Number.isNaN(Xt.y)),j=YS(e.curve);if(j!=="rounded")W=XS(W);let Q=Vr;switch(j){case"linear":Q=Vr;break;case"basis":Q=co;break;case"cardinal":Q=Ea;break;case"bumpX":Q=ba;break;case"bumpY":Q=Aa;break;case"catmullRom":Q=Ia;break;case"monotoneX":Q=$a;break;case"monotoneY":Q=Da;break;case"natural":Q=gs;break;case"step":Q=ms;break;case"stepAfter":Q=Ra;break;case"stepBefore":Q=Pa;break;case"rounded":Q=Vr;break;default:Q=co}let{x:J,y:ut}=NS(e),lt=ya().x(J).y(ut).curve(Q),gt;switch(e.thickness){case"normal":gt="edge-thickness-normal";break;case"thick":gt="edge-thickness-thick";break;case"invisible":gt="edge-thickness-invisible";break;default:gt="edge-thickness-normal"}switch(e.pattern){case"solid":gt+=" edge-pattern-solid";break;case"dotted":gt+=" edge-pattern-dotted";break;case"dashed":gt+=" edge-pattern-dashed";break;default:gt+=" edge-pattern-solid"}let wt,At=j==="rounded"?I0($0(W,e),5):lt(W),_t=Array.isArray(e.style)?e.style:[e.style],Tt=_t.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=b.svg(r);Object.assign([],W);let ce=Xt.path(At,{roughness:0.3,seed:p});gt+=" transition",wt=v(ce).select("path").attr("id",`${c}-${e.id}`).attr("class"," "+gt+(e.classes?" "+e.classes:"")+(it?" "+it:"")).attr("style",_t?_t.reduce((ye,Ce)=>ye+";"+Ce,""):"");let le=wt.attr("d");wt.attr("d",le),r.node().appendChild(wt.node())}else{let Xt=O.join(";"),ce=_t?_t.reduce((ae,ue)=>ae+ue+";",""):"",le=(Xt?Xt+";"+ce+";":ce)+";"+(_t?_t.reduce((ae,ue)=>ae+";"+ue,""):"");wt=r.append("path").attr("d",At).attr("id",`${c}-${e.id}`).attr("class"," "+gt+(e.classes?" "+e.classes:"")+(it?" "+it:"")).attr("style",le),Tt=le.match(/stroke:([^;]+)/)?.[1],ot=e.animate===!0||!!e.animation||Xt.includes("animation");let ye=wt.node(),Ce=typeof ye.getTotalLength==="function"?ye.getTotalLength():0,pe=F0[e.arrowTypeStart]||0,Gt=F0[e.arrowTypeEnd]||0;if(e.look==="neo"&&!ot){let ue=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?VS(Ce,pe,Gt):`0 ${pe} ${Ce-pe-Gt} ${Gt}`}; stroke-dashoffset: 0;`;wt.attr("style",ue+wt.attr("style"))}}if(wt.attr("data-edge",!0),wt.attr("data-et","edge"),wt.attr("data-id",e.id),wt.attr("data-points",q),wt.attr("data-look",Ie(e.look)),e.showPoints)W.forEach((Xt)=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",Xt.x).attr("cy",Xt.y)});let xt="";if(d().flowchart.arrowMarkerAbsolute||d().state.arrowMarkerAbsolute)xt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,xt=xt.replace(/\(/g,"\\(").replace(/\)/g,"\\)");i.info("arrowTypeStart",e.arrowTypeStart),i.info("arrowTypeEnd",e.arrowTypeEnd);let et=!ot&&e?.look==="neo";WS(wt,e,xt,c,a,et,Tt);let Bt=Math.floor(y.length/2),Mt=y[Bt];if(!H.isLabelCoordinateInPath(Mt,wt.attr("d")))k=!0;let Vt={};if(k)Vt.updatedPath=y;return Vt.originalPath=e.points,Vt},"insertEdge");function I0(r,e){if(r.length<2)return"";let o="",a=r.length,s=0.00001;for(let n=0;n<a;n++){let c=r[n],l=r[n-1],f=r[n+1];if(n===0)o+=`M${c.x},${c.y}`;else if(n===a-1)o+=`L${c.x},${c.y}`;else{let p=c.x-l.x,u=c.y-l.y,m=f.x-c.x,y=f.y-c.y,k=Math.hypot(p,u),w=Math.hypot(m,y);if(k<s||w<s){o+=`L${c.x},${c.y}`;continue}let _=p/k,O=u/k,q=m/w,W=y/w,j=_*q+O*W,Q=Math.max(-1,Math.min(1,j)),J=Math.acos(Q);if(J<s||Math.abs(Math.PI-J)<s){o+=`L${c.x},${c.y}`;continue}let ut=Math.min(e/Math.sin(J/2),k/2,w/2),lt=c.x-_*ut,gt=c.y-O*ut,wt=c.x+q*ut,At=c.y+W*ut;o+=`L${lt},${gt}`,o+=`Q${c.x},${c.y} ${wt},${At}`}}return o}t(I0,"generateRoundedPath");function ad(r,e){if(!r||!e)return{angle:0,deltaX:0,deltaY:0};let o=e.x-r.x,a=e.y-r.y;return{angle:Math.atan2(a,o),deltaX:o,deltaY:a}}t(ad,"calculateDeltaAndAngle");function $0(r,e){let o=r.map((s)=>({...s}));if(r.length>=2&&ft[e.arrowTypeStart]){let s=ft[e.arrowTypeStart],n=r[0],c=r[1],{angle:l}=ad(n,c),f=s*Math.cos(l),p=s*Math.sin(l);o[0].x=n.x+f,o[0].y=n.y+p}let a=r.length;if(a>=2&&ft[e.arrowTypeEnd]){let s=ft[e.arrowTypeEnd],n=r[a-1],c=r[a-2],{angle:l}=ad(c,n),f=s*Math.cos(l),p=s*Math.sin(l);o[a-1].x=n.x-f,o[a-1].y=n.y-p}return o}t($0,"applyMarkerOffsetsToPoints");var KS=t((r,e,o,a)=>{e.forEach((s)=>{bT[s](r,o,a)})},"insertMarkers"),ZS=t((r,e,o)=>{i.trace("Making markers for ",o),r.append("defs").append("marker").attr("id",o+"_"+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",o+"_"+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",o+"_"+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",o+"_"+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,o)=>{r.append("defs").append("marker").attr("id",o+"_"+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",o+"_"+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",o+"_"+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",o+"_"+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,o)=>{r.append("defs").append("marker").attr("id",o+"_"+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",o+"_"+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",o+"_"+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",o+"_"+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,o)=>{r.append("defs").append("marker").attr("id",o+"_"+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",o+"_"+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",o+"_"+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",o+"_"+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,o)=>{r.append("defs").append("marker").attr("id",o+"_"+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",o+"_"+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",o+"_"+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",o+"_"+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,o)=>{r.append("marker").attr("id",o+"_"+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",o+"_"+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",o+"_"+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",o+"_"+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,o)=>{r.append("marker").attr("id",o+"_"+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",o+"_"+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",o+"_"+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",o+"_"+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,o)=>{r.append("marker").attr("id",o+"_"+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",o+"_"+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",o+"_"+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",o+"_"+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,o)=>{r.append("defs").append("marker").attr("id",o+"_"+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,o)=>{let a=S(),{themeVariables:s}=a,{transitionColor:n}=s;r.append("defs").append("marker").attr("id",o+"_"+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",o+"_"+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,o)=>{r.append("defs").append("marker").attr("id",o+"_"+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",o+"_"+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,o)=>{let a=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),a.append("path").attr("d","M9,0 L9,18");let s=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),hT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+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",o+"_"+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,o)=>{let a=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let s=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),uT=t((r,e,o)=>{let a=S(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",o+"_"+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",o+"_"+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,o)=>{let a=S(),{themeVariables:s}=a,{strokeWidth:n,mainBkg:c}=s,l=r.append("defs").append("marker").attr("id",o+"_"+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",c??"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 f=r.append("defs").append("marker").attr("id",o+"_"+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");f.append("circle").attr("fill",c??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),f.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),dT=t((r,e,o)=>{let a=S(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",o+"_"+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",o+"_"+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,o)=>{let a=S(),{themeVariables:s}=a,{strokeWidth:n,mainBkg:c}=s,l=r.append("defs").append("marker").attr("id",o+"_"+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",c??"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 f=r.append("defs").append("marker").attr("id",o+"_"+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");f.append("circle").attr("fill",c??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),f.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,o)=>{r.append("defs").append("marker").attr("id",o+"_"+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,o)=>{let a=S(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",o+"_"+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,o)=>{let a=r.append("defs").append("marker").attr("id",o+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),xT=t((r,e,o)=>{let a=S(),{themeVariables:s}=a,{strokeWidth:n}=s,c=r.append("defs").append("marker").attr("id",o+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");c.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),c.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),c.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),c.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),CT=t((r,e,o)=>{r.append("marker").attr("id",o+"_"+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",o+"_"+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},ka=KS;var kT={common:C,getConfig:S,insertCluster:lr,insertEdge:pr,insertEdgeLabel:Ln,insertMarkers:ka,insertNode:En,interpolateToCurve:yl,labelHelper:V,log:i,positionEdgeLabel:wa},wT=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],an=Object.create(null),oc=t((r)=>{for(let e of r)an[e.name]=e},"registerLayoutLoaders"),ST=t(()=>{let r=t(async()=>await (A("5z2f4vfh"),import("./chunk-5z2f4vfh.js")),"loader");return[{name:"elk",loader:r,algorithm:"elk.layered"},...wT.map((e)=>({name:e,loader:r,algorithm:e}))]},"elkLayoutLoaders"),TT=t(()=>{oc([{name:"dagre",loader:t(async()=>await (A("85cyf9df"),import("./chunk-85cyf9df.js")),"loader")},{name:"swimlane",loader:t(async()=>await (A("v65dz9y5"),import("./chunk-v65dz9y5.js")),"loader")},{name:"cose-bilkent",loader:t(async()=>await (A("75jp6b07"),import("./chunk-75jp6b07.js")),"loader")},...ST()])},"registerDefaultLayoutLoaders");TT();var We=t(async(r,e)=>{if(!Object.hasOwn(an,r.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);if(r.diagramId)for(let s of r.nodes){let n=s.domId||s.id;s.domId=`${r.diagramId}-${n}`}let o=an[r.layoutAlgorithm],a=await o.loader();return Mo(e,r.config),a.render(r,e,kT,{algorithm:o.algorithm})},"render"),nd="dagre",Ye=t((r="",{fallback:e=nd}={})=>{if(Object.hasOwn(an,r))return r;for(let o of[e,nd])if(Object.hasOwn(an,o))return i.warn(`Layout algorithm ${r} is not registered. Using ${o} as fallback.`),o;throw Error(`Neither layout algorithm ${r}, ${e}, nor ${nd} is registered.`)},"getRegisteredLayoutAlgorithm");
|
|
303
|
+
export{t,or,wo,i,Ni,X,mt,Oe,he,Za,h,g,st,js,qs,Xr,Qa,ko,vc,Ne,tt,sr,z,Vs,_r,mn,Co,yc,bc,xc,Gs,Ws,S,_c,Mi,wc,nt,ma,G,Ys,cr,qe,Ja,ei,C,Y,fn,So,kc,Ao,L,M,P,R,I,B,D,d,wr,Kr,ti,Ri,To,v,Zr,ni,Qr,Un,Xs,Rt,ri,Cc,kr,fa,kt,ai,ke,Ks,Pt,Jr,Sc,Eo,jn,ha,Ct,ii,Pi,ga,Ac,Zs,va,Tc,Ii,Lo,No,ya,ba,te,Kt,Zt,Mo,Di,E,Qs,ea,Qt,xa,ta,Cr,Ro,oi,si,ci,li,Po,Io,Do,Oo,$o,Bo,Fo,zo,Ho,Uo,jo,qo,Vo,Go,Wo,Yo,Xo,Sr,pi,Oi,Ko,Js,Ec,Zo,ec,tc,na,$i,Ft,Bi,Qo,nc,It,Z,H,Lc,qn,St,Jo,es,rc,ct,Fi,$e,Re,Pe,hn,zt,Ht,b,V,F,T,zi,ui,Tn,En,Nc,Mc,gn,lr,Rc,ft,_a,ht,Pc,ac,Ln,ic,wa,pr,ka,oc,We,Ye};
|