ziya 0.1.48__py3-none-any.whl → 0.1.49__py3-none-any.whl
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.
Potentially problematic release.
This version of ziya might be problematic. Click here for more details.
- app/agents/agent.py +326 -64
- app/agents/prompts.py +44 -18
- app/main.py +3 -11
- app/server.py +205 -16
- app/utils/code_util.py +1090 -255
- app/utils/file_cache.py +180 -0
- app/utils/file_state_manager.py +204 -0
- app/utils/file_utils.py +34 -0
- app/utils/logging_utils.py +19 -7
- pyproject.toml +7 -7
- templates/asset-manifest.json +1236 -6
- templates/index.html +1 -1
- templates/static/css/14386.485ec235.chunk.css +2 -0
- templates/static/css/14386.485ec235.chunk.css.map +1 -0
- templates/static/css/18884.afc680c7.chunk.css +2 -0
- templates/static/css/18884.afc680c7.chunk.css.map +1 -0
- templates/static/css/40036.f1973587.chunk.css +2 -0
- templates/static/css/40036.f1973587.chunk.css.map +1 -0
- templates/static/css/71078.afc680c7.chunk.css +2 -0
- templates/static/css/71078.afc680c7.chunk.css.map +1 -0
- templates/static/css/99948.485ec235.chunk.css +2 -0
- templates/static/css/99948.485ec235.chunk.css.map +1 -0
- templates/static/css/{main.f447c982.css → main.87f30840.css} +3 -3
- templates/static/css/main.87f30840.css.map +1 -0
- templates/static/js/14386.977217e3.chunk.js +2 -0
- templates/static/js/14386.977217e3.chunk.js.map +1 -0
- templates/static/js/23416.c33f07ab.chunk.js +3 -0
- templates/static/js/23416.c33f07ab.chunk.js.LICENSE.txt +14 -0
- templates/static/js/23416.c33f07ab.chunk.js.map +1 -0
- templates/static/js/35112.d7a417f9.chunk.js +2 -0
- templates/static/js/35112.d7a417f9.chunk.js.map +1 -0
- templates/static/js/3799.fedb612f.chunk.js +2 -0
- templates/static/js/3799.fedb612f.chunk.js.map +1 -0
- templates/static/js/40036.b241027e.chunk.js +2 -0
- templates/static/js/40036.b241027e.chunk.js.map +1 -0
- templates/static/js/42046.98dd49b5.chunk.js +2 -0
- templates/static/js/42046.98dd49b5.chunk.js.map +1 -0
- templates/static/js/46907.4a730107.chunk.js +2 -0
- templates/static/js/46907.4a730107.chunk.js.map +1 -0
- templates/static/js/53653.56c7ad1f.chunk.js +3 -0
- templates/static/js/53653.56c7ad1f.chunk.js.LICENSE.txt +11 -0
- templates/static/js/53653.56c7ad1f.chunk.js.map +1 -0
- templates/static/js/64754.cf383335.chunk.js +2 -0
- templates/static/js/64754.cf383335.chunk.js.map +1 -0
- templates/static/js/71078.a4da4bc6.chunk.js +2 -0
- templates/static/js/71078.a4da4bc6.chunk.js.map +1 -0
- templates/static/js/79218.4f700779.chunk.js +3 -0
- templates/static/js/79218.4f700779.chunk.js.LICENSE.txt +8 -0
- templates/static/js/79218.4f700779.chunk.js.map +1 -0
- templates/static/js/88261.33450351.chunk.js +3 -0
- templates/static/js/88261.33450351.chunk.js.LICENSE.txt +1 -0
- templates/static/js/88261.33450351.chunk.js.map +1 -0
- templates/static/js/96603.863a8f96.chunk.js +2 -0
- templates/static/js/96603.863a8f96.chunk.js.map +1 -0
- templates/static/js/97902.75670155.chunk.js +3 -0
- templates/static/js/97902.75670155.chunk.js.LICENSE.txt +3 -0
- templates/static/js/97902.75670155.chunk.js.map +1 -0
- templates/static/js/99948.37907198.chunk.js +2 -0
- templates/static/js/99948.37907198.chunk.js.map +1 -0
- templates/static/js/main.ee8b3c96.js +3 -0
- templates/static/js/main.ee8b3c96.js.LICENSE.txt +121 -0
- templates/static/js/main.ee8b3c96.js.map +1 -0
- templates/static/js/prism-lang.prism-abap-min.f6d3b9da.chunk.js +2 -0
- templates/static/js/prism-lang.prism-abap-min.f6d3b9da.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-abap.e39ba0c4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-abap.e39ba0c4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-abnf-min.be45e0bb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-abnf-min.be45e0bb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-abnf.a30eb087.chunk.js +2 -0
- templates/static/js/prism-lang.prism-abnf.a30eb087.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-actionscript-min.2646eea4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-actionscript-min.2646eea4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-actionscript.a5543070.chunk.js +2 -0
- templates/static/js/prism-lang.prism-actionscript.a5543070.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ada-min.83858f38.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ada-min.83858f38.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ada.a177152a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ada.a177152a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-agda-min.ced2fa9c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-agda-min.ced2fa9c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-agda.89472d62.chunk.js +2 -0
- templates/static/js/prism-lang.prism-agda.89472d62.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-al-min.b3d74ecd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-al-min.b3d74ecd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-al.e313cf4c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-al.e313cf4c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-antlr4-min.e10940a9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-antlr4-min.e10940a9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-antlr4.9e943719.chunk.js +2 -0
- templates/static/js/prism-lang.prism-antlr4.9e943719.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-apacheconf-min.19c2f6b6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-apacheconf-min.19c2f6b6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-apacheconf.64bfa640.chunk.js +2 -0
- templates/static/js/prism-lang.prism-apacheconf.64bfa640.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-apex-min.a8abc6f3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-apex-min.a8abc6f3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-apex.085d7c1c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-apex.085d7c1c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-apl-min.93215e18.chunk.js +2 -0
- templates/static/js/prism-lang.prism-apl-min.93215e18.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-apl.e528a12f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-apl.e528a12f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-applescript-min.5be9040c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-applescript-min.5be9040c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-applescript.e8d14c94.chunk.js +2 -0
- templates/static/js/prism-lang.prism-applescript.e8d14c94.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-aql-min.13e86cf9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-aql-min.13e86cf9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-aql.fd2231eb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-aql.fd2231eb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-arduino-min.c47a6232.chunk.js +2 -0
- templates/static/js/prism-lang.prism-arduino-min.c47a6232.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-arduino.1164efcc.chunk.js +2 -0
- templates/static/js/prism-lang.prism-arduino.1164efcc.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-arff-min.4c56a19f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-arff-min.4c56a19f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-arff.4ebfcacb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-arff.4ebfcacb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-armasm-min.12fb172d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-armasm-min.12fb172d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-armasm.ea580233.chunk.js +2 -0
- templates/static/js/prism-lang.prism-armasm.ea580233.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-arturo-min.45067586.chunk.js +2 -0
- templates/static/js/prism-lang.prism-arturo-min.45067586.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-arturo.09387589.chunk.js +2 -0
- templates/static/js/prism-lang.prism-arturo.09387589.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-asciidoc-min.54fdb298.chunk.js +2 -0
- templates/static/js/prism-lang.prism-asciidoc-min.54fdb298.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-asciidoc.ade35498.chunk.js +2 -0
- templates/static/js/prism-lang.prism-asciidoc.ade35498.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-asm6502-min.05003efc.chunk.js +2 -0
- templates/static/js/prism-lang.prism-asm6502-min.05003efc.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-asm6502.cf8397ef.chunk.js +2 -0
- templates/static/js/prism-lang.prism-asm6502.cf8397ef.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-asmatmel-min.1034d5fa.chunk.js +2 -0
- templates/static/js/prism-lang.prism-asmatmel-min.1034d5fa.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-asmatmel.c83259cf.chunk.js +2 -0
- templates/static/js/prism-lang.prism-asmatmel.c83259cf.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-aspnet-min.f8ee6969.chunk.js +2 -0
- templates/static/js/prism-lang.prism-aspnet-min.f8ee6969.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-aspnet.2de5abc4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-aspnet.2de5abc4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-autohotkey-min.0ec6c7db.chunk.js +2 -0
- templates/static/js/prism-lang.prism-autohotkey-min.0ec6c7db.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-autohotkey.ef0bead7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-autohotkey.ef0bead7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-autoit-min.3272cce9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-autoit-min.3272cce9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-autoit.8eaf4e34.chunk.js +2 -0
- templates/static/js/prism-lang.prism-autoit.8eaf4e34.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-avisynth-min.830802b8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-avisynth-min.830802b8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-avisynth.4b1f7b5a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-avisynth.4b1f7b5a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-avro-idl-min.21c25e52.chunk.js +2 -0
- templates/static/js/prism-lang.prism-avro-idl-min.21c25e52.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-avro-idl.be76da0f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-avro-idl.be76da0f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-awk-min.2dc8f888.chunk.js +2 -0
- templates/static/js/prism-lang.prism-awk-min.2dc8f888.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-awk.6cc5619b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-awk.6cc5619b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bash-min.93d917c0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bash-min.93d917c0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bash.22f04791.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bash.22f04791.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-basic-min.b74dcdce.chunk.js +2 -0
- templates/static/js/prism-lang.prism-basic-min.b74dcdce.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-basic.252e7c5e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-basic.252e7c5e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-batch-min.49f824e1.chunk.js +2 -0
- templates/static/js/prism-lang.prism-batch-min.49f824e1.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-batch.861d6904.chunk.js +2 -0
- templates/static/js/prism-lang.prism-batch.861d6904.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bbcode-min.dc82ccb4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bbcode-min.dc82ccb4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bbcode.788ac57c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bbcode.788ac57c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bbj-min.3bd7aa0c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bbj-min.3bd7aa0c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bbj.0d6e0829.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bbj.0d6e0829.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bicep-min.d41caf79.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bicep-min.d41caf79.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bicep.e539462e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bicep.e539462e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-birb-min.c7505d66.chunk.js +2 -0
- templates/static/js/prism-lang.prism-birb-min.c7505d66.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-birb.dd2e4fbe.chunk.js +2 -0
- templates/static/js/prism-lang.prism-birb.dd2e4fbe.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bison-min.d6195df9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bison-min.d6195df9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bison.e88e738b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bison.e88e738b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bnf-min.c0a250e5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bnf-min.c0a250e5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bnf.c90e48bd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bnf.c90e48bd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bqn-min.515efd48.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bqn-min.515efd48.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bqn.82147115.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bqn.82147115.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-brainfuck-min.cb567b27.chunk.js +2 -0
- templates/static/js/prism-lang.prism-brainfuck-min.cb567b27.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-brainfuck.d06a4876.chunk.js +2 -0
- templates/static/js/prism-lang.prism-brainfuck.d06a4876.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-brightscript-min.cc9ff383.chunk.js +2 -0
- templates/static/js/prism-lang.prism-brightscript-min.cc9ff383.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-brightscript.886c8b0e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-brightscript.886c8b0e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bro-min.a7705ef5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bro-min.a7705ef5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bro.bb844ef6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bro.bb844ef6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bsl-min.c05607fa.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bsl-min.c05607fa.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-bsl.cb0d8b8e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-bsl.cb0d8b8e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-c-min.ff401bb0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-c-min.ff401bb0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-c.2a99d5a7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-c.2a99d5a7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cfscript-min.689b87bc.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cfscript-min.689b87bc.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cfscript.d4479056.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cfscript.d4479056.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-chaiscript-min.d2509267.chunk.js +2 -0
- templates/static/js/prism-lang.prism-chaiscript-min.d2509267.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-chaiscript.05ad9b29.chunk.js +2 -0
- templates/static/js/prism-lang.prism-chaiscript.05ad9b29.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cil-min.ccfb903b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cil-min.ccfb903b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cil.dc934ae3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cil.dc934ae3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cilkc-min.3cba448d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cilkc-min.3cba448d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cilkc.1d201a62.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cilkc.1d201a62.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cilkcpp-min.e365877d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cilkcpp-min.e365877d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cilkcpp.2845fa02.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cilkcpp.2845fa02.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-clike-min.fd4fad58.chunk.js +2 -0
- templates/static/js/prism-lang.prism-clike-min.fd4fad58.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-clike.2e23872e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-clike.2e23872e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-clojure-min.63ea9802.chunk.js +2 -0
- templates/static/js/prism-lang.prism-clojure-min.63ea9802.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-clojure.68bf9e7b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-clojure.68bf9e7b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cmake-min.38c99576.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cmake-min.38c99576.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cmake.7f3bcf4e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cmake.7f3bcf4e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cobol-min.d6b81edd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cobol-min.d6b81edd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cobol.8721387e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cobol.8721387e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-coffeescript-min.947a236c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-coffeescript-min.947a236c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-coffeescript.b2f63762.chunk.js +2 -0
- templates/static/js/prism-lang.prism-coffeescript.b2f63762.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-concurnas-min.9c863189.chunk.js +2 -0
- templates/static/js/prism-lang.prism-concurnas-min.9c863189.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-concurnas.7ba94772.chunk.js +2 -0
- templates/static/js/prism-lang.prism-concurnas.7ba94772.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cooklang-min.d5431edc.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cooklang-min.d5431edc.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cooklang.d7e57149.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cooklang.d7e57149.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-coq-min.54aea999.chunk.js +2 -0
- templates/static/js/prism-lang.prism-coq-min.54aea999.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-coq.516120ff.chunk.js +2 -0
- templates/static/js/prism-lang.prism-coq.516120ff.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-core-min.d629bc31.chunk.js +2 -0
- templates/static/js/prism-lang.prism-core-min.d629bc31.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cpp-min.f901498f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cpp-min.f901498f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cpp.e242b3db.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cpp.e242b3db.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-crystal-min.7aa72335.chunk.js +2 -0
- templates/static/js/prism-lang.prism-crystal-min.7aa72335.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-crystal.07beea27.chunk.js +2 -0
- templates/static/js/prism-lang.prism-crystal.07beea27.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-csharp-min.94fc9a8a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-csharp-min.94fc9a8a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-csharp.b22340e8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-csharp.b22340e8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cshtml-min.17ef6b0e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cshtml-min.17ef6b0e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cshtml.2ebe3316.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cshtml.2ebe3316.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-csp-min.a3dc0b52.chunk.js +2 -0
- templates/static/js/prism-lang.prism-csp-min.a3dc0b52.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-csp.feee146b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-csp.feee146b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-css-extras-min.57821a36.chunk.js +2 -0
- templates/static/js/prism-lang.prism-css-extras-min.57821a36.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-css-extras.47c3b0b5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-css-extras.47c3b0b5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-css-min.759304dd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-css-min.759304dd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-css.921fab65.chunk.js +2 -0
- templates/static/js/prism-lang.prism-css.921fab65.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-csv-min.9f92b0a3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-csv-min.9f92b0a3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-csv.106521a9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-csv.106521a9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cue-min.8c80801e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cue-min.8c80801e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cue.10f4a797.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cue.10f4a797.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cypher-min.38cb7c95.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cypher-min.38cb7c95.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-cypher.ac1bc1d8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-cypher.ac1bc1d8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-d-min.b9dd31c7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-d-min.b9dd31c7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-d.b6bad9a8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-d.b6bad9a8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dart-min.18bf8b60.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dart-min.18bf8b60.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dart.c740bbcd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dart.c740bbcd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dataweave-min.e192996e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dataweave-min.e192996e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dataweave.57a80476.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dataweave.57a80476.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dax-min.bc545e08.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dax-min.bc545e08.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dax.567edeb8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dax.567edeb8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dhall-min.72020560.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dhall-min.72020560.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dhall.f88692ff.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dhall.f88692ff.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-diff-min.950c35a3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-diff-min.950c35a3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-diff.0c15ea49.chunk.js +2 -0
- templates/static/js/prism-lang.prism-diff.0c15ea49.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-django-min.f5b598ee.chunk.js +2 -0
- templates/static/js/prism-lang.prism-django-min.f5b598ee.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-django.27744486.chunk.js +2 -0
- templates/static/js/prism-lang.prism-django.27744486.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dns-zone-file-min.3ae5b817.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dns-zone-file-min.3ae5b817.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dns-zone-file.a0c6af49.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dns-zone-file.a0c6af49.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-docker-min.2c6fc93a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-docker-min.2c6fc93a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-docker.ba6b7215.chunk.js +2 -0
- templates/static/js/prism-lang.prism-docker.ba6b7215.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dot-min.d41aabc3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dot-min.d41aabc3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-dot.fe036884.chunk.js +2 -0
- templates/static/js/prism-lang.prism-dot.fe036884.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ebnf-min.8d6d151d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ebnf-min.8d6d151d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ebnf.aa81548c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ebnf.aa81548c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-editorconfig-min.36c897da.chunk.js +2 -0
- templates/static/js/prism-lang.prism-editorconfig-min.36c897da.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-editorconfig.51543530.chunk.js +2 -0
- templates/static/js/prism-lang.prism-editorconfig.51543530.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-eiffel-min.e20a8530.chunk.js +2 -0
- templates/static/js/prism-lang.prism-eiffel-min.e20a8530.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-eiffel.41eb5d28.chunk.js +2 -0
- templates/static/js/prism-lang.prism-eiffel.41eb5d28.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ejs-min.155459ca.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ejs-min.155459ca.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ejs.11379371.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ejs.11379371.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-elixir-min.6f047337.chunk.js +2 -0
- templates/static/js/prism-lang.prism-elixir-min.6f047337.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-elixir.0d23e23e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-elixir.0d23e23e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-elm-min.274929c3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-elm-min.274929c3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-elm.cf68a4c0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-elm.cf68a4c0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-erb-min.bb7efbf0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-erb-min.bb7efbf0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-erb.e9fd8406.chunk.js +2 -0
- templates/static/js/prism-lang.prism-erb.e9fd8406.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-erlang-min.3913fe3d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-erlang-min.3913fe3d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-erlang.58222cdb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-erlang.58222cdb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-etlua-min.02b18aa7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-etlua-min.02b18aa7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-etlua.db223dd2.chunk.js +2 -0
- templates/static/js/prism-lang.prism-etlua.db223dd2.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-excel-formula-min.b28db6c2.chunk.js +2 -0
- templates/static/js/prism-lang.prism-excel-formula-min.b28db6c2.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-excel-formula.72545e03.chunk.js +2 -0
- templates/static/js/prism-lang.prism-excel-formula.72545e03.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-factor-min.756d979b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-factor-min.756d979b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-factor.ed942522.chunk.js +2 -0
- templates/static/js/prism-lang.prism-factor.ed942522.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-false-min.0974a341.chunk.js +2 -0
- templates/static/js/prism-lang.prism-false-min.0974a341.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-false.3c1d28a5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-false.3c1d28a5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-firestore-security-rules-min.f94f4b97.chunk.js +2 -0
- templates/static/js/prism-lang.prism-firestore-security-rules-min.f94f4b97.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-firestore-security-rules.bb6f749f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-firestore-security-rules.bb6f749f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-flow-min.263e730d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-flow-min.263e730d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-flow.43fdcbd4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-flow.43fdcbd4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-fortran-min.c8a28aa9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-fortran-min.c8a28aa9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-fortran.3f5d2665.chunk.js +2 -0
- templates/static/js/prism-lang.prism-fortran.3f5d2665.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-fsharp-min.1bf286d0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-fsharp-min.1bf286d0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-fsharp.27f46321.chunk.js +2 -0
- templates/static/js/prism-lang.prism-fsharp.27f46321.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ftl-min.47ac2ebf.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ftl-min.47ac2ebf.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ftl.c725f271.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ftl.c725f271.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gap-min.6948cc68.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gap-min.6948cc68.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gap.1da8e392.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gap.1da8e392.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gcode-min.e8d37109.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gcode-min.e8d37109.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gcode.58450e81.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gcode.58450e81.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gdscript-min.0fe5ef79.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gdscript-min.0fe5ef79.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gdscript.644e2a66.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gdscript.644e2a66.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gedcom-min.efa74e49.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gedcom-min.efa74e49.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gedcom.1a6d0df2.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gedcom.1a6d0df2.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gettext-min.676210f9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gettext-min.676210f9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gettext.ba3b0a34.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gettext.ba3b0a34.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gherkin-min.18833e5c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gherkin-min.18833e5c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gherkin.c6a2dec9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gherkin.c6a2dec9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-git-min.39b09969.chunk.js +2 -0
- templates/static/js/prism-lang.prism-git-min.39b09969.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-git.ce336a64.chunk.js +2 -0
- templates/static/js/prism-lang.prism-git.ce336a64.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-glsl-min.60e79472.chunk.js +2 -0
- templates/static/js/prism-lang.prism-glsl-min.60e79472.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-glsl.5d9e40cc.chunk.js +2 -0
- templates/static/js/prism-lang.prism-glsl.5d9e40cc.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gml-min.2dd32b15.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gml-min.2dd32b15.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gml.512211eb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gml.512211eb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gn-min.b6e9994f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gn-min.b6e9994f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gn.3dddbe9c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gn.3dddbe9c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-go-min.c572edba.chunk.js +2 -0
- templates/static/js/prism-lang.prism-go-min.c572edba.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-go-module-min.fe059f76.chunk.js +2 -0
- templates/static/js/prism-lang.prism-go-module-min.fe059f76.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-go-module.f2c35343.chunk.js +2 -0
- templates/static/js/prism-lang.prism-go-module.f2c35343.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-go.f71d0910.chunk.js +2 -0
- templates/static/js/prism-lang.prism-go.f71d0910.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gradle-min.fdb17762.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gradle-min.fdb17762.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-gradle.b65d2340.chunk.js +2 -0
- templates/static/js/prism-lang.prism-gradle.b65d2340.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-graphql-min.c49f3590.chunk.js +2 -0
- templates/static/js/prism-lang.prism-graphql-min.c49f3590.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-graphql.8d6cb858.chunk.js +2 -0
- templates/static/js/prism-lang.prism-graphql.8d6cb858.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-groovy-min.e6308daa.chunk.js +2 -0
- templates/static/js/prism-lang.prism-groovy-min.e6308daa.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-groovy.cbf3df06.chunk.js +2 -0
- templates/static/js/prism-lang.prism-groovy.cbf3df06.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-haml-min.2e211fa2.chunk.js +2 -0
- templates/static/js/prism-lang.prism-haml-min.2e211fa2.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-haml.b79fa76b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-haml.b79fa76b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-handlebars-min.5fda0071.chunk.js +2 -0
- templates/static/js/prism-lang.prism-handlebars-min.5fda0071.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-handlebars.15a03269.chunk.js +2 -0
- templates/static/js/prism-lang.prism-handlebars.15a03269.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-haskell-min.743195c8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-haskell-min.743195c8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-haskell.27832c7c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-haskell.27832c7c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-haxe-min.aeba83e1.chunk.js +2 -0
- templates/static/js/prism-lang.prism-haxe-min.aeba83e1.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-haxe.764896bd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-haxe.764896bd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-hcl-min.b1c65ad8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-hcl-min.b1c65ad8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-hcl.15f30dc5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-hcl.15f30dc5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-hlsl-min.fc91ad33.chunk.js +2 -0
- templates/static/js/prism-lang.prism-hlsl-min.fc91ad33.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-hlsl.37c8e85f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-hlsl.37c8e85f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-hoon-min.51ebff9c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-hoon-min.51ebff9c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-hoon.31ca42d7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-hoon.31ca42d7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-hpkp-min.b458562b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-hpkp-min.b458562b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-hpkp.75f17b69.chunk.js +2 -0
- templates/static/js/prism-lang.prism-hpkp.75f17b69.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-hsts-min.2ae1e1de.chunk.js +2 -0
- templates/static/js/prism-lang.prism-hsts-min.2ae1e1de.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-hsts.ad2de606.chunk.js +2 -0
- templates/static/js/prism-lang.prism-hsts.ad2de606.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-http-min.ad650fea.chunk.js +2 -0
- templates/static/js/prism-lang.prism-http-min.ad650fea.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-http.83c7381a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-http.83c7381a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ichigojam-min.70a16b18.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ichigojam-min.70a16b18.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ichigojam.ced37238.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ichigojam.ced37238.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-icon-min.6390fa1b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-icon-min.6390fa1b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-icon.1c95fe9a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-icon.1c95fe9a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-icu-message-format-min.c143e2dd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-icu-message-format-min.c143e2dd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-icu-message-format.c107a4ad.chunk.js +2 -0
- templates/static/js/prism-lang.prism-icu-message-format.c107a4ad.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-idris-min.37660abf.chunk.js +2 -0
- templates/static/js/prism-lang.prism-idris-min.37660abf.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-idris.f4b09da2.chunk.js +2 -0
- templates/static/js/prism-lang.prism-idris.f4b09da2.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-iecst-min.812d4a74.chunk.js +2 -0
- templates/static/js/prism-lang.prism-iecst-min.812d4a74.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-iecst.f9989790.chunk.js +2 -0
- templates/static/js/prism-lang.prism-iecst.f9989790.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ignore-min.d3a41156.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ignore-min.d3a41156.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ignore.335a137b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ignore.335a137b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-inform7-min.599a543f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-inform7-min.599a543f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-inform7.f94b6e9c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-inform7.f94b6e9c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ini-min.0bd38edd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ini-min.0bd38edd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ini.327bf041.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ini.327bf041.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-io-min.b0704eb9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-io-min.b0704eb9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-io.94ea7141.chunk.js +2 -0
- templates/static/js/prism-lang.prism-io.94ea7141.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-j-min.7824ee6a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-j-min.7824ee6a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-j.28358225.chunk.js +2 -0
- templates/static/js/prism-lang.prism-j.28358225.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-java-min.746794b9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-java-min.746794b9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-java.afc042e4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-java.afc042e4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-javadoc-min.8d401352.chunk.js +2 -0
- templates/static/js/prism-lang.prism-javadoc-min.8d401352.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-javadoc.20844397.chunk.js +2 -0
- templates/static/js/prism-lang.prism-javadoc.20844397.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-javadoclike-min.6231c7c7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-javadoclike-min.6231c7c7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-javadoclike.46523b97.chunk.js +2 -0
- templates/static/js/prism-lang.prism-javadoclike.46523b97.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-javascript-min.da684c96.chunk.js +2 -0
- templates/static/js/prism-lang.prism-javascript-min.da684c96.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-javascript.067de2d5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-javascript.067de2d5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-javastacktrace-min.e193df83.chunk.js +2 -0
- templates/static/js/prism-lang.prism-javastacktrace-min.e193df83.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-javastacktrace.71bc6414.chunk.js +2 -0
- templates/static/js/prism-lang.prism-javastacktrace.71bc6414.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jexl-min.fe2ad901.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jexl-min.fe2ad901.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jexl.789932eb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jexl.789932eb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jolie-min.f3166ea4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jolie-min.f3166ea4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jolie.c2c35e8d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jolie.c2c35e8d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jq-min.7ee05fa6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jq-min.7ee05fa6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jq.66e92f60.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jq.66e92f60.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-js-extras-min.914370ee.chunk.js +2 -0
- templates/static/js/prism-lang.prism-js-extras-min.914370ee.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-js-extras.0d324e5e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-js-extras.0d324e5e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-js-templates-min.25bd69c7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-js-templates-min.25bd69c7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-js-templates.7df73cbc.chunk.js +2 -0
- templates/static/js/prism-lang.prism-js-templates.7df73cbc.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jsdoc-min.b5c1a957.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jsdoc-min.b5c1a957.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jsdoc.b9878b49.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jsdoc.b9878b49.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-json-min.eb7ed7e5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-json-min.eb7ed7e5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-json.66c7b006.chunk.js +2 -0
- templates/static/js/prism-lang.prism-json.66c7b006.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-json5-min.5aa59492.chunk.js +2 -0
- templates/static/js/prism-lang.prism-json5-min.5aa59492.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-json5.8a3d3c6a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-json5.8a3d3c6a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jsonp-min.0b247549.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jsonp-min.0b247549.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jsonp.f17fc6cc.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jsonp.f17fc6cc.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jsstacktrace-min.e2b92805.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jsstacktrace-min.e2b92805.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jsstacktrace.6c5f50f4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jsstacktrace.6c5f50f4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jsx-min.6a0b1bba.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jsx-min.6a0b1bba.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-jsx.24c9a5ea.chunk.js +2 -0
- templates/static/js/prism-lang.prism-jsx.24c9a5ea.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-julia-min.14a95223.chunk.js +2 -0
- templates/static/js/prism-lang.prism-julia-min.14a95223.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-julia.752566b7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-julia.752566b7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-keepalived-min.e9b783c8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-keepalived-min.e9b783c8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-keepalived.869caf58.chunk.js +2 -0
- templates/static/js/prism-lang.prism-keepalived.869caf58.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-keyman-min.1be52fc9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-keyman-min.1be52fc9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-keyman.f973c00f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-keyman.f973c00f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-kotlin-min.7fbecdf6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-kotlin-min.7fbecdf6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-kotlin.cb0aa18e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-kotlin.cb0aa18e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-kumir-min.8671853f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-kumir-min.8671853f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-kumir.caf4815a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-kumir.caf4815a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-kusto-min.440692b6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-kusto-min.440692b6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-kusto.16750127.chunk.js +2 -0
- templates/static/js/prism-lang.prism-kusto.16750127.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-latex-min.231e73c9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-latex-min.231e73c9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-latex.a52b5582.chunk.js +2 -0
- templates/static/js/prism-lang.prism-latex.a52b5582.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-latte-min.045104dd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-latte-min.045104dd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-latte.80c8e304.chunk.js +2 -0
- templates/static/js/prism-lang.prism-latte.80c8e304.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-less-min.a5e2284b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-less-min.a5e2284b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-less.48f5f982.chunk.js +2 -0
- templates/static/js/prism-lang.prism-less.48f5f982.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-lilypond-min.f5dcfab7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-lilypond-min.f5dcfab7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-lilypond.3a28a8d8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-lilypond.3a28a8d8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-linker-script-min.9abfeaf9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-linker-script-min.9abfeaf9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-linker-script.e55ecfeb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-linker-script.e55ecfeb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-liquid-min.3413cae5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-liquid-min.3413cae5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-liquid.41e5e081.chunk.js +2 -0
- templates/static/js/prism-lang.prism-liquid.41e5e081.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-lisp-min.62a51474.chunk.js +2 -0
- templates/static/js/prism-lang.prism-lisp-min.62a51474.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-lisp.fd93779f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-lisp.fd93779f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-livescript-min.43325730.chunk.js +2 -0
- templates/static/js/prism-lang.prism-livescript-min.43325730.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-livescript.13577a29.chunk.js +2 -0
- templates/static/js/prism-lang.prism-livescript.13577a29.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-llvm-min.b421daf5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-llvm-min.b421daf5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-llvm.4e0ee5cb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-llvm.4e0ee5cb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-log-min.f7eac1f6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-log-min.f7eac1f6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-log.2f9f930e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-log.2f9f930e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-lolcode-min.e4aae47f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-lolcode-min.e4aae47f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-lolcode.e3df3c09.chunk.js +2 -0
- templates/static/js/prism-lang.prism-lolcode.e3df3c09.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-lua-min.48df0f01.chunk.js +2 -0
- templates/static/js/prism-lang.prism-lua-min.48df0f01.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-lua.d1797f23.chunk.js +2 -0
- templates/static/js/prism-lang.prism-lua.d1797f23.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-magma-min.f6d85152.chunk.js +2 -0
- templates/static/js/prism-lang.prism-magma-min.f6d85152.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-magma.9ebba92b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-magma.9ebba92b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-makefile-min.bb1b1c1b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-makefile-min.bb1b1c1b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-makefile.e9e524b0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-makefile.e9e524b0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-markdown-min.da04eca2.chunk.js +2 -0
- templates/static/js/prism-lang.prism-markdown-min.da04eca2.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-markdown.4ff5b11c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-markdown.4ff5b11c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-markup-min.707fa0d3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-markup-min.707fa0d3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-markup-templating-min.2e1499ac.chunk.js +2 -0
- templates/static/js/prism-lang.prism-markup-templating-min.2e1499ac.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-markup-templating.ad9c4fa4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-markup-templating.ad9c4fa4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-markup.bb17b142.chunk.js +2 -0
- templates/static/js/prism-lang.prism-markup.bb17b142.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-mata-min.1ce39616.chunk.js +2 -0
- templates/static/js/prism-lang.prism-mata-min.1ce39616.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-mata.c45e1c73.chunk.js +2 -0
- templates/static/js/prism-lang.prism-mata.c45e1c73.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-matlab-min.5d79975c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-matlab-min.5d79975c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-matlab.abe963df.chunk.js +2 -0
- templates/static/js/prism-lang.prism-matlab.abe963df.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-maxscript-min.056931c5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-maxscript-min.056931c5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-maxscript.04352a9d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-maxscript.04352a9d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-mel-min.77b1563b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-mel-min.77b1563b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-mel.a7c2161e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-mel.a7c2161e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-mermaid-min.235ac98f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-mermaid-min.235ac98f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-mermaid.ae6cf068.chunk.js +2 -0
- templates/static/js/prism-lang.prism-mermaid.ae6cf068.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-metafont-min.18572292.chunk.js +2 -0
- templates/static/js/prism-lang.prism-metafont-min.18572292.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-metafont.28e7e134.chunk.js +2 -0
- templates/static/js/prism-lang.prism-metafont.28e7e134.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-mizar-min.3520146c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-mizar-min.3520146c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-mizar.7bbde71b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-mizar.7bbde71b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-mongodb-min.1ebea930.chunk.js +2 -0
- templates/static/js/prism-lang.prism-mongodb-min.1ebea930.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-mongodb.42c6759b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-mongodb.42c6759b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-monkey-min.c587dd2b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-monkey-min.c587dd2b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-monkey.09e7fd9e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-monkey.09e7fd9e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-moonscript-min.ef5cd0fe.chunk.js +2 -0
- templates/static/js/prism-lang.prism-moonscript-min.ef5cd0fe.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-moonscript.08bf2206.chunk.js +2 -0
- templates/static/js/prism-lang.prism-moonscript.08bf2206.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-n1ql-min.87bdcc49.chunk.js +2 -0
- templates/static/js/prism-lang.prism-n1ql-min.87bdcc49.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-n1ql.98760078.chunk.js +2 -0
- templates/static/js/prism-lang.prism-n1ql.98760078.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-n4js-min.6fbcedef.chunk.js +2 -0
- templates/static/js/prism-lang.prism-n4js-min.6fbcedef.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-n4js.5370b944.chunk.js +2 -0
- templates/static/js/prism-lang.prism-n4js.5370b944.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nand2tetris-hdl-min.bc9e8cc4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nand2tetris-hdl-min.bc9e8cc4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nand2tetris-hdl.3ec27498.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nand2tetris-hdl.3ec27498.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-naniscript-min.2a4d2e26.chunk.js +2 -0
- templates/static/js/prism-lang.prism-naniscript-min.2a4d2e26.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-naniscript.bb16b5f3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-naniscript.bb16b5f3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nasm-min.bbea424d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nasm-min.bbea424d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nasm.0934991e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nasm.0934991e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-neon-min.f1103bd5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-neon-min.f1103bd5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-neon.6f17d108.chunk.js +2 -0
- templates/static/js/prism-lang.prism-neon.6f17d108.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nevod-min.aa57eaa6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nevod-min.aa57eaa6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nevod.7e9eea02.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nevod.7e9eea02.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nginx-min.c78d1167.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nginx-min.c78d1167.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nginx.3084a116.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nginx.3084a116.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nim-min.041a46d6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nim-min.041a46d6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nim.83667ea3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nim.83667ea3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nix-min.2711e56c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nix-min.2711e56c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nix.0095737c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nix.0095737c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nsis-min.409b04bb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nsis-min.409b04bb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-nsis.7b3a8423.chunk.js +2 -0
- templates/static/js/prism-lang.prism-nsis.7b3a8423.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-objectivec-min.73ff0bfc.chunk.js +2 -0
- templates/static/js/prism-lang.prism-objectivec-min.73ff0bfc.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-objectivec.212fdc6f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-objectivec.212fdc6f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ocaml-min.5fe31bd0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ocaml-min.5fe31bd0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ocaml.7e69c02f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ocaml.7e69c02f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-odin-min.434dfea9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-odin-min.434dfea9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-odin.95d25af4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-odin.95d25af4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-opencl-min.1a1d1e75.chunk.js +2 -0
- templates/static/js/prism-lang.prism-opencl-min.1a1d1e75.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-opencl.75bd9d1c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-opencl.75bd9d1c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-openqasm-min.58400273.chunk.js +2 -0
- templates/static/js/prism-lang.prism-openqasm-min.58400273.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-openqasm.33fc71f4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-openqasm.33fc71f4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-oz-min.62eb2f85.chunk.js +2 -0
- templates/static/js/prism-lang.prism-oz-min.62eb2f85.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-oz.b01a4b07.chunk.js +2 -0
- templates/static/js/prism-lang.prism-oz.b01a4b07.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-parigp-min.9f8edd2b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-parigp-min.9f8edd2b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-parigp.8613be48.chunk.js +2 -0
- templates/static/js/prism-lang.prism-parigp.8613be48.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-parser-min.a03633dc.chunk.js +2 -0
- templates/static/js/prism-lang.prism-parser-min.a03633dc.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-parser.be152df5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-parser.be152df5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-pascal-min.18294099.chunk.js +2 -0
- templates/static/js/prism-lang.prism-pascal-min.18294099.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-pascal.0f0ea939.chunk.js +2 -0
- templates/static/js/prism-lang.prism-pascal.0f0ea939.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-pascaligo-min.890b2126.chunk.js +2 -0
- templates/static/js/prism-lang.prism-pascaligo-min.890b2126.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-pascaligo.d6799c75.chunk.js +2 -0
- templates/static/js/prism-lang.prism-pascaligo.d6799c75.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-pcaxis-min.335cfdb6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-pcaxis-min.335cfdb6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-pcaxis.c29cac71.chunk.js +2 -0
- templates/static/js/prism-lang.prism-pcaxis.c29cac71.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-peoplecode-min.4639e347.chunk.js +2 -0
- templates/static/js/prism-lang.prism-peoplecode-min.4639e347.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-peoplecode.0f4f4265.chunk.js +2 -0
- templates/static/js/prism-lang.prism-peoplecode.0f4f4265.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-perl-min.1f6104eb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-perl-min.1f6104eb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-perl.74c2be3b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-perl.74c2be3b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-php-extras-min.cf65cb04.chunk.js +2 -0
- templates/static/js/prism-lang.prism-php-extras-min.cf65cb04.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-php-extras.2737d254.chunk.js +2 -0
- templates/static/js/prism-lang.prism-php-extras.2737d254.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-php-min.8f54fe81.chunk.js +2 -0
- templates/static/js/prism-lang.prism-php-min.8f54fe81.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-php.1eec6e9f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-php.1eec6e9f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-phpdoc-min.6067ec7a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-phpdoc-min.6067ec7a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-phpdoc.2870f158.chunk.js +2 -0
- templates/static/js/prism-lang.prism-phpdoc.2870f158.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-plant-uml-min.d86737b0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-plant-uml-min.d86737b0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-plant-uml.ef75482b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-plant-uml.ef75482b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-plsql-min.a0dd122e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-plsql-min.a0dd122e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-plsql.da10fc6d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-plsql.da10fc6d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-powerquery-min.bc2067ab.chunk.js +2 -0
- templates/static/js/prism-lang.prism-powerquery-min.bc2067ab.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-powerquery.c60f7c38.chunk.js +2 -0
- templates/static/js/prism-lang.prism-powerquery.c60f7c38.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-powershell-min.b0265d38.chunk.js +2 -0
- templates/static/js/prism-lang.prism-powershell-min.b0265d38.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-powershell.1445cd48.chunk.js +2 -0
- templates/static/js/prism-lang.prism-powershell.1445cd48.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-processing-min.bc2540c3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-processing-min.bc2540c3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-processing.035ea667.chunk.js +2 -0
- templates/static/js/prism-lang.prism-processing.035ea667.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-prolog-min.fb4b9a79.chunk.js +2 -0
- templates/static/js/prism-lang.prism-prolog-min.fb4b9a79.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-prolog.bb2c5272.chunk.js +2 -0
- templates/static/js/prism-lang.prism-prolog.bb2c5272.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-promql-min.9646da0a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-promql-min.9646da0a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-promql.abf08253.chunk.js +2 -0
- templates/static/js/prism-lang.prism-promql.abf08253.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-properties-min.fee5d65f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-properties-min.fee5d65f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-properties.010918af.chunk.js +2 -0
- templates/static/js/prism-lang.prism-properties.010918af.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-protobuf-min.63e69574.chunk.js +2 -0
- templates/static/js/prism-lang.prism-protobuf-min.63e69574.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-protobuf.19123c74.chunk.js +2 -0
- templates/static/js/prism-lang.prism-protobuf.19123c74.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-psl-min.a244c98d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-psl-min.a244c98d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-psl.cb00a93f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-psl.cb00a93f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-pug-min.f5d4aa1a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-pug-min.f5d4aa1a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-pug.6b10387c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-pug.6b10387c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-puppet-min.4c1f6aa7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-puppet-min.4c1f6aa7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-puppet.ef52ad7c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-puppet.ef52ad7c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-pure-min.857be82f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-pure-min.857be82f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-pure.0c7d2a18.chunk.js +2 -0
- templates/static/js/prism-lang.prism-pure.0c7d2a18.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-purebasic-min.8c10b08d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-purebasic-min.8c10b08d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-purebasic.4c787c6b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-purebasic.4c787c6b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-purescript-min.8066c6b1.chunk.js +2 -0
- templates/static/js/prism-lang.prism-purescript-min.8066c6b1.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-purescript.f9970c7d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-purescript.f9970c7d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-python-min.0bc604c2.chunk.js +2 -0
- templates/static/js/prism-lang.prism-python-min.0bc604c2.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-python.4b6baa55.chunk.js +2 -0
- templates/static/js/prism-lang.prism-python.4b6baa55.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-q-min.b7182dfa.chunk.js +2 -0
- templates/static/js/prism-lang.prism-q-min.b7182dfa.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-q.ded7eb21.chunk.js +2 -0
- templates/static/js/prism-lang.prism-q.ded7eb21.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-qml-min.4749a93a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-qml-min.4749a93a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-qml.78184977.chunk.js +2 -0
- templates/static/js/prism-lang.prism-qml.78184977.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-qore-min.cb501642.chunk.js +2 -0
- templates/static/js/prism-lang.prism-qore-min.cb501642.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-qore.33cad9ac.chunk.js +2 -0
- templates/static/js/prism-lang.prism-qore.33cad9ac.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-qsharp-min.1c8c9a02.chunk.js +2 -0
- templates/static/js/prism-lang.prism-qsharp-min.1c8c9a02.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-qsharp.4cac4916.chunk.js +2 -0
- templates/static/js/prism-lang.prism-qsharp.4cac4916.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-r-min.9d91dbd3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-r-min.9d91dbd3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-r.12a023c7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-r.12a023c7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-racket-min.6ee79af0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-racket-min.6ee79af0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-racket.7a2b727e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-racket.7a2b727e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-reason-min.81717e7e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-reason-min.81717e7e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-reason.787eefa0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-reason.787eefa0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-regex-min.29bf020d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-regex-min.29bf020d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-regex.3972ce06.chunk.js +2 -0
- templates/static/js/prism-lang.prism-regex.3972ce06.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-rego-min.433e558e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-rego-min.433e558e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-rego.156e3dcb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-rego.156e3dcb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-renpy-min.af09fc83.chunk.js +2 -0
- templates/static/js/prism-lang.prism-renpy-min.af09fc83.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-renpy.4b4780a8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-renpy.4b4780a8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-rescript-min.8693c431.chunk.js +2 -0
- templates/static/js/prism-lang.prism-rescript-min.8693c431.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-rescript.3f8d2e5e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-rescript.3f8d2e5e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-rest-min.2f6e679c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-rest-min.2f6e679c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-rest.891635c9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-rest.891635c9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-rip-min.7f699925.chunk.js +2 -0
- templates/static/js/prism-lang.prism-rip-min.7f699925.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-rip.eebb0be0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-rip.eebb0be0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-roboconf-min.02a1c9e6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-roboconf-min.02a1c9e6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-roboconf.1976c61e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-roboconf.1976c61e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-robotframework-min.74691ea5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-robotframework-min.74691ea5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-robotframework.ea8dd129.chunk.js +2 -0
- templates/static/js/prism-lang.prism-robotframework.ea8dd129.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ruby-min.bd383425.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ruby-min.bd383425.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-ruby.2256a65b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-ruby.2256a65b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-rust-min.29d74468.chunk.js +2 -0
- templates/static/js/prism-lang.prism-rust-min.29d74468.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-rust.86773fa4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-rust.86773fa4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sas-min.4ce37728.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sas-min.4ce37728.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sas.b299dd1c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sas.b299dd1c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sass-min.950a53c0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sass-min.950a53c0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sass.a0b28a01.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sass.a0b28a01.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-scala-min.5db3b94b.chunk.js +2 -0
- templates/static/js/prism-lang.prism-scala-min.5db3b94b.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-scala.4ba1ea05.chunk.js +2 -0
- templates/static/js/prism-lang.prism-scala.4ba1ea05.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-scheme-min.f38c116e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-scheme-min.f38c116e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-scheme.ab33d3fb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-scheme.ab33d3fb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-scss-min.c2c60ea7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-scss-min.c2c60ea7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-scss.65f18dd0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-scss.65f18dd0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-shell-session-min.7ec9e8fe.chunk.js +2 -0
- templates/static/js/prism-lang.prism-shell-session-min.7ec9e8fe.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-shell-session.ab189baf.chunk.js +2 -0
- templates/static/js/prism-lang.prism-shell-session.ab189baf.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-smali-min.19745053.chunk.js +2 -0
- templates/static/js/prism-lang.prism-smali-min.19745053.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-smali.bc175747.chunk.js +2 -0
- templates/static/js/prism-lang.prism-smali.bc175747.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-smalltalk-min.1d36db97.chunk.js +2 -0
- templates/static/js/prism-lang.prism-smalltalk-min.1d36db97.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-smalltalk.b6059f66.chunk.js +2 -0
- templates/static/js/prism-lang.prism-smalltalk.b6059f66.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-smarty-min.4d531407.chunk.js +2 -0
- templates/static/js/prism-lang.prism-smarty-min.4d531407.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-smarty.72e1bd5f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-smarty.72e1bd5f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sml-min.6460ab86.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sml-min.6460ab86.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sml.4e29415d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sml.4e29415d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-solidity-min.93b00ca4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-solidity-min.93b00ca4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-solidity.59878700.chunk.js +2 -0
- templates/static/js/prism-lang.prism-solidity.59878700.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-solution-file-min.058a407f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-solution-file-min.058a407f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-solution-file.b2d426a5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-solution-file.b2d426a5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-soy-min.286b0cde.chunk.js +2 -0
- templates/static/js/prism-lang.prism-soy-min.286b0cde.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-soy.cbf1f08c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-soy.cbf1f08c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sparql-min.2e21b2fe.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sparql-min.2e21b2fe.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sparql.b924db23.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sparql.b924db23.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-splunk-spl-min.422a38fe.chunk.js +2 -0
- templates/static/js/prism-lang.prism-splunk-spl-min.422a38fe.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-splunk-spl.13446336.chunk.js +2 -0
- templates/static/js/prism-lang.prism-splunk-spl.13446336.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sqf-min.fa379436.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sqf-min.fa379436.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sqf.b9d387a5.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sqf.b9d387a5.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sql-min.318853bb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sql-min.318853bb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-sql.e6625625.chunk.js +2 -0
- templates/static/js/prism-lang.prism-sql.e6625625.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-squirrel-min.5736a54d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-squirrel-min.5736a54d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-squirrel.15a6c5b8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-squirrel.15a6c5b8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-stan-min.ee4e1c95.chunk.js +2 -0
- templates/static/js/prism-lang.prism-stan-min.ee4e1c95.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-stan.8f0f2f32.chunk.js +2 -0
- templates/static/js/prism-lang.prism-stan.8f0f2f32.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-stata-min.c5321f2e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-stata-min.c5321f2e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-stata.2c5c7170.chunk.js +2 -0
- templates/static/js/prism-lang.prism-stata.2c5c7170.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-stylus-min.f39a3f28.chunk.js +2 -0
- templates/static/js/prism-lang.prism-stylus-min.f39a3f28.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-stylus.c05f795f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-stylus.c05f795f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-supercollider-min.d88afae3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-supercollider-min.d88afae3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-supercollider.568ec355.chunk.js +2 -0
- templates/static/js/prism-lang.prism-supercollider.568ec355.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-swift-min.ff9ad682.chunk.js +2 -0
- templates/static/js/prism-lang.prism-swift-min.ff9ad682.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-swift.dd8516d2.chunk.js +2 -0
- templates/static/js/prism-lang.prism-swift.dd8516d2.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-systemd-min.fbc68512.chunk.js +2 -0
- templates/static/js/prism-lang.prism-systemd-min.fbc68512.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-systemd.55e07172.chunk.js +2 -0
- templates/static/js/prism-lang.prism-systemd.55e07172.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-t4-cs-min.042974dd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-t4-cs-min.042974dd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-t4-cs.62d00e56.chunk.js +2 -0
- templates/static/js/prism-lang.prism-t4-cs.62d00e56.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-t4-templating-min.7cd1a4f8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-t4-templating-min.7cd1a4f8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-t4-templating.f15a41b1.chunk.js +2 -0
- templates/static/js/prism-lang.prism-t4-templating.f15a41b1.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-t4-vb-min.7c9fbd5c.chunk.js +2 -0
- templates/static/js/prism-lang.prism-t4-vb-min.7c9fbd5c.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-t4-vb.c2b3c9cc.chunk.js +2 -0
- templates/static/js/prism-lang.prism-t4-vb.c2b3c9cc.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-tap-min.7e0fffd9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-tap-min.7e0fffd9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-tap.68d719c2.chunk.js +2 -0
- templates/static/js/prism-lang.prism-tap.68d719c2.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-tcl-min.5247eae9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-tcl-min.5247eae9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-tcl.dba56ac3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-tcl.dba56ac3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-textile-min.fd44c489.chunk.js +2 -0
- templates/static/js/prism-lang.prism-textile-min.fd44c489.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-textile.d66eff02.chunk.js +2 -0
- templates/static/js/prism-lang.prism-textile.d66eff02.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-toml-min.3b693bc2.chunk.js +2 -0
- templates/static/js/prism-lang.prism-toml-min.3b693bc2.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-toml.8106d51f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-toml.8106d51f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-tremor-min.40b6b460.chunk.js +2 -0
- templates/static/js/prism-lang.prism-tremor-min.40b6b460.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-tremor.c54737d1.chunk.js +2 -0
- templates/static/js/prism-lang.prism-tremor.c54737d1.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-tsx-min.df8f5052.chunk.js +2 -0
- templates/static/js/prism-lang.prism-tsx-min.df8f5052.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-tsx.4bc64bfd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-tsx.4bc64bfd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-tt2-min.652a9b04.chunk.js +2 -0
- templates/static/js/prism-lang.prism-tt2-min.652a9b04.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-tt2.688b595a.chunk.js +2 -0
- templates/static/js/prism-lang.prism-tt2.688b595a.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-turtle-min.0689dfc6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-turtle-min.0689dfc6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-turtle.169ad2e1.chunk.js +2 -0
- templates/static/js/prism-lang.prism-turtle.169ad2e1.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-twig-min.d801c19d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-twig-min.d801c19d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-twig.70bb63f3.chunk.js +2 -0
- templates/static/js/prism-lang.prism-twig.70bb63f3.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-typescript-min.22b7217d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-typescript-min.22b7217d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-typescript.b960b87f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-typescript.b960b87f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-typoscript-min.19ba7aab.chunk.js +2 -0
- templates/static/js/prism-lang.prism-typoscript-min.19ba7aab.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-typoscript.b47cbfeb.chunk.js +2 -0
- templates/static/js/prism-lang.prism-typoscript.b47cbfeb.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-unrealscript-min.0063b0fd.chunk.js +2 -0
- templates/static/js/prism-lang.prism-unrealscript-min.0063b0fd.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-unrealscript.9f97da34.chunk.js +2 -0
- templates/static/js/prism-lang.prism-unrealscript.9f97da34.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-uorazor-min.d2dc8f62.chunk.js +2 -0
- templates/static/js/prism-lang.prism-uorazor-min.d2dc8f62.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-uorazor.141f2dbe.chunk.js +2 -0
- templates/static/js/prism-lang.prism-uorazor.141f2dbe.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-uri-min.91b7fb32.chunk.js +2 -0
- templates/static/js/prism-lang.prism-uri-min.91b7fb32.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-uri.ffb09261.chunk.js +2 -0
- templates/static/js/prism-lang.prism-uri.ffb09261.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-v-min.e795fc52.chunk.js +2 -0
- templates/static/js/prism-lang.prism-v-min.e795fc52.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-v.56e172c6.chunk.js +2 -0
- templates/static/js/prism-lang.prism-v.56e172c6.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-vala-min.adf10709.chunk.js +2 -0
- templates/static/js/prism-lang.prism-vala-min.adf10709.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-vala.89ed1c33.chunk.js +2 -0
- templates/static/js/prism-lang.prism-vala.89ed1c33.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-vbnet-min.c05eb1c4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-vbnet-min.c05eb1c4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-vbnet.0ae31e08.chunk.js +2 -0
- templates/static/js/prism-lang.prism-vbnet.0ae31e08.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-velocity-min.8f5479af.chunk.js +2 -0
- templates/static/js/prism-lang.prism-velocity-min.8f5479af.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-velocity.17a11a92.chunk.js +2 -0
- templates/static/js/prism-lang.prism-velocity.17a11a92.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-verilog-min.7361f391.chunk.js +2 -0
- templates/static/js/prism-lang.prism-verilog-min.7361f391.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-verilog.384c7842.chunk.js +2 -0
- templates/static/js/prism-lang.prism-verilog.384c7842.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-vhdl-min.777ce3d9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-vhdl-min.777ce3d9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-vhdl.c34a850e.chunk.js +2 -0
- templates/static/js/prism-lang.prism-vhdl.c34a850e.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-vim-min.d755e765.chunk.js +2 -0
- templates/static/js/prism-lang.prism-vim-min.d755e765.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-vim.0053bf55.chunk.js +2 -0
- templates/static/js/prism-lang.prism-vim.0053bf55.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-visual-basic-min.ef8bda02.chunk.js +2 -0
- templates/static/js/prism-lang.prism-visual-basic-min.ef8bda02.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-visual-basic.d8bbd4c0.chunk.js +2 -0
- templates/static/js/prism-lang.prism-visual-basic.d8bbd4c0.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-warpscript-min.a8a0c273.chunk.js +2 -0
- templates/static/js/prism-lang.prism-warpscript-min.a8a0c273.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-warpscript.501297a4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-warpscript.501297a4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-wasm-min.220de8e9.chunk.js +2 -0
- templates/static/js/prism-lang.prism-wasm-min.220de8e9.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-wasm.b9dc0162.chunk.js +2 -0
- templates/static/js/prism-lang.prism-wasm.b9dc0162.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-web-idl-min.56af0018.chunk.js +2 -0
- templates/static/js/prism-lang.prism-web-idl-min.56af0018.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-web-idl.5b1b4d69.chunk.js +2 -0
- templates/static/js/prism-lang.prism-web-idl.5b1b4d69.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-wgsl-min.6c0a8576.chunk.js +2 -0
- templates/static/js/prism-lang.prism-wgsl-min.6c0a8576.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-wgsl.aec58ed4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-wgsl.aec58ed4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-wiki-min.6b9cf9ef.chunk.js +2 -0
- templates/static/js/prism-lang.prism-wiki-min.6b9cf9ef.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-wiki.aa2a3b55.chunk.js +2 -0
- templates/static/js/prism-lang.prism-wiki.aa2a3b55.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-wolfram-min.56285306.chunk.js +2 -0
- templates/static/js/prism-lang.prism-wolfram-min.56285306.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-wolfram.17e0a73d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-wolfram.17e0a73d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-wren-min.4ec162a7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-wren-min.4ec162a7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-wren.1315d3b1.chunk.js +2 -0
- templates/static/js/prism-lang.prism-wren.1315d3b1.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-xeora-min.8bce37c4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-xeora-min.8bce37c4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-xeora.9e8becc8.chunk.js +2 -0
- templates/static/js/prism-lang.prism-xeora.9e8becc8.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-xml-doc-min.10302a21.chunk.js +2 -0
- templates/static/js/prism-lang.prism-xml-doc-min.10302a21.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-xml-doc.aec98047.chunk.js +2 -0
- templates/static/js/prism-lang.prism-xml-doc.aec98047.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-xojo-min.8037f23f.chunk.js +2 -0
- templates/static/js/prism-lang.prism-xojo-min.8037f23f.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-xojo.7e297a7d.chunk.js +2 -0
- templates/static/js/prism-lang.prism-xojo.7e297a7d.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-xquery-min.87645abe.chunk.js +2 -0
- templates/static/js/prism-lang.prism-xquery-min.87645abe.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-xquery.eb87b7ac.chunk.js +2 -0
- templates/static/js/prism-lang.prism-xquery.eb87b7ac.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-yaml-min.0c8d7aa1.chunk.js +2 -0
- templates/static/js/prism-lang.prism-yaml-min.0c8d7aa1.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-yaml.9492abe7.chunk.js +2 -0
- templates/static/js/prism-lang.prism-yaml.9492abe7.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-yang-min.69aeb249.chunk.js +2 -0
- templates/static/js/prism-lang.prism-yang-min.69aeb249.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-yang.abdc0f44.chunk.js +2 -0
- templates/static/js/prism-lang.prism-yang.abdc0f44.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-zig-min.752935a4.chunk.js +2 -0
- templates/static/js/prism-lang.prism-zig-min.752935a4.chunk.js.map +1 -0
- templates/static/js/prism-lang.prism-zig.7d37c247.chunk.js +2 -0
- templates/static/js/prism-lang.prism-zig.7d37c247.chunk.js.map +1 -0
- {ziya-0.1.48.dist-info → ziya-0.1.49.dist-info}/METADATA +9 -8
- ziya-0.1.49.dist-info/RECORD +1276 -0
- app/utils/llm_constants.py +0 -34
- templates/static/css/main.f447c982.css.map +0 -1
- templates/static/js/main.cb581e8d.js +0 -3
- templates/static/js/main.cb581e8d.js.LICENSE.txt +0 -129
- templates/static/js/main.cb581e8d.js.map +0 -1
- ziya-0.1.48.dist-info/RECORD +0 -39
- {ziya-0.1.48.dist-info → ziya-0.1.49.dist-info}/LICENSE +0 -0
- {ziya-0.1.48.dist-info → ziya-0.1.49.dist-info}/WHEEL +0 -0
- {ziya-0.1.48.dist-info → ziya-0.1.49.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 53653.56c7ad1f.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[53653],{66158:(t,e,n)=>{n.d(e,{Ay:()=>rX});var r={};n.r(r),n.d(r,{aggregate:()=>Ro,bin:()=>zo,collect:()=>Lo,compare:()=>Io,countpattern:()=>Uo,cross:()=>qo,density:()=>Yo,dotbin:()=>Jo,expression:()=>Qo,extent:()=>ta,facet:()=>na,field:()=>ra,filter:()=>oa,flatten:()=>aa,fold:()=>sa,formula:()=>ca,generate:()=>ua,impute:()=>da,joinaggregate:()=>ha,kde:()=>pa,key:()=>ma,load:()=>va,lookup:()=>ba,multiextent:()=>Aa,multivalues:()=>_a,params:()=>ka,pivot:()=>Ea,prefacet:()=>Fa,project:()=>Da,proxy:()=>Ca,quantile:()=>Ma,relay:()=>Sa,sample:()=>Ta,sequence:()=>Na,sieve:()=>Oa,subflow:()=>ea,timeunit:()=>Ba,tupleindex:()=>za,values:()=>Pa,window:()=>qa});var i={};n.r(i),n.d(i,{bound:()=>Tp,identifier:()=>Bp,mark:()=>Rp,overlap:()=>zp,render:()=>Wp,viewlayout:()=>fm});var o={};n.r(o),n.d(o,{axisticks:()=>mm,datajoin:()=>gm,encode:()=>ym,legendentries:()=>bm,linkpath:()=>km,pie:()=>Mm,scale:()=>Nm,sortitems:()=>zm,stack:()=>Um});var a={};n.r(a),n.d(a,{contour:()=>Wg,geojson:()=>Yg,geopath:()=>Vg,geopoint:()=>$g,geoshape:()=>Xg,graticule:()=>Zg,heatmap:()=>Jg,isocontour:()=>Og,kde2d:()=>jg,projection:()=>Kg});var s={};n.r(s),n.d(s,{force:()=>hv});var c={};n.r(c),n.d(c,{nest:()=>Nv,pack:()=>Lv,partition:()=>jv,stratify:()=>Uv,tree:()=>Hv,treelinks:()=>Gv,treemap:()=>$v});var u={};n.r(u),n.d(u,{label:()=>my});var l={};n.r(l),n.d(l,{loess:()=>vy,regression:()=>by});var f={};n.r(f),n.d(f,{voronoi:()=>xy});var d={};n.r(d),n.d(d,{wordcloud:()=>Py});var h={};n.r(h),n.d(h,{crossfilter:()=>Gy,resolvefilter:()=>Yy});var p={};n.r(p),n.d(p,{Bounds:()=>rl,CanvasHandler:()=>Ud,CanvasRenderer:()=>$d,DATE:()=>Me,DAY:()=>Se,DAYOFYEAR:()=>Te,Dataflow:()=>ci,Debug:()=>j,Error:()=>P,EventStream:()=>Vr,Gradient:()=>su,GroupItem:()=>ol,HOURS:()=>Ne,Handler:()=>yd,HybridHandler:()=>Ih,HybridRenderer:()=>Lh,Info:()=>I,Item:()=>il,MILLISECONDS:()=>Re,MINUTES:()=>Oe,MONTH:()=>De,Marks:()=>nd,MultiPulse:()=>ri,None:()=>z,Operator:()=>Hr,Parameters:()=>Ur,Pulse:()=>Kr,QUARTER:()=>Fe,RenderType:()=>Wh,Renderer:()=>Ad,ResourceLoader:()=>al,SECONDS:()=>Be,SVGHandler:()=>Zd,SVGRenderer:()=>_h,SVGStringRenderer:()=>Rh,Scenegraph:()=>ld,TIME_UNITS:()=>ze,Transform:()=>li,View:()=>H_,WEEK:()=>Ce,Warn:()=>L,YEAR:()=>Ee,accessor:()=>A,accessorFields:()=>_,accessorName:()=>x,array:()=>ht,ascending:()=>yt,bandwidthNRD:()=>xi,bin:()=>_i,bootstrapCI:()=>Ei,boundClip:()=>Jh,boundContext:()=>Dl,boundItem:()=>rd,boundMark:()=>od,boundStroke:()=>ul,changeset:()=>Ir,clampRange:()=>pt,codegenExpression:()=>zA,compare:()=>vt,constant:()=>_t,cumulativeLogNormal:()=>ji,cumulativeNormal:()=>Bi,cumulativeUniform:()=>Yi,dayofyear:()=>We,debounce:()=>wt,defaultLocale:()=>Jn,definition:()=>di,densityLogNormal:()=>Ii,densityNormal:()=>Oi,densityUniform:()=>Gi,domChild:()=>pd,domClear:()=>md,domCreate:()=>dd,domFind:()=>hd,dotbin:()=>Fi,error:()=>F,expressionFunction:()=>qx,extend:()=>kt,extent:()=>Et,extentIndex:()=>Ft,falsy:()=>B,fastmap:()=>Mt,field:()=>C,flush:()=>St,font:()=>$f,fontFamily:()=>Vf,fontSize:()=>qf,format:()=>xr,formatLocale:()=>Wn,formats:()=>_r,hasOwnProperty:()=>Dt,id:()=>M,identity:()=>S,inferType:()=>pr,inferTypes:()=>mr,ingest:()=>Or,inherits:()=>Tt,inrange:()=>Nt,interpolate:()=>Sc,interpolateColors:()=>Dc,interpolateRange:()=>Fc,intersect:()=>Yh,intersectBoxLine:()=>Ll,intersectPath:()=>Bl,intersectPoint:()=>Rl,intersectRule:()=>Pl,isArray:()=>q,isBoolean:()=>Ot,isDate:()=>Bt,isFunction:()=>mt,isIterable:()=>Rt,isNumber:()=>zt,isObject:()=>W,isRegExp:()=>Pt,isString:()=>Lt,isTuple:()=>Sr,key:()=>It,lerp:()=>jt,lineHeight:()=>Wf,loader:()=>Er,locale:()=>Zn,logger:()=>U,lruCache:()=>qt,markup:()=>ph,merge:()=>Wt,mergeConfig:()=>G,multiLineOffset:()=>Gf,one:()=>N,pad:()=>Gt,panLinear:()=>nt,panLog:()=>rt,panPow:()=>it,panSymlog:()=>ot,parse:()=>DD,parseExpression:()=>OA,parseSelector:()=>cw,path:()=>fs.Ae,pathCurves:()=>uu,pathEqual:()=>tp,pathParse:()=>mu,pathRectangle:()=>Iu,pathRender:()=>Fu,pathSymbols:()=>Su,pathTrail:()=>ju,peek:()=>$,point:()=>vd,projection:()=>xg,quantileLogNormal:()=>Ui,quantileNormal:()=>Ri,quantileUniform:()=>Vi,quantiles:()=>bi,quantizeInterpolator:()=>Cc,quarter:()=>ft,quartiles:()=>Ai,random:()=>wi,randomInteger:()=>Ci,randomKDE:()=>Pi,randomLCG:()=>Di,randomLogNormal:()=>qi,randomMixture:()=>Wi,randomNormal:()=>zi,randomUniform:()=>$i,read:()=>kr,regressionConstant:()=>Xi,regressionExp:()=>no,regressionLinear:()=>to,regressionLoess:()=>uo,regressionLog:()=>eo,regressionPoly:()=>oo,regressionPow:()=>ro,regressionQuad:()=>io,renderModule:()=>Gh,repeat:()=>Ht,resetDefaultLocale:()=>Qn,resetSVGClipId:()=>el,resetSVGDefIds:()=>ep,responseType:()=>wr,runtimeContext:()=>Qx,sampleCurve:()=>po,sampleLogNormal:()=>Li,sampleNormal:()=>Ni,sampleUniform:()=>Hi,scale:()=>gc,sceneEqual:()=>Kh,sceneFromJSON:()=>cd,scenePickVisit:()=>Zl,sceneToJSON:()=>sd,sceneVisit:()=>Xl,sceneZOrder:()=>$l,scheme:()=>Rc,serializeXML:()=>mh,setHybridRendererOptions:()=>Ph,setRandom:()=>ki,span:()=>Yt,splitAccessPath:()=>D,stringValue:()=>Vt,textMetrics:()=>zf,timeBin:()=>Bn,timeFloor:()=>an,timeFormatLocale:()=>$n,timeInterval:()=>dn,timeOffset:()=>mn,timeSequence:()=>yn,timeUnitSpecifier:()=>je,timeUnits:()=>Le,toBoolean:()=>$t,toDate:()=>Zt,toNumber:()=>X,toSet:()=>Qt,toString:()=>Jt,transform:()=>hi,transforms:()=>fi,truncate:()=>Kt,truthy:()=>O,tupleid:()=>Tr,typeParsers:()=>fr,utcFloor:()=>un,utcInterval:()=>hn,utcOffset:()=>gn,utcSequence:()=>bn,utcdayofyear:()=>Xe,utcquarter:()=>dt,utcweek:()=>Ze,version:()=>CD,visitArray:()=>te,week:()=>He,writeConfig:()=>Y,zero:()=>T,zoomLinear:()=>st,zoomLog:()=>ct,zoomPow:()=>ut,zoomSymlog:()=>lt});var m={};n.r(m),n.d(m,{accessPathDepth:()=>EC,accessPathWithDatum:()=>yC,accessWithDatumToUnescapedPath:()=>AC,compile:()=>iY,contains:()=>QD,deepEqual:()=>RC,deleteNestedProperty:()=>gC,duplicate:()=>YD,entries:()=>dC,every:()=>tC,fieldIntersection:()=>cC,flatAccessWithDatum:()=>bC,getFirstDefined:()=>FC,hasIntersection:()=>aC,hasProperty:()=>PC,hash:()=>ZD,internalField:()=>SC,isBoolean:()=>hC,isEmpty:()=>uC,isEqual:()=>iC,isInternalField:()=>TC,isNullOrFalse:()=>JD,isNumeric:()=>OC,keys:()=>lC,logicalExpr:()=>mC,mergeDeep:()=>eC,never:()=>VD,normalize:()=>TL,normalizeAngle:()=>NC,omit:()=>XD,pick:()=>$D,prefixGenerator:()=>sC,removePathFromField:()=>kC,replaceAll:()=>wC,replacePathInField:()=>_C,resetIdCounter:()=>MC,setEqual:()=>oC,some:()=>KD,stringify:()=>zC,titleCase:()=>vC,unique:()=>rC,uniqueId:()=>CC,vals:()=>fC,varName:()=>pC,version:()=>oY});var g={};n.r(g),n.d(g,{carbong10:()=>aV,carbong100:()=>cV,carbong90:()=>sV,carbonwhite:()=>oV,dark:()=>lY,excel:()=>dY,fivethirtyeight:()=>vY,ggplot2:()=>bY,googlecharts:()=>jY,latimes:()=>EY,powerbi:()=>KY,quartz:()=>CY,urbaninstitute:()=>zY,version:()=>uV,vox:()=>SY});var v=n(89379);const y=/("(?:[^\\"]|\\.)*")|[:,]/g;function b(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=JSON.stringify([1],void 0,void 0===e.indent?2:e.indent).slice(2,-3),r=""===n?1/0:void 0===e.maxLength?80:e.maxLength;let{replacer:i}=e;return function t(e,o,a){e&&"function"===typeof e.toJSON&&(e=e.toJSON());const s=JSON.stringify(e,i);if(void 0===s)return s;const c=r-o.length-a;if(s.length<=c){const t=s.replace(y,((t,e)=>e||"".concat(t," ")));if(t.length<=c)return t}if(null!=i&&(e=JSON.parse(s),i=void 0),"object"===typeof e&&null!==e){const r=o+n,i=[];let a,s,c=0;if(Array.isArray(e)){a="[",s="]";const{length:n}=e;for(;c<n;c++)i.push(t(e[c],r,c===n-1?0:1)||"null")}else{a="{",s="}";const n=Object.keys(e),{length:o}=n;for(;c<o;c++){const a=n[c],s="".concat(JSON.stringify(a),": "),u=t(e[a],r,s.length+(c===o-1?0:1));void 0!==u&&i.push(s+u)}}if(i.length>0)return[a,n+i.join(",\n".concat(r)),s].join("\n".concat(o))}return s}(t,"",0)}function A(t,e,n){return t.fields=e||[],t.fname=n,t}function x(t){return null==t?null:t.fname}function _(t){return null==t?null:t.fields}function w(t){return 1===t.length?k(t[0]):E(t)}const k=t=>function(e){return e[t]},E=t=>{const e=t.length;return function(n){for(let r=0;r<e;++r)n=n[t[r]];return n}};function F(t){throw Error(t)}function D(t){const e=[],n=t.length;let r,i,o,a=null,s=0,c="";function u(){e.push(c+t.substring(r,i)),c="",r=i+1}for(t+="",r=i=0;i<n;++i)if(o=t[i],"\\"===o)c+=t.substring(r,i++),r=i;else if(o===a)u(),a=null,s=-1;else{if(a)continue;r===s&&'"'===o||r===s&&"'"===o?(r=i+1,a=o):"."!==o||s?"["===o?(i>r&&u(),s=r=i+1):"]"===o&&(s||F("Access path missing open bracket: "+t),s>0&&u(),s=0,r=i+1):i>r?u():r=i+1}return s&&F("Access path missing closing bracket: "+t),a&&F("Access path missing closing quote: "+t),i>r&&(i++,u()),e}function C(t,e,n){const r=D(t);return t=1===r.length?r[0]:t,A((n&&n.get||w)(r),[t],e||t)}const M=C("id"),S=A((t=>t),[],"identity"),T=A((()=>0),[],"zero"),N=A((()=>1),[],"one"),O=A((()=>!0),[],"true"),B=A((()=>!1),[],"false");function R(t,e,n){const r=[e].concat([].slice.call(n));console[t].apply(console,r)}const z=0,P=1,L=2,I=3,j=4;function U(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R,r=t||z;return{level(t){return arguments.length?(r=+t,this):r},error(){return r>=P&&n(e||"error","ERROR",arguments),this},warn(){return r>=L&&n(e||"warn","WARN",arguments),this},info(){return r>=I&&n(e||"log","INFO",arguments),this},debug(){return r>=j&&n(e||"log","DEBUG",arguments),this}}}var q=Array.isArray;function W(t){return t===Object(t)}const H=t=>"__proto__"!==t;function G(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(((t,e)=>{for(const n in e)if("signals"===n)t.signals=V(t.signals,e.signals);else{const r="legend"===n?{layout:1}:"style"===n||null;Y(t,n,e[n],r)}return t}),{})}function Y(t,e,n,r){if(!H(e))return;let i,o;if(W(n)&&!q(n))for(i in o=W(t[e])?t[e]:t[e]={},n)r&&(!0===r||r[i])?Y(o,i,n[i]):H(i)&&(o[i]=n[i]);else t[e]=n}function V(t,e){if(null==t)return e;const n={},r=[];function i(t){n[t.name]||(n[t.name]=1,r.push(t))}return e.forEach(i),t.forEach(i),r}function $(t){return t[t.length-1]}function X(t){return null==t||""===t?null:+t}const Z=t=>e=>t*Math.exp(e),J=t=>e=>Math.log(t*e),Q=t=>e=>Math.sign(e)*Math.log1p(Math.abs(e/t)),K=t=>e=>Math.sign(e)*Math.expm1(Math.abs(e))*t,tt=t=>e=>e<0?-Math.pow(-e,t):Math.pow(e,t);function et(t,e,n,r){const i=n(t[0]),o=n($(t)),a=(o-i)*e;return[r(i-a),r(o-a)]}function nt(t,e){return et(t,e,X,S)}function rt(t,e){var n=Math.sign(t[0]);return et(t,e,J(n),Z(n))}function it(t,e,n){return et(t,e,tt(n),tt(1/n))}function ot(t,e,n){return et(t,e,Q(n),K(n))}function at(t,e,n,r,i){const o=r(t[0]),a=r($(t)),s=null!=e?r(e):(o+a)/2;return[i(s+(o-s)*n),i(s+(a-s)*n)]}function st(t,e,n){return at(t,e,n,X,S)}function ct(t,e,n){const r=Math.sign(t[0]);return at(t,e,n,J(r),Z(r))}function ut(t,e,n,r){return at(t,e,n,tt(r),tt(1/r))}function lt(t,e,n,r){return at(t,e,n,Q(r),K(r))}function ft(t){return 1+~~(new Date(t).getMonth()/3)}function dt(t){return 1+~~(new Date(t).getUTCMonth()/3)}function ht(t){return null!=t?q(t)?t:[t]:[]}function pt(t,e,n){let r,i=t[0],o=t[1];return o<i&&(r=o,o=i,i=r),r=o-i,r>=n-e?[e,n]:[i=Math.min(Math.max(i,e),n-r),i+r]}function mt(t){return"function"===typeof t}const gt="descending";function vt(t,e,n){n=n||{},e=ht(e)||[];const r=[],i=[],o={},a=n.comparator||bt;return ht(t).forEach(((t,a)=>{null!=t&&(r.push(e[a]===gt?-1:1),i.push(t=mt(t)?t:C(t,null,n)),(_(t)||[]).forEach((t=>o[t]=1)))})),0===i.length?null:A(a(i,r),Object.keys(o))}const yt=(t,e)=>(t<e||null==t)&&null!=e?-1:(t>e||null==e)&&null!=t?1:(e=e instanceof Date?+e:e,(t=t instanceof Date?+t:t)!==t&&e===e?-1:e!==e&&t===t?1:0),bt=(t,e)=>1===t.length?At(t[0],e[0]):xt(t,e,t.length),At=(t,e)=>function(n,r){return yt(t(n),t(r))*e},xt=(t,e,n)=>(e.push(0),function(r,i){let o,a=0,s=-1;for(;0===a&&++s<n;)o=t[s],a=yt(o(r),o(i));return a*e[s]});function _t(t){return mt(t)?t:()=>t}function wt(t,e){let n;return r=>{n&&clearTimeout(n),n=setTimeout((()=>(e(r),n=null)),t)}}function kt(t){for(let e,n,r=1,i=arguments.length;r<i;++r)for(n in e=arguments[r],e)t[n]=e[n];return t}function Et(t,e){let n,r,i,o,a=0;if(t&&(n=t.length))if(null==e){for(r=t[a];a<n&&(null==r||r!==r);r=t[++a]);for(i=o=r;a<n;++a)r=t[a],null!=r&&(r<i&&(i=r),r>o&&(o=r))}else{for(r=e(t[a]);a<n&&(null==r||r!==r);r=e(t[++a]));for(i=o=r;a<n;++a)r=e(t[a]),null!=r&&(r<i&&(i=r),r>o&&(o=r))}return[i,o]}function Ft(t,e){const n=t.length;let r,i,o,a,s,c=-1;if(null==e){for(;++c<n;)if(i=t[c],null!=i&&i>=i){r=o=i;break}if(c===n)return[-1,-1];for(a=s=c;++c<n;)i=t[c],null!=i&&(r>i&&(r=i,a=c),o<i&&(o=i,s=c))}else{for(;++c<n;)if(i=e(t[c],c,t),null!=i&&i>=i){r=o=i;break}if(c===n)return[-1,-1];for(a=s=c;++c<n;)i=e(t[c],c,t),null!=i&&(r>i&&(r=i,a=c),o<i&&(o=i,s=c))}return[a,s]}function Dt(t,e){return Object.hasOwn(t,e)}const Ct={};function Mt(t){let e,n={};function r(t){return Dt(n,t)&&n[t]!==Ct}const i={size:0,empty:0,object:n,has:r,get:t=>r(t)?n[t]:void 0,set(t,e){return r(t)||(++i.size,n[t]===Ct&&--i.empty),n[t]=e,this},delete(t){return r(t)&&(--i.size,++i.empty,n[t]=Ct),this},clear(){i.size=i.empty=0,i.object=n={}},test(t){return arguments.length?(e=t,i):e},clean(){const t={};let r=0;for(const i in n){const o=n[i];o===Ct||e&&e(o)||(t[i]=o,++r)}i.size=r,i.empty=0,i.object=n=t}};return t&&Object.keys(t).forEach((e=>{i.set(e,t[e])})),i}function St(t,e,n,r,i,o){if(!n&&0!==n)return o;const a=+n;let s,c=t[0],u=$(t);u<c&&(s=c,c=u,u=s),s=Math.abs(e-c);const l=Math.abs(u-e);return s<l&&s<=a?r:l<=a?i:o}function Tt(t,e,n){const r=t.prototype=Object.create(e.prototype);return Object.defineProperty(r,"constructor",{value:t,writable:!0,enumerable:!0,configurable:!0}),kt(r,n)}function Nt(t,e,n,r){let i,o=e[0],a=e[e.length-1];return o>a&&(i=o,o=a,a=i),r=void 0===r||r,((n=void 0===n||n)?o<=t:o<t)&&(r?t<=a:t<a)}function Ot(t){return"boolean"===typeof t}function Bt(t){return"[object Date]"===Object.prototype.toString.call(t)}function Rt(t){return t&&mt(t[Symbol.iterator])}function zt(t){return"number"===typeof t}function Pt(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function Lt(t){return"string"===typeof t}function It(t,e,n){t&&(t=e?ht(t).map((t=>t.replace(/\\(.)/g,"$1"))):ht(t));const r=t&&t.length,i=n&&n.get||w,o=t=>i(e?[t]:D(t));let a;if(r)if(1===r){const e=o(t[0]);a=function(t){return""+e(t)}}else{const e=t.map(o);a=function(t){let n=""+e[0](t),i=0;for(;++i<r;)n+="|"+e[i](t);return n}}else a=function(){return""};return A(a,t,"key")}function jt(t,e){const n=t[0],r=$(t),i=+e;return i?1===i?r:n+i*(r-n):n}const Ut=1e4;function qt(t){let e,n,r;t=+t||Ut;const i=()=>{e={},n={},r=0},o=(i,o)=>(++r>t&&(n=e,e={},r=1),e[i]=o);return i(),{clear:i,has:t=>Dt(e,t)||Dt(n,t),get:t=>Dt(e,t)?e[t]:Dt(n,t)?o(t,n[t]):void 0,set:(t,n)=>Dt(e,t)?e[t]=n:o(t,n)}}function Wt(t,e,n,r){const i=e.length,o=n.length;if(!o)return e;if(!i)return n;const a=r||new e.constructor(i+o);let s=0,c=0,u=0;for(;s<i&&c<o;++u)a[u]=t(e[s],n[c])>0?n[c++]:e[s++];for(;s<i;++s,++u)a[u]=e[s];for(;c<o;++c,++u)a[u]=n[c];return a}function Ht(t,e){let n="";for(;--e>=0;)n+=t;return n}function Gt(t,e,n,r){const i=n||" ",o=t+"",a=e-o.length;return a<=0?o:"left"===r?Ht(i,a)+o:"center"===r?Ht(i,~~(a/2))+o+Ht(i,Math.ceil(a/2)):o+Ht(i,a)}function Yt(t){return t&&$(t)-t[0]||0}function Vt(t){return q(t)?"["+t.map(Vt)+"]":W(t)||Lt(t)?JSON.stringify(t).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):t}function $t(t){return null==t||""===t?null:!(!t||"false"===t||"0"===t)&&!!t}const Xt=t=>zt(t)||Bt(t)?t:Date.parse(t);function Zt(t,e){return e=e||Xt,null==t||""===t?null:e(t)}function Jt(t){return null==t||""===t?null:t+""}function Qt(t){const e={},n=t.length;for(let r=0;r<n;++r)e[t[r]]=!0;return e}function Kt(t,e,n,r){const i=null!=r?r:"\u2026",o=t+"",a=o.length,s=Math.max(0,e-i.length);return a<=e?o:"left"===n?i+o.slice(a-s):"center"===n?o.slice(0,Math.ceil(s/2))+i+o.slice(a-~~(s/2)):o.slice(0,s)+i}function te(t,e,n){if(t)if(e){const r=t.length;for(let i=0;i<r;++i){const r=e(t[i]);r&&n(r,i,t)}}else t.forEach(n)}var ee=n(56768);function ne(t){return t}function re(t,e){return"string"===typeof e&&(e=t.objects[e]),"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map((function(e){return ie(t,e)}))}:ie(t,e)}function ie(t,e){var n=e.id,r=e.bbox,i=null==e.properties?{}:e.properties,o=oe(t,e);return null==n&&null==r?{type:"Feature",properties:i,geometry:o}:null==r?{type:"Feature",id:n,properties:i,geometry:o}:{type:"Feature",id:n,bbox:r,properties:i,geometry:o}}function oe(t,e){var n=function(t){if(null==t)return ne;var e,n,r=t.scale[0],i=t.scale[1],o=t.translate[0],a=t.translate[1];return function(t,s){s||(e=n=0);var c=2,u=t.length,l=new Array(u);for(l[0]=(e+=t[0])*r+o,l[1]=(n+=t[1])*i+a;c<u;)l[c]=t[c],++c;return l}}(t.transform),r=t.arcs;function i(t,e){e.length&&e.pop();for(var i=r[t<0?~t:t],o=0,a=i.length;o<a;++o)e.push(n(i[o],o));t<0&&function(t,e){for(var n,r=t.length,i=r-e;i<--r;)n=t[i],t[i++]=t[r],t[r]=n}(e,a)}function o(t){return n(t)}function a(t){for(var e=[],n=0,r=t.length;n<r;++n)i(t[n],e);return e.length<2&&e.push(e[0]),e}function s(t){for(var e=a(t);e.length<4;)e.push(e[0]);return e}function c(t){return t.map(s)}return function t(e){var n,r=e.type;switch(r){case"GeometryCollection":return{type:r,geometries:e.geometries.map(t)};case"Point":n=o(e.coordinates);break;case"MultiPoint":n=e.coordinates.map(o);break;case"LineString":n=a(e.arcs);break;case"MultiLineString":n=e.arcs.map(a);break;case"Polygon":n=c(e.arcs);break;case"MultiPolygon":n=e.arcs.map(c);break;default:return null}return{type:r,coordinates:n}}(e)}function ae(t,e){var n={},r={},i={},o=[],a=-1;function s(t,e){for(var r in t){var i=t[r];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){n[t<0?~t:t]=1})),o.push(i)}}return e.forEach((function(n,r){var i,o=t.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(i=e[++a],e[a]=n,e[r]=i)})),e.forEach((function(e){var n,o,a=function(e){var n,r=t.arcs[e<0?~e:e],i=r[0];t.transform?(n=[0,0],r.forEach((function(t){n[0]+=t[0],n[1]+=t[1]}))):n=r[r.length-1];return e<0?[n,i]:[i,n]}(e),s=a[0],c=a[1];if(n=i[s])if(delete i[n.end],n.push(e),n.end=c,o=r[c]){delete r[o.start];var u=o===n?n:n.concat(o);r[u.start=n.start]=i[u.end=o.end]=u}else r[n.start]=i[n.end]=n;else if(n=r[c])if(delete r[n.start],n.unshift(e),n.start=s,o=i[s]){delete i[o.end];var l=o===n?n:o.concat(n);r[l.start=o.start]=i[l.end=n.end]=l}else r[n.start]=i[n.end]=n;else r[(n=[e]).start=s]=i[n.end=c]=n})),s(i,r),s(r,i),e.forEach((function(t){n[t<0?~t:t]||o.push([t])})),o}function se(t){return oe(t,ce.apply(this,arguments))}function ce(t,e,n){var r,i,o;if(arguments.length>1)r=function(t,e,n){var r,i=[],o=[];function a(t){var e=t<0?~t:t;(o[e]||(o[e]=[])).push({i:t,g:r})}function s(t){t.forEach(a)}function c(t){t.forEach(s)}function u(t){t.forEach(c)}function l(t){switch(r=t,t.type){case"GeometryCollection":t.geometries.forEach(l);break;case"LineString":s(t.arcs);break;case"MultiLineString":case"Polygon":c(t.arcs);break;case"MultiPolygon":u(t.arcs)}}return l(e),o.forEach(null==n?function(t){i.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&i.push(t[0].i)}),i}(0,e,n);else for(i=0,r=new Array(o=t.arcs.length);i<o;++i)r[i]=i;return{type:"MultiLineString",arcs:ae(t,r)}}var ue=n(90787),le=n(30276),fe=n(48249),de=n(43877),he=n(97867),pe=n(56214),me=n(47339),ge=n(26409),ve=n(99215),ye=n(8574),be=n(79477),Ae=n(62269),xe=n(5827),_e=n(19039),we=n(40566),ke=n(88910);const Ee="year",Fe="quarter",De="month",Ce="week",Me="date",Se="day",Te="dayofyear",Ne="hours",Oe="minutes",Be="seconds",Re="milliseconds",ze=[Ee,Fe,De,Ce,Me,Se,Te,Ne,Oe,Be,Re],Pe=ze.reduce(((t,e,n)=>(t[e]=1+n,t)),{});function Le(t){const e=ht(t).slice(),n={};e.length||F("Missing time unit."),e.forEach((t=>{Dt(Pe,t)?n[t]=1:F("Invalid time unit: ".concat(t,"."))}));return(n[Ce]||n[Se]?1:0)+(n[Fe]||n[De]||n[Me]?1:0)+(n[Te]?1:0)>1&&F("Incompatible time units: ".concat(t)),e.sort(((t,e)=>Pe[t]-Pe[e])),e}const Ie={[Ee]:"%Y ",[Fe]:"Q%q ",[De]:"%b ",[Me]:"%d ",[Ce]:"W%U ",[Se]:"%a ",[Te]:"%j ",[Ne]:"%H:00",[Oe]:"00:%M",[Be]:":%S",[Re]:".%L",["".concat(Ee,"-").concat(De)]:"%Y-%m ",["".concat(Ee,"-").concat(De,"-").concat(Me)]:"%Y-%m-%d ",["".concat(Ne,"-").concat(Oe)]:"%H:%M"};function je(t,e){const n=kt({},Ie,e),r=Le(t),i=r.length;let o,a,s="",c=0;for(c=0;c<i;)for(o=r.length;o>c;--o)if(a=r.slice(c,o).join("-"),null!=n[a]){s+=n[a],c=o;break}return s.trim()}const Ue=new Date;function qe(t){return Ue.setFullYear(t),Ue.setMonth(0),Ue.setDate(1),Ue.setHours(0,0,0,0),Ue}function We(t){return Ge(new Date(t))}function He(t){return Ye(new Date(t))}function Ge(t){return ge.UA.count(qe(t.getFullYear())-1,t)}function Ye(t){return ve.YP.count(qe(t.getFullYear())-1,t)}function Ve(t){return qe(t).getDay()}function $e(t,e,n,r,i,o,a){if(0<=t&&t<100){const s=new Date(-1,e,n,r,i,o,a);return s.setFullYear(t),s}return new Date(t,e,n,r,i,o,a)}function Xe(t){return Je(new Date(t))}function Ze(t){return Qe(new Date(t))}function Je(t){const e=Date.UTC(t.getUTCFullYear(),0,1);return ge.dA.count(e-1,t)}function Qe(t){const e=Date.UTC(t.getUTCFullYear(),0,1);return ve.Hl.count(e-1,t)}function Ke(t){return Ue.setTime(Date.UTC(t,0,1)),Ue.getUTCDay()}function tn(t,e,n,r,i,o,a){if(0<=t&&t<100){const t=new Date(Date.UTC(-1,e,n,r,i,o,a));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(t,e,n,r,i,o,a))}function en(t,e,n,r,i){const o=e||1,a=$(t),s=(t,e,i)=>function(t,e,n,r){const i=n<=1?t:r?(e,i)=>r+n*Math.floor((t(e,i)-r)/n):(e,r)=>n*Math.floor(t(e,r)/n);return e?(t,n)=>e(i(t,n),n):i}(n[i=i||t],r[i],t===a&&o,e),c=new Date,u=Qt(t),l=u[Ee]?s(Ee):_t(2012),f=u[De]?s(De):u[Fe]?s(Fe):T,d=u[Ce]&&u[Se]?s(Se,1,Ce+Se):u[Ce]?s(Ce,1):u[Se]?s(Se,1):u[Me]?s(Me,1):u[Te]?s(Te,1):N,h=u[Ne]?s(Ne):T,p=u[Oe]?s(Oe):T,m=u[Be]?s(Be):T,g=u[Re]?s(Re):T;return function(t){c.setTime(+t);const e=l(c);return i(e,f(c),d(c,e),h(c),p(c),m(c),g(c))}}function nn(t,e,n){return e+7*t-(n+6)%7}const rn={[Ee]:t=>t.getFullYear(),[Fe]:t=>Math.floor(t.getMonth()/3),[De]:t=>t.getMonth(),[Me]:t=>t.getDate(),[Ne]:t=>t.getHours(),[Oe]:t=>t.getMinutes(),[Be]:t=>t.getSeconds(),[Re]:t=>t.getMilliseconds(),[Te]:t=>Ge(t),[Ce]:t=>Ye(t),[Ce+Se]:(t,e)=>nn(Ye(t),t.getDay(),Ve(e)),[Se]:(t,e)=>nn(1,t.getDay(),Ve(e))},on={[Fe]:t=>3*t,[Ce]:(t,e)=>nn(t,0,Ve(e))};function an(t,e){return en(t,e||1,rn,on,$e)}const sn={[Ee]:t=>t.getUTCFullYear(),[Fe]:t=>Math.floor(t.getUTCMonth()/3),[De]:t=>t.getUTCMonth(),[Me]:t=>t.getUTCDate(),[Ne]:t=>t.getUTCHours(),[Oe]:t=>t.getUTCMinutes(),[Be]:t=>t.getUTCSeconds(),[Re]:t=>t.getUTCMilliseconds(),[Te]:t=>Je(t),[Ce]:t=>Qe(t),[Se]:(t,e)=>nn(1,t.getUTCDay(),Ke(e)),[Ce+Se]:(t,e)=>nn(Qe(t),t.getUTCDay(),Ke(e))},cn={[Fe]:t=>3*t,[Ce]:(t,e)=>nn(t,0,Ke(e))};function un(t,e){return en(t,e||1,sn,cn,tn)}const ln={[Ee]:ye.he,[Fe]:be.Ui.every(3),[De]:be.Ui,[Ce]:ve.YP,[Me]:ge.UA,[Se]:ge.UA,[Te]:ge.UA,[Ne]:Ae.Ag,[Oe]:xe.wX,[Be]:_e.R,[Re]:we.y},fn={[Ee]:ye.Mb,[Fe]:be.R6.every(3),[De]:be.R6,[Ce]:ve.Hl,[Me]:ge.dA,[Se]:ge.dA,[Te]:ge.dA,[Ne]:Ae.pz,[Oe]:xe.vD,[Be]:_e.R,[Re]:we.y};function dn(t){return ln[t]}function hn(t){return fn[t]}function pn(t,e,n){return t?t.offset(e,n):void 0}function mn(t,e,n){return pn(dn(t),e,n)}function gn(t,e,n){return pn(hn(t),e,n)}function vn(t,e,n,r){return t?t.range(e,n,r):void 0}function yn(t,e,n,r){return vn(dn(t),e,n,r)}function bn(t,e,n,r){return vn(hn(t),e,n,r)}const An=1e3,xn=6e4,_n=36e5,wn=864e5,kn=2592e6,En=31536e6,Fn=[Ee,De,Me,Ne,Oe,Be,Re],Dn=Fn.slice(0,-1),Cn=Dn.slice(0,-1),Mn=Cn.slice(0,-1),Sn=Mn.slice(0,-1),Tn=[Ee,De],Nn=[Ee],On=[[Dn,1,An],[Dn,5,5e3],[Dn,15,15e3],[Dn,30,3e4],[Cn,1,xn],[Cn,5,3e5],[Cn,15,9e5],[Cn,30,18e5],[Mn,1,_n],[Mn,3,108e5],[Mn,6,216e5],[Mn,12,432e5],[Sn,1,wn],[[Ee,Ce],1,6048e5],[Tn,1,kn],[Tn,3,7776e6],[Nn,1,En]];function Bn(t){const e=t.extent,n=t.maxbins||40,r=Math.abs(Yt(e))/n;let i,o,a=(0,ke.A)((t=>t[2])).right(On,r);return a===On.length?(i=Nn,o=(0,ue.sG)(e[0]/En,e[1]/En,n)):a?(a=On[r/On[a-1][2]<On[a][2]/r?a-1:a],i=a[0],o=a[1]):(i=Fn,o=Math.max((0,ue.sG)(e[0],e[1],n),1)),{units:i,step:o}}var Rn=n(15744),zn=n(77953);function Pn(t){const e={};return n=>e[n]||(e[n]=t(n))}function Ln(t){const e=Pn(t.format),n=t.formatPrefix;return{format:e,formatPrefix:n,formatFloat(t){const n=(0,le.A)(t||",");if(null==n.precision){switch(n.precision=12,n.type){case"%":n.precision-=2;break;case"e":n.precision-=1}return function(t,e){return n=>{const r=t(n),i=r.indexOf(e);if(i<0)return r;let o=function(t,e){let n,r=t.lastIndexOf("e");if(r>0)return r;for(r=t.length;--r>e;)if(n=t.charCodeAt(r),n>=48&&n<=57)return r+1}(r,i);const a=o<r.length?r.slice(o):"";for(;--o>i;)if("0"!==r[o]){++o;break}return r.slice(0,o)+a}}(e(n),e(".1f")(1)[1])}return e(n)},formatSpan(t,r,i,o){o=(0,le.A)(null==o?",f":o);const a=(0,ue.sG)(t,r,i),s=Math.max(Math.abs(t),Math.abs(r));let c;if(null==o.precision)switch(o.type){case"s":return isNaN(c=(0,fe.A)(a,s))||(o.precision=c),n(o,s);case"":case"e":case"g":case"p":case"r":isNaN(c=(0,de.A)(a,s))||(o.precision=c-("e"===o.type));break;case"f":case"%":isNaN(c=(0,he.A)(a))||(o.precision=c-2*("%"===o.type))}return e(o)}}}let In,jn;function Un(){return In=Ln({format:pe.GP,formatPrefix:pe.s})}function qn(t){return Ln((0,me.A)(t))}function Wn(t){return arguments.length?In=qn(t):In}function Hn(t,e,n){W(n=n||{})||F("Invalid time multi-format specifier: ".concat(n));const r=e(Be),i=e(Oe),o=e(Ne),a=e(Me),s=e(Ce),c=e(De),u=e(Fe),l=e(Ee),f=t(n[Re]||".%L"),d=t(n[Be]||":%S"),h=t(n[Oe]||"%I:%M"),p=t(n[Ne]||"%I %p"),m=t(n[Me]||n[Se]||"%a %d"),g=t(n[Ce]||"%b %d"),v=t(n[De]||"%B"),y=t(n[Fe]||"%B"),b=t(n[Ee]||"%Y");return t=>(r(t)<t?f:i(t)<t?d:o(t)<t?h:a(t)<t?p:c(t)<t?s(t)<t?m:g:l(t)<t?u(t)<t?v:y:b)(t)}function Gn(t){const e=Pn(t.format),n=Pn(t.utcFormat);return{timeFormat:t=>Lt(t)?e(t):Hn(e,dn,t),utcFormat:t=>Lt(t)?n(t):Hn(n,hn,t),timeParse:Pn(t.parse),utcParse:Pn(t.utcParse)}}function Yn(){return jn=Gn({format:Rn.DC,parse:Rn.T6,utcFormat:Rn.aL,utcParse:Rn.GY})}function Vn(t){return Gn((0,zn.A)(t))}function $n(t){return arguments.length?jn=Vn(t):jn}Un(),Yn();const Xn=(t,e)=>kt({},t,e);function Zn(t,e){const n=t?qn(t):Wn(),r=e?Vn(e):$n();return Xn(n,r)}function Jn(t,e){const n=arguments.length;return n&&2!==n&&F("defaultLocale expects either zero or two arguments."),n?Xn(Wn(t),$n(e)):Xn(Wn(),$n())}function Qn(){return Un(),Yn(),Jn()}const Kn=/^(data:|([A-Za-z]+:)?\/\/)/,tr=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,er=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,nr="file://";async function rr(t,e){const n=await this.sanitize(t,e),r=n.href;return n.localFile?this.file(r):this.http(r,e)}async function ir(t,e){e=kt({},this.options,e);const n=this.fileAccess,r={href:null};let i,o,a;const s=tr.test(t.replace(er,""));null!=t&&"string"===typeof t&&s||F("Sanitize failure, invalid URI: "+Vt(t));const c=Kn.test(t);return(a=e.baseURL)&&!c&&(t.startsWith("/")||a.endsWith("/")||(t="/"+t),t=a+t),o=(i=t.startsWith(nr))||"file"===e.mode||"http"!==e.mode&&!c&&n,i?t=t.slice(7):t.startsWith("//")&&("file"===e.defaultProtocol?(t=t.slice(2),o=!0):t=(e.defaultProtocol||"http")+":"+t),Object.defineProperty(r,"localFile",{value:!!o}),r.href=t,e.target&&(r.target=e.target+""),e.rel&&(r.rel=e.rel+""),"image"===e.context&&e.crossOrigin&&(r.crossOrigin=e.crossOrigin+""),r}function or(t){return t?e=>new Promise(((n,r)=>{t.readFile(e,((t,e)=>{t?r(t):n(e)}))})):ar}async function ar(){F("No file system access.")}function sr(t){return t?async function(e,n){const r=kt({},this.options.http,n),i=n&&n.response,o=await t(e,r);return o.ok?mt(o[i])?o[i]():o.text():F(o.status+""+o.statusText)}:cr}async function cr(){F("No HTTP fetch method available.")}const ur=t=>null!=t&&t===t,lr=t=>!Number.isNaN(+t)&&!(t instanceof Date),fr={boolean:$t,integer:X,number:X,date:Zt,string:Jt,unknown:S},dr=[t=>"true"===t||"false"===t||!0===t||!1===t,t=>lr(t)&&Number.isInteger(+t),lr,t=>!Number.isNaN(Date.parse(t))],hr=["boolean","integer","number","date"];function pr(t,e){if(!t||!t.length)return"unknown";const n=t.length,r=dr.length,i=dr.map(((t,e)=>e+1));for(let o,a,s=0,c=0;s<n;++s)for(a=e?t[s][e]:t[s],o=0;o<r;++o)if(i[o]&&ur(a)&&!dr[o](a)&&(i[o]=0,++c,c===dr.length))return"string";return hr[i.reduce(((t,e)=>0===t?e:t),0)-1]}function mr(t,e){return e.reduce(((e,n)=>(e[n]=pr(t,n),e)),{})}function gr(t){const e=function(e,n){const r={delimiter:t};return vr(e,n?kt(n,r):r)};return e.responseType="text",e}function vr(t,e){return e.header&&(t=e.header.map(Vt).join(e.delimiter)+"\n"+t),(0,ee.A)(e.delimiter).parse(t+"")}function yr(t,e){const n=e&&e.property?C(e.property):S;return!W(t)||(r=t,"function"===typeof Buffer&&mt(Buffer.isBuffer)&&Buffer.isBuffer(r))?n(JSON.parse(t)):function(t,e){!q(t)&&Rt(t)&&(t=[...t]);return e&&e.copy?JSON.parse(JSON.stringify(t)):t}(n(t),e);var r}vr.responseType="text",yr.responseType="json";const br={interior:(t,e)=>t!==e,exterior:(t,e)=>t===e};function Ar(t,e){let n,r,i,o;return t=yr(t,e),e&&e.feature?(n=re,i=e.feature):e&&e.mesh?(n=se,i=e.mesh,o=br[e.filter]):F("Missing TopoJSON feature or mesh parameter."),r=(r=t.objects[i])?n(t,r,o):F("Invalid TopoJSON object: "+i),r&&r.features||[r]}Ar.responseType="json";const xr={dsv:vr,csv:gr(","),tsv:gr("\t"),json:yr,topojson:Ar};function _r(t,e){return arguments.length>1?(xr[t]=e,this):Dt(xr,t)?xr[t]:null}function wr(t){const e=_r(t);return e&&e.responseType||"text"}function kr(t,e,n,r){const i=_r((e=e||{}).type||"json");return i||F("Unknown data format type: "+e.type),t=i(t,e),e.parse&&function(t,e,n,r){if(!t.length)return;const i=$n();n=n||i.timeParse,r=r||i.utcParse;let o,a,s,c,u,l,f=t.columns||Object.keys(t[0]);"auto"===e&&(e=mr(t,f));f=Object.keys(e);const d=f.map((t=>{const i=e[t];let o,a;if(i&&(i.startsWith("date:")||i.startsWith("utc:"))){o=i.split(/:(.+)?/,2),a=o[1],("'"===a[0]&&"'"===a[a.length-1]||'"'===a[0]&&'"'===a[a.length-1])&&(a=a.slice(1,-1));return("utc"===o[0]?r:n)(a)}if(!fr[i])throw Error("Illegal format pattern: "+t+":"+i);return fr[i]}));for(s=0,u=t.length,l=f.length;s<u;++s)for(o=t[s],c=0;c<l;++c)a=f[c],o[a]=d[c](o[a])}(t,e.parse,n,r),Dt(t,"columns")&&delete t.columns,t}const Er=function(t,e){return n=>({options:n||{},sanitize:ir,load:rr,fileAccess:!1,file:or(e),http:sr(t)})}("undefined"!==typeof fetch&&fetch,null);function Fr(t){const e=t||S,n=[],r={};return n.add=t=>{const i=e(t);return r[i]||(r[i]=1,n.push(t)),n},n.remove=t=>{const i=e(t);if(r[i]){r[i]=0;const e=n.indexOf(t);e>=0&&n.splice(e,1)}return n},n}async function Dr(t,e){try{await e(t)}catch(n){t.error(n)}}const Cr=Symbol("vega_id");let Mr=1;function Sr(t){return!(!t||!Tr(t))}function Tr(t){return t[Cr]}function Nr(t,e){return t[Cr]=e,t}function Or(t){const e=t===Object(t)?t:{data:t};return Tr(e)?e:Nr(e,Mr++)}function Br(t){return Rr(t,Or({}))}function Rr(t,e){for(const n in t)e[n]=t[n];return e}function zr(t,e){return Nr(e,Tr(t))}function Pr(t,e){return t?e?(n,r)=>t(n,r)||Tr(e(n))-Tr(e(r)):(e,n)=>t(e,n)||Tr(e)-Tr(n):null}function Lr(t){return t&&t.constructor===Ir}function Ir(){const t=[],e=[],n=[],r=[],i=[];let o=null,a=!1;return{constructor:Ir,insert(e){const n=ht(e),r=n.length;for(let i=0;i<r;++i)t.push(n[i]);return this},remove(t){const n=mt(t)?r:e,i=ht(t),o=i.length;for(let e=0;e<o;++e)n.push(i[e]);return this},modify(t,e,r){const o={field:e,value:_t(r)};return mt(t)?(o.filter=t,i.push(o)):(o.tuple=t,n.push(o)),this},encode(t,e){return mt(t)?i.push({filter:t,field:e}):n.push({tuple:t,field:e}),this},clean(t){return o=t,this},reflow(){return a=!0,this},pulse(s,c){const u={},l={};let f,d,h,p,m,g;for(f=0,d=c.length;f<d;++f)u[Tr(c[f])]=1;for(f=0,d=e.length;f<d;++f)m=e[f],u[Tr(m)]=-1;for(f=0,d=r.length;f<d;++f)p=r[f],c.forEach((t=>{p(t)&&(u[Tr(t)]=-1)}));for(f=0,d=t.length;f<d;++f)m=t[f],g=Tr(m),u[g]?u[g]=1:s.add.push(Or(t[f]));for(f=0,d=c.length;f<d;++f)m=c[f],u[Tr(m)]<0&&s.rem.push(m);function v(t,e,n){n?t[e]=n(t):s.encode=e,a||(l[Tr(t)]=t)}for(f=0,d=n.length;f<d;++f)h=n[f],m=h.tuple,p=h.field,g=u[Tr(m)],g>0&&(v(m,p,h.value),s.modifies(p));for(f=0,d=i.length;f<d;++f)h=i[f],p=h.filter,c.forEach((t=>{p(t)&&u[Tr(t)]>0&&v(t,h.field,h.value)})),s.modifies(h.field);if(a)s.mod=e.length||r.length?c.filter((t=>u[Tr(t)]>0)):c.slice();else for(g in l)s.mod.push(l[g]);return(o||null==o&&(e.length||r.length))&&s.clean(!0),s}}}const jr="_:mod:_";function Ur(){Object.defineProperty(this,jr,{writable:!0,value:{}})}Ur.prototype={set(t,e,n,r){const i=this,o=i[t],a=i[jr];return null!=e&&e>=0?(o[e]!==n||r)&&(o[e]=n,a[e+":"+t]=-1,a[t]=-1):(o!==n||r)&&(i[t]=n,a[t]=q(n)?1+n.length:-1),i},modified(t,e){const n=this[jr];if(!arguments.length){for(const t in n)if(n[t])return!0;return!1}if(q(t)){for(let e=0;e<t.length;++e)if(n[t[e]])return!0;return!1}return null!=e&&e>=0?e+1<n[t]||!!n[e+":"+t]:!!n[t]},clear(){return this[jr]={},this}};let qr=0;const Wr=new Ur;function Hr(t,e,n,r){this.id=++qr,this.value=t,this.stamp=-1,this.rank=-1,this.qrank=-1,this.flags=0,e&&(this._update=e),n&&this.parameters(n,r)}function Gr(t){return function(e){const n=this.flags;return 0===arguments.length?!!(n&t):(this.flags=e?n|t:n&~t,this)}}Hr.prototype={targets(){return this._targets||(this._targets=Fr(M))},set(t){return this.value!==t?(this.value=t,1):0},skip:Gr(1),modified:Gr(2),parameters(t,e,n){e=!1!==e;const r=this._argval=this._argval||new Ur,i=this._argops=this._argops||[],o=[];let a,s,c,u;const l=(t,n,a)=>{a instanceof Hr?(a!==this&&(e&&a.targets().add(this),o.push(a)),i.push({op:a,name:t,index:n})):r.set(t,n,a)};for(a in t)if(s=t[a],"pulse"===a)ht(s).forEach((t=>{t instanceof Hr?t!==this&&(t.targets().add(this),o.push(t)):F("Pulse parameters must be operator instances.")})),this.source=s;else if(q(s))for(r.set(a,-1,Array(c=s.length)),u=0;u<c;++u)l(a,u,s[u]);else l(a,-1,s);return this.marshall().clear(),n&&(i.initonly=!0),o},marshall(t){const e=this._argval||Wr,n=this._argops;let r,i,o,a;if(n){const s=n.length;for(i=0;i<s;++i)r=n[i],o=r.op,a=o.modified()&&o.stamp===t,e.set(r.name,r.index,o.value,a);if(n.initonly){for(i=0;i<s;++i)r=n[i],r.op.targets().remove(this);this._argops=null,this._update=null}}return e},detach(){const t=this._argops;let e,n,r,i;if(t)for(e=0,n=t.length;e<n;++e)r=t[e],i=r.op,i._targets&&i._targets.remove(this);this.pulse=null,this.source=null},evaluate(t){const e=this._update;if(e){const n=this.marshall(t.stamp),r=e.call(this,n,t);if(n.clear(),r!==this.value)this.value=r;else if(!this.modified())return t.StopPropagation}},run(t){if(t.stamp<this.stamp)return t.StopPropagation;let e;return this.skip()?(this.skip(!1),e=0):e=this.evaluate(t),this.pulse=e||t}};let Yr=0;function Vr(t,e,n){this.id=++Yr,this.value=null,n&&(this.receive=n),t&&(this._filter=t),e&&(this._apply=e)}function $r(t,e,n){return new Vr(t,e,n)}Vr.prototype={_filter:O,_apply:S,targets(){return this._targets||(this._targets=Fr(M))},consume(t){return arguments.length?(this._consume=!!t,this):!!this._consume},receive(t){if(this._filter(t)){const e=this.value=this._apply(t),n=this._targets,r=n?n.length:0;for(let t=0;t<r;++t)n[t].receive(e);this._consume&&(t.preventDefault(),t.stopPropagation())}},filter(t){const e=$r(t);return this.targets().add(e),e},apply(t){const e=$r(null,t);return this.targets().add(e),e},merge(){const t=$r();this.targets().add(t);for(let e=0,n=arguments.length;e<n;++e)arguments[e].targets().add(t);return t},throttle(t){let e=-1;return this.filter((()=>{const n=Date.now();return n-e>t?(e=n,1):0}))},debounce(t){const e=$r();return this.targets().add($r(null,null,wt(t,(t=>{const n=t.dataflow;e.receive(t),n&&n.run&&n.run()})))),e},between(t,e){let n=!1;return t.targets().add($r(null,null,(()=>n=!0))),e.targets().add($r(null,null,(()=>n=!1))),this.filter((()=>n))},detach(){this._filter=O,this._targets=null}};const Xr={skip:!0};function Zr(t,e,n,r,i,o){const a=kt({},o,Xr);let s,c;mt(n)||(n=_t(n)),void 0===r?s=e=>t.touch(n(e)):mt(r)?(c=new Hr(null,r,i,!1),s=e=>{c.evaluate(e);const r=n(e),i=c.value;Lr(i)?t.pulse(r,i,o):t.update(r,i,a)}):s=e=>t.update(n(e),r,a),e.apply(s)}function Jr(t,e,n,r,i,o){if(void 0===r)e.targets().add(n);else{const a=o||{},s=new Hr(null,function(t,e){return e=mt(e)?e:_t(e),t?function(n,r){const i=e(n,r);return t.skip()||(t.skip(i!==this.value).value=i),i}:e}(n,r),i,!1);s.modified(a.force),s.rank=e.rank,e.targets().add(s),n&&(s.skip(!0),s.value=n.value,s.targets().add(n),t.connect(n,[s]))}}const Qr={};function Kr(t,e,n){this.dataflow=t,this.stamp=null==e?-1:e,this.add=[],this.rem=[],this.mod=[],this.fields=null,this.encode=n||null}function ti(t,e){const n=[];return te(t,e,(t=>n.push(t))),n}function ei(t,e){const n={};return t.visit(e,(t=>{n[Tr(t)]=1})),t=>n[Tr(t)]?null:t}function ni(t,e){return t?(n,r)=>t(n,r)&&e(n,r):e}function ri(t,e,n,r){const i=this;let o=0;this.dataflow=t,this.stamp=e,this.fields=null,this.encode=r||null,this.pulses=n;for(const a of n)if(a.stamp===e){if(a.fields){const t=i.fields||(i.fields={});for(const e in a.fields)t[e]=1}a.changed(i.ADD)&&(o|=i.ADD),a.changed(i.REM)&&(o|=i.REM),a.changed(i.MOD)&&(o|=i.MOD)}this.changes=o}function ii(t){return t.error("Dataflow already running. Use runAsync() to chain invocations."),t}Kr.prototype={StopPropagation:Qr,ADD:1,REM:2,MOD:4,ADD_REM:3,ADD_MOD:5,ALL:7,REFLOW:8,SOURCE:16,NO_SOURCE:32,NO_FIELDS:64,fork(t){return new Kr(this.dataflow).init(this,t)},clone(){const t=this.fork(7);return t.add=t.add.slice(),t.rem=t.rem.slice(),t.mod=t.mod.slice(),t.source&&(t.source=t.source.slice()),t.materialize(23)},addAll(){let t=this;return!t.source||t.add===t.rem||!t.rem.length&&t.source.length===t.add.length||(t=new Kr(this.dataflow).init(this),t.add=t.source,t.rem=[]),t},init(t,e){const n=this;return n.stamp=t.stamp,n.encode=t.encode,!t.fields||64&e||(n.fields=t.fields),1&e?(n.addF=t.addF,n.add=t.add):(n.addF=null,n.add=[]),2&e?(n.remF=t.remF,n.rem=t.rem):(n.remF=null,n.rem=[]),4&e?(n.modF=t.modF,n.mod=t.mod):(n.modF=null,n.mod=[]),32&e?(n.srcF=null,n.source=null):(n.srcF=t.srcF,n.source=t.source,t.cleans&&(n.cleans=t.cleans)),n},runAfter(t){this.dataflow.runAfter(t)},changed(t){const e=t||7;return 1&e&&this.add.length||2&e&&this.rem.length||4&e&&this.mod.length},reflow(t){if(t)return this.fork(7).reflow();const e=this.add.length,n=this.source&&this.source.length;return n&&n!==e&&(this.mod=this.source,e&&this.filter(4,ei(this,1))),this},clean(t){return arguments.length?(this.cleans=!!t,this):this.cleans},modifies(t){const e=this.fields||(this.fields={});return q(t)?t.forEach((t=>e[t]=!0)):e[t]=!0,this},modified(t,e){const n=this.fields;return!(!e&&!this.mod.length||!n)&&(arguments.length?q(t)?t.some((t=>n[t])):n[t]:!!n)},filter(t,e){const n=this;return 1&t&&(n.addF=ni(n.addF,e)),2&t&&(n.remF=ni(n.remF,e)),4&t&&(n.modF=ni(n.modF,e)),16&t&&(n.srcF=ni(n.srcF,e)),n},materialize(t){const e=this;return 1&(t=t||7)&&e.addF&&(e.add=ti(e.add,e.addF),e.addF=null),2&t&&e.remF&&(e.rem=ti(e.rem,e.remF),e.remF=null),4&t&&e.modF&&(e.mod=ti(e.mod,e.modF),e.modF=null),16&t&&e.srcF&&(e.source=e.source.filter(e.srcF),e.srcF=null),e},visit(t,e){const n=this,r=e;if(16&t)return te(n.source,n.srcF,r),n;1&t&&te(n.add,n.addF,r),2&t&&te(n.rem,n.remF,r),4&t&&te(n.mod,n.modF,r);const i=n.source;if(8&t&&i){const t=n.add.length+n.mod.length;t===i.length||te(i,t?ei(n,5):n.srcF,r)}return n}},Tt(ri,Kr,{fork(t){const e=new Kr(this.dataflow).init(this,t&this.NO_FIELDS);return void 0!==t&&(t&e.ADD&&this.visit(e.ADD,(t=>e.add.push(t))),t&e.REM&&this.visit(e.REM,(t=>e.rem.push(t))),t&e.MOD&&this.visit(e.MOD,(t=>e.mod.push(t)))),e},changed(t){return this.changes&t},modified(t){const e=this,n=e.fields;return n&&e.changes&e.MOD?q(t)?t.some((t=>n[t])):n[t]:0},filter(){F("MultiPulse does not support filtering.")},materialize(){F("MultiPulse does not support materialization.")},visit(t,e){const n=this,r=n.pulses,i=r.length;let o=0;if(t&n.SOURCE)for(;o<i;++o)r[o].visit(t,e);else for(;o<i;++o)r[o].stamp===n.stamp&&r[o].visit(t,e);return n}});const oi={skip:!1,force:!1};function ai(t){let e=[];return{clear:()=>e=[],size:()=>e.length,peek:()=>e[0],push:n=>(e.push(n),si(e,0,e.length-1,t)),pop:()=>{const n=e.pop();let r;return e.length?(r=e[0],e[0]=n,function(t,e,n){const r=e,i=t.length,o=t[e];let a,s=1+(e<<1);for(;s<i;)a=s+1,a<i&&n(t[s],t[a])>=0&&(s=a),t[e]=t[s],s=1+((e=s)<<1);t[e]=o,si(t,r,e,n)}(e,0,t)):r=n,r}}}function si(t,e,n,r){let i,o;const a=t[n];for(;n>e&&(o=n-1>>1,i=t[o],r(a,i)<0);)t[n]=i,n=o;return t[n]=a}function ci(){this.logger(U()),this.logLevel(P),this._clock=0,this._rank=0,this._locale=Jn();try{this._loader=Er()}catch(t){}this._touched=Fr(M),this._input={},this._pulse=null,this._heap=ai(((t,e)=>t.qrank-e.qrank)),this._postrun=[]}function ui(t){return function(){return this._log[t].apply(this,arguments)}}function li(t,e){Hr.call(this,t,null,e)}ci.prototype={stamp(){return this._clock},loader(t){return arguments.length?(this._loader=t,this):this._loader},locale(t){return arguments.length?(this._locale=t,this):this._locale},logger(t){return arguments.length?(this._log=t,this):this._log},error:ui("error"),warn:ui("warn"),info:ui("info"),debug:ui("debug"),logLevel:ui("level"),cleanThreshold:1e4,add:function(t,e,n,r){let i,o=1;return t instanceof Hr?i=t:t&&t.prototype instanceof Hr?i=new t:mt(t)?i=new Hr(null,t):(o=0,i=new Hr(t,e)),this.rank(i),o&&(r=n,n=e),n&&this.connect(i,i.parameters(n,r)),this.touch(i),i},connect:function(t,e){const n=t.rank,r=e.length;for(let i=0;i<r;++i)if(n<e[i].rank)return void this.rerank(t)},rank:function(t){t.rank=++this._rank},rerank:function(t){const e=[t];let n,r,i;for(;e.length;)if(this.rank(n=e.pop()),r=n._targets)for(i=r.length;--i>=0;)e.push(n=r[i]),n===t&&F("Cycle detected in dataflow graph.")},pulse:function(t,e,n){this.touch(t,n||oi);const r=new Kr(this,this._clock+(this._pulse?0:1)),i=t.pulse&&t.pulse.source||[];return r.target=t,this._input[t.id]=e.pulse(r,i),this},touch:function(t,e){const n=e||oi;return this._pulse?this._enqueue(t):this._touched.add(t),n.skip&&t.skip(!0),this},update:function(t,e,n){const r=n||oi;return(t.set(e)||r.force)&&this.touch(t,r),this},changeset:Ir,ingest:function(t,e,n){return e=this.parse(e,n),this.pulse(t,this.changeset().insert(e))},parse:function(t,e){const n=this.locale();return kr(t,e,n.timeParse,n.utcParse)},preload:async function(t,e,n){const r=this,i=r._pending||function(t){let e;const n=new Promise((t=>e=t));return n.requests=0,n.done=()=>{0===--n.requests&&(t._pending=null,e(t))},t._pending=n}(r);i.requests+=1;const o=await r.request(e,n);return r.pulse(t,r.changeset().remove(O).insert(o.data||[])),i.done(),o},request:async function(t,e){const n=this;let r,i=0;try{r=await n.loader().load(t,{context:"dataflow",response:wr(e&&e.type)});try{r=n.parse(r,e)}catch(o){i=-2,n.warn("Data ingestion failed",t,o)}}catch(o){i=-1,n.warn("Loading failed",t,o)}return{data:r,status:i}},events:function(t,e,n,r){const i=this,o=$r(n,r),a=function(t){t.dataflow=i;try{o.receive(t)}catch(e){i.error(e)}finally{i.run()}};let s;s="string"===typeof t&&"undefined"!==typeof document?document.querySelectorAll(t):ht(t);const c=s.length;for(let u=0;u<c;++u)s[u].addEventListener(e,a);return o},on:function(t,e,n,r,i){return(t instanceof Hr?Jr:Zr)(this,t,e,n,r,i),this},evaluate:async function(t,e,n){const r=this,i=[];if(r._pulse)return ii(r);if(r._pending&&await r._pending,e&&await Dr(r,e),!r._touched.length)return r.debug("Dataflow invoked, but nothing to do."),r;const o=++r._clock;r._pulse=new Kr(r,o,t),r._touched.forEach((t=>r._enqueue(t,!0))),r._touched=Fr(M);let a,s,c,u=0;try{for(;r._heap.size()>0;)a=r._heap.pop(),a.rank===a.qrank?(s=a.run(r._getPulse(a,t)),s.then?s=await s:s.async&&(i.push(s.async),s=Qr),s!==Qr&&a._targets&&a._targets.forEach((t=>r._enqueue(t))),++u):r._enqueue(a,!0)}catch(l){r._heap.clear(),c=l}if(r._input={},r._pulse=null,r.debug("Pulse ".concat(o,": ").concat(u," operators")),c&&(r._postrun=[],r.error(c)),r._postrun.length){const t=r._postrun.sort(((t,e)=>e.priority-t.priority));r._postrun=[];for(let e=0;e<t.length;++e)await Dr(r,t[e].callback)}return n&&await Dr(r,n),i.length&&Promise.all(i).then((t=>r.runAsync(null,(()=>{t.forEach((t=>{try{t(r)}catch(l){r.error(l)}}))})))),r},run:function(t,e,n){return this._pulse?ii(this):(this.evaluate(t,e,n),this)},runAsync:async function(t,e,n){for(;this._running;)await this._running;const r=()=>this._running=null;return(this._running=this.evaluate(t,e,n)).then(r,r),this._running},runAfter:function(t,e,n){if(this._pulse||e)this._postrun.push({priority:n||0,callback:t});else try{t(this)}catch(r){this.error(r)}},_enqueue:function(t,e){const n=t.stamp<this._clock;n&&(t.stamp=this._clock),(n||e)&&(t.qrank=t.rank,this._heap.push(t))},_getPulse:function(t,e){const n=t.source,r=this._clock;return n&&q(n)?new ri(this,r,n.map((t=>t.pulse)),e):this._input[t.id]||function(t,e){if(e&&e.stamp===t.stamp)return e;t=t.fork(),e&&e!==Qr&&(t.source=e.source);return t}(this._pulse,n&&n.pulse)}},Tt(li,Hr,{run(t){if(t.stamp<this.stamp)return t.StopPropagation;let e;return this.skip()?this.skip(!1):e=this.evaluate(t),e=e||t,e.then?e=e.then((t=>this.pulse=t)):e!==t.StopPropagation&&(this.pulse=e),e},evaluate(t){const e=this.marshall(t.stamp),n=this.transform(e,t);return e.clear(),n},transform(){}});const fi={};function di(t){const e=hi(t);return e&&e.Definition||null}function hi(t){return t=t&&t.toLowerCase(),Dt(fi,t)?fi[t]:null}var pi=n(84283),mi=n(49020),gi=n(90774),vi=n(73675);function*yi(t,e){if(null==e)for(let n of t)null!=n&&""!==n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)r=e(r,++n,t),null!=r&&""!==r&&(r=+r)>=r&&(yield r)}}function bi(t,e,n){const r=Float64Array.from(yi(t,n));return r.sort(pi.A),e.map((t=>(0,mi.Z4)(r,t)))}function Ai(t,e){return bi(t,[.25,.5,.75],e)}function xi(t,e){const n=t.length,r=(0,gi.A)(t,e),i=Ai(t,e),o=(i[2]-i[0])/1.34;return 1.06*(Math.min(r,o)||r||Math.abs(i[0])||1)*Math.pow(n,-.2)}function _i(t){const e=t.maxbins||20,n=t.base||10,r=Math.log(n),i=t.divide||[5,2];let o,a,s,c,u,l,f=t.extent[0],d=t.extent[1];const h=t.span||d-f||Math.abs(f)||1;if(t.step)o=t.step;else if(t.steps){for(c=h/e,u=0,l=t.steps.length;u<l&&t.steps[u]<c;++u);o=t.steps[Math.max(0,u-1)]}else{for(a=Math.ceil(Math.log(e)/r),s=t.minstep||0,o=Math.max(s,Math.pow(n,Math.round(Math.log(h)/r)-a));Math.ceil(h/o)>e;)o*=n;for(u=0,l=i.length;u<l;++u)c=o/i[u],c>=s&&h/c<=e&&(o=c)}c=Math.log(o);const p=c>=0?0:1+~~(-c/r),m=Math.pow(n,-p-1);return(t.nice||void 0===t.nice)&&(c=Math.floor(f/o+m)*o,f=f<c?c-o:c,d=Math.ceil(d/o)*o),{start:f,stop:d===f?f+o:d,step:o}}var wi=Math.random;function ki(t){wi=t}function Ei(t,e,n,r){if(!t.length)return[void 0,void 0];const i=Float64Array.from(yi(t,r)),o=i.length,a=e;let s,c,u,l;for(u=0,l=Array(a);u<a;++u){for(s=0,c=0;c<o;++c)s+=i[~~(wi()*o)];l[u]=s/o}return l.sort(pi.A),[(0,mi.Ay)(l,n/2),(0,mi.Ay)(l,1-n/2)]}function Fi(t,e,n,r){r=r||(t=>t);const i=t.length,o=new Float64Array(i);let a,s=0,c=1,u=r(t[0]),l=u,f=u+e;for(;c<i;++c){if(a=r(t[c]),a>=f){for(l=(u+l)/2;s<c;++s)o[s]=l;f=a+e,u=a}l=a}for(l=(u+l)/2;s<c;++s)o[s]=l;return n?function(t,e){const n=t.length;let r,i,o=0,a=1;for(;t[o]===t[a];)++a;for(;a<n;){for(r=a+1;t[a]===t[r];)++r;if(t[a]-t[a-1]<e){for(i=a+(o+r-a-a>>1);i<a;)t[i++]=t[a];for(;i>a;)t[i--]=t[o]}o=a,a=r}return t}(o,e+e/4):o}function Di(t){return function(){return(t=(1103515245*t+12345)%2147483647)/2147483647}}function Ci(t,e){let n,r,i;null==e&&(e=t,t=0);const o={min(t){return arguments.length?(n=t||0,i=r-n,o):n},max(t){return arguments.length?(r=t||0,i=r-n,o):r},sample:()=>n+Math.floor(i*wi()),pdf:t=>t===Math.floor(t)&&t>=n&&t<r?1/i:0,cdf(t){const e=Math.floor(t);return e<n?0:e>=r?1:(e-n+1)/i},icdf:t=>t>=0&&t<=1?n-1+Math.floor(t*i):NaN};return o.min(t).max(e)}const Mi=Math.sqrt(2*Math.PI),Si=Math.SQRT2;let Ti=NaN;function Ni(t,e){t=t||0,e=null==e?1:e;let n,r,i=0,o=0;if(Ti===Ti)i=Ti,Ti=NaN;else{do{i=2*wi()-1,o=2*wi()-1,n=i*i+o*o}while(0===n||n>1);r=Math.sqrt(-2*Math.log(n)/n),i*=r,Ti=o*r}return t+i*e}function Oi(t,e,n){const r=(t-(e||0))/(n=null==n?1:n);return Math.exp(-.5*r*r)/(n*Mi)}function Bi(t,e,n){const r=(t-(e=e||0))/(n=null==n?1:n),i=Math.abs(r);let o;if(i>37)o=0;else{const t=Math.exp(-i*i/2);let e;i<7.07106781186547?(e=.0352624965998911*i+.700383064443688,e=e*i+6.37396220353165,e=e*i+33.912866078383,e=e*i+112.079291497871,e=e*i+221.213596169931,e=e*i+220.206867912376,o=t*e,e=.0883883476483184*i+1.75566716318264,e=e*i+16.064177579207,e=e*i+86.7807322029461,e=e*i+296.564248779674,e=e*i+637.333633378831,e=e*i+793.826512519948,e=e*i+440.413735824752,o/=e):(e=i+.65,e=i+4/e,e=i+3/e,e=i+2/e,e=i+1/e,o=t/e/2.506628274631)}return r>0?1-o:o}function Ri(t,e,n){return t<0||t>1?NaN:(e||0)+(null==n?1:n)*Si*function(t){let e,n=-Math.log((1-t)*(1+t));n<6.25?(n-=3.125,e=-364441206401782e-35,e=e*n-16850591381820166e-35,e=128584807152564e-32+e*n,e=11157877678025181e-33+e*n,e=e*n-1333171662854621e-31,e=20972767875968562e-33+e*n,e=6637638134358324e-30+e*n,e=e*n-4054566272975207e-29,e=e*n-8151934197605472e-29,e=26335093153082323e-28+e*n,e=e*n-12975133253453532e-27,e=e*n-5415412054294628e-26,e=1.0512122733215323e-9+e*n,e=e*n-4.112633980346984e-9,e=e*n-2.9070369957882005e-8,e=4.2347877827932404e-7+e*n,e=e*n-13654692000834679e-22,e=e*n-13882523362786469e-21,e=.00018673420803405714+e*n,e=e*n-.000740702534166267,e=e*n-.006033670871430149,e=.24015818242558962+e*n,e=1.6536545626831027+e*n):n<16?(n=Math.sqrt(n)-3.25,e=2.2137376921775787e-9,e=9.075656193888539e-8+e*n,e=e*n-2.7517406297064545e-7,e=1.8239629214389228e-8+e*n,e=15027403968909828e-22+e*n,e=e*n-4013867526981546e-21,e=29234449089955446e-22+e*n,e=12475304481671779e-21+e*n,e=e*n-47318229009055734e-21,e=6828485145957318e-20+e*n,e=24031110387097894e-21+e*n,e=e*n-.0003550375203628475,e=.0009532893797373805+e*n,e=e*n-.0016882755560235047,e=.002491442096107851+e*n,e=e*n-.003751208507569241,e=.005370914553590064+e*n,e=1.0052589676941592+e*n,e=3.0838856104922208+e*n):Number.isFinite(n)?(n=Math.sqrt(n)-5,e=-27109920616438573e-27,e=e*n-2.555641816996525e-10,e=1.5076572693500548e-9+e*n,e=e*n-3.789465440126737e-9,e=7.61570120807834e-9+e*n,e=e*n-1.496002662714924e-8,e=2.914795345090108e-8+e*n,e=e*n-6.771199775845234e-8,e=2.2900482228026655e-7+e*n,e=e*n-9.9298272942317e-7,e=4526062597223154e-21+e*n,e=e*n-1968177810553167e-20,e=7599527703001776e-20+e*n,e=e*n-.00021503011930044477,e=e*n-.00013871931833623122,e=1.0103004648645344+e*n,e=4.849906401408584+e*n):e=1/0;return e*t}(2*t-1)}function zi(t,e){let n,r;const i={mean(t){return arguments.length?(n=t||0,i):n},stdev(t){return arguments.length?(r=null==t?1:t,i):r},sample:()=>Ni(n,r),pdf:t=>Oi(t,n,r),cdf:t=>Bi(t,n,r),icdf:t=>Ri(t,n,r)};return i.mean(t).stdev(e)}function Pi(t,e){const n=zi();let r=0;const i={data(n){return arguments.length?(t=n,r=n?n.length:0,i.bandwidth(e)):t},bandwidth(n){return arguments.length?(!(e=n)&&t&&(e=xi(t)),i):e},sample:()=>t[~~(wi()*r)]+e*n.sample(),pdf(i){let o=0,a=0;for(;a<r;++a)o+=n.pdf((i-t[a])/e);return o/e/r},cdf(i){let o=0,a=0;for(;a<r;++a)o+=n.cdf((i-t[a])/e);return o/r},icdf(){throw Error("KDE icdf not supported.")}};return i.data(t)}function Li(t,e){return t=t||0,e=null==e?1:e,Math.exp(t+Ni()*e)}function Ii(t,e,n){if(t<=0)return 0;e=e||0,n=null==n?1:n;const r=(Math.log(t)-e)/n;return Math.exp(-.5*r*r)/(n*Mi*t)}function ji(t,e,n){return Bi(Math.log(t),e,n)}function Ui(t,e,n){return Math.exp(Ri(t,e,n))}function qi(t,e){let n,r;const i={mean(t){return arguments.length?(n=t||0,i):n},stdev(t){return arguments.length?(r=null==t?1:t,i):r},sample:()=>Li(n,r),pdf:t=>Ii(t,n,r),cdf:t=>ji(t,n,r),icdf:t=>Ui(t,n,r)};return i.mean(t).stdev(e)}function Wi(t,e){let n,r=0;const i={weights(t){return arguments.length?(n=function(t){const e=[];let n,i=0;for(n=0;n<r;++n)i+=e[n]=null==t[n]?1:+t[n];for(n=0;n<r;++n)e[n]/=i;return e}(e=t||[]),i):e},distributions(n){return arguments.length?(n?(r=n.length,t=n):(r=0,t=[]),i.weights(e)):t},sample(){const e=wi();let i=t[r-1],o=n[0],a=0;for(;a<r-1;o+=n[++a])if(e<o){i=t[a];break}return i.sample()},pdf(e){let i=0,o=0;for(;o<r;++o)i+=n[o]*t[o].pdf(e);return i},cdf(e){let i=0,o=0;for(;o<r;++o)i+=n[o]*t[o].cdf(e);return i},icdf(){throw Error("Mixture icdf not supported.")}};return i.distributions(t).weights(e)}function Hi(t,e){return null==e&&(e=null==t?1:t,t=0),t+(e-t)*wi()}function Gi(t,e,n){return null==n&&(n=null==e?1:e,e=0),t>=e&&t<=n?1/(n-e):0}function Yi(t,e,n){return null==n&&(n=null==e?1:e,e=0),t<e?0:t>n?1:(t-e)/(n-e)}function Vi(t,e,n){return null==n&&(n=null==e?1:e,e=0),t>=0&&t<=1?e+t*(n-e):NaN}function $i(t,e){let n,r;const i={min(t){return arguments.length?(n=t||0,i):n},max(t){return arguments.length?(r=null==t?1:t,i):r},sample:()=>Hi(n,r),pdf:t=>Gi(t,n,r),cdf:t=>Yi(t,n,r),icdf:t=>Vi(t,n,r)};return null==e&&(e=null==t?1:t,t=0),i.min(t).max(e)}function Xi(t,e,n){let r=0,i=0;for(const o of t){const t=n(o);null==e(o)||null==t||isNaN(t)||(r+=(t-r)/++i)}return{coef:[r],predict:()=>r,rSquared:0}}function Zi(t,e,n,r){const i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i;return[e-o*t,o]}function Ji(t,e,n,r){t=t.filter((t=>{let r=e(t),i=n(t);return null!=r&&(r=+r)>=r&&null!=i&&(i=+i)>=i})),r&&t.sort(((t,n)=>e(t)-e(n)));const i=t.length,o=new Float64Array(i),a=new Float64Array(i);let s,c,u,l=0,f=0,d=0;for(u of t)o[l]=s=+e(u),a[l]=c=+n(u),++l,f+=(s-f)/l,d+=(c-d)/l;for(l=0;l<i;++l)o[l]-=f,a[l]-=d;return[o,a,f,d]}function Qi(t,e,n,r){let i,o,a=-1;for(const s of t)i=e(s),o=n(s),null!=i&&(i=+i)>=i&&null!=o&&(o=+o)>=o&&r(i,o,++a)}function Ki(t,e,n,r,i){let o=0,a=0;return Qi(t,e,n,((t,e)=>{const n=e-i(t),s=e-r;o+=n*n,a+=s*s})),1-o/a}function to(t,e,n){let r=0,i=0,o=0,a=0,s=0;Qi(t,e,n,((t,e)=>{++s,r+=(t-r)/s,i+=(e-i)/s,o+=(t*e-o)/s,a+=(t*t-a)/s}));const c=Zi(r,i,o,a),u=t=>c[0]+c[1]*t;return{coef:c,predict:u,rSquared:Ki(t,e,n,i,u)}}function eo(t,e,n){let r=0,i=0,o=0,a=0,s=0;Qi(t,e,n,((t,e)=>{++s,t=Math.log(t),r+=(t-r)/s,i+=(e-i)/s,o+=(t*e-o)/s,a+=(t*t-a)/s}));const c=Zi(r,i,o,a),u=t=>c[0]+c[1]*Math.log(t);return{coef:c,predict:u,rSquared:Ki(t,e,n,i,u)}}function no(t,e,n){const[r,i,o,a]=Ji(t,e,n);let s,c,u,l=0,f=0,d=0,h=0,p=0;Qi(t,e,n,((t,e)=>{s=r[p++],c=Math.log(e),u=s*e,l+=(e*c-l)/p,f+=(u-f)/p,d+=(u*c-d)/p,h+=(s*u-h)/p}));const[m,g]=Zi(f/a,l/a,d/a,h/a),v=t=>Math.exp(m+g*(t-o));return{coef:[Math.exp(m-g*o),g],predict:v,rSquared:Ki(t,e,n,a,v)}}function ro(t,e,n){let r=0,i=0,o=0,a=0,s=0,c=0;Qi(t,e,n,((t,e)=>{const n=Math.log(t),u=Math.log(e);++c,r+=(n-r)/c,i+=(u-i)/c,o+=(n*u-o)/c,a+=(n*n-a)/c,s+=(e-s)/c}));const u=Zi(r,i,o,a),l=t=>u[0]*Math.pow(t,u[1]);return u[0]=Math.exp(u[0]),{coef:u,predict:l,rSquared:Ki(t,e,n,s,l)}}function io(t,e,n){const[r,i,o,a]=Ji(t,e,n),s=r.length;let c,u,l,f,d=0,h=0,p=0,m=0,g=0;for(c=0;c<s;)u=r[c],l=i[c++],f=u*u,d+=(f-d)/c,h+=(f*u-h)/c,p+=(f*f-p)/c,m+=(u*l-m)/c,g+=(f*l-g)/c;const v=p-d*d,y=d*v-h*h,b=(g*d-m*h)/y,A=(m*v-g*h)/y,x=-b*d,_=t=>b*(t-=o)*t+A*t+x+a;return{coef:[x-A*o+b*o*o+a,A-2*b*o,b],predict:_,rSquared:Ki(t,e,n,a,_)}}function oo(t,e,n,r){if(0===r)return Xi(t,e,n);if(1===r)return to(t,e,n);if(2===r)return io(t,e,n);const[i,o,a,s]=Ji(t,e,n),c=i.length,u=[],l=[],f=r+1;let d,h,p,m,g;for(d=0;d<f;++d){for(p=0,m=0;p<c;++p)m+=Math.pow(i[p],d)*o[p];for(u.push(m),g=new Float64Array(f),h=0;h<f;++h){for(p=0,m=0;p<c;++p)m+=Math.pow(i[p],d+h);g[h]=m}l.push(g)}l.push(u);const v=function(t){const e=t.length-1,n=[];let r,i,o,a,s;for(r=0;r<e;++r){for(a=r,i=r+1;i<e;++i)Math.abs(t[r][i])>Math.abs(t[r][a])&&(a=i);for(o=r;o<e+1;++o)s=t[o][r],t[o][r]=t[o][a],t[o][a]=s;for(i=r+1;i<e;++i)for(o=e;o>=r;o--)t[o][i]-=t[o][r]*t[r][i]/t[r][r]}for(i=e-1;i>=0;--i){for(s=0,o=i+1;o<e;++o)s+=t[o][i]*n[o];n[i]=(t[e][i]-s)/t[i][i]}return n}(l),y=t=>{t-=a;let e=s+v[0]+v[1]*t+v[2]*t*t;for(d=3;d<f;++d)e+=v[d]*Math.pow(t,d);return e};return{coef:ao(f,v,-a,s),predict:y,rSquared:Ki(t,e,n,s,y)}}function ao(t,e,n,r){const i=Array(t);let o,a,s,c;for(o=0;o<t;++o)i[o]=0;for(o=t-1;o>=0;--o)for(s=e[o],c=1,i[o]+=s,a=1;a<=o;++a)c*=(o+1-a)/a,i[o-a]+=s*Math.pow(n,a)*c;return i[0]+=r,i}const so=2,co=1e-12;function uo(t,e,n,r){const[i,o,a,s]=Ji(t,e,n,!0),c=i.length,u=Math.max(2,~~(r*c)),l=new Float64Array(c),f=new Float64Array(c),d=new Float64Array(c).fill(1);for(let h=-1;++h<=so;){const t=[0,u-1];for(let n=0;n<c;++n){const e=i[n],r=t[0],a=t[1],s=e-i[r]>i[a]-e?r:a;let c=0,u=0,h=0,p=0,m=0;const g=1/Math.abs(i[s]-e||1);for(let t=r;t<=a;++t){const n=i[t],r=o[t],a=lo(Math.abs(e-n)*g)*d[t],s=n*a;c+=a,u+=s,h+=r*a,p+=r*s,m+=n*s}const[v,y]=Zi(u/c,h/c,p/c,m/c);l[n]=v+y*e,f[n]=Math.abs(o[n]-l[n]),fo(i,n+1,t)}if(h===so)break;const e=(0,vi.A)(f);if(Math.abs(e)<co)break;for(let n,r,i=0;i<c;++i)n=f[i]/(6*e),d[i]=n>=1?co:(r=1-n*n)*r}return function(t,e,n,r){const i=t.length,o=[];let a,s=0,c=0,u=[];for(;s<i;++s)a=t[s]+n,u[0]===a?u[1]+=(e[s]-u[1])/++c:(c=0,u[1]+=r,u=[a,e[s]],o.push(u));return u[1]+=r,o}(i,l,a,s)}function lo(t){return(t=1-t*t*t)*t*t}function fo(t,e,n){const r=t[e];let i=n[0],o=n[1]+1;if(!(o>=t.length))for(;e>i&&t[o]-r<=r-t[i];)n[0]=++i,n[1]=o,++o}const ho=.5*Math.PI/180;function po(t,e,n,r){n=n||25,r=Math.max(n,r||200);const i=e=>[e,t(e)],o=e[0],a=e[1],s=a-o,c=s/r,u=[i(o)],l=[];if(n===r){for(let t=1;t<r;++t)u.push(i(o+t/n*s));return u.push(i(a)),u}l.push(i(a));for(let m=n;--m>0;)l.push(i(o+m/n*s));let f=u[0],d=l[l.length-1];const h=1/s,p=function(t,e){let n=t,r=t;const i=e.length;for(let o=0;o<i;++o){const t=e[o][1];t<n&&(n=t),t>r&&(r=t)}return 1/(r-n)}(f[1],l);for(;d;){const t=i((f[0]+d[0])/2);t[0]-f[0]>=c&&mo(f,t,d,h,p)>ho?l.push(t):(f=d,u.push(d),l.pop()),d=l[l.length-1]}return u}function mo(t,e,n,r,i){const o=Math.atan2(i*(n[1]-t[1]),r*(n[0]-t[0])),a=Math.atan2(i*(e[1]-t[1]),r*(e[0]-t[0]));return Math.abs(o-a)}var go=n(91236),vo=n(53305),yo=n(11963),bo=n(36172);function Ao(t){return t&&t.length?1===t.length?t[0]:(e=t,t=>{const n=e.length;let r=1,i=String(e[0](t));for(;r<n;++r)i+="|"+e[r](t);return i}):function(){return""};var e}function xo(t,e,n){return n||t+(e?"_"+e:"")}const _o=()=>{},wo={init:_o,add:_o,rem:_o,idx:0},ko={values:{init:t=>t.cell.store=!0,value:t=>t.cell.data.values(),idx:-1},count:{value:t=>t.cell.num},__count__:{value:t=>t.missing+t.valid},missing:{value:t=>t.missing},valid:{value:t=>t.valid},sum:{init:t=>t.sum=0,value:t=>t.valid?t.sum:void 0,add:(t,e)=>t.sum+=+e,rem:(t,e)=>t.sum-=e},product:{init:t=>t.product=1,value:t=>t.valid?t.product:void 0,add:(t,e)=>t.product*=e,rem:(t,e)=>t.product/=e},mean:{init:t=>t.mean=0,value:t=>t.valid?t.mean:void 0,add:(t,e)=>(t.mean_d=e-t.mean,t.mean+=t.mean_d/t.valid),rem:(t,e)=>(t.mean_d=e-t.mean,t.mean-=t.valid?t.mean_d/t.valid:t.mean)},average:{value:t=>t.valid?t.mean:void 0,req:["mean"],idx:1},variance:{init:t=>t.dev=0,value:t=>t.valid>1?t.dev/(t.valid-1):void 0,add:(t,e)=>t.dev+=t.mean_d*(e-t.mean),rem:(t,e)=>t.dev-=t.mean_d*(e-t.mean),req:["mean"],idx:1},variancep:{value:t=>t.valid>1?t.dev/t.valid:void 0,req:["variance"],idx:2},stdev:{value:t=>t.valid>1?Math.sqrt(t.dev/(t.valid-1)):void 0,req:["variance"],idx:2},stdevp:{value:t=>t.valid>1?Math.sqrt(t.dev/t.valid):void 0,req:["variance"],idx:2},stderr:{value:t=>t.valid>1?Math.sqrt(t.dev/(t.valid*(t.valid-1))):void 0,req:["variance"],idx:2},distinct:{value:t=>t.cell.data.distinct(t.get),req:["values"],idx:3},ci0:{value:t=>t.cell.data.ci0(t.get),req:["values"],idx:3},ci1:{value:t=>t.cell.data.ci1(t.get),req:["values"],idx:3},median:{value:t=>t.cell.data.q2(t.get),req:["values"],idx:3},q1:{value:t=>t.cell.data.q1(t.get),req:["values"],idx:3},q3:{value:t=>t.cell.data.q3(t.get),req:["values"],idx:3},min:{init:t=>t.min=void 0,value:t=>t.min=Number.isNaN(t.min)?t.cell.data.min(t.get):t.min,add:(t,e)=>{(e<t.min||void 0===t.min)&&(t.min=e)},rem:(t,e)=>{e<=t.min&&(t.min=NaN)},req:["values"],idx:4},max:{init:t=>t.max=void 0,value:t=>t.max=Number.isNaN(t.max)?t.cell.data.max(t.get):t.max,add:(t,e)=>{(e>t.max||void 0===t.max)&&(t.max=e)},rem:(t,e)=>{e>=t.max&&(t.max=NaN)},req:["values"],idx:4},argmin:{init:t=>t.argmin=void 0,value:t=>t.argmin||t.cell.data.argmin(t.get),add:(t,e,n)=>{e<t.min&&(t.argmin=n)},rem:(t,e)=>{e<=t.min&&(t.argmin=void 0)},req:["min","values"],idx:3},argmax:{init:t=>t.argmax=void 0,value:t=>t.argmax||t.cell.data.argmax(t.get),add:(t,e,n)=>{e>t.max&&(t.argmax=n)},rem:(t,e)=>{e>=t.max&&(t.argmax=void 0)},req:["max","values"],idx:3},exponential:{init:(t,e)=>{t.exp=0,t.exp_r=e},value:t=>t.valid?t.exp*(1-t.exp_r)/(1-t.exp_r**t.valid):void 0,add:(t,e)=>t.exp=t.exp_r*t.exp+e,rem:(t,e)=>t.exp=(t.exp-e/t.exp_r**(t.valid-1))/t.exp_r},exponentialb:{value:t=>t.valid?t.exp*(1-t.exp_r):void 0,req:["exponential"],idx:1}},Eo=Object.keys(ko).filter((t=>"__count__"!==t));function Fo(t,e,n){return ko[t](n,e)}function Do(t,e){return t.idx-e.idx}function Co(){this.valid=0,this.missing=0,this._ops.forEach((t=>null==t.aggregate_param?t.init(this):t.init(this,t.aggregate_param)))}function Mo(t,e){null!=t&&""!==t?t===t&&(++this.valid,this._ops.forEach((n=>n.add(this,t,e)))):++this.missing}function So(t,e){null!=t&&""!==t?t===t&&(--this.valid,this._ops.forEach((n=>n.rem(this,t,e)))):--this.missing}function To(t){return this._out.forEach((e=>t[e.out]=e.value(this))),t}function No(t,e){const n=e||S,r=function(t){const e={};t.forEach((t=>e[t.name]=t));const n=t=>{t.req&&t.req.forEach((t=>{e[t]||n(e[t]=ko[t]())}))};return t.forEach(n),Object.values(e).sort(Do)}(t),i=t.slice().sort(Do);function o(t){this._ops=r,this._out=i,this.cell=t,this.init()}return o.prototype.init=Co,o.prototype.add=Mo,o.prototype.rem=So,o.prototype.set=To,o.prototype.get=n,o.fields=t.map((t=>t.out)),o}function Oo(t){this._key=t?C(t):Tr,this.reset()}[...Eo,"__count__"].forEach((t=>{ko[t]=function(t,e){return(n,r)=>kt({name:t,aggregate_param:r,out:n||t},wo,e)}(t,ko[t])}));const Bo=Oo.prototype;function Ro(t){li.call(this,null,t),this._adds=[],this._mods=[],this._alen=0,this._mlen=0,this._drop=!0,this._cross=!1,this._dims=[],this._dnames=[],this._measures=[],this._countOnly=!1,this._counts=null,this._prev=null,this._inputs=null,this._outputs=null}Bo.reset=function(){this._add=[],this._rem=[],this._ext=null,this._get=null,this._q=null},Bo.add=function(t){this._add.push(t)},Bo.rem=function(t){this._rem.push(t)},Bo.values=function(){if(this._get=null,0===this._rem.length)return this._add;const t=this._add,e=this._rem,n=this._key,r=t.length,i=e.length,o=Array(r-i),a={};let s,c,u;for(s=0;s<i;++s)a[n(e[s])]=1;for(s=0,c=0;s<r;++s)a[n(u=t[s])]?a[n(u)]=0:o[c++]=u;return this._rem=[],this._add=o},Bo.distinct=function(t){const e=this.values(),n={};let r,i=e.length,o=0;for(;--i>=0;)r=t(e[i])+"",Dt(n,r)||(n[r]=1,++o);return o},Bo.extent=function(t){if(this._get!==t||!this._ext){const e=this.values(),n=Ft(e,t);this._ext=[e[n[0]],e[n[1]]],this._get=t}return this._ext},Bo.argmin=function(t){return this.extent(t)[0]||{}},Bo.argmax=function(t){return this.extent(t)[1]||{}},Bo.min=function(t){const e=this.extent(t)[0];return null!=e?t(e):void 0},Bo.max=function(t){const e=this.extent(t)[1];return null!=e?t(e):void 0},Bo.quartile=function(t){return this._get===t&&this._q||(this._q=Ai(this.values(),t),this._get=t),this._q},Bo.q1=function(t){return this.quartile(t)[0]},Bo.q2=function(t){return this.quartile(t)[1]},Bo.q3=function(t){return this.quartile(t)[2]},Bo.ci=function(t){return this._get===t&&this._ci||(this._ci=Ei(this.values(),1e3,.05,t),this._get=t),this._ci},Bo.ci0=function(t){return this.ci(t)[0]},Bo.ci1=function(t){return this.ci(t)[1]},Ro.Definition={type:"Aggregate",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"ops",type:"enum",array:!0,values:Eo},{name:"aggregate_params",type:"number",null:!0,array:!0},{name:"fields",type:"field",null:!0,array:!0},{name:"as",type:"string",null:!0,array:!0},{name:"drop",type:"boolean",default:!0},{name:"cross",type:"boolean",default:!1},{name:"key",type:"field"}]},Tt(Ro,li,{transform(t,e){const n=this,r=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=t.modified();return n.stamp=r.stamp,n.value&&(i||e.modified(n._inputs,!0))?(n._prev=n.value,n.value=i?n.init(t):Object.create(null),e.visit(e.SOURCE,(t=>n.add(t)))):(n.value=n.value||n.init(t),e.visit(e.REM,(t=>n.rem(t))),e.visit(e.ADD,(t=>n.add(t)))),r.modifies(n._outputs),n._drop=!1!==t.drop,t.cross&&n._dims.length>1&&(n._drop=!1,n.cross()),e.clean()&&n._drop&&r.clean(!0).runAfter((()=>this.clean())),n.changes(r)},cross(){const t=this,e=t.value,n=t._dnames,r=n.map((()=>({}))),i=n.length;function o(t){let e,o,a,s;for(e in t)for(a=t[e].tuple,o=0;o<i;++o)r[o][s=a[n[o]]]=s}o(t._prev),o(e),function o(a,s,c){const u=n[c],l=r[c++];for(const n in l){const r=a?a+"|"+n:n;s[u]=l[n],c<i?o(r,s,c):e[r]||t.cell(r,s)}}("",{},0)},init(t){const e=this._inputs=[],n=this._outputs=[],r={};function i(t){const n=ht(_(t)),i=n.length;let o,a=0;for(;a<i;++a)r[o=n[a]]||(r[o]=1,e.push(o))}this._dims=ht(t.groupby),this._dnames=this._dims.map((t=>{const e=x(t);return i(t),n.push(e),e})),this.cellkey=t.key?t.key:Ao(this._dims),this._countOnly=!0,this._counts=[],this._measures=[];const o=t.fields||[null],a=t.ops||["count"],s=t.aggregate_params||[null],c=t.as||[],u=o.length,l={};let f,d,h,p,m,g,v;for(u!==a.length&&F("Unmatched number of fields and aggregate ops."),v=0;v<u;++v)f=o[v],d=a[v],h=s[v]||null,null==f&&"count"!==d&&F("Null aggregate field specified."),m=x(f),g=xo(d,m,c[v]),n.push(g),"count"!==d?(p=l[m],p||(i(f),p=l[m]=[],p.field=f,this._measures.push(p)),"count"!==d&&(this._countOnly=!1),p.push(Fo(d,h,g))):this._counts.push(g);return this._measures=this._measures.map((t=>No(t,t.field))),Object.create(null)},cellkey:Ao(),cell(t,e){let n=this.value[t];return n?0===n.num&&this._drop&&n.stamp<this.stamp?(n.stamp=this.stamp,this._adds[this._alen++]=n):n.stamp<this.stamp&&(n.stamp=this.stamp,this._mods[this._mlen++]=n):(n=this.value[t]=this.newcell(t,e),this._adds[this._alen++]=n),n},newcell(t,e){const n={key:t,num:0,agg:null,tuple:this.newtuple(e,this._prev&&this._prev[t]),stamp:this.stamp,store:!1};if(!this._countOnly){const t=this._measures,e=t.length;n.agg=Array(e);for(let r=0;r<e;++r)n.agg[r]=new t[r](n)}return n.store&&(n.data=new Oo),n},newtuple(t,e){const n=this._dnames,r=this._dims,i=r.length,o={};for(let a=0;a<i;++a)o[n[a]]=r[a](t);return e?zr(e.tuple,o):Or(o)},clean(){const t=this.value;for(const e in t)0===t[e].num&&delete t[e]},add(t){const e=this.cellkey(t),n=this.cell(e,t);if(n.num+=1,this._countOnly)return;n.store&&n.data.add(t);const r=n.agg;for(let i=0,o=r.length;i<o;++i)r[i].add(r[i].get(t),t)},rem(t){const e=this.cellkey(t),n=this.cell(e,t);if(n.num-=1,this._countOnly)return;n.store&&n.data.rem(t);const r=n.agg;for(let i=0,o=r.length;i<o;++i)r[i].rem(r[i].get(t),t)},celltuple(t){const e=t.tuple,n=this._counts;t.store&&t.data.values();for(let r=0,i=n.length;r<i;++r)e[n[r]]=t.num;if(!this._countOnly){const n=t.agg;for(let t=0,r=n.length;t<r;++t)n[t].set(e)}return e},changes(t){const e=this._adds,n=this._mods,r=this._prev,i=this._drop,o=t.add,a=t.rem,s=t.mod;let c,u,l,f;if(r)for(u in r)c=r[u],i&&!c.num||a.push(c.tuple);for(l=0,f=this._alen;l<f;++l)o.push(this.celltuple(e[l])),e[l]=null;for(l=0,f=this._mlen;l<f;++l)c=n[l],(0===c.num&&i?a:s).push(this.celltuple(c)),n[l]=null;return this._alen=this._mlen=0,this._prev=null,t}});function zo(t){li.call(this,null,t)}function Po(t,e,n){const r=t;let i=e||[],o=n||[],a={},s=0;return{add:t=>o.push(t),remove:t=>a[r(t)]=++s,size:()=>i.length,data:(t,e)=>(s&&(i=i.filter((t=>!a[r(t)])),a={},s=0),e&&t&&i.sort(t),o.length&&(i=t?Wt(t,i,o.sort(t)):i.concat(o),o=[]),i)}}function Lo(t){li.call(this,[],t)}function Io(t){Hr.call(this,null,jo,t)}function jo(t){return this.value&&!t.modified()?this.value:vt(t.fields,t.orders)}function Uo(t){li.call(this,null,t)}function qo(t){li.call(this,null,t)}zo.Definition={type:"Bin",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"interval",type:"boolean",default:!0},{name:"anchor",type:"number"},{name:"maxbins",type:"number",default:20},{name:"base",type:"number",default:10},{name:"divide",type:"number",array:!0,default:[5,2]},{name:"extent",type:"number",array:!0,length:2,required:!0},{name:"span",type:"number"},{name:"step",type:"number"},{name:"steps",type:"number",array:!0},{name:"minstep",type:"number",default:0},{name:"nice",type:"boolean",default:!0},{name:"name",type:"string"},{name:"as",type:"string",array:!0,length:2,default:["bin0","bin1"]}]},Tt(zo,li,{transform(t,e){const n=!1!==t.interval,r=this._bins(t),i=r.start,o=r.step,a=t.as||["bin0","bin1"],s=a[0],c=a[1];let u;return u=t.modified()?(e=e.reflow(!0)).SOURCE:e.modified(_(t.field))?e.ADD_MOD:e.ADD,e.visit(u,n?t=>{const e=r(t);t[s]=e,t[c]=null==e?null:i+o*(1+(e-i)/o)}:t=>t[s]=r(t)),e.modifies(n?a:s)},_bins(t){if(this.value&&!t.modified())return this.value;const e=t.field,n=_i(t),r=n.step;let i,o,a=n.start,s=a+Math.ceil((n.stop-a)/r)*r;null!=(i=t.anchor)&&(o=i-(a+r*Math.floor((i-a)/r)),a+=o,s+=o);const c=function(t){let n=X(e(t));return null==n?null:n<a?-1/0:n>s?1/0:(n=Math.max(a,Math.min(n,s-r)),a+r*Math.floor(1e-14+(n-a)/r))};return c.start=a,c.stop=n.stop,c.step=r,this.value=A(c,_(e),t.name||"bin_"+x(e))}}),Lo.Definition={type:"Collect",metadata:{source:!0},params:[{name:"sort",type:"compare"}]},Tt(Lo,li,{transform(t,e){const n=e.fork(e.ALL),r=Po(Tr,this.value,n.materialize(n.ADD).add),i=t.sort,o=e.changed()||i&&(t.modified("sort")||e.modified(i.fields));return n.visit(n.REM,r.remove),this.modified(o),this.value=n.source=r.data(Pr(i),o),e.source&&e.source.root&&(this.value.root=e.source.root),n}}),Tt(Io,Hr),Uo.Definition={type:"CountPattern",metadata:{generates:!0,changes:!0},params:[{name:"field",type:"field",required:!0},{name:"case",type:"enum",values:["upper","lower","mixed"],default:"mixed"},{name:"pattern",type:"string",default:'[\\w"]+'},{name:"stopwords",type:"string",default:""},{name:"as",type:"string",array:!0,length:2,default:["text","count"]}]},Tt(Uo,li,{transform(t,e){const n=e=>n=>{for(var r,i=function(t,e,n){switch(e){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase()}return t.match(n)}(s(n),t.case,o)||[],c=0,u=i.length;c<u;++c)a.test(r=i[c])||e(r)},r=this._parameterCheck(t,e),i=this._counts,o=this._match,a=this._stop,s=t.field,c=t.as||["text","count"],u=n((t=>i[t]=1+(i[t]||0))),l=n((t=>i[t]-=1));return r?e.visit(e.SOURCE,u):(e.visit(e.ADD,u),e.visit(e.REM,l)),this._finish(e,c)},_parameterCheck(t,e){let n=!1;return!t.modified("stopwords")&&this._stop||(this._stop=new RegExp("^"+(t.stopwords||"")+"$","i"),n=!0),!t.modified("pattern")&&this._match||(this._match=new RegExp(t.pattern||"[\\w']+","g"),n=!0),(t.modified("field")||e.modified(t.field.fields))&&(n=!0),n&&(this._counts={}),n},_finish(t,e){const n=this._counts,r=this._tuples||(this._tuples={}),i=e[0],o=e[1],a=t.fork(t.NO_SOURCE|t.NO_FIELDS);let s,c,u;for(s in n)c=r[s],u=n[s]||0,!c&&u?(r[s]=c=Or({}),c[i]=s,c[o]=u,a.add.push(c)):0===u?(c&&a.rem.push(c),n[s]=null,r[s]=null):c[o]!==u&&(c[o]=u,a.mod.push(c));return a.modifies(e)}}),qo.Definition={type:"Cross",metadata:{generates:!0},params:[{name:"filter",type:"expr"},{name:"as",type:"string",array:!0,length:2,default:["a","b"]}]},Tt(qo,li,{transform(t,e){const n=e.fork(e.NO_SOURCE),r=t.as||["a","b"],i=r[0],o=r[1],a=!this.value||e.changed(e.ADD_REM)||t.modified("as")||t.modified("filter");let s=this.value;return a?(s&&(n.rem=s),s=e.materialize(e.SOURCE).source,n.add=this.value=function(t,e,n,r){for(var i,o,a=[],s={},c=t.length,u=0;u<c;++u)for(s[e]=o=t[u],i=0;i<c;++i)s[n]=t[i],r(s)&&(a.push(Or(s)),(s={})[e]=o);return a}(s,i,o,t.filter||O)):n.mod=s,n.source=this.value,n.modifies(r)}});const Wo={kde:Pi,mixture:Wi,normal:zi,lognormal:qi,uniform:$i},Ho="function";function Go(t,e){const n=t[Ho];Dt(Wo,n)||F("Unknown distribution function: "+n);const r=Wo[n]();for(const i in t)"field"===i?r.data((t.from||e()).map(t[i])):"distributions"===i?r[i](t[i].map((t=>Go(t,e)))):typeof r[i]===Ho&&r[i](t[i]);return r}function Yo(t){li.call(this,null,t)}const Vo=[{key:{function:"normal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"lognormal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"uniform"},params:[{name:"min",type:"number",default:0},{name:"max",type:"number",default:1}]},{key:{function:"kde"},params:[{name:"field",type:"field",required:!0},{name:"from",type:"data"},{name:"bandwidth",type:"number",default:0}]}],$o={key:{function:"mixture"},params:[{name:"distributions",type:"param",array:!0,params:Vo},{name:"weights",type:"number",array:!0}]};function Xo(t,e){return t?t.map(((t,n)=>e[n]||x(t))):null}function Zo(t,e,n){const r=[],i=t=>t(c);let o,a,s,c,u,l;if(null==e)r.push(t.map(n));else for(o={},a=0,s=t.length;a<s;++a)c=t[a],u=e.map(i),l=o[u],l||(o[u]=l=[],l.dims=u,r.push(l)),l.push(n(c));return r}Yo.Definition={type:"Density",metadata:{generates:!0},params:[{name:"extent",type:"number",array:!0,length:2},{name:"steps",type:"number"},{name:"minsteps",type:"number",default:25},{name:"maxsteps",type:"number",default:200},{name:"method",type:"string",default:"pdf",values:["pdf","cdf"]},{name:"distribution",type:"param",params:Vo.concat($o)},{name:"as",type:"string",array:!0,default:["value","density"]}]},Tt(Yo,li,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){const r=Go(t.distribution,function(t){return()=>t.materialize(t.SOURCE).source}(e)),i=t.steps||t.minsteps||25,o=t.steps||t.maxsteps||200;let a=t.method||"pdf";"pdf"!==a&&"cdf"!==a&&F("Invalid density method: "+a),t.extent||r.data||F("Missing density extent parameter."),a=r[a];const s=t.as||["value","density"],c=po(a,t.extent||Et(r.data()),i,o).map((t=>{const e={};return e[s[0]]=t[0],e[s[1]]=t[1],Or(e)}));this.value&&(n.rem=this.value),this.value=n.add=n.source=c}return n}});function Jo(t){li.call(this,null,t)}Jo.Definition={type:"DotBin",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"groupby",type:"field",array:!0},{name:"step",type:"number"},{name:"smooth",type:"boolean",default:!1},{name:"as",type:"string",default:"bin"}]};function Qo(t){Hr.call(this,null,Ko,t),this.modified(!0)}function Ko(t){const e=t.expr;return this.value&&!t.modified("expr")?this.value:A((n=>e(n,t)),_(e),x(e))}function ta(t){li.call(this,[void 0,void 0],t)}function ea(t,e){Hr.call(this,t),this.parent=e,this.count=0}function na(t){li.call(this,{},t),this._keys=Mt();const e=this._targets=[];e.active=0,e.forEach=t=>{for(let n=0,r=e.active;n<r;++n)t(e[n],n,e)}}function ra(t){Hr.call(this,null,ia,t)}function ia(t){return this.value&&!t.modified()?this.value:q(t.name)?ht(t.name).map((t=>C(t))):C(t.name,t.as)}function oa(t){li.call(this,Mt(),t)}function aa(t){li.call(this,[],t)}function sa(t){li.call(this,[],t)}function ca(t){li.call(this,null,t)}function ua(t){li.call(this,[],t)}Tt(Jo,li,{transform(t,e){if(this.value&&!t.modified()&&!e.changed())return e;const n=e.materialize(e.SOURCE).source,r=Zo(e.source,t.groupby,S),i=t.smooth||!1,o=t.field,a=t.step||((t,e)=>Yt(Et(t,e))/30)(n,o),s=Pr(((t,e)=>o(t)-o(e))),c=t.as||"bin",u=r.length;let l,f=1/0,d=-1/0,h=0;for(;h<u;++h){const t=r[h].sort(s);l=-1;for(const e of Fi(t,a,i,o))e<f&&(f=e),e>d&&(d=e),t[++l][c]=e}return this.value={start:f,stop:d,step:a},e.reflow(!0).modifies(c)}}),Tt(Qo,Hr),ta.Definition={type:"Extent",metadata:{},params:[{name:"field",type:"field",required:!0}]},Tt(ta,li,{transform(t,e){const n=this.value,r=t.field,i=e.changed()||e.modified(r.fields)||t.modified("field");let o=n[0],a=n[1];if((i||null==o)&&(o=1/0,a=-1/0),e.visit(i?e.SOURCE:e.ADD,(t=>{const e=X(r(t));null!=e&&(e<o&&(o=e),e>a&&(a=e))})),!Number.isFinite(o)||!Number.isFinite(a)){let t=x(r);t&&(t=' for field "'.concat(t,'"')),e.dataflow.warn("Infinite extent".concat(t,": [").concat(o,", ").concat(a,"]")),o=a=void 0}this.value=[o,a]}}),Tt(ea,Hr,{connect(t){return this.detachSubflow=t.detachSubflow,this.targets().add(t),t.source=this},add(t){this.count+=1,this.value.add.push(t)},rem(t){this.count-=1,this.value.rem.push(t)},mod(t){this.value.mod.push(t)},init(t){this.value.init(t,t.NO_SOURCE)},evaluate(){return this.value}}),Tt(na,li,{activate(t){this._targets[this._targets.active++]=t},subflow(t,e,n,r){const i=this.value;let o,a,s=Dt(i,t)&&i[t];return s?s.value.stamp<n.stamp&&(s.init(n),this.activate(s)):(a=r||(a=this._group[t])&&a.tuple,o=n.dataflow,s=new ea(n.fork(n.NO_SOURCE),this),o.add(s).connect(e(o,t,a)),i[t]=s,this.activate(s)),s},clean(){const t=this.value;let e=0;for(const n in t)if(0===t[n].count){const r=t[n].detachSubflow;r&&r(),delete t[n],++e}if(e){const t=this._targets.filter((t=>t&&t.count>0));this.initTargets(t)}},initTargets(t){const e=this._targets,n=e.length,r=t?t.length:0;let i=0;for(;i<r;++i)e[i]=t[i];for(;i<n&&null!=e[i];++i)e[i]=null;e.active=r},transform(t,e){const n=e.dataflow,r=t.key,i=t.subflow,o=this._keys,a=t.modified("key"),s=t=>this.subflow(t,i,e);return this._group=t.group||{},this.initTargets(),e.visit(e.REM,(t=>{const e=Tr(t),n=o.get(e);void 0!==n&&(o.delete(e),s(n).rem(t))})),e.visit(e.ADD,(t=>{const e=r(t);o.set(Tr(t),e),s(e).add(t)})),a||e.modified(r.fields)?e.visit(e.MOD,(t=>{const e=Tr(t),n=o.get(e),i=r(t);n===i?s(i).mod(t):(o.set(e,i),s(n).rem(t),s(i).add(t))})):e.changed(e.MOD)&&e.visit(e.MOD,(t=>{s(o.get(Tr(t))).mod(t)})),a&&e.visit(e.REFLOW,(t=>{const e=Tr(t),n=o.get(e),i=r(t);n!==i&&(o.set(e,i),s(n).rem(t),s(i).add(t))})),e.clean()?n.runAfter((()=>{this.clean(),o.clean()})):o.empty>n.cleanThreshold&&n.runAfter(o.clean),e}}),Tt(ra,Hr),oa.Definition={type:"Filter",metadata:{changes:!0},params:[{name:"expr",type:"expr",required:!0}]},Tt(oa,li,{transform(t,e){const n=e.dataflow,r=this.value,i=e.fork(),o=i.add,a=i.rem,s=i.mod,c=t.expr;let u=!0;function l(e){const n=Tr(e),i=c(e,t),l=r.get(n);i&&l?(r.delete(n),o.push(e)):i||l?u&&i&&!l&&s.push(e):(r.set(n,1),a.push(e))}return e.visit(e.REM,(t=>{const e=Tr(t);r.has(e)?r.delete(e):a.push(t)})),e.visit(e.ADD,(e=>{c(e,t)?o.push(e):r.set(Tr(e),1)})),e.visit(e.MOD,l),t.modified()&&(u=!1,e.visit(e.REFLOW,l)),r.empty>n.cleanThreshold&&n.runAfter(r.clean),i}}),aa.Definition={type:"Flatten",metadata:{generates:!0},params:[{name:"fields",type:"field",array:!0,required:!0},{name:"index",type:"string"},{name:"as",type:"string",array:!0}]},Tt(aa,li,{transform(t,e){const n=e.fork(e.NO_SOURCE),r=t.fields,i=Xo(r,t.as||[]),o=t.index||null,a=i.length;return n.rem=this.value,e.visit(e.SOURCE,(t=>{const e=r.map((e=>e(t))),s=e.reduce(((t,e)=>Math.max(t,e.length)),0);let c,u,l,f=0;for(;f<s;++f){for(u=Br(t),c=0;c<a;++c)u[i[c]]=null==(l=e[c][f])?null:l;o&&(u[o]=f),n.add.push(u)}})),this.value=n.source=n.add,o&&n.modifies(o),n.modifies(i)}}),sa.Definition={type:"Fold",metadata:{generates:!0},params:[{name:"fields",type:"field",array:!0,required:!0},{name:"as",type:"string",array:!0,length:2,default:["key","value"]}]},Tt(sa,li,{transform(t,e){const n=e.fork(e.NO_SOURCE),r=t.fields,i=r.map(x),o=t.as||["key","value"],a=o[0],s=o[1],c=r.length;return n.rem=this.value,e.visit(e.SOURCE,(t=>{for(let e,o=0;o<c;++o)e=Br(t),e[a]=i[o],e[s]=r[o](t),n.add.push(e)})),this.value=n.source=n.add,n.modifies(o)}}),ca.Definition={type:"Formula",metadata:{modifies:!0},params:[{name:"expr",type:"expr",required:!0},{name:"as",type:"string",required:!0},{name:"initonly",type:"boolean"}]},Tt(ca,li,{transform(t,e){const n=t.expr,r=t.as,i=t.modified(),o=t.initonly?e.ADD:i?e.SOURCE:e.modified(n.fields)||e.modified(r)?e.ADD_MOD:e.ADD;return i&&(e=e.materialize().reflow(!0)),t.initonly||e.modifies(r),e.visit(o,(e=>e[r]=n(e,t)))}}),Tt(ua,li,{transform(t,e){const n=e.fork(e.ALL),r=t.generator;let i,o,a,s=this.value,c=t.size-s.length;if(c>0){for(i=[];--c>=0;)i.push(a=Or(r(t))),s.push(a);n.add=n.add.length?n.materialize(n.ADD).add.concat(i):i}else o=s.slice(0,-c),n.rem=n.rem.length?n.materialize(n.REM).rem.concat(o):o,s=s.slice(-c);return n.source=this.value=s,n}});const la={value:"value",median:vi.A,mean:go.A,min:vo.A,max:yo.A},fa=[];function da(t){li.call(this,[],t)}function ha(t){Ro.call(this,t)}function pa(t){li.call(this,null,t)}function ma(t){Hr.call(this,null,ga,t)}function ga(t){return this.value&&!t.modified()?this.value:It(t.fields,t.flat)}function va(t){li.call(this,[],t),this._pending=null}function ya(t,e,n){n.forEach(Or);const r=e.fork(e.NO_FIELDS&e.NO_SOURCE);return r.rem=t.value,t.value=r.source=r.add=n,t._pending=null,r.rem.length&&r.clean(!0),r}function ba(t){li.call(this,{},t)}function Aa(t){Hr.call(this,null,xa,t)}function xa(t){if(this.value&&!t.modified())return this.value;const e=t.extents,n=e.length;let r,i,o=1/0,a=-1/0;for(r=0;r<n;++r)i=e[r],i[0]<o&&(o=i[0]),i[1]>a&&(a=i[1]);return[o,a]}function _a(t){Hr.call(this,null,wa,t)}function wa(t){return this.value&&!t.modified()?this.value:t.values.reduce(((t,e)=>t.concat(e)),[])}function ka(t){li.call(this,null,t)}function Ea(t){Ro.call(this,t)}function Fa(t){na.call(this,t)}function Da(t){li.call(this,null,t)}function Ca(t){li.call(this,null,t)}function Ma(t){li.call(this,null,t)}da.Definition={type:"Impute",metadata:{changes:!0},params:[{name:"field",type:"field",required:!0},{name:"key",type:"field",required:!0},{name:"keyvals",array:!0},{name:"groupby",type:"field",array:!0},{name:"method",type:"enum",default:"value",values:["value","mean","median","max","min"]},{name:"value",default:0}]},Tt(da,li,{transform(t,e){var n,r,i,o,a,s,c,u,l,f,d=e.fork(e.ALL),h=function(t){var e,n=t.method||la.value;if(null!=la[n])return n===la.value?(e=void 0!==t.value?t.value:0,()=>e):la[n];F("Unrecognized imputation method: "+n)}(t),p=function(t){const e=t.field;return t=>t?e(t):NaN}(t),m=x(t.field),g=x(t.key),v=(t.groupby||[]).map(x),y=function(t,e,n,r){var i,o,a,s,c,u,l,f,d=t=>t(f),h=[],p=r?r.slice():[],m={},g={};for(p.forEach(((t,e)=>m[t]=e+1)),s=0,l=t.length;s<l;++s)u=n(f=t[s]),c=m[u]||(m[u]=p.push(u)),(a=g[o=(i=e?e.map(d):fa)+""])||(a=g[o]=[],h.push(a),a.values=i),a[c-1]=f;return h.domain=p,h}(e.source,t.groupby,t.key,t.keyvals),b=[],A=this.value,_=y.domain.length;for(a=0,u=y.length;a<u;++a)for(i=(n=y[a]).values,r=NaN,c=0;c<_;++c)if(null==n[c]){for(o=y.domain[c],f={_impute:!0},s=0,l=i.length;s<l;++s)f[v[s]]=i[s];f[g]=o,f[m]=Number.isNaN(r)?r=h(n,p):r,b.push(Or(f))}return b.length&&(d.add=d.materialize(d.ADD).add.concat(b)),A.length&&(d.rem=d.materialize(d.REM).rem.concat(A)),this.value=b,d}}),ha.Definition={type:"JoinAggregate",metadata:{modifies:!0},params:[{name:"groupby",type:"field",array:!0},{name:"fields",type:"field",null:!0,array:!0},{name:"ops",type:"enum",array:!0,values:Eo},{name:"as",type:"string",null:!0,array:!0},{name:"key",type:"field"}]},Tt(ha,Ro,{transform(t,e){const n=this,r=t.modified();let i;return n.value&&(r||e.modified(n._inputs,!0))?(i=n.value=r?n.init(t):{},e.visit(e.SOURCE,(t=>n.add(t)))):(i=n.value=n.value||this.init(t),e.visit(e.REM,(t=>n.rem(t))),e.visit(e.ADD,(t=>n.add(t)))),n.changes(),e.visit(e.SOURCE,(t=>{kt(t,i[n.cellkey(t)].tuple)})),e.reflow(r).modifies(this._outputs)},changes(){const t=this._adds,e=this._mods;let n,r;for(n=0,r=this._alen;n<r;++n)this.celltuple(t[n]),t[n]=null;for(n=0,r=this._mlen;n<r;++n)this.celltuple(e[n]),e[n]=null;this._alen=this._mlen=0}}),pa.Definition={type:"KDE",metadata:{generates:!0},params:[{name:"groupby",type:"field",array:!0},{name:"field",type:"field",required:!0},{name:"cumulative",type:"boolean",default:!1},{name:"counts",type:"boolean",default:!1},{name:"bandwidth",type:"number",default:0},{name:"extent",type:"number",array:!0,length:2},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"steps",type:"number"},{name:"minsteps",type:"number",default:25},{name:"maxsteps",type:"number",default:200},{name:"as",type:"string",array:!0,default:["value","density"]}]},Tt(pa,li,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){const r=e.materialize(e.SOURCE).source,i=Zo(r,t.groupby,t.field),o=(t.groupby||[]).map(x),a=t.bandwidth,s=t.cumulative?"cdf":"pdf",c=t.as||["value","density"],u=[];let l=t.extent,f=t.steps||t.minsteps||25,d=t.steps||t.maxsteps||200;"pdf"!==s&&"cdf"!==s&&F("Invalid density method: "+s),"shared"===t.resolve&&(l||(l=Et(r,t.field)),f=d=t.steps||d),i.forEach((e=>{const n=Pi(e,a)[s],r=t.counts?e.length:1;po(n,l||Et(e),f,d).forEach((t=>{const n={};for(let r=0;r<o.length;++r)n[o[r]]=e.dims[r];n[c[0]]=t[0],n[c[1]]=t[1]*r,u.push(Or(n))}))})),this.value&&(n.rem=this.value),this.value=n.add=n.source=u}return n}}),Tt(ma,Hr),Tt(va,li,{transform(t,e){const n=e.dataflow;if(this._pending)return ya(this,e,this._pending);if(function(t){return t.modified("async")&&!(t.modified("values")||t.modified("url")||t.modified("format"))}(t))return e.StopPropagation;if(t.values)return ya(this,e,n.parse(t.values,t.format));if(t.async){const e=n.request(t.url,t.format).then((t=>(this._pending=ht(t.data),t=>t.touch(this))));return{async:e}}return n.request(t.url,t.format).then((t=>ya(this,e,ht(t.data))))}}),ba.Definition={type:"Lookup",metadata:{modifies:!0},params:[{name:"index",type:"index",params:[{name:"from",type:"data",required:!0},{name:"key",type:"field",required:!0}]},{name:"values",type:"field",array:!0},{name:"fields",type:"field",array:!0,required:!0},{name:"as",type:"string",array:!0},{name:"default",default:null}]},Tt(ba,li,{transform(t,e){const n=t.fields,r=t.index,i=t.values,o=null==t.default?null:t.default,a=t.modified(),s=n.length;let c,u,l,f=a?e.SOURCE:e.ADD,d=e,h=t.as;return i?(u=i.length,s>1&&!h&&F('Multi-field lookup requires explicit "as" parameter.'),h&&h.length!==s*u&&F('The "as" parameter has too few output field names.'),h=h||i.map(x),c=function(t){for(var e,a,c=0,l=0;c<s;++c)if(null==(a=r.get(n[c](t))))for(e=0;e<u;++e,++l)t[h[l]]=o;else for(e=0;e<u;++e,++l)t[h[l]]=i[e](a)}):(h||F("Missing output field names."),c=function(t){for(var e,i=0;i<s;++i)e=r.get(n[i](t)),t[h[i]]=null==e?o:e}),a?d=e.reflow(!0):(l=n.some((t=>e.modified(t.fields))),f|=l?e.MOD:0),e.visit(f,c),d.modifies(h)}}),Tt(Aa,Hr),Tt(_a,Hr),Tt(ka,li,{transform(t,e){return this.modified(t.modified()),this.value=t,e.fork(e.NO_SOURCE|e.NO_FIELDS)}}),Ea.Definition={type:"Pivot",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"field",type:"field",required:!0},{name:"value",type:"field",required:!0},{name:"op",type:"enum",values:Eo,default:"sum"},{name:"limit",type:"number",default:0},{name:"key",type:"field"}]},Tt(Ea,Ro,{_transform:Ro.prototype.transform,transform(t,e){return this._transform(function(t,e){const n=t.field,r=t.value,i=("count"===t.op?"__count__":t.op)||"sum",o=_(n).concat(_(r)),a=function(t,e,n){const r={},i=[];return n.visit(n.SOURCE,(e=>{const n=t(e);r[n]||(r[n]=1,i.push(n))})),i.sort(yt),e?i.slice(0,e):i}(n,t.limit||0,e);e.changed()&&t.set("__pivot__",null,null,!0);return{key:t.key,groupby:t.groupby,ops:a.map((()=>i)),fields:a.map((t=>function(t,e,n,r){return A((r=>e(r)===t?n(r):NaN),r,t+"")}(t,n,r,o))),as:a.map((t=>t+"")),modified:t.modified.bind(t)}}(t,e),e)}}),Tt(Fa,na,{transform(t,e){const n=t.subflow,r=t.field,i=t=>this.subflow(Tr(t),n,e,t);return(t.modified("field")||r&&e.modified(_(r)))&&F("PreFacet does not support field modification."),this.initTargets(),r?(e.visit(e.MOD,(t=>{const e=i(t);r(t).forEach((t=>e.mod(t)))})),e.visit(e.ADD,(t=>{const e=i(t);r(t).forEach((t=>e.add(Or(t))))})),e.visit(e.REM,(t=>{const e=i(t);r(t).forEach((t=>e.rem(t)))}))):(e.visit(e.MOD,(t=>i(t).mod(t))),e.visit(e.ADD,(t=>i(t).add(t))),e.visit(e.REM,(t=>i(t).rem(t)))),e.clean()&&e.runAfter((()=>this.clean())),e}}),Da.Definition={type:"Project",metadata:{generates:!0,changes:!0},params:[{name:"fields",type:"field",array:!0},{name:"as",type:"string",null:!0,array:!0}]},Tt(Da,li,{transform(t,e){const n=e.fork(e.NO_SOURCE),r=t.fields,i=Xo(t.fields,t.as||[]),o=r?(t,e)=>function(t,e,n,r){for(let i=0,o=n.length;i<o;++i)e[r[i]]=n[i](t);return e}(t,e,r,i):Rr;let a;return this.value?a=this.value:(e=e.addAll(),a=this.value={}),e.visit(e.REM,(t=>{const e=Tr(t);n.rem.push(a[e]),a[e]=null})),e.visit(e.ADD,(t=>{const e=o(t,Or({}));a[Tr(t)]=e,n.add.push(e)})),e.visit(e.MOD,(t=>{n.mod.push(o(t,a[Tr(t)]))})),n}}),Tt(Ca,li,{transform(t,e){return this.value=t.value,t.modified("value")?e.fork(e.NO_SOURCE|e.NO_FIELDS):e.StopPropagation}}),Ma.Definition={type:"Quantile",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"field",type:"field",required:!0},{name:"probs",type:"number",array:!0},{name:"step",type:"number",default:.01},{name:"as",type:"string",array:!0,default:["prob","value"]}]};function Sa(t){li.call(this,null,t)}function Ta(t){li.call(this,[],t),this.count=0}function Na(t){li.call(this,null,t)}function Oa(t){li.call(this,null,t),this.modified(!0)}function Ba(t){li.call(this,null,t)}Tt(Ma,li,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=t.as||["prob","value"];if(this.value&&!t.modified()&&!e.changed())return n.source=this.value,n;const i=Zo(e.materialize(e.SOURCE).source,t.groupby,t.field),o=(t.groupby||[]).map(x),a=[],s=t.step||.01,c=t.probs||(0,bo.A)(s/2,1-1e-14,s),u=c.length;return i.forEach((t=>{const e=bi(t,c);for(let n=0;n<u;++n){const i={};for(let e=0;e<o.length;++e)i[o[e]]=t.dims[e];i[r[0]]=c[n],i[r[1]]=e[n],a.push(Or(i))}})),this.value&&(n.rem=this.value),this.value=n.add=n.source=a,n}}),Tt(Sa,li,{transform(t,e){let n,r;return this.value?r=this.value:(n=e=e.addAll(),r=this.value={}),t.derive&&(n=e.fork(e.NO_SOURCE),e.visit(e.REM,(t=>{const e=Tr(t);n.rem.push(r[e]),r[e]=null})),e.visit(e.ADD,(t=>{const e=Br(t);r[Tr(t)]=e,n.add.push(e)})),e.visit(e.MOD,(t=>{const e=r[Tr(t)];for(const r in t)e[r]=t[r],n.modifies(r);n.mod.push(e)}))),n}}),Ta.Definition={type:"Sample",metadata:{},params:[{name:"size",type:"number",default:1e3}]},Tt(Ta,li,{transform(t,e){const n=e.fork(e.NO_SOURCE),r=t.modified("size"),i=t.size,o=this.value.reduce(((t,e)=>(t[Tr(e)]=1,t)),{});let a=this.value,s=this.count,c=0;function u(t){let e,r;a.length<i?a.push(t):(r=~~((s+1)*wi()),r<a.length&&r>=c&&(e=a[r],o[Tr(e)]&&n.rem.push(e),a[r]=t)),++s}if(e.rem.length&&(e.visit(e.REM,(t=>{const e=Tr(t);o[e]&&(o[e]=-1,n.rem.push(t)),--s})),a=a.filter((t=>-1!==o[Tr(t)]))),(e.rem.length||r)&&a.length<i&&e.source&&(c=s=a.length,e.visit(e.SOURCE,(t=>{o[Tr(t)]||u(t)})),c=-1),r&&a.length>i){const t=a.length-i;for(let e=0;e<t;++e)o[Tr(a[e])]=-1,n.rem.push(a[e]);a=a.slice(t)}return e.mod.length&&e.visit(e.MOD,(t=>{o[Tr(t)]&&n.mod.push(t)})),e.add.length&&e.visit(e.ADD,u),(e.add.length||c<0)&&(n.add=a.filter((t=>!o[Tr(t)]))),this.count=s,this.value=n.source=a,n}}),Na.Definition={type:"Sequence",metadata:{generates:!0,changes:!0},params:[{name:"start",type:"number",required:!0},{name:"stop",type:"number",required:!0},{name:"step",type:"number",default:1},{name:"as",type:"string",default:"data"}]},Tt(Na,li,{transform(t,e){if(this.value&&!t.modified())return;const n=e.materialize().fork(e.MOD),r=t.as||"data";return n.rem=this.value?e.rem.concat(this.value):e.rem,this.value=(0,bo.A)(t.start,t.stop,t.step||1).map((t=>{const e={};return e[r]=t,Or(e)})),n.add=e.add.concat(this.value),n}}),Tt(Oa,li,{transform(t,e){return this.value=e.source,e.changed()?e.fork(e.NO_SOURCE|e.NO_FIELDS):e.StopPropagation}});const Ra=["unit0","unit1"];function za(t){li.call(this,Mt(),t)}function Pa(t){li.call(this,null,t)}Ba.Definition={type:"TimeUnit",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"interval",type:"boolean",default:!0},{name:"units",type:"enum",values:ze,array:!0},{name:"step",type:"number",default:1},{name:"maxbins",type:"number",default:40},{name:"extent",type:"date",array:!0},{name:"timezone",type:"enum",default:"local",values:["local","utc"]},{name:"as",type:"string",array:!0,length:2,default:Ra}]},Tt(Ba,li,{transform(t,e){const n=t.field,r=!1!==t.interval,i="utc"===t.timezone,o=this._floor(t,e),a=(i?hn:dn)(o.unit).offset,s=t.as||Ra,c=s[0],u=s[1],l=o.step;let f=o.start||1/0,d=o.stop||-1/0,h=e.ADD;return(t.modified()||e.changed(e.REM)||e.modified(_(n)))&&(h=(e=e.reflow(!0)).SOURCE,f=1/0,d=-1/0),e.visit(h,(t=>{const e=n(t);let i,s;null==e?(t[c]=null,r&&(t[u]=null)):(t[c]=i=s=o(e),r&&(t[u]=s=a(i,l)),i<f&&(f=i),s>d&&(d=s))})),o.start=f,o.stop=d,e.modifies(r?s:c)},_floor(t,e){const n="utc"===t.timezone,{units:r,step:i}=t.units?{units:t.units,step:t.step||1}:Bn({extent:t.extent||Et(e.materialize(e.SOURCE).source,t.field),maxbins:t.maxbins}),o=Le(r),a=this.value||{},s=(n?un:an)(o,i);return s.unit=$(o),s.units=o,s.step=i,s.start=a.start,s.stop=a.stop,this.value=s}}),Tt(za,li,{transform(t,e){const n=e.dataflow,r=t.field,i=this.value,o=t=>i.set(r(t),t);let a=!0;return t.modified("field")||e.modified(r.fields)?(i.clear(),e.visit(e.SOURCE,o)):e.changed()?(e.visit(e.REM,(t=>i.delete(r(t)))),e.visit(e.ADD,o)):a=!1,this.modified(a),i.empty>n.cleanThreshold&&n.runAfter(i.clean),e.fork()}}),Tt(Pa,li,{transform(t,e){(!this.value||t.modified("field")||t.modified("sort")||e.changed()||t.sort&&e.modified(t.sort.fields))&&(this.value=(t.sort?e.source.slice().sort(Pr(t.sort)):e.source).map(t.field))}});const La={row_number:function(){return{next:t=>t.index+1}},rank:function(){let t;return{init:()=>t=1,next:e=>{const n=e.index,r=e.data;return n&&e.compare(r[n-1],r[n])?t=n+1:t}}},dense_rank:function(){let t;return{init:()=>t=1,next:e=>{const n=e.index,r=e.data;return n&&e.compare(r[n-1],r[n])?++t:t}}},percent_rank:function(){const t=La.rank(),e=t.next;return{init:t.init,next:t=>(e(t)-1)/(t.data.length-1)}},cume_dist:function(){let t;return{init:()=>t=0,next:e=>{const n=e.data,r=e.compare;let i=e.index;if(t<i){for(;i+1<n.length&&!r(n[i],n[i+1]);)++i;t=i}return(1+t)/n.length}}},ntile:function(t,e){(e=+e)>0||F("ntile num must be greater than zero.");const n=La.cume_dist(),r=n.next;return{init:n.init,next:t=>Math.ceil(e*r(t))}},lag:function(t,e){return e=+e||1,{next:n=>{const r=n.index-e;return r>=0?t(n.data[r]):null}}},lead:function(t,e){return e=+e||1,{next:n=>{const r=n.index+e,i=n.data;return r<i.length?t(i[r]):null}}},first_value:function(t){return{next:e=>t(e.data[e.i0])}},last_value:function(t){return{next:e=>t(e.data[e.i1-1])}},nth_value:function(t,e){return(e=+e)>0||F("nth_value nth must be greater than zero."),{next:n=>{const r=n.i0+(e-1);return r<n.i1?t(n.data[r]):null}}},prev_value:function(t){let e;return{init:()=>e=null,next:n=>{const r=t(n.data[n.index]);return null!=r?e=r:e}}},next_value:function(t){let e,n;return{init:()=>(e=null,n=-1),next:r=>{const i=r.data;return r.index<=n?e:(n=function(t,e,n){for(let r=e.length;n<r;++n){if(null!=t(e[n]))return n}return-1}(t,i,r.index))<0?(n=i.length,e=null):e=t(i[n])}}}};const Ia=Object.keys(La);function ja(t){const e=ht(t.ops),n=ht(t.fields),r=ht(t.params),i=ht(t.aggregate_params),o=ht(t.as),a=this.outputs=[],s=this.windows=[],c={},u={},l=[],f=[];let d=!0;function h(t){ht(_(t)).forEach((t=>c[t]=1))}h(t.sort),e.forEach(((t,e)=>{const c=n[e],p=r[e],m=i[e]||null,g=x(c),v=xo(t,g,o[e]);if(h(c),a.push(v),Dt(La,t))s.push(function(t,e,n,r){const i=La[t](e,n);return{init:i.init||T,update:function(t,e){e[r]=i.next(t)}}}(t,c,p,v));else{if(null==c&&"count"!==t&&F("Null aggregate field specified."),"count"===t)return void l.push(v);d=!1;let e=u[g];e||(e=u[g]=[],e.field=c,f.push(e)),e.push(Fo(t,m,v))}})),(l.length||f.length)&&(this.cell=function(t,e,n){t=t.map((t=>No(t,t.field)));const r={num:0,agg:null,store:!1,count:e};if(!n)for(var i=t.length,o=r.agg=Array(i),a=0;a<i;++a)o[a]=new t[a](r);if(r.store)var s=r.data=new Oo;return r.add=function(t){if(r.num+=1,!n){s&&s.add(t);for(let e=0;e<i;++e)o[e].add(o[e].get(t),t)}},r.rem=function(t){if(r.num-=1,!n){s&&s.rem(t);for(let e=0;e<i;++e)o[e].rem(o[e].get(t),t)}},r.set=function(t){let i,a;for(s&&s.values(),i=0,a=e.length;i<a;++i)t[e[i]]=r.num;if(!n)for(i=0,a=o.length;i<a;++i)o[i].set(t)},r.init=function(){r.num=0,s&&s.reset();for(let t=0;t<i;++t)o[t].init()},r}(f,l,d)),this.inputs=Object.keys(c)}const Ua=ja.prototype;function qa(t){li.call(this,{},t),this._mlen=0,this._mods=[]}function Wa(t,e,n,r){const i=r.sort,o=i&&!r.ignorePeers,a=r.frame||[null,0],s=t.data(n),c=s.length,u=o?(0,ke.A)(i):null,l={i0:0,i1:0,p0:0,p1:0,index:0,data:s,compare:i||_t(-1)};e.init();for(let f=0;f<c;++f)Ha(l,a,f,c),o&&Ga(l,u),e.update(l,s[f])}function Ha(t,e,n,r){t.p0=t.i0,t.p1=t.i1,t.i0=null==e[0]?0:Math.max(0,n-Math.abs(e[0])),t.i1=null==e[1]?r:Math.min(r,n+Math.abs(e[1])+1),t.index=n}function Ga(t,e){const n=t.i0,r=t.i1-1,i=t.compare,o=t.data,a=o.length-1;n>0&&!i(o[n],o[n-1])&&(t.i0=e.left(o,o[n])),r<a&&!i(o[r],o[r+1])&&(t.i1=e.right(o,o[r]))}Ua.init=function(){this.windows.forEach((t=>t.init())),this.cell&&this.cell.init()},Ua.update=function(t,e){const n=this.cell,r=this.windows,i=t.data,o=r&&r.length;let a;if(n){for(a=t.p0;a<t.i0;++a)n.rem(i[a]);for(a=t.p1;a<t.i1;++a)n.add(i[a]);n.set(e)}for(a=0;a<o;++a)r[a].update(t,e)},qa.Definition={type:"Window",metadata:{modifies:!0},params:[{name:"sort",type:"compare"},{name:"groupby",type:"field",array:!0},{name:"ops",type:"enum",array:!0,values:Ia.concat(Eo)},{name:"params",type:"number",null:!0,array:!0},{name:"aggregate_params",type:"number",null:!0,array:!0},{name:"fields",type:"field",null:!0,array:!0},{name:"as",type:"string",null:!0,array:!0},{name:"frame",type:"number",null:!0,array:!0,length:2,default:[null,0]},{name:"ignorePeers",type:"boolean",default:!1}]},Tt(qa,li,{transform(t,e){this.stamp=e.stamp;const n=t.modified(),r=Pr(t.sort),i=Ao(t.groupby),o=t=>this.group(i(t));let a=this.state;a&&!n||(a=this.state=new ja(t)),n||e.modified(a.inputs)?(this.value={},e.visit(e.SOURCE,(t=>o(t).add(t)))):(e.visit(e.REM,(t=>o(t).remove(t))),e.visit(e.ADD,(t=>o(t).add(t))));for(let s=0,c=this._mlen;s<c;++s)Wa(this._mods[s],a,r,t);return this._mlen=0,this._mods=[],e.reflow(n).modifies(a.outputs)},group(t){let e=this.value[t];return e||(e=this.value[t]=Po(Tr),e.stamp=-1),e.stamp<this.stamp&&(e.stamp=this.stamp,this._mods[this._mlen++]=e),e}});var Ya=n(84047),Va=n(51103),$a=n(72271),Xa=n(87701),Za=n(38101),Ja=n(69685),Qa=n(31961),Ka=n(25393),ts=n(63685),es=n(44025),ns=n(35248),rs=n(12988),is=n(88330),os=n(69340),as=n(54623),ss=n(45453),cs=n(21872),us=n(68907),ls=n(42817),fs=n(73718);function ds(t,e){if("undefined"!==typeof document&&document.createElement){const n=document.createElement("canvas");if(n&&n.getContext)return n.width=t,n.height=e,n}return null}const hs=()=>"undefined"!==typeof Image?Image:null;var ps=n(89511),ms=n(26722),gs=n(1645),vs=n(67772),ys=n(8528),bs=n(94779),As=n(12689),xs=n(80977),_s=n(76495),ws=n(38349),ks=n(59813),Es=n(14071),Fs=n(67645),Ds=n(58299),Cs=n(47910),Ms=n(92629),Ss=n(61754),Ts=n(73762),Ns=n(88505),Os=n(90624),Bs=n(79500),Rs=n(55005),zs=n(27838),Ps=n(47675),Ls=n(1879),Is=n(16778),js=n(29561);function Us(t,e,n){const r=t-e+2*n;return t?r>0?r:1:0}const qs="linear",Ws="log",Hs="pow",Gs="sqrt",Ys="symlog",Vs="time",$s="utc",Xs="sequential",Zs="diverging",Js="quantile",Qs="quantize",Ks="threshold",tc="ordinal",ec="point",nc="band",rc="bin-ordinal",ic="continuous",oc="discrete",ac="discretizing",sc="interpolating",cc="temporal";function uc(){const t=(0,Ds.A)().unknown(void 0),e=t.domain,n=t.range;let r,i,o=[0,1],a=!1,s=0,c=0,u=.5;function l(){const t=e().length,l=o[1]<o[0],f=o[1-l],d=Us(t,s,c);let h=o[l-0];r=(f-h)/(d||1),a&&(r=Math.floor(r)),h+=(f-h-r*(t-s))*u,i=r*(1-s),a&&(h=Math.round(h),i=Math.round(i));const p=(0,bo.A)(t).map((t=>h+r*t));return n(l?p.reverse():p)}return delete t.unknown,t.domain=function(t){return arguments.length?(e(t),l()):e()},t.range=function(t){return arguments.length?(o=[+t[0],+t[1]],l()):o.slice()},t.rangeRound=function(t){return o=[+t[0],+t[1]],a=!0,l()},t.bandwidth=function(){return i},t.step=function(){return r},t.round=function(t){return arguments.length?(a=!!t,l()):a},t.padding=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),s=c,l()):s},t.paddingInner=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),l()):s},t.paddingOuter=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c},t.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),l()):u},t.invertRange=function(t){if(null==t[0]||null==t[1])return;const r=o[1]<o[0],a=r?n().reverse():n(),s=a.length-1;let c,u,l,f=+t[0],d=+t[1];return f!==f||d!==d||(d<f&&(l=f,f=d,d=l),d<a[0]||f>o[1-r])?void 0:(c=Math.max(0,(0,ps.Jj)(a,f)-1),u=f===d?c:(0,ps.Jj)(a,d)-1,f-a[c]>i+1e-10&&++c,r&&(l=c,c=s-u,u=s-l),c>u?void 0:e().slice(c,u+1))},t.invert=function(e){const n=t.invertRange([e,e]);return n?n[0]:n},t.copy=function(){return uc().domain(e()).range(o).round(a).paddingInner(s).paddingOuter(c).align(u)},l()}function lc(t){const e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,t.copy=function(){return lc(e())},t}var fc=Array.prototype.map;const dc=Array.prototype.slice;const hc=new Map,pc=Symbol("vega_scale");function mc(t){return t[pc]=!0,t}function gc(t,e,n){return arguments.length>1?(hc.set(t,function(t,e,n){const r=function(){const n=e();return n.invertRange||(n.invertRange=n.invert?function(t){return function(e){let n,r=e[0],i=e[1];return i<r&&(n=r,r=i,i=n),[t.invert(r),t.invert(i)]}}(n):n.invertExtent?function(t){return function(e){const n=t.range();let r,i,o,a,s=e[0],c=e[1],u=-1;for(c<s&&(i=s,s=c,c=i),o=0,a=n.length;o<a;++o)n[o]>=s&&n[o]<=c&&(u<0&&(u=o),r=o);if(!(u<0))return s=t.invertExtent(n[u]),c=t.invertExtent(n[r]),[void 0===s[0]?s[1]:s[0],void 0===c[1]?c[0]:c[1]]}}(n):void 0),n.type=t,mc(n)};return r.metadata=Qt(ht(n)),r}(t,e,n)),this):vc(t)?hc.get(t):void 0}function vc(t){return hc.has(t)}function yc(t,e){const n=hc.get(t);return n&&n.metadata[e]}function bc(t){return yc(t,ic)}function Ac(t){return yc(t,oc)}function xc(t){return yc(t,ac)}function _c(t){return yc(t,Ws)}function wc(t){return yc(t,sc)}function kc(t){return yc(t,Js)}gc("identity",ms.A),gc(qs,gs.A,ic),gc(Ws,vs.A,[ic,Ws]),gc(Hs,ys.Ay,ic),gc(Gs,ys.RZ,ic),gc(Ys,bs.A,ic),gc(Vs,As.A,[ic,cc]),gc($s,xs.A,[ic,cc]),gc(Xs,_s.Ay,[ic,sc]),gc("".concat(Xs,"-").concat(qs),_s.Ay,[ic,sc]),gc("".concat(Xs,"-").concat(Ws),_s.a6,[ic,sc,Ws]),gc("".concat(Xs,"-").concat(Hs),_s.iG,[ic,sc]),gc("".concat(Xs,"-").concat(Gs),_s.ao,[ic,sc]),gc("".concat(Xs,"-").concat(Ys),_s.bZ,[ic,sc]),gc("".concat(Zs,"-").concat(qs),ws.Ay,[ic,sc]),gc("".concat(Zs,"-").concat(Ws),ws.Ee,[ic,sc,Ws]),gc("".concat(Zs,"-").concat(Hs),ws.Iu,[ic,sc]),gc("".concat(Zs,"-").concat(Gs),ws.QO,[ic,sc]),gc("".concat(Zs,"-").concat(Ys),ws.fy,[ic,sc]),gc(Js,ks.A,[ac,Js]),gc(Qs,Es.A,ac),gc(Ks,Fs.A,ac),gc(rc,(function t(){let e=[],n=[];function r(t){return null==t||t!==t?void 0:n[((0,ps.Ay)(e,t)-1)%n.length]}return r.domain=function(t){return arguments.length?(e=function(t){return fc.call(t,X)}(t),r):e.slice()},r.range=function(t){return arguments.length?(n=dc.call(t),r):n.slice()},r.tickFormat=function(t,n){return(0,Cs.A)(e[0],$(e),null==t?10:t,n)},r.copy=function(){return t().domain(r.domain()).range(r.range())},r}),[oc,ac]),gc(tc,Ds.A,oc),gc(nc,uc,oc),gc(ec,(function(){return lc(uc().paddingInner(1))}),oc);const Ec=["clamp","base","constant","exponent"];function Fc(t,e){const n=e[0],r=$(e)-n;return function(e){return t(n+e*r)}}function Dc(t,e,n){return Ms.A(Sc(e||"rgb",n),t)}function Cc(t,e){const n=new Array(e),r=e+1;for(let i=0;i<e;)n[i]=t(++i/r);return n}function Mc(t,e,n){const r=n-e;let i,o,a;return r&&Number.isFinite(r)?(i=(o=t.type).indexOf("-"),o=i<0?o:o.slice(i+1),a=gc(o)().domain([e,n]).range([0,1]),Ec.forEach((e=>t[e]?a[e](t[e]()):0)),a):_t(.5)}function Sc(t,e){const n=Ss[function(t){return"interpolate"+t.toLowerCase().split("-").map((t=>t[0].toUpperCase()+t.slice(1))).join("")}(t)];return null!=e&&n&&n.gamma?n.gamma(e):n}const Tc={accent:Ts.A,category10:Ns.A,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:Os.A,observable10:Bs.A,paired:Rs.A,pastel1:zs.A,pastel2:Ps.A,set1:Ls.A,set2:Is.A,set3:js.A,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function Nc(t){if(q(t))return t;const e=t.length/6|0,n=new Array(e);for(let r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}function Oc(t,e){for(const n in t)Rc(n,e(t[n]))}const Bc={};function Rc(t,e){return t=t&&t.toLowerCase(),arguments.length>1?(Bc[t]=e,this):Bc[t]}Oc(Tc,Nc),Oc({blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},(t=>Dc(Nc(t))));const zc="symbol",Pc=t=>q(t)?t.map((t=>String(t))):String(t),Lc=(t,e)=>t[1]-e[1],Ic=(t,e)=>e[1]-t[1];function jc(t,e,n){let r;return zt(e)&&(t.bins&&(e=Math.max(e,t.bins.length)),null!=n&&(e=Math.min(e,Math.floor(Yt(t.domain())/n||1)+1))),W(e)&&(r=e.step,e=e.interval),Lt(e)&&(e=t.type===Vs?dn(e):t.type==$s?hn(e):F("Only time and utc scales accept interval strings."),r&&(e=e.every(r))),e}function Uc(t,e,n){let r=t.range(),i=r[0],o=$(r),a=Lc;if(i>o&&(r=o,o=i,i=r,a=Ic),i=Math.floor(i),o=Math.ceil(o),e=e.map((e=>[e,t(e)])).filter((t=>i<=t[1]&&t[1]<=o)).sort(a).map((t=>t[0])),n>0&&e.length>1){const t=[e[0],$(e)];for(;e.length>n&&e.length>=3;)e=e.filter(((t,e)=>!(e%2)));e.length<3&&(e=t)}return e}function qc(t,e){return t.bins?Uc(t,t.bins,e):t.ticks?t.ticks(e):t.domain()}function Wc(t,e,n,r,i,o){const a=e.type;let s=Pc;if(a===Vs||i===Vs)s=t.timeFormat(r);else if(a===$s||i===$s)s=t.utcFormat(r);else if(_c(a)){const i=t.formatFloat(r);if(o||e.bins)s=i;else{const t=Hc(e,n,!1);s=e=>t(e)?i(e):""}}else if(e.tickFormat){const i=e.domain();s=t.formatSpan(i[0],i[i.length-1],n,r)}else r&&(s=t.format(r));return s}function Hc(t,e,n){const r=qc(t,e),i=t.base(),o=Math.log(i),a=Math.max(1,i*e/r.length),s=t=>{let e=t/Math.pow(i,Math.round(Math.log(t)/o));return e*i<i-.5&&(e*=i),e<=a};return n?r.filter(s):s}const Gc={[Js]:"quantiles",[Qs]:"thresholds",[Ks]:"domain"},Yc={[Js]:"quantiles",[Qs]:"domain"};function Vc(t,e){return t.bins?function(t){const e=t.slice(0,-1);return e.max=$(t),e}(t.bins):t.type===Ws?Hc(t,e,!0):Gc[t.type]?function(t){const e=[-1/0].concat(t);return e.max=1/0,e}(t[Gc[t.type]]()):qc(t,e)}function $c(t,e,n,r,i,o,a){const s=Yc[e.type]&&o!==Vs&&o!==$s?function(t,e,n){const r=e[Yc[e.type]](),i=r.length;let o,a=i>1?r[1]-r[0]:r[0];for(o=1;o<i;++o)a=Math.min(a,r[o]-r[o-1]);return t.formatSpan(0,a,30,n)}(t,e,i):Wc(t,e,n,i,o,a);return r===zc&&(t=>Gc[t.type]||t.bins)(e)?Xc(s):"discrete"===r?Jc(s):Qc(s)}const Xc=t=>(e,n,r)=>{const i=Zc(r[n+1],Zc(r.max,1/0)),o=Kc(e,t),a=Kc(i,t);return o&&a?o+" \u2013 "+a:a?"< "+a:"\u2265 "+o},Zc=(t,e)=>null!=t?t:e,Jc=t=>(e,n)=>n?t(e):null,Qc=t=>e=>t(e),Kc=(t,e)=>Number.isFinite(t)?e(t):null;function tu(t,e,n,r){const i=r||e.type;return Lt(n)&&function(t){return yc(t,cc)}(i)&&(n=n.replace(/%a/g,"%A").replace(/%b/g,"%B")),n||i!==Vs?n||i!==$s?$c(t,e,5,null,n,r,!0):t.utcFormat("%A, %d %B %Y, %X UTC"):t.timeFormat("%A, %d %B %Y, %X")}function eu(t,e,n){n=n||{};const r=Math.max(3,n.maxlen||7),i=tu(t,e,n.format,n.formatType);if(xc(e.type)){const t=Vc(e).slice(1).map(i),n=t.length;return"".concat(n," boundar").concat(1===n?"y":"ies",": ").concat(t.join(", "))}if(Ac(e.type)){const t=e.domain(),n=t.length,o=n>r?t.slice(0,r-2).map(i).join(", ")+", ending with "+t.slice(-1).map(i):t.map(i).join(", ");return"".concat(n," value").concat(1===n?"":"s",": ").concat(o)}{const t=e.domain();return"values from ".concat(i(t[0])," to ").concat(i($(t)))}}let nu=0;const ru="p_";function iu(t){return t&&t.gradient}function ou(t,e,n){const r=t.gradient;let i=t.id,o="radial"===r?ru:"";return i||(i=t.id="gradient_"+nu++,"radial"===r?(t.x1=au(t.x1,.5),t.y1=au(t.y1,.5),t.r1=au(t.r1,0),t.x2=au(t.x2,.5),t.y2=au(t.y2,.5),t.r2=au(t.r2,.5),o=ru):(t.x1=au(t.x1,0),t.y1=au(t.y1,0),t.x2=au(t.x2,1),t.y2=au(t.y2,0))),e[i]=t,"url("+(n||"")+"#"+o+i+")"}function au(t,e){return null!=t?t:e}function su(t,e){var n,r=[];return n={gradient:"linear",x1:t?t[0]:0,y1:t?t[1]:0,x2:e?e[0]:1,y2:e?e[1]:0,stops:r,stop:function(t,e){return r.push({offset:t,color:e}),n}}}const cu={basis:{curve:Ya.Ay},"basis-closed":{curve:Va.A},"basis-open":{curve:$a.A},bundle:{curve:Xa.A,tension:"beta",value:.85},cardinal:{curve:Za.Ay,tension:"tension",value:0},"cardinal-open":{curve:Ja.A,tension:"tension",value:0},"cardinal-closed":{curve:Qa.A,tension:"tension",value:0},"catmull-rom":{curve:Ka.A,tension:"alpha",value:.5},"catmull-rom-closed":{curve:ts.A,tension:"alpha",value:.5},"catmull-rom-open":{curve:es.A,tension:"alpha",value:.5},linear:{curve:ns.A},"linear-closed":{curve:rs.A},monotone:{horizontal:is.N,vertical:is.G},natural:{curve:os.A},step:{curve:as.Ay},"step-after":{curve:as.Ps},"step-before":{curve:as.Ko}};function uu(t,e,n){var r=Dt(cu,t)&&cu[t],i=null;return r&&(i=r.curve||r[e||"vertical"],r.tension&&null!=n&&(i=i[r.tension](n))),i}const lu={m:2,l:2,h:1,v:1,z:0,c:6,s:4,q:4,t:2,a:7},fu=/[mlhvzcsqta]([^mlhvzcsqta]+|$)/gi,du=/^[+-]?(([0-9]*\.[0-9]+)|([0-9]+\.)|([0-9]+))([eE][+-]?[0-9]+)?/,hu=/^((\s+,?\s*)|(,\s*))/,pu=/^[01]/;function mu(t){const e=[];return(t.match(fu)||[]).forEach((t=>{let n=t[0];const r=n.toLowerCase(),i=lu[r],o=function(t,e,n){const r=[];for(let i=0;e&&i<n.length;)for(let o=0;o<e;++o){const e="a"!==t||3!==o&&4!==o?du:pu,a=n.slice(i).match(e);if(null===a)throw Error("Invalid SVG path, incorrect parameter type");i+=a[0].length,r.push(+a[0]);const s=n.slice(i).match(hu);null!==s&&(i+=s[0].length)}return r}(r,i,t.slice(1).trim()),a=o.length;if(a<i||a&&a%i!==0)throw Error("Invalid SVG path, incorrect parameter count");if(e.push([n,...o.slice(0,i)]),a!==i){"m"===r&&(n="M"===n?"L":"l");for(let t=i;t<a;t+=i)e.push([n,...o.slice(t,t+i)])}})),e}const gu=Math.PI/180,vu=Math.PI/2,yu=2*Math.PI,bu=Math.sqrt(3)/2;var Au={},xu={},_u=[].join;function wu(t){const e=_u.call(t);if(xu[e])return xu[e];var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],c=t[6],u=t[7];const l=u*a,f=-c*s,d=c*a,h=u*s,p=Math.cos(i),m=Math.sin(i),g=Math.cos(o),v=Math.sin(o),y=.5*(o-i),b=Math.sin(.5*y),A=8/3*b*b/Math.sin(y),x=n+p-A*m,_=r+m+A*p,w=n+g,k=r+v,E=w+A*v,F=k-A*g;return xu[e]=[l*x+f*_,d*x+h*_,l*E+f*F,d*E+h*F,l*w+f*k,d*w+h*k]}const ku=["l",0,0,0,0,0,0,0];function Eu(t,e,n){const r=ku[0]=t[0];if("a"===r||"A"===r)ku[1]=e*t[1],ku[2]=n*t[2],ku[3]=t[3],ku[4]=t[4],ku[5]=t[5],ku[6]=e*t[6],ku[7]=n*t[7];else if("h"===r||"H"===r)ku[1]=e*t[1];else if("v"===r||"V"===r)ku[1]=n*t[1];else for(var i=1,o=t.length;i<o;++i)ku[i]=(i%2==1?e:n)*t[i];return ku}function Fu(t,e,n,r,i,o){var a,s,c,u,l,f=null,d=0,h=0,p=0,m=0,g=0,v=0;null==n&&(n=0),null==r&&(r=0),null==i&&(i=1),null==o&&(o=i),t.beginPath&&t.beginPath();for(var y=0,b=e.length;y<b;++y){switch(a=e[y],1===i&&1===o||(a=Eu(a,i,o)),a[0]){case"l":d+=a[1],h+=a[2],t.lineTo(d+n,h+r);break;case"L":d=a[1],h=a[2],t.lineTo(d+n,h+r);break;case"h":d+=a[1],t.lineTo(d+n,h+r);break;case"H":d=a[1],t.lineTo(d+n,h+r);break;case"v":h+=a[1],t.lineTo(d+n,h+r);break;case"V":h=a[1],t.lineTo(d+n,h+r);break;case"m":g=d+=a[1],v=h+=a[2],t.moveTo(d+n,h+r);break;case"M":g=d=a[1],v=h=a[2],t.moveTo(d+n,h+r);break;case"c":s=d+a[5],c=h+a[6],p=d+a[3],m=h+a[4],t.bezierCurveTo(d+a[1]+n,h+a[2]+r,p+n,m+r,s+n,c+r),d=s,h=c;break;case"C":d=a[5],h=a[6],p=a[3],m=a[4],t.bezierCurveTo(a[1]+n,a[2]+r,p+n,m+r,d+n,h+r);break;case"s":s=d+a[3],c=h+a[4],p=2*d-p,m=2*h-m,t.bezierCurveTo(p+n,m+r,d+a[1]+n,h+a[2]+r,s+n,c+r),p=d+a[1],m=h+a[2],d=s,h=c;break;case"S":s=a[3],c=a[4],p=2*d-p,m=2*h-m,t.bezierCurveTo(p+n,m+r,a[1]+n,a[2]+r,s+n,c+r),d=s,h=c,p=a[1],m=a[2];break;case"q":s=d+a[3],c=h+a[4],p=d+a[1],m=h+a[2],t.quadraticCurveTo(p+n,m+r,s+n,c+r),d=s,h=c;break;case"Q":s=a[3],c=a[4],t.quadraticCurveTo(a[1]+n,a[2]+r,s+n,c+r),d=s,h=c,p=a[1],m=a[2];break;case"t":s=d+a[1],c=h+a[2],null===f[0].match(/[QqTt]/)?(p=d,m=h):"t"===f[0]?(p=2*d-u,m=2*h-l):"q"===f[0]&&(p=2*d-p,m=2*h-m),u=p,l=m,t.quadraticCurveTo(p+n,m+r,s+n,c+r),h=c,p=(d=s)+a[1],m=h+a[2];break;case"T":s=a[1],c=a[2],p=2*d-p,m=2*h-m,t.quadraticCurveTo(p+n,m+r,s+n,c+r),d=s,h=c;break;case"a":Du(t,d+n,h+r,[a[1],a[2],a[3],a[4],a[5],a[6]+d+n,a[7]+h+r]),d+=a[6],h+=a[7];break;case"A":Du(t,d+n,h+r,[a[1],a[2],a[3],a[4],a[5],a[6]+n,a[7]+r]),d=a[6],h=a[7];break;case"z":case"Z":d=g,h=v,t.closePath()}f=a}}function Du(t,e,n,r){const i=function(t,e,n,r,i,o,a,s,c){const u=_u.call(arguments);if(Au[u])return Au[u];const l=a*gu,f=Math.sin(l),d=Math.cos(l),h=d*(s-t)*.5+f*(c-e)*.5,p=d*(c-e)*.5-f*(s-t)*.5;let m=h*h/((n=Math.abs(n))*n)+p*p/((r=Math.abs(r))*r);m>1&&(m=Math.sqrt(m),n*=m,r*=m);const g=d/n,v=f/n,y=-f/r,b=d/r,A=g*s+v*c,x=y*s+b*c,_=g*t+v*e,w=y*t+b*e;let k=1/((_-A)*(_-A)+(w-x)*(w-x))-.25;k<0&&(k=0);let E=Math.sqrt(k);o==i&&(E=-E);const F=.5*(A+_)-E*(w-x),D=.5*(x+w)+E*(_-A),C=Math.atan2(x-D,A-F);let M=Math.atan2(w-D,_-F)-C;M<0&&1===o?M+=yu:M>0&&0===o&&(M-=yu);const S=Math.ceil(Math.abs(M/(vu+.001))),T=[];for(let N=0;N<S;++N){const t=C+N*M/S,e=C+(N+1)*M/S;T[N]=[F,D,t,e,n,r,f,d]}return Au[u]=T}(r[5],r[6],r[0],r[1],r[3],r[4],r[2],e,n);for(let o=0;o<i.length;++o){const e=wu(i[o]);t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])}}const Cu=.5773502691896257,Mu={circle:{draw:function(t,e){const n=Math.sqrt(e)/2;t.moveTo(n,0),t.arc(0,0,n,0,yu)}},cross:{draw:function(t,e){var n=Math.sqrt(e)/2,r=n/2.5;t.moveTo(-n,-r),t.lineTo(-n,r),t.lineTo(-r,r),t.lineTo(-r,n),t.lineTo(r,n),t.lineTo(r,r),t.lineTo(n,r),t.lineTo(n,-r),t.lineTo(r,-r),t.lineTo(r,-n),t.lineTo(-r,-n),t.lineTo(-r,-r),t.closePath()}},diamond:{draw:function(t,e){const n=Math.sqrt(e)/2;t.moveTo(-n,0),t.lineTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.closePath()}},square:{draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},arrow:{draw:function(t,e){var n=Math.sqrt(e)/2,r=n/7,i=n/2.5,o=n/8;t.moveTo(-r,n),t.lineTo(r,n),t.lineTo(r,-o),t.lineTo(i,-o),t.lineTo(0,-n),t.lineTo(-i,-o),t.lineTo(-r,-o),t.closePath()}},wedge:{draw:function(t,e){var n=Math.sqrt(e)/2,r=bu*n,i=r-n*Cu,o=n/4;t.moveTo(0,-r-i),t.lineTo(-o,r-i),t.lineTo(o,r-i),t.closePath()}},triangle:{draw:function(t,e){var n=Math.sqrt(e)/2,r=bu*n,i=r-n*Cu;t.moveTo(0,-r-i),t.lineTo(-n,r-i),t.lineTo(n,r-i),t.closePath()}},"triangle-up":{draw:function(t,e){var n=Math.sqrt(e)/2,r=bu*n;t.moveTo(0,-r),t.lineTo(-n,r),t.lineTo(n,r),t.closePath()}},"triangle-down":{draw:function(t,e){var n=Math.sqrt(e)/2,r=bu*n;t.moveTo(0,r),t.lineTo(-n,-r),t.lineTo(n,-r),t.closePath()}},"triangle-right":{draw:function(t,e){var n=Math.sqrt(e)/2,r=bu*n;t.moveTo(r,0),t.lineTo(-r,-n),t.lineTo(-r,n),t.closePath()}},"triangle-left":{draw:function(t,e){var n=Math.sqrt(e)/2,r=bu*n;t.moveTo(-r,0),t.lineTo(r,-n),t.lineTo(r,n),t.closePath()}},stroke:{draw:function(t,e){const n=Math.sqrt(e)/2;t.moveTo(-n,0),t.lineTo(n,0)}}};function Su(t){return Dt(Mu,t)?Mu[t]:function(t){if(!Dt(Tu,t)){const e=mu(t);Tu[t]={draw:function(t,n){Fu(t,e,0,0,Math.sqrt(n)/2)}}}return Tu[t]}(t)}var Tu={};const Nu=.448084975506;function Ou(t){return t.x}function Bu(t){return t.y}function Ru(t){return t.width}function zu(t){return t.height}function Pu(t){return"function"===typeof t?t:()=>+t}function Lu(t,e,n){return Math.max(e,Math.min(t,n))}function Iu(){var t=Ou,e=Bu,n=Ru,r=zu,i=Pu(0),o=i,a=i,s=i,c=null;function u(u,l,f){var d,h=null!=l?l:+t.call(this,u),p=null!=f?f:+e.call(this,u),m=+n.call(this,u),g=+r.call(this,u),v=Math.min(m,g)/2,y=Lu(+i.call(this,u),0,v),b=Lu(+o.call(this,u),0,v),A=Lu(+a.call(this,u),0,v),x=Lu(+s.call(this,u),0,v);if(c||(c=d=(0,fs.Ae)()),y<=0&&b<=0&&A<=0&&x<=0)c.rect(h,p,m,g);else{var _=h+m,w=p+g;c.moveTo(h+y,p),c.lineTo(_-b,p),c.bezierCurveTo(_-Nu*b,p,_,p+Nu*b,_,p+b),c.lineTo(_,w-x),c.bezierCurveTo(_,w-Nu*x,_-Nu*x,w,_-x,w),c.lineTo(h+A,w),c.bezierCurveTo(h+Nu*A,w,h,w-Nu*A,h,w-A),c.lineTo(h,p+y),c.bezierCurveTo(h,p+Nu*y,h+Nu*y,p,h+y,p),c.closePath()}if(d)return c=null,d+""||null}return u.x=function(e){return arguments.length?(t=Pu(e),u):t},u.y=function(t){return arguments.length?(e=Pu(t),u):e},u.width=function(t){return arguments.length?(n=Pu(t),u):n},u.height=function(t){return arguments.length?(r=Pu(t),u):r},u.cornerRadius=function(t,e,n,r){return arguments.length?(i=Pu(t),o=null!=e?Pu(e):i,s=null!=n?Pu(n):i,a=null!=r?Pu(r):o,u):i},u.context=function(t){return arguments.length?(c=null==t?null:t,u):c},u}function ju(){var t,e,n,r,i,o,a,s,c=null;function u(t,e,n){const r=n/2;if(i){var u=a-e,l=t-o;if(u||l){var f=Math.hypot(u,l),d=(u/=f)*s,h=(l/=f)*s,p=Math.atan2(l,u);c.moveTo(o-d,a-h),c.lineTo(t-u*r,e-l*r),c.arc(t,e,r,p-Math.PI,p),c.lineTo(o+d,a+h),c.arc(o,a,s,p,p+Math.PI)}else c.arc(t,e,r,0,yu);c.closePath()}else i=1;o=t,a=e,s=r}function l(o){var a,s,l,f=o.length,d=!1;for(null==c&&(c=l=(0,fs.Ae)()),a=0;a<=f;++a)!(a<f&&r(s=o[a],a,o))===d&&(d=!d)&&(i=0),d&&u(+t(s,a,o),+e(s,a,o),+n(s,a,o));if(l)return c=null,l+""||null}return l.x=function(e){return arguments.length?(t=e,l):t},l.y=function(t){return arguments.length?(e=t,l):e},l.size=function(t){return arguments.length?(n=t,l):n},l.defined=function(t){return arguments.length?(r=t,l):r},l.context=function(t){return arguments.length?(c=null==t?null:t,l):c},l}function Uu(t,e){return null!=t?t:e}const qu=t=>t.x||0,Wu=t=>t.y||0,Hu=t=>!(!1===t.defined),Gu=(0,ss.A)().startAngle((t=>t.startAngle||0)).endAngle((t=>t.endAngle||0)).padAngle((t=>t.padAngle||0)).innerRadius((t=>t.innerRadius||0)).outerRadius((t=>t.outerRadius||0)).cornerRadius((t=>t.cornerRadius||0)),Yu=(0,cs.A)().x(qu).y1(Wu).y0((t=>(t.y||0)+(t.height||0))).defined(Hu),Vu=(0,cs.A)().y(Wu).x1(qu).x0((t=>(t.x||0)+(t.width||0))).defined(Hu),$u=(0,us.A)().x(qu).y(Wu).defined(Hu),Xu=Iu().x(qu).y(Wu).width((t=>t.width||0)).height((t=>t.height||0)).cornerRadius((t=>Uu(t.cornerRadiusTopLeft,t.cornerRadius)||0),(t=>Uu(t.cornerRadiusTopRight,t.cornerRadius)||0),(t=>Uu(t.cornerRadiusBottomRight,t.cornerRadius)||0),(t=>Uu(t.cornerRadiusBottomLeft,t.cornerRadius)||0)),Zu=(0,ls.Ay)().type((t=>Su(t.shape||"circle"))).size((t=>Uu(t.size,64))),Ju=ju().x(qu).y(Wu).defined(Hu).size((t=>t.size||1));function Qu(t){return t.cornerRadius||t.cornerRadiusTopLeft||t.cornerRadiusTopRight||t.cornerRadiusBottomRight||t.cornerRadiusBottomLeft}function Ku(t,e,n,r){return Xu.context(t)(e,n,r)}var tl=1;function el(){tl=1}function nl(t,e,n){var r=e.clip,i=t._defs,o=e.clip_id||(e.clip_id="clip"+tl++),a=i.clipping[o]||(i.clipping[o]={id:o});return mt(r)?a.path=r(null):Qu(n)?a.path=Ku(null,n,0,0):(a.width=n.width||0,a.height=n.height||0),"url(#"+o+")"}function rl(t){this.clear(),t&&this.union(t)}function il(t){this.mark=t,this.bounds=this.bounds||new rl}function ol(t){il.call(this,t),this.items=this.items||[]}rl.prototype={clone(){return new rl(this)},clear(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this},empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE},equals(t){return this.x1===t.x1&&this.y1===t.y1&&this.x2===t.x2&&this.y2===t.y2},set(t,e,n,r){return n<t?(this.x2=t,this.x1=n):(this.x1=t,this.x2=n),r<e?(this.y2=e,this.y1=r):(this.y1=e,this.y2=r),this},add(t,e){return t<this.x1&&(this.x1=t),e<this.y1&&(this.y1=e),t>this.x2&&(this.x2=t),e>this.y2&&(this.y2=e),this},expand(t){return this.x1-=t,this.y1-=t,this.x2+=t,this.y2+=t,this},round(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this},scale(t){return this.x1*=t,this.y1*=t,this.x2*=t,this.y2*=t,this},translate(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},rotate(t,e,n){const r=this.rotatedPoints(t,e,n);return this.clear().add(r[0],r[1]).add(r[2],r[3]).add(r[4],r[5]).add(r[6],r[7])},rotatedPoints(t,e,n){var{x1:r,y1:i,x2:o,y2:a}=this,s=Math.cos(t),c=Math.sin(t),u=e-e*s+n*c,l=n-e*c-n*s;return[s*r-c*i+u,c*r+s*i+l,s*r-c*a+u,c*r+s*a+l,s*o-c*i+u,c*o+s*i+l,s*o-c*a+u,c*o+s*a+l]},union(t){return t.x1<this.x1&&(this.x1=t.x1),t.y1<this.y1&&(this.y1=t.y1),t.x2>this.x2&&(this.x2=t.x2),t.y2>this.y2&&(this.y2=t.y2),this},intersect(t){return t.x1>this.x1&&(this.x1=t.x1),t.y1>this.y1&&(this.y1=t.y1),t.x2<this.x2&&(this.x2=t.x2),t.y2<this.y2&&(this.y2=t.y2),this},encloses(t){return t&&this.x1<=t.x1&&this.x2>=t.x2&&this.y1<=t.y1&&this.y2>=t.y2},alignsWith(t){return t&&(this.x1==t.x1||this.x2==t.x2||this.y1==t.y1||this.y2==t.y2)},intersects(t){return t&&!(this.x2<t.x1||this.x1>t.x2||this.y2<t.y1||this.y1>t.y2)},contains(t,e){return!(t<this.x1||t>this.x2||e<this.y1||e>this.y2)},width(){return this.x2-this.x1},height(){return this.y2-this.y1}},Tt(ol,il);class al{constructor(t){this._pending=0,this._loader=t||Er()}pending(){return this._pending}sanitizeURL(t){const e=this;return sl(e),e._loader.sanitize(t,{context:"href"}).then((t=>(cl(e),t))).catch((()=>(cl(e),null)))}loadImage(t){const e=this,n=hs();return sl(e),e._loader.sanitize(t,{context:"image"}).then((t=>{const r=t.href;if(!r||!n)throw{url:r};const i=new n,o=Dt(t,"crossOrigin")?t.crossOrigin:"anonymous";return null!=o&&(i.crossOrigin=o),i.onload=()=>cl(e),i.onerror=()=>cl(e),i.src=r,i})).catch((t=>(cl(e),{complete:!1,width:0,height:0,src:t&&t.url||""})))}ready(){const t=this;return new Promise((e=>{!function n(r){t.pending()?setTimeout((()=>{n(!0)}),10):e(r)}(!1)}))}}function sl(t){t._pending+=1}function cl(t){t._pending-=1}function ul(t,e,n){if(e.stroke&&0!==e.opacity&&0!==e.strokeOpacity){const r=null!=e.strokeWidth?+e.strokeWidth:1;t.expand(r+(n?function(t,e){return t.strokeJoin&&"miter"!==t.strokeJoin?0:e}(e,r):0))}return t}const ll=yu-1e-8;let fl,dl,hl,pl,ml,gl,vl,yl;const bl=(t,e)=>fl.add(t,e),Al=(t,e)=>bl(dl=t,hl=e),xl=t=>bl(t,fl.y1),_l=t=>bl(fl.x1,t),wl=(t,e)=>ml*t+vl*e,kl=(t,e)=>gl*t+yl*e,El=(t,e)=>bl(wl(t,e),kl(t,e)),Fl=(t,e)=>Al(wl(t,e),kl(t,e));function Dl(t,e){return fl=t,e?(pl=e*gu,ml=yl=Math.cos(pl),gl=Math.sin(pl),vl=-gl):(ml=yl=1,pl=gl=vl=0),Cl}const Cl={beginPath(){},closePath(){},moveTo:Fl,lineTo:Fl,rect(t,e,n,r){pl?(El(t+n,e),El(t+n,e+r),El(t,e+r),Fl(t,e)):(bl(t+n,e+r),Al(t,e))},quadraticCurveTo(t,e,n,r){const i=wl(t,e),o=kl(t,e),a=wl(n,r),s=kl(n,r);Ml(dl,i,a,xl),Ml(hl,o,s,_l),Al(a,s)},bezierCurveTo(t,e,n,r,i,o){const a=wl(t,e),s=kl(t,e),c=wl(n,r),u=kl(n,r),l=wl(i,o),f=kl(i,o);Sl(dl,a,c,l,xl),Sl(hl,s,u,f,_l),Al(l,f)},arc(t,e,n,r,i,o){if(r+=pl,i+=pl,dl=n*Math.cos(i)+t,hl=n*Math.sin(i)+e,Math.abs(i-r)>ll)bl(t-n,e-n),bl(t+n,e+n);else{const a=r=>bl(n*Math.cos(r)+t,n*Math.sin(r)+e);let s,c;if(a(r),a(i),i!==r)if((r%=yu)<0&&(r+=yu),(i%=yu)<0&&(i+=yu),i<r&&(o=!o,s=r,r=i,i=s),o)for(i-=yu,s=r-r%vu,c=0;c<4&&s>i;++c,s-=vu)a(s);else for(s=r-r%vu+vu,c=0;c<4&&s<i;++c,s+=vu)a(s)}}};function Ml(t,e,n,r){const i=(t-e)/(t+n-2*e);0<i&&i<1&&r(t+(e-t)*i)}function Sl(t,e,n,r,i){const o=r-t+3*e-3*n,a=t+n-2*e,s=t-e;let c,u=0,l=0;Math.abs(o)>1e-14?(c=a*a+s*o,c>=0&&(c=Math.sqrt(c),u=(-a+c)/o,l=(-a-c)/o)):u=.5*s/a,0<u&&u<1&&i(Tl(u,t,e,n,r)),0<l&&l<1&&i(Tl(l,t,e,n,r))}function Tl(t,e,n,r,i){const o=1-t,a=o*o,s=t*t;return a*o*e+3*a*t*n+3*o*s*r+s*t*i}var Nl=(Nl=ds(1,1))?Nl.getContext("2d"):null;const Ol=new rl;function Bl(t){return function(e,n){if(!Nl)return!0;t(Nl,e),Ol.clear().union(e.bounds).intersect(n).round();const{x1:r,y1:i,x2:o,y2:a}=Ol;for(let t=i;t<=a;++t)for(let e=r;e<=o;++e)if(Nl.isPointInPath(e,t))return!0;return!1}}function Rl(t,e){return e.contains(t.x||0,t.y||0)}function zl(t,e){const n=t.x||0,r=t.y||0,i=t.width||0,o=t.height||0;return e.intersects(Ol.set(n,r,n+i,r+o))}function Pl(t,e){const n=t.x||0,r=t.y||0;return Ll(e,n,r,null!=t.x2?t.x2:n,null!=t.y2?t.y2:r)}function Ll(t,e,n,r,i){const{x1:o,y1:a,x2:s,y2:c}=t,u=r-e,l=i-n;let f,d,h,p,m=0,g=1;for(p=0;p<4;++p){if(0===p&&(f=-u,d=-(o-e)),1===p&&(f=u,d=s-e),2===p&&(f=-l,d=-(a-n)),3===p&&(f=l,d=c-n),Math.abs(f)<1e-10&&d<0)return!1;if(h=d/f,f<0){if(h>g)return!1;h>m&&(m=h)}else if(f>0){if(h<m)return!1;h<g&&(g=h)}}return!0}function Il(t,e){t.globalCompositeOperation=e.blend||"source-over"}function jl(t,e){return null==t?e:t}function Ul(t,e){const n=e.length;for(let r=0;r<n;++r)t.addColorStop(e[r].offset,e[r].color);return t}function ql(t,e,n){const r=n.width(),i=n.height();let o;if("radial"===e.gradient)o=t.createRadialGradient(n.x1+jl(e.x1,.5)*r,n.y1+jl(e.y1,.5)*i,Math.max(r,i)*jl(e.r1,0),n.x1+jl(e.x2,.5)*r,n.y1+jl(e.y2,.5)*i,Math.max(r,i)*jl(e.r2,.5));else{const a=jl(e.x1,0),s=jl(e.y1,0),c=jl(e.x2,1),u=jl(e.y2,0);if(a!==c&&s!==u&&r!==i){const n=ds(Math.ceil(r),Math.ceil(i)),o=n.getContext("2d");return o.scale(r,i),o.fillStyle=Ul(o.createLinearGradient(a,s,c,u),e.stops),o.fillRect(0,0,r,i),t.createPattern(n,"no-repeat")}o=t.createLinearGradient(n.x1+a*r,n.y1+s*i,n.x1+c*r,n.y1+u*i)}return Ul(o,e.stops)}function Wl(t,e,n){return iu(n)?ql(t,n,e.bounds):n}function Hl(t,e,n){return(n*=null==e.fillOpacity?1:e.fillOpacity)>0&&(t.globalAlpha=n,t.fillStyle=Wl(t,e,e.fill),!0)}var Gl=[];function Yl(t,e,n){var r=null!=(r=e.strokeWidth)?r:1;return!(r<=0)&&((n*=null==e.strokeOpacity?1:e.strokeOpacity)>0&&(t.globalAlpha=n,t.strokeStyle=Wl(t,e,e.stroke),t.lineWidth=r,t.lineCap=e.strokeCap||"butt",t.lineJoin=e.strokeJoin||"miter",t.miterLimit=e.strokeMiterLimit||10,t.setLineDash&&(t.setLineDash(e.strokeDash||Gl),t.lineDashOffset=e.strokeDashOffset||0),!0))}function Vl(t,e){return t.zindex-e.zindex||t.index-e.index}function $l(t){if(!t.zdirty)return t.zitems;var e,n,r,i=t.items,o=[];for(n=0,r=i.length;n<r;++n)(e=i[n]).index=n,e.zindex&&o.push(e);return t.zdirty=!1,t.zitems=o.sort(Vl)}function Xl(t,e){var n,r,i=t.items;if(!i||!i.length)return;const o=$l(t);if(o&&o.length){for(n=0,r=i.length;n<r;++n)i[n].zindex||e(i[n]);i=o}for(n=0,r=i.length;n<r;++n)e(i[n])}function Zl(t,e){var n,r,i=t.items;if(!i||!i.length)return null;const o=$l(t);for(o&&o.length&&(i=o),r=i.length;--r>=0;)if(n=e(i[r]))return n;if(i===o)for(r=(i=t.items).length;--r>=0;)if(!i[r].zindex&&(n=e(i[r])))return n;return null}function Jl(t){return function(e,n,r){Xl(n,(n=>{r&&!r.intersects(n.bounds)||Kl(t,e,n,n)}))}}function Ql(t){return function(e,n,r){!n.items.length||r&&!r.intersects(n.bounds)||Kl(t,e,n.items[0],n.items)}}function Kl(t,e,n,r){var i=null==n.opacity?1:n.opacity;0!==i&&(t(e,r)||(Il(e,n),n.fill&&Hl(e,n,i)&&e.fill(),n.stroke&&Yl(e,n,i)&&e.stroke()))}function tf(t){return t=t||O,function(e,n,r,i,o,a){return r*=e.pixelRatio,i*=e.pixelRatio,Zl(n,(n=>{const s=n.bounds;if((!s||s.contains(o,a))&&s)return t(e,n,r,i,o,a)?n:void 0}))}}function ef(t,e){return function(n,r,i,o){var a,s,c=Array.isArray(r)?r[0]:r,u=null==e?c.fill:e,l=c.stroke&&n.isPointInStroke;return l&&(a=c.strokeWidth,s=c.strokeCap,n.lineWidth=null!=a?a:1,n.lineCap=null!=s?s:"butt"),!t(n,r)&&(u&&n.isPointInPath(i,o)||l&&n.isPointInStroke(i,o))}}function nf(t){return tf(ef(t))}function rf(t,e){return"translate("+t+","+e+")"}function of(t){return"rotate("+t+")"}function af(t){return rf(t.x||0,t.y||0)}function sf(t,e,n){function r(t,n){var r=n.x||0,i=n.y||0,o=n.angle||0;t.translate(r,i),o&&t.rotate(o*=gu),t.beginPath(),e(t,n),o&&t.rotate(-o),t.translate(-r,-i)}return{type:t,tag:"path",nested:!1,attr:function(t,n){t("transform",function(t){return rf(t.x||0,t.y||0)+(t.angle?" "+of(t.angle):"")}(n)),t("d",e(null,n))},bound:function(t,n){return e(Dl(t,n.angle),n),ul(t,n).translate(n.x||0,n.y||0)},draw:Jl(r),pick:nf(r),isect:n||Bl(r)}}var cf=sf("arc",(function(t,e){return Gu.context(t)(e)}));function uf(t,e,n){function r(t,n){t.beginPath(),e(t,n)}const i=ef(r);return{type:t,tag:"path",nested:!0,attr:function(t,n){var r=n.mark.items;r.length&&t("d",e(null,r))},bound:function(t,n){var r=n.items;return 0===r.length?t:(e(Dl(t),r),ul(t,r[0]))},draw:Ql(r),pick:function(t,e,n,r,o,a){var s=e.items,c=e.bounds;return!s||!s.length||c&&!c.contains(o,a)?null:(n*=t.pixelRatio,r*=t.pixelRatio,i(t,s,n,r)?s[0]:null)},isect:Rl,tip:n}}var lf=uf("area",(function(t,e){const n=e[0],r=n.interpolate||"linear";return("horizontal"===n.orient?Vu:Yu).curve(uu(r,n.orient,n.tension)).context(t)(e)}),(function(t,e){for(var n,r,i="horizontal"===t[0].orient?e[1]:e[0],o="horizontal"===t[0].orient?"y":"x",a=t.length,s=1/0;--a>=0;)!1!==t[a].defined&&(r=Math.abs(t[a][o]-i))<s&&(s=r,n=t[a]);return n}));function ff(t,e){t.beginPath(),Qu(e)?Ku(t,e,0,0):t.rect(0,0,e.width||0,e.height||0),t.clip()}function df(t){const e=jl(t.strokeWidth,1);return null!=t.strokeOffset?t.strokeOffset:t.stroke&&e>.5&&e<1.5?.5-Math.abs(e-1):0}function hf(t,e){const n=df(e);t("d",Ku(null,e,n,n))}function pf(t,e,n,r){const i=df(e);t.beginPath(),Ku(t,e,(n||0)+i,(r||0)+i)}const mf=ef(pf),gf=ef(pf,!1),vf=ef(pf,!0);var yf={type:"group",tag:"g",nested:!1,attr:function(t,e){t("transform",af(e))},bound:function(t,e){if(!e.clip&&e.items){const n=e.items,r=n.length;for(let e=0;e<r;++e)t.union(n[e].bounds)}return(e.clip||e.width||e.height)&&!e.noBound&&t.add(0,0).add(e.width||0,e.height||0),ul(t,e),t.translate(e.x||0,e.y||0)},draw:function(t,e,n,r){Xl(e,(e=>{const i=e.x||0,o=e.y||0,a=e.strokeForeground,s=null==e.opacity?1:e.opacity;(e.stroke||e.fill)&&s&&(pf(t,e,i,o),Il(t,e),e.fill&&Hl(t,e,s)&&t.fill(),e.stroke&&!a&&Yl(t,e,s)&&t.stroke()),t.save(),t.translate(i,o),e.clip&&ff(t,e),n&&n.translate(-i,-o),Xl(e,(e=>{("group"===e.marktype||null==r||r.includes(e.marktype))&&this.draw(t,e,n,r)})),n&&n.translate(i,o),t.restore(),a&&e.stroke&&s&&(pf(t,e,i,o),Il(t,e),Yl(t,e,s)&&t.stroke())}))},pick:function(t,e,n,r,i,o){if(e.bounds&&!e.bounds.contains(i,o)||!e.items)return null;const a=n*t.pixelRatio,s=r*t.pixelRatio;return Zl(e,(c=>{let u,l,f;const d=c.bounds;if(d&&!d.contains(i,o))return;l=c.x||0,f=c.y||0;const h=l+(c.width||0),p=f+(c.height||0),m=c.clip;if(m&&(i<l||i>h||o<f||o>p))return;if(t.save(),t.translate(l,f),l=i-l,f=o-f,m&&Qu(c)&&!vf(t,c,a,s))return t.restore(),null;const g=c.strokeForeground,v=!1!==e.interactive;return v&&g&&c.stroke&&gf(t,c,a,s)?(t.restore(),c):(u=Zl(c,(t=>function(t,e,n){return(!1!==t.interactive||"group"===t.marktype)&&t.bounds&&t.bounds.contains(e,n)}(t,l,f)?this.pick(t,n,r,l,f):null)),!u&&v&&(c.fill||!g&&c.stroke)&&mf(t,c,a,s)&&(u=c),t.restore(),u||null)}))},isect:zl,content:function(t,e,n){t("clip-path",e.clip?nl(n,e,e):null)},background:function(t,e){t("class","background"),t("aria-hidden",!0),hf(t,e)},foreground:function(t,e){t("class","foreground"),t("aria-hidden",!0),e.strokeForeground?hf(t,e):t("d","")}},bf={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"};function Af(t,e){var n=t.image;return(!n||t.url&&t.url!==n.url)&&(n={complete:!1,width:0,height:0},e.loadImage(t.url).then((e=>{t.image=e,t.image.url=t.url}))),n}function xf(t,e){return null!=t.width?t.width:e&&e.width?!1!==t.aspect&&t.height?t.height*e.width/e.height:e.width:0}function _f(t,e){return null!=t.height?t.height:e&&e.height?!1!==t.aspect&&t.width?t.width*e.height/e.width:e.height:0}function wf(t,e){return"center"===t?e/2:"right"===t?e:0}function kf(t,e){return"middle"===t?e/2:"bottom"===t?e:0}var Ef={type:"image",tag:"image",nested:!1,attr:function(t,e,n){const r=Af(e,n),i=xf(e,r),o=_f(e,r),a=(e.x||0)-wf(e.align,i),s=(e.y||0)-kf(e.baseline,o);t("href",!r.src&&r.toDataURL?r.toDataURL():r.src||"",bf["xmlns:xlink"],"xlink:href"),t("transform",rf(a,s)),t("width",i),t("height",o),t("preserveAspectRatio",!1===e.aspect?"none":"xMidYMid")},bound:function(t,e){const n=e.image,r=xf(e,n),i=_f(e,n),o=(e.x||0)-wf(e.align,r),a=(e.y||0)-kf(e.baseline,i);return t.set(o,a,o+r,a+i)},draw:function(t,e,n){Xl(e,(e=>{if(n&&!n.intersects(e.bounds))return;const r=Af(e,this);let i=xf(e,r),o=_f(e,r);if(0===i||0===o)return;let a,s,c,u,l=(e.x||0)-wf(e.align,i),f=(e.y||0)-kf(e.baseline,o);!1!==e.aspect&&(s=r.width/r.height,c=e.width/e.height,s===s&&c===c&&s!==c&&(c<s?(u=i/s,f+=(o-u)/2,o=u):(u=o*s,l+=(i-u)/2,i=u))),(r.complete||r.toDataURL)&&(Il(t,e),t.globalAlpha=null!=(a=e.opacity)?a:1,t.imageSmoothingEnabled=!1!==e.smooth,t.drawImage(r,l,f,i,o))}))},pick:tf(),isect:O,get:Af,xOffset:wf,yOffset:kf},Ff=uf("line",(function(t,e){const n=e[0],r=n.interpolate||"linear";return $u.curve(uu(r,n.orient,n.tension)).context(t)(e)}),(function(t,e){for(var n,r,i=Math.pow(t[0].strokeWidth||1,2),o=t.length;--o>=0;)if(!1!==t[o].defined&&(n=t[o].x-e[0])*n+(r=t[o].y-e[1])*r<i)return t[o];return null}));function Df(t,e){var n=e.path;if(null==n)return!0;var r=e.x||0,i=e.y||0,o=e.scaleX||1,a=e.scaleY||1,s=(e.angle||0)*gu,c=e.pathCache;c&&c.path===n||((e.pathCache=c=mu(n)).path=n),s&&t.rotate&&t.translate?(t.translate(r,i),t.rotate(s),Fu(t,c,0,0,o,a),t.rotate(-s),t.translate(-r,-i)):Fu(t,c,r,i,o,a)}var Cf={type:"path",tag:"path",nested:!1,attr:function(t,e){var n=e.scaleX||1,r=e.scaleY||1;1===n&&1===r||t("vector-effect","non-scaling-stroke"),t("transform",function(t){return rf(t.x||0,t.y||0)+(t.angle?" "+of(t.angle):"")+(t.scaleX||t.scaleY?" "+function(t,e){return"scale("+t+","+e+")"}(t.scaleX||1,t.scaleY||1):"")}(e)),t("d",e.path)},bound:function(t,e){return Df(Dl(t,e.angle),e)?t.set(0,0,0,0):ul(t,e,!0)},draw:Jl(Df),pick:nf(Df),isect:Bl(Df)};function Mf(t,e){t.beginPath(),Ku(t,e)}var Sf={type:"rect",tag:"path",nested:!1,attr:function(t,e){t("d",Ku(null,e))},bound:function(t,e){var n,r;return ul(t.set(n=e.x||0,r=e.y||0,n+e.width||0,r+e.height||0),e)},draw:Jl(Mf),pick:nf(Mf),isect:zl};function Tf(t,e,n){var r,i,o,a;return!(!e.stroke||!Yl(t,e,n))&&(r=e.x||0,i=e.y||0,o=null!=e.x2?e.x2:r,a=null!=e.y2?e.y2:i,t.beginPath(),t.moveTo(r,i),t.lineTo(o,a),!0)}var Nf={type:"rule",tag:"line",nested:!1,attr:function(t,e){t("transform",af(e)),t("x2",null!=e.x2?e.x2-(e.x||0):0),t("y2",null!=e.y2?e.y2-(e.y||0):0)},bound:function(t,e){var n,r;return ul(t.set(n=e.x||0,r=e.y||0,null!=e.x2?e.x2:n,null!=e.y2?e.y2:r),e)},draw:function(t,e,n){Xl(e,(e=>{if(!n||n.intersects(e.bounds)){var r=null==e.opacity?1:e.opacity;r&&Tf(t,e,r)&&(Il(t,e),t.stroke())}}))},pick:tf((function(t,e,n,r){return!!t.isPointInStroke&&(Tf(t,e,1)&&t.isPointInStroke(n,r))})),isect:Pl},Of=sf("shape",(function(t,e){return(e.mark.shape||e.shape).context(t)(e)})),Bf=sf("symbol",(function(t,e){return Zu.context(t)(e)}),Rl);const Rf=qt();var zf={height:qf,measureWidth:jf,estimateWidth:Lf,width:Lf,canvas:Pf};function Pf(t){zf.width=t&&Nl?jf:Lf}function Lf(t,e){return If(Yf(t,e),qf(t))}function If(t,e){return~~(.8*t.length*e)}function jf(t,e){return qf(t)<=0||!(e=Yf(t,e))?0:Uf(e,$f(t))}function Uf(t,e){const n="(".concat(e,") ").concat(t);let r=Rf.get(n);return void 0===r&&(Nl.font=e,r=Nl.measureText(t).width,Rf.set(n,r)),r}function qf(t){return null!=t.fontSize?+t.fontSize||0:11}function Wf(t){return null!=t.lineHeight?t.lineHeight:qf(t)+2}function Hf(t){return e=t.lineBreak&&t.text&&!q(t.text)?t.text.split(t.lineBreak):t.text,q(e)?e.length>1?e:e[0]:e;var e}function Gf(t){const e=Hf(t);return(q(e)?e.length-1:0)*Wf(t)}function Yf(t,e){const n=null==e?"":(e+"").trim();return t.limit>0&&n.length?function(t,e){var n=+t.limit,r=function(t){if(zf.width===jf){const e=$f(t);return t=>Uf(t,e)}if(zf.width===Lf){const e=qf(t);return t=>If(t,e)}return e=>zf.width(t,e)}(t);if(r(e)<n)return e;var i,o=t.ellipsis||"\u2026",a="rtl"===t.dir,s=0,c=e.length;if(n-=r(o),a){for(;s<c;)i=s+c>>>1,r(e.slice(i))>n?s=i+1:c=i;return o+e.slice(s)}for(;s<c;)i=1+(s+c>>>1),r(e.slice(0,i))<n?s=i:c=i-1;return e.slice(0,s)+o}(t,n):n}function Vf(t,e){var n=t.font;return(e&&n?String(n).replace(/"/g,"'"):n)||"sans-serif"}function $f(t,e){return(t.fontStyle?t.fontStyle+" ":"")+(t.fontVariant?t.fontVariant+" ":"")+(t.fontWeight?t.fontWeight+" ":"")+qf(t)+"px "+Vf(t,e)}function Xf(t){var e=t.baseline,n=qf(t);return Math.round("top"===e?.79*n:"middle"===e?.3*n:"bottom"===e?-.21*n:"line-top"===e?.29*n+.5*Wf(t):"line-bottom"===e?.29*n-.5*Wf(t):0)}Pf(!0);const Zf={left:"start",center:"middle",right:"end"},Jf=new rl;function Qf(t){var e,n=t.x||0,r=t.y||0,i=t.radius||0;return i&&(e=(t.theta||0)-vu,n+=i*Math.cos(e),r+=i*Math.sin(e)),Jf.x1=n,Jf.y1=r,Jf}function Kf(t,e,n){var r,i=zf.height(e),o=e.align,a=Qf(e),s=a.x1,c=a.y1,u=e.dx||0,l=(e.dy||0)+Xf(e)-Math.round(.8*i),f=Hf(e);if(q(f)?(i+=Wf(e)*(f.length-1),r=f.reduce(((t,n)=>Math.max(t,zf.width(e,n))),0)):r=zf.width(e,f),"center"===o?u-=r/2:"right"===o&&(u-=r),t.set(u+=s,l+=c,u+r,l+i),e.angle&&!n)t.rotate(e.angle*gu,s,c);else if(2===n)return t.rotatedPoints(e.angle*gu,s,c);return t}var td={type:"text",tag:"text",nested:!1,attr:function(t,e){var n,r=e.dx||0,i=(e.dy||0)+Xf(e),o=Qf(e),a=o.x1,s=o.y1,c=e.angle||0;t("text-anchor",Zf[e.align]||"start"),c?(n=rf(a,s)+" "+of(c),(r||i)&&(n+=" "+rf(r,i))):n=rf(a+r,s+i),t("transform",n)},bound:Kf,draw:function(t,e,n){Xl(e,(e=>{var r,i,o,a,s,c,u,l=null==e.opacity?1:e.opacity;if(!(n&&!n.intersects(e.bounds)||0===l||e.fontSize<=0||null==e.text||0===e.text.length)){if(t.font=$f(e),t.textAlign=e.align||"left",i=(r=Qf(e)).x1,o=r.y1,e.angle&&(t.save(),t.translate(i,o),t.rotate(e.angle*gu),i=o=0),i+=e.dx||0,o+=(e.dy||0)+Xf(e),c=Hf(e),Il(t,e),q(c))for(s=Wf(e),a=0;a<c.length;++a)u=Yf(e,c[a]),e.fill&&Hl(t,e,l)&&t.fillText(u,i,o),e.stroke&&Yl(t,e,l)&&t.strokeText(u,i,o),o+=s;else u=Yf(e,c),e.fill&&Hl(t,e,l)&&t.fillText(u,i,o),e.stroke&&Yl(t,e,l)&&t.strokeText(u,i,o);e.angle&&t.restore()}}))},pick:tf((function(t,e,n,r,i,o){if(e.fontSize<=0)return!1;if(!e.angle)return!0;var a=Qf(e),s=a.x1,c=a.y1,u=Kf(Jf,e,1),l=-e.angle*gu,f=Math.cos(l),d=Math.sin(l),h=f*i-d*o+(s-f*s+d*c),p=d*i+f*o+(c-d*s-f*c);return u.contains(h,p)})),isect:function(t,e){const n=Kf(Jf,t,2);return Ll(e,n[0],n[1],n[2],n[3])||Ll(e,n[0],n[1],n[4],n[5])||Ll(e,n[4],n[5],n[6],n[7])||Ll(e,n[2],n[3],n[6],n[7])}},ed=uf("trail",(function(t,e){return Ju.context(t)(e)}),(function(t,e){for(var n,r,i=t.length;--i>=0;)if(!1!==t[i].defined&&(n=t[i].x-e[0])*n+(r=t[i].y-e[1])*r<(n=t[i].size||1)*n)return t[i];return null})),nd={arc:cf,area:lf,group:yf,image:Ef,line:Ff,path:Cf,rect:Sf,rule:Nf,shape:Of,symbol:Bf,text:td,trail:ed};function rd(t,e,n){var r=nd[t.mark.marktype],i=e||r.bound;return r.nested&&(t=t.mark),i(t.bounds||(t.bounds=new rl),t,n)}var id={mark:null};function od(t,e,n){var r,i,o,a,s=nd[t.marktype],c=s.bound,u=t.items,l=u&&u.length;if(s.nested)return l?o=u[0]:(id.mark=t,o=id),a=rd(o,c,n),e=e&&e.union(a)||a;if(e=e||t.bounds&&t.bounds.clear()||new rl,l)for(r=0,i=u.length;r<i;++r)e.union(rd(u[r],c,n));return t.bounds=e}const ad=["marktype","name","role","interactive","clip","items","zindex","x","y","width","height","align","baseline","fill","fillOpacity","opacity","blend","stroke","strokeOpacity","strokeWidth","strokeCap","strokeDash","strokeDashOffset","strokeForeground","strokeOffset","startAngle","endAngle","innerRadius","outerRadius","cornerRadius","padAngle","cornerRadiusTopLeft","cornerRadiusTopRight","cornerRadiusBottomLeft","cornerRadiusBottomRight","interpolate","tension","orient","defined","url","aspect","smooth","path","scaleX","scaleY","x2","y2","size","shape","text","angle","theta","radius","dir","dx","dy","ellipsis","limit","lineBreak","lineHeight","font","fontSize","fontWeight","fontStyle","fontVariant","description","aria","ariaRole","ariaRoleDescription"];function sd(t,e){return JSON.stringify(t,ad,e)}function cd(t){return ud("string"===typeof t?JSON.parse(t):t)}function ud(t){var e,n,r,i=t.marktype,o=t.items;if(o)for(n=0,r=o.length;n<r;++n)e=i?"mark":"group",o[n][e]=t,o[n].zindex&&(o[n][e].zdirty=!0),"group"===(i||e)&&ud(o[n]);return i&&od(t),t}class ld{constructor(t){arguments.length?this.root=cd(t):(this.root=fd({marktype:"group",name:"root",role:"frame"}),this.root.items=[new ol(this.root)])}toJSON(t){return sd(this.root,t||0)}mark(t,e,n){const r=fd(t,e=e||this.root.items[0]);return e.items[n]=r,r.zindex&&(r.group.zdirty=!0),r}}function fd(t,e){const n={bounds:new rl,clip:!!t.clip,group:e,interactive:!1!==t.interactive,items:[],marktype:t.marktype,name:t.name||void 0,role:t.role||void 0,zindex:t.zindex||0};return null!=t.aria&&(n.aria=t.aria),t.description&&(n.description=t.description),n}function dd(t,e,n){return!t&&"undefined"!==typeof document&&document.createElement&&(t=document),t?n?t.createElementNS(n,e):t.createElement(e):null}function hd(t,e){e=e.toLowerCase();for(var n=t.childNodes,r=0,i=n.length;r<i;++r)if(n[r].tagName.toLowerCase()===e)return n[r]}function pd(t,e,n,r){var i,o=t.childNodes[e];return o&&o.tagName.toLowerCase()===n.toLowerCase()||(i=o||null,o=dd(t.ownerDocument,n,r),t.insertBefore(o,i)),o}function md(t,e){for(var n=t.childNodes,r=n.length;r>e;)t.removeChild(n[--r]);return t}function gd(t){return"mark-"+t.marktype+(t.role?" role-"+t.role:"")+(t.name?" "+t.name:"")}function vd(t,e){const n=e.getBoundingClientRect();return[t.clientX-n.left-(e.clientLeft||0),t.clientY-n.top-(e.clientTop||0)]}class yd{constructor(t,e){this._active=null,this._handlers={},this._loader=t||Er(),this._tooltip=e||bd}initialize(t,e,n){return this._el=t,this._obj=n||null,this.origin(e)}element(){return this._el}canvas(){return this._el&&this._el.firstChild}origin(t){return arguments.length?(this._origin=t||[0,0],this):this._origin.slice()}scene(t){return arguments.length?(this._scene=t,this):this._scene}on(){}off(){}_handlerIndex(t,e,n){for(let r=t?t.length:0;--r>=0;)if(t[r].type===e&&(!n||t[r].handler===n))return r;return-1}handlers(t){const e=this._handlers,n=[];if(t)n.push(...e[this.eventName(t)]);else for(const r in e)n.push(...e[r]);return n}eventName(t){const e=t.indexOf(".");return e<0?t:t.slice(0,e)}handleHref(t,e,n){this._loader.sanitize(n,{context:"href"}).then((e=>{const n=new MouseEvent(t.type,t),r=dd(null,"a");for(const t in e)r.setAttribute(t,e[t]);r.dispatchEvent(n)})).catch((()=>{}))}handleTooltip(t,e,n){if(e&&null!=e.tooltip){e=function(t,e,n,r){var i,o,a=t&&t.mark;if(a&&(i=nd[a.marktype]).tip){for((o=vd(e,n))[0]-=r[0],o[1]-=r[1];t=t.mark.group;)o[0]-=t.x||0,o[1]-=t.y||0;t=i.tip(a.items,o)}return t}(e,t,this.canvas(),this._origin);const r=n&&e&&e.tooltip||null;this._tooltip.call(this._obj,this,t,e,r)}}getItemBoundingClientRect(t){const e=this.canvas();if(!e)return;const n=e.getBoundingClientRect(),r=this._origin,i=t.bounds,o=i.width(),a=i.height();let s=i.x1+r[0]+n.left,c=i.y1+r[1]+n.top;for(;t.mark&&(t=t.mark.group);)s+=t.x||0,c+=t.y||0;return{x:s,y:c,width:o,height:a,left:s,top:c,right:s+o,bottom:c+a}}}function bd(t,e,n,r){t.element().setAttribute("title",r||"")}class Ad{constructor(t){this._el=null,this._bgcolor=null,this._loader=new al(t)}initialize(t,e,n,r,i){return this._el=t,this.resize(e,n,r,i)}element(){return this._el}canvas(){return this._el&&this._el.firstChild}background(t){return 0===arguments.length?this._bgcolor:(this._bgcolor=t,this)}resize(t,e,n,r){return this._width=t,this._height=e,this._origin=n||[0,0],this._scale=r||1,this}dirty(){}render(t,e){const n=this;return n._call=function(){n._render(t,e)},n._call(),n._call=null,n}_render(){}renderAsync(t,e){const n=this.render(t,e);return this._ready?this._ready.then((()=>n)):Promise.resolve(n)}_load(t,e){var n=this,r=n._loader[t](e);if(!n._ready){const t=n._call;n._ready=n._loader.ready().then((e=>{e&&t(),n._ready=null}))}return r}sanitizeURL(t){return this._load("sanitizeURL",t)}loadImage(t){return this._load("loadImage",t)}}const xd="dragenter",_d="dragleave",wd="dragover",kd="pointerdown",Ed="pointermove",Fd="pointerout",Dd="pointerover",Cd="mousedown",Md="mousemove",Sd="mouseout",Td="mouseover",Nd="click",Od="mousewheel",Bd="touchstart",Rd="touchmove",zd="touchend",Pd=["keydown","keypress","keyup",xd,_d,wd,kd,"pointerup",Ed,Fd,Dd,Cd,"mouseup",Md,Sd,Td,Nd,"dblclick","wheel",Od,Bd,Rd,zd],Ld=Ed,Id=Sd,jd=Nd;class Ud extends yd{constructor(t,e){super(t,e),this._down=null,this._touch=null,this._first=!0,this._events={},this.events=Pd,this.pointermove=Gd([Ed,Md],[Dd,Td],[Fd,Sd]),this.dragover=Gd([wd],[xd],[_d]),this.pointerout=Yd([Fd,Sd]),this.dragleave=Yd([_d])}initialize(t,e,n){return this._canvas=t&&hd(t,"canvas"),[Nd,Cd,kd,Ed,Fd,_d].forEach((t=>Wd(this,t))),super.initialize(t,e,n)}canvas(){return this._canvas}context(){return this._canvas.getContext("2d")}DOMMouseScroll(t){this.fire(Od,t)}pointerdown(t){this._down=this._active,this.fire(kd,t)}mousedown(t){this._down=this._active,this.fire(Cd,t)}click(t){this._down===this._active&&(this.fire(Nd,t),this._down=null)}touchstart(t){this._touch=this.pickEvent(t.changedTouches[0]),this._first&&(this._active=this._touch,this._first=!1),this.fire(Bd,t,!0)}touchmove(t){this.fire(Rd,t,!0)}touchend(t){this.fire(zd,t,!0),this._touch=null}fire(t,e,n){const r=n?this._touch:this._active,i=this._handlers[t];if(e.vegaType=t,t===jd&&r&&r.href?this.handleHref(e,r,r.href):t!==Ld&&t!==Id||this.handleTooltip(e,r,t!==Id),i)for(let o=0,a=i.length;o<a;++o)i[o].handler.call(this._obj,e,r)}on(t,e){const n=this.eventName(t),r=this._handlers;return this._handlerIndex(r[n],t,e)<0&&(Wd(this,t),(r[n]||(r[n]=[])).push({type:t,handler:e})),this}off(t,e){const n=this.eventName(t),r=this._handlers[n],i=this._handlerIndex(r,t,e);return i>=0&&r.splice(i,1),this}pickEvent(t){const e=vd(t,this._canvas),n=this._origin;return this.pick(this._scene,e[0],e[1],e[0]-n[0],e[1]-n[1])}pick(t,e,n,r,i){const o=this.context();return nd[t.marktype].pick.call(this,o,t,e,n,r,i)}}const qd=t=>t===Bd||t===Rd||t===zd?[Bd,Rd,zd]:[t];function Wd(t,e){qd(e).forEach((e=>function(t,e){const n=t.canvas();n&&!t._events[e]&&(t._events[e]=1,n.addEventListener(e,t[e]?n=>t[e](n):n=>t.fire(e,n)))}(t,e)))}function Hd(t,e,n){e.forEach((e=>t.fire(e,n)))}function Gd(t,e,n){return function(r){const i=this._active,o=this.pickEvent(r);o===i||(i&&i.exit||Hd(this,n,r),this._active=o,Hd(this,e,r)),Hd(this,t,r)}}function Yd(t){return function(e){Hd(this,t,e),this._active=null}}function Vd(t,e,n,r,i,o){const a="undefined"!==typeof HTMLElement&&t instanceof HTMLElement&&null!=t.parentNode,s=t.getContext("2d"),c=a?"undefined"!==typeof window&&window.devicePixelRatio||1:i;t.width=e*c,t.height=n*c;for(const u in o)s[u]=o[u];return a&&1!==c&&(t.style.width=e+"px",t.style.height=n+"px"),s.pixelRatio=c,s.setTransform(c,0,0,c,c*r[0],c*r[1]),t}class $d extends Ad{constructor(t){super(t),this._options={},this._redraw=!1,this._dirty=new rl,this._tempb=new rl}initialize(t,e,n,r,i,o){return this._options=o||{},this._canvas=this._options.externalContext?null:ds(1,1,this._options.type),t&&this._canvas&&(md(t,0).appendChild(this._canvas),this._canvas.setAttribute("class","marks")),super.initialize(t,e,n,r,i)}resize(t,e,n,r){if(super.resize(t,e,n,r),this._canvas)Vd(this._canvas,this._width,this._height,this._origin,this._scale,this._options.context);else{const t=this._options.externalContext;t||F("CanvasRenderer is missing a valid canvas or context"),t.scale(this._scale,this._scale),t.translate(this._origin[0],this._origin[1])}return this._redraw=!0,this}canvas(){return this._canvas}context(){return this._options.externalContext||(this._canvas?this._canvas.getContext("2d"):null)}dirty(t){const e=this._tempb.clear().union(t.bounds);let n=t.mark.group;for(;n;)e.translate(n.x||0,n.y||0),n=n.mark.group;this._dirty.union(e)}_render(t,e){const n=this.context(),r=this._origin,i=this._width,o=this._height,a=this._dirty,s=Xd(r,i,o);n.save();const c=this._redraw||a.empty()?(this._redraw=!1,s.expand(1)):function(t,e,n){e.expand(1).round(),t.pixelRatio%1&&e.scale(t.pixelRatio).round().scale(1/t.pixelRatio);return e.translate(-n[0]%1,-n[1]%1),t.beginPath(),t.rect(e.x1,e.y1,e.width(),e.height()),t.clip(),e}(n,s.intersect(a),r);return this.clear(-r[0],-r[1],i,o),this.draw(n,t,c,e),n.restore(),a.clear(),this}draw(t,e,n,r){if("group"!==e.marktype&&null!=r&&!r.includes(e.marktype))return;const i=nd[e.marktype];e.clip&&function(t,e){var n=e.clip;t.save(),mt(n)?(t.beginPath(),n(t),t.clip()):ff(t,e.group)}(t,e),i.draw.call(this,t,e,n,r),e.clip&&t.restore()}clear(t,e,n,r){const i=this._options,o=this.context();"pdf"===i.type||i.externalContext||o.clearRect(t,e,n,r),null!=this._bgcolor&&(o.fillStyle=this._bgcolor,o.fillRect(t,e,n,r))}}const Xd=(t,e,n)=>(new rl).set(0,0,e,n).translate(-t[0],-t[1]);class Zd extends yd{constructor(t,e){super(t,e);const n=this;n._hrefHandler=Jd(n,((t,e)=>{e&&e.href&&n.handleHref(t,e,e.href)})),n._tooltipHandler=Jd(n,((t,e)=>{n.handleTooltip(t,e,t.type!==Id)}))}initialize(t,e,n){let r=this._svg;return r&&(r.removeEventListener(jd,this._hrefHandler),r.removeEventListener(Ld,this._tooltipHandler),r.removeEventListener(Id,this._tooltipHandler)),this._svg=r=t&&hd(t,"svg"),r&&(r.addEventListener(jd,this._hrefHandler),r.addEventListener(Ld,this._tooltipHandler),r.addEventListener(Id,this._tooltipHandler)),super.initialize(t,e,n)}canvas(){return this._svg}on(t,e){const n=this.eventName(t),r=this._handlers;if(this._handlerIndex(r[n],t,e)<0){const i={type:t,handler:e,listener:Jd(this,e)};(r[n]||(r[n]=[])).push(i),this._svg&&this._svg.addEventListener(n,i.listener)}return this}off(t,e){const n=this.eventName(t),r=this._handlers[n],i=this._handlerIndex(r,t,e);return i>=0&&(this._svg&&this._svg.removeEventListener(n,r[i].listener),r.splice(i,1)),this}}const Jd=(t,e)=>n=>{let r=n.target.__data__;r=Array.isArray(r)?r[0]:r,n.vegaType=n.type,e.call(t._obj,n,r)},Qd="aria-hidden",Kd="aria-label",th="role",eh="aria-roledescription",nh="graphics-object",rh="graphics-symbol",ih=(t,e,n)=>({[th]:t,[eh]:e,[Kd]:n||void 0}),oh=Qt(["axis-domain","axis-grid","axis-label","axis-tick","axis-title","legend-band","legend-entry","legend-gradient","legend-label","legend-title","legend-symbol","title"]),ah={axis:{desc:"axis",caption:function(t){const e=t.datum,n=t.orient,r=e.title?fh(t):null,i=t.context,o=i.scales[e.scale].value,a=i.dataflow.locale(),s=o.type,c="left"===n||"right"===n?"Y":"X";return"".concat(c,"-axis")+(r?" titled '".concat(r,"'"):"")+" for a ".concat(Ac(s)?"discrete":s," scale")+" with ".concat(eu(a,o,t))}},legend:{desc:"legend",caption:function(t){const e=t.datum,n=e.title?fh(t):null,r="".concat(e.type||""," legend").trim(),i=e.scales,o=Object.keys(i),a=t.context,s=a.scales[i[o[0]]].value,c=a.dataflow.locale();return u=r,(u.length?u[0].toUpperCase()+u.slice(1):u)+(n?" titled '".concat(n,"'"):"")+" for ".concat(function(t){return t=t.map((t=>t+("fill"===t||"stroke"===t?" color":""))),t.length<2?t[0]:t.slice(0,-1).join(", ")+" and "+$(t)}(o))+" with ".concat(eu(c,s,t));var u}},"title-text":{desc:"title",caption:t=>"Title text '".concat(lh(t),"'")},"title-subtitle":{desc:"subtitle",caption:t=>"Subtitle text '".concat(lh(t),"'")}},sh={ariaRole:th,ariaRoleDescription:eh,description:Kd};function ch(t,e){const n=!1===e.aria;if(t(Qd,n||void 0),n||null==e.description)for(const r in sh)t(sh[r],void 0);else{const n=e.mark.marktype;t(Kd,e.description),t(th,e.ariaRole||("group"===n?nh:rh)),t(eh,e.ariaRoleDescription||"".concat(n," mark"))}}function uh(t){return!1===t.aria?{[Qd]:!0}:oh[t.role]?null:ah[t.role]?function(t,e){try{const n=t.items[0],r=e.caption||(()=>"");return ih(e.role||rh,e.desc,n.description||r(n))}catch(n){return null}}(t,ah[t.role]):function(t){const e=t.marktype,n="group"===e||"text"===e||t.items.some((t=>null!=t.description&&!1!==t.aria));return ih(n?nh:rh,"".concat(e," mark container"),t.description)}(t)}function lh(t){return ht(t.text).join(" ")}function fh(t){try{return ht($(t.items).items[0].text).join(" ")}catch(e){return null}}const dh=t=>(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),hh=t=>dh(t).replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
");function ph(){let t="",e="",n="";const r=[],i=()=>e=n="",o=(t,n)=>(null!=n&&(e+=" ".concat(t,'="').concat(hh(n),'"')),a),a={open(s){(o=>{e&&(t+="".concat(e,">").concat(n),i()),r.push(o)})(s),e="<"+s;for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l<c;l++)u[l-1]=arguments[l];for(const t of u)for(const e in t)o(e,t[e]);return a},close(){const o=r.pop();return t+=e?e+(n?">".concat(n,"</").concat(o,">"):"/>"):"</".concat(o,">"),i(),a},attr:o,text:t=>(n+=dh(t),a),toString:()=>t};return a}const mh=t=>gh(ph(),t)+"";function gh(t,e){if(t.open(e.tagName),e.hasAttributes()){const n=e.attributes,r=n.length;for(let e=0;e<r;++e)t.attr(n[e].name,n[e].value)}if(e.hasChildNodes()){const n=e.childNodes;for(const e of n)3===e.nodeType?t.text(e.nodeValue):gh(t,e)}return t.close()}const vh={fill:"fill",fillOpacity:"fill-opacity",stroke:"stroke",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",strokeCap:"stroke-linecap",strokeJoin:"stroke-linejoin",strokeDash:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeMiterLimit:"stroke-miterlimit",opacity:"opacity"},yh={blend:"mix-blend-mode"},bh={fill:"none","stroke-miterlimit":10},Ah="http://www.w3.org/2000/xmlns/",xh=bf.xmlns;class _h extends Ad{constructor(t){super(t),this._dirtyID=0,this._dirty=[],this._svg=null,this._root=null,this._defs=null}initialize(t,e,n,r,i){return this._defs={},this._clearDefs(),t&&(this._svg=pd(t,0,"svg",xh),this._svg.setAttributeNS(Ah,"xmlns",xh),this._svg.setAttributeNS(Ah,"xmlns:xlink",bf["xmlns:xlink"]),this._svg.setAttribute("version",bf.version),this._svg.setAttribute("class","marks"),md(t,1),this._root=pd(this._svg,0,"g",xh),Nh(this._root,bh),md(this._svg,1)),this.background(this._bgcolor),super.initialize(t,e,n,r,i)}background(t){return arguments.length&&this._svg&&this._svg.style.setProperty("background-color",t),super.background(...arguments)}resize(t,e,n,r){return super.resize(t,e,n,r),this._svg&&(Nh(this._svg,{width:this._width*this._scale,height:this._height*this._scale,viewBox:"0 0 ".concat(this._width," ").concat(this._height)}),this._root.setAttribute("transform","translate(".concat(this._origin,")"))),this._dirty=[],this}canvas(){return this._svg}svg(){const t=this._svg,e=this._bgcolor;if(!t)return null;let n;e&&(t.removeAttribute("style"),n=pd(t,0,"rect",xh),Nh(n,{width:this._width,height:this._height,fill:e}));const r=mh(t);return e&&(t.removeChild(n),this._svg.style.setProperty("background-color",e)),r}_render(t,e){return this._dirtyCheck()&&(this._dirtyAll&&this._clearDefs(),this.mark(this._root,t,void 0,e),md(this._root,1)),this.defs(),this._dirty=[],++this._dirtyID,this}dirty(t){t.dirty!==this._dirtyID&&(t.dirty=this._dirtyID,this._dirty.push(t))}isDirty(t){return this._dirtyAll||!t._svg||!t._svg.ownerSVGElement||t.dirty===this._dirtyID}_dirtyCheck(){this._dirtyAll=!0;const t=this._dirty;if(!t.length||!this._dirtyID)return!0;const e=++this._dirtyID;let n,r,i,o,a,s,c;for(a=0,s=t.length;a<s;++a)n=t[a],r=n.mark,r.marktype!==i&&(i=r.marktype,o=nd[i]),r.zdirty&&r.dirty!==e&&(this._dirtyAll=!1,wh(n,e),r.items.forEach((t=>{t.dirty=e}))),r.zdirty||(n.exit?(o.nested&&r.items.length?(c=r.items[0],c._svg&&this._update(o,c._svg,c)):n._svg&&(c=n._svg.parentNode,c&&c.removeChild(n._svg)),n._svg=null):(n=o.nested?r.items[0]:n,n._update!==e&&(n._svg&&n._svg.ownerSVGElement?this._update(o,n._svg,n):(this._dirtyAll=!1,wh(n,e)),n._update=e)));return!this._dirtyAll}mark(t,e,n,r){if(!this.isDirty(e))return e._svg;const i=this._svg,o=e.marktype,a=nd[o],s=!1===e.interactive?"none":null,c="g"===a.tag,u=Fh(e,t,n,"g",i);if("group"!==o&&null!=r&&!r.includes(o))return md(u,0),e._svg;u.setAttribute("class",gd(e));const l=uh(e);for(const p in l)Oh(u,p,l[p]);c||Oh(u,"pointer-events",s),Oh(u,"clip-path",e.clip?nl(this,e,e.group):null);let f=null,d=0;const h=t=>{const e=this.isDirty(t),n=Fh(t,u,f,a.tag,i);e&&(this._update(a,n,t),c&&function(t,e,n,r){e=e.lastChild.previousSibling;let i,o=0;Xl(n,(n=>{i=t.mark(e,n,i,r),++o})),md(e,1+o)}(this,n,t,r)),f=n,++d};return a.nested?e.items.length&&h(e.items[0]):Xl(e,h),md(u,d),u}_update(t,e,n){Dh=e,Ch=e.__values__,ch(Sh,n),t.attr(Sh,n,this);const r=Mh[t.type];r&&r.call(this,t,e,n),Dh&&this.style(Dh,n)}style(t,e){if(null!=e){for(const n in vh){let r="font"===n?Vf(e):e[n];if(r===Ch[n])continue;const i=vh[n];null==r?t.removeAttribute(i):(iu(r)&&(r=ou(r,this._defs.gradient,Bh())),t.setAttribute(i,r+"")),Ch[n]=r}for(const n in yh)Th(t,yh[n],e[n])}}defs(){const t=this._svg,e=this._defs;let n=e.el,r=0;for(const i in e.gradient)n||(e.el=n=pd(t,1,"defs",xh)),r=kh(n,e.gradient[i],r);for(const i in e.clipping)n||(e.el=n=pd(t,1,"defs",xh)),r=Eh(n,e.clipping[i],r);n&&(0===r?(t.removeChild(n),e.el=null):md(n,r))}_clearDefs(){const t=this._defs;t.gradient={},t.clipping={}}}function wh(t,e){for(;t&&t.dirty!==e;t=t.mark.group){if(t.dirty=e,!t.mark||t.mark.dirty===e)return;t.mark.dirty=e}}function kh(t,e,n){let r,i,o;if("radial"===e.gradient){let r=pd(t,n++,"pattern",xh);Nh(r,{id:ru+e.id,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"}),r=pd(r,0,"rect",xh),Nh(r,{width:1,height:1,fill:"url(".concat(Bh(),"#").concat(e.id,")")}),Nh(t=pd(t,n++,"radialGradient",xh),{id:e.id,fx:e.x1,fy:e.y1,fr:e.r1,cx:e.x2,cy:e.y2,r:e.r2})}else Nh(t=pd(t,n++,"linearGradient",xh),{id:e.id,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2});for(r=0,i=e.stops.length;r<i;++r)o=pd(t,r,"stop",xh),o.setAttribute("offset",e.stops[r].offset),o.setAttribute("stop-color",e.stops[r].color);return md(t,r),n}function Eh(t,e,n){let r;return(t=pd(t,n,"clipPath",xh)).setAttribute("id",e.id),e.path?(r=pd(t,0,"path",xh),r.setAttribute("d",e.path)):(r=pd(t,0,"rect",xh),Nh(r,{x:0,y:0,width:e.width,height:e.height})),md(t,1),n+1}function Fh(t,e,n,r,i){let o,a=t._svg;if(!a&&(o=e.ownerDocument,a=dd(o,r,xh),t._svg=a,t.mark&&(a.__data__=t,a.__values__={fill:"default"},"g"===r))){const e=dd(o,"path",xh);a.appendChild(e),e.__data__=t;const n=dd(o,"g",xh);a.appendChild(n),n.__data__=t;const r=dd(o,"path",xh);a.appendChild(r),r.__data__=t,r.__values__={fill:"default"}}return(a.ownerSVGElement!==i||function(t,e){return t.parentNode&&t.parentNode.childNodes.length>1&&t.previousSibling!=e}(a,n))&&e.insertBefore(a,n?n.nextSibling:e.firstChild),a}let Dh=null,Ch=null;const Mh={group(t,e,n){const r=Dh=e.childNodes[2];Ch=r.__values__,t.foreground(Sh,n,this),Ch=e.__values__,Dh=e.childNodes[1],t.content(Sh,n,this);const i=Dh=e.childNodes[0];t.background(Sh,n,this);const o=!1===n.mark.interactive?"none":null;if(o!==Ch.events&&(Oh(r,"pointer-events",o),Oh(i,"pointer-events",o),Ch.events=o),n.strokeForeground&&n.stroke){const t=n.fill;Oh(r,"display",null),this.style(i,n),Oh(i,"stroke",null),t&&(n.fill=null),Ch=r.__values__,this.style(r,n),t&&(n.fill=t),Dh=null}else Oh(r,"display","none")},image(t,e,n){!1===n.smooth?(Th(e,"image-rendering","optimizeSpeed"),Th(e,"image-rendering","pixelated")):Th(e,"image-rendering",null)},text(t,e,n){const r=Hf(n);let i,o,a,s;q(r)?(o=r.map((t=>Yf(n,t))),i=o.join("\n"),i!==Ch.text&&(md(e,0),a=e.ownerDocument,s=Wf(n),o.forEach(((t,r)=>{const i=dd(a,"tspan",xh);i.__data__=n,i.textContent=t,r&&(i.setAttribute("x",0),i.setAttribute("dy",s)),e.appendChild(i)})),Ch.text=i)):(o=Yf(n,r),o!==Ch.text&&(e.textContent=o,Ch.text=o)),Oh(e,"font-family",Vf(n)),Oh(e,"font-size",qf(n)+"px"),Oh(e,"font-style",n.fontStyle),Oh(e,"font-variant",n.fontVariant),Oh(e,"font-weight",n.fontWeight)}};function Sh(t,e,n){e!==Ch[t]&&(n?function(t,e,n,r){null!=n?t.setAttributeNS(r,e,n):t.removeAttributeNS(r,e)}(Dh,t,e,n):Oh(Dh,t,e),Ch[t]=e)}function Th(t,e,n){n!==Ch[e]&&(null==n?t.style.removeProperty(e):t.style.setProperty(e,n+""),Ch[e]=n)}function Nh(t,e){for(const n in e)Oh(t,n,e[n])}function Oh(t,e,n){null!=n?t.setAttribute(e,n):t.removeAttribute(e)}function Bh(){let t;return"undefined"===typeof window?"":(t=window.location).hash?t.href.slice(0,-t.hash.length):t.href}class Rh extends Ad{constructor(t){super(t),this._text=null,this._defs={gradient:{},clipping:{}}}svg(){return this._text}_render(t){const e=ph();e.open("svg",kt({},bf,{class:"marks",width:this._width*this._scale,height:this._height*this._scale,viewBox:"0 0 ".concat(this._width," ").concat(this._height)}));const n=this._bgcolor;return n&&"transparent"!==n&&"none"!==n&&e.open("rect",{width:this._width,height:this._height,fill:n}).close(),e.open("g",bh,{transform:"translate("+this._origin+")"}),this.mark(e,t),e.close(),this.defs(e),this._text=e.close()+"",this}mark(t,e){const n=nd[e.marktype],r=n.tag,i=[ch,n.attr];t.open("g",{class:gd(e),"clip-path":e.clip?nl(this,e,e.group):null},uh(e),{"pointer-events":"g"!==r&&!1===e.interactive?"none":null});const o=o=>{const a=this.href(o);if(a&&t.open("a",a),t.open(r,this.attr(e,o,i,"g"!==r?r:null)),"text"===r){const e=Hf(o);if(q(e)){const n={x:0,dy:Wf(o)};for(let r=0;r<e.length;++r)t.open("tspan",r?n:null).text(Yf(o,e[r])).close()}else t.text(Yf(o,e))}else if("g"===r){const r=o.strokeForeground,i=o.fill,a=o.stroke;r&&a&&(o.stroke=null),t.open("path",this.attr(e,o,n.background,"bgrect")).close(),t.open("g",this.attr(e,o,n.content)),Xl(o,(e=>this.mark(t,e))),t.close(),r&&a?(i&&(o.fill=null),o.stroke=a,t.open("path",this.attr(e,o,n.foreground,"bgrect")).close(),i&&(o.fill=i)):t.open("path",this.attr(e,o,n.foreground,"bgfore")).close()}t.close(),a&&t.close()};return n.nested?e.items&&e.items.length&&o(e.items[0]):Xl(e,o),t.close()}href(t){const e=t.href;let n;if(e){if(n=this._hrefs&&this._hrefs[e])return n;this.sanitizeURL(e).then((t=>{t["xlink:href"]=t.href,t.href=null,(this._hrefs||(this._hrefs={}))[e]=t}))}return null}attr(t,e,n,r){const i={},o=(t,e,n,r)=>{i[r||t]=e};return Array.isArray(n)?n.forEach((t=>t(o,e,this))):n(o,e,this),r&&function(t,e,n,r,i){let o;if(null==e)return t;"bgrect"===r&&!1===n.interactive&&(t["pointer-events"]="none");if("bgfore"===r&&(!1===n.interactive&&(t["pointer-events"]="none"),t.display="none",null!==e.fill))return t;"image"===r&&!1===e.smooth&&(o=["image-rendering: optimizeSpeed;","image-rendering: pixelated;"]);"text"===r&&(t["font-family"]=Vf(e),t["font-size"]=qf(e)+"px",t["font-style"]=e.fontStyle,t["font-variant"]=e.fontVariant,t["font-weight"]=e.fontWeight);for(const a in vh){let n=e[a];const r=vh[a];("transparent"!==n||"fill"!==r&&"stroke"!==r)&&null!=n&&(iu(n)&&(n=ou(n,i.gradient,"")),t[r]=n)}for(const a in yh){const t=e[a];null!=t&&(o=o||[],o.push("".concat(yh[a],": ").concat(t,";")))}o&&(t.style=o.join(" "))}(i,e,t,r,this._defs),i}defs(t){const e=this._defs.gradient,n=this._defs.clipping;if(0!==Object.keys(e).length+Object.keys(n).length){t.open("defs");for(const n in e){const r=e[n],i=r.stops;"radial"===r.gradient?(t.open("pattern",{id:ru+n,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"}),t.open("rect",{width:"1",height:"1",fill:"url(#"+n+")"}).close(),t.close(),t.open("radialGradient",{id:n,fx:r.x1,fy:r.y1,fr:r.r1,cx:r.x2,cy:r.y2,r:r.r2})):t.open("linearGradient",{id:n,x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2});for(let e=0;e<i.length;++e)t.open("stop",{offset:i[e].offset,"stop-color":i[e].color}).close();t.close()}for(const e in n){const r=n[e];t.open("clipPath",{id:e}),r.path?t.open("path",{d:r.path}).close():t.open("rect",{x:0,y:0,width:r.width,height:r.height}).close(),t.close()}t.close()}}}const zh={svgMarkTypes:["text"],svgOnTop:!0,debug:!1};function Ph(t){var e,n,r;zh.svgMarkTypes=null!==(e=t.svgMarkTypes)&&void 0!==e?e:["text"],zh.svgOnTop=null===(n=t.svgOnTop)||void 0===n||n,zh.debug=null!==(r=t.debug)&&void 0!==r&&r}class Lh extends Ad{constructor(t){super(t),this._svgRenderer=new _h(t),this._canvasRenderer=new $d(t)}initialize(t,e,n,r,i){this._root_el=pd(t,0,"div");const o=pd(this._root_el,0,"div"),a=pd(this._root_el,1,"div");return this._root_el.style.position="relative",zh.debug||(o.style.height="100%",a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.height="100%",a.style.width="100%"),this._svgEl=zh.svgOnTop?a:o,this._canvasEl=zh.svgOnTop?o:a,this._svgEl.style.pointerEvents="none",this._canvasRenderer.initialize(this._canvasEl,e,n,r,i),this._svgRenderer.initialize(this._svgEl,e,n,r,i),super.initialize(t,e,n,r,i)}dirty(t){return zh.svgMarkTypes.includes(t.mark.marktype)?this._svgRenderer.dirty(t):this._canvasRenderer.dirty(t),this}_render(t,e){const n=(null!==e&&void 0!==e?e:["arc","area","image","line","path","rect","rule","shape","symbol","text","trail"]).filter((t=>!zh.svgMarkTypes.includes(t)));this._svgRenderer.render(t,zh.svgMarkTypes),this._canvasRenderer.render(t,n)}resize(t,e,n,r){return super.resize(t,e,n,r),this._svgRenderer.resize(t,e,n,r),this._canvasRenderer.resize(t,e,n,r),this}background(t){return zh.svgOnTop?this._canvasRenderer.background(t):this._svgRenderer.background(t),this}}class Ih extends Ud{constructor(t,e){super(t,e)}initialize(t,e,n){const r=pd(pd(t,0,"div"),zh.svgOnTop?0:1,"div");return super.initialize(r,e,n)}}const jh="canvas",Uh="hybrid",qh="none",Wh={Canvas:jh,PNG:"png",SVG:"svg",Hybrid:Uh,None:qh},Hh={};function Gh(t,e){return t=String(t||"").toLowerCase(),arguments.length>1?(Hh[t]=e,this):Hh[t]}function Yh(t,e,n){const r=[],i=(new rl).union(e),o=t.marktype;return o?Vh(t,i,n,r):"group"===o?$h(t,i,n,r):F("Intersect scene must be mark node or group item.")}function Vh(t,e,n,r){if(function(t,e,n){return t.bounds&&e.intersects(t.bounds)&&("group"===t.marktype||!1!==t.interactive&&(!n||n(t)))}(t,e,n)){const i=t.items,o=t.marktype,a=i.length;let s=0;if("group"===o)for(;s<a;++s)$h(i[s],e,n,r);else for(const t=nd[o].isect;s<a;++s){const n=i[s];Xh(n,e,t)&&r.push(n)}}return r}function $h(t,e,n,r){n&&n(t.mark)&&Xh(t,e,nd.group.isect)&&r.push(t);const i=t.items,o=i&&i.length;if(o){const a=t.x||0,s=t.y||0;e.translate(-a,-s);for(let t=0;t<o;++t)Vh(i[t],e,n,r);e.translate(a,s)}return r}function Xh(t,e,n){const r=t.bounds;return e.encloses(r)||e.intersects(r)&&n(t,e)}Hh[jh]=Hh.png={renderer:$d,headless:$d,handler:Ud},Hh.svg={renderer:_h,headless:Rh,handler:Zd},Hh[Uh]={renderer:Lh,headless:Lh,handler:Ih},Hh[qh]={};const Zh=new rl;function Jh(t){const e=t.clip;if(mt(e))e(Dl(Zh.clear()));else{if(!e)return;Zh.set(0,0,t.group.width,t.group.height)}t.bounds.intersect(Zh)}const Qh=1e-9;function Kh(t,e,n){return t===e||("path"===n?tp(t,e):t instanceof Date&&e instanceof Date?+t===+e:zt(t)&&zt(e)?Math.abs(t-e)<=Qh:t&&e&&(W(t)||W(e))?function(t,e){var n,r,i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(i.sort(),o.sort(),r=i.length-1;r>=0;r--)if(i[r]!=o[r])return!1;for(r=i.length-1;r>=0;r--)if(!Kh(t[n=i[r]],e[n],n))return!1;return typeof t===typeof e}(t,e):t==e)}function tp(t,e){return Kh(mu(t),mu(e))}function ep(){el(),nu=0}const np="top",rp="left",ip="right",op="bottom",ap="start",sp="middle",cp="end",up="group",lp="axis",fp="title",dp="frame",hp="scope",pp="legend",mp="row-header",gp="row-footer",vp="row-title",yp="column-header",bp="column-footer",Ap="column-title",xp="padding",_p="fit",wp="fit-x",kp="fit-y",Ep="none",Fp="all",Dp="each",Cp="flush",Mp="column",Sp="row";function Tp(t){li.call(this,null,t)}function Np(t,e,n){return e(t.bounds.clear(),t,n)}Tt(Tp,li,{transform(t,e){const n=e.dataflow,r=t.mark,i=r.marktype,o=nd[i],a=o.bound;let s,c=r.bounds;if(o.nested)r.items.length&&n.dirty(r.items[0]),c=Np(r,a),r.items.forEach((t=>{t.bounds.clear().union(c)}));else if(i===up||t.modified())switch(e.visit(e.MOD,(t=>n.dirty(t))),c.clear(),r.items.forEach((t=>c.union(Np(t,a)))),r.role){case lp:case pp:case fp:e.reflow()}else s=e.changed(e.REM),e.visit(e.ADD,(t=>{c.union(Np(t,a))})),e.visit(e.MOD,(t=>{s=s||c.alignsWith(t.bounds),n.dirty(t),c.union(Np(t,a))})),s&&(c.clear(),r.items.forEach((t=>c.union(t.bounds))));return Jh(r),e.modifies("bounds")}});const Op=":vega_identifier:";function Bp(t){li.call(this,0,t)}function Rp(t){li.call(this,null,t)}function zp(t){li.call(this,null,t)}Bp.Definition={type:"Identifier",metadata:{modifies:!0},params:[{name:"as",type:"string",required:!0}]},Tt(Bp,li,{transform(t,e){const n=(i=e.dataflow)._signals[Op]||(i._signals[Op]=i.add(0)),r=t.as;var i;let o=n.value;return e.visit(e.ADD,(t=>t[r]=t[r]||++o)),n.set(this.value=o),e}}),Tt(Rp,li,{transform(t,e){let n=this.value;n||(n=e.dataflow.scenegraph().mark(t.markdef,function(t){const e=t.groups,n=t.parent;return e&&1===e.size?e.get(Object.keys(e.object)[0]):e&&n?e.lookup(n):null}(t),t.index),n.group.context=t.context,t.context.group||(t.context.group=n.group),n.source=this.source,n.clip=t.clip,n.interactive=t.interactive,this.value=n);const r=n.marktype===up?ol:il;return e.visit(e.ADD,(t=>r.call(t,n))),(t.modified("clip")||t.modified("interactive"))&&(n.clip=t.clip,n.interactive=!!t.interactive,n.zdirty=!0,e.reflow()),n.items=e.source,e}});const Pp={parity:t=>t.filter(((t,e)=>e%2?t.opacity=0:1)),greedy:(t,e)=>{let n;return t.filter(((t,r)=>r&&Lp(n.bounds,t.bounds,e)?t.opacity=0:(n=t,1)))}},Lp=(t,e,n)=>n>Math.max(e.x1-t.x2,t.x1-e.x2,e.y1-t.y2,t.y1-e.y2),Ip=(t,e)=>{for(var n,r=1,i=t.length,o=t[0].bounds;r<i;o=n,++r)if(Lp(o,n=t[r].bounds,e))return!0},jp=t=>{const e=t.bounds;return e.width()>1&&e.height()>1},Up=t=>(t.forEach((t=>t.opacity=1)),t),qp=(t,e)=>t.reflow(e.modified()).modifies("opacity");function Wp(t){li.call(this,null,t)}Tt(zp,li,{transform(t,e){const n=Pp[t.method]||Pp.parity,r=t.separation||0;let i,o,a=e.materialize(e.SOURCE).source;if(!a||!a.length)return;if(!t.method)return t.modified("method")&&(Up(a),e=qp(e,t)),e;if(a=a.filter(jp),!a.length)return;if(t.sort&&(a=a.slice().sort(t.sort)),i=Up(a),e=qp(e,t),i.length>=3&&Ip(i,r)){do{i=n(i,r)}while(i.length>=3&&Ip(i,r));i.length<3&&!$(a).opacity&&(i.length>1&&($(i).opacity=0),$(a).opacity=1)}t.boundScale&&t.boundTolerance>=0&&(o=((t,e,n)=>{var r=t.range(),i=new rl;return e===np||e===op?i.set(r[0],-1/0,r[1],1/0):i.set(-1/0,r[0],1/0,r[1]),i.expand(n||1),t=>i.encloses(t.bounds)})(t.boundScale,t.boundOrient,+t.boundTolerance),a.forEach((t=>{o(t)||(t.opacity=0)})));const s=i[0].mark.bounds.clear();return a.forEach((t=>{t.opacity&&s.union(t.bounds)})),e}}),Tt(Wp,li,{transform(t,e){const n=e.dataflow;if(e.visit(e.ALL,(t=>n.dirty(t))),e.fields&&e.fields.zindex){const t=e.source&&e.source[0];t&&(t.mark.zdirty=!0)}}});const Hp=new rl;function Gp(t,e,n){return t[e]===n?0:(t[e]=n,1)}function Yp(t){var e=t.items[0].orient;return e===rp||e===ip}function Vp(t,e,n,r){var i,o,a=e.items[0],s=a.datum,c=null!=a.translate?a.translate:.5,u=a.orient,l=function(t){let e=+t.grid;return[t.ticks?e++:-1,t.labels?e++:-1,e+ +t.domain]}(s),f=a.range,d=a.offset,h=a.position,p=a.minExtent,m=a.maxExtent,g=s.title&&a.items[l[2]].items[0],v=a.titlePadding,y=a.bounds,b=g&&Gf(g),A=0,x=0;switch(Hp.clear().union(y),y.clear(),(i=l[0])>-1&&y.union(a.items[i].bounds),(i=l[1])>-1&&y.union(a.items[i].bounds),u){case np:A=h||0,x=-d,o=Math.max(p,Math.min(m,-y.y1)),y.add(0,-o).add(f,0),g&&$p(t,g,o,v,b,0,-1,y);break;case rp:A=-d,x=h||0,o=Math.max(p,Math.min(m,-y.x1)),y.add(-o,0).add(0,f),g&&$p(t,g,o,v,b,1,-1,y);break;case ip:A=n+d,x=h||0,o=Math.max(p,Math.min(m,y.x2)),y.add(0,0).add(o,f),g&&$p(t,g,o,v,b,1,1,y);break;case op:A=h||0,x=r+d,o=Math.max(p,Math.min(m,y.y2)),y.add(0,0).add(f,o),g&&$p(t,g,o,v,0,0,1,y);break;default:A=a.x,x=a.y}return ul(y.translate(A,x),a),Gp(a,"x",A+c)|Gp(a,"y",x+c)&&(a.bounds=Hp,t.dirty(a),a.bounds=y,t.dirty(a)),a.mark.bounds.clear().union(y)}function $p(t,e,n,r,i,o,a,s){const c=e.bounds;if(e.auto){const s=a*(n+i+r);let u=0,l=0;t.dirty(e),o?u=(e.x||0)-(e.x=s):l=(e.y||0)-(e.y=s),e.mark.bounds.clear().union(c.translate(-u,-l)),t.dirty(e)}s.union(c)}const Xp=(t,e)=>Math.floor(Math.min(t,e)),Zp=(t,e)=>Math.ceil(Math.max(t,e));function Jp(t){return(new rl).set(0,0,t.width||0,t.height||0)}function Qp(t){const e=t.bounds.clone();return e.empty()?e.set(0,0,0,0):e.translate(-(t.x||0),-(t.y||0))}function Kp(t,e,n){const r=W(t)?t[e]:t;return null!=r?r:void 0!==n?n:0}function tm(t){return t<0?Math.ceil(-t):0}function em(t,e,n){var r,i,o,a,s,c,u,l,f,d,h,p=!n.nodirty,m=n.bounds===Cp?Jp:Qp,g=Hp.set(0,0,0,0),v=Kp(n.align,Mp),y=Kp(n.align,Sp),b=Kp(n.padding,Mp),A=Kp(n.padding,Sp),x=n.columns||e.length,_=x<=0?1:Math.ceil(e.length/x),w=e.length,k=Array(w),E=Array(x),F=0,D=Array(w),C=Array(_),M=0,S=Array(w),T=Array(w),N=Array(w);for(i=0;i<x;++i)E[i]=0;for(i=0;i<_;++i)C[i]=0;for(i=0;i<w;++i)c=e[i],s=N[i]=m(c),c.x=c.x||0,S[i]=0,c.y=c.y||0,T[i]=0,o=i%x,a=~~(i/x),F=Math.max(F,u=Math.ceil(s.x2)),M=Math.max(M,l=Math.ceil(s.y2)),E[o]=Math.max(E[o],u),C[a]=Math.max(C[a],l),k[i]=b+tm(s.x1),D[i]=A+tm(s.y1),p&&t.dirty(e[i]);for(i=0;i<w;++i)i%x===0&&(k[i]=0),i<x&&(D[i]=0);if(v===Dp)for(o=1;o<x;++o){for(h=0,i=o;i<w;i+=x)h<k[i]&&(h=k[i]);for(i=o;i<w;i+=x)k[i]=h+E[o-1]}else if(v===Fp){for(h=0,i=0;i<w;++i)i%x&&h<k[i]&&(h=k[i]);for(i=0;i<w;++i)i%x&&(k[i]=h+F)}else for(v=!1,o=1;o<x;++o)for(i=o;i<w;i+=x)k[i]+=E[o-1];if(y===Dp)for(a=1;a<_;++a){for(h=0,r=(i=a*x)+x;i<r;++i)h<D[i]&&(h=D[i]);for(i=a*x;i<r;++i)D[i]=h+C[a-1]}else if(y===Fp){for(h=0,i=x;i<w;++i)h<D[i]&&(h=D[i]);for(i=x;i<w;++i)D[i]=h+M}else for(y=!1,a=1;a<_;++a)for(r=(i=a*x)+x;i<r;++i)D[i]+=C[a-1];for(f=0,i=0;i<w;++i)f=k[i]+(i%x?f:0),S[i]+=f-e[i].x;for(o=0;o<x;++o)for(d=0,i=o;i<w;i+=x)d+=D[i],T[i]+=d-e[i].y;if(v&&Kp(n.center,Mp)&&_>1)for(i=0;i<w;++i)(f=(s=v===Fp?F:E[i%x])-N[i].x2-e[i].x-S[i])>0&&(S[i]+=f/2);if(y&&Kp(n.center,Sp)&&1!==x)for(i=0;i<w;++i)(d=(s=y===Fp?M:C[~~(i/x)])-N[i].y2-e[i].y-T[i])>0&&(T[i]+=d/2);for(i=0;i<w;++i)g.union(N[i].translate(S[i],T[i]));switch(f=Kp(n.anchor,"x"),d=Kp(n.anchor,"y"),Kp(n.anchor,Mp)){case cp:f-=g.width();break;case sp:f-=g.width()/2}switch(Kp(n.anchor,Sp)){case cp:d-=g.height();break;case sp:d-=g.height()/2}for(f=Math.round(f),d=Math.round(d),g.clear(),i=0;i<w;++i)e[i].mark.bounds.clear();for(i=0;i<w;++i)(c=e[i]).x+=S[i]+=f,c.y+=T[i]+=d,g.union(c.mark.bounds.union(c.bounds.translate(S[i],T[i]))),p&&t.dirty(c);return g}function nm(t,e,n){var r,i,o,a,s,c,u,l=function(t){var e,n,r=t.items,i=r.length,o=0;const a={marks:[],rowheaders:[],rowfooters:[],colheaders:[],colfooters:[],rowtitle:null,coltitle:null};for(;o<i;++o)if(n=(e=r[o]).items,e.marktype===up)switch(e.role){case lp:case pp:case fp:break;case mp:a.rowheaders.push(...n);break;case gp:a.rowfooters.push(...n);break;case yp:a.colheaders.push(...n);break;case bp:a.colfooters.push(...n);break;case vp:a.rowtitle=n[0];break;case Ap:a.coltitle=n[0];break;default:a.marks.push(...n)}return a}(e),f=l.marks,d=n.bounds===Cp?rm:im,h=n.offset,p=n.columns||f.length,m=p<=0?1:Math.ceil(f.length/p),g=m*p;const v=em(t,f,n);v.empty()&&v.set(0,0,0,0),l.rowheaders&&(c=Kp(n.headerBand,Sp,null),r=om(t,l.rowheaders,f,p,m,-Kp(h,"rowHeader"),Xp,0,d,"x1",0,p,1,c)),l.colheaders&&(c=Kp(n.headerBand,Mp,null),i=om(t,l.colheaders,f,p,p,-Kp(h,"columnHeader"),Xp,1,d,"y1",0,1,p,c)),l.rowfooters&&(c=Kp(n.footerBand,Sp,null),o=om(t,l.rowfooters,f,p,m,Kp(h,"rowFooter"),Zp,0,d,"x2",p-1,p,1,c)),l.colfooters&&(c=Kp(n.footerBand,Mp,null),a=om(t,l.colfooters,f,p,p,Kp(h,"columnFooter"),Zp,1,d,"y2",g-p,1,p,c)),l.rowtitle&&(s=Kp(n.titleAnchor,Sp),u=Kp(h,"rowTitle"),u=s===cp?o+u:r-u,c=Kp(n.titleBand,Sp,.5),am(t,l.rowtitle,u,0,v,c)),l.coltitle&&(s=Kp(n.titleAnchor,Mp),u=Kp(h,"columnTitle"),u=s===cp?a+u:i-u,c=Kp(n.titleBand,Mp,.5),am(t,l.coltitle,u,1,v,c))}function rm(t,e){return"x1"===e?t.x||0:"y1"===e?t.y||0:"x2"===e?(t.x||0)+(t.width||0):"y2"===e?(t.y||0)+(t.height||0):void 0}function im(t,e){return t.bounds[e]}function om(t,e,n,r,i,o,a,s,c,u,l,f,d,h){var p,m,g,v,y,b,A,x,_,w=n.length,k=0,E=0;if(!w)return k;for(p=l;p<w;p+=f)n[p]&&(k=a(k,c(n[p],u)));if(!e.length)return k;for(e.length>i&&(t.warn("Grid headers exceed limit: "+i),e=e.slice(0,i)),k+=o,m=0,v=e.length;m<v;++m)t.dirty(e[m]),e[m].mark.bounds.clear();for(p=l,m=0,v=e.length;m<v;++m,p+=f){for(y=(b=e[m]).mark.bounds,g=p;g>=0&&null==(A=n[g]);g-=d);s?(x=null==h?A.x:Math.round(A.bounds.x1+h*A.bounds.width()),_=k):(x=k,_=null==h?A.y:Math.round(A.bounds.y1+h*A.bounds.height())),y.union(b.bounds.translate(x-(b.x||0),_-(b.y||0))),b.x=x,b.y=_,t.dirty(b),E=a(E,y[u])}return E}function am(t,e,n,r,i,o){if(e){t.dirty(e);var a=n,s=n;r?a=Math.round(i.x1+o*i.width()):s=Math.round(i.y1+o*i.height()),e.bounds.translate(a-(e.x||0),s-(e.y||0)),e.mark.bounds.clear().union(e.bounds),e.x=a,e.y=s,t.dirty(e)}}function sm(t,e,n,r,i,o,a){const s=function(t,e){const n=t[e]||{};return(e,r)=>null!=n[e]?n[e]:null!=t[e]?t[e]:r}(n,e),c=function(t,e){let n=-1/0;return t.forEach((t=>{null!=t.offset&&(n=Math.max(n,t.offset))})),n>-1/0?n:e}(t,s("offset",0)),u=s("anchor",ap),l=u===cp?1:u===sp?.5:0,f={align:Dp,bounds:s("bounds",Cp),columns:"vertical"===s("direction")?1:t.length,padding:s("margin",8),center:s("center"),nodirty:!0};switch(e){case rp:f.anchor={x:Math.floor(r.x1)-c,column:cp,y:l*(a||r.height()+2*r.y1),row:u};break;case ip:f.anchor={x:Math.ceil(r.x2)+c,y:l*(a||r.height()+2*r.y1),row:u};break;case np:f.anchor={y:Math.floor(i.y1)-c,row:cp,x:l*(o||i.width()+2*i.x1),column:u};break;case op:f.anchor={y:Math.ceil(i.y2)+c,x:l*(o||i.width()+2*i.x1),column:u};break;case"top-left":f.anchor={x:c,y:c};break;case"top-right":f.anchor={x:o-c,y:c,column:cp};break;case"bottom-left":f.anchor={x:c,y:a-c,row:cp};break;case"bottom-right":f.anchor={x:o-c,y:a-c,column:cp,row:cp}}return f}function cm(t,e){var n,r,i=e.items[0],o=i.datum,a=i.orient,s=i.bounds,c=i.x,u=i.y;return i._bounds?i._bounds.clear().union(s):i._bounds=s.clone(),s.clear(),function(t,e,n){var r=e.padding,i=r-n.x,o=r-n.y;if(e.datum.title){var a=e.items[1].items[0],s=a.anchor,c=e.titlePadding||0,u=r-a.x,l=r-a.y;switch(a.orient){case rp:i+=Math.ceil(a.bounds.width())+c;break;case ip:case op:break;default:o+=a.bounds.height()+c}switch((i||o)&&lm(t,n,i,o),a.orient){case rp:l+=um(e,n,a,s,1,1);break;case ip:u+=um(e,n,a,cp,0,0)+c,l+=um(e,n,a,s,1,1);break;case op:u+=um(e,n,a,s,0,0),l+=um(e,n,a,cp,-1,0,1)+c;break;default:u+=um(e,n,a,s,0,0)}(u||l)&&lm(t,a,u,l),(u=Math.round(a.bounds.x1-r))<0&&(lm(t,n,-u,0),lm(t,a,-u,0))}else(i||o)&&lm(t,n,i,o)}(t,i,i.items[0].items[0]),s=function(t,e){return t.items.forEach((t=>e.union(t.bounds))),e.x1=t.padding,e.y1=t.padding,e}(i,s),n=2*i.padding,r=2*i.padding,s.empty()||(n=Math.ceil(s.width()+n),r=Math.ceil(s.height()+r)),"symbol"===o.type&&function(t){const e=t.reduce(((t,e)=>(t[e.column]=Math.max(e.bounds.x2-e.x,t[e.column]||0),t)),{});t.forEach((t=>{t.width=e[t.column],t.height=t.bounds.y2-t.y}))}(i.items[0].items[0].items[0].items),a!==Ep&&(i.x=c=0,i.y=u=0),i.width=n,i.height=r,ul(s.set(c,u,c+n,u+r),i),i.mark.bounds.clear().union(s),i}function um(t,e,n,r,i,o,a){const s="symbol"!==t.datum.type,c=n.datum.vgrad,u=(!s||!o&&c||a?e:e.items[0]).bounds[i?"y2":"x2"]-t.padding,l=c&&o?u:0,f=c&&o?0:u,d=i<=0?0:Gf(n);return Math.round(r===ap?l:r===cp?f-d:.5*(u-d))}function lm(t,e,n,r){e.x+=n,e.y+=r,e.bounds.translate(n,r),e.mark.bounds.translate(n,r),t.dirty(e)}function fm(t){li.call(this,null,t)}Tt(fm,li,{transform(t,e){const n=e.dataflow;return t.mark.items.forEach((e=>{t.layout&&nm(n,e,t.layout),function(t,e,n){var r,i,o,a,s,c=e.items,u=Math.max(0,e.width||0),l=Math.max(0,e.height||0),f=(new rl).set(0,0,u,l),d=f.clone(),h=f.clone(),p=[];for(a=0,s=c.length;a<s;++a)switch((i=c[a]).role){case lp:(Yp(i)?d:h).union(Vp(t,i,u,l));break;case fp:r=i;break;case pp:p.push(cm(t,i));break;case dp:case hp:case mp:case gp:case vp:case yp:case bp:case Ap:d.union(i.bounds),h.union(i.bounds);break;default:f.union(i.bounds)}if(p.length){const e={};p.forEach((t=>{(o=t.orient||ip)!==Ep&&(e[o]||(e[o]=[])).push(t)}));for(const r in e){const i=e[r];em(t,i,sm(i,r,n.legends,d,h,u,l))}p.forEach((e=>{const r=e.bounds;if(r.equals(e._bounds)||(e.bounds=e._bounds,t.dirty(e),e.bounds=r,t.dirty(e)),!n.autosize||n.autosize.type!==_p&&n.autosize.type!==wp&&n.autosize.type!==kp)f.union(r);else switch(e.orient){case rp:case ip:f.add(r.x1,0).add(r.x2,0);break;case np:case op:f.add(0,r.y1).add(0,r.y2)}}))}f.union(d).union(h),r&&f.union(function(t,e,n,r,i){var o,a=e.items[0],s=a.frame,c=a.orient,u=a.anchor,l=a.offset,f=a.padding,d=a.items[0].items[0],h=a.items[1]&&a.items[1].items[0],p=c===rp||c===ip?r:n,m=0,g=0,v=0,y=0,b=0;if(s!==up?c===rp?(m=i.y2,p=i.y1):c===ip?(m=i.y1,p=i.y2):(m=i.x1,p=i.x2):c===rp&&(m=r,p=0),o=u===ap?m:u===cp?p:(m+p)/2,h&&h.text){switch(c){case np:case op:b=d.bounds.height()+f;break;case rp:y=d.bounds.width()+f;break;case ip:y=-d.bounds.width()-f}Hp.clear().union(h.bounds),Hp.translate(y-(h.x||0),b-(h.y||0)),Gp(h,"x",y)|Gp(h,"y",b)&&(t.dirty(h),h.bounds.clear().union(Hp),h.mark.bounds.clear().union(Hp),t.dirty(h)),Hp.clear().union(h.bounds)}else Hp.clear();switch(Hp.union(d.bounds),c){case np:g=o,v=i.y1-Hp.height()-l;break;case rp:g=i.x1-Hp.width()-l,v=o;break;case ip:g=i.x2+Hp.width()+l,v=o;break;case op:g=o,v=i.y2+l;break;default:g=a.x,v=a.y}return Gp(a,"x",g)|Gp(a,"y",v)&&(Hp.translate(g,v),t.dirty(a),a.bounds.clear().union(Hp),e.bounds.clear().union(Hp),t.dirty(a)),a.bounds}(t,r,u,l,f));e.clip&&f.set(0,0,e.width||0,e.height||0);!function(t,e,n,r){const i=r.autosize||{},o=i.type;if(t._autosize<1||!o)return;let a=t._width,s=t._height,c=Math.max(0,e.width||0),u=Math.max(0,Math.ceil(-n.x1)),l=Math.max(0,e.height||0),f=Math.max(0,Math.ceil(-n.y1));const d=Math.max(0,Math.ceil(n.x2-c)),h=Math.max(0,Math.ceil(n.y2-l));if(i.contains===xp){const e=t.padding();a-=e.left+e.right,s-=e.top+e.bottom}o===Ep?(u=0,f=0,c=a,l=s):o===_p?(c=Math.max(0,a-u-d),l=Math.max(0,s-f-h)):o===wp?(c=Math.max(0,a-u-d),s=l+f+h):o===kp?(a=c+u+d,l=Math.max(0,s-f-h)):"pad"===o&&(a=c+u+d,s=l+f+h);t._resizeView(a,s,c,l,[u,f],i.resize)}(t,e,f,n)}(n,e,t)})),function(t){return t&&"legend-entry"!==t.mark.role}(t.mark.group)?e.reflow():e}});var dm=n(5398),hm=n(10831),pm=n(20226);function mm(t){li.call(this,null,t)}function gm(t){li.call(this,null,t)}function vm(){return Or({})}function ym(t){li.call(this,null,t)}function bm(t){li.call(this,[],t)}Tt(mm,li,{transform(t,e){if(this.value&&!t.modified())return e.StopPropagation;var n=e.dataflow.locale(),r=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=this.value,o=t.scale,a=jc(o,null==t.count?t.values?t.values.length:10:t.count,t.minstep),s=t.format||Wc(n,o,a,t.formatSpecifier,t.formatType,!!t.values),c=t.values?Uc(o,t.values,a):qc(o,a);return i&&(r.rem=i),i=c.map(((t,e)=>Or({index:e/(c.length-1||1),value:t,label:s(t)}))),t.extra&&i.length&&i.push(Or({index:-1,extra:{value:i[0].value},label:""})),r.source=i,r.add=i,this.value=i,r}}),Tt(gm,li,{transform(t,e){var n=e.dataflow,r=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=t.item||vm,o=t.key||Tr,a=this.value;return q(r.encode)&&(r.encode=null),a&&(t.modified("key")||e.modified(o))&&F("DataJoin does not support modified key function or fields."),a||(e=e.addAll(),this.value=a=function(t){const e=Mt().test((t=>t.exit));return e.lookup=n=>e.get(t(n)),e}(o)),e.visit(e.ADD,(t=>{const e=o(t);let n=a.get(e);n?n.exit?(a.empty--,r.add.push(n)):r.mod.push(n):(n=i(t),a.set(e,n),r.add.push(n)),n.datum=t,n.exit=!1})),e.visit(e.MOD,(t=>{const e=o(t),n=a.get(e);n&&(n.datum=t,r.mod.push(n))})),e.visit(e.REM,(t=>{const e=o(t),n=a.get(e);t!==n.datum||n.exit||(r.rem.push(n),n.exit=!0,++a.empty)})),e.changed(e.ADD_MOD)&&r.modifies("datum"),(e.clean()||t.clean&&a.empty>n.cleanThreshold)&&n.runAfter(a.clean),r}}),Tt(ym,li,{transform(t,e){var n=e.fork(e.ADD_REM),r=t.mod||!1,i=t.encoders,o=e.encode;if(q(o)){if(!n.changed()&&!o.every((t=>i[t])))return e.StopPropagation;o=o[0],n.encode=null}var a="enter"===o,s=i.update||B,c=i.enter||B,u=i.exit||B,l=(o&&!a?i[o]:s)||B;if(e.changed(e.ADD)&&(e.visit(e.ADD,(e=>{c(e,t),s(e,t)})),n.modifies(c.output),n.modifies(s.output),l!==B&&l!==s&&(e.visit(e.ADD,(e=>{l(e,t)})),n.modifies(l.output))),e.changed(e.REM)&&u!==B&&(e.visit(e.REM,(e=>{u(e,t)})),n.modifies(u.output)),a||l!==B){const i=e.MOD|(t.modified()?e.REFLOW:0);a?(e.visit(i,(e=>{const i=c(e,t)||r;(l(e,t)||i)&&n.mod.push(e)})),n.mod.length&&n.modifies(c.output)):e.visit(i,(e=>{(l(e,t)||r)&&n.mod.push(e)})),n.mod.length&&n.modifies(l.output)}return n.changed()?n:e.StopPropagation}}),Tt(bm,li,{transform(t,e){if(null!=this.value&&!t.modified())return e.StopPropagation;var n,r,i,o,a,s=e.dataflow.locale(),c=e.fork(e.NO_SOURCE|e.NO_FIELDS),u=this.value,l=t.type||zc,f=t.scale,d=+t.limit,h=jc(f,null==t.count?5:t.count,t.minstep),p=!!t.values||l===zc,m=t.format||$c(s,f,h,l,t.formatSpecifier,t.formatType,p),g=t.values||Vc(f,h);return u&&(c.rem=u),l===zc?(d&&g.length>d?(e.dataflow.warn("Symbol legend count exceeds limit, filtering items."),u=g.slice(0,d-1),a=!0):u=g,mt(i=t.size)?(t.values||0!==f(u[0])||(u=u.slice(1)),o=u.reduce(((e,n)=>Math.max(e,i(n,t))),0)):i=_t(o=i||8),u=u.map(((e,n)=>Or({index:n,label:m(e,n,u),value:e,offset:o,size:i(e,t)}))),a&&(a=g[u.length],u.push(Or({index:u.length,label:"\u2026".concat(g.length-u.length," entries"),value:a,offset:o,size:i(a,t)})))):"gradient"===l?(n=f.domain(),r=Mc(f,n[0],$(n)),g.length<3&&!t.values&&n[0]!==$(n)&&(g=[n[0],$(n)]),u=g.map(((t,e)=>Or({index:e,label:m(t,e,g),value:t,perc:r(t)})))):(i=g.length-1,r=function(t){const e=t.domain(),n=e.length-1;let r=+e[0],i=+$(e),o=i-r;if(t.type===Ks){const t=n?o/n:.1;r-=t,i+=t,o=i-r}return t=>(t-r)/o}(f),u=g.map(((t,e)=>Or({index:e,label:m(t,e,g),value:t,perc:e?r(t):0,perc2:e===i?1:r(g[e+1])})))),c.source=u,c.add=u,this.value=u,c}});const Am=t=>t.source.x,xm=t=>t.source.y,_m=t=>t.target.x,wm=t=>t.target.y;function km(t){li.call(this,{},t)}km.Definition={type:"LinkPath",metadata:{modifies:!0},params:[{name:"sourceX",type:"field",default:"source.x"},{name:"sourceY",type:"field",default:"source.y"},{name:"targetX",type:"field",default:"target.x"},{name:"targetY",type:"field",default:"target.y"},{name:"orient",type:"enum",default:"vertical",values:["horizontal","vertical","radial"]},{name:"shape",type:"enum",default:"line",values:["line","arc","curve","diagonal","orthogonal"]},{name:"require",type:"signal"},{name:"as",type:"string",default:"path"}]},Tt(km,li,{transform(t,e){var n=t.sourceX||Am,r=t.sourceY||xm,i=t.targetX||_m,o=t.targetY||wm,a=t.as||"path",s=t.orient||"vertical",c=t.shape||"line",u=Cm.get(c+"-"+s)||Cm.get(c);return u||F("LinkPath unsupported type: "+t.shape+(t.orient?"-"+t.orient:"")),e.visit(e.SOURCE,(t=>{t[a]=u(n(t),r(t),i(t),o(t))})),e.reflow(t.modified()).modifies(a)}});const Em=(t,e,n,r)=>"M"+t+","+e+"L"+n+","+r,Fm=(t,e,n,r)=>{var i=n-t,o=r-e,a=Math.hypot(i,o)/2;return"M"+t+","+e+"A"+a+","+a+" "+180*Math.atan2(o,i)/Math.PI+" 0 1 "+n+","+r},Dm=(t,e,n,r)=>{const i=n-t,o=r-e,a=.2*(i+o),s=.2*(o-i);return"M"+t+","+e+"C"+(t+a)+","+(e+s)+" "+(n+s)+","+(r-a)+" "+n+","+r},Cm=Mt({line:Em,"line-radial":(t,e,n,r)=>Em(e*Math.cos(t),e*Math.sin(t),r*Math.cos(n),r*Math.sin(n)),arc:Fm,"arc-radial":(t,e,n,r)=>Fm(e*Math.cos(t),e*Math.sin(t),r*Math.cos(n),r*Math.sin(n)),curve:Dm,"curve-radial":(t,e,n,r)=>Dm(e*Math.cos(t),e*Math.sin(t),r*Math.cos(n),r*Math.sin(n)),"orthogonal-horizontal":(t,e,n,r)=>"M"+t+","+e+"V"+r+"H"+n,"orthogonal-vertical":(t,e,n,r)=>"M"+t+","+e+"H"+n+"V"+r,"orthogonal-radial":(t,e,n,r)=>{const i=Math.cos(t),o=Math.sin(t),a=Math.cos(n),s=Math.sin(n);return"M"+e*i+","+e*o+"A"+e+","+e+" 0 0,"+((Math.abs(n-t)>Math.PI?n<=t:n>t)?1:0)+" "+e*a+","+e*s+"L"+r*a+","+r*s},"diagonal-horizontal":(t,e,n,r)=>{const i=(t+n)/2;return"M"+t+","+e+"C"+i+","+e+" "+i+","+r+" "+n+","+r},"diagonal-vertical":(t,e,n,r)=>{const i=(e+r)/2;return"M"+t+","+e+"C"+t+","+i+" "+n+","+i+" "+n+","+r},"diagonal-radial":(t,e,n,r)=>{const i=Math.cos(t),o=Math.sin(t),a=Math.cos(n),s=Math.sin(n),c=(e+r)/2;return"M"+e*i+","+e*o+"C"+c*i+","+c*o+" "+c*a+","+c*s+" "+r*a+","+r*s}});function Mm(t){li.call(this,null,t)}Mm.Definition={type:"Pie",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"startAngle",type:"number",default:0},{name:"endAngle",type:"number",default:6.283185307179586},{name:"sort",type:"boolean",default:!1},{name:"as",type:"string",array:!0,length:2,default:["startAngle","endAngle"]}]},Tt(Mm,li,{transform(t,e){var n,r,i,o=t.as||["startAngle","endAngle"],a=o[0],s=o[1],c=t.field||N,u=t.startAngle||0,l=null!=t.endAngle?t.endAngle:2*Math.PI,f=e.source,d=f.map(c),h=d.length,p=u,m=(l-u)/(0,dm.A)(d),g=(0,bo.A)(h);for(t.sort&&g.sort(((t,e)=>d[t]-d[e])),n=0;n<h;++n)i=d[g[n]],(r=f[g[n]])[a]=p,r[s]=p+=i*m;return this.value=d,e.reflow(t.modified()).modifies(o)}});function Sm(t){return bc(t)&&t!==Xs}const Tm=Qt(["set","modified","clear","type","scheme","schemeExtent","schemeCount","domain","domainMin","domainMid","domainMax","domainRaw","domainImplicit","nice","zero","bins","range","rangeStep","round","reverse","interpolate","interpolateGamma"]);function Nm(t){li.call(this,null,t),this.modified(!0)}function Om(t,e,n){_c(t)&&(Math.abs(e.reduce(((t,e)=>t+(e<0?-1:e>0?1:0)),0))!==e.length&&n.warn("Log scale domain includes zero: "+Vt(e)));return e}function Bm(t,e,n){return mt(t)&&(e||n)?Fc(t,Rm(e||[0,1],n)):t}function Rm(t,e){return e?t.slice().reverse():t}function zm(t){li.call(this,null,t)}Tt(Nm,li,{transform(t,e){var n=e.dataflow,r=this.value,i=function(t){var e,n=t.type,r="";if(n===Xs)return Xs+"-"+qs;(function(t){const e=t.type;return bc(e)&&e!==Vs&&e!==$s&&(t.scheme||t.range&&t.range.length&&t.range.every(Lt))})(t)&&(r=2===(e=t.rawDomain?t.rawDomain.length:t.domain?t.domain.length+ +(null!=t.domainMid):0)?Xs+"-":3===e?Zs+"-":"");return(r+n||qs).toLowerCase()}(t);for(i in r&&i===r.type||(this.value=r=gc(i)()),t)if(!Tm[i]){if("padding"===i&&Sm(r.type))continue;mt(r[i])?r[i](t[i]):n.warn("Unsupported scale property: "+i)}return function(t,e,n){var r=t.type,i=e.round||!1,o=e.range;if(null!=e.rangeStep)o=function(t,e,n){t!==nc&&t!==ec&&F("Only band and point scales support rangeStep.");var r=(null!=e.paddingOuter?e.paddingOuter:e.padding)||0,i=t===ec?1:(null!=e.paddingInner?e.paddingInner:e.padding)||0;return[0,e.rangeStep*Us(n,i,r)]}(r,e,n);else if(e.scheme&&(o=function(t,e,n){var r,i=e.schemeExtent;q(e.scheme)?r=Dc(e.scheme,e.interpolate,e.interpolateGamma):(r=Rc(e.scheme.toLowerCase()))||F("Unrecognized scheme name: ".concat(e.scheme));return n=t===Ks?n+1:t===rc?n-1:t===Js||t===Qs?+e.schemeCount||5:n,wc(t)?Bm(r,i,e.reverse):mt(r)?Cc(Bm(r,i),n):t===tc?r:r.slice(0,n)}(r,e,n),mt(o))){if(t.interpolator)return t.interpolator(o);F("Scale type ".concat(r," does not support interpolating color schemes."))}if(o&&wc(r))return t.interpolator(Dc(Rm(o,e.reverse),e.interpolate,e.interpolateGamma));o&&e.interpolate&&t.interpolate?t.interpolate(Sc(e.interpolate,e.interpolateGamma)):mt(t.round)?t.round(i):mt(t.rangeRound)&&t.interpolate(i?hm.A:pm.A);o&&t.range(Rm(o,e.reverse))}(r,t,function(t,e,n){let r=e.bins;if(r&&!q(r)){const e=t.domain(),n=e[0],i=$(e),o=r.step;let a=null==r.start?n:r.start,s=null==r.stop?i:r.stop;o||F("Scale bins parameter missing step property."),a<n&&(a=o*Math.ceil(n/o)),s>i&&(s=o*Math.floor(i/o)),r=(0,bo.A)(a,s+o/2,o)}r?t.bins=r:t.bins&&delete t.bins;t.type===rc&&(r?e.domain||e.domainRaw||(t.domain(r),n=r.length):t.bins=t.domain());return n}(r,t,function(t,e,n){const r=function(t,e,n){return e?(t.domain(Om(t.type,e,n)),e.length):-1}(t,e.domainRaw,n);if(r>-1)return r;var i,o,a=e.domain,s=t.type,c=e.zero||void 0===e.zero&&function(t){const e=t.type;return!t.bins&&(e===qs||e===Hs||e===Gs)}(t);if(!a)return 0;if((c||null!=e.domainMin||null!=e.domainMax||null!=e.domainMid)&&(i=(a=a.slice()).length-1||1,c&&(a[0]>0&&(a[0]=0),a[i]<0&&(a[i]=0)),null!=e.domainMin&&(a[0]=e.domainMin),null!=e.domainMax&&(a[i]=e.domainMax),null!=e.domainMid)){const t=(o=e.domainMid)>a[i]?i+1:o<a[0]?0:i;t!==i&&n.warn("Scale domainMid exceeds domain min or max.",o),a.splice(t,0,o)}Sm(s)&&e.padding&&a[0]!==$(a)&&(a=function(t,e,n,r,i,o){var a=Math.abs($(n)-n[0]),s=a/(a-2*r),c=t===Ws?ct(e,null,s):t===Gs?ut(e,null,s,.5):t===Hs?ut(e,null,s,i||1):t===Ys?lt(e,null,s,o||1):st(e,null,s);return e=e.slice(),e[0]=c[0],e[e.length-1]=c[1],e}(s,a,e.range,e.padding,e.exponent,e.constant));t.domain(Om(s,a,n)),s===tc&&t.unknown(e.domainImplicit?Ds.h:void 0);e.nice&&t.nice&&t.nice(!0!==e.nice&&jc(t,e.nice)||null);return a.length}(r,t,n))),e.fork(e.NO_SOURCE|e.NO_FIELDS)}}),Tt(zm,li,{transform(t,e){const n=t.modified("sort")||e.changed(e.ADD)||e.modified(t.sort.fields)||e.modified("datum");return n&&e.source.sort(Pr(t.sort)),this.modified(n),e}});const Pm="zero",Lm="center",Im="normalize",jm=["y0","y1"];function Um(t){li.call(this,null,t)}function qm(t,e,n,r,i){for(var o,a=(e-t.sum)/2,s=t.length,c=0;c<s;++c)(o=t[c])[r]=a,o[i]=a+=Math.abs(n(o))}function Wm(t,e,n,r,i){for(var o,a=1/t.sum,s=0,c=t.length,u=0,l=0;u<c;++u)(o=t[u])[r]=s,o[i]=s=a*(l+=Math.abs(n(o)))}function Hm(t,e,n,r,i){for(var o,a,s=0,c=0,u=t.length,l=0;l<u;++l)(o=+n(a=t[l]))<0?(a[r]=c,a[i]=c+=o):(a[r]=s,a[i]=s+=o)}Um.Definition={type:"Stack",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"groupby",type:"field",array:!0},{name:"sort",type:"compare"},{name:"offset",type:"enum",default:Pm,values:[Pm,Lm,Im]},{name:"as",type:"string",array:!0,length:2,default:jm}]},Tt(Um,li,{transform(t,e){var n,r,i,o,a=t.as||jm,s=a[0],c=a[1],u=Pr(t.sort),l=t.field||N,f=t.offset===Lm?qm:t.offset===Im?Wm:Hm;for(n=function(t,e,n,r){var i,o,a,s,c,u,l,f,d,h=[],p=t=>t(c);if(null==e)h.push(t.slice());else for(i={},o=0,a=t.length;o<a;++o)c=t[o],(l=i[u=e.map(p)])||(i[u]=l=[],h.push(l)),l.push(c);for(u=0,d=0,s=h.length;u<s;++u){for(o=0,f=0,a=(l=h[u]).length;o<a;++o)f+=Math.abs(r(l[o]));l.sum=f,f>d&&(d=f),n&&l.sort(n)}return h.max=d,h}(e.source,t.groupby,u,l),r=0,i=n.length,o=n.max;r<i;++r)f(n[r],o,l,s,c);return e.reflow(t.modified()).modifies(a)}});var Gm=n(42948),Ym=n(34536),Vm=n(73585),$m=n(27041),Xm=n(15741),Zm=n(45180),Jm=n(35640),Qm=n(39358),Km=n(14295),tg=n(12083),eg=n(29371),ng=n(69849),rg=n(35058),ig=n(73653),og=n(83885),ag=n(31435),sg=n(26089),cg=n(62951),ug=Math.abs,lg=(Math.atan,Math.atan2,Math.ceil,Math.cos),fg=(Math.exp,Math.floor,Math.log,Math.max,Math.min,Math.pow,Math.round,Math.sign,Math.sin),dg=(Math.tan,Math.PI),hg=dg/2,pg=(Math.SQRT1_2,gg(2));gg(dg);function mg(t){return t>1?hg:t<-1?-hg:Math.asin(t)}function gg(t){return t>0?Math.sqrt(t):0}function vg(t,e){var n,r=t*fg(e),i=30;do{e-=n=(e+fg(e)-r)/(1+lg(e))}while(ug(n)>1e-6&&--i>0);return e/2}var yg=function(t,e,n){function r(r,i){return[t*r*lg(i=vg(n,i)),e*fg(i)]}return r.invert=function(r,i){return i=mg(i/e),[r/(t*lg(i)),mg((2*i+fg(2*i))/n)]},r}(pg/hg,pg,dg);const bg=(0,Gm.A)(),Ag=["clipAngle","clipExtent","scale","translate","center","rotate","parallels","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function xg(t,e){if(!t||"string"!==typeof t)throw new Error("Projection type must be a name string.");return t=t.toLowerCase(),arguments.length>1?(wg[t]=function(t,e){return function n(){const r=e();return r.type=t,r.path=(0,Gm.A)().projection(r),r.copy=r.copy||function(){const t=n();return Ag.forEach((e=>{r[e]&&t[e](r[e]())})),t.path.pointRadius(r.path.pointRadius()),t},mc(r)}}(t,e),this):wg[t]||null}function _g(t){return t&&t.path||bg}const wg={albers:Ym.A,albersusa:Vm.A,azimuthalequalarea:$m.A,azimuthalequidistant:Xm.A,conicconformal:Zm.A,conicequalarea:Jm.A,conicequidistant:Qm.A,equalEarth:Km.A,equirectangular:tg.A,gnomonic:eg.A,identity:ng.A,mercator:rg.Ay,mollweide:function(){return(0,cg.A)(yg).scale(169.529)},naturalEarth1:ig.A,orthographic:og.A,stereographic:ag.A,transversemercator:sg.A};for(const oX in wg)xg(oX,wg[oX]);var kg=n(62741),Eg=n(17840);function Fg(){}const Dg=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Cg(){var t=1,e=1,n=a;function r(t,e){return e.map((e=>i(t,e)))}function i(r,i){var a=[],s=[];return function(n,r,i){var a,s,c,u,l,f,d=[],h=[];a=s=-1,u=n[0]>=r,Dg[u<<1].forEach(p);for(;++a<t-1;)c=u,u=n[a+1]>=r,Dg[c|u<<1].forEach(p);Dg[u|0].forEach(p);for(;++s<e-1;){for(a=-1,u=n[s*t+t]>=r,l=n[s*t]>=r,Dg[u<<1|l<<2].forEach(p);++a<t-1;)c=u,u=n[s*t+t+a+1]>=r,f=l,l=n[s*t+a+1]>=r,Dg[c|u<<1|l<<2|f<<3].forEach(p);Dg[u|l<<3].forEach(p)}a=-1,l=n[s*t]>=r,Dg[l<<2].forEach(p);for(;++a<t-1;)f=l,l=n[s*t+a+1]>=r,Dg[l<<2|f<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+a,t[0][1]+s],c=[t[1][0]+a,t[1][1]+s],u=o(r),l=o(c);(e=h[u])?(n=d[l])?(delete h[e.end],delete d[n.start],e===n?(e.ring.push(c),i(e.ring)):d[e.start]=h[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[e.end],e.ring.push(c),h[e.end=l]=e):(e=d[l])?(n=h[u])?(delete d[e.start],delete h[n.end],e===n?(e.ring.push(c),i(e.ring)):d[n.start]=h[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[e.start],e.ring.unshift(r),d[e.start=u]=e):d[u]=h[l]={start:u,end:l,ring:[r,c]}}Dg[l<<3].forEach(p)}(r,i,(t=>{n(t,r,i),function(t){var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];for(;++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}(t)>0?a.push([t]):s.push(t)})),s.forEach((t=>{for(var e,n=0,r=a.length;n<r;++n)if(-1!==Mg((e=a[n])[0],t))return void e.push(t)})),{type:"MultiPolygon",value:i,coordinates:a}}function o(e){return 2*e[0]+e[1]*(t+1)*4}function a(n,r,i){n.forEach((n=>{var o,a=n[0],s=n[1],c=0|a,u=0|s,l=r[u*t+c];a>0&&a<t&&c===a&&(o=r[u*t+c-1],n[0]=a+(i-o)/(l-o)-.5),s>0&&s<e&&u===s&&(o=r[(u-1)*t+c],n[1]=s+(i-o)/(l-o)-.5)}))}return r.contour=i,r.size=function(n){if(!arguments.length)return[t,e];var i=Math.floor(n[0]),o=Math.floor(n[1]);return i>=0&&o>=0||F("invalid size"),t=i,e=o,r},r.smooth=function(t){return arguments.length?(n=t?a:Fg,r):n===a},r}function Mg(t,e){for(var n,r=-1,i=e.length;++r<i;)if(n=Sg(t,e[r]))return n;return 0}function Sg(t,e){for(var n=e[0],r=e[1],i=-1,o=0,a=t.length,s=a-1;o<a;s=o++){var c=t[o],u=c[0],l=c[1],f=t[s],d=f[0],h=f[1];if(Tg(c,f,e))return 0;l>r!==h>r&&n<(d-u)*(r-l)/(h-l)+u&&(i=-i)}return i}function Tg(t,e,n){var r,i,o,a;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])===(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],o=n[r],a=e[r],i<=o&&o<=a||a<=o&&o<=i)}function Ng(t,e,n){return function(r){var i=Et(r),o=n?Math.min(i[0],0):i[0],a=i[1],s=a-o,c=e?(0,ue.sG)(o,a,t):s/(t+1);return(0,bo.A)(o+c,a,c)}}function Og(t){li.call(this,null,t)}function Bg(t,e,n,r,i){const o=t.x1||0,a=t.y1||0,s=e*n<0;function c(t){t.forEach(u)}function u(t){s&&t.reverse(),t.forEach(l)}function l(t){t[0]=(t[0]-o)*e+r,t[1]=(t[1]-a)*n+i}return function(t){return t.coordinates.forEach(c),t}}function Rg(t,e,n){const r=t>=0?t:xi(e,n);return Math.round((Math.sqrt(4*r*r+1)-1)/2)}function zg(t){return mt(t)?t:_t(+t)}function Pg(){var t=t=>t[0],e=t=>t[1],n=N,r=[-1,-1],i=960,o=500,a=2;function s(s,c){const u=Rg(r[0],s,t)>>a,l=Rg(r[1],s,e)>>a,f=u?u+2:0,d=l?l+2:0,h=2*f+(i>>a),p=2*d+(o>>a),m=new Float32Array(h*p),g=new Float32Array(h*p);let v=m;s.forEach((r=>{const i=f+(+t(r)>>a),o=d+(+e(r)>>a);i>=0&&i<h&&o>=0&&o<p&&(m[i+o*h]+=+n(r))})),u>0&&l>0?(Lg(h,p,m,g,u),Ig(h,p,g,m,l),Lg(h,p,m,g,u),Ig(h,p,g,m,l),Lg(h,p,m,g,u),Ig(h,p,g,m,l)):u>0?(Lg(h,p,m,g,u),Lg(h,p,g,m,u),Lg(h,p,m,g,u),v=g):l>0&&(Ig(h,p,m,g,l),Ig(h,p,g,m,l),Ig(h,p,m,g,l),v=g);const y=c?Math.pow(2,-2*a):1/(0,dm.A)(v);for(let t=0,e=h*p;t<e;++t)v[t]*=y;return{values:v,scale:1<<a,width:h,height:p,x1:f,y1:d,x2:f+(i>>a),y2:d+(o>>a)}}return s.x=function(e){return arguments.length?(t=zg(e),s):t},s.y=function(t){return arguments.length?(e=zg(t),s):e},s.weight=function(t){return arguments.length?(n=zg(t),s):n},s.size=function(t){if(!arguments.length)return[i,o];var e=+t[0],n=+t[1];return e>=0&&n>=0||F("invalid size"),i=e,o=n,s},s.cellSize=function(t){return arguments.length?((t=+t)>=1||F("invalid cell size"),a=Math.floor(Math.log(t)/Math.LN2),s):1<<a},s.bandwidth=function(t){return arguments.length?(1===(t=ht(t)).length&&(t=[+t[0],+t[0]]),2!==t.length&&F("invalid bandwidth"),r=t,s):r},s}function Lg(t,e,n,r,i){const o=1+(i<<1);for(let a=0;a<e;++a)for(let e=0,s=0;e<t+i;++e)e<t&&(s+=n[e+a*t]),e>=i&&(e>=o&&(s-=n[e-o+a*t]),r[e-i+a*t]=s/Math.min(e+1,t-1+o-e,o))}function Ig(t,e,n,r,i){const o=1+(i<<1);for(let a=0;a<t;++a)for(let s=0,c=0;s<e+i;++s)s<e&&(c+=n[a+s*t]),s>=i&&(s>=o&&(c-=n[a+(s-o)*t]),r[a+(s-i)*t]=c/Math.min(s+1,e-1+o-s,o))}function jg(t){li.call(this,null,t)}Og.Definition={type:"Isocontour",metadata:{generates:!0},params:[{name:"field",type:"field"},{name:"thresholds",type:"number",array:!0},{name:"levels",type:"number"},{name:"nice",type:"boolean",default:!1},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"zero",type:"boolean",default:!0},{name:"smooth",type:"boolean",default:!0},{name:"scale",type:"number",expr:!0},{name:"translate",type:"number",array:!0,expr:!0},{name:"as",type:"string",null:!0,default:"contour"}]},Tt(Og,li,{transform(t,e){if(this.value&&!e.changed()&&!t.modified())return e.StopPropagation;var n=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=e.materialize(e.SOURCE).source,i=t.field||S,o=Cg().smooth(!1!==t.smooth),a=t.thresholds||function(t,e,n){const r=Ng(n.levels||10,n.nice,!1!==n.zero);return"shared"!==n.resolve?r:r(t.map((t=>(0,yo.A)(e(t).values))))}(r,i,t),s=null===t.as?null:t.as||"contour",c=[];return r.forEach((e=>{const n=i(e),r=o.size([n.width,n.height])(n.values,q(a)?a:a(n.values));!function(t,e,n,r){let i=r.scale||e.scale,o=r.translate||e.translate;mt(i)&&(i=i(n,r));mt(o)&&(o=o(n,r));if((1===i||null==i)&&!o)return;const a=(zt(i)?i:i[0])||1,s=(zt(i)?i:i[1])||1,c=o&&o[0]||0,u=o&&o[1]||0;t.forEach(Bg(e,a,s,c,u))}(r,n,e,t),r.forEach((t=>{c.push(Rr(e,Or(null!=s?{[s]:t}:t)))}))})),this.value&&(n.rem=this.value),this.value=n.source=n.add=c,n}}),jg.Definition={type:"KDE2D",metadata:{generates:!0},params:[{name:"size",type:"number",array:!0,length:2,required:!0},{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"weight",type:"field"},{name:"groupby",type:"field",array:!0},{name:"cellSize",type:"number"},{name:"bandwidth",type:"number",array:!0,length:2},{name:"counts",type:"boolean",default:!1},{name:"as",type:"string",default:"grid"}]};const Ug=["x","y","weight","size","cellSize","bandwidth"];function qg(t,e){return Ug.forEach((n=>null!=e[n]?t[n](e[n]):0)),t}function Wg(t){li.call(this,null,t)}Tt(jg,li,{transform(t,e){if(this.value&&!e.changed()&&!t.modified())return e.StopPropagation;var n,r=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=function(t,e){var n,r,i,o,a,s,c=[],u=t=>t(o);if(null==e)c.push(t);else for(n={},r=0,i=t.length;r<i;++r)o=t[r],(s=n[a=e.map(u)])||(n[a]=s=[],s.dims=a,c.push(s)),s.push(o);return c}(e.materialize(e.SOURCE).source,t.groupby),o=(t.groupby||[]).map(x),a=qg(Pg(),t),s=t.as||"grid";return n=i.map((e=>Or(function(t,e){for(let n=0;n<o.length;++n)t[o[n]]=e[n];return t}({[s]:a(e,t.counts)},e.dims)))),this.value&&(r.rem=this.value),this.value=r.source=r.add=n,r}}),Wg.Definition={type:"Contour",metadata:{generates:!0},params:[{name:"size",type:"number",array:!0,length:2,required:!0},{name:"values",type:"number",array:!0},{name:"x",type:"field"},{name:"y",type:"field"},{name:"weight",type:"field"},{name:"cellSize",type:"number"},{name:"bandwidth",type:"number"},{name:"count",type:"number"},{name:"nice",type:"boolean",default:!1},{name:"thresholds",type:"number",array:!0},{name:"smooth",type:"boolean",default:!0}]},Tt(Wg,li,{transform(t,e){if(this.value&&!e.changed()&&!t.modified())return e.StopPropagation;var n,r,i=e.fork(e.NO_SOURCE|e.NO_FIELDS),o=Cg().smooth(!1!==t.smooth),a=t.values,s=t.thresholds||Ng(t.count||10,t.nice,!!a),c=t.size;return a||(a=e.materialize(e.SOURCE).source,r=Bg(n=qg(Pg(),t)(a,!0),n.scale||1,n.scale||1,0,0),c=[n.width,n.height],a=n.values),s=q(s)?s:s(a),a=o.size(c)(a,s),r&&a.forEach(r),this.value&&(i.rem=this.value),this.value=i.source=i.add=(a||[]).map(Or),i}});const Hg="Feature",Gg="FeatureCollection";function Yg(t){li.call(this,null,t)}function Vg(t){li.call(this,null,t)}function $g(t){li.call(this,null,t)}function Xg(t){li.call(this,null,t)}function Zg(t){li.call(this,[],t),this.generator=(0,kg.A)()}function Jg(t){li.call(this,null,t)}function Qg(t){if(!mt(t))return!1;const e=Qt(_(t));return e.$x||e.$y||e.$value||e.$max}function Kg(t){li.call(this,null,t),this.modified(!0)}function tv(t,e,n){mt(t[e])&&t[e](n)}Yg.Definition={type:"GeoJSON",metadata:{},params:[{name:"fields",type:"field",array:!0,length:2},{name:"geojson",type:"field"}]},Tt(Yg,li,{transform(t,e){var n,r=this._features,i=this._points,o=t.fields,a=o&&o[0],s=o&&o[1],c=t.geojson||!o&&S,u=e.ADD;n=t.modified()||e.changed(e.REM)||e.modified(_(c))||a&&e.modified(_(a))||s&&e.modified(_(s)),this.value&&!n||(u=e.SOURCE,this._features=r=[],this._points=i=[]),c&&e.visit(u,(t=>r.push(c(t)))),a&&s&&(e.visit(u,(t=>{var e=a(t),n=s(t);null!=e&&null!=n&&(e=+e)===e&&(n=+n)===n&&i.push([e,n])})),r=r.concat({type:Hg,geometry:{type:"MultiPoint",coordinates:i}})),this.value={type:Gg,features:r}}}),Vg.Definition={type:"GeoPath",metadata:{modifies:!0},params:[{name:"projection",type:"projection"},{name:"field",type:"field"},{name:"pointRadius",type:"number",expr:!0},{name:"as",type:"string",default:"path"}]},Tt(Vg,li,{transform(t,e){var n=e.fork(e.ALL),r=this.value,i=t.field||S,o=t.as||"path",a=n.SOURCE;!r||t.modified()?(this.value=r=_g(t.projection),n.materialize().reflow()):a=i===S||e.modified(i.fields)?n.ADD_MOD:n.ADD;const s=function(t,e){const n=t.pointRadius();t.context(null),null!=e&&t.pointRadius(e);return n}(r,t.pointRadius);return n.visit(a,(t=>t[o]=r(i(t)))),r.pointRadius(s),n.modifies(o)}}),$g.Definition={type:"GeoPoint",metadata:{modifies:!0},params:[{name:"projection",type:"projection",required:!0},{name:"fields",type:"field",array:!0,required:!0,length:2},{name:"as",type:"string",array:!0,length:2,default:["x","y"]}]},Tt($g,li,{transform(t,e){var n,r=t.projection,i=t.fields[0],o=t.fields[1],a=t.as||["x","y"],s=a[0],c=a[1];function u(t){const e=r([i(t),o(t)]);e?(t[s]=e[0],t[c]=e[1]):(t[s]=void 0,t[c]=void 0)}return t.modified()?e=e.materialize().reflow(!0).visit(e.SOURCE,u):(n=e.modified(i.fields)||e.modified(o.fields),e.visit(n?e.ADD_MOD:e.ADD,u)),e.modifies(a)}}),Xg.Definition={type:"GeoShape",metadata:{modifies:!0,nomod:!0},params:[{name:"projection",type:"projection"},{name:"field",type:"field",default:"datum"},{name:"pointRadius",type:"number",expr:!0},{name:"as",type:"string",default:"shape"}]},Tt(Xg,li,{transform(t,e){var n=e.fork(e.ALL),r=this.value,i=t.as||"shape",o=n.ADD;return r&&!t.modified()||(this.value=r=function(t,e,n){const r=null==n?n=>t(e(n)):r=>{var i=t.pointRadius(),o=t.pointRadius(n)(e(r));return t.pointRadius(i),o};return r.context=e=>(t.context(e),r),r}(_g(t.projection),t.field||C("datum"),t.pointRadius),n.materialize().reflow(),o=n.SOURCE),n.visit(o,(t=>t[i]=r)),n.modifies(i)}}),Zg.Definition={type:"Graticule",metadata:{changes:!0,generates:!0},params:[{name:"extent",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"extentMajor",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"extentMinor",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"step",type:"number",array:!0,length:2},{name:"stepMajor",type:"number",array:!0,length:2,default:[90,360]},{name:"stepMinor",type:"number",array:!0,length:2,default:[10,10]},{name:"precision",type:"number",default:2.5}]},Tt(Zg,li,{transform(t,e){var n,r=this.value,i=this.generator;if(!r.length||t.modified())for(const o in t)mt(i[o])&&i[o](t[o]);return n=i(),r.length?e.mod.push(zr(r[0],n)):e.add.push(Or(n)),r[0]=n,e}}),Jg.Definition={type:"heatmap",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"color",type:"string",expr:!0},{name:"opacity",type:"number",expr:!0},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"as",type:"string",default:"image"}]},Tt(Jg,li,{transform(t,e){if(!e.changed()&&!t.modified())return e.StopPropagation;var n=e.materialize(e.SOURCE).source,r="shared"===t.resolve,i=t.field||S,o=function(t,e){let n;mt(t)?(n=n=>t(n,e),n.dep=Qg(t)):t?n=_t(t):(n=t=>t.$value/t.$max||0,n.dep=!0);return n}(t.opacity,t),a=function(t,e){let n;mt(t)?(n=n=>(0,Eg.Qh)(t(n,e)),n.dep=Qg(t)):n=_t((0,Eg.Qh)(t||"#888"));return n}(t.color,t),s=t.as||"image",c={$x:0,$y:0,$value:0,$max:r?(0,yo.A)(n.map((t=>(0,yo.A)(i(t).values)))):0};return n.forEach((t=>{const e=i(t),n=kt({},t,c);r||(n.$max=(0,yo.A)(e.values||[])),t[s]=function(t,e,n,r){const i=t.width,o=t.height,a=t.x1||0,s=t.y1||0,c=t.x2||i,u=t.y2||o,l=t.values,f=l?t=>l[t]:T,d=ds(c-a,u-s),h=d.getContext("2d"),p=h.getImageData(0,0,c-a,u-s),m=p.data;for(let g=s,v=0;g<u;++g){e.$y=g-s;for(let t=a,o=g*i;t<c;++t,v+=4){e.$x=t-a,e.$value=f(t+o);const i=n(e);m[v+0]=i.r,m[v+1]=i.g,m[v+2]=i.b,m[v+3]=~~(255*r(e))}}return h.putImageData(p,0,0),d}(e,n,a.dep?a:_t(a(n)),o.dep?o:_t(o(n)))})),e.reflow(!0).modifies(s)}}),Tt(Kg,li,{transform(t,e){let n=this.value;return!n||t.modified("type")?(this.value=n=function(t){const e=xg((t||"mercator").toLowerCase());e||F("Unrecognized projection type: "+t);return e()}(t.type),Ag.forEach((e=>{null!=t[e]&&tv(n,e,t[e])}))):Ag.forEach((e=>{t.modified(e)&&tv(n,e,t[e])})),null!=t.pointRadius&&n.path.pointRadius(t.pointRadius),t.fit&&function(t,e){const n=function(t){return t=ht(t),1===t.length?t[0]:{type:Gg,features:t.reduce(((t,e)=>t.concat(function(t){return t.type===Gg?t.features:ht(t).filter((t=>null!=t)).map((t=>t.type===Hg?t:{type:Hg,geometry:t}))}(e))),[])}}(e.fit);e.extent?t.fitExtent(e.extent,n):e.size&&t.fitSize(e.size,n)}(n,t),e.fork(e.NO_SOURCE|e.NO_FIELDS)}});var ev=n(35034),nv=n(4593),rv=n(64948),iv=n(38119),ov=n(11015),av=n(87792),sv=n(99968);const cv={center:ev.A,collide:nv.A,nbody:rv.A,link:iv.A,x:ov.A,y:av.A},uv="forces",lv=["alpha","alphaMin","alphaTarget","velocityDecay","forces"],fv=["static","iterations"],dv=["x","y","vx","vy"];function hv(t){li.call(this,null,t)}function pv(t,e,n,r){var i,o,a,s,c=ht(e.forces);for(i=0,o=lv.length;i<o;++i)(a=lv[i])!==uv&&e.modified(a)&&t[a](e[a]);for(i=0,o=c.length;i<o;++i)s=uv+i,(a=n||e.modified(uv,i)?gv(c[i]):r&&mv(c[i],r)?t.force(s):null)&&t.force(s,a);for(o=t.numForces||0;i<o;++i)t.force(uv+i,null);return t.numForces=c.length,t}function mv(t,e){var n,r;for(n in t)if(mt(r=t[n])&&e.modified(_(r)))return 1;return 0}function gv(t){var e,n;for(n in Dt(cv,t.force)||F("Unrecognized force: "+t.force),e=cv[t.force](),t)mt(e[n])&&vv(e[n],t[n],t);return e}function vv(t,e,n){t(mt(e)?t=>e(t,n):e)}hv.Definition={type:"Force",metadata:{modifies:!0},params:[{name:"static",type:"boolean",default:!1},{name:"restart",type:"boolean",default:!1},{name:"iterations",type:"number",default:300},{name:"alpha",type:"number",default:1},{name:"alphaMin",type:"number",default:.001},{name:"alphaTarget",type:"number",default:0},{name:"velocityDecay",type:"number",default:.4},{name:"forces",type:"param",array:!0,params:[{key:{force:"center"},params:[{name:"x",type:"number",default:0},{name:"y",type:"number",default:0}]},{key:{force:"collide"},params:[{name:"radius",type:"number",expr:!0},{name:"strength",type:"number",default:.7},{name:"iterations",type:"number",default:1}]},{key:{force:"nbody"},params:[{name:"strength",type:"number",default:-30,expr:!0},{name:"theta",type:"number",default:.9},{name:"distanceMin",type:"number",default:1},{name:"distanceMax",type:"number"}]},{key:{force:"link"},params:[{name:"links",type:"data"},{name:"id",type:"field"},{name:"distance",type:"number",default:30,expr:!0},{name:"strength",type:"number",expr:!0},{name:"iterations",type:"number",default:1}]},{key:{force:"x"},params:[{name:"strength",type:"number",default:.1},{name:"x",type:"field"}]},{key:{force:"y"},params:[{name:"strength",type:"number",default:.1},{name:"y",type:"field"}]}]},{name:"as",type:"string",array:!0,modify:!1,default:dv}]},Tt(hv,li,{transform(t,e){var n,r,i=this.value,o=e.changed(e.ADD_REM),a=t.modified(lv),s=t.iterations||300;if(i?(o&&(e.modifies("index"),i.nodes(e.source)),(a||e.changed(e.MOD))&&pv(i,t,0,e)):(this.value=i=function(t,e){const n=(0,sv.A)(t),r=n.stop,i=n.restart;let o=!1;return n.stopped=()=>o,n.restart=()=>(o=!1,i()),n.stop=()=>(o=!0,r()),pv(n,e,!0).on("end",(()=>o=!0))}(e.source,t),i.on("tick",(n=e.dataflow,r=this,()=>n.touch(r).run())),t.static||(o=!0,i.tick()),e.modifies("index")),a||o||t.modified(fv)||e.changed()&&t.restart)if(i.alpha(Math.max(i.alpha(),t.alpha||1)).alphaDecay(1-Math.pow(i.alphaMin(),1/s)),t.static)for(i.stop();--s>=0;)i.tick();else if(i.stopped()&&i.restart(),!o)return e.StopPropagation;return this.finish(t,e)},finish(t,e){const n=e.dataflow;for(let s,c=this._argops,u=0,l=c.length;u<l;++u)if(s=c[u],s.name===uv&&"link"===s.op._argval.force)for(var r,i=s.op._argops,o=0,a=i.length;o<a;++o)if("links"===i[o].name&&(r=i[o].op.source)){n.pulse(r,n.changeset().reflow());break}return e.reflow(t.modified()).modifies(dv)}});var yv=n(35201),bv=n(50905),Av=n(73705),xv=n(89339),_v=n(24191),wv=n(10509),kv=n(14937),Ev=n(67991),Fv=n(72224),Dv=n(24391),Cv=n(92234),Mv=n(95647),Sv=n(65242);function Tv(t,e,n){const r={};return t.each((t=>{const i=t.data;n(i)&&(r[e(i)]=t)})),t.lookup=r,t}function Nv(t){li.call(this,null,t)}Nv.Definition={type:"Nest",metadata:{treesource:!0,changes:!0},params:[{name:"keys",type:"field",array:!0},{name:"generate",type:"boolean"}]};const Ov=t=>t.values;function Bv(){const t=[],e={entries:t=>r(n(t,0),0),key:n=>(t.push(n),e)};function n(e,r){if(r>=t.length)return e;const i=e.length,o=t[r++],a={},s={};let c,u,l,f=-1;for(;++f<i;)c=o(u=e[f])+"",(l=a[c])?l.push(u):a[c]=[u];for(c in a)s[c]=n(a[c],r);return s}function r(e,n){if(++n>t.length)return e;const i=[];for(const t in e)i.push({key:t,values:r(e[t],n)});return i}return e}function Rv(t){li.call(this,null,t)}Tt(Nv,li,{transform(t,e){e.source||F("Nest transform requires an upstream data source.");var n=t.generate,r=t.modified(),i=e.clone(),o=this.value;return(!o||r||e.changed())&&(o&&o.each((t=>{t.children&&Sr(t.data)&&i.rem.push(t.data)})),this.value=o=(0,yv.Ay)({values:ht(t.keys).reduce(((t,e)=>(t.key(e),t)),Bv()).entries(i.source)},Ov),n&&o.each((t=>{t.children&&(t=Or(t.data),i.add.push(t),i.source.push(t))})),Tv(o,Tr,Tr)),i.source.root=o,i}});const zv=(t,e)=>t.parent===e.parent?1:2;Tt(Rv,li,{transform(t,e){e.source&&e.source.root||F(this.constructor.name+" transform requires a backing tree data source.");const n=this.layout(t.method),r=this.fields,i=e.source.root,o=t.as||r;t.field?i.sum(t.field):i.count(),t.sort&&i.sort(Pr(t.sort,(t=>t.data))),function(t,e,n){for(let r,i=0,o=e.length;i<o;++i)r=e[i],r in n&&t[r](n[r])}(n,this.params,t),n.separation&&n.separation(!1!==t.separation?zv:N);try{this.value=n(i)}catch(a){F(a)}return i.each((t=>function(t,e,n){const r=t.data,i=e.length-1;for(let o=0;o<i;++o)r[n[o]]=t[e[o]];r[n[i]]=t.children?t.children.length:0}(t,r,o))),e.reflow(t.modified()).modifies(o).modifies("leaf")}});const Pv=["x","y","r","depth","children"];function Lv(t){Rv.call(this,t)}Lv.Definition={type:"Pack",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"padding",type:"number",default:0},{name:"radius",type:"field",default:null},{name:"size",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:Pv.length,default:Pv}]},Tt(Lv,Rv,{layout:bv.A,params:["radius","size","padding"],fields:Pv});const Iv=["x0","y0","x1","y1","depth","children"];function jv(t){Rv.call(this,t)}function Uv(t){li.call(this,null,t)}jv.Definition={type:"Partition",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"padding",type:"number",default:0},{name:"round",type:"boolean",default:!1},{name:"size",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:Iv.length,default:Iv}]},Tt(jv,Rv,{layout:Av.A,params:["size","round","padding"],fields:Iv}),Uv.Definition={type:"Stratify",metadata:{treesource:!0},params:[{name:"key",type:"field",required:!0},{name:"parentKey",type:"field",required:!0}]},Tt(Uv,li,{transform(t,e){e.source||F("Stratify transform requires an upstream data source.");let n=this.value;const r=t.modified(),i=e.fork(e.ALL).materialize(e.SOURCE),o=!n||r||e.changed(e.ADD_REM)||e.modified(t.key.fields)||e.modified(t.parentKey.fields);return i.source=i.source.slice(),o&&(n=i.source.length?Tv((0,xv.A)().id(t.key).parentId(t.parentKey)(i.source),t.key,O):Tv((0,xv.A)()([{}]),t.key,t.key)),i.source.root=this.value=n,i}});const qv={tidy:_v.A,cluster:wv.A},Wv=["x","y","depth","children"];function Hv(t){Rv.call(this,t)}function Gv(t){li.call(this,[],t)}Hv.Definition={type:"Tree",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"tidy",values:["tidy","cluster"]},{name:"size",type:"number",array:!0,length:2},{name:"nodeSize",type:"number",array:!0,length:2},{name:"separation",type:"boolean",default:!0},{name:"as",type:"string",array:!0,length:Wv.length,default:Wv}]},Tt(Hv,Rv,{layout(t){const e=t||"tidy";if(Dt(qv,e))return qv[e]();F("Unrecognized Tree layout method: "+e)},params:["size","nodeSize"],fields:Wv}),Gv.Definition={type:"TreeLinks",metadata:{tree:!0,generates:!0,changes:!0},params:[]},Tt(Gv,li,{transform(t,e){const n=this.value,r=e.source&&e.source.root,i=e.fork(e.NO_SOURCE),o={};return r||F("TreeLinks transform requires a tree data source."),e.changed(e.ADD_REM)?(i.rem=n,e.visit(e.SOURCE,(t=>o[Tr(t)]=1)),r.each((t=>{const e=t.data,n=t.parent&&t.parent.data;n&&o[Tr(e)]&&o[Tr(n)]&&i.add.push(Or({source:n,target:e}))})),this.value=i.add):e.changed(e.MOD)&&(e.visit(e.MOD,(t=>o[Tr(t)]=1)),n.forEach((t=>{(o[Tr(t.source)]||o[Tr(t.target)])&&i.mod.push(t)}))),i}});const Yv={binary:kv.A,dice:Ev.A,slice:Fv.A,slicedice:Dv.A,squarify:Cv.Ay,resquarify:Mv.A},Vv=["x0","y0","x1","y1","depth","children"];function $v(t){Rv.call(this,t)}$v.Definition={type:"Treemap",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"squarify",values:["squarify","resquarify","binary","dice","slice","slicedice"]},{name:"padding",type:"number",default:0},{name:"paddingInner",type:"number",default:0},{name:"paddingOuter",type:"number",default:0},{name:"paddingTop",type:"number",default:0},{name:"paddingRight",type:"number",default:0},{name:"paddingBottom",type:"number",default:0},{name:"paddingLeft",type:"number",default:0},{name:"ratio",type:"number",default:1.618033988749895},{name:"round",type:"boolean",default:!1},{name:"size",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:Vv.length,default:Vv}]},Tt($v,Rv,{layout(){const t=(0,Sv.A)();return t.ratio=e=>{const n=t.tile();n.ratio&&t.tile(n.ratio(e))},t.method=e=>{Dt(Yv,e)?t.tile(Yv[e]):F("Unrecognized Treemap layout method: "+e)},t},params:["method","ratio","size","round","padding","paddingInner","paddingOuter","paddingTop","paddingRight","paddingBottom","paddingLeft"],fields:Vv});const Xv=4278190080;function Zv(t,e,n){return new Uint32Array(t.getImageData(0,0,e,n).data.buffer)}function Jv(t,e,n){if(!e.length)return;const r=e[0].mark.marktype;"group"===r?e.forEach((e=>{e.items.forEach((e=>Jv(t,e.items,n)))})):nd[r].draw(t,{items:n?e.map(Qv):e})}function Qv(t){const e=Rr(t,{});return e.stroke&&0!==e.strokeOpacity||e.fill&&0!==e.fillOpacity?(0,v.A)((0,v.A)({},e),{},{strokeOpacity:1,stroke:"#000",fillOpacity:0}):e}const Kv=31,ty=new Uint32Array(33),ey=new Uint32Array(33);ey[0]=0,ty[0]=~ey[0];for(let oX=1;oX<=32;++oX)ey[oX]=ey[oX-1]<<1|1,ty[oX]=~ey[oX];function ny(t,e,n){const r=Math.max(1,Math.sqrt(t*e/1e6)),i=~~((t+2*n+r)/r),o=~~((e+2*n+r)/r),a=t=>~~((t+n)/r);return a.invert=t=>t*r-n,a.bitmap=()=>function(t,e){const n=new Uint32Array(~~((t*e+32)/32));function r(t,e){n[t]|=e}function i(t,e){n[t]&=e}return{array:n,get:(e,r)=>{const i=r*t+e;return n[i>>>5]&1<<(i&Kv)},set:(e,n)=>{const i=n*t+e;r(i>>>5,1<<(i&Kv))},clear:(e,n)=>{const r=n*t+e;i(r>>>5,~(1<<(r&Kv)))},getRange:(e,r,i,o)=>{let a,s,c,u,l=o;for(;l>=r;--l)if(a=l*t+e,s=l*t+i,c=a>>>5,u=s>>>5,c===u){if(n[c]&ty[a&Kv]&ey[1+(s&Kv)])return!0}else{if(n[c]&ty[a&Kv])return!0;if(n[u]&ey[1+(s&Kv)])return!0;for(let t=c+1;t<u;++t)if(n[t])return!0}return!1},setRange:(e,n,i,o)=>{let a,s,c,u,l;for(;n<=o;++n)if(a=n*t+e,s=n*t+i,c=a>>>5,u=s>>>5,c===u)r(c,ty[a&Kv]&ey[1+(s&Kv)]);else for(r(c,ty[a&Kv]),r(u,ey[1+(s&Kv)]),l=c+1;l<u;++l)r(l,4294967295)},clearRange:(e,n,r,o)=>{let a,s,c,u,l;for(;n<=o;++n)if(a=n*t+e,s=n*t+r,c=a>>>5,u=s>>>5,c===u)i(c,ey[a&Kv]|ty[1+(s&Kv)]);else for(i(c,ey[a&Kv]),i(u,ty[1+(s&Kv)]),l=c+1;l<u;++l)i(l,0)},outOfBounds:(n,r,i,o)=>n<0||r<0||o>=e||i>=t}}(i,o),a.ratio=r,a.padding=n,a.width=t,a.height=e,a}function ry(t,e,n,r,i,o){let a=n/2;return t-a<0||t+a>i||e-(a=r/2)<0||e+a>o}function iy(t,e,n,r,i,o,a,s){const c=i*o/(2*r),u=t(e-c),l=t(e+c),f=t(n-(o/=2)),d=t(n+o);return a.outOfBounds(u,f,l,d)||a.getRange(u,f,l,d)||s&&s.getRange(u,f,l,d)}const oy=[-1,-1,1,1],ay=[-1,1,-1,1];const sy=["right","center","left"],cy=["bottom","middle","top"];function uy(t,e,n,r,i,o,a,s,c,u,l,f){return!(i.outOfBounds(t,n,e,r)||(f&&o||i).getRange(t,n,e,r))}const ly={"top-left":0,top:1,"top-right":2,left:4,middle:5,right:6,"bottom-left":8,bottom:9,"bottom-right":10},fy={naive:function(t,e,n,r){const i=t.width,o=t.height;return function(t){const e=t.datum.datum.items[r].items,n=e.length,a=t.datum.fontSize,s=zf.width(t.datum,t.datum.text);let c,u,l,f,d,h,p,m=0;for(let r=0;r<n;++r)c=e[r].x,l=e[r].y,u=void 0===e[r].x2?c:e[r].x2,f=void 0===e[r].y2?l:e[r].y2,d=(c+u)/2,h=(l+f)/2,p=Math.abs(u-c+f-l),p>=m&&(m=p,t.x=d,t.y=h);return d=s/2,h=a/2,c=t.x-d,u=t.x+d,l=t.y-h,f=t.y+h,t.align="center",c<0&&u<=i?t.align="left":0<=c&&i<u&&(t.align="right"),t.baseline="middle",l<0&&f<=o?t.baseline="top":0<=l&&o<f&&(t.baseline="bottom"),!0}},"reduced-search":function(t,e,n,r){const i=t.width,o=t.height,a=e[0],s=e[1];function c(e,n,r,c,u){const l=t.invert(e),f=t.invert(n);let d,h=r,p=o;if(!ry(l,f,c,u,i,o)&&!iy(t,l,f,u,c,h,a,s)&&!iy(t,l,f,u,c,u,a,null)){for(;p-h>=1;)d=(h+p)/2,iy(t,l,f,u,c,d,a,s)?p=d:h=d;if(h>r)return[l,f,h,!0]}}return function(e){const s=e.datum.datum.items[r].items,u=s.length,l=e.datum.fontSize,f=zf.width(e.datum,e.datum.text);let d,h,p,m,g,v,y,b,A,x,_,w,k,E,F,D,C,M=n?l:0,S=!1,T=!1,N=0;for(let r=0;r<u;++r){for(d=s[r].x,p=s[r].y,h=void 0===s[r].x2?d:s[r].x2,m=void 0===s[r].y2?p:s[r].y2,d>h&&(C=d,d=h,h=C),p>m&&(C=p,p=m,m=C),A=t(d),_=t(h),x=~~((A+_)/2),w=t(p),E=t(m),k=~~((w+E)/2),y=x;y>=A;--y)for(b=k;b>=w;--b)D=c(y,b,M,f,l),D&&([e.x,e.y,M,S]=D);for(y=x;y<=_;++y)for(b=k;b<=E;++b)D=c(y,b,M,f,l),D&&([e.x,e.y,M,S]=D);S||n||(F=Math.abs(h-d+m-p),g=(d+h)/2,v=(p+m)/2,F>=N&&!ry(g,v,f,l,i,o)&&!iy(t,g,v,l,f,l,a,null)&&(N=F,e.x=g,e.y=v,T=!0))}return!(!S&&!T)&&(g=f/2,v=l/2,a.setRange(t(e.x-g),t(e.y-v),t(e.x+g),t(e.y+v)),e.align="center",e.baseline="middle",!0)}},floodfill:function(t,e,n,r){const i=t.width,o=t.height,a=e[0],s=e[1],c=t.bitmap();return function(e){const u=e.datum.datum.items[r].items,l=u.length,f=e.datum.fontSize,d=zf.width(e.datum,e.datum.text),h=[];let p,m,g,v,y,b,A,x,_,w,k,E,F=n?f:0,D=!1,C=!1,M=0;for(let r=0;r<l;++r){for(p=u[r].x,g=u[r].y,m=void 0===u[r].x2?p:u[r].x2,v=void 0===u[r].y2?g:u[r].y2,h.push([t((p+m)/2),t((g+v)/2)]);h.length;)if([A,x]=h.pop(),!(a.get(A,x)||s.get(A,x)||c.get(A,x))){c.set(A,x);for(let t=0;t<4;++t)y=A+oy[t],b=x+ay[t],c.outOfBounds(y,b,y,b)||h.push([y,b]);if(y=t.invert(A),b=t.invert(x),_=F,w=o,!ry(y,b,d,f,i,o)&&!iy(t,y,b,f,d,_,a,s)&&!iy(t,y,b,f,d,f,a,null)){for(;w-_>=1;)k=(_+w)/2,iy(t,y,b,f,d,k,a,s)?w=k:_=k;_>F&&(e.x=y,e.y=b,F=_,D=!0)}}D||n||(E=Math.abs(m-p+v-g),y=(p+m)/2,b=(g+v)/2,E>=M&&!ry(y,b,d,f,i,o)&&!iy(t,y,b,f,d,f,a,null)&&(M=E,e.x=y,e.y=b,C=!0))}return!(!D&&!C)&&(y=d/2,b=f/2,a.setRange(t(e.x-y),t(e.y-b),t(e.x+y),t(e.y+b)),e.align="center",e.baseline="middle",!0)}}};function dy(t,e,n,r,i,o,a,s,c,u,l){if(!t.length)return t;const f=Math.max(r.length,i.length),d=function(t,e){const n=new Float64Array(e),r=t.length;for(let i=0;i<r;++i)n[i]=t[i]||0;for(let i=r;i<e;++i)n[i]=n[r-1];return n}(r,f),h=function(t,e){const n=new Int8Array(e),r=t.length;for(let i=0;i<r;++i)n[i]|=ly[t[i]];for(let i=r;i<e;++i)n[i]=n[r-1];return n}(i,f),p=(A=t[0].datum)&&A.mark&&A.mark.marktype,m="group"===p&&t[0].datum.items[c].marktype,g="area"===m,v=function(t,e,n,r){const i=t=>[t.x,t.x,t.x,t.y,t.y,t.y];return t?"line"===t||"area"===t?t=>i(t.datum):"line"===e?t=>{const e=t.datum.items[r].items;return i(e.length?e["start"===n?0:e.length-1]:{x:NaN,y:NaN})}:t=>{const e=t.datum.bounds;return[e.x1,(e.x1+e.x2)/2,e.x2,e.y1,(e.y1+e.y2)/2,e.y2]}:i}(p,m,s,c),y=null===u||u===1/0,b=g&&"naive"===l;var A;let x=-1,_=-1;const w=t.map((t=>{const e=y?zf.width(t,t.text):void 0;return x=Math.max(x,e),_=Math.max(_,t.fontSize),{datum:t,opacity:0,x:void 0,y:void 0,align:void 0,baseline:void 0,boundary:v(t),textWidth:e}}));u=null===u||u===1/0?Math.max(x,_)+Math.max(...r):u;const k=ny(e[0],e[1],u);let E;if(!b){n&&w.sort(((t,e)=>n(t.datum,e.datum)));let e=!1;for(let t=0;t<h.length&&!e;++t)e=5===h[t]||d[t]<0;const r=(p&&a||g)&&t.map((t=>t.datum));E=o.length||r?function(t,e,n,r,i){const o=t.width,a=t.height,s=r||i,c=ds(o,a).getContext("2d"),u=ds(o,a).getContext("2d"),l=s&&ds(o,a).getContext("2d");n.forEach((t=>Jv(c,t,!1))),Jv(u,e,!1),s&&Jv(l,e,!0);const f=Zv(c,o,a),d=Zv(u,o,a),h=s&&Zv(l,o,a),p=t.bitmap(),m=s&&t.bitmap();let g,v,y,b,A,x,_,w;for(v=0;v<a;++v)for(g=0;g<o;++g)A=v*o+g,x=f[A]&Xv,w=d[A]&Xv,_=s&&h[A]&Xv,(x||_||w)&&(y=t(g),b=t(v),i||!x&&!w||p.set(y,b),s&&(x||_)&&m.set(y,b));return[p,m]}(k,r||[],o,e,g):function(t,e){const n=t.bitmap();return(e||[]).forEach((e=>n.set(t(e.boundary[0]),t(e.boundary[3])))),[n,void 0]}(k,a&&w)}const F=g?fy[l](k,E,a,c):function(t,e,n,r){const i=t.width,o=t.height,a=e[0],s=e[1],c=r.length;return function(e){var u;const l=e.boundary,f=e.datum.fontSize;if(l[2]<0||l[5]<0||l[0]>i||l[3]>o)return!1;let d,h,p,m,g,v,y,b,A,x,_,w,k,E,F,D=null!==(u=e.textWidth)&&void 0!==u?u:0;for(let i=0;i<c;++i){if(d=(3&n[i])-1,h=(n[i]>>>2&3)-1,p=0===d&&0===h||r[i]<0,m=d&&h?Math.SQRT1_2:1,g=r[i]<0?-1:1,v=l[1+d]+r[i]*d*m,_=l[4+h]+g*f*h/2+r[i]*h*m,b=_-f/2,A=_+f/2,w=t(v),E=t(b),F=t(A),!D){if(!uy(w,w,E,F,a,s,0,0,0,0,0,p))continue;D=zf.width(e.datum,e.datum.text)}if(x=v+g*D*d/2,v=x-D/2,y=x+D/2,w=t(v),k=t(y),uy(w,k,E,F,a,s,0,0,0,0,0,p))return e.x=d?d*g<0?y:v:x,e.y=h?h*g<0?A:b:_,e.align=sy[d*g+1],e.baseline=cy[h*g+1],a.setRange(w,E,k,F),!0}return!1}}(k,E,h,d);return w.forEach((t=>t.opacity=+F(t))),w}const hy=["x","y","opacity","align","baseline"],py=["top-left","left","bottom-left","top","bottom","top-right","right","bottom-right"];function my(t){li.call(this,null,t)}function gy(t,e){var n,r,i,o,a,s,c=[],u=function(t){return t(o)};if(null==e)c.push(t);else for(n={},r=0,i=t.length;r<i;++r)o=t[r],(s=n[a=e.map(u)])||(n[a]=s=[],s.dims=a,c.push(s)),s.push(o);return c}function vy(t){li.call(this,null,t)}my.Definition={type:"Label",metadata:{modifies:!0},params:[{name:"size",type:"number",array:!0,length:2,required:!0},{name:"sort",type:"compare"},{name:"anchor",type:"string",array:!0,default:py},{name:"offset",type:"number",array:!0,default:[1]},{name:"padding",type:"number",default:0,null:!0},{name:"lineAnchor",type:"string",values:["start","end"],default:"end"},{name:"markIndex",type:"number",default:0},{name:"avoidBaseMark",type:"boolean",default:!0},{name:"avoidMarks",type:"data",array:!0},{name:"method",type:"string",default:"naive"},{name:"as",type:"string",array:!0,length:hy.length,default:hy}]},Tt(my,li,{transform(t,e){const n=t.modified();if(!(n||e.changed(e.ADD_REM)||function(n){const r=t[n];return mt(r)&&e.modified(r.fields)}("sort")))return;t.size&&2===t.size.length||F("Size parameter should be specified as a [width, height] array.");const r=t.as||hy;return dy(e.materialize(e.SOURCE).source||[],t.size,t.sort,ht(null==t.offset?1:t.offset),ht(t.anchor||py),t.avoidMarks||[],!1!==t.avoidBaseMark,t.lineAnchor||"end",t.markIndex||0,void 0===t.padding?0:t.padding,t.method||"naive").forEach((t=>{const e=t.datum;e[r[0]]=t.x,e[r[1]]=t.y,e[r[2]]=t.opacity,e[r[3]]=t.align,e[r[4]]=t.baseline})),e.reflow(n).modifies(r)}}),vy.Definition={type:"Loess",metadata:{generates:!0},params:[{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"groupby",type:"field",array:!0},{name:"bandwidth",type:"number",default:.3},{name:"as",type:"string",array:!0}]},Tt(vy,li,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){const r=gy(e.materialize(e.SOURCE).source,t.groupby),i=(t.groupby||[]).map(x),o=i.length,a=t.as||[x(t.x),x(t.y)],s=[];r.forEach((e=>{uo(e,t.x,t.y,t.bandwidth||.3).forEach((t=>{const n={};for(let r=0;r<o;++r)n[i[r]]=e.dims[r];n[a[0]]=t[0],n[a[1]]=t[1],s.push(Or(n))}))})),this.value&&(n.rem=this.value),this.value=n.add=n.source=s}return n}});const yy={constant:Xi,linear:to,log:eo,exp:no,pow:ro,quad:io,poly:oo};function by(t){li.call(this,null,t)}by.Definition={type:"Regression",metadata:{generates:!0},params:[{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"groupby",type:"field",array:!0},{name:"method",type:"string",default:"linear",values:Object.keys(yy)},{name:"order",type:"number",default:3},{name:"extent",type:"number",array:!0,length:2},{name:"params",type:"boolean",default:!1},{name:"as",type:"string",array:!0}]},Tt(by,li,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){const r=gy(e.materialize(e.SOURCE).source,t.groupby),i=(t.groupby||[]).map(x),o=t.method||"linear",a=null==t.order?3:t.order,s=((t,e)=>"poly"===t?e:"quad"===t?2:1)(o,a),c=t.as||[x(t.x),x(t.y)],u=yy[o],l=[];let f=t.extent;Dt(yy,o)||F("Invalid regression method: "+o),null!=f&&"log"===o&&f[0]<=0&&(e.dataflow.warn("Ignoring extent with values <= 0 for log regression."),f=null),r.forEach((n=>{if(n.length<=s)return void e.dataflow.warn("Skipping regression with more parameters than data points.");const r=u(n,t.x,t.y,a);if(t.params)return void l.push(Or({keys:n.dims,coef:r.coef,rSquared:r.rSquared}));const d=f||Et(n,t.x),h=t=>{const e={};for(let r=0;r<i.length;++r)e[i[r]]=n.dims[r];e[c[0]]=t[0],e[c[1]]=t[1],l.push(Or(e))};"linear"===o||"constant"===o?d.forEach((t=>h([t,r.predict(t)]))):po(r.predict,d,25,200).forEach(h)})),this.value&&(n.rem=this.value),this.value=n.add=n.source=l}return n}});var Ay=n(66824);function xy(t){li.call(this,null,t)}xy.Definition={type:"Voronoi",metadata:{modifies:!0},params:[{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"size",type:"number",array:!0,length:2},{name:"extent",type:"array",array:!0,length:2,default:[[-1e5,-1e5],[1e5,1e5]],content:{type:"number",array:!0,length:2}},{name:"as",type:"string",default:"path"}]};const _y=[-1e5,-1e5,1e5,1e5];function wy(t){const e=t[0][0],n=t[0][1];let r=t.length-1;for(;t[r][0]===e&&t[r][1]===n;--r);return"M"+t.slice(0,r+1).join("L")+"Z"}Tt(xy,li,{transform(t,e){const n=t.as||"path",r=e.source;if(!r||!r.length)return e;let i=t.size;i=i?[0,0,i[0],i[1]]:(i=t.extent)?[i[0][0],i[0][1],i[1][0],i[1][1]]:_y;const o=this.value=Ay.A.from(r,t.x,t.y).voronoi(i);for(let s=0,c=r.length;s<c;++s){const t=o.cellPolygon(s);r[s][n]=t&&(2!==(a=t).length||a[0][0]!==a[1][0]||a[0][1]!==a[1][1])?wy(t):null}var a;return e.reflow(t.modified()).modifies(n)}});var ky=Math.PI/180,Ey=64,Fy=2048;function Dy(){var t,e,n,r,i,o,a,s=[256,256],c=Ny,u=[],l=Math.random,f={};function d(t,e,n){for(var r,i,o,a=e.x,u=e.y,f=Math.hypot(s[0],s[1]),d=c(s),h=l()<.5?1:-1,p=-h;(r=d(p+=h))&&(i=~~r[0],o=~~r[1],!(Math.min(Math.abs(i),Math.abs(o))>=f));)if(e.x=a+i,e.y=u+o,!(e.x+e.x0<0||e.y+e.y0<0||e.x+e.x1>s[0]||e.y+e.y1>s[1])&&(!n||!My(e,t,s[0]))&&(!n||Ty(e,n))){for(var m,g=e.sprite,v=e.width>>5,y=s[0]>>5,b=e.x-(v<<4),A=127&b,x=32-A,_=e.y1-e.y0,w=(e.y+e.y0)*y+(b>>5),k=0;k<_;k++){m=0;for(var E=0;E<=v;E++)t[w+E]|=m<<x|(E<v?(m=g[k*v+E])>>>A:0);w+=y}return e.sprite=null,!0}return!1}return f.layout=function(){for(var c=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(Ey<<5)/e,t.height=Fy/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(ds()),f=function(t){var e=[],n=-1;for(;++n<t;)e[n]=0;return e}((s[0]>>5)*s[1]),h=null,p=u.length,m=-1,g=[],v=u.map((s=>({text:t(s),font:e(s),style:r(s),weight:i(s),rotate:o(s),size:~~(n(s)+1e-14),padding:a(s),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:!1,sprite:null,datum:s}))).sort(((t,e)=>e.size-t.size));++m<p;){var y=v[m];y.x=s[0]*(l()+.5)>>1,y.y=s[1]*(l()+.5)>>1,Cy(c,y,v,m),y.hasText&&d(f,y,h)&&(g.push(y),h?Sy(h,y):h=[{x:y.x+y.x0,y:y.y+y.y0},{x:y.x+y.x1,y:y.y+y.y1}],y.x-=s[0]>>1,y.y-=s[1]>>1)}return g},f.words=function(t){return arguments.length?(u=t,f):u},f.size=function(t){return arguments.length?(s=[+t[0],+t[1]],f):s},f.font=function(t){return arguments.length?(e=Oy(t),f):e},f.fontStyle=function(t){return arguments.length?(r=Oy(t),f):r},f.fontWeight=function(t){return arguments.length?(i=Oy(t),f):i},f.rotate=function(t){return arguments.length?(o=Oy(t),f):o},f.text=function(e){return arguments.length?(t=Oy(e),f):t},f.spiral=function(t){return arguments.length?(c=By[t]||t,f):c},f.fontSize=function(t){return arguments.length?(n=Oy(t),f):n},f.padding=function(t){return arguments.length?(a=Oy(t),f):a},f.random=function(t){return arguments.length?(l=t,f):l},f}function Cy(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,(Ey<<5)/o,Fy/o);var a,s,c,u,l,f=0,d=0,h=0,p=n.length;for(--r;++r<p;){if(e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font,a=i.measureText(e.text+"m").width*o,c=e.size<<1,e.rotate){var m=Math.sin(e.rotate*ky),g=Math.cos(e.rotate*ky),v=a*g,y=a*m,b=c*g,A=c*m;a=Math.max(Math.abs(v+A),Math.abs(v-A))+31>>5<<5,c=~~Math.max(Math.abs(y+b),Math.abs(y-b))}else a=a+31>>5<<5;if(c>h&&(h=c),f+a>=Ey<<5&&(f=0,d+=h,h=0),d+c>=Fy)break;i.translate((f+(a>>1))/o,(d+(c>>1))/o),e.rotate&&i.rotate(e.rotate*ky),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=a,e.height=c,e.xoff=f,e.yoff=d,e.x1=a>>1,e.y1=c>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,f+=a}for(var x=i.getImageData(0,0,(Ey<<5)/o,Fy/o).data,_=[];--r>=0;)if((e=n[r]).hasText){for(s=(a=e.width)>>5,c=e.y1-e.y0,u=0;u<c*s;u++)_[u]=0;if(null==(f=e.xoff))return;d=e.yoff;var w=0,k=-1;for(l=0;l<c;l++){for(u=0;u<a;u++){var E=s*l+(u>>5),F=x[(d+l)*(Ey<<5)+(f+u)<<2]?1<<31-u%32:0;_[E]|=F,w|=F}w?k=l:(e.y0++,c--,l--,d++)}e.y1=e.y0+k,e.sprite=_.slice(0,(e.y1-e.y0)*s)}}}function My(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,c=32-s,u=t.y1-t.y0,l=(t.y+t.y0)*n+(a>>5),f=0;f<u;f++){r=0;for(var d=0;d<=o;d++)if((r<<c|(d<o?(r=i[f*o+d])>>>s:0))&e[l+d])return!0;l+=n}return!1}function Sy(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function Ty(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function Ny(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function Oy(t){return"function"===typeof t?t:function(){return t}}var By={archimedean:Ny,rectangular:function(t){var e=4*t[0]/t[1],n=0,r=0;return function(t){var i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}};const Ry=["x","y","font","fontSize","fontStyle","fontWeight","angle"],zy=["text","font","rotate","fontSize","fontStyle","fontWeight"];function Py(t){li.call(this,Dy(),t)}Py.Definition={type:"Wordcloud",metadata:{modifies:!0},params:[{name:"size",type:"number",array:!0,length:2},{name:"font",type:"string",expr:!0,default:"sans-serif"},{name:"fontStyle",type:"string",expr:!0,default:"normal"},{name:"fontWeight",type:"string",expr:!0,default:"normal"},{name:"fontSize",type:"number",expr:!0,default:14},{name:"fontSizeRange",type:"number",array:"nullable",default:[10,50]},{name:"rotate",type:"number",expr:!0,default:0},{name:"text",type:"field"},{name:"spiral",type:"string",values:["archimedean","rectangular"]},{name:"padding",type:"number",expr:!0},{name:"as",type:"string",array:!0,length:7,default:Ry}]},Tt(Py,li,{transform(t,e){!t.size||t.size[0]&&t.size[1]||F("Wordcloud size dimensions must be non-zero.");const n=t.modified();if(!(n||e.changed(e.ADD_REM)||zy.some((function(n){const r=t[n];return mt(r)&&e.modified(r.fields)}))))return;const r=e.materialize(e.SOURCE).source,i=this.value,o=t.as||Ry;let a,s=t.fontSize||14;if(mt(s)?a=t.fontSizeRange:s=_t(s),a){const t=s,e=gc("sqrt")().domain(Et(r,t)).range(a);s=n=>e(t(n))}r.forEach((t=>{t[o[0]]=NaN,t[o[1]]=NaN,t[o[3]]=0}));const c=i.words(r).text(t.text).size(t.size||[500,500]).padding(t.padding||1).spiral(t.spiral||"archimedean").rotate(t.rotate||0).font(t.font||"sans-serif").fontStyle(t.fontStyle||"normal").fontWeight(t.fontWeight||"normal").fontSize(s).random(wi).layout(),u=i.size(),l=u[0]>>1,f=u[1]>>1,d=c.length;for(let h,p,m=0;m<d;++m)h=c[m],p=h.datum,p[o[0]]=h.x+l,p[o[1]]=h.y+f,p[o[2]]=h.font,p[o[3]]=h.size,p[o[4]]=h.style,p[o[5]]=h.weight,p[o[6]]=h.rotate;return e.reflow(n).modifies(o)}});var Ly=n(21199);const Iy=t=>new Uint8Array(t),jy=t=>new Uint16Array(t),Uy=t=>new Uint32Array(t);function qy(t,e,n){const r=(e<257?Iy:e<65537?jy:Uy)(t);return n&&r.set(n),r}function Wy(t,e,n){const r=1<<e;return{one:r,zero:~r,range:n.slice(),bisect:t.bisect,index:t.index,size:t.size,onAdd(t,e){const n=this,i=n.bisect(n.range,t.value),o=t.index,a=i[0],s=i[1],c=o.length;let u;for(u=0;u<a;++u)e[o[u]]|=r;for(u=s;u<c;++u)e[o[u]]|=r;return n}}}function Hy(){let t=Uy(0),e=[],n=0;return{insert:function(r,i,o){if(!i.length)return[];const a=n,s=i.length,c=Uy(s);let u,l,f,d=Array(s);for(f=0;f<s;++f)d[f]=r(i[f]),c[f]=f;if(d=function(t,e){return t.sort.call(e,((e,n)=>{const r=t[e],i=t[n];return r<i?-1:r>i?1:0})),(0,Ly.A)(t,e)}(d,c),a)u=e,l=t,e=Array(a+s),t=Uy(a+s),function(t,e,n,r,i,o,a,s,c){let u,l=0,f=0;for(u=0;l<r&&f<a;++u)e[l]<i[f]?(s[u]=e[l],c[u]=n[l++]):(s[u]=i[f],c[u]=o[f++]+t);for(;l<r;++l,++u)s[u]=e[l],c[u]=n[l];for(;f<a;++f,++u)s[u]=i[f],c[u]=o[f]+t}(o,u,l,a,d,c,s,e,t);else{if(o>0)for(f=0;f<s;++f)c[f]+=o;e=d,t=c}return n=a+s,{index:c,value:d}},remove:function(r,i){const o=n;let a,s,c;for(s=0;!i[t[s]]&&s<o;++s);for(c=s;s<o;++s)i[a=t[s]]||(t[c]=a,e[c]=e[s],++c);n=o-r},bisect:function(t,r){let i;return r?i=r.length:(r=e,i=n),[(0,ps.ah)(r,t[0],0,i),(0,ps.Jj)(r,t[1],0,i)]},reindex:function(e){for(let r=0,i=n;r<i;++r)t[r]=e[t[r]]},index:()=>t,size:()=>n}}function Gy(t){li.call(this,function(){let t=8,e=[],n=Uy(0),r=qy(0,t),i=qy(0,t);return{data:()=>e,seen:()=>n=function(t,e,n){return t.length>=e?t:((n=n||new t.constructor(e)).set(t),n)}(n,e.length),add(t){for(let n,r=0,i=e.length,o=t.length;r<o;++r)n=t[r],n._index=i++,e.push(n)},remove(t,n){const o=e.length,a=Array(o-t),s=e;let c,u,l;for(u=0;!n[u]&&u<o;++u)a[u]=e[u],s[u]=u;for(l=u;u<o;++u)c=e[u],n[u]?s[u]=-1:(s[u]=l,r[l]=r[u],i[l]=i[u],a[l]=c,c._index=l++),r[u]=0;return e=a,s},size:()=>e.length,curr:()=>r,prev:()=>i,reset:t=>i[t]=r[t],all:()=>t<257?255:t<65537?65535:4294967295,set(t,e){r[t]|=e},clear(t,e){r[t]&=~e},resize(e,n){(e>r.length||n>t)&&(t=Math.max(n,t),r=qy(e,t,r),i=qy(e,t))}}}(),t),this._indices=null,this._dims=null}function Yy(t){li.call(this,null,t)}Gy.Definition={type:"CrossFilter",metadata:{},params:[{name:"fields",type:"field",array:!0,required:!0},{name:"query",type:"array",array:!0,required:!0,content:{type:"number",array:!0,length:2}}]},Tt(Gy,li,{transform(t,e){return this._dims?t.modified("fields")||t.fields.some((t=>e.modified(t.fields)))?this.reinit(t,e):this.eval(t,e):this.init(t,e)},init(t,e){const n=t.fields,r=t.query,i=this._indices={},o=this._dims=[],a=r.length;let s,c,u=0;for(;u<a;++u)s=n[u].fname,c=i[s]||(i[s]=Hy()),o.push(Wy(c,u,r[u]));return this.eval(t,e)},reinit(t,e){const n=e.materialize().fork(),r=t.fields,i=t.query,o=this._indices,a=this._dims,s=this.value,c=s.curr(),u=s.prev(),l=s.all(),f=n.rem=n.add,d=n.mod,h=i.length,p={};let m,g,v,y,b,A,x,_,w;if(u.set(c),e.rem.length&&(b=this.remove(t,e,n)),e.add.length&&s.add(e.add),e.mod.length)for(A={},y=e.mod,x=0,_=y.length;x<_;++x)A[y[x]._index]=1;for(x=0;x<h;++x)w=r[x],(!a[x]||t.modified("fields",x)||e.modified(w.fields))&&(v=w.fname,(m=p[v])||(o[v]=g=Hy(),p[v]=m=g.insert(w,e.source,0)),a[x]=Wy(g,x,i[x]).onAdd(m,c));for(x=0,_=s.data().length;x<_;++x)b[x]||(u[x]!==c[x]?f.push(x):A[x]&&c[x]!==l&&d.push(x));return s.mask=(1<<h)-1,n},eval(t,e){const n=e.materialize().fork(),r=this._dims.length;let i=0;return e.rem.length&&(this.remove(t,e,n),i|=(1<<r)-1),t.modified("query")&&!t.modified("fields")&&(i|=this.update(t,e,n)),e.add.length&&(this.insert(t,e,n),i|=(1<<r)-1),e.mod.length&&(this.modify(e,n),i|=(1<<r)-1),this.value.mask=i,n},insert(t,e,n){const r=e.add,i=this.value,o=this._dims,a=this._indices,s=t.fields,c={},u=n.add,l=i.size()+r.length,f=o.length;let d,h,p,m=i.size();i.resize(l,f),i.add(r);const g=i.curr(),v=i.prev(),y=i.all();for(d=0;d<f;++d)h=s[d].fname,p=c[h]||(c[h]=a[h].insert(s[d],r,m)),o[d].onAdd(p,g);for(;m<l;++m)v[m]=y,g[m]!==y&&u.push(m)},modify(t,e){const n=e.mod,r=this.value,i=r.curr(),o=r.all(),a=t.mod;let s,c,u;for(s=0,c=a.length;s<c;++s)u=a[s]._index,i[u]!==o&&n.push(u)},remove(t,e,n){const r=this._indices,i=this.value,o=i.curr(),a=i.prev(),s=i.all(),c={},u=n.rem,l=e.rem;let f,d,h,p;for(f=0,d=l.length;f<d;++f)h=l[f]._index,c[h]=1,a[h]=p=o[h],o[h]=s,p!==s&&u.push(h);for(h in r)r[h].remove(d,c);return this.reindex(e,d,c),c},reindex(t,e,n){const r=this._indices,i=this.value;t.runAfter((()=>{const t=i.remove(e,n);for(const e in r)r[e].reindex(t)}))},update(t,e,n){const r=this._dims,i=t.query,o=e.stamp,a=r.length;let s,c,u=0;for(n.filters=0,c=0;c<a;++c)t.modified("query",c)&&(s=c,++u);if(1===u)u=r[s].one,this.incrementOne(r[s],i[s],n.add,n.rem);else for(c=0,u=0;c<a;++c)t.modified("query",c)&&(u|=r[c].one,this.incrementAll(r[c],i[c],o,n.add),n.rem=n.add);return u},incrementAll(t,e,n,r){const i=this.value,o=i.seen(),a=i.curr(),s=i.prev(),c=t.index(),u=t.bisect(t.range),l=t.bisect(e),f=l[0],d=l[1],h=u[0],p=u[1],m=t.one;let g,v,y;if(f<h)for(g=f,v=Math.min(h,d);g<v;++g)y=c[g],o[y]!==n&&(s[y]=a[y],o[y]=n,r.push(y)),a[y]^=m;else if(f>h)for(g=h,v=Math.min(f,p);g<v;++g)y=c[g],o[y]!==n&&(s[y]=a[y],o[y]=n,r.push(y)),a[y]^=m;if(d>p)for(g=Math.max(f,p),v=d;g<v;++g)y=c[g],o[y]!==n&&(s[y]=a[y],o[y]=n,r.push(y)),a[y]^=m;else if(d<p)for(g=Math.max(h,d),v=p;g<v;++g)y=c[g],o[y]!==n&&(s[y]=a[y],o[y]=n,r.push(y)),a[y]^=m;t.range=e.slice()},incrementOne(t,e,n,r){const i=this.value.curr(),o=t.index(),a=t.bisect(t.range),s=t.bisect(e),c=s[0],u=s[1],l=a[0],f=a[1],d=t.one;let h,p,m;if(c<l)for(h=c,p=Math.min(l,u);h<p;++h)m=o[h],i[m]^=d,n.push(m);else if(c>l)for(h=l,p=Math.min(c,f);h<p;++h)m=o[h],i[m]^=d,r.push(m);if(u>f)for(h=Math.max(c,f),p=u;h<p;++h)m=o[h],i[m]^=d,n.push(m);else if(u<f)for(h=Math.max(l,u),p=f;h<p;++h)m=o[h],i[m]^=d,r.push(m);t.range=e.slice()}}),Yy.Definition={type:"ResolveFilter",metadata:{},params:[{name:"ignore",type:"number",required:!0,description:"A bit mask indicating which filters to ignore."},{name:"filter",type:"object",required:!0,description:"Per-tuple filter bitmaps from a CrossFilter transform."}]},Tt(Yy,li,{transform(t,e){const n=~(t.ignore||0),r=t.filter,i=r.mask;if(0===(i&n))return e.StopPropagation;const o=e.fork(e.ALL),a=r.data(),s=r.curr(),c=r.prev(),u=t=>s[t]&n?null:a[t];return o.filter(o.MOD,u),i&i-1?(o.filter(o.ADD,(t=>{const e=s[t]&n;return!e&&e^c[t]&n?a[t]:null})),o.filter(o.REM,(t=>{const e=s[t]&n;return e&&!(0^c[t]&n)?a[t]:null}))):(o.filter(o.ADD,u),o.filter(o.REM,(t=>(s[t]&n)===i?a[t]:null))),o.filter(o.SOURCE,(t=>u(t._index)))}});const Vy="Literal",$y="Property",Xy="ArrayExpression",Zy="BinaryExpression",Jy="CallExpression",Qy="ConditionalExpression",Ky="LogicalExpression",tb="MemberExpression",eb="ObjectExpression",nb="UnaryExpression";function rb(t){this.type=t}var ib,ob,ab,sb,cb;rb.prototype.visit=function(t){let e,n,r;if(t(this))return 1;for(e=function(t){switch(t.type){case Xy:return t.elements;case Zy:case Ky:return[t.left,t.right];case Jy:return[t.callee].concat(t.arguments);case Qy:return[t.test,t.consequent,t.alternate];case tb:return[t.object,t.property];case eb:return t.properties;case $y:return[t.key,t.value];case nb:return[t.argument];default:return[]}}(this),n=0,r=e.length;n<r;++n)if(e[n].visit(t))return 1};var ub=1,lb=2,fb=3,db=4,hb=5,pb=6,mb=7,gb=8;(ib={})[ub]="Boolean",ib[lb]="<end>",ib[fb]="Identifier",ib[db]="Keyword",ib[hb]="Null",ib[pb]="Numeric",ib[mb]="Punctuator",ib[gb]="String",ib[9]="RegularExpression";var vb="ArrayExpression",yb="BinaryExpression",bb="CallExpression",Ab="ConditionalExpression",xb="Identifier",_b="Literal",wb="LogicalExpression",kb="MemberExpression",Eb="ObjectExpression",Fb="Property",Db="UnaryExpression",Cb="Unexpected token %0",Mb="Unexpected number",Sb="Unexpected string",Tb="Unexpected identifier",Nb="Unexpected reserved word",Ob="Unexpected end of input",Bb="Invalid regular expression",Rb="Invalid regular expression: missing /",zb="Octal literals are not allowed in strict mode.",Pb="Duplicate data property in object literal not allowed in strict mode",Lb="ILLEGAL",Ib="Disabled.",jb=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),Ub=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function qb(t,e){if(!t)throw new Error("ASSERT: "+e)}function Wb(t){return t>=48&&t<=57}function Hb(t){return"0123456789abcdefABCDEF".includes(t)}function Gb(t){return"01234567".includes(t)}function Yb(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t)}function Vb(t){return 10===t||13===t||8232===t||8233===t}function $b(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||92===t||t>=128&&jb.test(String.fromCharCode(t))}function Xb(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||92===t||t>=128&&Ub.test(String.fromCharCode(t))}const Zb={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function Jb(){for(;ab<sb;){const t=ob.charCodeAt(ab);if(!Yb(t)&&!Vb(t))break;++ab}}function Qb(t){var e,n,r,i=0;for(n="u"===t?4:2,e=0;e<n;++e)ab<sb&&Hb(ob[ab])?(r=ob[ab++],i=16*i+"0123456789abcdef".indexOf(r.toLowerCase())):pA({},Cb,Lb);return String.fromCharCode(i)}function Kb(){var t,e,n,r;for(e=0,"}"===(t=ob[ab])&&pA({},Cb,Lb);ab<sb&&Hb(t=ob[ab++]);)e=16*e+"0123456789abcdef".indexOf(t.toLowerCase());return(e>1114111||"}"!==t)&&pA({},Cb,Lb),e<=65535?String.fromCharCode(e):(n=55296+(e-65536>>10),r=56320+(e-65536&1023),String.fromCharCode(n,r))}function tA(){var t,e;for(t=ob.charCodeAt(ab++),e=String.fromCharCode(t),92===t&&(117!==ob.charCodeAt(ab)&&pA({},Cb,Lb),++ab,(t=Qb("u"))&&"\\"!==t&&$b(t.charCodeAt(0))||pA({},Cb,Lb),e=t);ab<sb&&Xb(t=ob.charCodeAt(ab));)++ab,e+=String.fromCharCode(t),92===t&&(e=e.substr(0,e.length-1),117!==ob.charCodeAt(ab)&&pA({},Cb,Lb),++ab,(t=Qb("u"))&&"\\"!==t&&Xb(t.charCodeAt(0))||pA({},Cb,Lb),e+=t);return e}function eA(){var t,e;return t=ab,e=92===ob.charCodeAt(ab)?tA():function(){var t,e;for(t=ab++;ab<sb;){if(92===(e=ob.charCodeAt(ab)))return ab=t,tA();if(!Xb(e))break;++ab}return ob.slice(t,ab)}(),{type:1===e.length?fb:Zb.hasOwnProperty(e)?db:"null"===e?hb:"true"===e||"false"===e?ub:fb,value:e,start:t,end:ab}}function nA(){var t,e,n,r,i=ab,o=ob.charCodeAt(ab),a=ob[ab];switch(o){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++ab,{type:mb,value:String.fromCharCode(o),start:i,end:ab};default:if(61===(t=ob.charCodeAt(ab+1)))switch(o){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return ab+=2,{type:mb,value:String.fromCharCode(o)+String.fromCharCode(t),start:i,end:ab};case 33:case 61:return ab+=2,61===ob.charCodeAt(ab)&&++ab,{type:mb,value:ob.slice(i,ab),start:i,end:ab}}}return">>>="===(r=ob.substr(ab,4))?{type:mb,value:r,start:i,end:ab+=4}:">>>"===(n=r.substr(0,3))||"<<="===n||">>="===n?{type:mb,value:n,start:i,end:ab+=3}:a===(e=n.substr(0,2))[1]&&"+-<>&|".includes(a)||"=>"===e?{type:mb,value:e,start:i,end:ab+=2}:("//"===e&&pA({},Cb,Lb),"<>=!+-*%&|^/".includes(a)?(++ab,{type:mb,value:a,start:i,end:ab}):void pA({},Cb,Lb))}function rA(){var t,e,n;if(qb(Wb((n=ob[ab]).charCodeAt(0))||"."===n,"Numeric literal must start with a decimal digit or a decimal point"),e=ab,t="","."!==n){if(t=ob[ab++],n=ob[ab],"0"===t){if("x"===n||"X"===n)return++ab,function(t){let e="";for(;ab<sb&&Hb(ob[ab]);)e+=ob[ab++];return 0===e.length&&pA({},Cb,Lb),$b(ob.charCodeAt(ab))&&pA({},Cb,Lb),{type:pb,value:parseInt("0x"+e,16),start:t,end:ab}}(e);if(Gb(n))return function(t){let e="0"+ob[ab++];for(;ab<sb&&Gb(ob[ab]);)e+=ob[ab++];return($b(ob.charCodeAt(ab))||Wb(ob.charCodeAt(ab)))&&pA({},Cb,Lb),{type:pb,value:parseInt(e,8),octal:!0,start:t,end:ab}}(e);n&&Wb(n.charCodeAt(0))&&pA({},Cb,Lb)}for(;Wb(ob.charCodeAt(ab));)t+=ob[ab++];n=ob[ab]}if("."===n){for(t+=ob[ab++];Wb(ob.charCodeAt(ab));)t+=ob[ab++];n=ob[ab]}if("e"===n||"E"===n)if(t+=ob[ab++],"+"!==(n=ob[ab])&&"-"!==n||(t+=ob[ab++]),Wb(ob.charCodeAt(ab)))for(;Wb(ob.charCodeAt(ab));)t+=ob[ab++];else pA({},Cb,Lb);return $b(ob.charCodeAt(ab))&&pA({},Cb,Lb),{type:pb,value:parseFloat(t),start:e,end:ab}}function iA(){var t,e,n,r;return cb=null,Jb(),t=ab,e=function(){var t,e,n,r;for(qb("/"===(t=ob[ab]),"Regular expression literal must start with a slash"),e=ob[ab++],n=!1,r=!1;ab<sb;)if(e+=t=ob[ab++],"\\"===t)Vb((t=ob[ab++]).charCodeAt(0))&&pA({},Rb),e+=t;else if(Vb(t.charCodeAt(0)))pA({},Rb);else if(n)"]"===t&&(n=!1);else{if("/"===t){r=!0;break}"["===t&&(n=!0)}return r||pA({},Rb),{value:e.substr(1,e.length-2),literal:e}}(),n=function(){var t,e,n;for(e="",n="";ab<sb&&Xb((t=ob[ab]).charCodeAt(0));)++ab,"\\"===t&&ab<sb?pA({},Cb,Lb):(n+=t,e+=t);return n.search(/[^gimuy]/g)>=0&&pA({},Bb,n),{value:n,literal:e}}(),r=function(t,e){let n=t;e.includes("u")&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}/g,((t,e)=>{if(parseInt(e,16)<=1114111)return"x";pA({},Bb)})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(n)}catch(r){pA({},Bb)}try{return new RegExp(t,e)}catch(i){return null}}(e.value,n.value),{literal:e.literal+n.literal,value:r,regex:{pattern:e.value,flags:n.value},start:t,end:ab}}function oA(){if(Jb(),ab>=sb)return{type:lb,start:ab,end:ab};const t=ob.charCodeAt(ab);return $b(t)?eA():40===t||41===t||59===t?nA():39===t||34===t?function(){var t,e,n,r,i="",o=!1;for(qb("'"===(t=ob[ab])||'"'===t,"String literal must starts with a quote"),e=ab,++ab;ab<sb;){if((n=ob[ab++])===t){t="";break}if("\\"===n)if((n=ob[ab++])&&Vb(n.charCodeAt(0)))"\r"===n&&"\n"===ob[ab]&&++ab;else switch(n){case"u":case"x":"{"===ob[ab]?(++ab,i+=Kb()):i+=Qb(n);break;case"n":i+="\n";break;case"r":i+="\r";break;case"t":i+="\t";break;case"b":i+="\b";break;case"f":i+="\f";break;case"v":i+="\v";break;default:Gb(n)?(0!==(r="01234567".indexOf(n))&&(o=!0),ab<sb&&Gb(ob[ab])&&(o=!0,r=8*r+"01234567".indexOf(ob[ab++]),"0123".includes(n)&&ab<sb&&Gb(ob[ab])&&(r=8*r+"01234567".indexOf(ob[ab++]))),i+=String.fromCharCode(r)):i+=n}else{if(Vb(n.charCodeAt(0)))break;i+=n}}return""!==t&&pA({},Cb,Lb),{type:gb,value:i,octal:o,start:e,end:ab}}():46===t?Wb(ob.charCodeAt(ab+1))?rA():nA():Wb(t)?rA():nA()}function aA(){const t=cb;return ab=t.end,cb=oA(),ab=t.end,t}function sA(){const t=ab;cb=oA(),ab=t}function cA(t,e,n){const r=new rb("||"===t||"&&"===t?wb:yb);return r.operator=t,r.left=e,r.right=n,r}function uA(t,e){const n=new rb(bb);return n.callee=t,n.arguments=e,n}function lA(t){const e=new rb(xb);return e.name=t,e}function fA(t){const e=new rb(_b);return e.value=t.value,e.raw=ob.slice(t.start,t.end),t.regex&&("//"===e.raw&&(e.raw="/(?:)/"),e.regex=t.regex),e}function dA(t,e,n){const r=new rb(kb);return r.computed="["===t,r.object=e,r.property=n,r.computed||(n.member=!0),r}function hA(t,e,n){const r=new rb(Fb);return r.key=e,r.value=n,r.kind=t,r}function pA(t,e){var n,r=Array.prototype.slice.call(arguments,2),i=e.replace(/%(\d)/g,((t,e)=>(qb(e<r.length,"Message reference must be in range"),r[e])));throw(n=new Error(i)).index=ab,n.description=i,n}function mA(t){t.type===lb&&pA(t,Ob),t.type===pb&&pA(t,Mb),t.type===gb&&pA(t,Sb),t.type===fb&&pA(t,Tb),t.type===db&&pA(t,Nb),pA(t,Cb,t.value)}function gA(t){const e=aA();e.type===mb&&e.value===t||mA(e)}function vA(t){return cb.type===mb&&cb.value===t}function yA(t){return cb.type===db&&cb.value===t}function bA(){const t=[];for(ab=cb.start,gA("[");!vA("]");)vA(",")?(aA(),t.push(null)):(t.push(TA()),vA("]")||gA(","));return aA(),function(t){const e=new rb(vb);return e.elements=t,e}(t)}function AA(){ab=cb.start;const t=aA();return t.type===gb||t.type===pb?(t.octal&&pA(t,zb),fA(t)):lA(t.value)}function xA(){var t,e,n;return ab=cb.start,(t=cb).type===fb?(n=AA(),gA(":"),hA("init",n,TA())):t.type!==lb&&t.type!==mb?(e=AA(),gA(":"),hA("init",e,TA())):void mA(t)}function _A(){var t,e,n=[],r={},i=String;for(ab=cb.start,gA("{");!vA("}");)e="$"+((t=xA()).key.type===xb?t.key.name:i(t.key.value)),Object.prototype.hasOwnProperty.call(r,e)?pA({},Pb):r[e]=!0,n.push(t),vA("}")||gA(",");return gA("}"),function(t){const e=new rb(Eb);return e.properties=t,e}(n)}const wA={if:1};function kA(){var t,e,n;if(vA("("))return function(){gA("(");const t=NA();return gA(")"),t}();if(vA("["))return bA();if(vA("{"))return _A();if(t=cb.type,ab=cb.start,t===fb||wA[cb.value])n=lA(aA().value);else if(t===gb||t===pb)cb.octal&&pA(cb,zb),n=fA(aA());else{if(t===db)throw new Error(Ib);t===ub?((e=aA()).value="true"===e.value,n=fA(e)):t===hb?((e=aA()).value=null,n=fA(e)):vA("/")||vA("/=")?(n=fA(iA()),sA()):mA(aA())}return n}function EA(){const t=[];if(gA("("),!vA(")"))for(;ab<sb&&(t.push(TA()),!vA(")"));)gA(",");return gA(")"),t}function FA(){ab=cb.start;const t=aA();return function(t){return t.type===fb||t.type===db||t.type===ub||t.type===hb}(t)||mA(t),lA(t.value)}function DA(){gA("[");const t=NA();return gA("]"),t}function CA(){const t=function(){var t;for(t=kA();;)if(vA("."))gA("."),t=dA(".",t,FA());else if(vA("("))t=uA(t,EA());else{if(!vA("["))break;t=dA("[",t,DA())}return t}();if(cb.type===mb&&(vA("++")||vA("--")))throw new Error(Ib);return t}function MA(){var t,e;if(cb.type!==mb&&cb.type!==db)e=CA();else{if(vA("++")||vA("--"))throw new Error(Ib);if(vA("+")||vA("-")||vA("~")||vA("!"))t=aA(),e=MA(),e=function(t,e){const n=new rb(Db);return n.operator=t,n.argument=e,n.prefix=!0,n}(t.value,e);else{if(yA("delete")||yA("void")||yA("typeof"))throw new Error(Ib);e=CA()}}return e}function SA(t){let e=0;if(t.type!==mb&&t.type!==db)return 0;switch(t.value){case"||":e=1;break;case"&&":e=2;break;case"|":e=3;break;case"^":e=4;break;case"&":e=5;break;case"==":case"!=":case"===":case"!==":e=6;break;case"<":case">":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11}return e}function TA(){var t,e;return t=function(){var t,e,n,r,i,o,a,s,c,u;if(t=cb,c=MA(),0===(i=SA(r=cb)))return c;for(r.prec=i,aA(),e=[t,cb],o=[c,r,a=MA()];(i=SA(cb))>0;){for(;o.length>2&&i<=o[o.length-2].prec;)a=o.pop(),s=o.pop().value,c=o.pop(),e.pop(),n=cA(s,c,a),o.push(n);(r=aA()).prec=i,o.push(r),e.push(cb),n=MA(),o.push(n)}for(n=o[u=o.length-1],e.pop();u>1;)e.pop(),n=cA(o[u-1].value,o[u-2],n),u-=2;return n}(),vA("?")&&(aA(),e=TA(),gA(":"),t=function(t,e,n){const r=new rb(Ab);return r.test=t,r.consequent=e,r.alternate=n,r}(t,e,TA())),t}function NA(){const t=TA();if(vA(","))throw new Error(Ib);return t}function OA(t){ab=0,sb=(ob=t).length,cb=null,sA();const e=NA();if(cb.type!==lb)throw new Error("Unexpect token after expression.");return e}var BA={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function RA(t){function e(e,n,r){return i=>function(e,n,r,i){let o=t(n[0]);return r&&(o=r+"("+o+")",0===r.lastIndexOf("new ",0)&&(o="("+o+")")),o+"."+e+(i<0?"":0===i?"()":"("+n.slice(1).map(t).join(",")+")")}(e,i,n,r)}const n="new Date",r="String",i="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",hypot:"Math.hypot",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(e){e.length<3&&F("Missing arguments to clamp function."),e.length>3&&F("Too many arguments to clamp function.");const n=e.map(t);return"Math.max("+n[1]+", Math.min("+n[2]+","+n[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:n,date:e("getDate",n,0),day:e("getDay",n,0),year:e("getFullYear",n,0),month:e("getMonth",n,0),hours:e("getHours",n,0),minutes:e("getMinutes",n,0),seconds:e("getSeconds",n,0),milliseconds:e("getMilliseconds",n,0),time:e("getTime",n,0),timezoneoffset:e("getTimezoneOffset",n,0),utcdate:e("getUTCDate",n,0),utcday:e("getUTCDay",n,0),utcyear:e("getUTCFullYear",n,0),utcmonth:e("getUTCMonth",n,0),utchours:e("getUTCHours",n,0),utcminutes:e("getUTCMinutes",n,0),utcseconds:e("getUTCSeconds",n,0),utcmilliseconds:e("getUTCMilliseconds",n,0),length:e("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:e("toUpperCase",r,0),lower:e("toLowerCase",r,0),substring:e("substring",r),split:e("split",r),trim:e("trim",r,0),btoa:"btoa",atob:"atob",regexp:i,test:e("test",i),if:function(e){e.length<3&&F("Missing arguments to if function."),e.length>3&&F("Too many arguments to if function.");const n=e.map(t);return"("+n[0]+"?"+n[1]+":"+n[2]+")"}}}function zA(t){const e=(t=t||{}).allowed?Qt(t.allowed):{},n=t.forbidden?Qt(t.forbidden):{},r=t.constants||BA,i=(t.functions||RA)(f),o=t.globalvar,a=t.fieldvar,s=mt(o)?o:t=>"".concat(o,'["').concat(t,'"]');let c={},u={},l=0;function f(t){if(Lt(t))return t;const e=d[t.type];return null==e&&F("Unsupported type: "+t.type),e(t)}const d={Literal:t=>t.raw,Identifier:t=>{const i=t.name;return l>0?i:Dt(n,i)?F("Illegal identifier: "+i):Dt(r,i)?r[i]:Dt(e,i)?i:(c[i]=1,s(i))},MemberExpression:t=>{const e=!t.computed,n=f(t.object);e&&(l+=1);const r=f(t.property);return n===a&&(u[function(t){const e=t&&t.length-1;return e&&('"'===t[0]&&'"'===t[e]||"'"===t[0]&&"'"===t[e])?t.slice(1,-1):t}(r)]=1),e&&(l-=1),n+(e?"."+r:"["+r+"]")},CallExpression:t=>{"Identifier"!==t.callee.type&&F("Illegal callee type: "+t.callee.type);const e=t.callee.name,n=t.arguments,r=Dt(i,e)&&i[e];return r||F("Unrecognized function: "+e),mt(r)?r(n):r+"("+n.map(f).join(",")+")"},ArrayExpression:t=>"["+t.elements.map(f).join(",")+"]",BinaryExpression:t=>"("+f(t.left)+" "+t.operator+" "+f(t.right)+")",UnaryExpression:t=>"("+t.operator+f(t.argument)+")",ConditionalExpression:t=>"("+f(t.test)+"?"+f(t.consequent)+":"+f(t.alternate)+")",LogicalExpression:t=>"("+f(t.left)+t.operator+f(t.right)+")",ObjectExpression:t=>"{"+t.properties.map(f).join(",")+"}",Property:t=>{l+=1;const e=f(t.key);return l-=1,e+":"+f(t.value)}};function h(t){const e={code:f(t),globals:Object.keys(c),fields:Object.keys(u)};return c={},u={},e}return h.functions=i,h.constants=r,h}var PA=n(30896),LA=n(37332),IA=n(83677),jA=n(13696),UA=n(85698),qA=n(20676);const WA=Symbol("vega_selection_getter");function HA(t){return t.getter&&t.getter[WA]||(t.getter=C(t.field),t.getter[WA]=!0),t.getter}const GA="intersect",YA="union",VA="or",$A="and",XA="_vgsid_",ZA=C(XA),JA="index:unit";function QA(t,e){for(var n,r,i=e.fields,o=e.values,a=i.length,s=0;s<a;++s)if(Bt(n=HA(r=i[s])(t))&&(n=X(n)),Bt(o[s])&&(o[s]=X(o[s])),q(o[s])&&Bt(o[s][0])&&(o[s]=o[s].map(X)),"E"===r.type){if(q(o[s])?!o[s].includes(n):n!==o[s])return!1}else if("R"===r.type){if(!Nt(n,o[s]))return!1}else if("R-RE"===r.type){if(!Nt(n,o[s],!0,!1))return!1}else if("R-E"===r.type){if(!Nt(n,o[s],!1,!1))return!1}else if("R-LE"===r.type){if(!Nt(n,o[s],!1,!0))return!1}else if("E-LT"===r.type){if(n>=o[s])return!1}else if("E-LTE"===r.type){if(n>o[s])return!1}else if("E-GT"===r.type){if(n<=o[s])return!1}else if("E-GTE"===r.type){if(n<o[s])return!1}else if("E-VALID"===r.type){if(null===n||isNaN(n))return!1}else if("E-ONE"===r.type&&-1===o[s].indexOf(n))return!1;return!0}const KA=(0,ke.A)(ZA),tx=KA.left,ex=KA.right;var nx={["".concat(XA,"_union")]:UA.A,["".concat(XA,"_intersect")]:qA.A,E_union:function(t,e){if(!t.length)return e;for(var n=0,r=e.length;n<r;++n)t.includes(e[n])||t.push(e[n]);return t},E_intersect:function(t,e){return t.length?t.filter((t=>e.includes(t))):e},R_union:function(t,e){var n=X(e[0]),r=X(e[1]);return n>r&&(n=e[1],r=e[0]),t.length?(t[0]>n&&(t[0]=n),t[1]<r&&(t[1]=r),t):[n,r]},R_intersect:function(t,e){var n=X(e[0]),r=X(e[1]);return n>r&&(n=e[1],r=e[0]),t.length?r<t[0]||t[1]<n?[]:(t[0]<n&&(t[0]=n),t[1]>r&&(t[1]=r),t):[n,r]}};function rx(t,e,n,r){e[0].type!==Vy&&F("First argument to selection functions must be a string literal.");const i=e[0].value,o="unit",a="@"+o,s=":"+i;(e.length>=2&&$(e).value)!==GA||Dt(r,a)||(r[a]=n.getData(i).indataRef(n,o)),Dt(r,s)||(r[s]=n.getData(i).tuplesRef())}function ix(t){const e=this.context.data[t];return e?e.values.value:[]}const ox=t=>function(e,n){const r=this.context.dataflow.locale();return null===e?"null":r[t](n)(e)},ax=ox("format"),sx=ox("timeFormat"),cx=ox("utcFormat"),ux=ox("timeParse"),lx=ox("utcParse"),fx=new Date(2e3,0,1);function dx(t,e,n){return Number.isInteger(t)&&Number.isInteger(e)?(fx.setYear(2e3),fx.setMonth(t),fx.setDate(e),sx.call(this,fx,n)):""}const hx="$";function px(t,e,n,r){e[0].type!==Vy&&F("First argument to data functions must be a string literal.");const i=e[0].value,o=":"+i;if(!Dt(o,r))try{r[o]=n.getData(i).tuplesRef()}catch(a){}}function mx(t,e,n,r){if(e[0].type===Vy)gx(n,r,e[0].value);else for(t in n.scales)gx(n,r,t)}function gx(t,e,n){const r="%"+n;if(!Dt(e,r))try{e[r]=t.scaleRef(n)}catch(i){}}function vx(t,e){if(Lt(t)){const n=e.scales[t];return n&&function(t){return t&&!0===t[pc]}(n.value)?n.value:void 0}}function yx(t,e,n){e.__bandwidth=t=>t&&t.bandwidth?t.bandwidth():0,n._bandwidth=mx,n._range=mx,n._scale=mx;const r=e=>"_["+(e.type===Vy?Vt("%"+e.value):Vt("%")+"+"+t(e))+"]";return{_bandwidth:t=>"this.__bandwidth(".concat(r(t[0]),")"),_range:t=>"".concat(r(t[0]),".range()"),_scale:e=>"".concat(r(e[0]),"(").concat(t(e[1]),")")}}function bx(t,e){return function(n,r,i){if(n){const e=vx(n,(i||this).context);return e&&e.path[t](r)}return e(r)}}const Ax=bx("area",PA.Ay),xx=bx("bounds",LA.A),_x=bx("centroid",IA.A);function wx(t,e,n){try{t[e].apply(t,["EXPRESSION"].concat([].slice.call(n)))}catch(r){t.warn(r)}return n[n.length-1]}function kx(t){const e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ex(t){const e=(0,Eg.Qh)(t);return.2126*kx(e.r)+.7152*kx(e.g)+.0722*kx(e.b)}function Fx(t,e){return t===e||t!==t&&e!==e||(q(t)?!(!q(e)||t.length!==e.length)&&function(t,e){for(let n=0,r=t.length;n<r;++n)if(!Fx(t[n],e[n]))return!1;return!0}(t,e):!(!W(t)||!W(e))&&Dx(t,e))}function Dx(t,e){for(const n in t)if(!Fx(t[n],e[n]))return!1;return!0}function Cx(t){return e=>Dx(t,e)}const Mx={};function Sx(t){return q(t)||ArrayBuffer.isView(t)?t:null}function Tx(t){return Sx(t)||(Lt(t)?t:null)}const Nx=t=>t.data;function Ox(t,e){const n=ix.call(e,t);return n.root&&n.root.lookup||{}}const Bx=()=>"undefined"!==typeof window&&window||null;function Rx(t,e,n){if(!t)return[];const[r,i]=t,o=(new rl).set(r[0],r[1],i[0],i[1]);return Yh(n||this.context.dataflow.scenegraph().root,o,function(t){let e=null;if(t){const n=ht(t.marktype),r=ht(t.markname);e=t=>(!n.length||n.some((e=>t.marktype===e)))&&(!r.length||r.some((e=>t.name===e)))}return e}(e))}const zx={random:()=>wi(),cumulativeNormal:Bi,cumulativeLogNormal:ji,cumulativeUniform:Yi,densityNormal:Oi,densityLogNormal:Ii,densityUniform:Gi,quantileNormal:Ri,quantileLogNormal:Ui,quantileUniform:Vi,sampleNormal:Ni,sampleLogNormal:Li,sampleUniform:Hi,isArray:q,isBoolean:Ot,isDate:Bt,isDefined:t=>void 0!==t,isNumber:zt,isObject:W,isRegExp:Pt,isString:Lt,isTuple:Sr,isValid:t=>null!=t&&t===t,toBoolean:$t,toDate:t=>Zt(t),toNumber:X,toString:Jt,indexof:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Tx(t).indexOf(...n)},join:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Sx(t).join(...n)},lastindexof:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Tx(t).lastIndexOf(...n)},replace:function(t,e,n){return mt(n)&&F("Function argument passed to replace."),Lt(e)||Pt(e)||F("Please pass a string or RegExp argument to replace."),String(t).replace(e,n)},reverse:function(t){return Sx(t).slice().reverse()},sort:function(t){return Sx(t).slice().sort(yt)},slice:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Tx(t).slice(...n)},flush:St,lerp:jt,merge:function(){const t=[].slice.call(arguments);return t.unshift({}),kt(...t)},pad:Gt,peek:$,pluck:function(t,e){const n=Mx[e]||(Mx[e]=C(e));return q(t)?t.map(n):n(t)},span:Yt,inrange:Nt,truncate:Kt,rgb:Eg.Qh,lab:jA.Ay,hcl:jA.aq,hsl:Eg.KI,luminance:Ex,contrast:function(t,e){const n=Ex(t),r=Ex(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},sequence:bo.A,format:ax,utcFormat:cx,utcParse:lx,utcOffset:gn,utcSequence:bn,timeFormat:sx,timeParse:ux,timeOffset:mn,timeSequence:yn,timeUnitSpecifier:je,monthFormat:function(t){return dx.call(this,t,1,"%B")},monthAbbrevFormat:function(t){return dx.call(this,t,1,"%b")},dayFormat:function(t){return dx.call(this,0,2+t,"%A")},dayAbbrevFormat:function(t){return dx.call(this,0,2+t,"%a")},quarter:ft,utcquarter:dt,week:He,utcweek:Ze,dayofyear:We,utcdayofyear:Xe,warn:function(){return wx(this.context.dataflow,"warn",arguments)},info:function(){return wx(this.context.dataflow,"info",arguments)},debug:function(){return wx(this.context.dataflow,"debug",arguments)},extent:t=>Et(t),inScope:function(t){const e=this.context.group;let n=!1;if(e)for(;t;){if(t===e){n=!0;break}t=t.mark.group}return n},intersect:Rx,clampRange:pt,pinchDistance:function(t){const e=t.touches,n=e[0].clientX-e[1].clientX,r=e[0].clientY-e[1].clientY;return Math.hypot(n,r)},pinchAngle:function(t){const e=t.touches;return Math.atan2(e[0].clientY-e[1].clientY,e[0].clientX-e[1].clientX)},screen:function(){const t=Bx();return t?t.screen:{}},containerSize:function(){const t=this.context.dataflow,e=t.container&&t.container();return e?[e.clientWidth,e.clientHeight]:[void 0,void 0]},windowSize:function(){const t=Bx();return t?[t.innerWidth,t.innerHeight]:[void 0,void 0]},bandspace:function(t,e,n){return Us(t||0,e||0,n||0)},setdata:function(t,e){const n=this.context.dataflow,r=this.context.data[t].input;return n.pulse(r,n.changeset().remove(O).insert(e)),1},pathShape:function(t){let e=null;return function(n){return n?Fu(n,e=e||mu(t)):t}},panLinear:nt,panLog:rt,panPow:it,panSymlog:ot,zoomLinear:st,zoomLog:ct,zoomPow:ut,zoomSymlog:lt,encode:function(t,e,n){if(t){const n=this.context.dataflow,r=t.mark.source;n.pulse(r,n.changeset().encode(t,e))}return void 0!==n?n:t},modify:function(t,e,n,r,i,o){const a=this.context.dataflow,s=this.context.data[t],c=s.input,u=a.stamp();let l,f,d=s.changes;if(!1===a._trigger||!(c.value.length||e||r))return 0;if((!d||d.stamp<u)&&(s.changes=d=a.changeset(),d.stamp=u,a.runAfter((()=>{s.modified=!0,a.pulse(c,d).run()}),!0,1)),n&&(l=!0===n?O:q(n)||Sr(n)?n:Cx(n),d.remove(l)),e&&d.insert(e),r&&(l=Cx(r),c.value.some(l)?d.remove(l):d.insert(r)),i)for(f in o)d.modify(i,f,o[f]);return 1},lassoAppend:function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5;const i=(t=ht(t))[t.length-1];return void 0===i||Math.hypot(i[0]-e,i[1]-n)>r?[...t,[e,n]]:t},lassoPath:function(t){return ht(t).reduce(((e,n,r)=>{let[i,o]=n;return e+(0==r?"M ".concat(i,",").concat(o," "):r===t.length-1?" Z":"L ".concat(i,",").concat(o," "))}),"")},intersectLasso:function(t,e,n){const{x:r,y:i,mark:o}=n,a=(new rl).set(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);for(const[s,c]of e)s<a.x1&&(a.x1=s),s>a.x2&&(a.x2=s),c<a.y1&&(a.y1=c),c>a.y2&&(a.y2=c);return a.translate(r,i),Rx([[a.x1,a.y1],[a.x2,a.y2]],t,o).filter((t=>function(t,e,n){let r=0;for(let i=0,o=n.length-1;i<n.length;o=i++){const[a,s]=n[o],[c,u]=n[i];u>e!=s>e&&t<(a-c)*(e-u)/(s-u)+c&&r++}return 1&r}(t.x,t.y,e)))}},Px=["view","item","group","xy","x","y"],Lx="this.",Ix={},jx={forbidden:["_"],allowed:["datum","event","item"],fieldvar:"datum",globalvar:t=>"_[".concat(Vt(hx+t),"]"),functions:function(t){const e=RA(t);Px.forEach((t=>e[t]="event.vega."+t));for(const n in zx)e[n]=Lx+n;return kt(e,yx(t,zx,Ix)),e},constants:BA,visitors:Ix},Ux=zA(jx);function qx(t,e,n){return 1===arguments.length?zx[t]:(zx[t]=e,n&&(Ix[t]=n),Ux&&(Ux.functions[t]=Lx+t),this)}function Wx(t,e){const n={};let r;try{r=OA(t=Lt(t)?t:Vt(t)+"")}catch(o){F("Expression parse error: "+t)}r.visit((t=>{if(t.type!==Jy)return;const r=t.callee.name,i=jx.visitors[r];i&&i(r,t.arguments,e,n)}));const i=Ux(r);return i.globals.forEach((t=>{const r=hx+t;!Dt(n,r)&&e.getSignal(t)&&(n[r]=e.signalRef(t))})),{$expr:kt({code:i.code},e.options.ast?{ast:r}:null),$fields:i.fields,$params:n}}qx("bandwidth",(function(t,e){const n=vx(t,(e||this).context);return n&&n.bandwidth?n.bandwidth():0}),mx),qx("copy",(function(t,e){const n=vx(t,(e||this).context);return n?n.copy():void 0}),mx),qx("domain",(function(t,e){const n=vx(t,(e||this).context);return n?n.domain():[]}),mx),qx("range",(function(t,e){const n=vx(t,(e||this).context);return n&&n.range?n.range():[]}),mx),qx("invert",(function(t,e,n){const r=vx(t,(n||this).context);return r?q(e)?(r.invertRange||r.invert)(e):(r.invert||r.invertExtent)(e):void 0}),mx),qx("scale",(function(t,e,n){const r=vx(t,(n||this).context);return r?r(e):void 0}),mx),qx("gradient",(function(t,e,n,r,i){let o="string"===typeof t?vx(t,(i||this).context):t;const a=su(e,n);let s=o.domain(),c=s[0],u=$(s),l=S;return u-c?l=Mc(o,c,u):o=(o.interpolator?gc("sequential")().interpolator(o.interpolator()):gc("linear")().interpolate(o.interpolate()).range(o.range())).domain([c=0,u=1]),o.ticks&&(s=o.ticks(+r||15),c!==s[0]&&s.unshift(c),u!==$(s)&&s.push(u)),s.forEach((t=>a.stop(l(t),o(t)))),a}),mx),qx("geoArea",Ax,mx),qx("geoBounds",xx,mx),qx("geoCentroid",_x,mx),qx("geoShape",(function(t,e,n){const r=vx(t,(n||this).context);return function(t){return r?r.path.context(t)(e):""}}),mx),qx("geoScale",(function(t,e){const n=vx(t,(e||this).context);return n&&n.scale()}),mx),qx("indata",(function(t,e,n){const r=this.context.data[t]["index:"+e],i=r?r.value.get(n):void 0;return i?i.count:i}),(function(t,e,n,r){e[0].type!==Vy&&F("First argument to indata must be a string literal."),e[1].type!==Vy&&F("Second argument to indata must be a string literal.");const i=e[0].value,o=e[1].value,a="@"+o;Dt(a,r)||(r[a]=n.getData(i).indataRef(n,o))})),qx("data",ix,px),qx("treePath",(function(t,e,n){const r=Ox(t,this),i=r[e],o=r[n];return i&&o?i.path(o).map(Nx):void 0}),px),qx("treeAncestors",(function(t,e){const n=Ox(t,this)[e];return n?n.ancestors().map(Nx):void 0}),px),qx("vlSelectionTest",(function(t,e,n){for(var r,i,o,a,s,c=this.context.data[t],u=c?c.values.value:[],l=c?c[JA]&&c[JA].value:void 0,f=n===GA,d=u.length,h=0;h<d;++h)if(r=u[h],l&&f){if(-1===(o=(i=i||{})[a=r.unit]||0))continue;if(s=QA(e,r),i[a]=s?-1:++o,s&&1===l.size)return!0;if(!s&&o===l.get(a).count)return!1}else if(f^(s=QA(e,r)))return s;return d&&f}),rx),qx("vlSelectionIdTest",(function(t,e,n){const r=this.context.data[t],i=r?r.values.value:[],o=r?r[JA]&&r[JA].value:void 0,a=n===GA,s=ZA(e),c=tx(i,s);if(c===i.length)return!1;if(ZA(i[c])!==s)return!1;if(o&&a){if(1===o.size)return!0;if(ex(i,s)-c<o.size)return!1}return!0}),rx),qx("vlSelectionResolve",(function(t,e,n,r){for(var i,o,a,s,c,u,l,f,d,h,p,m,g=this.context.data[t],v=g?g.values.value:[],y={},b={},A={},x=v.length,_=0;_<x;++_)if(s=(i=v[_]).unit,o=i.fields,a=i.values,o&&a){for(p=0,m=o.length;p<m;++p)c=o[p],f=(l=y[c.field]||(y[c.field]={}))[s]||(l[s]=[]),A[c.field]=d=c.type.charAt(0),h=nx["".concat(d,"_union")],l[s]=h(f,ht(a[p]));n&&(f=b[s]||(b[s]=[])).push(ht(a).reduce(((t,e,n)=>(t[o[n].field]=e,t)),{}))}else c=XA,u=ZA(i),(f=(l=y[c]||(y[c]={}))[s]||(l[s]=[])).push(u),n&&(f=b[s]||(b[s]=[])).push({[XA]:u});if(e=e||YA,y[XA]?y[XA]=nx["".concat(XA,"_").concat(e)](...Object.values(y[XA])):Object.keys(y).forEach((t=>{y[t]=Object.keys(y[t]).map((e=>y[t][e])).reduce(((n,r)=>void 0===n?r:nx["".concat(A[t],"_").concat(e)](n,r)))})),v=Object.keys(b),n&&v.length){y[r?"vlPoint":"vlMulti"]=e===YA?{[VA]:v.reduce(((t,e)=>(t.push(...b[e]),t)),[])}:{[$A]:v.map((t=>({[VA]:b[t]})))}}return y}),rx),qx("vlSelectionTuples",(function(t,e){return t.map((t=>kt(e.fields?{values:e.fields.map((e=>HA(e)(t.datum)))}:{[XA]:ZA(t.datum)},e)))}));const Hx=Qt(["rule"]),Gx=Qt(["group","image","rect"]);function Yx(t){return(t+"").toLowerCase()}function Vx(t,e,n){n.endsWith(";")||(n="return("+n+");");const r=Function(...e.concat(n));return t&&t.functions?r.bind(t.functions):r}var $x={operator:(t,e)=>Vx(t,["_"],e.code),parameter:(t,e)=>Vx(t,["datum","_"],e.code),event:(t,e)=>Vx(t,["event"],e.code),handler:(t,e)=>Vx(t,["_","event"],"var datum=event.item&&event.item.datum;return ".concat(e.code,";")),encode:(t,e)=>{const{marktype:n,channels:r}=e;let i="var o=item,datum=o.datum,m=0,$;";for(const o in r){const t="o["+Vt(o)+"]";i+="$=".concat(r[o].code,";if(").concat(t,"!==$)").concat(t,"=$,m=1;")}return i+=function(t,e){let n="";return Hx[e]||(t.x2&&(t.x?(Gx[e]&&(n+="if(o.x>o.x2)$=o.x,o.x=o.x2,o.x2=$;"),n+="o.width=o.x2-o.x;"):n+="o.x=o.x2-(o.width||0);"),t.xc&&(n+="o.x=o.xc-(o.width||0)/2;"),t.y2&&(t.y?(Gx[e]&&(n+="if(o.y>o.y2)$=o.y,o.y=o.y2,o.y2=$;"),n+="o.height=o.y2-o.y;"):n+="o.y=o.y2-(o.height||0);"),t.yc&&(n+="o.y=o.yc-(o.height||0)/2;")),n}(r,n),i+="return m;",Vx(t,["item","_"],i)},codegen:{get(t){const e="[".concat(t.map(Vt).join("]["),"]"),n=Function("_","return _".concat(e,";"));return n.path=e,n},comparator(t,e){let n;const r=Function("a","b","var u, v; return "+t.map(((t,r)=>{const i=e[r];let o,a;return t.path?(o="a".concat(t.path),a="b".concat(t.path)):((n=n||{})["f"+r]=t,o="this.f".concat(r,"(a)"),a="this.f".concat(r,"(b)")),function(t,e,n,r){return"((u = ".concat(t,") < (v = ").concat(e,") || u == null) && v != null ? ").concat(n,"\n : (u > v || v == null) && u != null ? ").concat(r,"\n : ((v = v instanceof Date ? +v : v), (u = u instanceof Date ? +u : u)) !== u && v === v ? ").concat(n,"\n : v !== v && u === u ? ").concat(r," : ")}(o,a,-i,i)})).join("")+"0;");return n?r.bind(n):r}}};function Xx(t,e,n){if(!t||!W(t))return t;for(let r,i=0,o=Zx.length;i<o;++i)if(r=Zx[i],Dt(t,r.key))return r.parse(t,e,n);return t}var Zx=[{key:"$ref",parse:function(t,e){return e.get(t.$ref)||F("Operator not defined: "+t.$ref)}},{key:"$key",parse:function(t,e){const n="k:"+t.$key+"_"+!!t.$flat;return e.fn[n]||(e.fn[n]=It(t.$key,t.$flat,e.expr.codegen))}},{key:"$expr",parse:function(t,e,n){t.$params&&e.parseParameters(t.$params,n);const r="e:"+t.$expr.code;return e.fn[r]||(e.fn[r]=A(e.parameterExpression(t.$expr),t.$fields))}},{key:"$field",parse:function(t,e){if(!t.$field)return null;const n="f:"+t.$field+"_"+t.$name;return e.fn[n]||(e.fn[n]=C(t.$field,t.$name,e.expr.codegen))}},{key:"$encode",parse:function(t,e){const n=t.$encode,r={};for(const i in n){const t=n[i];r[i]=A(e.encodeExpression(t.$expr),t.$fields),r[i].output=t.$output}return r}},{key:"$compare",parse:function(t,e){const n="c:"+t.$compare+"_"+t.$order,r=ht(t.$compare).map((t=>t&&t.$tupleid?Tr:t));return e.fn[n]||(e.fn[n]=vt(r,t.$order,e.expr.codegen))}},{key:"$context",parse:function(t,e){return e}},{key:"$subflow",parse:function(t,e){const n=t.$subflow;return function(t,r,i){const o=e.fork().parse(n),a=o.get(n.operators[0].id),s=o.signals.parent;return s&&s.set(i),a.detachSubflow=()=>e.detach(o),a}}},{key:"$tupleid",parse:function(){return Tr}}];const Jx={skip:!0};function Qx(t,e,n,r){return new Kx(t,e,n,r)}function Kx(t,e,n,r){this.dataflow=t,this.transforms=e,this.events=t.events.bind(t),this.expr=r||$x,this.signals={},this.scales={},this.nodes={},this.data={},this.fn={},n&&(this.functions=Object.create(n),this.functions.context=this)}function t_(t){this.dataflow=t.dataflow,this.transforms=t.transforms,this.events=t.events,this.expr=t.expr,this.signals=Object.create(t.signals),this.scales=Object.create(t.scales),this.nodes=Object.create(t.nodes),this.data=Object.create(t.data),this.fn=Object.create(t.fn),t.functions&&(this.functions=Object.create(t.functions),this.functions.context=this)}Kx.prototype=t_.prototype={fork(){const t=new t_(this);return(this.subcontext||(this.subcontext=[])).push(t),t},detach(t){this.subcontext=this.subcontext.filter((e=>e!==t));const e=Object.keys(t.nodes);for(const n of e)t.nodes[n]._targets=null;for(const n of e)t.nodes[n].detach();t.nodes=null},get(t){return this.nodes[t]},set(t,e){return this.nodes[t]=e},add(t,e){const n=this,r=n.dataflow,i=t.value;if(n.set(t.id,e),function(t){return"collect"===Yx(t)}(t.type)&&i&&(i.$ingest?r.ingest(e,i.$ingest,i.$format):i.$request?r.preload(e,i.$request,i.$format):r.pulse(e,r.changeset().insert(i))),t.root&&(n.root=e),t.parent){let i=n.get(t.parent.$ref);i?(r.connect(i,[e]),e.targets().add(i)):(n.unresolved=n.unresolved||[]).push((()=>{i=n.get(t.parent.$ref),r.connect(i,[e]),e.targets().add(i)}))}if(t.signal&&(n.signals[t.signal]=e),t.scale&&(n.scales[t.scale]=e),t.data)for(const o in t.data){const r=n.data[o]||(n.data[o]={});t.data[o].forEach((t=>r[t]=e))}},resolve(){return(this.unresolved||[]).forEach((t=>t())),delete this.unresolved,this},operator(t,e){this.add(t,this.dataflow.add(t.value,e))},transform(t,e){this.add(t,this.dataflow.add(this.transforms[Yx(e)]))},stream(t,e){this.set(t.id,e)},update(t,e,n,r,i){this.dataflow.on(e,n,r,i,t.options)},operatorExpression(t){return this.expr.operator(this,t)},parameterExpression(t){return this.expr.parameter(this,t)},eventExpression(t){return this.expr.event(this,t)},handlerExpression(t){return this.expr.handler(this,t)},encodeExpression(t){return this.expr.encode(this,t)},parse:function(t){const e=this,n=t.operators||[];return t.background&&(e.background=t.background),t.eventConfig&&(e.eventConfig=t.eventConfig),t.locale&&(e.locale=t.locale),n.forEach((t=>e.parseOperator(t))),n.forEach((t=>e.parseOperatorParameters(t))),(t.streams||[]).forEach((t=>e.parseStream(t))),(t.updates||[]).forEach((t=>e.parseUpdate(t))),e.resolve()},parseOperator:function(t){const e=this;!function(t){return"operator"===Yx(t)}(t.type)&&t.type?e.transform(t,t.type):e.operator(t,t.update?e.operatorExpression(t.update):null)},parseOperatorParameters:function(t){const e=this;if(t.params){const n=e.get(t.id);n||F("Invalid operator id: "+t.id),e.dataflow.connect(n,n.parameters(e.parseParameters(t.params),t.react,t.initonly))}},parseParameters:function(t,e){e=e||{};const n=this;for(const r in t){const i=t[r];e[r]=q(i)?i.map((t=>Xx(t,n,e))):Xx(i,n,e)}return e},parseStream:function(t){var e,n=this,r=null!=t.filter?n.eventExpression(t.filter):void 0,i=null!=t.stream?n.get(t.stream):void 0;t.source?i=n.events(t.source,t.type,r):t.merge&&(i=(e=t.merge.map((t=>n.get(t))))[0].merge.apply(e[0],e.slice(1))),t.between&&(e=t.between.map((t=>n.get(t))),i=i.between(e[0],e[1])),t.filter&&(i=i.filter(r)),null!=t.throttle&&(i=i.throttle(+t.throttle)),null!=t.debounce&&(i=i.debounce(+t.debounce)),null==i&&F("Invalid stream definition: "+JSON.stringify(t)),t.consume&&i.consume(!0),n.stream(t,i)},parseUpdate:function(t){var e,n=this,r=W(r=t.source)?r.$ref:r,i=n.get(r),o=t.update,a=void 0;i||F("Source not defined: "+t.source),e=t.target&&t.target.$expr?n.eventExpression(t.target.$expr):n.get(t.target),o&&o.$expr&&(o.$params&&(a=n.parseParameters(o.$params)),o=n.handlerExpression(o.$expr)),n.update(t,i,e,o,a)},getState:function(t){var e=this,n={};if(t.signals){var r=n.signals={};Object.keys(e.signals).forEach((n=>{const i=e.signals[n];t.signals(n,i)&&(r[n]=i.value)}))}if(t.data){var i=n.data={};Object.keys(e.data).forEach((n=>{const r=e.data[n];t.data(n,r)&&(i[n]=r.input.value)}))}return e.subcontext&&!1!==t.recurse&&(n.subcontext=e.subcontext.map((e=>e.getState(t)))),n},setState:function(t){var e=this,n=e.dataflow,r=t.data,i=t.signals;Object.keys(i||{}).forEach((t=>{n.update(e.signals[t],i[t],Jx)})),Object.keys(r||{}).forEach((t=>{n.pulse(e.data[t].input,n.changeset().remove(O).insert(r[t]))})),(t.subcontext||[]).forEach(((t,n)=>{const r=e.subcontext[n];r&&r.setState(t)}))}};var e_=n(95508);function n_(t,e){t&&(null==e?t.removeAttribute("aria-label"):t.setAttribute("aria-label",e))}const r_="default";function i_(t,e){const n=t.globalCursor()?"undefined"!==typeof document&&document.body:t.container();if(n)return null==e?n.style.removeProperty("cursor"):n.style.cursor=e}function o_(t,e){var n=t._runtime.data;return Dt(n,e)||F("Unrecognized data set: "+e),n[e]}function a_(t,e){Lr(e)||F("Second argument to changes must be a changeset.");const n=o_(this,t);return n.modified=!0,this.pulse(n.input,e)}function s_(t){var e=t.padding();return Math.max(0,t._viewWidth+e.left+e.right)}function c_(t){var e=t.padding();return Math.max(0,t._viewHeight+e.top+e.bottom)}function u_(t){var e=t.padding(),n=t._origin;return[e.left+n[0],e.top+n[1]]}function l_(t,e,n){var r,i,o=t._renderer,a=o&&o.canvas();return a&&(i=u_(t),(r=vd(e.changedTouches?e.changedTouches[0]:e,a))[0]-=i[0],r[1]-=i[1]),e.dataflow=t,e.item=n,e.vega=function(t,e,n){const r=e?"group"===e.mark.marktype?e:e.mark.group:null;function i(t){var n,i=r;if(t)for(n=e;n;n=n.mark.group)if(n.mark.name===t){i=n;break}return i&&i.mark&&i.mark.interactive?i:{}}function o(t){if(!t)return n;Lt(t)&&(t=i(t));const e=n.slice();for(;t;)e[0]-=t.x||0,e[1]-=t.y||0,t=t.mark&&t.mark.group;return e}return{view:_t(t),item:_t(e||{}),group:i,xy:o,x:t=>o(t)[0],y:t=>o(t)[1]}}(t,n,r),e}const f_="view",d_={trap:!1};function h_(t,e,n,r){t._eventListeners.push({type:n,sources:ht(e),handler:r})}function p_(t,e,n){const r=t._eventConfig&&t._eventConfig[e];return!(!1===r||W(r)&&!r[n])||(t.warn("Blocked ".concat(e," ").concat(n," event listener.")),!1)}function m_(t){return t.item}function g_(t){return t.item.mark.source}function v_(t){return function(e,n){return n.vega.view().changeset().encode(n.item,t)}}function y_(t,e,n){const r=document.createElement(t);for(const i in e)r.setAttribute(i,e[i]);return null!=n&&(r.textContent=n),r}function b_(t,e,n,r){const i=n.event||"input",o=()=>t.update(e.value);r.signal(n.signal,e.value),e.addEventListener(i,o),h_(r,e,i,o),t.set=t=>{e.value=t,e.dispatchEvent(function(t){return"undefined"!==typeof Event?new Event(t):{type:t}}(i))}}function A_(t,e,n,r){const i=r.signal(n.signal),o=y_("div",{class:"vega-bind"}),a="radio"===n.input?o:o.appendChild(y_("label"));a.appendChild(y_("span",{class:"vega-bind-name"},n.name||n.signal)),e.appendChild(o);let s=x_;switch(n.input){case"checkbox":s=__;break;case"select":s=w_;break;case"radio":s=k_;break;case"range":s=E_}s(t,a,n,i)}function x_(t,e,n,r){const i=y_("input");for(const o in n)"signal"!==o&&"element"!==o&&i.setAttribute("input"===o?"type":o,n[o]);i.setAttribute("name",n.signal),i.value=r,e.appendChild(i),i.addEventListener("input",(()=>t.update(i.value))),t.elements=[i],t.set=t=>i.value=t}function __(t,e,n,r){const i={type:"checkbox",name:n.signal};r&&(i.checked=!0);const o=y_("input",i);e.appendChild(o),o.addEventListener("change",(()=>t.update(o.checked))),t.elements=[o],t.set=t=>o.checked=!!t||null}function w_(t,e,n,r){const i=y_("select",{name:n.signal}),o=n.labels||[];n.options.forEach(((t,e)=>{const n={value:t};F_(t,r)&&(n.selected=!0),i.appendChild(y_("option",n,(o[e]||t)+""))})),e.appendChild(i),i.addEventListener("change",(()=>{t.update(n.options[i.selectedIndex])})),t.elements=[i],t.set=t=>{for(let e=0,r=n.options.length;e<r;++e)if(F_(n.options[e],t))return void(i.selectedIndex=e)}}function k_(t,e,n,r){const i=y_("span",{class:"vega-bind-radio"}),o=n.labels||[];e.appendChild(i),t.elements=n.options.map(((e,a)=>{const s={type:"radio",name:n.signal,value:e};F_(e,r)&&(s.checked=!0);const c=y_("input",s);c.addEventListener("change",(()=>t.update(e)));const u=y_("label",{},(o[a]||e)+"");return u.prepend(c),i.appendChild(u),c})),t.set=e=>{const n=t.elements,r=n.length;for(let t=0;t<r;++t)F_(n[t].value,e)&&(n[t].checked=!0)}}function E_(t,e,n,r){r=void 0!==r?r:(+n.max+ +n.min)/2;const i=null!=n.max?n.max:Math.max(100,+r)||100,o=n.min||Math.min(0,i,+r)||0,a=n.step||(0,ue.sG)(o,i,100),s=y_("input",{type:"range",name:n.signal,min:o,max:i,step:a});s.value=r;const c=y_("span",{},+r);e.appendChild(s),e.appendChild(c);const u=()=>{c.textContent=s.value,t.update(+s.value)};s.addEventListener("input",u),s.addEventListener("change",u),t.elements=[s],t.set=t=>{s.value=t,c.textContent=t}}function F_(t,e){return t===e||t+""===e+""}function D_(t,e,n,r,i,o){return(e=e||new r(t.loader())).initialize(n,s_(t),c_(t),u_(t),i,o).background(t.background())}function C_(t,e){return e?function(){try{e.apply(this,arguments)}catch(n){t.error(n)}}:null}function M_(t,e,n){if("string"===typeof e){if("undefined"===typeof document)return t.error("DOM document instance not found."),null;if(!(e=document.querySelector(e)))return t.error("Signal bind element not found: "+e),null}if(e&&n)try{e.textContent=""}catch(r){e=null,t.error(r)}return e}const S_=t=>+t||0;function T_(t){return W(t)?{top:S_(t.top),bottom:S_(t.bottom),left:S_(t.left),right:S_(t.right)}:(t=>({top:t,bottom:t,left:t,right:t}))(S_(t))}async function N_(t,e,n,r){const i=Gh(e),o=i&&i.headless;return o||F("Unrecognized renderer type: "+e),await t.runAsync(),D_(t,null,null,o,n,r).renderAsync(t._scenegraph.root)}var O_="width",B_="height",R_="padding",z_={skip:!0};function P_(t,e){var n=t.autosize(),r=t.padding();return e-(n&&n.contains===R_?r.left+r.right:0)}function L_(t,e){var n=t.autosize(),r=t.padding();return e-(n&&n.contains===R_?r.top+r.bottom:0)}function I_(t,e){return e.modified&&q(e.input.value)&&!t.startsWith("_:vega:_")}function j_(t,e){return!("parent"===t||e instanceof fi.proxy)}function U_(t,e,n,r){const i=t.element();i&&i.setAttribute("title",function(t){return null==t?"":q(t)?q_(t):W(t)&&!Bt(t)?(e=t,Object.keys(e).map((t=>{const n=e[t];return t+": "+(q(n)?q_(n):W_(n))})).join("\n")):t+"";var e}(r))}function q_(t){return"["+t.map(W_).join(", ")+"]"}function W_(t){return q(t)?"[\u2026]":W(t)&&!Bt(t)?"{\u2026}":t}function H_(t,e){const n=this;if(e=e||{},ci.call(n),e.loader&&n.loader(e.loader),e.logger&&n.logger(e.logger),null!=e.logLevel&&n.logLevel(e.logLevel),e.locale||t.locale){const r=kt({},t.locale,e.locale);n.locale(Zn(r.number,r.time))}n._el=null,n._elBind=null,n._renderType=e.renderer||Wh.Canvas,n._scenegraph=new ld;const r=n._scenegraph.root;n._renderer=null,n._tooltip=e.tooltip||U_,n._redraw=!0,n._handler=(new Ud).scene(r),n._globalCursor=!1,n._preventDefault=!1,n._timers=[],n._eventListeners=[],n._resizeListeners=[],n._eventConfig=function(t){const e=kt({defaults:{}},t),n=(t,e)=>{e.forEach((e=>{q(t[e])&&(t[e]=Qt(t[e]))}))};return n(e.defaults,["prevent","allow"]),n(e,["view","window","selector"]),e}(t.eventConfig),n.globalCursor(n._eventConfig.globalCursor);const i=function(t,e,n){return Qx(t,fi,zx,n).parse(e)}(n,t,e.expr);n._runtime=i,n._signals=i.signals,n._bind=(t.bindings||[]).map((t=>({state:null,param:kt({},t)}))),i.root&&i.root.set(r),r.source=i.data.root.input,n.pulse(i.data.root.input,n.changeset().insert(r.items)),n._width=n.width(),n._height=n.height(),n._viewWidth=P_(n,n._width),n._viewHeight=L_(n,n._height),n._origin=[0,0],n._resize=0,n._autosize=1,function(t){var e=t._signals,n=e[O_],r=e[B_],i=e[R_];function o(){t._autosize=t._resize=1}t._resizeWidth=t.add(null,(e=>{t._width=e.size,t._viewWidth=P_(t,e.size),o()}),{size:n}),t._resizeHeight=t.add(null,(e=>{t._height=e.size,t._viewHeight=L_(t,e.size),o()}),{size:r});const a=t.add(null,o,{pad:i});t._resizeWidth.rank=n.rank+1,t._resizeHeight.rank=r.rank+1,a.rank=i.rank+1}(n),function(t){t.add(null,(e=>(t._background=e.bg,t._resize=1,e.bg)),{bg:t._signals.background})}(n),function(t){const e=t._signals.cursor||(t._signals.cursor=t.add({user:r_,item:null}));t.on(t.events("view","pointermove"),e,((t,n)=>{const r=e.value,i=r?Lt(r)?r:r.user:r_,o=n.item&&n.item.cursor||null;return r&&i===r.user&&o==r.item?r:{user:i,item:o}})),t.add(null,(function(e){let n=e.cursor,r=this.value;return Lt(n)||(r=n.item,n=n.user),i_(t,n&&n!==r_?n:r||n),r}),{cursor:e})}(n),n.description(t.description),e.hover&&n.hover(),e.container&&n.initialize(e.container,e.bind),e.watchPixelRatio&&n._watchPixelRatio()}function G_(t,e){return Dt(t._signals,e)?t._signals[e]:F("Unrecognized signal name: "+Vt(e))}function Y_(t,e){const n=(t._targets||[]).filter((t=>t._update&&t._update.handler===e));return n.length?n[0]:null}function V_(t,e,n,r){let i=Y_(n,r);return i||(i=C_(t,(()=>r(e,n.value))),i.handler=r,t.on(n,null,i)),t}function $_(t,e,n){const r=Y_(e,n);return r&&e._targets.remove(r),t}Tt(H_,ci,{async evaluate(t,e,n){if(await ci.prototype.evaluate.call(this,t,e),this._redraw||this._resize)try{this._renderer&&(this._resize&&(this._resize=0,function(t){var e=u_(t),n=s_(t),r=c_(t);t._renderer.background(t.background()),t._renderer.resize(n,r,e),t._handler.origin(e),t._resizeListeners.forEach((e=>{try{e(n,r)}catch(i){t.error(i)}}))}(this)),await this._renderer.renderAsync(this._scenegraph.root)),this._redraw=!1}catch(r){this.error(r)}return n&&Dr(this,n),this},dirty(t){this._redraw=!0,this._renderer&&this._renderer.dirty(t)},description(t){if(arguments.length){const e=null!=t?t+"":null;return e!==this._desc&&n_(this._el,this._desc=e),this}return this._desc},container(){return this._el},scenegraph(){return this._scenegraph},origin(){return this._origin.slice()},signal(t,e,n){const r=G_(this,t);return 1===arguments.length?r.value:this.update(r,e,n)},width(t){return arguments.length?this.signal("width",t):this.signal("width")},height(t){return arguments.length?this.signal("height",t):this.signal("height")},padding(t){return arguments.length?this.signal("padding",T_(t)):T_(this.signal("padding"))},autosize(t){return arguments.length?this.signal("autosize",t):this.signal("autosize")},background(t){return arguments.length?this.signal("background",t):this.signal("background")},renderer(t){return arguments.length?(Gh(t)||F("Unrecognized renderer type: "+t),t!==this._renderType&&(this._renderType=t,this._resetRenderer()),this):this._renderType},tooltip(t){return arguments.length?(t!==this._tooltip&&(this._tooltip=t,this._resetRenderer()),this):this._tooltip},loader(t){return arguments.length?(t!==this._loader&&(ci.prototype.loader.call(this,t),this._resetRenderer()),this):this._loader},resize(){return this._autosize=1,this.touch(G_(this,"autosize"))},_resetRenderer(){this._renderer&&(this._renderer=null,this.initialize(this._el,this._elBind))},_resizeView:function(t,e,n,r,i,o){this.runAfter((a=>{let s=0;a._autosize=0,a.width()!==n&&(s=1,a.signal(O_,n,z_),a._resizeWidth.skip(!0)),a.height()!==r&&(s=1,a.signal(B_,r,z_),a._resizeHeight.skip(!0)),a._viewWidth!==t&&(a._resize=1,a._viewWidth=t),a._viewHeight!==e&&(a._resize=1,a._viewHeight=e),a._origin[0]===i[0]&&a._origin[1]===i[1]||(a._resize=1,a._origin=i),s&&a.run("enter"),o&&a.runAfter((t=>t.resize()))}),!1,1)},addEventListener(t,e,n){let r=e;return n&&!1===n.trap||(r=C_(this,e),r.raw=e),this._handler.on(t,r),this},removeEventListener(t,e){for(var n,r,i=this._handler.handlers(t),o=i.length;--o>=0;)if(r=i[o].type,n=i[o].handler,t===r&&(e===n||e===n.raw)){this._handler.off(r,n);break}return this},addResizeListener(t){const e=this._resizeListeners;return e.includes(t)||e.push(t),this},removeResizeListener(t){var e=this._resizeListeners,n=e.indexOf(t);return n>=0&&e.splice(n,1),this},addSignalListener(t,e){return V_(this,t,G_(this,t),e)},removeSignalListener(t,e){return $_(this,G_(this,t),e)},addDataListener(t,e){return V_(this,t,o_(this,t).values,e)},removeDataListener(t,e){return $_(this,o_(this,t).values,e)},globalCursor(t){if(arguments.length){if(this._globalCursor!==!!t){const e=i_(this,null);this._globalCursor=!!t,e&&i_(this,e)}return this}return this._globalCursor},preventDefault(t){return arguments.length?(this._preventDefault=t,this):this._preventDefault},timer:function(t,e){this._timers.push((0,e_.A)((function(e){t({timestamp:Date.now(),elapsed:e})}),e))},events:function(t,e,n){var r,i=this,o=new Vr(n),a=function(n,r){i.runAsync(null,(()=>{t===f_&&function(t,e){var n=t._eventConfig.defaults,r=n.prevent,i=n.allow;return!1!==r&&!0!==i&&(!0===r||!1===i||(r?r[e]:i?!i[e]:t.preventDefault()))}(i,e)&&n.preventDefault(),o.receive(l_(i,n,r))}))};if("timer"===t)p_(i,"timer",e)&&i.timer(a,e);else if(t===f_)p_(i,"view",e)&&i.addEventListener(e,a,d_);else if("window"===t?p_(i,"window",e)&&"undefined"!==typeof window&&(r=[window]):"undefined"!==typeof document&&p_(i,"selector",e)&&(r=Array.from(document.querySelectorAll(t))),r){for(var s=0,c=r.length;s<c;++s)r[s].addEventListener(e,a);h_(i,r,e,a)}else i.warn("Can not resolve event source: "+t);return o},finalize:function(){var t,e,n,r,i,o=this._tooltip,a=this._timers,s=this._handler.handlers(),c=this._eventListeners;for(t=a.length;--t>=0;)a[t].stop();for(t=c.length;--t>=0;)for(e=(n=c[t]).sources.length;--e>=0;)n.sources[e].removeEventListener(n.type,n.handler);for(o&&o.call(this,this._handler,null,null,null),t=s.length;--t>=0;)i=s[t].type,r=s[t].handler,this._handler.off(i,r);return this},hover:function(t,e){return e=[e||"update",(t=[t||"hover"])[0]],this.on(this.events("view","pointerover",m_),g_,v_(t)),this.on(this.events("view","pointerout",m_),g_,v_(e)),this},data:function(t,e){return arguments.length<2?o_(this,t).values.value:a_.call(this,t,Ir().remove(O).insert(e))},change:a_,insert:function(t,e){return a_.call(this,t,Ir().insert(e))},remove:function(t,e){return a_.call(this,t,Ir().remove(e))},scale:function(t){var e=this._runtime.scales;return Dt(e,t)||F("Unrecognized scale or projection: "+t),e[t].value},initialize:function(t,e){const n=this,r=n._renderType,i=n._eventConfig.bind,o=Gh(r);t=n._el=t?M_(n,t,!0):null,function(t){const e=t.container();e&&(e.setAttribute("role","graphics-document"),e.setAttribute("aria-roleDescription","visualization"),n_(e,t.description()))}(n),o||n.error("Unrecognized renderer type: "+r);const a=o.handler||Ud,s=t?o.renderer:o.headless;return n._renderer=s?D_(n,n._renderer,t,s):null,n._handler=function(t,e,n,r){const i=new r(t.loader(),C_(t,t.tooltip())).scene(t.scenegraph().root).initialize(n,u_(t),t);return e&&e.handlers().forEach((t=>{i.on(t.type,t.handler)})),i}(n,n._handler,t,a),n._redraw=!0,t&&"none"!==i&&(e=e?n._elBind=M_(n,e,!0):t.appendChild(y_("form",{class:"vega-bindings"})),n._bind.forEach((t=>{t.param.element&&"container"!==i&&(t.element=M_(n,t.param.element,!!t.param.input))})),n._bind.forEach((t=>{!function(t,e,n){if(!e)return;const r=n.param;let i=n.state;i||(i=n.state={elements:null,active:!1,set:null,update:e=>{e!=t.signal(r.signal)&&t.runAsync(null,(()=>{i.source=!0,t.signal(r.signal,e)}))}},r.debounce&&(i.update=wt(r.debounce,i.update))),(null==r.input&&r.element?b_:A_)(i,e,r,t),i.active||(t.on(t._signals[r.signal],null,(()=>{i.source?i.source=!1:i.set(t.signal(r.signal))})),i.active=!0)}(n,t.element||e,t)}))),n},toImageURL:async function(t,e){t!==Wh.Canvas&&t!==Wh.SVG&&t!==Wh.PNG&&F("Unrecognized image type: "+t);const n=await N_(this,t,e);return t===Wh.SVG?function(t,e){const n=new Blob([t],{type:e});return window.URL.createObjectURL(n)}(n.svg(),"image/svg+xml"):n.canvas().toDataURL("image/png")},toCanvas:async function(t,e){return(await N_(this,Wh.Canvas,t,e)).canvas()},toSVG:async function(t){return(await N_(this,Wh.SVG,t)).svg()},getState:function(t){return this._runtime.getState(t||{data:I_,signals:j_,recurse:!0})},setState:function(t){return this.runAsync(null,(e=>{e._trigger=!1,e._runtime.setState(t)}),(t=>{t._trigger=!0})),this},_watchPixelRatio:function(){if("canvas"===this.renderer()&&this._renderer._canvas){let t=null;const e=()=>{null!=t&&t();const n=matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)"));n.addEventListener("change",e),t=()=>{n.removeEventListener("change",e)},this._renderer._canvas.getContext("2d").pixelRatio=window.devicePixelRatio||1,this._redraw=!0,this._resize=1,this.resize().runAsync()};e()}}});const X_="view",Z_="[",J_="]",Q_="{",K_="}",tw=":",ew=",",nw="@",rw=">",iw=/[[\]{}]/,ow={"*":1,arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1};let aw,sw;function cw(t,e,n){return aw=e||X_,sw=n||ow,lw(t.trim()).map(fw)}function uw(t,e,n,r,i){const o=t.length;let a,s=0;for(;e<o;++e){if(a=t[e],!s&&a===n)return e;i&&i.indexOf(a)>=0?--s:r&&r.indexOf(a)>=0&&++s}return e}function lw(t){const e=[],n=t.length;let r=0,i=0;for(;i<n;)i=uw(t,i,ew,Z_+Q_,J_+K_),e.push(t.substring(r,i).trim()),r=++i;if(0===e.length)throw"Empty event selector: "+t;return e}function fw(t){return"["===t[0]?function(t){const e=t.length;let n,r=1;if(r=uw(t,r,J_,Z_,J_),r===e)throw"Empty between selector: "+t;if(n=lw(t.substring(1,r)),2!==n.length)throw"Between selector must have two elements: "+t;if(t=t.slice(r+1).trim(),t[0]!==rw)throw"Expected '>' after between selector: "+t;n=n.map(fw);const i=fw(t.slice(1).trim());if(i.between)return{between:n,stream:i};i.between=n;return i}(t):function(t){const e={source:aw},n=[];let r,i,o=[0,0],a=0,s=0,c=t.length,u=0;if(t[c-1]===K_){if(u=t.lastIndexOf(Q_),!(u>=0))throw"Unmatched right brace: "+t;try{o=function(t){const e=t.split(ew);if(!t.length||e.length>2)throw t;return e.map((e=>{const n=+e;if(n!==n)throw t;return n}))}(t.substring(u+1,c-1))}catch(l){throw"Invalid throttle specification: "+t}c=(t=t.slice(0,u).trim()).length,u=0}if(!c)throw t;t[0]===nw&&(a=++u);r=uw(t,u,tw),r<c&&(n.push(t.substring(s,r).trim()),s=u=++r);if(u=uw(t,u,Z_),u===c)n.push(t.substring(s,c).trim());else if(n.push(t.substring(s,u).trim()),i=[],s=++u,s===c)throw"Unmatched left bracket: "+t;for(;u<c;){if(u=uw(t,u,J_),u===c)throw"Unmatched left bracket: "+t;if(i.push(t.substring(s,u).trim()),u<c-1&&t[++u]!==Z_)throw"Expected left bracket: "+t;s=++u}if(!(c=n.length)||iw.test(n[c-1]))throw"Invalid event selector: "+t;c>1?(e.type=n[1],a?e.markname=n[0].slice(1):!function(t){return sw[t]}(n[0])?e.source=n[0]:e.marktype=n[0]):e.type=n[0];"!"===e.type.slice(-1)&&(e.consume=!0,e.type=e.type.slice(0,-1));null!=i&&(e.filter=i);o[0]&&(e.throttle=o[0]);o[1]&&(e.debounce=o[1]);return e}(t)}function dw(t){return W(t)?t:{type:t||"pad"}}const hw=t=>+t||0,pw=t=>({top:t,bottom:t,left:t,right:t});function mw(t){return W(t)?t.signal?t:{top:hw(t.top),bottom:hw(t.bottom),left:hw(t.left),right:hw(t.right)}:pw(hw(t))}const gw=t=>W(t)&&!q(t)?kt({},t):{value:t};function vw(t,e,n,r){if(null!=n){return W(n)&&!q(n)||q(n)&&n.length&&W(n[0])?t.update[e]=n:t[r||"enter"][e]={value:n},1}return 0}function yw(t,e,n){for(const r in e)vw(t,r,e[r]);for(const r in n)vw(t,r,n[r],"update")}function bw(t,e,n){for(const r in e)n&&Dt(n,r)||(t[r]=kt(t[r]||{},e[r]));return t}function Aw(t,e){return e&&(e.enter&&e.enter[t]||e.update&&e.update[t])}const xw="mark",_w="frame",ww="scope",kw="axis",Ew="axis-domain",Fw="axis-grid",Dw="axis-label",Cw="axis-tick",Mw="axis-title",Sw="legend",Tw="legend-band",Nw="legend-entry",Ow="legend-gradient",Bw="legend-label",Rw="legend-symbol",zw="legend-title",Pw="title",Lw="title-text",Iw="title-subtitle";function jw(t,e,n){t[e]=n&&n.signal?{signal:n.signal}:{value:n}}const Uw=t=>Lt(t)?Vt(t):t.signal?"(".concat(t.signal,")"):Gw(t);function qw(t){if(null!=t.gradient)return function(t){const e=[t.start,t.stop,t.count].map((t=>null==t?null:Vt(t)));for(;e.length&&null==$(e);)e.pop();return e.unshift(Uw(t.gradient)),"gradient(".concat(e.join(","),")")}(t);let e=t.signal?"(".concat(t.signal,")"):t.color?function(t){return t.c?Ww("hcl",t.h,t.c,t.l):t.h||t.s?Ww("hsl",t.h,t.s,t.l):t.l||t.a?Ww("lab",t.l,t.a,t.b):t.r||t.g||t.b?Ww("rgb",t.r,t.g,t.b):null}(t.color):null!=t.field?Gw(t.field):void 0!==t.value?Vt(t.value):void 0;return null!=t.scale&&(e=function(t,e){const n=Uw(t.scale);null!=t.range?e="lerp(_range(".concat(n,"), ").concat(+t.range,")"):(void 0!==e&&(e="_scale(".concat(n,", ").concat(e,")")),t.band&&(e=(e?e+"+":"")+"_bandwidth(".concat(n,")")+(1===+t.band?"":"*"+Hw(t.band)),t.extra&&(e="(datum.extra ? _scale(".concat(n,", datum.extra.value) : ").concat(e,")"))),null==e&&(e="0"));return e}(t,e)),void 0===e&&(e=null),null!=t.exponent&&(e="pow(".concat(e,",").concat(Hw(t.exponent),")")),null!=t.mult&&(e+="*".concat(Hw(t.mult))),null!=t.offset&&(e+="+".concat(Hw(t.offset))),t.round&&(e="round(".concat(e,")")),e}const Ww=(t,e,n,r)=>"(".concat(t,"(").concat([e,n,r].map(qw).join(","),")+'')");function Hw(t){return W(t)?"("+qw(t)+")":t}function Gw(t){return Yw(W(t)?t:{datum:t})}function Yw(t){let e,n,r;if(t.signal)e="datum",r=t.signal;else if(t.group||t.parent){for(n=Math.max(1,t.level||1),e="item";n-- >0;)e+=".mark.group";t.parent?(r=t.parent,e+=".datum"):r=t.group}else t.datum?(e="datum",r=t.datum):F("Invalid field reference: "+Vt(t));return t.signal||(r=Lt(r)?D(r).map(Vt).join("]["):Yw(r)),e+"["+r+"]"}function Vw(t,e,n,r,i,o){const a={};(o=o||{}).encoders={$encode:a},t=function(t,e,n,r,i){const o={},a={};let s,c,u,l;for(c in c="lineBreak","text"!==e||null==i[c]||Aw(c,t)||jw(o,c,i[c]),("legend"==n||String(n).startsWith("axis"))&&(n=null),l=n===_w?i.group:n===xw?kt({},i.mark,i[e]):null,l)u=Aw(c,t)||("fill"===c||"stroke"===c)&&(Aw("fill",t)||Aw("stroke",t)),u||jw(o,c,l[c]);for(c in ht(r).forEach((e=>{const n=i.style&&i.style[e];for(const r in n)Aw(r,t)||jw(o,r,n[r])})),t=kt({},t),o)l=o[c],l.signal?(s=s||{})[c]=l:a[c]=l;return t.enter=kt(a,t.enter),s&&(t.update=kt(s,t.update)),t}(t,e,n,r,i.config);for(const s in t)a[s]=$w(t[s],e,o,i);return o}function $w(t,e,n,r){const i={},o={};for(const s in t)null!=t[s]&&(i[s]=Xw((a=t[s],q(a)?function(t){let e="";return t.forEach((t=>{const n=qw(t);e+=t.test?"(".concat(t.test,")?").concat(n,":"):n})),":"===$(e)&&(e+="null"),e}(a):qw(a)),r,n,o));var a;return{$expr:{marktype:e,channels:i},$fields:Object.keys(o),$output:Object.keys(t)}}function Xw(t,e,n,r){const i=Wx(t,e);return i.$fields.forEach((t=>r[t]=1)),kt(n,i.$params),i.$expr}const Zw="outer",Jw=["value","update","init","react","bind"];function Qw(t,e){F(t+' for "outer" push: '+Vt(e))}function Kw(t,e){const n=t.name;if(t.push===Zw)e.signals[n]||Qw("No prior signal definition",n),Jw.forEach((e=>{void 0!==t[e]&&Qw("Invalid property ",e)}));else{const r=e.addSignal(n,t.value);!1===t.react&&(r.react=!1),t.bind&&e.addBinding(n,t.bind)}}function tk(t,e,n,r){this.id=-1,this.type=t,this.value=e,this.params=n,r&&(this.parent=r)}function ek(t,e,n,r){return new tk(t,e,n,r)}function nk(t,e){return ek("operator",t,e)}function rk(t){const e={$ref:t.id};return t.id<0&&(t.refs=t.refs||[]).push(e),e}function ik(t,e){return e?{$field:t,$name:e}:{$field:t}}const ok=ik("key");function ak(t,e){return{$compare:t,$order:e}}function sk(t,e){return(t&&t.signal?"$"+t.signal:t||"")+(t&&e?"_":"")+(e&&e.signal?"$"+e.signal:e||"")}const ck="scope",uk="view";function lk(t){return t&&t.signal}function fk(t){if(lk(t))return!0;if(W(t))for(const e in t)if(fk(t[e]))return!0;return!1}function dk(t,e){return null!=t?t:e}function hk(t){return t&&t.signal||t}const pk="timer";function mk(t,e){return(t.merge?gk:t.stream?vk:t.type?yk:F("Invalid stream specification: "+Vt(t)))(t,e)}function gk(t,e){const n=bk({merge:t.merge.map((t=>mk(t,e)))},t,e);return e.addStream(n).id}function vk(t,e){const n=bk({stream:mk(t.stream,e)},t,e);return e.addStream(n).id}function yk(t,e){let n;t.type===pk?(n=e.event(pk,t.throttle),t={between:t.between,filter:t.filter}):n=e.event(function(t){return t===ck?uk:t||uk}(t.source),t.type);const r=bk({stream:n},t,e);return 1===Object.keys(r).length?n:e.addStream(r).id}function bk(t,e,n){let r=e.between;return r&&(2!==r.length&&F('Stream "between" parameter must have 2 entries: '+Vt(e)),t.between=[mk(r[0],n),mk(r[1],n)]),r=e.filter?[].concat(e.filter):[],(e.marktype||e.markname||e.markrole)&&r.push(function(t,e,n){const r="event.item";return r+(t&&"*"!==t?"&&"+r+".mark.marktype==='"+t+"'":"")+(n?"&&"+r+".mark.role==='"+n+"'":"")+(e?"&&"+r+".mark.name==='"+e+"'":"")}(e.marktype,e.markname,e.markrole)),e.source===ck&&r.push("inScope(event.item)"),r.length&&(t.filter=Wx("("+r.join(")&&(")+")",n).$expr),null!=(r=e.throttle)&&(t.throttle=+r),null!=(r=e.debounce)&&(t.debounce=+r),e.consume&&(t.consume=!0),t}const Ak={code:"_.$value",ast:{type:"Identifier",value:"value"}};function xk(t,e,n){const r=t.encode,i={target:n};let o=t.events,a=t.update,s=[];o||F("Signal update missing events specification."),Lt(o)&&(o=cw(o,e.isSubscope()?ck:uk)),o=ht(o).filter((t=>t.signal||t.scale?(s.push(t),0):1)),s.length>1&&(s=[_k(s)]),o.length&&s.push(o.length>1?{merge:o}:o[0]),null!=r&&(a&&F("Signal encode and update are mutually exclusive."),a="encode(item(),"+Vt(r)+")"),i.update=Lt(a)?Wx(a,e):null!=a.expr?Wx(a.expr,e):null!=a.value?a.value:null!=a.signal?{$expr:Ak,$params:{$value:e.signalRef(a.signal)}}:F("Invalid signal update specification."),t.force&&(i.options={force:!0}),s.forEach((t=>e.addUpdate(kt(function(t,e){return{source:t.signal?e.signalRef(t.signal):t.scale?e.scaleRef(t.scale):mk(t,e)}}(t,e),i))))}function _k(t){return{signal:"["+t.map((t=>t.scale?'scale("'+t.scale+'")':t.signal))+"]"}}const wk=t=>(e,n,r)=>ek(t,n,e||void 0,r),kk=wk("aggregate"),Ek=wk("axisticks"),Fk=wk("bound"),Dk=wk("collect"),Ck=wk("compare"),Mk=wk("datajoin"),Sk=wk("encode"),Tk=wk("expression"),Nk=wk("facet"),Ok=wk("field"),Bk=wk("key"),Rk=wk("legendentries"),zk=wk("load"),Pk=wk("mark"),Lk=wk("multiextent"),Ik=wk("multivalues"),jk=wk("overlap"),Uk=wk("params"),qk=wk("prefacet"),Wk=wk("projection"),Hk=wk("proxy"),Gk=wk("relay"),Yk=wk("render"),Vk=wk("scale"),$k=wk("sieve"),Xk=wk("sortitems"),Zk=wk("viewlayout"),Jk=wk("values");let Qk=0;const Kk={min:"min",max:"max",count:"sum"};function tE(t,e){const n=e.getScale(t.name).params;let r;for(r in n.domain=iE(t.domain,t,e),null!=t.range&&(n.range=dE(t,e,n)),null!=t.interpolate&&function(t,e){e.interpolate=eE(t.type||t),null!=t.gamma&&(e.interpolateGamma=eE(t.gamma))}(t.interpolate,n),null!=t.nice&&(n.nice=function(t,e){return t.signal?e.signalRef(t.signal):W(t)?{interval:eE(t.interval),step:eE(t.step)}:eE(t)}(t.nice,e)),null!=t.bins&&(n.bins=function(t,e){return t.signal||q(t)?nE(t,e):e.objectProperty(t)}(t.bins,e)),t)Dt(n,r)||"name"===r||(n[r]=eE(t[r],e))}function eE(t,e){return W(t)?t.signal?e.signalRef(t.signal):F("Unsupported object: "+Vt(t)):t}function nE(t,e){return t.signal?e.signalRef(t.signal):t.map((t=>eE(t,e)))}function rE(t){F("Can not find data set: "+Vt(t))}function iE(t,e,n){if(t)return t.signal?n.signalRef(t.signal):(q(t)?oE:t.fields?sE:aE)(t,e,n);null==e.domainMin&&null==e.domainMax||F("No scale domain defined for domainMin/domainMax to override.")}function oE(t,e,n){return t.map((t=>eE(t,n)))}function aE(t,e,n){const r=n.getData(t.data);return r||rE(t.data),Ac(e.type)?r.valuesRef(n,t.field,uE(t.sort,!1)):kc(e.type)?r.domainRef(n,t.field):r.extentRef(n,t.field)}function sE(t,e,n){const r=t.data,i=t.fields.reduce(((t,e)=>(e=Lt(e)?{data:r,field:e}:q(e)||e.signal?function(t,e){const n="_:vega:_"+Qk++,r=Dk({});if(q(t))r.value={$ingest:t};else if(t.signal){const i="setdata("+Vt(n)+","+t.signal+")";r.params.input=e.signalRef(i)}return e.addDataPipeline(n,[r,$k({})]),{data:n,field:"data"}}(e,n):e,t.push(e),t)),[]);return(Ac(e.type)?cE:kc(e.type)?lE:fE)(t,n,i)}function cE(t,e,n){const r=uE(t.sort,!0);let i,o;const a=n.map((t=>{const n=e.getData(t.data);return n||rE(t.data),n.countsRef(e,t.field,r)})),s={groupby:ok,pulse:a};r&&(i=r.op||"count",o=r.field?sk(i,r.field):"count",s.ops=[Kk[i]],s.fields=[e.fieldRef(o)],s.as=[o]),i=e.add(kk(s));const c=e.add(Dk({pulse:rk(i)}));return o=e.add(Jk({field:ok,sort:e.sortRef(r),pulse:rk(c)})),rk(o)}function uE(t,e){return t&&(t.field||t.op?t.field||"count"===t.op?e&&t.field&&t.op&&!Kk[t.op]&&F("Multiple domain scales can not be sorted using "+t.op):F("No field provided for sort aggregate op: "+t.op):W(t)?t.field="key":t={field:"key"}),t}function lE(t,e,n){const r=n.map((t=>{const n=e.getData(t.data);return n||rE(t.data),n.domainRef(e,t.field)}));return rk(e.add(Ik({values:r})))}function fE(t,e,n){const r=n.map((t=>{const n=e.getData(t.data);return n||rE(t.data),n.extentRef(e,t.field)}));return rk(e.add(Lk({extents:r})))}function dE(t,e,n){const r=e.config.range;let i=t.range;if(i.signal)return e.signalRef(i.signal);if(Lt(i)){if(r&&Dt(r,i))return dE(t=kt({},t,{range:r[i]}),e,n);"width"===i?i=[0,{signal:"width"}]:"height"===i?i=Ac(t.type)?[0,{signal:"height"}]:[{signal:"height"},0]:F("Unrecognized scale range value: "+Vt(i))}else{if(i.scheme)return n.scheme=q(i.scheme)?nE(i.scheme,e):eE(i.scheme,e),i.extent&&(n.schemeExtent=nE(i.extent,e)),void(i.count&&(n.schemeCount=eE(i.count,e)));if(i.step)return void(n.rangeStep=eE(i.step,e));if(Ac(t.type)&&!q(i))return iE(i,t,e);q(i)||F("Unsupported range type: "+Vt(i))}return i.map((t=>(q(t)?nE:eE)(t,e)))}function hE(t,e,n){return q(t)?t.map((t=>hE(t,e,n))):W(t)?t.signal?n.signalRef(t.signal):"fit"===e?t:F("Unsupported parameter object: "+Vt(t)):t}const pE="top",mE="left",gE="right",vE="bottom",yE="center",bE="vertical",AE="start",xE="end",_E="index",wE="label",kE="offset",EE="perc",FE="perc2",DE="value",CE="guide-label",ME="guide-title",SE="group-title",TE="group-subtitle",NE="symbol",OE="gradient",BE="discrete",RE="size",zE=[RE,"shape","fill","stroke","strokeWidth","strokeDash","opacity"],PE={name:1,style:1,interactive:1},LE={value:0},IE={value:1},jE="group",UE="rect",qE="rule",WE="symbol",HE="text";function GE(t){return t.type=jE,t.interactive=t.interactive||!1,t}function YE(t,e){const n=(n,r)=>dk(t[n],dk(e[n],r));return n.isVertical=n=>bE===dk(t.direction,e.direction||(n?e.symbolDirection:e.gradientDirection)),n.gradientLength=()=>dk(t.gradientLength,e.gradientLength||e.gradientWidth),n.gradientThickness=()=>dk(t.gradientThickness,e.gradientThickness||e.gradientHeight),n.entryColumns=()=>dk(t.columns,dk(e.columns,+n.isVertical(!0))),n}function VE(t,e){const n=e&&(e.update&&e.update[t]||e.enter&&e.enter[t]);return n&&n.signal?n:n?n.value:null}function $E(t,e,n){return"item.anchor === '".concat(AE,"' ? ").concat(t," : item.anchor === '").concat(xE,"' ? ").concat(e," : ").concat(n)}const XE=$E(Vt(mE),Vt(gE),Vt(yE));function ZE(t,e){return e?t?W(t)?Object.assign({},t,{offset:ZE(t.offset,e)}):{value:t,offset:e}:e:t}function JE(t,e){return e?(t.name=e.name,t.style=e.style||t.style,t.interactive=!!e.interactive,t.encode=bw(t.encode,e,PE)):t.interactive=!1,t}function QE(t,e,n,r){const i=YE(t,n),o=i.isVertical(),a=i.gradientThickness(),s=i.gradientLength();let c,u,l,f,d;o?(u=[0,1],l=[0,0],f=a,d=s):(u=[0,0],l=[1,0],f=s,d=a);const h={enter:c={opacity:LE,x:LE,y:LE,width:gw(f),height:gw(d)},update:kt({},c,{opacity:IE,fill:{gradient:e,start:u,stop:l}}),exit:{opacity:LE}};return yw(h,{stroke:i("gradientStrokeColor"),strokeWidth:i("gradientStrokeWidth")},{opacity:i("gradientOpacity")}),JE({type:UE,role:Ow,encode:h},r)}function KE(t,e,n,r,i){const o=YE(t,n),a=o.isVertical(),s=o.gradientThickness(),c=o.gradientLength();let u,l,f,d,h="";a?(u="y",f="y2",l="x",d="width",h="1-"):(u="x",f="x2",l="y",d="height");const p={opacity:LE,fill:{scale:e,field:DE}};p[u]={signal:h+"datum."+EE,mult:c},p[l]=LE,p[f]={signal:h+"datum."+FE,mult:c},p[d]=gw(s);const m={enter:p,update:kt({},p,{opacity:IE}),exit:{opacity:LE}};return yw(m,{stroke:o("gradientStrokeColor"),strokeWidth:o("gradientStrokeWidth")},{opacity:o("gradientOpacity")}),JE({type:UE,role:Tw,key:DE,from:i,encode:m},r)}const tF="datum.".concat(EE,'<=0?"').concat(mE,'":datum.').concat(EE,'>=1?"').concat(gE,'":"').concat(yE,'"'),eF="datum.".concat(EE,'<=0?"').concat(vE,'":datum.').concat(EE,'>=1?"').concat(pE,'":"').concat("middle",'"');function nF(t,e,n,r){const i=YE(t,e),o=i.isVertical(),a=gw(i.gradientThickness()),s=i.gradientLength();let c,u,l,f,d=i("labelOverlap"),h="";const p={enter:c={opacity:LE},update:u={opacity:IE,text:{field:wE}},exit:{opacity:LE}};return yw(p,{fill:i("labelColor"),fillOpacity:i("labelOpacity"),font:i("labelFont"),fontSize:i("labelFontSize"),fontStyle:i("labelFontStyle"),fontWeight:i("labelFontWeight"),limit:dk(t.labelLimit,e.gradientLabelLimit)}),o?(c.align={value:"left"},c.baseline=u.baseline={signal:eF},l="y",f="x",h="1-"):(c.align=u.align={signal:tF},c.baseline={value:"top"},l="x",f="y"),c[l]=u[l]={signal:h+"datum."+EE,mult:s},c[f]=u[f]=a,a.offset=dk(t.labelOffset,e.gradientLabelOffset)||0,d=d?{separation:i("labelSeparation"),method:d,order:"datum."+_E}:void 0,JE({type:HE,role:Bw,style:CE,key:DE,from:r,encode:p,overlap:d},n)}function rF(t,e,n,r,i){const o=YE(t,e),a=n.entries,s=!(!a||!a.interactive),c=a?a.name:void 0,u=o("clipHeight"),l=o("symbolOffset"),f={data:"value"},d="(".concat(i,") ? datum.").concat(kE," : datum.").concat(RE),h=u?gw(u):{field:RE},p="datum.".concat(_E),m="max(1, ".concat(i,")");let g,v,y,b,A;h.mult=.5,g={enter:v={opacity:LE,x:{signal:d,mult:.5,offset:l},y:h},update:y={opacity:IE,x:v.x,y:v.y},exit:{opacity:LE}};let x=null,_=null;t.fill||(x=e.symbolBaseFillColor,_=e.symbolBaseStrokeColor),yw(g,{fill:o("symbolFillColor",x),shape:o("symbolType"),size:o("symbolSize"),stroke:o("symbolStrokeColor",_),strokeDash:o("symbolDash"),strokeDashOffset:o("symbolDashOffset"),strokeWidth:o("symbolStrokeWidth")},{opacity:o("symbolOpacity")}),zE.forEach((e=>{t[e]&&(y[e]=v[e]={scale:t[e],field:DE})}));const w=JE({type:WE,role:Rw,key:DE,from:f,clip:!!u||void 0,encode:g},n.symbols),k=gw(l);k.offset=o("labelOffset"),g={enter:v={opacity:LE,x:{signal:d,offset:k},y:h},update:y={opacity:IE,text:{field:wE},x:v.x,y:v.y},exit:{opacity:LE}},yw(g,{align:o("labelAlign"),baseline:o("labelBaseline"),fill:o("labelColor"),fillOpacity:o("labelOpacity"),font:o("labelFont"),fontSize:o("labelFontSize"),fontStyle:o("labelFontStyle"),fontWeight:o("labelFontWeight"),limit:o("labelLimit")});const E=JE({type:HE,role:Bw,style:CE,key:DE,from:f,encode:g},n.labels);return g={enter:{noBound:{value:!u},width:LE,height:u?gw(u):LE,opacity:LE},exit:{opacity:LE},update:y={opacity:IE,row:{signal:null},column:{signal:null}}},o.isVertical(!0)?(b="ceil(item.mark.items.length / ".concat(m,")"),y.row.signal="".concat(p,"%").concat(b),y.column.signal="floor(".concat(p," / ").concat(b,")"),A={field:["row",p]}):(y.row.signal="floor(".concat(p," / ").concat(m,")"),y.column.signal="".concat(p," % ").concat(m),A={field:p}),y.column.signal="(".concat(i,")?").concat(y.column.signal,":").concat(p),GE({role:ww,from:r={facet:{data:r,name:"value",groupby:_E}},encode:bw(g,a,PE),marks:[w,E],name:c,interactive:s,sort:A})}const iF='item.orient === "left"',oF='item.orient === "right"',aF="(".concat(iF," || ").concat(oF,")"),sF="datum.vgrad && ".concat(aF),cF=$E('"top"','"bottom"','"middle"'),uF=$E('"right"','"left"','"center"'),lF="datum.vgrad && ".concat(oF," ? (").concat(uF,") : (").concat(aF," && !(datum.vgrad && ").concat(iF,')) ? "left" : ').concat(XE),fF="item._anchor || (".concat(aF,' ? "middle" : "start")'),dF="".concat(sF," ? (").concat(iF," ? -90 : 90) : 0"),hF="".concat(aF," ? (datum.vgrad ? (").concat(oF,' ? "bottom" : "top") : ').concat(cF,') : "top"');function pF(t,e){let n;return W(t)&&(t.signal?n=t.signal:t.path?n="pathShape("+mF(t.path)+")":t.sphere&&(n="geoShape("+mF(t.sphere)+', {type: "Sphere"})')),n?e.signalRef(n):!!t}function mF(t){return W(t)&&t.signal?t.signal:Vt(t)}function gF(t){const e=t.role||"";return e.startsWith("axis")||e.startsWith("legend")||e.startsWith("title")?e:t.type===jE?ww:e||xw}function vF(t){return{marktype:t.type,name:t.name||void 0,role:t.role||gF(t),zindex:+t.zindex||void 0,aria:t.aria,description:t.description}}function yF(t,e){return t&&t.signal?e.signalRef(t.signal):!1!==t}function bF(t,e){const n=di(t.type);n||F("Unrecognized transform type: "+Vt(t.type));const r=ek(n.type.toLowerCase(),null,AF(n,t,e));return t.signal&&e.addSignal(t.signal,e.proxy(r)),r.metadata=n.metadata||{},r}function AF(t,e,n){const r={},i=t.params.length;for(let o=0;o<i;++o){const i=t.params[o];r[i.name]=xF(i,e,n)}return r}function xF(t,e,n){const r=t.type,i=e[t.name];return"index"===r?function(t,e,n){Lt(e.from)||F('Lookup "from" parameter must be a string literal.');return n.getData(e.from).lookupRef(n,e.key)}(0,e,n):void 0!==i?"param"===r?function(t,e,n){const r=e[t.name];return t.array?(q(r)||F("Expected an array of sub-parameters. Instead: "+Vt(r)),r.map((e=>wF(t,e,n)))):wF(t,r,n)}(t,e,n):"projection"===r?n.projectionRef(e[t.name]):t.array&&!lk(i)?i.map((e=>_F(t,e,n))):_F(t,i,n):void(t.required&&F("Missing required "+Vt(e.type)+" parameter: "+Vt(t.name)))}function _F(t,e,n){const r=t.type;if(lk(e))return DF(r)?F("Expression references can not be signals."):CF(r)?n.fieldRef(e):MF(r)?n.compareRef(e):n.signalRef(e.signal);{const i=t.expr||CF(r);return i&&kF(e)?n.exprRef(e.expr,e.as):i&&EF(e)?ik(e.field,e.as):DF(r)?Wx(e,n):FF(r)?rk(n.getData(e).values):CF(r)?ik(e):MF(r)?n.compareRef(e):e}}function wF(t,e,n){const r=t.params.length;let i;for(let a=0;a<r;++a){i=t.params[a];for(const t in i.key)if(i.key[t]!==e[t]){i=null;break}if(i)break}i||F("Unsupported parameter: "+Vt(e));const o=kt(AF(i,e,n),i.key);return rk(n.add(Uk(o)))}const kF=t=>t&&t.expr,EF=t=>t&&t.field,FF=t=>"data"===t,DF=t=>"expr"===t,CF=t=>"field"===t,MF=t=>"compare"===t;function SF(t,e){return t.$ref?t:t.data&&t.data.$ref?t.data:rk(e.getData(t.data).output)}function TF(t,e,n,r,i){this.scope=t,this.input=e,this.output=n,this.values=r,this.aggregate=i,this.index={}}function NF(t){return Lt(t)?t:null}function OF(t,e,n){const r=sk(n.op,n.field);let i;if(e.ops){for(let o=0,a=e.as.length;o<a;++o)if(e.as[o]===r)return}else e.ops=["count"],e.fields=[null],e.as=["count"];n.op&&(e.ops.push((i=n.op.signal)?t.signalRef(i):n.op),e.fields.push(t.fieldRef(n.field)),e.as.push(r))}function BF(t,e,n,r,i,o,a){const s=e[n]||(e[n]={}),c=function(t){return W(t)?("descending"===t.order?"-":"+")+sk(t.op,t.field):""}(o);let u,l,f=NF(i);if(null!=f&&(t=e.scope,f+=c?"|"+c:"",u=s[f]),!u){const n=o?{field:ok,pulse:e.countsRef(t,i,o)}:{field:t.fieldRef(i),pulse:rk(e.output)};c&&(n.sort=t.sortRef(o)),l=t.add(ek(r,void 0,n)),a&&(e.index[i]=l),u=rk(l),null!=f&&(s[f]=u)}return u}function RF(t,e,n){const r=t.remove,i=t.insert,o=t.toggle,a=t.modify,s=t.values,c=e.add(nk()),u=Wx("if("+t.trigger+',modify("'+n+'",'+[i,r,o,a,s].map((t=>null==t?"null":t)).join(",")+"),0)",e);c.update=u.$expr,c.params=u.$params}function zF(t,e){const n=gF(t),r=t.type===jE,i=t.from&&t.from.facet,o=t.overlap;let a,s,c,u,l,f,d,h=t.layout||n===ww||n===_w;const p=n===xw||h||i,m=function(t,e,n){let r,i,o,a,s;return t?(r=t.facet)&&(e||F("Only group marks can be faceted."),null!=r.field?a=s=SF(r,n):(t.data?s=rk(n.getData(t.data).aggregate):(o=bF(kt({type:"aggregate",groupby:ht(r.groupby)},r.aggregate),n),o.params.key=n.keyRef(r.groupby),o.params.pulse=SF(r,n),a=s=rk(n.add(o))),i=n.keyRef(r.groupby,!0))):a=rk(n.add(Dk(null,[{}]))),a||(a=SF(t,n)),{key:i,pulse:a,parent:s}}(t.from,r,e);s=e.add(Mk({key:m.key||(t.key?ik(t.key):void 0),pulse:m.pulse,clean:!r}));const g=rk(s);s=c=e.add(Dk({pulse:g})),s=e.add(Pk({markdef:vF(t),interactive:yF(t.interactive,e),clip:pF(t.clip,e),context:{$context:!0},groups:e.lookup(),parent:e.signals.parent?e.signalRef("parent"):null,index:e.markpath(),pulse:rk(s)}));const v=rk(s);s=u=e.add(Sk(Vw(t.encode,t.type,n,t.style,e,{mod:!1,pulse:v}))),s.params.parent=e.encode(),t.transform&&t.transform.forEach((t=>{const n=bF(t,e),r=n.metadata;(r.generates||r.changes)&&F("Mark transforms should not generate new data."),r.nomod||(u.params.mod=!0),n.params.pulse=rk(s),e.add(s=n)})),t.sort&&(s=e.add(Xk({sort:e.compareRef(t.sort),pulse:rk(s)})));const y=rk(s);(i||h)&&(h=e.add(Zk({layout:e.objectProperty(t.layout),legends:e.legends,mark:v,pulse:y})),f=rk(h));const b=e.add(Fk({mark:v,pulse:f||y}));d=rk(b),r&&(p&&(a=e.operators,a.pop(),h&&a.pop()),e.pushState(y,f||d,g),i?function(t,e,n){const r=t.from.facet,i=r.name,o=SF(r,e);let a;r.name||F("Facet must have a name: "+Vt(r)),r.data||F("Facet must reference a data set: "+Vt(r)),r.field?a=e.add(qk({field:e.fieldRef(r.field),pulse:o})):r.groupby?a=e.add(Nk({key:e.keyRef(r.groupby),group:rk(e.proxy(n.parent)),pulse:o})):F("Facet must specify groupby or field: "+Vt(r));const s=e.fork(),c=s.add(Dk()),u=s.add($k({pulse:rk(c)}));s.addData(i,new TF(s,c,c,u)),s.addSignal("parent",null),a.params.subflow={$subflow:s.parse(t).toRuntime()}}(t,e,m):p?function(t,e,n){const r=e.add(qk({pulse:n.pulse})),i=e.fork();i.add($k()),i.addSignal("parent",null),r.params.subflow={$subflow:i.parse(t).toRuntime()}}(t,e,m):e.parse(t),e.popState(),p&&(h&&a.push(h),a.push(b))),o&&(d=function(t,e,n){const r=t.method,i=t.bound,o=t.separation,a={separation:lk(o)?n.signalRef(o.signal):o,method:lk(r)?n.signalRef(r.signal):r,pulse:e};t.order&&(a.sort=n.compareRef({field:t.order}));if(i){const t=i.tolerance;a.boundTolerance=lk(t)?n.signalRef(t.signal):+t,a.boundScale=n.scaleRef(i.scale),a.boundOrient=i.orient}return rk(n.add(jk(a)))}(o,d,e));const A=e.add(Yk({pulse:d})),x=e.add($k({pulse:rk(A)},void 0,e.parent()));null!=t.name&&(l=t.name,e.addData(l,new TF(e,c,A,x)),t.on&&t.on.forEach((t=>{(t.insert||t.remove||t.toggle)&&F("Marks only support modify triggers."),RF(t,e,l)})))}function PF(t,e){const n=e.config.legend,r=t.encode||{},i=YE(t,n),o=r.legend||{},a=o.name||void 0,s=o.interactive,c=o.style,u={};let l,f,d,h=0;zE.forEach((e=>t[e]?(u[e]=t[e],h=h||t[e]):0)),h||F("Missing valid scale for legend.");const p=function(t,e){let n=t.type||NE;t.type||1!==function(t){return zE.reduce(((e,n)=>e+(t[n]?1:0)),0)}(t)||!t.fill&&!t.stroke||(n=bc(e)?OE:xc(e)?BE:NE);return n!==OE?n:xc(e)?BE:OE}(t,e.scaleType(h)),m={title:null!=t.title,scales:u,type:p,vgrad:"symbol"!==p&&i.isVertical()},g=rk(e.add(Dk(null,[m]))),v=rk(e.add(Rk(f={type:p,scale:e.scaleRef(h),count:e.objectProperty(i("tickCount")),limit:e.property(i("symbolLimit")),values:e.objectProperty(t.values),minstep:e.property(t.tickMinStep),formatType:e.property(t.formatType),formatSpecifier:e.property(t.format)})));return p===OE?(d=[QE(t,h,n,r.gradient),nF(t,n,r.labels,v)],f.count=f.count||e.signalRef("max(2,2*floor((".concat(hk(i.gradientLength()),")/100))"))):p===BE?d=[KE(t,h,n,r.gradient,v),nF(t,n,r.labels,v)]:(l=function(t,e){const n=YE(t,e);return{align:n("gridAlign"),columns:n.entryColumns(),center:{row:!0,column:!1},padding:{row:n("rowPadding"),column:n("columnPadding")}}}(t,n),d=[rF(t,n,r,v,hk(l.columns))],f.size=function(t,e,n){const r=hk(IF("size",t,n)),i=hk(IF("strokeWidth",t,n)),o=hk(function(t,e,n){return VE("fontSize",t)||function(t,e,n){const r=e.config.style[n];return r&&r[t]}("fontSize",e,n)}(n[1].encode,e,CE));return Wx("max(ceil(sqrt(".concat(r,")+").concat(i,"),").concat(o,")"),e)}(t,e,d[0].marks)),d=[GE({role:Nw,from:g,encode:{enter:{x:{value:0},y:{value:0}}},marks:d,layout:l,interactive:s})],m.title&&d.push(function(t,e,n,r){const i=YE(t,e),o={enter:{opacity:LE},update:{opacity:IE,x:{field:{group:"padding"}},y:{field:{group:"padding"}}},exit:{opacity:LE}};return yw(o,{orient:i("titleOrient"),_anchor:i("titleAnchor"),anchor:{signal:fF},angle:{signal:dF},align:{signal:lF},baseline:{signal:hF},text:t.title,fill:i("titleColor"),fillOpacity:i("titleOpacity"),font:i("titleFont"),fontSize:i("titleFontSize"),fontStyle:i("titleFontStyle"),fontWeight:i("titleFontWeight"),limit:i("titleLimit"),lineHeight:i("titleLineHeight")},{align:i("titleAlign"),baseline:i("titleBaseline")}),JE({type:HE,role:zw,style:ME,from:r,encode:o},n)}(t,n,r.title,g)),zF(GE({role:Sw,from:g,encode:bw(LF(i,t,n),o,PE),marks:d,aria:i("aria"),description:i("description"),zindex:i("zindex"),name:a,interactive:s,style:c}),e)}function LF(t,e,n){const r={enter:{},update:{}};return yw(r,{orient:t("orient"),offset:t("offset"),padding:t("padding"),titlePadding:t("titlePadding"),cornerRadius:t("cornerRadius"),fill:t("fillColor"),stroke:t("strokeColor"),strokeWidth:n.strokeWidth,strokeDash:n.strokeDash,x:t("legendX"),y:t("legendY"),format:e.format,formatType:e.formatType}),r}function IF(t,e,n){return e[t]?'scale("'.concat(e[t],'",datum)'):VE(t,n[0].encode)}TF.fromEntries=function(t,e){const n=e.length,r=e[n-1],i=e[n-2];let o=e[0],a=null,s=1;for(o&&"load"===o.type&&(o=e[1]),t.add(e[0]);s<n;++s)e[s].params.pulse=rk(e[s-1]),t.add(e[s]),"aggregate"===e[s].type&&(a=e[s]);return new TF(t,o,i,r,a)},TF.prototype={countsRef(t,e,n){const r=this,i=r.counts||(r.counts={}),o=NF(e);let a,s,c;return null!=o&&(t=r.scope,a=i[o]),a?n&&n.field&&OF(t,a.agg.params,n):(c={groupby:t.fieldRef(e,"key"),pulse:rk(r.output)},n&&n.field&&OF(t,c,n),s=t.add(kk(c)),a=t.add(Dk({pulse:rk(s)})),a={agg:s,ref:rk(a)},null!=o&&(i[o]=a)),a.ref},tuplesRef(){return rk(this.values)},extentRef(t,e){return BF(t,this,"extent","extent",e,!1)},domainRef(t,e){return BF(t,this,"domain","values",e,!1)},valuesRef(t,e,n){return BF(t,this,"vals","values",e,n||!0)},lookupRef(t,e){return BF(t,this,"lookup","tupleindex",e,!1)},indataRef(t,e){return BF(t,this,"indata","tupleindex",e,!0,!0)}};const jF='item.orient==="'.concat(mE,'"?-90:item.orient==="').concat(gE,'"?90:0');function UF(t,e){const n=YE(t=Lt(t)?{text:t}:t,e.config.title),r=t.encode||{},i=r.group||{},o=i.name||void 0,a=i.interactive,s=i.style,c=[],u=rk(e.add(Dk(null,[{}])));return c.push(function(t,e,n,r){const i={value:0},o=t.text,a={enter:{opacity:i},update:{opacity:{value:1}},exit:{opacity:i}};return yw(a,{text:o,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:e("dx"),dy:e("dy"),fill:e("color"),font:e("font"),fontSize:e("fontSize"),fontStyle:e("fontStyle"),fontWeight:e("fontWeight"),lineHeight:e("lineHeight")},{align:e("align"),angle:e("angle"),baseline:e("baseline")}),JE({type:HE,role:Lw,style:SE,from:r,encode:a},n)}(t,n,function(t){const e=t.encode;return e&&e.title||kt({name:t.name,interactive:t.interactive,style:t.style},e)}(t),u)),t.subtitle&&c.push(function(t,e,n,r){const i={value:0},o=t.subtitle,a={enter:{opacity:i},update:{opacity:{value:1}},exit:{opacity:i}};return yw(a,{text:o,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:e("dx"),dy:e("dy"),fill:e("subtitleColor"),font:e("subtitleFont"),fontSize:e("subtitleFontSize"),fontStyle:e("subtitleFontStyle"),fontWeight:e("subtitleFontWeight"),lineHeight:e("subtitleLineHeight")},{align:e("align"),angle:e("angle"),baseline:e("baseline")}),JE({type:HE,role:Iw,style:TE,from:r,encode:a},n)}(t,n,r.subtitle,u)),zF(GE({role:Pw,from:u,encode:qF(n,i),marks:c,aria:n("aria"),description:n("description"),zindex:n("zindex"),name:o,interactive:a,style:s}),e)}function qF(t,e){const n={enter:{},update:{}};return yw(n,{orient:t("orient"),anchor:t("anchor"),align:{signal:XE},angle:{signal:jF},limit:t("limit"),frame:t("frame"),offset:t("offset")||0,padding:t("subtitlePadding")}),bw(n,e,PE)}function WF(t,e){const n=[];t.transform&&t.transform.forEach((t=>{n.push(bF(t,e))})),t.on&&t.on.forEach((n=>{RF(n,e,t.name)})),e.addDataPipeline(t.name,function(t,e,n){const r=[];let i,o,a,s,c,u=null,l=!1,f=!1;t.values?lk(t.values)||fk(t.format)?(r.push(GF(e,t)),r.push(u=HF())):r.push(u=HF({$ingest:t.values,$format:t.format})):t.url?fk(t.url)||fk(t.format)?(r.push(GF(e,t)),r.push(u=HF())):r.push(u=HF({$request:t.url,$format:t.format})):t.source&&(u=i=ht(t.source).map((t=>rk(e.getData(t).output))),r.push(null));for(o=0,a=n.length;o<a;++o)s=n[o],c=s.metadata,u||c.source||r.push(u=HF()),r.push(s),c.generates&&(f=!0),c.modifies&&!f&&(l=!0),c.source?u=s:c.changes&&(u=null);i&&(a=i.length-1,r[0]=Gk({derive:l,pulse:a?i:i[0]}),(l||a)&&r.splice(1,0,HF()));u||r.push(HF());return r.push($k({})),r}(t,e,n))}function HF(t){const e=Dk({},t);return e.metadata={source:!0},e}function GF(t,e){return zk({url:e.url?t.property(e.url):void 0,async:e.async?t.property(e.async):void 0,values:e.values?t.property(e.values):void 0,format:t.objectProperty(e.format)})}const YF=t=>t===vE||t===pE,VF=(t,e,n)=>lk(t)?tD(t.signal,e,n):t===mE||t===pE?e:n,$F=(t,e,n)=>lk(t)?QF(t.signal,e,n):YF(t)?e:n,XF=(t,e,n)=>lk(t)?KF(t.signal,e,n):YF(t)?n:e,ZF=(t,e,n)=>lk(t)?eD(t.signal,e,n):t===pE?{value:e}:{value:n},JF=(t,e,n)=>lk(t)?nD(t.signal,e,n):t===gE?{value:e}:{value:n},QF=(t,e,n)=>rD("".concat(t," === '").concat(pE,"' || ").concat(t," === '").concat(vE,"'"),e,n),KF=(t,e,n)=>rD("".concat(t," !== '").concat(pE,"' && ").concat(t," !== '").concat(vE,"'"),e,n),tD=(t,e,n)=>oD("".concat(t," === '").concat(mE,"' || ").concat(t," === '").concat(pE,"'"),e,n),eD=(t,e,n)=>oD("".concat(t," === '").concat(pE,"'"),e,n),nD=(t,e,n)=>oD("".concat(t," === '").concat(gE,"'"),e,n),rD=(t,e,n)=>(e=null!=e?gw(e):e,n=null!=n?gw(n):n,iD(e)&&iD(n)?(e=e?e.signal||Vt(e.value):null,n=n?n.signal||Vt(n.value):null,{signal:"".concat(t," ? (").concat(e,") : (").concat(n,")")}):[kt({test:t},e)].concat(n||[])),iD=t=>null==t||1===Object.keys(t).length,oD=(t,e,n)=>({signal:"".concat(t," ? (").concat(sD(e),") : (").concat(sD(n),")")}),aD=(t,e,n,r,i)=>({signal:(null!=r?"".concat(t," === '").concat(mE,"' ? (").concat(sD(r),") : "):"")+(null!=n?"".concat(t," === '").concat(vE,"' ? (").concat(sD(n),") : "):"")+(null!=i?"".concat(t," === '").concat(gE,"' ? (").concat(sD(i),") : "):"")+(null!=e?"".concat(t," === '").concat(pE,"' ? (").concat(sD(e),") : "):"")+"(null)"}),sD=t=>lk(t)?t.signal:null==t?null:Vt(t),cD=(t,e)=>0===e?0:lk(t)?{signal:"(".concat(t.signal,") * ").concat(e)}:{value:t*e},uD=(t,e)=>{const n=t.signal;return n&&n.endsWith("(null)")?{signal:n.slice(0,-6)+e.signal}:t};function lD(t,e,n,r){let i;if(e&&Dt(e,t))return e[t];if(Dt(n,t))return n[t];if(t.startsWith("title")){switch(t){case"titleColor":i="fill";break;case"titleFont":case"titleFontSize":case"titleFontWeight":i=t[5].toLowerCase()+t.slice(6)}return r[ME][i]}if(t.startsWith("label")){switch(t){case"labelColor":i="fill";break;case"labelFont":case"labelFontSize":i=t[5].toLowerCase()+t.slice(6)}return r[CE][i]}return null}function fD(t){const e={};for(const n of t)if(n)for(const t in n)e[t]=1;return Object.keys(e)}function dD(t,e){return{scale:t.scale,range:e}}function hD(t,e,n,r,i){const o=YE(t,e),a=t.orient,s=t.gridScale,c=VF(a,1,-1),u=function(t,e){if(1===e);else if(W(t)){let n=t=kt({},t);for(;null!=n.mult;){if(!W(n.mult))return n.mult=lk(e)?{signal:"(".concat(n.mult,") * (").concat(e.signal,")")}:n.mult*e,t;n=n.mult=kt({},n.mult)}n.mult=e}else t=lk(e)?{signal:"(".concat(e.signal,") * (").concat(t||0,")")}:e*(t||0);return t}(t.offset,c);let l,f,d;const h={enter:l={opacity:LE},update:d={opacity:IE},exit:f={opacity:LE}};yw(h,{stroke:o("gridColor"),strokeCap:o("gridCap"),strokeDash:o("gridDash"),strokeDashOffset:o("gridDashOffset"),strokeOpacity:o("gridOpacity"),strokeWidth:o("gridWidth")});const p={scale:t.scale,field:DE,band:i.band,extra:i.extra,offset:i.offset,round:o("tickRound")},m=$F(a,{signal:"height"},{signal:"width"}),g=s?{scale:s,range:0,mult:c,offset:u}:{value:0,offset:u},v=s?{scale:s,range:1,mult:c,offset:u}:kt(m,{mult:c,offset:u});return l.x=d.x=$F(a,p,g),l.y=d.y=XF(a,p,g),l.x2=d.x2=XF(a,v),l.y2=d.y2=$F(a,v),f.x=$F(a,p),f.y=XF(a,p),JE({type:qE,role:Fw,key:DE,from:r,encode:h},n)}function pD(t,e,n,r,i){return{signal:'flush(range("'+t+'"), scale("'+t+'", datum.value), '+e+","+n+","+r+","+i+")"}}function mD(t,e,n,r){const i=YE(t,e),o=t.orient,a=VF(o,-1,1);let s,c;const u={enter:s={opacity:LE,anchor:gw(i("titleAnchor",null)),align:{signal:XE}},update:c=kt({},s,{opacity:IE,text:gw(t.title)}),exit:{opacity:LE}},l={signal:'lerp(range("'.concat(t.scale,'"), ').concat($E(0,1,.5),")")};return c.x=$F(o,l),c.y=XF(o,l),s.angle=$F(o,LE,cD(a,90)),s.baseline=$F(o,ZF(o,vE,pE),{value:vE}),c.angle=s.angle,c.baseline=s.baseline,yw(u,{fill:i("titleColor"),fillOpacity:i("titleOpacity"),font:i("titleFont"),fontSize:i("titleFontSize"),fontStyle:i("titleFontStyle"),fontWeight:i("titleFontWeight"),limit:i("titleLimit"),lineHeight:i("titleLineHeight")},{align:i("titleAlign"),angle:i("titleAngle"),baseline:i("titleBaseline")}),function(t,e,n,r){const i=(t,e)=>null!=t?(n.update[e]=uD(gw(t),n.update[e]),!1):!Aw(e,r),o=i(t("titleX"),"x"),a=i(t("titleY"),"y");n.enter.auto=a===o?gw(a):$F(e,gw(a),gw(o))}(i,o,u,n),u.update.align=uD(u.update.align,s.align),u.update.angle=uD(u.update.angle,s.angle),u.update.baseline=uD(u.update.baseline,s.baseline),JE({type:HE,role:Mw,style:ME,from:r,encode:u},n)}function gD(t,e){const n=function(t,e){var n,r,i,o=e.config,a=o.style,s=o.axis,c="band"===e.scaleType(t.scale)&&o.axisBand,u=t.orient;if(lk(u)){const t=fD([o.axisX,o.axisY]),e=fD([o.axisTop,o.axisBottom,o.axisLeft,o.axisRight]);for(i of(n={},t))n[i]=$F(u,lD(i,o.axisX,s,a),lD(i,o.axisY,s,a));for(i of(r={},e))r[i]=aD(u.signal,lD(i,o.axisTop,s,a),lD(i,o.axisBottom,s,a),lD(i,o.axisLeft,s,a),lD(i,o.axisRight,s,a))}else n=u===pE||u===vE?o.axisX:o.axisY,r=o["axis"+u[0].toUpperCase()+u.slice(1)];return n||r||c?kt({},s,n,r,c):s}(t,e),r=t.encode||{},i=r.axis||{},o=i.name||void 0,a=i.interactive,s=i.style,c=YE(t,n),u=function(t){const e=t("tickBand");let n,r,i=t("tickOffset");return e?e.signal?(n={signal:"(".concat(e.signal,") === 'extent' ? 1 : 0.5")},r={signal:"(".concat(e.signal,") === 'extent'")},W(i)||(i={signal:"(".concat(e.signal,") === 'extent' ? 0 : ").concat(i)})):"extent"===e?(n=1,r=!0,i=0):(n=.5,r=!1):(n=t("bandPosition"),r=t("tickExtra")),{extra:r,band:n,offset:i}}(c),l={scale:t.scale,ticks:!!c("ticks"),labels:!!c("labels"),grid:!!c("grid"),domain:!!c("domain"),title:null!=t.title},f=rk(e.add(Dk({},[l]))),d=rk(e.add(Ek({scale:e.scaleRef(t.scale),extra:e.property(u.extra),count:e.objectProperty(t.tickCount),values:e.objectProperty(t.values),minstep:e.property(t.tickMinStep),formatType:e.property(t.formatType),formatSpecifier:e.property(t.format)}))),h=[];let p;return l.grid&&h.push(hD(t,n,r.grid,d,u)),l.ticks&&(p=c("tickSize"),h.push(function(t,e,n,r,i,o){const a=YE(t,e),s=t.orient,c=VF(s,-1,1);let u,l,f;const d={enter:u={opacity:LE},update:f={opacity:IE},exit:l={opacity:LE}};yw(d,{stroke:a("tickColor"),strokeCap:a("tickCap"),strokeDash:a("tickDash"),strokeDashOffset:a("tickDashOffset"),strokeOpacity:a("tickOpacity"),strokeWidth:a("tickWidth")});const h=gw(i);h.mult=c;const p={scale:t.scale,field:DE,band:o.band,extra:o.extra,offset:o.offset,round:a("tickRound")};return f.y=u.y=$F(s,LE,p),f.y2=u.y2=$F(s,h),l.x=$F(s,p),f.x=u.x=XF(s,LE,p),f.x2=u.x2=XF(s,h),l.y=XF(s,p),JE({type:qE,role:Cw,key:DE,from:r,encode:d},n)}(t,n,r.ticks,d,p,u))),l.labels&&(p=l.ticks?p:0,h.push(function(t,e,n,r,i,o){const a=YE(t,e),s=t.orient,c=t.scale,u=VF(s,-1,1),l=hk(a("labelFlush")),f=hk(a("labelFlushOffset")),d=a("labelAlign"),h=a("labelBaseline");let p,m=0===l||!!l;const g=gw(i);g.mult=u,g.offset=gw(a("labelPadding")||0),g.offset.mult=u;const v={scale:c,field:DE,band:.5,offset:ZE(o.offset,a("labelOffset"))},y=$F(s,m?pD(c,l,'"left"','"right"','"center"'):{value:"center"},JF(s,"left","right")),b=$F(s,ZF(s,"bottom","top"),m?pD(c,l,'"top"','"bottom"','"middle"'):{value:"middle"}),A=pD(c,l,"-(".concat(f,")"),f,0);m=m&&f;const x={opacity:LE,x:$F(s,v,g),y:XF(s,v,g)},_={enter:x,update:p={opacity:IE,text:{field:wE},x:x.x,y:x.y,align:y,baseline:b},exit:{opacity:LE,x:x.x,y:x.y}};yw(_,{dx:!d&&m?$F(s,A):null,dy:!h&&m?XF(s,A):null}),yw(_,{angle:a("labelAngle"),fill:a("labelColor"),fillOpacity:a("labelOpacity"),font:a("labelFont"),fontSize:a("labelFontSize"),fontWeight:a("labelFontWeight"),fontStyle:a("labelFontStyle"),limit:a("labelLimit"),lineHeight:a("labelLineHeight")},{align:d,baseline:h});const w=a("labelBound");let k=a("labelOverlap");return k=k||w?{separation:a("labelSeparation"),method:k,order:"datum.index",bound:w?{scale:c,orient:s,tolerance:w}:null}:void 0,p.align!==y&&(p.align=uD(p.align,y)),p.baseline!==b&&(p.baseline=uD(p.baseline,b)),JE({type:HE,role:Dw,style:CE,key:DE,from:r,encode:_,overlap:k},n)}(t,n,r.labels,d,p,u))),l.domain&&h.push(function(t,e,n,r){const i=YE(t,e),o=t.orient;let a,s;const c={enter:a={opacity:LE},update:s={opacity:IE},exit:{opacity:LE}};yw(c,{stroke:i("domainColor"),strokeCap:i("domainCap"),strokeDash:i("domainDash"),strokeDashOffset:i("domainDashOffset"),strokeWidth:i("domainWidth"),strokeOpacity:i("domainOpacity")});const u=dD(t,0),l=dD(t,1);return a.x=s.x=$F(o,u,LE),a.x2=s.x2=$F(o,l),a.y=s.y=XF(o,u,LE),a.y2=s.y2=XF(o,l),JE({type:qE,role:Ew,from:r,encode:c},n)}(t,n,r.domain,f)),l.title&&h.push(mD(t,n,r.title,f)),zF(GE({role:kw,from:f,encode:bw(vD(c,t),i,PE),marks:h,aria:c("aria"),description:c("description"),zindex:c("zindex"),name:o,interactive:a,style:s}),e)}function vD(t,e){const n={enter:{},update:{}};return yw(n,{orient:t("orient"),offset:t("offset")||0,position:dk(e.position,0),titlePadding:t("titlePadding"),minExtent:t("minExtent"),maxExtent:t("maxExtent"),range:{signal:'abs(span(range("'.concat(e.scale,'")))')},translate:t("translate"),format:e.format,formatType:e.formatType}),n}function yD(t,e,n){const r=ht(t.signals),i=ht(t.scales);return n||r.forEach((t=>Kw(t,e))),ht(t.projections).forEach((t=>function(t,e){const n=e.config.projection||{},r={};for(const i in t)"name"!==i&&(r[i]=hE(t[i],i,e));for(const i in n)null==r[i]&&(r[i]=hE(n[i],i,e));e.addProjection(t.name,r)}(t,e))),i.forEach((t=>function(t,e){const n=t.type||"linear";vc(n)||F("Unrecognized scale type: "+Vt(n)),e.addScale(t.name,{type:n,domain:void 0})}(t,e))),ht(t.data).forEach((t=>WF(t,e))),i.forEach((t=>tE(t,e))),(n||r).forEach((t=>function(t,e){const n=e.getSignal(t.name);let r=t.update;t.init&&(r?F("Signals can not include both init and update expressions."):(r=t.init,n.initonly=!0)),r&&(r=Wx(r,e),n.update=r.$expr,n.params=r.$params),t.on&&t.on.forEach((t=>xk(t,e,n.id)))}(t,e))),ht(t.axes).forEach((t=>gD(t,e))),ht(t.marks).forEach((t=>zF(t,e))),ht(t.legends).forEach((t=>PF(t,e))),t.title&&UF(t.title,e),e.parseLambdas(),e}const bD=t=>bw({enter:{x:{value:0},y:{value:0}},update:{width:{signal:"width"},height:{signal:"height"}}},t);function AD(t,e){const n=e.config,r=rk(e.root=e.add(nk())),i=function(t,e){const n=n=>dk(t[n],e[n]),r=[xD("background",n("background")),xD("autosize",dw(n("autosize"))),xD("padding",mw(n("padding"))),xD("width",n("width")||0),xD("height",n("height")||0)],i=r.reduce(((t,e)=>(t[e.name]=e,t)),{}),o={};return ht(t.signals).forEach((t=>{Dt(i,t.name)?t=kt(i[t.name],t):r.push(t),o[t.name]=t})),ht(e.signals).forEach((t=>{Dt(o,t.name)||Dt(i,t.name)||r.push(t)})),r}(t,n);i.forEach((t=>Kw(t,e))),e.description=t.description||n.description,e.eventConfig=n.events,e.legends=e.objectProperty(n.legend&&n.legend.layout),e.locale=n.locale;const o=e.add(Dk()),a=e.add(Sk(Vw(bD(t.encode),jE,_w,t.style,e,{pulse:rk(o)}))),s=e.add(Zk({layout:e.objectProperty(t.layout),legends:e.legends,autosize:e.signalRef("autosize"),mark:r,pulse:rk(a)}));e.operators.pop(),e.pushState(rk(a),rk(s),null),yD(t,e,i),e.operators.push(s);let c=e.add(Fk({mark:r,pulse:rk(s)}));return c=e.add(Yk({pulse:rk(c)})),c=e.add($k({pulse:rk(c)})),e.addData("root",new TF(e,o,o,c)),e}function xD(t,e){return e&&e.signal?{name:t,update:e.signal}:{name:t,value:e}}function _D(t,e){this.config=t||{},this.options=e||{},this.bindings=[],this.field={},this.signals={},this.lambdas={},this.scales={},this.events={},this.data={},this.streams=[],this.updates=[],this.operators=[],this.eventConfig=null,this.locale=null,this._id=0,this._subid=0,this._nextsub=[0],this._parent=[],this._encode=[],this._lookup=[],this._markpath=[]}function wD(t){this.config=t.config,this.options=t.options,this.legends=t.legends,this.field=Object.create(t.field),this.signals=Object.create(t.signals),this.lambdas=Object.create(t.lambdas),this.scales=Object.create(t.scales),this.events=Object.create(t.events),this.data=Object.create(t.data),this.streams=[],this.updates=[],this.operators=[],this._id=0,this._subid=++t._nextsub[0],this._nextsub=t._nextsub,this._parent=t._parent.slice(),this._encode=t._encode.slice(),this._lookup=t._lookup.slice(),this._markpath=t._markpath}function kD(t){return(q(t)?ED:FD)(t)}function ED(t){const e=t.length;let n="[";for(let r=0;r<e;++r){const e=t[r];n+=(r>0?",":"")+(W(e)?e.signal||kD(e):Vt(e))}return n+"]"}function FD(t){let e,n,r="{",i=0;for(e in t)n=t[e],r+=(++i>1?",":"")+Vt(e)+":"+(W(n)?n.signal||kD(n):Vt(n));return r+"}"}function DD(t,e,n){return W(t)||F("Input Vega specification must be an object."),e=G(function(){const t="sans-serif",e="#4c78a8",n="#000",r="#888",i="#ddd";return{description:"Vega visualization",padding:0,autosize:"pad",background:null,events:{defaults:{allow:["wheel"]}},group:null,mark:null,arc:{fill:e},area:{fill:e},image:null,line:{stroke:e,strokeWidth:2},path:{stroke:e},rect:{fill:e},rule:{stroke:n},shape:{stroke:e},symbol:{fill:e,size:64},text:{fill:n,font:t,fontSize:11},trail:{fill:e,size:2},style:{"guide-label":{fill:n,font:t,fontSize:10},"guide-title":{fill:n,font:t,fontSize:11,fontWeight:"bold"},"group-title":{fill:n,font:t,fontSize:13,fontWeight:"bold"},"group-subtitle":{fill:n,font:t,fontSize:12},point:{size:30,strokeWidth:2,shape:"circle"},circle:{size:30,strokeWidth:2},square:{size:30,strokeWidth:2,shape:"square"},cell:{fill:"transparent",stroke:i},view:{fill:"transparent"}},title:{orient:"top",anchor:"middle",offset:4,subtitlePadding:3},axis:{minExtent:0,maxExtent:200,bandPosition:.5,domain:!0,domainWidth:1,domainColor:r,grid:!1,gridWidth:1,gridColor:i,labels:!0,labelAngle:0,labelLimit:180,labelOffset:0,labelPadding:2,ticks:!0,tickColor:r,tickOffset:0,tickRound:!0,tickSize:5,tickWidth:1,titlePadding:4},axisBand:{tickOffset:-.5},projection:{type:"mercator"},legend:{orient:"right",padding:0,gridAlign:"each",columnPadding:10,rowPadding:2,symbolDirection:"vertical",gradientDirection:"vertical",gradientLength:200,gradientThickness:16,gradientStrokeColor:i,gradientStrokeWidth:0,gradientLabelOffset:2,labelAlign:"left",labelBaseline:"middle",labelLimit:160,labelOffset:4,labelOverlap:!0,symbolLimit:30,symbolType:"circle",symbolSize:100,symbolOffset:0,symbolStrokeWidth:1.5,symbolBaseFillColor:"transparent",symbolBaseStrokeColor:r,titleLimit:180,titleOrient:"top",titlePadding:5,layout:{offset:18,direction:"horizontal",left:{direction:"vertical"},right:{direction:"vertical"}}},range:{category:{scheme:"tableau10"},ordinal:{scheme:"blues"},heatmap:{scheme:"yellowgreenblue"},ramp:{scheme:"blues"},diverging:{scheme:"blueorange",extent:[1,0]},symbol:["circle","square","triangle-up","cross","diamond","triangle-right","triangle-down","triangle-left"]}}}(),e,t.config),AD(t,new _D(e,n)).toRuntime()}_D.prototype=wD.prototype={parse(t){return yD(t,this)},fork(){return new wD(this)},isSubscope(){return this._subid>0},toRuntime(){return this.finish(),{description:this.description,operators:this.operators,streams:this.streams,updates:this.updates,bindings:this.bindings,eventConfig:this.eventConfig,locale:this.locale}},id(){return(this._subid?this._subid+":":0)+this._id++},add(t){return this.operators.push(t),t.id=this.id(),t.refs&&(t.refs.forEach((e=>{e.$ref=t.id})),t.refs=null),t},proxy(t){const e=t instanceof tk?rk(t):t;return this.add(Hk({value:e}))},addStream(t){return this.streams.push(t),t.id=this.id(),t},addUpdate(t){return this.updates.push(t),t},finish(){let t,e;for(t in this.root&&(this.root.root=!0),this.signals)this.signals[t].signal=t;for(t in this.scales)this.scales[t].scale=t;function n(t,e,n){let r,i;t&&(r=t.data||(t.data={}),i=r[e]||(r[e]=[]),i.push(n))}for(t in this.data){e=this.data[t],n(e.input,t,"input"),n(e.output,t,"output"),n(e.values,t,"values");for(const r in e.index)n(e.index[r],t,"index:"+r)}return this},pushState(t,e,n){this._encode.push(rk(this.add($k({pulse:t})))),this._parent.push(e),this._lookup.push(n?rk(this.proxy(n)):null),this._markpath.push(-1)},popState(){this._encode.pop(),this._parent.pop(),this._lookup.pop(),this._markpath.pop()},parent(){return $(this._parent)},encode(){return $(this._encode)},lookup(){return $(this._lookup)},markpath(){const t=this._markpath;return++t[t.length-1]},fieldRef(t,e){if(Lt(t))return ik(t,e);t.signal||F("Unsupported field reference: "+Vt(t));const n=t.signal;let r=this.field[n];if(!r){const t={name:this.signalRef(n)};e&&(t.as=e),this.field[n]=r=rk(this.add(Ok(t)))}return r},compareRef(t){let e=!1;const n=t=>lk(t)?(e=!0,this.signalRef(t.signal)):function(t){return t&&t.expr}(t)?(e=!0,this.exprRef(t.expr)):t,r=ht(t.field).map(n),i=ht(t.order).map(n);return e?rk(this.add(Ck({fields:r,orders:i}))):ak(r,i)},keyRef(t,e){let n=!1;const r=this.signals;return t=ht(t).map((t=>lk(t)?(n=!0,rk(r[t.signal])):t)),n?rk(this.add(Bk({fields:t,flat:e}))):function(t,e){const n={$key:t};return e&&(n.$flat=!0),n}(t,e)},sortRef(t){if(!t)return t;const e=sk(t.op,t.field),n=t.order||"ascending";return n.signal?rk(this.add(Ck({fields:e,orders:this.signalRef(n.signal)}))):ak(e,n)},event(t,e){const n=t+":"+e;if(!this.events[n]){const r=this.id();this.streams.push({id:r,source:t,type:e}),this.events[n]=r}return this.events[n]},hasOwnSignal(t){return Dt(this.signals,t)},addSignal(t,e){this.hasOwnSignal(t)&&F("Duplicate signal name: "+Vt(t));const n=e instanceof tk?e:this.add(nk(e));return this.signals[t]=n},getSignal(t){return this.signals[t]||F("Unrecognized signal name: "+Vt(t)),this.signals[t]},signalRef(t){return this.signals[t]?rk(this.signals[t]):(Dt(this.lambdas,t)||(this.lambdas[t]=this.add(nk(null))),rk(this.lambdas[t]))},parseLambdas(){const t=Object.keys(this.lambdas);for(let e=0,n=t.length;e<n;++e){const n=t[e],r=Wx(n,this),i=this.lambdas[n];i.params=r.$params,i.update=r.$expr}},property(t){return t&&t.signal?this.signalRef(t.signal):t},objectProperty(t){return t&&W(t)?this.signalRef(t.signal||kD(t)):t},exprRef(t,e){const n={expr:Wx(t,this)};return e&&(n.expr.$name=e),rk(this.add(Tk(n)))},addBinding(t,e){this.bindings||F("Nested signals do not support binding: "+Vt(t)),this.bindings.push(kt({signal:t},e))},addScaleProj(t,e){Dt(this.scales,t)&&F("Duplicate scale or projection name: "+Vt(t)),this.scales[t]=this.add(e)},addScale(t,e){this.addScaleProj(t,Vk(e))},addProjection(t,e){this.addScaleProj(t,Wk(e))},getScale(t){return this.scales[t]||F("Unrecognized scale name: "+Vt(t)),this.scales[t]},scaleRef(t){return rk(this.getScale(t))},scaleType(t){return this.getScale(t).params.type},projectionRef(t){return this.scaleRef(t)},projectionType(t){return this.scaleType(t)},addData(t,e){return Dt(this.data,t)&&F("Duplicate data set name: "+Vt(t)),this.data[t]=e},getData(t){return this.data[t]||F("Undefined data set name: "+Vt(t)),this.data[t]},addDataPipeline(t,e){return Dt(this.data,t)&&F("Duplicate data set name: "+Vt(t)),this.addData(t,TF.fromEntries(this,e))}};var CD="5.32.0";kt(fi,r,i,o,a,s,u,c,l,f,d,h);var MD={NaN:NaN,E:Math.E,LN2:Math.LN2,LN10:Math.LN10,LOG2E:Math.LOG2E,LOG10E:Math.LOG10E,PI:Math.PI,SQRT1_2:Math.SQRT1_2,SQRT2:Math.SQRT2,MIN_VALUE:Number.MIN_VALUE,MAX_VALUE:Number.MAX_VALUE},SD={"*":(t,e)=>t*e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,">":(t,e)=>t>e,"<":(t,e)=>t<e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"&":(t,e)=>t&e,"|":(t,e)=>t|e,"^":(t,e)=>t^e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e},TD={"+":t=>+t,"-":t=>-t,"~":t=>~t,"!":t=>!t};const ND=Array.prototype.slice,OD=(t,e,n)=>{const r=n?n(e[0]):e[0];return r[t].apply(r,ND.call(e,1))};var BD={isNaN:Number.isNaN,isFinite:Number.isFinite,abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,cos:Math.cos,exp:Math.exp,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,clamp:(t,e,n)=>Math.max(e,Math.min(n,t)),now:Date.now,utc:Date.UTC,datetime:(t,e,n,r,i,o,a)=>new Date(t,e||0,null!=n?n:1,r||0,i||0,o||0,a||0),date:t=>new Date(t).getDate(),day:t=>new Date(t).getDay(),year:t=>new Date(t).getFullYear(),month:t=>new Date(t).getMonth(),hours:t=>new Date(t).getHours(),minutes:t=>new Date(t).getMinutes(),seconds:t=>new Date(t).getSeconds(),milliseconds:t=>new Date(t).getMilliseconds(),time:t=>new Date(t).getTime(),timezoneoffset:t=>new Date(t).getTimezoneOffset(),utcdate:t=>new Date(t).getUTCDate(),utcday:t=>new Date(t).getUTCDay(),utcyear:t=>new Date(t).getUTCFullYear(),utcmonth:t=>new Date(t).getUTCMonth(),utchours:t=>new Date(t).getUTCHours(),utcminutes:t=>new Date(t).getUTCMinutes(),utcseconds:t=>new Date(t).getUTCSeconds(),utcmilliseconds:t=>new Date(t).getUTCMilliseconds(),length:t=>t.length,join:function(){return OD("join",arguments)},indexof:function(){return OD("indexOf",arguments)},lastindexof:function(){return OD("lastIndexOf",arguments)},slice:function(){return OD("slice",arguments)},reverse:t=>t.slice().reverse(),sort:t=>t.slice().sort(yt),parseFloat:parseFloat,parseInt:parseInt,upper:t=>String(t).toUpperCase(),lower:t=>String(t).toLowerCase(),substring:function(){return OD("substring",arguments,String)},split:function(){return OD("split",arguments,String)},replace:function(){return OD("replace",arguments,String)},trim:t=>String(t).trim(),btoa:t=>btoa(t),atob:t=>atob(t),regexp:RegExp,test:(t,e)=>RegExp(t).test(e)};const RD=["view","item","group","xy","x","y"],zD=new Set([Function,eval,setTimeout,setInterval]);"function"===typeof setImmediate&&zD.add(setImmediate);const PD={Literal:(t,e)=>e.value,Identifier:(t,e)=>{const n=e.name;return t.memberDepth>0?n:"datum"===n?t.datum:"event"===n?t.event:"item"===n?t.item:MD[n]||t.params["$"+n]},MemberExpression:(t,e)=>{const n=!e.computed,r=t(e.object);n&&(t.memberDepth+=1);const i=t(e.property);if(n&&(t.memberDepth-=1),!zD.has(r[i]))return r[i];console.error('Prevented interpretation of member "'.concat(i,'" which could lead to insecure code execution'))},CallExpression:(t,e)=>{const n=e.arguments;let r=e.callee.name;return r.startsWith("_")&&(r=r.slice(1)),"if"===r?t(n[0])?t(n[1]):t(n[2]):(t.fn[r]||BD[r]).apply(t.fn,n.map(t))},ArrayExpression:(t,e)=>e.elements.map(t),BinaryExpression:(t,e)=>SD[e.operator](t(e.left),t(e.right)),UnaryExpression:(t,e)=>TD[e.operator](t(e.argument)),ConditionalExpression:(t,e)=>t(e.test)?t(e.consequent):t(e.alternate),LogicalExpression:(t,e)=>"&&"===e.operator?t(e.left)&&t(e.right):t(e.left)||t(e.right),ObjectExpression:(t,e)=>e.properties.reduce(((e,n)=>{t.memberDepth+=1;const r=t(n.key);return t.memberDepth-=1,zD.has(t(n.value))?console.error('Prevented interpretation of property "'.concat(r,'" which could lead to insecure code execution')):e[r]=t(n.value),e}),{})};function LD(t,e,n,r,i,o){const a=t=>PD[t.type](a,t);return a.memberDepth=0,a.fn=Object.create(e),a.params=n,a.datum=r,a.event=i,a.item=o,RD.forEach((t=>a.fn[t]=function(){return i.vega[t](...arguments)})),a(t)}var ID={operator(t,e){const n=e.ast,r=t.functions;return t=>LD(n,r,t)},parameter(t,e){const n=e.ast,r=t.functions;return(t,e)=>LD(n,r,e,t)},event(t,e){const n=e.ast,r=t.functions;return t=>LD(n,r,void 0,void 0,t)},handler(t,e){const n=e.ast,r=t.functions;return(t,e)=>{const i=e.item&&e.item.datum;return LD(n,r,t,i,e)}},encode(t,e){const{marktype:n,channels:r}=e,i=t.functions,o="group"===n||"image"===n||"rect"===n;return(t,e)=>{const a=t.datum;let s,c=0;for(const n in r)s=LD(r[n].ast,i,e,a,void 0,t),t[n]!==s&&(t[n]=s,c=1);return"rule"!==n&&function(t,e,n){let r;e.x2&&(e.x?(n&&t.x>t.x2&&(r=t.x,t.x=t.x2,t.x2=r),t.width=t.x2-t.x):t.x=t.x2-(t.width||0)),e.xc&&(t.x=t.xc-(t.width||0)/2),e.y2&&(e.y?(n&&t.y>t.y2&&(r=t.y,t.y=t.y2,t.y2=r),t.height=t.y2-t.y):t.y=t.y2-(t.height||0)),e.yc&&(t.y=t.yc-(t.height||0)/2)}(t,r,o),c}}};var jD=n(53986);function UD(t){return PC(t,"or")}function qD(t){return PC(t,"and")}function WD(t){return PC(t,"not")}function HD(t,e){if(WD(t))HD(t.not,e);else if(qD(t))for(const n of t.and)HD(n,e);else if(UD(t))for(const n of t.or)HD(n,e);else e(t)}function GD(t,e){return WD(t)?{not:GD(t.not,e)}:qD(t)?{and:t.and.map((t=>GD(t,e)))}:UD(t)?{or:t.or.map((t=>GD(t,e)))}:e(t)}const YD=structuredClone;function VD(t){throw new Error(t)}function $D(t,e){const n={};for(const r of e)Dt(t,r)&&(n[r]=t[r]);return n}function XD(t,e){const n=(0,v.A)({},t);for(const r of e)delete n[r];return n}function ZD(t){if(zt(t))return t;const e=Lt(t)?t:zC(t);if(e.length<250)return e;let n=0;for(let r=0;r<e.length;r++){n=(n<<5)-n+e.charCodeAt(r),n|=0}return n}function JD(t){return!1===t||null===t}function QD(t,e){return t.includes(e)}function KD(t,e){let n=0;for(const[r,i]of t.entries())if(e(i,r,n++))return!0;return!1}function tC(t,e){let n=0;for(const[r,i]of t.entries())if(!e(i,r,n++))return!1;return!0}function eC(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(const i of n)nC(t,null!==i&&void 0!==i?i:{});return t}function nC(t,e){for(const n of lC(e))Y(t,n,e[n],!0)}function rC(t,e){const n=[],r={};let i;for(const o of t)i=e(o),i in r||(r[i]=1,n.push(o));return n}function iC(t,e){const n=lC(t),r=lC(e);if(n.length!==r.length)return!1;for(const i of n)if(t[i]!==e[i])return!1;return!0}function oC(t,e){if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function aC(t,e){for(const n of t)if(e.has(n))return!0;return!1}function sC(t){const e=new Set;for(const n of t){const t=D(n).map(((t,e)=>0===e?t:"[".concat(t,"]"))),r=t.map(((e,n)=>t.slice(0,n+1).join("")));for(const n of r)e.add(n)}return e}function cC(t,e){return void 0===t||void 0===e||aC(sC(t),sC(e))}function uC(t){return 0===lC(t).length}Set.prototype.toJSON=function(){return"Set(".concat([...this].map((t=>zC(t))).join(","),")")};const lC=Object.keys,fC=Object.values,dC=Object.entries;function hC(t){return!0===t||!1===t}function pC(t){const e=t.replace(/\W/g,"_");return(t.match(/^\d+/)?"_":"")+e}function mC(t,e){return WD(t)?"!(".concat(mC(t.not,e),")"):qD(t)?"(".concat(t.and.map((t=>mC(t,e))).join(") && ("),")"):UD(t)?"(".concat(t.or.map((t=>mC(t,e))).join(") || ("),")"):e(t)}function gC(t,e){if(0===e.length)return!0;const n=e.shift();return n in t&&gC(t[n],e)&&delete t[n],uC(t)}function vC(t){return t.charAt(0).toUpperCase()+t.substr(1)}function yC(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"datum";const n=D(t),r=[];for(let i=1;i<=n.length;i++){const t="[".concat(n.slice(0,i).map(Vt).join("]["),"]");r.push("".concat(e).concat(t))}return r.join(" && ")}function bC(t){return"".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"datum","[").concat(Vt(D(t).join(".")),"]")}function AC(t){const e=t.replaceAll("'","\\'");return"datum['".concat(e,"']")}function xC(t){return t.replace(/(\[|\]|\.|'|")/g,"\\$1")}function _C(t){return"".concat(D(t).map(xC).join("\\."))}function wC(t,e,n){return t.replace(new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"g"),n)}function kC(t){return"".concat(D(t).join("."))}function EC(t){return t?D(t).length:0}function FC(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.find((t=>void 0!==t))}let DC=42;function CC(t){const e=++DC;return t?String(t)+e:e}function MC(){DC=42}function SC(t){return TC(t)?t:"__".concat(t)}function TC(t){return t.startsWith("__")}function NC(t){if(void 0!==t)return(t%360+360)%360}function OC(t){return!!zt(t)||!isNaN(t)&&!isNaN(parseFloat(t))}const BC=Object.getPrototypeOf(structuredClone({}));function RC(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor.name!==e.constructor.name)return!1;let n,r;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;0!==r--;)if(!RC(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const n of t.entries())if(!e.has(n[0]))return!1;for(const n of t.entries())if(!RC(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const n of t.entries())if(!e.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;0!==r--;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&t.valueOf!==BC.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&t.toString!==BC.toString)return t.toString()===e.toString();const i=Object.keys(t);if(n=i.length,n!==Object.keys(e).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(!RC(t[n],e[n]))return!1}return!0}return t!==t&&e!==e}function zC(t){const e=[];return function t(n){if(n&&n.toJSON&&"function"===typeof n.toJSON&&(n=n.toJSON()),void 0===n)return;if("number"==typeof n)return isFinite(n)?""+n:"null";if("object"!==typeof n)return JSON.stringify(n);let r,i;if(Array.isArray(n)){for(i="[",r=0;r<n.length;r++)r&&(i+=","),i+=t(n[r])||"null";return i+"]"}if(null===n)return"null";if(e.includes(n))throw new TypeError("Converting circular structure to JSON");const o=e.push(n)-1,a=Object.keys(n).sort();for(i="",r=0;r<a.length;r++){const e=a[r],o=t(n[e]);o&&(i&&(i+=","),i+=JSON.stringify(e)+":"+o)}return e.splice(o,1),"{".concat(i,"}")}(t)}function PC(t,e){return W(t)&&Dt(t,e)&&void 0!==t[e]}const LC="row",IC="column",jC="facet",UC="x",qC="y",WC="x2",HC="y2",GC="xOffset",YC="yOffset",VC="radius",$C="radius2",XC="theta",ZC="theta2",JC="latitude",QC="longitude",KC="latitude2",tM="longitude2",eM="time",nM="color",rM="fill",iM="stroke",oM="shape",aM="size",sM="angle",cM="opacity",uM="fillOpacity",lM="strokeOpacity",fM="strokeWidth",dM="strokeDash",hM="text",pM="order",mM="detail",gM="key",vM="tooltip",yM="href",bM="url",AM="description",xM={theta:1,theta2:1,radius:1,radius2:1};function _M(t){return Dt(xM,t)}const wM={longitude:1,longitude2:1,latitude:1,latitude2:1};function kM(t){switch(t){case JC:return"y";case KC:return"y2";case QC:return"x";case tM:return"x2"}}function EM(t){return Dt(wM,t)}const FM=lC(wM),DM=(0,v.A)((0,v.A)((0,v.A)((0,v.A)({},{x:1,y:1,x2:1,y2:1}),xM),wM),{},{xOffset:1,yOffset:1,color:1,fill:1,stroke:1,time:1,opacity:1,fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeDash:1,size:1,angle:1,shape:1,order:1,text:1,detail:1,key:1,tooltip:1,href:1,url:1,description:1});function CM(t){return t===nM||t===rM||t===iM}const MM={row:1,column:1,facet:1},SM=lC(MM),TM=(0,v.A)((0,v.A)({},DM),MM),NM=lC(TM),{order:OM,detail:BM,tooltip:RM}=TM,zM=(0,jD.A)(TM,["order","detail","tooltip"]),{row:PM,column:LM,facet:IM}=zM,jM=(0,jD.A)(zM,["row","column","facet"]);lC(zM),lC(jM);function UM(t){return Dt(TM,t)}const qM=[WC,HC,KC,tM,ZC,$C];function WM(t){return HM(t)!==t}function HM(t){switch(t){case WC:return UC;case HC:return qC;case KC:return JC;case tM:return QC;case ZC:return XC;case $C:return VC}return t}function GM(t){if(_M(t))switch(t){case XC:return"startAngle";case ZC:return"endAngle";case VC:return"outerRadius";case $C:return"innerRadius"}return t}function YM(t){switch(t){case UC:return WC;case qC:return HC;case JC:return KC;case QC:return tM;case XC:return ZC;case VC:return $C}}function VM(t){switch(t){case UC:case WC:return"width";case qC:case HC:return"height"}}function $M(t){switch(t){case UC:return"xOffset";case qC:return"yOffset";case WC:return"x2Offset";case HC:return"y2Offset";case XC:return"thetaOffset";case VC:return"radiusOffset";case ZC:return"theta2Offset";case $C:return"radius2Offset"}}function XM(t){switch(t){case UC:return"xOffset";case qC:return"yOffset"}}function ZM(t){switch(t){case"xOffset":return"x";case"yOffset":return"y"}}const JM=lC(DM),{x:QM,y:KM,x2:tS,y2:eS,xOffset:nS,yOffset:rS,latitude:iS,longitude:oS,latitude2:aS,longitude2:sS,theta:cS,theta2:uS,radius:lS,radius2:fS}=DM,dS=(0,jD.A)(DM,["x","y","x2","y2","xOffset","yOffset","latitude","longitude","latitude2","longitude2","theta","theta2","radius","radius2"]),hS=lC(dS),pS={x:1,y:1},mS=lC(pS);function gS(t){return Dt(pS,t)}const vS={theta:1,radius:1},yS=lC(vS);function bS(t){return"width"===t?UC:qC}const AS={xOffset:1,yOffset:1};lC(AS);function xS(t){return Dt(AS,t)}const _S={time:1};lC(_S);function wS(t){return t in _S}const{text:kS,tooltip:ES,href:FS,url:DS,description:CS,detail:MS,key:SS,order:TS}=dS,NS=(0,jD.A)(dS,["text","tooltip","href","url","description","detail","key","order"]),OS=lC(NS);const BS=(0,v.A)((0,v.A)((0,v.A)((0,v.A)({},pS),vS),AS),NS),RS=lC(BS);function zS(t){return Dt(BS,t)}function PS(t,e){return function(t){switch(t){case nM:case rM:case iM:case AM:case mM:case gM:case vM:case yM:case pM:case cM:case uM:case lM:case fM:case jC:case LC:case IC:return LS;case UC:case qC:case GC:case YC:case JC:case QC:case eM:return jS;case WC:case HC:case KC:case tM:return{area:"always",bar:"always",image:"always",rect:"always",rule:"always",circle:"binned",point:"binned",square:"binned",tick:"binned",line:"binned",trail:"binned"};case aM:return{point:"always",tick:"always",rule:"always",circle:"always",square:"always",bar:"always",text:"always",line:"always",trail:"always"};case dM:return{line:"always",point:"always",tick:"always",rule:"always",circle:"always",square:"always",bar:"always",geoshape:"always"};case oM:return{point:"always",geoshape:"always"};case hM:return{text:"always"};case sM:return{point:"always",square:"always",text:"always"};case bM:return{image:"always"};case XC:case VC:return{text:"always",arc:"always"};case ZC:case $C:return{arc:"always"}}}(t)[e]}const LS={arc:"always",area:"always",bar:"always",circle:"always",geoshape:"always",image:"always",line:"always",rule:"always",point:"always",rect:"always",square:"always",trail:"always",text:"always",tick:"always"},{geoshape:IS}=LS,jS=(0,jD.A)(LS,["geoshape"]);function US(t){switch(t){case UC:case qC:case XC:case VC:case GC:case YC:case aM:case sM:case fM:case cM:case uM:case lM:case eM:case WC:case HC:case ZC:case $C:return;case jC:case LC:case IC:case oM:case dM:case hM:case vM:case yM:case bM:case AM:return"discrete";case nM:case rM:case iM:return"flexible";case JC:case QC:case KC:case tM:case mM:case gM:case pM:return}}const qS={argmax:1,argmin:1,average:1,count:1,distinct:1,exponential:1,exponentialb:1,product:1,max:1,mean:1,median:1,min:1,missing:1,q1:1,q3:1,ci0:1,ci1:1,stderr:1,stdev:1,stdevp:1,sum:1,valid:1,values:1,variance:1,variancep:1},WS={count:1,min:1,max:1};function HS(t){return PC(t,"argmin")}function GS(t){return PC(t,"argmax")}function YS(t){return Lt(t)&&Dt(qS,t)}const VS=new Set(["count","valid","missing","distinct"]);function $S(t){return Lt(t)&&VS.has(t)}const XS=new Set(["count","sum","distinct","valid","missing"]),ZS=new Set(["mean","average","median","q1","q3","min","max"]);function JS(t){return Ot(t)&&(t=CR(t,void 0)),"bin"+lC(t).map((e=>eT(t[e])?pC("_".concat(e,"_").concat(dC(t[e]))):pC("_".concat(e,"_").concat(t[e])))).join("")}function QS(t){return!0===t||tT(t)&&!t.binned}function KS(t){return"binned"===t||tT(t)&&!0===t.binned}function tT(t){return W(t)}function eT(t){return PC(t,"param")}function nT(t){switch(t){case LC:case IC:case aM:case nM:case rM:case iM:case fM:case cM:case uM:case lM:case oM:return 6;case dM:return 4;default:return 10}}function rT(t){return PC(t,"expr")}function iT(t){let{level:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{level:0};const n=lC(t||{}),r={};for(const i of n)r[i]=0===e?yT(t[i]):iT(t[i],{level:e-1});return r}const oT=["anchor","frame","offset","orient","angle","limit","color","subtitleColor","subtitleFont","subtitleFontSize","subtitleFontStyle","subtitleFontWeight","subtitleLineHeight","subtitlePadding"];function aT(t){const{anchor:e,frame:n,offset:r,orient:i,angle:o,limit:a,color:s,subtitleColor:c,subtitleFont:u,subtitleFontSize:l,subtitleFontStyle:f,subtitleFontWeight:d,subtitleLineHeight:h,subtitlePadding:p}=t,m=(0,jD.A)(t,oT),g=(0,v.A)((0,v.A)({},m),s?{fill:s}:{}),y=(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({},e?{anchor:e}:{}),n?{frame:n}:{}),r?{offset:r}:{}),i?{orient:i}:{}),void 0!==o?{angle:o}:{}),void 0!==a?{limit:a}:{}),b=(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({},c?{subtitleColor:c}:{}),u?{subtitleFont:u}:{}),l?{subtitleFontSize:l}:{}),f?{subtitleFontStyle:f}:{}),d?{subtitleFontWeight:d}:{}),h?{subtitleLineHeight:h}:{}),p?{subtitlePadding:p}:{});return{titleMarkConfig:g,subtitleMarkConfig:$D(t,["align","baseline","dx","dy","limit"]),nonMarkTitleProperties:y,subtitle:b}}function sT(t){return Lt(t)||q(t)&&Lt(t[0])}function cT(t){return PC(t,"signal")}function uT(t){return PC(t,"step")}function lT(t){return!q(t)&&(PC(t,"field")&&PC(t,"data"))}const fT=lC({aria:1,description:1,ariaRole:1,ariaRoleDescription:1,blend:1,opacity:1,fill:1,fillOpacity:1,stroke:1,strokeCap:1,strokeWidth:1,strokeOpacity:1,strokeDash:1,strokeDashOffset:1,strokeJoin:1,strokeOffset:1,strokeMiterLimit:1,startAngle:1,endAngle:1,padAngle:1,innerRadius:1,outerRadius:1,size:1,shape:1,interpolate:1,tension:1,orient:1,align:1,baseline:1,text:1,dir:1,dx:1,dy:1,ellipsis:1,limit:1,radius:1,theta:1,angle:1,font:1,fontSize:1,fontWeight:1,fontStyle:1,lineBreak:1,lineHeight:1,cursor:1,href:1,tooltip:1,cornerRadius:1,cornerRadiusTopLeft:1,cornerRadiusTopRight:1,cornerRadiusBottomLeft:1,cornerRadiusBottomRight:1,aspect:1,width:1,height:1,url:1,smooth:1}),dT={arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1},hT=["cornerRadius","cornerRadiusTopLeft","cornerRadiusTopRight","cornerRadiusBottomLeft","cornerRadiusBottomRight"],pT=["expr"],mT=["expr"],gT=["expr"];function vT(t){const e=q(t.condition)?t.condition.map(bT):bT(t.condition);return(0,v.A)((0,v.A)({},yT(t)),{},{condition:e})}function yT(t){if(rT(t)){const{expr:e}=t,n=(0,jD.A)(t,pT);return(0,v.A)({signal:e},n)}return t}function bT(t){if(rT(t)){const{expr:e}=t,n=(0,jD.A)(t,mT);return(0,v.A)({signal:e},n)}return t}function AT(t){if(rT(t)){const{expr:e}=t,n=(0,jD.A)(t,gT);return(0,v.A)({signal:e},n)}return cT(t)?t:void 0!==t?{value:t}:void 0}function xT(t){return cT(t)?t.signal:Vt(t)}function _T(t){return cT(t)?t.signal:Vt(t.value)}function wT(t){return cT(t)?t.signal:null==t?null:Vt(t)}function kT(t){var e;return[].concat(t.type,null!==(e=t.style)&&void 0!==e?e:[])}function ET(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{vgChannel:i,ignoreVgConfig:o}=r;return i&&PC(e,i)?e[i]:void 0!==e[t]?e[t]:!o||i&&i!==t?FT(t,e,n,r):void 0}function FT(t,e,n){let{vgChannel:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=DT(t,e,n.style);return FC(r?i:void 0,i,r?n[e.type][r]:void 0,n[e.type][t],r?n.mark[r]:n.mark[t])}function DT(t,e,n){return CT(t,kT(e),n)}function CT(t,e,n){let r;e=ht(e);for(const i of e){const e=n[i];PC(e,t)&&(r=e[t])}return r}function MT(t,e){return ht(t).reduce(((t,n)=>{var r;return t.field.push(pR(n,e)),t.order.push(null!==(r=n.sort)&&void 0!==r?r:"ascending"),t}),{field:[],order:[]})}function ST(t,e){const n=[...t];return e.forEach((t=>{for(const e of n)if(RC(e,t))return;n.push(t)})),n}function TT(t,e){return RC(t,e)||!e?t:t?[...ht(t),...ht(e)].join(", "):e}function NT(t,e){const n=t.value,r=e.value;if(null==n||null===r)return{explicit:t.explicit,value:null};if((sT(n)||cT(n))&&(sT(r)||cT(r)))return{explicit:t.explicit,value:TT(n,r)};if(sT(n)||cT(n))return{explicit:t.explicit,value:n};if(sT(r)||cT(r))return{explicit:t.explicit,value:r};if(!sT(n)&&!cT(n)&&!sT(r)&&!cT(r))return{explicit:t.explicit,value:ST(n,r)};throw new Error("It should never reach here")}function OT(t){return"Invalid specification ".concat(zC(t),'. Make sure the specification includes at least one of the following properties: "mark", "layer", "facet", "hconcat", "vconcat", "concat", or "repeat".')}const BT='Autosize "fit" only works for single views and layered views.';function RT(t){return"".concat("width"==t?"Width":"Height",' "container" only works for single views and layered views.')}function zT(t){const e="width"==t?"x":"y";return"".concat("width"==t?"Width":"Height",' "container" only works well with autosize "fit" or "fit-').concat(e,'".')}function PT(t){return t?'Dropping "fit-'.concat(t,'" because spec has discrete ').concat(VM(t),"."):'Dropping "fit" because spec has discrete size.'}function LT(t){return"Unknown field for ".concat(t,". Cannot calculate view size.")}function IT(t){return'Cannot project a selection on encoding channel "'.concat(t,'", which has no field.')}function jT(t,e){return'Cannot project a selection on encoding channel "'.concat(t,'" as it uses an aggregate function ("').concat(e,'").')}function UT(t){return"Selection not supported for ".concat(t," yet.")}const qT="The same selection must be used to override scale domains in a layered view.";function WT(t){return'The "columns" property cannot be used when "'.concat(t,'" has nested row/column.')}const HT="Animation involving facet, layer, or concat is currently unsupported.";function GT(t,e,n){return'An ancestor parsed field "'.concat(t,'" as ').concat(n," but a child wants to parse the field as ").concat(e,".")}function YT(t){return"Ignoring an invalid transform: ".concat(zC(t),".")}function VT(t){return"Config.customFormatTypes is not true, thus custom format type and format for channel ".concat(t," are dropped.")}function $T(t){return"".concat(t,"Offset dropped because ").concat(t," is continuous")}function XT(t){return'Invalid field type "'.concat(t,'".')}function ZT(t,e){const{fill:n,stroke:r}=e;return"Dropping color ".concat(t," as the plot also has ").concat(n&&r?"fill and stroke":n?"fill":"stroke",".")}function JT(t,e){return"Dropping ".concat(zC(t),' from channel "').concat(e,'" since it does not contain any data field, datum, value, or signal.')}function QT(t,e,n){return"".concat(t,' dropped as it is incompatible with "').concat(e,'"').concat(n?" when ".concat(n):"",".")}function KT(t){return"".concat(t," encoding should be discrete (ordinal / nominal / binned).")}function tN(t){return"".concat(t," encoding should be discrete (ordinal / nominal / binned) or use a discretizing scale (e.g. threshold).")}function eN(t,e){return'Using discrete channel "'.concat(t,'" to encode "').concat(e,'" field can be misleading as it does not encode ').concat("ordinal"===e?"order":"magnitude",".")}function nN(t){return"Using unaggregated domain with raw field has no effect (".concat(zC(t),").")}function rN(t){return'Unaggregated domain not applicable for "'.concat(t,'" since it produces values outside the origin domain of the source data.')}function iN(t){return"Unaggregated domain is currently unsupported for log scale (".concat(zC(t),").")}function oN(t,e,n){return"".concat(n,"-scale's \"").concat(e,'" is dropped as it does not work with ').concat(t," scale.")}function aN(t){return'The step for "'.concat(t,'" is dropped because the ').concat("width"===t?"x":"y"," is continuous.")}const sN="Domains that should be unioned has conflicting sort properties. Sort will be set to true.";function cN(t,e){return"Invalid ".concat(t,": ").concat(zC(e),".")}function uN(t){return"1D error band does not support ".concat(t,".")}function lN(t){return"Channel ".concat(t,' is required for "binned" bin.')}const fN=U(L);let dN=fN;function hN(){return dN=fN,dN}function pN(){dN.error(...arguments)}function mN(){dN.warn(...arguments)}function gN(t){if(t&&W(t))for(const e of EN)if(PC(t,e))return!0;return!1}new WeakMap;const vN=["january","february","march","april","may","june","july","august","september","october","november","december"],yN=vN.map((t=>t.substr(0,3))),bN=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],AN=bN.map((t=>t.substr(0,3)));function xN(t,e){const n=[];if(e&&void 0!==t.day&&lC(t).length>1&&(mN(function(t){return"Dropping day from datetime ".concat(zC(t)," as day cannot be combined with other units.")}(t)),delete(t=YD(t)).day),void 0!==t.year?n.push(t.year):n.push(2012),void 0!==t.month){const r=e?function(t){if(OC(t)&&(t=+t),zt(t))return t-1;{const e=t.toLowerCase(),n=vN.indexOf(e);if(-1!==n)return n;const r=e.substr(0,3),i=yN.indexOf(r);if(-1!==i)return i;throw new Error(cN("month",t))}}(t.month):t.month;n.push(r)}else if(void 0!==t.quarter){const r=e?function(t){if(OC(t)&&(t=+t),zt(t))return t>4&&mN(cN("quarter",t)),t-1;throw new Error(cN("quarter",t))}(t.quarter):t.quarter;n.push(zt(r)?3*r:"".concat(r,"*3"))}else n.push(0);if(void 0!==t.date)n.push(t.date);else if(void 0!==t.day){const r=e?function(t){if(OC(t)&&(t=+t),zt(t))return t%7;{const e=t.toLowerCase(),n=bN.indexOf(e);if(-1!==n)return n;const r=e.substr(0,3),i=AN.indexOf(r);if(-1!==i)return i;throw new Error(cN("day",t))}}(t.day):t.day;n.push(zt(r)?r+1:"".concat(r,"+1"))}else n.push(1);for(const r of["hours","minutes","seconds","milliseconds"]){const e=t[r];n.push("undefined"===typeof e?0:e)}return n}function _N(t){const e=xN(t,!0).join(", ");return t.utc?"utc(".concat(e,")"):"datetime(".concat(e,")")}const wN=["utc"],kN={year:1,quarter:1,month:1,week:1,day:1,dayofyear:1,date:1,hours:1,minutes:1,seconds:1,milliseconds:1},EN=lC(kN);(0,v.A)((0,v.A)({},{binnedyear:1,binnedyearquarter:1,binnedyearquartermonth:1,binnedyearmonth:1,binnedyearmonthdate:1,binnedyearmonthdatehours:1,binnedyearmonthdatehoursminutes:1,binnedyearmonthdatehoursminutesseconds:1,binnedyearweek:1,binnedyearweekday:1,binnedyearweekdayhours:1,binnedyearweekdayhoursminutes:1,binnedyearweekdayhoursminutesseconds:1,binnedyeardayofyear:1}),{binnedutcyear:1,binnedutcyearquarter:1,binnedutcyearquartermonth:1,binnedutcyearmonth:1,binnedutcyearmonthdate:1,binnedutcyearmonthdatehours:1,binnedutcyearmonthdatehoursminutes:1,binnedutcyearmonthdatehoursminutesseconds:1,binnedutcyearweek:1,binnedutcyearweekday:1,binnedutcyearweekdayhours:1,binnedutcyearweekdayhoursminutes:1,binnedutcyearweekdayhoursminutesseconds:1,binnedutcyeardayofyear:1});function FN(t){return W(t)?t.binned:DN(t)}function DN(t){return t&&t.startsWith("binned")}function CN(t){return t.startsWith("utc")}const MN={"year-month":"%b %Y ","year-month-date":"%b %d, %Y "};function SN(t){return EN.filter((e=>NN(t,e)))}function TN(t){const e=SN(t);return e[e.length-1]}function NN(t,e){const n=t.indexOf(e);return!(n<0)&&(!(n>0&&"seconds"===e&&"i"===t.charAt(n-1))&&(!(t.length>n+3&&"day"===e&&"o"===t.charAt(n+3))&&!(n>0&&"year"===e&&"f"===t.charAt(n-1))))}function ON(t,e){let{end:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{end:!1};const r=yC(e),i=CN(t)?"utc":"";let o;const a={};for(const c of EN)NN(t,c)&&(a[c]="quarter"===(s=c)?"(".concat(i,"quarter(").concat(r,")-1)"):"".concat(i).concat(s,"(").concat(r,")"),o=c);var s;return n&&(a[o]+="+1"),function(t){const e=xN(t,!1).join(", ");return t.utc?"utc(".concat(e,")"):"datetime(".concat(e,")")}(a)}function BN(t){if(!t)return;const e=SN(t);return"timeUnitSpecifier(".concat(zC(e),", ").concat(zC(MN),")")}function RN(t){if(!t)return;let e;return Lt(t)?e=DN(t)?{unit:t.substring(6),binned:!0}:{unit:t}:W(t)&&(e=(0,v.A)((0,v.A)({},t),t.unit?{unit:t.unit}:{})),CN(e.unit)&&(e.utc=!0,e.unit=e.unit.substring(3)),e}function zN(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t;const n=RN(t),r=TN(n.unit);if(r&&"day"!==r){const t={year:2001,month:1,date:1,hours:0,minutes:0,seconds:0,milliseconds:0},{step:i,part:o}=LN(r,n.step),a=(0,v.A)((0,v.A)({},t),{},{[o]:+t[o]+i});return"".concat(e(_N(a))," - ").concat(e(_N(t)))}}const PN={year:1,month:1,date:1,hours:1,minutes:1,seconds:1,milliseconds:1};function LN(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(function(t){return Dt(PN,t)}(t))return{part:t,step:e};switch(t){case"day":case"dayofyear":return{part:"date",step:e};case"quarter":return{part:"month",step:3*e};case"week":return{part:"date",step:7*e}}}function IN(t){return!(null===t||void 0===t||!t.field)&&void 0!==t.equal}function jN(t){return!(null===t||void 0===t||!t.field)&&void 0!==t.lt}function UN(t){return!(null===t||void 0===t||!t.field)&&void 0!==t.lte}function qN(t){return!(null===t||void 0===t||!t.field)&&void 0!==t.gt}function WN(t){return!(null===t||void 0===t||!t.field)&&void 0!==t.gte}function HN(t){if(null!==t&&void 0!==t&&t.field){if(q(t.range)&&2===t.range.length)return!0;if(cT(t.range))return!0}return!1}function GN(t){return!(null===t||void 0===t||!t.field)&&(q(t.oneOf)||q(t.in))}function YN(t){return GN(t)||IN(t)||HN(t)||jN(t)||qN(t)||UN(t)||WN(t)}function VN(t,e){return TR(t,{timeUnit:e,wrapTime:!0})}function $N(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{field:n}=t,r=RN(t.timeUnit),{unit:i,binned:o}=r||{},a=pR(t,{expr:"datum"}),s=i?"time(".concat(o?a:ON(i,n),")"):a;if(IN(t))return"".concat(s,"===").concat(VN(t.equal,i));if(jN(t)){const e=t.lt;return"".concat(s,"<").concat(VN(e,i))}if(qN(t)){const e=t.gt;return"".concat(s,">").concat(VN(e,i))}if(UN(t)){const e=t.lte;return"".concat(s,"<=").concat(VN(e,i))}if(WN(t)){const e=t.gte;return"".concat(s,">=").concat(VN(e,i))}if(GN(t))return"indexof([".concat(function(t,e){return t.map((t=>VN(t,e)))}(t.oneOf,i).join(","),"], ").concat(s,") !== -1");if(function(t){return!(null===t||void 0===t||!t.field)&&void 0!==t.valid}(t))return XN(s,t.valid);if(HN(t)){const{range:n}=iT(t),r=cT(n)?{signal:"".concat(n.signal,"[0]")}:n[0],o=cT(n)?{signal:"".concat(n.signal,"[1]")}:n[1];if(null!==r&&null!==o&&e)return"inrange("+s+", ["+VN(r,i)+", "+VN(o,i)+"])";const a=[];return null!==r&&a.push("".concat(s," >= ").concat(VN(r,i))),null!==o&&a.push("".concat(s," <= ").concat(VN(o,i))),a.length>0?a.join(" && "):"true"}throw new Error("Invalid field predicate: ".concat(zC(t)))}function XN(t){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"isValid(".concat(t,") && isFinite(+").concat(t,")"):"!isValid(".concat(t,") || !isFinite(+").concat(t,")")}function ZN(t){return YN(t)&&t.timeUnit?(0,v.A)((0,v.A)({},t),{},{timeUnit:RN(t.timeUnit)}):t}const JN={quantitative:"quantitative",ordinal:"ordinal",temporal:"temporal",nominal:"nominal",geojson:"geojson"};function QN(t){return"quantitative"===t||"temporal"===t}function KN(t){return"ordinal"===t||"nominal"===t}const tO=JN.quantitative,eO=JN.ordinal,nO=JN.temporal,rO=JN.nominal,iO=JN.geojson;lC(JN);const oO="linear",aO="log",sO="pow",cO="sqrt",uO="time",lO="utc",fO="point",dO="band",hO={linear:"numeric",log:"numeric",pow:"numeric",sqrt:"numeric",symlog:"numeric",identity:"numeric",sequential:"numeric",time:"time",utc:"time",ordinal:"ordinal","bin-ordinal":"bin-ordinal",point:"ordinal-position",band:"ordinal-position",quantile:"discretizing",quantize:"discretizing",threshold:"discretizing"};lC(hO);function pO(t,e){const n=hO[t],r=hO[e];return n===r||"ordinal-position"===n&&"time"===r||"ordinal-position"===r&&"time"===n}const mO={linear:0,log:1,pow:1,sqrt:1,symlog:1,identity:1,sequential:1,time:0,utc:0,point:10,band:11,ordinal:0,"bin-ordinal":0,quantile:0,quantize:0,threshold:0};function gO(t){return mO[t]}const vO=new Set(["linear","log","pow","sqrt","symlog"]),yO=new Set([...vO,"time","utc"]);function bO(t){return vO.has(t)}const AO=new Set(["quantile","quantize","threshold"]),xO=new Set([...yO,...AO,"sequential","identity"]),_O=new Set(["ordinal","bin-ordinal","point","band"]);new Set(["time","utc"]);function wO(t){return _O.has(t)}function kO(t){return xO.has(t)}function EO(t){return yO.has(t)}function FO(t){return AO.has(t)}function DO(t){return PC(t,"param")}const CO={type:1,domain:1,domainMax:1,domainMin:1,domainMid:1,domainRaw:1,align:1,range:1,rangeMax:1,rangeMin:1,scheme:1,bins:1,reverse:1,round:1,clamp:1,nice:1,base:1,exponent:1,constant:1,interpolate:1,zero:1,padding:1,paddingInner:1,paddingOuter:1},{type:MO,domain:SO,range:TO,rangeMax:NO,rangeMin:OO,scheme:BO}=(lC(CO),CO),RO=(0,jD.A)(CO,["type","domain","range","rangeMax","rangeMin","scheme"]),zO=lC(RO);function PO(t,e){switch(e){case"type":case"domain":case"reverse":case"range":return!0;case"scheme":case"interpolate":return!["point","band","identity"].includes(t);case"bins":return!["point","band","identity","ordinal"].includes(t);case"round":return EO(t)||"band"===t||"point"===t;case"padding":case"rangeMin":case"rangeMax":return EO(t)||["point","band"].includes(t);case"paddingOuter":case"align":return["point","band"].includes(t);case"paddingInner":return"band"===t;case"domainMax":case"domainMid":case"domainMin":case"domainRaw":case"clamp":return EO(t);case"nice":return EO(t)||"quantize"===t||"threshold"===t;case"exponent":return"pow"===t;case"base":return"log"===t;case"constant":return"symlog"===t;case"zero":return kO(t)&&!QD(["log","time","utc","threshold","quantile"],t)}}function LO(t,e){switch(e){case"interpolate":case"scheme":case"domainMid":return CM(t)?void 0:'Cannot use the scale property "'.concat(e,'" with non-color channel.');case"align":case"type":case"bins":case"domain":case"domainMax":case"domainMin":case"domainRaw":case"range":case"base":case"exponent":case"constant":case"nice":case"padding":case"paddingInner":case"paddingOuter":case"rangeMax":case"rangeMin":case"reverse":case"round":case"clamp":case"zero":return}}const IO={arc:"arc",area:"area",bar:"bar",image:"image",line:"line",point:"point",rect:"rect",rule:"rule",text:"text",tick:"tick",trail:"trail",circle:"circle",square:"square",geoshape:"geoshape"},jO=IO.arc,UO=IO.area,qO=IO.bar,WO=IO.image,HO=IO.line,GO=IO.point,YO=IO.rect,VO=IO.rule,$O=IO.text,XO=IO.tick,ZO=IO.trail,JO=IO.circle,QO=IO.square,KO=IO.geoshape;function tB(t){return["line","area","trail"].includes(t)}function eB(t){return["rect","bar","image","arc","tick"].includes(t)}const nB=new Set(lC(IO));function rB(t){return PC(t,"type")}const iB=["stroke","strokeWidth","strokeDash","strokeDashOffset","strokeOpacity","strokeJoin","strokeMiterLimit","fill","fillOpacity"],oB=lC({color:1,filled:1,invalid:1,order:1,radius2:1,theta2:1,timeUnitBandSize:1,timeUnitBandPosition:1}),aB=["binSpacing","continuousBandSize","discreteBandSize","minBandSize"],sB={area:["line","point"],bar:aB,rect:aB,line:["point"],tick:["bandSize","thickness",...aB]},cB=lC({mark:1,arc:1,area:1,bar:1,circle:1,image:1,line:1,point:1,rect:1,rule:1,square:1,text:1,tick:1,trail:1,geoshape:1});function uB(t){return PC(t,"band")}const lB={horizontal:["cornerRadiusTopRight","cornerRadiusBottomRight"],vertical:["cornerRadiusTopLeft","cornerRadiusTopRight"]},fB={binSpacing:0,continuousBandSize:5,minBandSize:.25,timeUnitBandPosition:.5},dB=(0,v.A)((0,v.A)({},fB),{},{binSpacing:1}),hB=(0,v.A)((0,v.A)({},fB),{},{thickness:1});function pB(t,e){let{isPath:n}=e;return void 0===t||"break-paths-show-path-domains"===t?n?"break-paths-show-domains":"filter":null===t?"show":t}function mB(t){var e;let{markDef:n,config:r,scaleChannel:i,scaleType:o,isCountAggregate:a}=t;if(!o||!kO(o)||a)return"always-valid";const s=pB(ET("invalid",n,r),{isPath:tB(n.type)});return void 0!==(null===(e=r.scale)||void 0===e||null===(e=e.invalid)||void 0===e?void 0:e[i])?"show":s}function gB(t){let{scaleName:e,scale:n,mode:r}=t;const i="domain('".concat(e,"')");if(!n||!e)return;const o="".concat(i,"[0]"),a="peek(".concat(i,")"),s=n.domainHasZero();if("definitely"===s)return{scale:e,value:0};if("maybe"===s){const t="zeroOrMin"===r?o:a;return{signal:"scale('".concat(e,"', inrange(0, ").concat(i,") ? 0 : ").concat(t,")")}}return{signal:"scale('".concat(e,"', ").concat("zeroOrMin"===r?o:a,")")}}function vB(t){let{scaleChannel:e,channelDef:n,scale:r,scaleName:i,markDef:o,config:a}=t;const s=null===r||void 0===r?void 0:r.get("type"),c=wR(n),u=mB({scaleChannel:e,markDef:o,config:a,scaleType:s,isCountAggregate:$S(null===c||void 0===c?void 0:c.aggregate)});if(c&&"show"===u){var l,f;const t=null!==(l=null===(f=a.scale.invalid)||void 0===f?void 0:f[e])&&void 0!==l?l:"zero-or-min";return(0,v.A)({test:XN(pR(c,{expr:"datum"}),!1)},function(t,e,n){if(function(t){return W(t)&&"value"in t}(t)){const{value:e}=t;return cT(e)?{signal:e.signal}:{value:e}}return gB({scale:e,scaleName:n,mode:"zeroOrMin"})}(t,r,i))}}function yB(t){const{channel:e,channelDef:n,markDef:r,scale:i,scaleName:o,config:a}=t,s=HM(e),c=xB(t),u=vB({scaleChannel:s,channelDef:n,scale:i,scaleName:o,markDef:r,config:a});return void 0!==u?[u,c]:c}function bB(t,e,n,r){const i={};if(e&&(i.scale=e),nR(t)){const{datum:e}=t;gN(e)?i.signal=_N(e):cT(e)?i.signal=e.signal:rT(e)?i.signal=e.expr:i.value=e}else i.field=pR(t,n);if(r){const{offset:t,band:e}=r;t&&(i.offset=t),e&&(i.band=e)}return i}function AB(t){let{scaleName:e,fieldOrDatumDef:n,fieldOrDatumDef2:r,offset:i,startSuffix:o,endSuffix:a="end",bandPosition:s=.5}=t;const c=!cT(s)&&0<s&&s<1?"datum":void 0,u=pR(n,{expr:c,suffix:o}),l=void 0!==r?pR(r,{expr:c}):pR(n,{suffix:a,expr:c}),f={};if(0===s||1===s){f.scale=e;const t=0===s?u:l;f.field=t}else{const t=cT(s)?"(1-".concat(s.signal,") * ").concat(u," + ").concat(s.signal," * ").concat(l):"".concat(1-s," * ").concat(u," + ").concat(s," * ").concat(l);f.signal='scale("'.concat(e,'", ').concat(t,")")}return i&&(f.offset=i),f}function xB(t){let{channel:e,channelDef:n,channel2Def:r,markDef:i,config:o,scaleName:a,scale:s,stack:c,offset:u,defaultRef:l,bandPosition:f}=t;if(n){if(aR(n)){var d,h;const t=null===s||void 0===s?void 0:s.get("type");if(sR(n)){var p;null!==(p=f)&&void 0!==p||(f=VB({fieldDef:n,fieldDef2:r,markDef:i,config:o}));const{bin:s,timeUnit:l,type:d}=n;if(QS(s)||f&&l&&d===nO)return null!==c&&void 0!==c&&c.impute?bB(n,a,{binSuffix:"mid"},{offset:u}):f&&!wO(t)?AB({scaleName:a,fieldOrDatumDef:n,bandPosition:f,offset:u}):bB(n,a,OR(n,e)?{binSuffix:"range"}:{},{offset:u});if(KS(s)){if(tR(r))return AB({scaleName:a,fieldOrDatumDef:n,fieldOrDatumDef2:r,bandPosition:f,offset:u});mN(lN(e===UC?WC:HC))}}return bB(n,a,wO(t)?{binSuffix:"range"}:{},{offset:u,band:"band"===t?null!==(d=null!==(h=f)&&void 0!==h?h:n.bandPosition)&&void 0!==d?d:.5:void 0})}if(cR(n)){const t=n.value,r=u?{offset:u}:{};return(0,v.A)((0,v.A)({},_B(e,t)),r)}}return mt(l)&&(l=l()),l?(0,v.A)((0,v.A)({},l),u?{offset:u}:{}):l}function _B(t,e){return QD(["x","x2"],t)&&"width"===e?{field:{group:"width"}}:QD(["y","y2"],t)&&"height"===e?{field:{group:"height"}}:AT(e)}function wB(t){return t&&"number"!==t&&"time"!==t}function kB(t,e,n){return"".concat(t,"(").concat(e).concat(n?", ".concat(zC(n)):"",")")}function EB(t){let{fieldOrDatumDef:e,format:n,formatType:r,expr:i,normalizeStack:o,config:a}=t;if(wB(r))return DB({fieldOrDatumDef:e,format:n,formatType:r,expr:i,config:a});const s=FB(e,i,o),c=eR(e);if(void 0===n&&void 0===r&&a.customFormatTypes){if("quantitative"===c){if(o&&a.normalizedNumberFormatType)return DB({fieldOrDatumDef:e,format:a.normalizedNumberFormat,formatType:a.normalizedNumberFormatType,expr:i,config:a});if(a.numberFormatType)return DB({fieldOrDatumDef:e,format:a.numberFormat,formatType:a.numberFormatType,expr:i,config:a})}if("temporal"===c&&a.timeFormatType&&tR(e)&&void 0===e.timeUnit)return DB({fieldOrDatumDef:e,format:a.timeFormat,formatType:a.timeFormatType,expr:i,config:a})}if(SR(e)){var u,l;const t=function(t){let{field:e,timeUnit:n,format:r,formatType:i,rawTimeFormat:o,isUTCScale:a}=t;return!n||r?!n&&i?"".concat(i,"(").concat(e,", '").concat(r,"')"):(r=Lt(r)?r:o,"".concat(a?"utc":"time","Format(").concat(e,", '").concat(r,"')")):function(t,e,n){if(!t)return;const r=BN(t),i=n||CN(t);return"".concat(i?"utc":"time","Format(").concat(e,", ").concat(r,")")}(n,e,a)}({field:s,timeUnit:tR(e)?null===(u=RN(e.timeUnit))||void 0===u?void 0:u.unit:void 0,format:n,formatType:a.timeFormatType,rawTimeFormat:a.timeFormat,isUTCScale:uR(e)&&(null===(l=e.scale)||void 0===l?void 0:l.type)===lO});return t?{signal:t}:void 0}if(n=SB({type:c,specifiedFormat:n,config:a,normalizeStack:o}),tR(e)&&QS(e.bin)){return{signal:OB(s,pR(e,{expr:i,binSuffix:"end"}),n,r,a)}}return n||"quantitative"===eR(e)?{signal:"".concat(TB(s,n))}:{signal:"isValid(".concat(s,") ? ").concat(s,' : ""+').concat(s)}}function FB(t,e,n){return tR(t)?n?"".concat(pR(t,{expr:e,suffix:"end"}),"-").concat(pR(t,{expr:e,suffix:"start"})):pR(t,{expr:e}):function(t){const{datum:e}=t;return gN(e)?_N(e):"".concat(zC(e))}(t)}function DB(t){var e;let{fieldOrDatumDef:n,format:r,formatType:i,expr:o,normalizeStack:a,config:s,field:c}=t;if(null!==(e=c)&&void 0!==e||(c=FB(n,o,a)),"datum.value"!==c&&tR(n)&&QS(n.bin)){return{signal:OB(c,pR(n,{expr:o,binSuffix:"end"}),r,i,s)}}return{signal:kB(i,c,r)}}function CB(t,e,n,r,i,o){if(!Lt(r)||!wB(r)){if(void 0===n&&void 0===r&&i.customFormatTypes&&"quantitative"===eR(t)){if(i.normalizedNumberFormatType&&lR(t)&&"normalize"===t.stack)return;if(i.numberFormatType)return}if(lR(t)&&"normalize"===t.stack&&i.normalizedNumberFormat)return SB({type:"quantitative",config:i,normalizeStack:!0});if(SR(t)){var a;const e=tR(t)?null===(a=RN(t.timeUnit))||void 0===a?void 0:a.unit:void 0;if(void 0===e&&i.customFormatTypes&&i.timeFormatType)return;return function(t){let{specifiedFormat:e,timeUnit:n,config:r,omitTimeFormatConfig:i}=t;if(e)return e;if(n)return{signal:BN(n)};return i?void 0:r.timeFormat}({specifiedFormat:n,timeUnit:e,config:i,omitTimeFormatConfig:o})}return SB({type:e,specifiedFormat:n,config:i})}}function MB(t,e,n){return t&&(cT(t)||"number"===t||"time"===t)?t:SR(e)&&"time"!==n&&"utc"!==n?tR(e)&&null!==(r=RN(null===e||void 0===e?void 0:e.timeUnit))&&void 0!==r&&r.utc?"utc":"time":void 0;var r}function SB(t){let{type:e,specifiedFormat:n,config:r,normalizeStack:i}=t;return Lt(n)?n:e===tO?i?r.normalizedNumberFormat:r.numberFormat:void 0}function TB(t,e){return"format(".concat(t,', "').concat(e||"",'")')}function NB(t,e,n,r){var i;return wB(n)?kB(n,t,e):TB(t,null!==(i=Lt(e)?e:void 0)&&void 0!==i?i:r.numberFormat)}function OB(t,e,n,r,i){if(void 0===n&&void 0===r&&i.customFormatTypes&&i.numberFormatType)return OB(t,e,i.numberFormat,i.numberFormatType,i);const o=NB(t,n,r,i),a=NB(e,n,r,i);return"".concat(XN(t,!1),' ? "null" : ').concat(o,' + "').concat(" \u2013 ",'" + ').concat(a)}const BB="min",RB={x:1,y:1,color:1,fill:1,stroke:1,strokeWidth:1,size:1,shape:1,fillOpacity:1,strokeOpacity:1,opacity:1,text:1};function zB(t){return Dt(RB,t)}function PB(t){return t&&("count"===t.op||PC(t,"field"))}function LB(t){return t&&q(t)}function IB(t){return PC(t,"row")||PC(t,"column")}function jB(t){return PC(t,"header")}function UB(t){return PC(t,"facet")}const qB=["format","formatType"],WB=["format","formatType"],HB=["orient"];function GB(t){const{field:e,timeUnit:n,bin:r,aggregate:i}=t;return(0,v.A)((0,v.A)((0,v.A)((0,v.A)({},n?{timeUnit:n}:{}),r?{bin:r}:{}),i?{aggregate:i}:{}),{},{field:e})}function YB(t){return PC(t,"sort")}function VB(t){let{fieldDef:e,fieldDef2:n,markDef:r,config:i}=t;if(aR(e)&&void 0!==e.bandPosition)return e.bandPosition;if(tR(e)){const{timeUnit:t,bin:o}=e;if(t&&!n)return FT("timeUnitBandPosition",r,i);if(QS(o))return.5}}function $B(t){let{channel:e,fieldDef:n,fieldDef2:r,markDef:i,config:o,scaleType:a,useVlSizeChannel:s}=t;const c=VM(e),u=ET(s?"size":c,i,o,{vgChannel:c});if(void 0!==u)return u;if(tR(n)){const{timeUnit:t,bin:e}=n;if(t&&!r)return{band:FT("timeUnitBandSize",i,o)};if(QS(e)&&!wO(a))return{band:1}}var l,f,d;return eB(i.type)?a?wO(a)?(null===(f=o[i.type])||void 0===f?void 0:f.discreteBandSize)||{band:1}:null===(d=o[i.type])||void 0===d?void 0:d.continuousBandSize:null===(l=o[i.type])||void 0===l?void 0:l.discreteBandSize:void 0}function XB(t,e,n,r){return!!(QS(t.bin)||t.timeUnit&&sR(t)&&"temporal"===t.type)&&void 0!==VB({fieldDef:t,fieldDef2:e,markDef:n,config:r})}function ZB(t){return PC(t,"sort")&&!PC(t,"field")}function JB(t){return PC(t,"condition")}function QB(t){const e=null===t||void 0===t?void 0:t.condition;return!!e&&!q(e)&&tR(e)}function KB(t){const e=null===t||void 0===t?void 0:t.condition;return!!e&&!q(e)&&aR(e)}function tR(t){return PC(t,"field")||"count"===(null===t||void 0===t?void 0:t.aggregate)}function eR(t){return null===t||void 0===t?void 0:t.type}function nR(t){return PC(t,"datum")}function rR(t){return sR(t)&&!mR(t)||oR(t)}function iR(t){return sR(t)&&"quantitative"===t.type&&!t.bin||oR(t)}function oR(t){return nR(t)&&zt(t.datum)}function aR(t){return tR(t)||nR(t)}function sR(t){return t&&(PC(t,"field")||"count"===t.aggregate)&&PC(t,"type")}function cR(t){return PC(t,"value")}function uR(t){return PC(t,"scale")||PC(t,"sort")}function lR(t){return PC(t,"axis")||PC(t,"stack")||PC(t,"impute")}function fR(t){return PC(t,"legend")}function dR(t){return PC(t,"format")||PC(t,"formatType")}function hR(t){return XD(t,["legend","axis","header","scale"])}function pR(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.field;const r=e.prefix;let i=e.suffix,o="";if(function(t){return"count"===t.aggregate}(t))n=SC("count");else{let r;if(!e.nofn)if(function(t){return PC(t,"op")}(t))r=t.op;else{const{bin:u,aggregate:l,timeUnit:f}=t;var a,s;if(QS(u))r=JS(u),i=(null!==(a=e.binSuffix)&&void 0!==a?a:"")+(null!==(s=e.suffix)&&void 0!==s?s:"");else if(l)GS(l)?(o='["'.concat(n,'"]'),n="argmax_".concat(l.argmax)):HS(l)?(o='["'.concat(n,'"]'),n="argmin_".concat(l.argmin)):r=String(l);else if(f&&!FN(f)){var c;r=function(t){const e=RN(t),{utc:n}=e,r=(0,jD.A)(e,wN);return r.unit?(n?"utc":"")+lC(r).map((t=>pC("".concat("unit"===t?"":"_".concat(t,"_")).concat(r[t])))).join(""):(n?"utc":"")+"timeunit"+lC(r).map((t=>pC("_".concat(t,"_").concat(r[t])))).join("")}(f),i=(!["range","mid"].includes(e.binSuffix)&&e.binSuffix||"")+(null!==(c=e.suffix)&&void 0!==c?c:"")}}r&&(n=n?"".concat(r,"_").concat(n):r)}return i&&(n="".concat(n,"_").concat(i)),r&&(n="".concat(r,"_").concat(n)),e.forAs?kC(n):e.expr?bC(n,e.expr)+o:_C(n)+o}function mR(t){switch(t.type){case"nominal":case"ordinal":case"geojson":return!0;case"quantitative":return tR(t)&&!!t.bin;case"temporal":return!1}throw new Error(XT(t.type))}const gR=(t,e)=>{switch(e.fieldTitle){case"plain":return t.field;case"functional":return function(t){const{aggregate:e,bin:n,timeUnit:r,field:i}=t;if(GS(e))return"".concat(i," for argmax(").concat(e.argmax,")");if(HS(e))return"".concat(i," for argmin(").concat(e.argmin,")");const o=r&&!FN(r)?RN(r):void 0,a=e||(null===o||void 0===o?void 0:o.unit)||(null===o||void 0===o?void 0:o.maxbins)&&"timeunit"||QS(n)&&"bin";return a?"".concat(a.toUpperCase(),"(").concat(i,")"):i}(t);default:return function(t,e){const{field:n,bin:r,timeUnit:i,aggregate:o}=t;if("count"===o)return e.countTitle;if(QS(r))return"".concat(n," (binned)");if(i&&!FN(i)){var a;const t=null===(a=RN(i))||void 0===a?void 0:a.unit;if(t)return"".concat(n," (").concat(SN(t).join("-"),")")}else if(o)return GS(o)?"".concat(n," for max ").concat(o.argmax):HS(o)?"".concat(n," for min ").concat(o.argmin):"".concat(vC(o)," of ").concat(n);return n}(t,e)}};let vR=gR;function yR(t){vR=t}function bR(t,e,n){var r;let{allowDisabling:i,includeDefault:o=!0}=n;const a=null===(r=AR(t))||void 0===r?void 0:r.title;if(!tR(t))return null!==a&&void 0!==a?a:t.title;const s=t,c=o?xR(s,e):void 0;return i?FC(a,s.title,c):null!==(u=null!==a&&void 0!==a?a:s.title)&&void 0!==u?u:c;var u}function AR(t){return lR(t)&&t.axis?t.axis:fR(t)&&t.legend?t.legend:jB(t)&&t.header?t.header:void 0}function xR(t,e){return vR(t,e)}function _R(t){if(dR(t)){const{format:e,formatType:n}=t;return{format:e,formatType:n}}{var e;const n=null!==(e=AR(t))&&void 0!==e?e:{},{format:r,formatType:i}=n;return{format:r,formatType:i}}}function wR(t){return tR(t)?t:QB(t)?t.condition:void 0}function kR(t){return aR(t)?t:KB(t)?t.condition:void 0}function ER(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Lt(t)||zt(t)||Ot(t)){return mN(function(t,e,n){return"Channel ".concat(t," is a ").concat(e,". Converted to {value: ").concat(zC(n),"}.")}(e,Lt(t)?"string":zt(t)?"number":"boolean",t)),{value:t}}return aR(t)?FR(t,e,n,r):KB(t)?(0,v.A)((0,v.A)({},t),{},{condition:FR(t.condition,e,n,r)}):t}function FR(t,e,n,r){if(dR(t)){const{format:i,formatType:o}=t,a=(0,jD.A)(t,qB);if(wB(o)&&!n.customFormatTypes)return mN(VT(e)),FR(a,e,n,r)}else{const i=lR(t)?"axis":fR(t)?"legend":jB(t)?"header":null;if(i&&t[i]){const o=t[i],{format:a,formatType:s}=o,c=(0,jD.A)(o,WB);if(wB(s)&&!n.customFormatTypes)return mN(VT(e)),FR((0,v.A)((0,v.A)({},t),{},{[i]:c}),e,n,r)}}return tR(t)?DR(t,e,r):function(t){let e=t.type;if(e)return t;const{datum:n}=t;return e=zt(n)?"quantitative":Lt(n)?"nominal":gN(n)?"temporal":void 0,(0,v.A)((0,v.A)({},t),{},{type:e})}(t)}function DR(t,e){let{compositeMark:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{aggregate:r,timeUnit:i,bin:o,field:a}=t,s=(0,v.A)({},t);if(n||!r||YS(r)||GS(r)||HS(r)||(mN(function(t){return'Invalid aggregation operator "'.concat(t,'".')}(r)),delete s.aggregate),i&&(s.timeUnit=RN(i)),a&&(s.field="".concat(a)),QS(o)&&(s.bin=CR(o,e)),KS(o)&&!gS(e)&&mN(function(t){return"Channel ".concat(t,' should not be used with "binned" bin.')}(e)),sR(s)){const{type:t}=s,e=function(t){if(t)switch(t=t.toLowerCase()){case"q":case tO:return"quantitative";case"t":case nO:return"temporal";case"o":case eO:return"ordinal";case"n":case rO:return"nominal";case iO:return"geojson"}}(t);t!==e&&(s.type=e),"quantitative"!==t&&$S(r)&&(mN(function(t,e){return'Invalid field type "'.concat(t,'" for aggregate: "').concat(e,'", using "quantitative" instead.')}(t,r)),s.type="quantitative")}else if(!WM(e)){const t=function(t,e){var n;switch(e){case"latitude":case"longitude":return"quantitative";case"row":case"column":case"facet":case"shape":case"strokeDash":return"nominal";case"order":return"ordinal"}if(YB(t)&&q(t.sort))return"ordinal";const{aggregate:r,bin:i,timeUnit:o}=t;if(o)return"temporal";if(i||r&&!GS(r)&&!HS(r))return"quantitative";if(uR(t)&&null!==(n=t.scale)&&void 0!==n&&n.type)switch(hO[t.scale.type]){case"numeric":case"discretizing":return"quantitative";case"time":return"temporal"}return"nominal"}(s,e);s.type=t}if(sR(s)){const{compatible:t,warning:n}=function(t,e){const n=t.type;if("geojson"===n&&"shape"!==e)return{compatible:!1,warning:"Channel ".concat(e," should not be used with a geojson data.")};switch(e){case LC:case IC:case jC:return mR(t)?MR:{compatible:!1,warning:KT(e)};case UC:case qC:case GC:case YC:case nM:case rM:case iM:case hM:case mM:case gM:case vM:case yM:case bM:case sM:case XC:case VC:case AM:return MR;case QC:case tM:case JC:case KC:return n!==tO?{compatible:!1,warning:"Channel ".concat(e," should be used with a quantitative field only, not ").concat(t.type," field.")}:MR;case cM:case uM:case lM:case fM:case aM:case ZC:case $C:case WC:case HC:case eM:return"nominal"!==n||t.sort?MR:{compatible:!1,warning:"Channel ".concat(e," should not be used with an unsorted discrete field.")};case oM:case dM:return mR(t)||function(t){var e;return uR(t)&&FO(null===(e=t.scale)||void 0===e?void 0:e.type)}(t)?MR:{compatible:!1,warning:tN(e)};case pM:return"nominal"!==t.type||"sort"in t?MR:{compatible:!1,warning:"Channel order is inappropriate for nominal field, which has no inherent order."}}}(s,e)||{};!1===t&&mN(n)}if(YB(s)&&Lt(s.sort)){const{sort:t}=s;if(zB(t))return(0,v.A)((0,v.A)({},s),{},{sort:{encoding:t}});const e=t.substring(1);if("-"===t.charAt(0)&&zB(e))return(0,v.A)((0,v.A)({},s),{},{sort:{encoding:e,order:"descending"}})}if(jB(s)){const{header:t}=s;if(t){const{orient:e}=t,n=(0,jD.A)(t,HB);if(e)return(0,v.A)((0,v.A)({},s),{},{header:(0,v.A)((0,v.A)({},n),{},{labelOrient:t.labelOrient||e,titleOrient:t.titleOrient||e})})}}return s}function CR(t,e){return Ot(t)?{maxbins:nT(e)}:"binned"===t?{binned:!0}:t.maxbins||t.step?t:(0,v.A)((0,v.A)({},t),{},{maxbins:nT(e)})}const MR={compatible:!0};function SR(t){const{formatType:e}=_R(t);return"time"===e||!e&&function(t){return t&&("temporal"===t.type||tR(t)&&!!t.timeUnit)}(t)}function TR(t,e){var n;let{timeUnit:r,type:i,wrapTime:o,undefinedIfExprNotRequired:a}=e;const s=r&&(null===(n=RN(r))||void 0===n?void 0:n.unit);let c,u=s||"temporal"===i;return rT(t)?c=t.expr:cT(t)?c=t.signal:gN(t)?(u=!0,c=_N(t)):(Lt(t)||zt(t))&&u&&(c="datetime(".concat(zC(t),")"),function(t){return Dt(kN,t)}(s)&&(zt(t)&&t<1e4||Lt(t)&&isNaN(Date.parse(t)))&&(c=_N({[s]:t}))),c?o&&u?"time(".concat(c,")"):c:a?void 0:zC(t)}function NR(t,e){const{type:n}=t;return e.map((e=>{const r=TR(e,{timeUnit:tR(t)&&!FN(t.timeUnit)?t.timeUnit:void 0,type:n,undefinedIfExprNotRequired:!0});return void 0!==r?{signal:r}:e}))}function OR(t,e){return QS(t.bin)?zS(e)&&["ordinal","nominal"].includes(t.type):(console.warn("Only call this method for binned field defs."),!1)}const BR={labelAlign:{part:"labels",vgProp:"align"},labelBaseline:{part:"labels",vgProp:"baseline"},labelColor:{part:"labels",vgProp:"fill"},labelFont:{part:"labels",vgProp:"font"},labelFontSize:{part:"labels",vgProp:"fontSize"},labelFontStyle:{part:"labels",vgProp:"fontStyle"},labelFontWeight:{part:"labels",vgProp:"fontWeight"},labelOpacity:{part:"labels",vgProp:"opacity"},labelOffset:null,labelPadding:null,gridColor:{part:"grid",vgProp:"stroke"},gridDash:{part:"grid",vgProp:"strokeDash"},gridDashOffset:{part:"grid",vgProp:"strokeDashOffset"},gridOpacity:{part:"grid",vgProp:"opacity"},gridWidth:{part:"grid",vgProp:"strokeWidth"},tickColor:{part:"ticks",vgProp:"stroke"},tickDash:{part:"ticks",vgProp:"strokeDash"},tickDashOffset:{part:"ticks",vgProp:"strokeDashOffset"},tickOpacity:{part:"ticks",vgProp:"opacity"},tickSize:null,tickWidth:{part:"ticks",vgProp:"strokeWidth"}};function RR(t){return null===t||void 0===t?void 0:t.condition}const zR=["domain","grid","labels","ticks","title"],PR={grid:"grid",gridCap:"grid",gridColor:"grid",gridDash:"grid",gridDashOffset:"grid",gridOpacity:"grid",gridScale:"grid",gridWidth:"grid",orient:"main",bandPosition:"both",aria:"main",description:"main",domain:"main",domainCap:"main",domainColor:"main",domainDash:"main",domainDashOffset:"main",domainOpacity:"main",domainWidth:"main",format:"main",formatType:"main",labelAlign:"main",labelAngle:"main",labelBaseline:"main",labelBound:"main",labelColor:"main",labelFlush:"main",labelFlushOffset:"main",labelFont:"main",labelFontSize:"main",labelFontStyle:"main",labelFontWeight:"main",labelLimit:"main",labelLineHeight:"main",labelOffset:"main",labelOpacity:"main",labelOverlap:"main",labelPadding:"main",labels:"main",labelSeparation:"main",maxExtent:"main",minExtent:"main",offset:"both",position:"main",tickCap:"main",tickColor:"main",tickDash:"main",tickDashOffset:"main",tickMinStep:"both",tickOffset:"both",tickOpacity:"main",tickRound:"both",ticks:"main",tickSize:"main",tickWidth:"both",title:"main",titleAlign:"main",titleAnchor:"main",titleAngle:"main",titleBaseline:"main",titleColor:"main",titleFont:"main",titleFontSize:"main",titleFontStyle:"main",titleFontWeight:"main",titleLimit:"main",titleLineHeight:"main",titleOpacity:"main",titlePadding:"main",titleX:"main",titleY:"main",encode:"both",scale:"both",tickBand:"both",tickCount:"both",tickExtra:"both",translate:"both",values:"both",zindex:"both"},LR={orient:1,aria:1,bandPosition:1,description:1,domain:1,domainCap:1,domainColor:1,domainDash:1,domainDashOffset:1,domainOpacity:1,domainWidth:1,format:1,formatType:1,grid:1,gridCap:1,gridColor:1,gridDash:1,gridDashOffset:1,gridOpacity:1,gridWidth:1,labelAlign:1,labelAngle:1,labelBaseline:1,labelBound:1,labelColor:1,labelFlush:1,labelFlushOffset:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelLineHeight:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labels:1,labelSeparation:1,maxExtent:1,minExtent:1,offset:1,position:1,tickBand:1,tickCap:1,tickColor:1,tickCount:1,tickDash:1,tickDashOffset:1,tickExtra:1,tickMinStep:1,tickOffset:1,tickOpacity:1,tickRound:1,ticks:1,tickSize:1,tickWidth:1,title:1,titleAlign:1,titleAnchor:1,titleAngle:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titlePadding:1,titleX:1,titleY:1,translate:1,values:1,zindex:1},IR=(0,v.A)((0,v.A)({},LR),{},{style:1,labelExpr:1,encoding:1});function jR(t){return Dt(IR,t)}lC(IR);const UR=lC({axis:1,axisBand:1,axisBottom:1,axisDiscrete:1,axisLeft:1,axisPoint:1,axisQuantitative:1,axisRight:1,axisTemporal:1,axisTop:1,axisX:1,axisXBand:1,axisXDiscrete:1,axisXPoint:1,axisXQuantitative:1,axisXTemporal:1,axisY:1,axisYBand:1,axisYDiscrete:1,axisYPoint:1,axisYQuantitative:1,axisYTemporal:1});function qR(t){return PC(t,"mark")}class WR{constructor(t,e){this.name=t,this.run=e}hasMatchingType(t){return!!qR(t)&&(rB(e=t.mark)?e.type:e)===this.name;var e}}var HR=n(20816);const GR=["field","aggregate","bin","timeUnit"];function YR(t,e){const n=t&&t[e];return!!n&&(q(n)?KD(n,(t=>!!t.field)):tR(n)||QB(n))}function VR(t,e){const n=t&&t[e];return!!n&&(q(n)?KD(n,(t=>!!t.field)):tR(n)||nR(n)||KB(n))}function $R(t,e){if(gS(e)){const n=t[e];if((tR(n)||nR(n))&&(KN(n.type)||tR(n)&&n.timeUnit)){return VR(t,XM(e))}}return!1}function XR(t){return KD(NM,(e=>{if(YR(t,e)){const n=t[e];if(q(n))return KD(n,(t=>!!t.aggregate));{const t=wR(n);return t&&!!t.aggregate}}return!1}))}function ZR(t,e){const n=[],r=[],i=[],o=[],a={};return KR(t,((s,c)=>{if(tR(s)){const{field:u,aggregate:l,bin:f,timeUnit:d}=s,h=(0,jD.A)(s,GR);if(l||d||f){const t=AR(s),p=null===t||void 0===t?void 0:t.title;let m=pR(s,{forAs:!0});const g=(0,v.A)((0,v.A)((0,v.A)({},p?[]:{title:bR(s,e,{allowDisabling:!0})}),h),{},{field:m});if(l){let t;if(GS(l)?(t="argmax",m=pR({op:"argmax",field:l.argmax},{forAs:!0}),g.field="".concat(m,".").concat(u)):HS(l)?(t="argmin",m=pR({op:"argmin",field:l.argmin},{forAs:!0}),g.field="".concat(m,".").concat(u)):"boxplot"!==l&&"errorbar"!==l&&"errorband"!==l&&(t=l),t){const e={op:t,as:m};u&&(e.field=u),o.push(e)}}else if(n.push(m),sR(s)&&QS(f)){if(r.push({bin:f,field:u,as:m}),n.push(pR(s,{binSuffix:"end"})),OR(s,c)&&n.push(pR(s,{binSuffix:"range"})),gS(c)){const t={field:"".concat(m,"_end")};a["".concat(c,"2")]=t}g.bin="binned",WM(c)||(g.type=tO)}else if(d&&!FN(d)){i.push({timeUnit:d,field:u,as:m});const t=sR(s)&&s.type!==nO&&"time";t&&(c===hM||c===vM?g.formatType=t:!function(t){return Dt(dS,t)}(c)?gS(c)&&(g.axis=(0,v.A)({formatType:t},g.axis)):g.legend=(0,v.A)({formatType:t},g.legend))}a[c]=g}else n.push(u),a[c]=t[c]}else a[c]=t[c]})),{bins:r,timeUnits:i,aggregate:o,groupby:n,encoding:a}}function JR(t,e,n){const r=PS(e,n);if(!r)return!1;if("binned"===r){const n=t[e===WC?UC:qC];return!!(tR(n)&&tR(t[e])&&KS(n.bin))}return!0}function QR(t,e){const n={};for(const r of lC(t)){const i=ER(t[r],r,e,{compositeMark:!0});n[r]=i}return n}function KR(t,e,n){if(t)for(const r of lC(t)){const i=t[r];if(q(i))for(const t of i)e.call(n,t,r);else e.call(n,i,r)}}function tz(t,e){return lC(e).reduce(((n,r)=>{switch(r){case UC:case qC:case yM:case AM:case bM:case WC:case HC:case GC:case YC:case XC:case ZC:case VC:case $C:case eM:case JC:case QC:case KC:case tM:case hM:case oM:case sM:case vM:return n;case pM:if("line"===t||"trail"===t)return n;case mM:case gM:{const t=e[r];if(q(t)||tR(t))for(const e of ht(t))e.aggregate||n.push(pR(e,{}));return n}case aM:if("trail"===t)return n;case nM:case rM:case iM:case cM:case uM:case lM:case dM:case fM:{const t=wR(e[r]);return t&&!t.aggregate&&n.push(pR(t,{})),n}}}),[])}const ez=["tooltip"],nz=["aggregate"];function rz(t,e,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("tooltip"in n)return{tooltip:n.tooltip};const i=t.map((t=>{let{fieldPrefix:n,titlePrefix:i}=t;const o=r?" of ".concat(iz(e)):"";return{field:n+e.field,type:e.type,title:cT(i)?{signal:"".concat(i,'"').concat(escape(o),'"')}:i+o}})),o=function(t){const e=[];for(const n of lC(t))if(YR(t,n)){const r=ht(t[n]);for(const t of r)tR(t)?e.push(t):QB(t)&&e.push(t.condition)}return e}(n).map(hR);return{tooltip:[...i,...rC(o,ZD)]}}function iz(t){const{title:e,field:n}=t;return FC(e,n)}function oz(t,e,n,r,i){const{scale:o,axis:a}=n;return s=>{let{partName:c,mark:u,positionPrefix:l,endPositionPrefix:f,extraEncoding:d={}}=s;const h=iz(n);return az(t,c,i,{mark:u,encoding:(0,v.A)((0,v.A)((0,v.A)({[e]:(0,v.A)((0,v.A)((0,v.A)({field:"".concat(l,"_").concat(n.field),type:n.type},void 0!==h?{title:h}:{}),void 0!==o?{scale:o}:{}),void 0!==a?{axis:a}:{})},Lt(f)?{["".concat(e,"2")]:{field:"".concat(f,"_").concat(n.field)}}:{}),r),d)})}}function az(t,e,n,r){const{clip:i,color:o,opacity:a}=t,s=t.type;return t[e]||void 0===t[e]&&n[e]?[(0,v.A)((0,v.A)({},r),{},{mark:(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({},n[e]),i?{clip:i}:{}),o?{color:o}:{}),a?{opacity:a}:{}),rB(r.mark)?r.mark:{type:r.mark}),{},{style:"".concat(s,"-").concat(String(e))},Ot(t[e])?{}:t[e])})]:[]}function sz(t,e,n){const{encoding:r}=t,i="vertical"===e?"y":"x",o=r[i],a=r["".concat(i,"2")],s=r["".concat(i,"Error")],c=r["".concat(i,"Error2")];return{continuousAxisChannelDef:cz(o,n),continuousAxisChannelDef2:cz(a,n),continuousAxisChannelDefError:cz(s,n),continuousAxisChannelDefError2:cz(c,n),continuousAxis:i}}function cz(t,e){if(null!==t&&void 0!==t&&t.aggregate){const{aggregate:n}=t,r=(0,jD.A)(t,nz);return n!==e&&mN(function(t,e){return"Continuous axis should not have customized aggregation function ".concat(t,"; ").concat(e," already agregates the axis.")}(n,e)),r}return t}function uz(t,e){const{mark:n,encoding:r}=t,{x:i,y:o}=r;if(rB(n)&&n.orient)return n.orient;if(rR(i)){if(rR(o)){const t=tR(i)&&i.aggregate,n=tR(o)&&o.aggregate;if(t||n!==e){if(n||t!==e){if(t===e&&n===e)throw new Error("Both x and y cannot have aggregate");return SR(o)&&!SR(i)?"horizontal":"vertical"}return"horizontal"}return"vertical"}return"horizontal"}if(rR(o))return"vertical";throw new Error("Need a valid continuous axis for ".concat(e,"s"))}const lz=["mark","encoding","params","projection"],fz=["color","size"],dz=["tooltip"],hz="boxplot",pz=new WR(hz,gz);function mz(t){return zt(t)?"tukey":t}function gz(t,e){var n;let{config:r}=e;t=(0,v.A)((0,v.A)({},t),{},{encoding:QR(t.encoding,r)});const{mark:i,encoding:o,params:a,projection:s}=t,c=(0,jD.A)(t,lz),u=rB(i)?i:{type:i};a&&mN(UT("boxplot"));const l=null!==(n=u.extent)&&void 0!==n?n:r.boxplot.extent,f=ET("size",u,r),d=u.invalid,h=mz(l),{bins:p,timeUnits:m,transform:g,continuousAxisChannelDef:y,continuousAxis:b,groupby:A,aggregate:x,encodingWithoutContinuousAxis:_,ticksOrient:w,boxOrient:k,customTooltipWithoutAggregatedField:E}=function(t,e,n){const r=uz(t,hz),{continuousAxisChannelDef:i,continuousAxis:o}=sz(t,r,hz),a=i.field,s=kC(a),c=mz(e),u=[...vz(a),{op:"median",field:a,as:"mid_box_".concat(s)},{op:"min",field:a,as:("min-max"===c?"lower_whisker_":"min_")+s},{op:"max",field:a,as:("min-max"===c?"upper_whisker_":"max_")+s}],l="min-max"===c||"tukey"===c?[]:[{calculate:"".concat(AC("upper_box_".concat(s))," - ").concat(AC("lower_box_".concat(s))),as:"iqr_".concat(s)},{calculate:"min(".concat(AC("upper_box_".concat(s))," + ").concat(AC("iqr_".concat(s))," * ").concat(e,", ").concat(AC("max_".concat(s)),")"),as:"upper_whisker_".concat(s)},{calculate:"max(".concat(AC("lower_box_".concat(s))," - ").concat(AC("iqr_".concat(s))," * ").concat(e,", ").concat(AC("min_".concat(s)),")"),as:"lower_whisker_".concat(s)}],f=t.encoding,{[o]:d}=f,h=(0,jD.A)(f,[o].map(HR.A)),{customTooltipWithoutAggregatedField:p,filteredEncoding:m}=function(t){const{tooltip:e}=t,n=(0,jD.A)(t,ez);if(!e)return{filteredEncoding:n};let r,i;if(q(e)){for(const t of e)t.aggregate?(r||(r=[]),r.push(t)):(i||(i=[]),i.push(t));r&&(n.tooltip=r)}else e.aggregate?n.tooltip=e:i=e;return q(i)&&1===i.length&&(i=i[0]),{customTooltipWithoutAggregatedField:i,filteredEncoding:n}}(h),{bins:g,timeUnits:v,aggregate:y,groupby:b,encoding:A}=ZR(m,n),x="vertical"===r?"horizontal":"vertical",_=r,w=[...g,...v,{aggregate:[...y,...u],groupby:b},...l];return{bins:g,timeUnits:v,transform:w,groupby:b,aggregate:y,continuousAxisChannelDef:i,continuousAxis:o,encodingWithoutContinuousAxis:A,ticksOrient:x,boxOrient:_,customTooltipWithoutAggregatedField:p}}(t,l,r),F=kC(y.field),{color:D,size:C}=_,M=(0,jD.A)(_,fz),S=t=>oz(u,b,y,t,r.boxplot),T=S(M),N=S(_),O=(W(r.boxplot.box)?r.boxplot.box.color:r.mark.color)||"#4c78a8",B=S((0,v.A)((0,v.A)((0,v.A)({},M),C?{size:C}:{}),{},{color:{condition:(0,v.A)({test:"".concat(AC("lower_box_".concat(y.field))," >= ").concat(AC("upper_box_".concat(y.field)))},D||{value:O})}})),R=rz([{fieldPrefix:"min-max"===h?"upper_whisker_":"max_",titlePrefix:"Max"},{fieldPrefix:"upper_box_",titlePrefix:"Q3"},{fieldPrefix:"mid_box_",titlePrefix:"Median"},{fieldPrefix:"lower_box_",titlePrefix:"Q1"},{fieldPrefix:"min-max"===h?"lower_whisker_":"min_",titlePrefix:"Min"}],y,_),z={type:"tick",color:"black",opacity:1,orient:w,invalid:d,aria:!1},P="min-max"===h?R:rz([{fieldPrefix:"upper_whisker_",titlePrefix:"Upper Whisker"},{fieldPrefix:"lower_whisker_",titlePrefix:"Lower Whisker"}],y,_),L=[...T({partName:"rule",mark:{type:"rule",invalid:d,aria:!1},positionPrefix:"lower_whisker",endPositionPrefix:"lower_box",extraEncoding:P}),...T({partName:"rule",mark:{type:"rule",invalid:d,aria:!1},positionPrefix:"upper_box",endPositionPrefix:"upper_whisker",extraEncoding:P}),...T({partName:"ticks",mark:z,positionPrefix:"lower_whisker",extraEncoding:P}),...T({partName:"ticks",mark:z,positionPrefix:"upper_whisker",extraEncoding:P})],I=[..."tukey"!==h?L:[],...N({partName:"box",mark:(0,v.A)((0,v.A)({type:"bar"},f?{size:f}:{}),{},{orient:k,invalid:d,ariaRoleDescription:"box"}),positionPrefix:"lower_box",endPositionPrefix:"upper_box",extraEncoding:R}),...B({partName:"median",mark:(0,v.A)((0,v.A)((0,v.A)({type:"tick",invalid:d},W(r.boxplot.median)&&r.boxplot.median.color?{color:r.boxplot.median.color}:{}),f?{size:f}:{}),{},{orient:w,aria:!1}),positionPrefix:"mid_box",extraEncoding:R})];var j;if("min-max"===h)return(0,v.A)((0,v.A)({},c),{},{transform:(null!==(j=c.transform)&&void 0!==j?j:[]).concat(g),layer:I});const U=AC("lower_box_".concat(y.field)),H=AC("upper_box_".concat(y.field)),G="(".concat(H," - ").concat(U,")"),Y="".concat(U," - ").concat(l," * ").concat(G),V="".concat(H," + ").concat(l," * ").concat(G),$=AC(y.field),X={joinaggregate:vz(y.field),groupby:A},Z={transform:[{filter:"(".concat(Y," <= ").concat($,") && (").concat($," <= ").concat(V,")")},{aggregate:[{op:"min",field:y.field,as:"lower_whisker_".concat(F)},{op:"max",field:y.field,as:"upper_whisker_".concat(F)},{op:"min",field:"lower_box_".concat(y.field),as:"lower_box_".concat(F)},{op:"max",field:"upper_box_".concat(y.field),as:"upper_box_".concat(F)},...x],groupby:A}],layer:L},{tooltip:J}=M,Q=(0,jD.A)(M,dz),{scale:K,axis:tt}=y,et=iz(y),nt=XD(tt,["title"]),rt=az(u,"outliers",r.boxplot,{transform:[{filter:"(".concat($," < ").concat(Y,") || (").concat($," > ").concat(V,")")}],mark:"point",encoding:(0,v.A)((0,v.A)((0,v.A)({[b]:(0,v.A)((0,v.A)((0,v.A)({field:y.field,type:y.type},void 0!==et?{title:et}:{}),void 0!==K?{scale:K}:{}),uC(nt)?{}:{axis:nt})},Q),D?{color:D}:{}),E?{tooltip:E}:{})})[0];let it;const ot=[...p,...m,X];return rt?it={transform:ot,layer:[rt,Z]}:(it=Z,it.transform.unshift(...ot)),(0,v.A)((0,v.A)({},c),{},{layer:[it,{transform:g,layer:I}]})}function vz(t){const e=kC(t);return[{op:"q1",field:t,as:"lower_box_".concat(e)},{op:"q3",field:t,as:"upper_box_".concat(e)}]}const yz=["mark","encoding","params","projection"],bz="errorbar",Az=new WR(bz,xz);function xz(t,e){let{config:n}=e;t=(0,v.A)((0,v.A)({},t),{},{encoding:QR(t.encoding,n)});const{transform:r,continuousAxisChannelDef:i,continuousAxis:o,encodingWithoutContinuousAxis:a,ticksOrient:s,markDef:c,outerSpec:u,tooltipEncoding:l}=wz(t,bz,n);delete a.size;const f=oz(c,o,i,a,n.errorbar),d=c.thickness,h=c.size,p=(0,v.A)((0,v.A)({type:"tick",orient:s,aria:!1},void 0!==d?{thickness:d}:{}),void 0!==h?{size:h}:{}),m=[...f({partName:"ticks",mark:p,positionPrefix:"lower",extraEncoding:l}),...f({partName:"ticks",mark:p,positionPrefix:"upper",extraEncoding:l}),...f({partName:"rule",mark:(0,v.A)({type:"rule",ariaRoleDescription:"errorbar"},void 0!==d?{size:d}:{}),positionPrefix:"lower",endPositionPrefix:"upper",extraEncoding:l})];return(0,v.A)((0,v.A)({},u),{},{transform:r},m.length>1?{layer:m}:(0,v.A)({},m[0]))}function _z(t,e){const{encoding:n}=t;if(function(t){return(aR(t.x)||aR(t.y))&&!aR(t.x2)&&!aR(t.y2)&&!aR(t.xError)&&!aR(t.xError2)&&!aR(t.yError)&&!aR(t.yError2)}(n))return{orient:uz(t,e),inputType:"raw"};const r=function(t){return aR(t.x2)||aR(t.y2)}(n),i=function(t){return aR(t.xError)||aR(t.xError2)||aR(t.yError)||aR(t.yError2)}(n),o=n.x,a=n.y;if(r){if(i)throw new Error("".concat(e," cannot be both type aggregated-upper-lower and aggregated-error"));const t=n.x2,r=n.y2;if(aR(t)&&aR(r))throw new Error("".concat(e," cannot have both x2 and y2"));if(aR(t)){if(rR(o))return{orient:"horizontal",inputType:"aggregated-upper-lower"};throw new Error("Both x and x2 have to be quantitative in ".concat(e))}if(aR(r)){if(rR(a))return{orient:"vertical",inputType:"aggregated-upper-lower"};throw new Error("Both y and y2 have to be quantitative in ".concat(e))}throw new Error("No ranged axis")}{const t=n.xError,r=n.xError2,i=n.yError,s=n.yError2;if(aR(r)&&!aR(t))throw new Error("".concat(e," cannot have xError2 without xError"));if(aR(s)&&!aR(i))throw new Error("".concat(e," cannot have yError2 without yError"));if(aR(t)&&aR(i))throw new Error("".concat(e," cannot have both xError and yError with both are quantiative"));if(aR(t)){if(rR(o))return{orient:"horizontal",inputType:"aggregated-error"};throw new Error("All x, xError, and xError2 (if exist) have to be quantitative")}if(aR(i)){if(rR(a))return{orient:"vertical",inputType:"aggregated-error"};throw new Error("All y, yError, and yError2 (if exist) have to be quantitative")}throw new Error("No ranged axis")}}function wz(t,e,n){var r;const{mark:i,encoding:o,params:a,projection:s}=t,c=(0,jD.A)(t,yz),u=rB(i)?i:{type:i};a&&mN(UT(e));const{orient:l,inputType:f}=_z(t,e),{continuousAxisChannelDef:d,continuousAxisChannelDef2:h,continuousAxisChannelDefError:p,continuousAxisChannelDefError2:m,continuousAxis:g}=sz(t,l,e),{errorBarSpecificAggregate:v,postAggregateCalculates:y,tooltipSummary:b,tooltipTitleWithFieldName:A}=function(t,e,n,r,i,o,a,s){let c=[],u=[];const l=e.field;let f,d=!1;if("raw"===o){const e=t.center?t.center:t.extent?"iqr"===t.extent?"median":"mean":s.errorbar.center,n=t.extent?t.extent:"mean"===e?"stderr":"iqr";if("median"===e!==("iqr"===n)&&mN(function(t,e,n){return"".concat(t," is not usually used with ").concat(e," for ").concat(n,".")}(e,n,a)),"stderr"===n||"stdev"===n)c=[{op:n,field:l,as:"extent_".concat(l)},{op:e,field:l,as:"center_".concat(l)}],u=[{calculate:"".concat(AC("center_".concat(l))," + ").concat(AC("extent_".concat(l))),as:"upper_".concat(l)},{calculate:"".concat(AC("center_".concat(l))," - ").concat(AC("extent_".concat(l))),as:"lower_".concat(l)}],f=[{fieldPrefix:"center_",titlePrefix:vC(e)},{fieldPrefix:"upper_",titlePrefix:kz(e,n,"+")},{fieldPrefix:"lower_",titlePrefix:kz(e,n,"-")}],d=!0;else{let t,e,r;"ci"===n?(t="mean",e="ci0",r="ci1"):(t="median",e="q1",r="q3"),c=[{op:e,field:l,as:"lower_".concat(l)},{op:r,field:l,as:"upper_".concat(l)},{op:t,field:l,as:"center_".concat(l)}],f=[{fieldPrefix:"upper_",titlePrefix:bR({field:l,aggregate:r,type:"quantitative"},s,{allowDisabling:!1})},{fieldPrefix:"lower_",titlePrefix:bR({field:l,aggregate:e,type:"quantitative"},s,{allowDisabling:!1})},{fieldPrefix:"center_",titlePrefix:bR({field:l,aggregate:t,type:"quantitative"},s,{allowDisabling:!1})}]}}else{(t.center||t.extent)&&mN(function(t,e){return"".concat(e?"extent ":"").concat(e&&t?"and ":"").concat(t?"center ":"").concat(e&&t?"are ":"is ","not needed when data are aggregated.")}(t.center,t.extent)),"aggregated-upper-lower"===o?(f=[],u=[{calculate:AC(n.field),as:"upper_".concat(l)},{calculate:AC(l),as:"lower_".concat(l)}]):"aggregated-error"===o&&(f=[{fieldPrefix:"",titlePrefix:l}],u=[{calculate:"".concat(AC(l)," + ").concat(AC(r.field)),as:"upper_".concat(l)}],i?u.push({calculate:"".concat(AC(l)," + ").concat(AC(i.field)),as:"lower_".concat(l)}):u.push({calculate:"".concat(AC(l)," - ").concat(AC(r.field)),as:"lower_".concat(l)}));for(const t of u)f.push({fieldPrefix:t.as.substring(0,6),titlePrefix:wC(wC(t.calculate,"datum['",""),"']","")})}return{postAggregateCalculates:u,errorBarSpecificAggregate:c,tooltipSummary:f,tooltipTitleWithFieldName:d}}(u,d,h,p,m,f,e,n),x="x"===g?"x2":"y2",_="x"===g?"xError":"yError",w="x"===g?"xError2":"yError2",{[g]:k,[x]:E,[_]:F,[w]:D}=o,C=(0,jD.A)(o,[g,x,_,w].map(HR.A)),{bins:M,timeUnits:S,aggregate:T,groupby:N,encoding:O}=ZR(C,n),B=[...T,...v],R="raw"!==f?[]:N,z=rz(b,d,O,A);return{transform:[...null!==(r=c.transform)&&void 0!==r?r:[],...M,...S,...0===B.length?[]:[{aggregate:B,groupby:R}],...y],groupby:R,continuousAxisChannelDef:d,continuousAxis:g,encodingWithoutContinuousAxis:O,ticksOrient:"vertical"===l?"horizontal":"vertical",markDef:u,outerSpec:c,tooltipEncoding:z}}function kz(t,e,n){return"".concat(vC(t)," ").concat(n," ").concat(e)}const Ez="errorband",Fz=new WR(Ez,Dz);function Dz(t,e){let{config:n}=e;t=(0,v.A)((0,v.A)({},t),{},{encoding:QR(t.encoding,n)});const{transform:r,continuousAxisChannelDef:i,continuousAxis:o,encodingWithoutContinuousAxis:a,markDef:s,outerSpec:c,tooltipEncoding:u}=wz(t,Ez,n),l=s,f=oz(l,o,i,a,n.errorband),d=void 0!==t.encoding.x&&void 0!==t.encoding.y;let h={type:d?"area":"rect"},p={type:d?"line":"rule"};const m=(0,v.A)((0,v.A)({},l.interpolate?{interpolate:l.interpolate}:{}),l.tension&&l.interpolate?{tension:l.tension}:{});return d?(h=(0,v.A)((0,v.A)((0,v.A)({},h),m),{},{ariaRoleDescription:"errorband"}),p=(0,v.A)((0,v.A)((0,v.A)({},p),m),{},{aria:!1})):l.interpolate?mN(uN("interpolate")):l.tension&&mN(uN("tension")),(0,v.A)((0,v.A)({},c),{},{transform:r,layer:[...f({partName:"band",mark:h,positionPrefix:"lower",endPositionPrefix:"upper",extraEncoding:u}),...f({partName:"borders",mark:p,positionPrefix:"lower",extraEncoding:u}),...f({partName:"borders",mark:p,positionPrefix:"upper",extraEncoding:u})]})}const Cz={};function Mz(t,e,n){const r=new WR(t,e);Cz[t]={normalizer:r,parts:n}}Mz(hz,gz,["box","median","outliers","rule","ticks"]),Mz(bz,xz,["ticks","rule"]),Mz(Ez,Dz,["band","borders"]);const Sz=["gradientHorizontalMaxLength","gradientHorizontalMinLength","gradientVerticalMaxLength","gradientVerticalMinLength","unselectedOpacity"],Tz={titleAlign:"align",titleAnchor:"anchor",titleAngle:"angle",titleBaseline:"baseline",titleColor:"color",titleFont:"font",titleFontSize:"fontSize",titleFontStyle:"fontStyle",titleFontWeight:"fontWeight",titleLimit:"limit",titleLineHeight:"lineHeight",titleOrient:"orient",titlePadding:"offset"},Nz={labelAlign:"align",labelAnchor:"anchor",labelAngle:"angle",labelBaseline:"baseline",labelColor:"color",labelFont:"font",labelFontSize:"fontSize",labelFontStyle:"fontStyle",labelFontWeight:"fontWeight",labelLimit:"limit",labelLineHeight:"lineHeight",labelOrient:"orient",labelPadding:"offset"},Oz=lC(Tz),Bz=lC(Nz),Rz=lC({header:1,headerRow:1,headerColumn:1,headerFacet:1}),zz=["size","shape","fill","stroke","strokeDash","strokeWidth","opacity"],Pz={aria:1,clipHeight:1,columnPadding:1,columns:1,cornerRadius:1,description:1,direction:1,fillColor:1,format:1,formatType:1,gradientLength:1,gradientOpacity:1,gradientStrokeColor:1,gradientStrokeWidth:1,gradientThickness:1,gridAlign:1,labelAlign:1,labelBaseline:1,labelColor:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labelSeparation:1,legendX:1,legendY:1,offset:1,orient:1,padding:1,rowPadding:1,strokeColor:1,symbolDash:1,symbolDashOffset:1,symbolFillColor:1,symbolLimit:1,symbolOffset:1,symbolOpacity:1,symbolSize:1,symbolStrokeColor:1,symbolStrokeWidth:1,symbolType:1,tickCount:1,tickMinStep:1,title:1,titleAlign:1,titleAnchor:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titleOrient:1,titlePadding:1,type:1,values:1,zindex:1},Lz=(lC(Pz),"_vgsid_"),Iz={point:{on:"click",fields:[Lz],toggle:"event.shiftKey",resolve:"global",clear:"dblclick"},interval:{on:"[pointerdown, window:pointerup] > window:pointermove!",encodings:["x","y"],translate:"[pointerdown, window:pointerup] > window:pointermove!",zoom:"wheel!",mark:{fill:"#333",fillOpacity:.125,stroke:"white"},resolve:"global",clear:"dblclick"}};function jz(t){return"legend"===t||!(null===t||void 0===t||!t.legend)}function Uz(t){return jz(t)&&W(t)}function qz(t){return!(null===t||void 0===t||!t.select)}const Wz=["expr","bind"];function Hz(t){const e=[];for(const n of t||[]){if(qz(n))continue;const{expr:t,bind:r}=n,i=(0,jD.A)(n,Wz);if(r&&t){const n=(0,v.A)((0,v.A)({},i),{},{bind:r,init:t});e.push(n)}else{const n=(0,v.A)((0,v.A)((0,v.A)({},i),t?{update:t}:{}),r?{bind:r}:{});e.push(n)}}return e}function Gz(t){return PC(t,"concat")}function Yz(t){return PC(t,"vconcat")}function Vz(t){return PC(t,"hconcat")}function $z(t){let{step:e,offsetIsDiscrete:n}=t;var r;return n?null!==(r=e.for)&&void 0!==r?r:"offset":"position"}function Xz(t){return PC(t,"step")}function Zz(t){return PC(t,"view")||PC(t,"width")||PC(t,"height")}const Jz=lC({align:1,bounds:1,center:1,columns:1,spacing:1});const Qz=["color","font","fontSize","selection"],Kz=["invalid"];function tP(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t["width"===e?"continuousWidth":"continuousHeight"]}function eP(t,e){const n=nP(t,e);return Xz(n)?n.step:rP}function nP(t,e){var n;return FC(null!==(n=t[e])&&void 0!==n?n:t["width"===e?"discreteWidth":"discreteHeight"],{step:t.step})}const rP=20;const iP={background:"white",padding:5,timeFormat:"%b %d, %Y",countTitle:"Count of Records",view:{continuousWidth:200,continuousHeight:200,step:rP},mark:{color:"#4c78a8",invalid:"break-paths-show-path-domains",timeUnitBandSize:1},arc:{},area:{},bar:dB,circle:{},geoshape:{},image:{},line:{},point:{},rect:fB,rule:{color:"black"},square:{},text:{color:"black"},tick:hB,trail:{},boxplot:{size:14,extent:1.5,box:{},median:{color:"white"},outliers:{},rule:{},ticks:null},errorbar:{center:"mean",rule:!0,ticks:!1},errorband:{band:{opacity:.3},borders:!1},scale:{pointPadding:.5,barBandPaddingInner:.1,rectBandPaddingInner:0,tickBandPaddingInner:.25,bandWithNestedOffsetPaddingInner:.2,bandWithNestedOffsetPaddingOuter:.2,minBandSize:2,minFontSize:8,maxFontSize:40,minOpacity:.3,maxOpacity:.8,minSize:4,minStrokeWidth:1,maxStrokeWidth:4,quantileCount:4,quantizeCount:4,zero:!0,framesPerSecond:2,animationDuration:5},projection:{},legend:{gradientHorizontalMaxLength:200,gradientHorizontalMinLength:100,gradientVerticalMaxLength:200,gradientVerticalMinLength:64,unselectedOpacity:.35},header:{titlePadding:10,labelPadding:10},headerColumn:{},headerRow:{},headerFacet:{},selection:Iz,style:{},title:{},facet:{spacing:20},concat:{spacing:20},normalizedNumberFormat:".0%"},oP=["#4c78a8","#f58518","#e45756","#72b7b2","#54a24b","#eeca3b","#b279a2","#ff9da6","#9d755d","#bab0ac"],aP={text:11,guideLabel:10,guideTitle:11,groupTitle:13,groupSubtitle:12},sP={blue:oP[0],orange:oP[1],red:oP[2],teal:oP[3],green:oP[4],yellow:oP[5],purple:oP[6],pink:oP[7],brown:oP[8],gray0:"#000",gray1:"#111",gray2:"#222",gray3:"#333",gray4:"#444",gray5:"#555",gray6:"#666",gray7:"#777",gray8:"#888",gray9:"#999",gray10:"#aaa",gray11:"#bbb",gray12:"#ccc",gray13:"#ddd",gray14:"#eee",gray15:"#fff"};function cP(t){const e=lC(t||{}),n={};for(const r of e){const e=t[r];n[r]=RR(e)?vT(e):yT(e)}return n}const uP=[...cB,...UR,...Rz,"background","padding","legend","lineBreak","scale","style","title","view"];function lP(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{color:e,font:n,fontSize:r,selection:i}=t,o=(0,jD.A)(t,Qz),a=G({},YD(iP),n?function(t){return{text:{font:t},style:{"guide-label":{font:t},"guide-title":{font:t},"group-title":{font:t},"group-subtitle":{font:t}}}}(n):{},e?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{signals:[{name:"color",value:W(t)?(0,v.A)((0,v.A)({},sP),t):sP}],mark:{color:{signal:"color.blue"}},rule:{color:{signal:"color.gray0"}},text:{color:{signal:"color.gray0"}},style:{"guide-label":{fill:{signal:"color.gray0"}},"guide-title":{fill:{signal:"color.gray0"}},"group-title":{fill:{signal:"color.gray0"}},"group-subtitle":{fill:{signal:"color.gray0"}},cell:{stroke:{signal:"color.gray8"}}},axis:{domainColor:{signal:"color.gray13"},gridColor:{signal:"color.gray8"},tickColor:{signal:"color.gray13"}},range:{category:[{signal:"color.blue"},{signal:"color.orange"},{signal:"color.red"},{signal:"color.teal"},{signal:"color.green"},{signal:"color.yellow"},{signal:"color.purple"},{signal:"color.pink"},{signal:"color.brown"},{signal:"color.grey8"}]}}}(e):{},r?function(t){return{signals:[{name:"fontSize",value:W(t)?(0,v.A)((0,v.A)({},aP),t):aP}],text:{fontSize:{signal:"fontSize.text"}},style:{"guide-label":{fontSize:{signal:"fontSize.guideLabel"}},"guide-title":{fontSize:{signal:"fontSize.guideTitle"}},"group-title":{fontSize:{signal:"fontSize.groupTitle"}},"group-subtitle":{fontSize:{signal:"fontSize.groupSubtitle"}}}}}(r):{},o||{});i&&Y(a,"selection",i,!0);const s=XD(a,uP);for(const c of["background","lineBreak","padding"])a[c]&&(s[c]=yT(a[c]));for(const c of cB)a[c]&&(s[c]=iT(a[c]));for(const c of UR)a[c]&&(s[c]=cP(a[c]));for(const c of Rz)a[c]&&(s[c]=iT(a[c]));if(a.legend&&(s.legend=iT(a.legend)),a.scale){const t=a.scale,{invalid:e}=t,n=(0,jD.A)(t,Kz),r=iT(e,{level:1});s.scale=(0,v.A)((0,v.A)({},iT(n)),lC(r).length>0?{invalid:r}:{})}return a.style&&(s.style=function(t){const e=lC(t),n={};for(const r of e)n[r]=cP(t[r]);return n}(a.style)),a.title&&(s.title=iT(a.title)),a.view&&(s.view=iT(a.view)),s}const fP=new Set(["view",...nB]),dP=["color","fontSize","background","padding","facet","concat","numberFormat","numberFormatType","normalizedNumberFormat","normalizedNumberFormatType","timeFormat","countTitle","header","axisQuantitative","axisTemporal","axisDiscrete","axisPoint","axisXBand","axisXPoint","axisXDiscrete","axisXQuantitative","axisXTemporal","axisYBand","axisYPoint","axisYDiscrete","axisYQuantitative","axisYTemporal","scale","selection","overlay"],hP=(0,v.A)({view:["continuousWidth","continuousHeight","discreteWidth","discreteHeight","step"]},sB);function pP(t){t=YD(t);for(const e of dP)delete t[e];if(t.axis)for(const e in t.axis)RR(t.axis[e])&&delete t.axis[e];if(t.legend)for(const e of Sz)delete t.legend[e];if(t.mark){for(const e of oB)delete t.mark[e];t.mark.tooltip&&W(t.mark.tooltip)&&delete t.mark.tooltip}t.params&&(t.signals=(t.signals||[]).concat(Hz(t.params)),delete t.params);for(const e of fP){for(const r of oB)delete t[e][r];const n=hP[e];if(n)for(const r of n)delete t[e][r];mP(t,e)}for(const e of lC(Cz))delete t[e];!function(t){const{titleMarkConfig:e,subtitleMarkConfig:n,subtitle:r}=aT(t.title);uC(e)||(t.style["group-title"]=(0,v.A)((0,v.A)({},t.style["group-title"]),e));uC(n)||(t.style["group-subtitle"]=(0,v.A)((0,v.A)({},t.style["group-subtitle"]),n));uC(r)?delete t.title:t.title=r}(t);for(const e in t)W(t[e])&&uC(t[e])&&delete t[e];return uC(t)?void 0:t}function mP(t,e,n,r){var i;const o=r?t[e][r]:t[e];"view"===e&&(n="cell");const a=(0,v.A)((0,v.A)({},o),t.style[null!==(i=n)&&void 0!==i?i:e]);var s;uC(a)||(t.style[null!==(s=n)&&void 0!==s?s:e]=a);r||delete t[e]}function gP(t){return PC(t,"layer")}const vP=["concat"];class yP{map(t,e){return UB(t)?this.mapFacet(t,e):function(t){return PC(t,"repeat")}(t)?this.mapRepeat(t,e):Vz(t)?this.mapHConcat(t,e):Yz(t)?this.mapVConcat(t,e):Gz(t)?this.mapConcat(t,e):this.mapLayerOrUnit(t,e)}mapLayerOrUnit(t,e){if(gP(t))return this.mapLayer(t,e);if(qR(t))return this.mapUnit(t,e);throw new Error(OT(t))}mapLayer(t,e){return(0,v.A)((0,v.A)({},t),{},{layer:t.layer.map((t=>this.mapLayerOrUnit(t,e)))})}mapHConcat(t,e){return(0,v.A)((0,v.A)({},t),{},{hconcat:t.hconcat.map((t=>this.map(t,e)))})}mapVConcat(t,e){return(0,v.A)((0,v.A)({},t),{},{vconcat:t.vconcat.map((t=>this.map(t,e)))})}mapConcat(t,e){const{concat:n}=t,r=(0,jD.A)(t,vP);return(0,v.A)((0,v.A)({},r),{},{concat:n.map((t=>this.map(t,e)))})}mapFacet(t,e){return(0,v.A)((0,v.A)({},t),{},{spec:this.map(t.spec,e)})}mapRepeat(t,e){return(0,v.A)((0,v.A)({},t),{},{spec:this.map(t.spec,e)})}}const bP={zero:1,center:1,normalize:1};const AP=new Set([jO,qO,UO,VO,GO,JO,QO,HO,$O,XO]),xP=new Set([qO,UO,jO]);function _P(t){return tR(t)&&"quantitative"===eR(t)&&!t.bin}function wP(t,e,n){let{orient:r,type:i}=n;const o="x"===e?"y":"radius",a="x"===e&&["bar","area"].includes(i),s=t[e],c=t[o];if(tR(s)&&tR(c))if(_P(s)&&_P(c)){if(s.stack)return e;if(c.stack)return o;const t=tR(s)&&!!s.aggregate;if(t!==(tR(c)&&!!c.aggregate))return t?e:o;if(a){if("vertical"===r)return o;if("horizontal"===r)return e}}else{if(_P(s))return e;if(_P(c))return o}else{if(_P(s)){if(a&&"vertical"===r)return;return e}if(_P(c)){if(a&&"horizontal"===r)return;return o}}}function kP(t,e){var n,r;const i=rB(t)?t:{type:t},o=i.type;if(!AP.has(o))return null;const a=wP(e,"x",i)||wP(e,"theta",i);if(!a)return null;const s=e[a],c=tR(s)?pR(s,{}):void 0,u=function(t){switch(t){case"x":return"y";case"y":return"x";case"theta":return"radius";case"radius":return"theta"}}(a),l=[],f=new Set;if(e[u]){const t=e[u],n=tR(t)?pR(t,{}):void 0;n&&n!==c&&(l.push(u),f.add(n))}const d="x"===u?"xOffset":"yOffset",h=e[d],p=tR(h)?pR(h,{}):void 0;p&&p!==c&&(l.push(d),f.add(p));const m=hS.reduce(((t,n)=>{if("tooltip"!==n&&YR(e,n)){const r=e[n];for(const e of ht(r)){const r=wR(e);if(r.aggregate)continue;const i=pR(r,{});i&&f.has(i)||t.push({channel:n,fieldDef:r})}}return t}),[]);let g;return void 0!==s.stack?g=Ot(s.stack)?s.stack?"zero":null:s.stack:xP.has(o)&&(g="zero"),g&&Dt(bP,g)?XR(e)&&0===m.length?null:(null!==s&&void 0!==s&&null!==(n=s.scale)&&void 0!==n&&n.type&&(null===s||void 0===s||null===(r=s.scale)||void 0===r?void 0:r.type)!==oO&&null!==s&&void 0!==s&&s.stack&&mN(function(t){return"Stack is applied to a non-linear scale (".concat(t,").")}(s.scale.type)),aR(e[YM(a)])?(void 0!==s.stack&&mN('Cannot stack "'.concat(v=a,'" if there is already "').concat(v,'2".')),null):(tR(s)&&s.aggregate&&!XS.has(s.aggregate)&&mN((y=s.aggregate,'Stacking is applied even though the aggregate function is non-summative ("'.concat(y,'").'))),{groupbyChannels:l,groupbyFields:f,fieldChannel:a,impute:null!==s.impute&&tB(o),stackBy:m,offset:g})):null;var v,y}function EP(t,e,n){const r=iT(t),i=ET("orient",r,n);var o,a;if(r.orient=function(t,e,n){switch(t){case GO:case JO:case QO:case $O:case YO:case WO:return}const{x:r,y:i,x2:o,y2:a}=e;switch(t){case qO:if(tR(r)&&(KS(r.bin)||tR(i)&&i.aggregate&&!r.aggregate))return"vertical";if(tR(i)&&(KS(i.bin)||tR(r)&&r.aggregate&&!i.aggregate))return"horizontal";if(a||o){if(n)return n;if(!o)return(tR(r)&&r.type===tO&&!QS(r.bin)||oR(r))&&tR(i)&&KS(i.bin)?"horizontal":"vertical";if(!a)return(tR(i)&&i.type===tO&&!QS(i.bin)||oR(i))&&tR(r)&&KS(r.bin)?"vertical":"horizontal"}case VO:if(o&&(!tR(r)||!KS(r.bin))&&a&&(!tR(i)||!KS(i.bin)))return;case UO:if(a)return tR(i)&&KS(i.bin)?"horizontal":"vertical";if(o)return tR(r)&&KS(r.bin)?"vertical":"horizontal";if(t===VO){if(r&&!i)return"vertical";if(i&&!r)return"horizontal"}case HO:case XO:{const e=iR(r),o=iR(i);if(n)return n;if(e&&!o)return"tick"!==t?"horizontal":"vertical";if(!e&&o)return"tick"!==t?"vertical":"horizontal";if(e&&o)return"vertical";{const t=sR(r)&&r.type===nO,e=sR(i)&&i.type===nO;if(t&&!e)return"vertical";if(!t&&e)return"horizontal"}return}}return"vertical"}(r.type,e,i),void 0!==i&&i!==r.orient&&mN((o=r.orient,a=i,'Specified orient "'.concat(o,'" overridden with "').concat(a,'".'))),"bar"===r.type&&r.orient){const t=ET("cornerRadiusEnd",r,n);if(void 0!==t){const n="horizontal"===r.orient&&e.x2||"vertical"===r.orient&&e.y2?["cornerRadius"]:lB[r.orient];for(const e of n)r[e]=t;void 0!==r.cornerRadiusEnd&&delete r.cornerRadiusEnd}}const s=ET("opacity",r,n),c=ET("fillOpacity",r,n);void 0===s&&void 0===c&&(r.opacity=function(t,e){if(QD([GO,XO,JO,QO],t)&&!XR(e))return.7;return}(r.type,e));return void 0===ET("cursor",r,n)&&(r.cursor=function(t,e,n){if(e.href||t.href||ET("href",t,n))return"pointer";return t.cursor}(r,e,n)),r}const FP=["point","line"],DP=["params","projection","mark","name","encoding"];function CP(t){const{point:e,line:n}=t,r=(0,jD.A)(t,FP);return lC(r).length>1?r:r.type}function MP(t){for(const e of["line","area","rule","trail"])t[e]&&(t=(0,v.A)((0,v.A)({},t),{},{[e]:XD(t[e],["point","line"])}));return t}function SP(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return"transparent"===t.point?{opacity:0}:t.point?W(t.point)?t.point:{}:void 0!==t.point?null:e.point||n.shape?W(e.point)?e.point:{}:void 0}function TP(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.line?!0===t.line?{}:t.line:void 0!==t.line?null:e.line?!0===e.line?{}:e.line:void 0}class NP{constructor(){this.name="path-overlay"}hasMatchingType(t,e){if(qR(t)){const{mark:n,encoding:r}=t,i=rB(n)?n:{type:n};switch(i.type){case"line":case"rule":case"trail":return!!SP(i,e[i.type],r);case"area":return!!SP(i,e[i.type],r)||!!TP(i,e[i.type])}}return!1}run(t,e,n){const{config:r}=e,{params:i,projection:o,mark:a,name:s,encoding:c}=t,u=(0,jD.A)(t,DP),l=QR(c,r),f=rB(a)?a:{type:a},d=SP(f,r[f.type],l),h="area"===f.type&&TP(f,r[f.type]),p=[(0,v.A)((0,v.A)({name:s},i?{params:i}:{}),{},{mark:CP((0,v.A)((0,v.A)({},"area"===f.type&&void 0===f.opacity&&void 0===f.fillOpacity?{opacity:.7}:{}),f)),encoding:XD(l,["shape"])})],m=kP(EP(f,l,r),l);let g=l;if(m){const{fieldChannel:t,offset:e}=m;g=(0,v.A)((0,v.A)({},l),{},{[t]:(0,v.A)((0,v.A)({},l[t]),e?{stack:e}:{})})}return g=XD(g,["y2","x2"]),h&&p.push((0,v.A)((0,v.A)({},o?{projection:o}:{}),{},{mark:(0,v.A)((0,v.A)({type:"line"},$D(f,["clip","interpolate","tension","tooltip"])),h),encoding:g})),d&&p.push((0,v.A)((0,v.A)({},o?{projection:o}:{}),{},{mark:(0,v.A)((0,v.A)({type:"point",opacity:1,filled:!0},$D(f,["clip","tooltip"])),d),encoding:g})),n((0,v.A)((0,v.A)({},u),{},{layer:p}),(0,v.A)((0,v.A)({},e),{},{config:MP(r)}))}}const OP=["condition"];function BP(t,e){return e?IB(t)?jP(t,e):PP(t,e):t}function RP(t,e){return e?jP(t,e):t}function zP(t,e,n){const r=e[t];return function(t){return!Lt(t)&&PC(t,"repeat")}(r)?r.repeat in n?(0,v.A)((0,v.A)({},e),{},{[t]:n[r.repeat]}):void mN(function(t){return'Unknown repeated value "'.concat(t,'".')}(r.repeat)):e}function PP(t,e){if(void 0!==(t=zP("field",t,e))){if(null===t)return null;if(YB(t)&&PB(t.sort)){const n=zP("field",t.sort,e);t=(0,v.A)((0,v.A)({},t),n?{sort:n}:{})}return t}}function LP(t,e){if(tR(t))return PP(t,e);{const n=zP("datum",t,e);return n===t||n.type||(n.type="nominal"),n}}function IP(t,e){if(!aR(t)){if(KB(t)){const n=LP(t.condition,e);if(n)return(0,v.A)((0,v.A)({},t),{},{condition:n});{const{condition:e}=t;return(0,jD.A)(t,OP)}}return t}{const n=LP(t,e);if(n)return n;if(JB(t))return{condition:t.condition}}}function jP(t,e){const n={};for(const r in t)if(PC(t,r)){const i=t[r];if(q(i))n[r]=i.map((t=>IP(t,e))).filter((t=>t));else{const t=IP(i,e);void 0!==t&&(n[r]=t)}}return n}class UP{constructor(){this.name="RuleForRangedLine"}hasMatchingType(t){if(qR(t)){const{encoding:e,mark:n}=t;if("line"===n||rB(n)&&"line"===n.type)for(const t of qM){const n=e[HM(t)];if(e[t]&&(tR(n)&&!KS(n.bin)||nR(n)))return!0}}return!1}run(t,e,n){const{encoding:r,mark:i}=t;var o,a;return mN((o=!!r.x2,a=!!r.y2,"Line mark is for continuous lines and thus cannot be used with ".concat(o&&a?"x2 and y2":o?"x2":"y2",". We will use the rule mark (line segments) instead."))),n((0,v.A)((0,v.A)({},t),{},{mark:W(i)?(0,v.A)((0,v.A)({},i),{},{type:"rule"}):"rule"}),e)}}const qP=["repeat","spec"],WP=["repeat","spec","data"],HP=["row","column","facet"],GP=["mark","width","projection","height","view","params","encoding"],YP=["align","center","spacing","columns"],VP=["align","center","spacing","columns"],$P=["parentEncoding","parentProjection"],XP=["encoding","projection"];function ZP(t){let{parentEncoding:e,encoding:n={},layer:r}=t,i={};if(e){const t=new Set([...lC(e),...lC(n)]);for(const o of t){const t=n[o],a=e[o];if(aR(t)){const e=(0,v.A)((0,v.A)({},a),t);i[o]=e}else KB(t)?i[o]=(0,v.A)((0,v.A)({},t),{},{condition:(0,v.A)((0,v.A)({},a),t.condition)}):t||null===t?i[o]=t:(r||cR(a)||cT(a)||aR(a)||q(a))&&(i[o]=a)}}else i=n;return!i||uC(i)?void 0:i}function JP(t){const{parentProjection:e,projection:n}=t;return e&&n&&mN(function(t){const{parentProjection:e,projection:n}=t;return"Layer's shared projection ".concat(zC(e)," is overridden by a child projection ").concat(zC(n),".")}({parentProjection:e,projection:n})),null!==n&&void 0!==n?n:e}function QP(t){return PC(t,"filter")}function KP(t){return PC(t,"lookup")}function tL(t){return PC(t,"pivot")}function eL(t){return PC(t,"density")}function nL(t){return PC(t,"quantile")}function rL(t){return PC(t,"regression")}function iL(t){return PC(t,"loess")}function oL(t){return PC(t,"sample")}function aL(t){return PC(t,"window")}function sL(t){return PC(t,"joinaggregate")}function cL(t){return PC(t,"flatten")}function uL(t){return PC(t,"calculate")}function lL(t){return PC(t,"bin")}function fL(t){return PC(t,"impute")}function dL(t){return PC(t,"timeUnit")}function hL(t){return PC(t,"aggregate")}function pL(t){return PC(t,"stack")}function mL(t){return PC(t,"fold")}function gL(t){return PC(t,"extent")&&!PC(t,"density")&&!PC(t,"regression")}const vL=["selection"],yL=["init","bind","empty"],bL=["transform"],AL=["selection"],xL=["selection"],_L=["selection","param","test"],wL=["selection","param","test"],kL=["selection"];function EL(t,e){const{transform:n}=t,r=(0,jD.A)(t,bL);if(n){const t=n.map((t=>{if(QP(t))return{filter:CL(t,e)};if(lL(t)&&tT(t.bin))return(0,v.A)((0,v.A)({},t),{},{bin:DL(t.bin)});if(KP(t)){const e=t.from,{selection:n}=e,r=(0,jD.A)(e,AL);return n?(0,v.A)((0,v.A)({},t),{},{from:(0,v.A)({param:n},r)}):t}return t}));return(0,v.A)((0,v.A)({},r),{},{transform:t})}return t}function FL(t,e){var n;const r=YD(t);if(tR(r)&&tT(r.bin)&&(r.bin=DL(r.bin)),uR(r)&&null!==(n=r.scale)&&void 0!==n&&null!==(n=n.domain)&&void 0!==n&&n.selection){const t=r.scale.domain,{selection:e}=t,n=(0,jD.A)(t,xL);r.scale.domain=(0,v.A)((0,v.A)({},n),e?{param:e}:{})}if(JB(r))if(q(r.condition))r.condition=r.condition.map((t=>{const{selection:n,param:r,test:i}=t,o=(0,jD.A)(t,_L);return r?t:(0,v.A)((0,v.A)({},o),{},{test:CL(t,e)})}));else{const t=FL(r.condition,e),{selection:n,param:i,test:o}=t,a=(0,jD.A)(t,wL);r.condition=i?r.condition:(0,v.A)((0,v.A)({},a),{},{test:CL(r.condition,e)})}return r}function DL(t){const e=t.extent;if(null!==e&&void 0!==e&&e.selection){const{selection:n}=e,r=(0,jD.A)(e,kL);return(0,v.A)((0,v.A)({},t),{},{extent:(0,v.A)((0,v.A)({},r),{},{param:n})})}return t}function CL(t,e){const n=t=>GD(t,(t=>{var n,r,i;const o={param:t,empty:null===(n=e.emptySelections[t])||void 0===n||n};return null!==(r=(i=e.selectionPredicates)[t])&&void 0!==r||(i[t]=[]),e.selectionPredicates[t].push(o),o}));return t.selection?n(t.selection):GD(t.test||t.filter,(t=>t.selection?n(t.selection):t))}class ML extends yP{map(t,e){var n;const r=null!==(n=e.selections)&&void 0!==n?n:[];if(t.params&&!qR(t)){const e=[];for(const n of t.params)qz(n)?r.push(n):e.push(n);t.params=e}return e.selections=r,super.map(t,e)}mapUnit(t,e){var n;const r=e.selections;if(!r||!r.length)return t;const i=(null!==(n=e.path)&&void 0!==n?n:[]).concat(t.name),o=[];for(const a of r)if(a.views&&a.views.length)for(const e of a.views)(Lt(e)&&(e===t.name||i.includes(e))||q(e)&&e.map((t=>i.indexOf(t))).every(((t,e,n)=>-1!==t&&(0===e||t>n[e-1]))))&&o.push(a);else o.push(a);return o.length&&(t.params=o),t}}for(const oX of["mapFacet","mapRepeat","mapHConcat","mapVConcat","mapLayer"]){const t=ML.prototype[oX];ML.prototype[oX]=function(e,n){return t.call(this,e,SL(e,n))}}function SL(t,e){var n;return t.name?(0,v.A)((0,v.A)({},e),{},{path:(null!==(n=e.path)&&void 0!==n?n:[]).concat(t.name)}):e}function TL(t,e){void 0===e&&(e=lP(t.config));const n=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={config:e};return BL.map(NL.map(OL.map(t,n),n),n)}(t,e),{width:r,height:i}=t,o=function(t,e,n){let{width:r,height:i}=e;const o=qR(t)||gP(t),a={};o?"container"==r&&"container"==i?(a.type="fit",a.contains="padding"):"container"==r?(a.type="fit-x",a.contains="padding"):"container"==i&&(a.type="fit-y",a.contains="padding"):("container"==r&&(mN(RT("width")),r=void 0),"container"==i&&(mN(RT("height")),i=void 0));const s=(0,v.A)((0,v.A)((0,v.A)({type:"pad"},a),n?RL(n.autosize):{}),RL(t.autosize));"fit"!==s.type||o||(mN(BT),s.type="pad");"container"==r&&"fit"!=s.type&&"fit-x"!=s.type&&mN(zT("width"));"container"==i&&"fit"!=s.type&&"fit-y"!=s.type&&mN(zT("height"));if(RC(s,{type:"pad"}))return;return s}(n,{width:r,height:i,autosize:t.autosize},e);return(0,v.A)((0,v.A)({},n),o?{autosize:o}:{})}const NL=new class extends yP{constructor(){super(...arguments),this.nonFacetUnitNormalizers=[pz,Az,Fz,new NP,new UP]}map(t,e){if(qR(t)){const n=YR(t.encoding,LC),r=YR(t.encoding,IC),i=YR(t.encoding,jC);if(n||r||i)return this.mapFacetedUnit(t,e)}return super.map(t,e)}mapUnit(t,e){const{parentEncoding:n,parentProjection:r}=e,i=RP(t.encoding,e.repeater),o=(0,v.A)((0,v.A)((0,v.A)({},t),t.name?{name:[e.repeaterPrefix,t.name].filter((t=>t)).join("_")}:{}),i?{encoding:i}:{});if(n||r)return this.mapUnitWithParentEncodingOrProjection(o,e);const a=this.mapLayerOrUnit.bind(this);for(const s of this.nonFacetUnitNormalizers)if(s.hasMatchingType(o,e.config))return s.run(o,e,a);return o}mapRepeat(t,e){return function(t){return!q(t.repeat)&&PC(t.repeat,"layer")}(t)?this.mapLayerRepeat(t,e):this.mapNonLayerRepeat(t,e)}mapLayerRepeat(t,e){const{repeat:n,spec:r}=t,i=(0,jD.A)(t,qP),{row:o,column:a,layer:s}=n,{repeater:c={},repeaterPrefix:u=""}=e;return o||a?this.mapRepeat((0,v.A)((0,v.A)({},t),{},{repeat:(0,v.A)((0,v.A)({},o?{row:o}:{}),a?{column:a}:{}),spec:{repeat:{layer:s},spec:r}}),e):(0,v.A)((0,v.A)({},i),{},{layer:s.map((t=>{const n=(0,v.A)((0,v.A)({},c),{},{layer:t}),i="".concat((r.name?"".concat(r.name,"_"):"")+u,"child__layer_").concat(pC(t)),o=this.mapLayerOrUnit(r,(0,v.A)((0,v.A)({},e),{},{repeater:n,repeaterPrefix:i}));return o.name=i,o}))})}mapNonLayerRepeat(t,e){var n;const{repeat:r,spec:i,data:o}=t,a=(0,jD.A)(t,WP);!q(r)&&t.columns&&(t=XD(t,["columns"]),mN(WT("repeat")));const s=[],{repeater:c={},repeaterPrefix:u=""}=e,l=!q(r)&&r.row||[c?c.row:null],f=!q(r)&&r.column||[c?c.column:null],d=q(r)&&r||[c?c.repeat:null];for(const p of d)for(const t of l)for(const n of f){const o={repeat:p,row:t,column:n,layer:c.layer},a=(i.name?"".concat(i.name,"_"):"")+u+"child__"+(q(r)?"".concat(pC(p)):(r.row?"row_".concat(pC(t)):"")+(r.column?"column_".concat(pC(n)):"")),l=this.map(i,(0,v.A)((0,v.A)({},e),{},{repeater:o,repeaterPrefix:a}));l.name=a,s.push(XD(l,["data"]))}const h=q(r)?t.columns:r.column?r.column.length:1;return(0,v.A)((0,v.A)({data:null!==(n=i.data)&&void 0!==n?n:o,align:"all"},a),{},{columns:h,concat:s})}mapFacet(t,e){const{facet:n}=t;return IB(n)&&t.columns&&(t=XD(t,["columns"]),mN(WT("facet"))),super.mapFacet(t,e)}mapUnitWithParentEncodingOrProjection(t,e){const{encoding:n,projection:r}=t,{parentEncoding:i,parentProjection:o,config:a}=e,s=JP({parentProjection:o,projection:r}),c=ZP({parentEncoding:i,encoding:RP(n,e.repeater)});return this.mapUnit((0,v.A)((0,v.A)((0,v.A)({},t),s?{projection:s}:{}),c?{encoding:c}:{}),{config:a})}mapFacetedUnit(t,e){const n=t.encoding,{row:r,column:i,facet:o}=n,a=(0,jD.A)(n,HP),{mark:s,width:c,projection:u,height:l,view:f,params:d,encoding:h}=t,p=(0,jD.A)(t,GP),{facetMapping:m,layout:g}=this.getFacetMappingAndLayout({row:r,column:i,facet:o},e),y=RP(a,e.repeater);return this.mapFacet((0,v.A)((0,v.A)((0,v.A)({},p),g),{},{facet:m,spec:(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({},c?{width:c}:{}),l?{height:l}:{}),f?{view:f}:{}),u?{projection:u}:{}),{},{mark:s,encoding:y},d?{params:d}:{})}),e)}getFacetMappingAndLayout(t,e){const{row:n,column:r,facet:i}=t;if(n||r){i&&mN((a=[...n?[LC]:[],...r?[IC]:[]],"Facet encoding dropped as ".concat(a.join(" and ")," ").concat(a.length>1?"are":"is"," also specified.")));const e={},s={};for(const n of[LC,IC]){const r=t[n];if(r){const{align:t,center:i,spacing:a,columns:c}=r,u=(0,jD.A)(r,YP);e[n]=u;for(const e of["align","center","spacing"]){var o;if(void 0!==r[e])null!==(o=s[e])&&void 0!==o||(s[e]={}),s[e][n]=r[e]}}}return{facetMapping:e,layout:s}}{const{align:t,center:n,spacing:r,columns:o}=i;return{facetMapping:BP((0,jD.A)(i,VP),e.repeater),layout:(0,v.A)((0,v.A)((0,v.A)((0,v.A)({},t?{align:t}:{}),n?{center:n}:{}),r?{spacing:r}:{}),o?{columns:o}:{})}}var a}mapLayer(t,e){let{parentEncoding:n,parentProjection:r}=e,i=(0,jD.A)(e,$P);const{encoding:o,projection:a}=t,s=(0,jD.A)(t,XP),c=(0,v.A)((0,v.A)({},i),{},{parentEncoding:ZP({parentEncoding:n,encoding:o,layer:!0}),parentProjection:JP({parentProjection:r,projection:a})});return super.mapLayer((0,v.A)((0,v.A)({},s),t.name?{name:[c.repeaterPrefix,t.name].filter((t=>t)).join("_")}:{}),c)}},OL=new class extends yP{map(t,e){var n,r;return null!==(n=e.emptySelections)&&void 0!==n||(e.emptySelections={}),null!==(r=e.selectionPredicates)&&void 0!==r||(e.selectionPredicates={}),t=EL(t,e),super.map(t,e)}mapLayerOrUnit(t,e){if((t=EL(t,e)).encoding){const n={};for(const[r,i]of dC(t.encoding))n[r]=FL(i,e);t=(0,v.A)((0,v.A)({},t),{},{encoding:n})}return super.mapLayerOrUnit(t,e)}mapUnit(t,e){const{selection:n}=t,r=(0,jD.A)(t,vL);return n?(0,v.A)((0,v.A)({},r),{},{params:dC(n).map((t=>{let[n,r]=t;const{init:i,bind:o,empty:a}=r,s=(0,jD.A)(r,yL);"single"===s.type?(s.type="point",s.toggle=!1):"multi"===s.type&&(s.type="point"),e.emptySelections[n]="none"!==a;for(const u of fC(null!==(c=e.selectionPredicates[n])&&void 0!==c?c:{})){var c;u.empty="none"!==a}return{name:n,value:i,select:s,bind:o}}))}):t}},BL=new ML;function RL(t){return Lt(t)?{type:t}:null!==t&&void 0!==t?t:{}}const zL=["background","padding"];function PL(t,e){const n={};for(const r of zL)t&&void 0!==t[r]&&(n[r]=yT(t[r]));return e&&(n.params=t.params),n}class LL{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.explicit=t,this.implicit=e}clone(){return new LL(YD(this.explicit),YD(this.implicit))}combine(){return(0,v.A)((0,v.A)({},this.explicit),this.implicit)}get(t){return FC(this.explicit[t],this.implicit[t])}getWithExplicit(t){return void 0!==this.explicit[t]?{explicit:!0,value:this.explicit[t]}:void 0!==this.implicit[t]?{explicit:!1,value:this.implicit[t]}:{explicit:!1,value:void 0}}setWithExplicit(t,e){let{value:n,explicit:r}=e;void 0!==n&&this.set(t,n,r)}set(t,e,n){return delete this[n?"implicit":"explicit"][t],this[n?"explicit":"implicit"][t]=e,this}copyKeyFromSplit(t,e){let{explicit:n,implicit:r}=e;void 0!==n[t]?this.set(t,n[t],!0):void 0!==r[t]&&this.set(t,r[t],!1)}copyKeyFromObject(t,e){void 0!==e[t]&&this.set(t,e[t],!0)}copyAll(t){for(const e of lC(t.combine())){const n=t.getWithExplicit(e);this.setWithExplicit(e,n)}}}function IL(t){return{explicit:!0,value:t}}function jL(t){return{explicit:!1,value:t}}function UL(t){return(e,n,r,i)=>{const o=t(e.value,n.value);return o>0?e:o<0?n:qL(e,n,r,i)}}function qL(t,e,n,r){return t.explicit&&e.explicit&&mN(function(t,e,n,r){return"Conflicting ".concat(e.toString(),' property "').concat(t.toString(),'" (').concat(zC(n)," and ").concat(zC(r),"). Using ").concat(zC(n),".")}(n,r,t.value,e.value)),t}function WL(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:qL;return void 0===t||void 0===t.value?e:t.explicit&&!e.explicit?t:e.explicit&&!t.explicit?e:RC(t.value,e.value)?t:i(t,e,n,r)}class HL extends LL{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super(t,e),this.explicit=t,this.implicit=e,this.parseNothing=n}clone(){const t=super.clone();return t.parseNothing=this.parseNothing,t}}function GL(t){return PC(t,"url")}function YL(t){return PC(t,"values")}function VL(t){return PC(t,"name")&&!GL(t)&&!YL(t)&&!$L(t)}function $L(t){return t&&(XL(t)||ZL(t)||JL(t))}function XL(t){return PC(t,"sequence")}function ZL(t){return PC(t,"sphere")}function JL(t){return PC(t,"graticule")}var QL;function KL(t){let{invalid:e,isPath:n}=t;switch(pB(e,{isPath:n})){case"filter":return{marks:"exclude-invalid-values",scales:"exclude-invalid-values"};case"break-paths-show-domains":return{marks:n?"include-invalid-values":"exclude-invalid-values",scales:"include-invalid-values"};case"break-paths-filter-domains":return{marks:n?"include-invalid-values":"exclude-invalid-values",scales:"exclude-invalid-values"};case"show":return{marks:"include-invalid-values",scales:"include-invalid-values"}}}!function(t){t[t.Raw=0]="Raw",t[t.Main=1]="Main",t[t.Row=2]="Row",t[t.Column=3]="Column",t[t.Lookup=4]="Lookup",t[t.PreFilterInvalid=5]="PreFilterInvalid",t[t.PostFilterInvalid=6]="PostFilterInvalid"}(QL||(QL={}));class tI{constructor(t,e){this.debugName=e,this._children=[],this._parent=null,t&&(this.parent=t)}clone(){throw new Error("Cannot clone node")}get parent(){return this._parent}set parent(t){this._parent=t,t&&t.addChild(this)}get children(){return this._children}numChildren(){return this._children.length}addChild(t,e){this._children.includes(t)?mN("Attempt to add the same child twice."):void 0!==e?this._children.splice(e,0,t):this._children.push(t)}removeChild(t){const e=this._children.indexOf(t);return this._children.splice(e,1),e}remove(){let t=this._parent.removeChild(this);for(const e of this._children)e._parent=this._parent,this._parent.addChild(e,t++)}insertAsParentOf(t){const e=t.parent;e.removeChild(this),this.parent=e,t.parent=this}swapWithParent(){const t=this._parent,e=t.parent;for(const r of this._children)r.parent=t;this._children=[],t.removeChild(this);const n=t.parent.removeChild(t);this._parent=e,e.addChild(this,n),t.parent=this}}class eI extends tI{clone(){const t=new this.constructor;return t.debugName="clone_".concat(this.debugName),t._source=this._source,t._name="clone_".concat(this._name),t.type=this.type,t.refCounts=this.refCounts,t.refCounts[t._name]=0,t}constructor(t,e,n,r){super(t,e),this.type=n,this.refCounts=r,this._source=this._name=e,this.refCounts&&!(this._name in this.refCounts)&&(this.refCounts[this._name]=0)}dependentFields(){return new Set}producedFields(){return new Set}hash(){return void 0===this._hash&&(this._hash="Output ".concat(CC())),this._hash}getSource(){return this.refCounts[this._name]++,this._source}isRequired(){return!!this.refCounts[this._name]}setSource(t){this._source=t}}const nI=["timeUnit"],rI=["unit","utc"];function iI(t){return void 0!==t.as}function oI(t){return"".concat(t,"_end")}class aI extends tI{clone(){return new aI(null,YD(this.timeUnits))}constructor(t,e){super(t),this.timeUnits=e}static makeFromEncoding(t,e){const n=e.reduceFieldDef(((t,n,r)=>{const{field:i,timeUnit:o}=n;if(o){let a;if(FN(o)){if(KH(e)){const{mark:t,markDef:r,config:s}=e,c=VB({fieldDef:n,markDef:r,config:s});(eB(t)||c)&&(a={timeUnit:RN(o),field:i})}}else a={as:pR(n,{forAs:!0}),field:i,timeUnit:o};if(KH(e)){const{mark:t,markDef:i,config:o}=e,s=VB({fieldDef:n,markDef:i,config:o});eB(t)&&gS(r)&&.5!==s&&(a.rectBandPosition=s)}a&&(t[ZD(a)]=a)}return t}),{});return uC(n)?null:new aI(t,n)}static makeFromTransform(t,e){const n=(0,v.A)({},e),{timeUnit:r}=n,i=(0,jD.A)(n,nI),o=RN(r),a=(0,v.A)((0,v.A)({},i),{},{timeUnit:o});return new aI(t,{[ZD(a)]:a})}merge(t){this.timeUnits=(0,v.A)({},this.timeUnits);for(const e in t.timeUnits)this.timeUnits[e]||(this.timeUnits[e]=t.timeUnits[e]);for(const e of t.children)t.removeChild(e),e.parent=this;t.remove()}removeFormulas(t){const e={};for(const[n,r]of dC(this.timeUnits)){const i=iI(r)?r.as:"".concat(r.field,"_end");t.has(i)||(e[n]=r)}this.timeUnits=e}producedFields(){return new Set(fC(this.timeUnits).map((t=>iI(t)?t.as:oI(t.field))))}dependentFields(){return new Set(fC(this.timeUnits).map((t=>t.field)))}hash(){return"TimeUnit ".concat(ZD(this.timeUnits))}assemble(){const t=[];for(const e of fC(this.timeUnits)){const{rectBandPosition:n}=e,r=RN(e.timeUnit);if(iI(e)){const{field:i,as:o}=e,{unit:a,utc:s}=r,c=(0,jD.A)(r,rI),u=[o,"".concat(o,"_end")];t.push((0,v.A)((0,v.A)((0,v.A)((0,v.A)({field:_C(i),type:"timeunit"},a?{units:SN(a)}:{}),s?{timezone:"utc"}:{}),c),{},{as:u})),t.push(...lI(u,n,r))}else if(e){const{field:i}=e,o=i.replaceAll("\\.","."),a=uI({timeUnit:r,field:o}),s=oI(o);t.push({type:"formula",expr:a,as:s}),t.push(...lI([o,s],n,r))}}return t}}const sI="offsetted_rect_start",cI="offsetted_rect_end";function uI(t){let{timeUnit:e,field:n,reverse:r}=t;const{unit:i,utc:o}=e,a=TN(i),{part:s,step:c}=LN(a,e.step);return"".concat(o?"utcOffset":"timeOffset","('").concat(s,"', ").concat(AC(n),", ").concat(r?-c:c,")")}function lI(t,e,n){let[r,i]=t;if(void 0!==e&&.5!==e){const t=AC(r),o=AC(i);return[{type:"formula",expr:fI([uI({timeUnit:n,field:r,reverse:!0}),t],e+.5),as:"".concat(r,"_").concat(sI)},{type:"formula",expr:fI([t,o],e+.5),as:"".concat(r,"_").concat(cI)}]}return[]}function fI(t,e){let[n,r]=t;return"".concat(1-e," * ").concat(n," + ").concat(e," * ").concat(r)}const dI="_tuple_fields";class hI{constructor(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.items=e,this.hasChannel={},this.hasField={},this.hasSelectionId=!1}}const pI={defined:()=>!0,parse:(t,e,n)=>{var r;const i=e.name,o=null!==(r=e.project)&&void 0!==r?r:e.project=new hI,a={},s={},c=new Set,u=(t,e)=>{const n="visual"===e?t.channel:t.field;let r=pC("".concat(i,"_").concat(n));for(let o=1;c.has(r);o++)r=pC("".concat(i,"_").concat(n,"_").concat(o));return c.add(r),{[e]:r}},l=e.type,f=t.config.selection[l],d=void 0!==n.value?ht(n.value):null;let{fields:h,encodings:p}=W(n.select)?n.select:{};if(!h&&!p&&d)for(const v of d)if(W(v))for(const t of lC(v)){var m;if(Dt(jM,t))(p||(p=[])).push(t);else if("interval"===l)mN('Interval selections should be initialized using "x", "y", "longitude", or "latitude" keys.'),p=f.encodings;else(null!==(m=h)&&void 0!==m?m:h=[]).push(t)}h||p||(p=f.encodings,"fields"in f&&(h=f.fields));for(const b of null!==(g=p)&&void 0!==g?g:[]){var g;const e=t.fieldDef(b);if(e){let n=e.field;if(e.aggregate){mN(jT(b,e.aggregate));continue}if(!n){mN(IT(b));continue}if(e.timeUnit&&!FN(e.timeUnit)){n=t.vgField(b);const r={timeUnit:e.timeUnit,as:n,field:e.field};s[ZD(r)]=r}if(!a[n]){const r={field:n,channel:b,type:"interval"===l&&zS(b)&&kO(t.getScaleComponent(b).get("type"))?"R":e.bin?"R-RE":"E",index:o.items.length};r.signals=(0,v.A)((0,v.A)({},u(r,"data")),u(r,"visual")),o.items.push(a[n]=r),o.hasField[n]=a[n],o.hasSelectionId=o.hasSelectionId||n===Lz,EM(b)?(r.geoChannel=b,r.channel=kM(b),o.hasChannel[r.channel]=a[n]):o.hasChannel[b]=a[n]}}else mN(IT(b))}for(const b of null!==(y=h)&&void 0!==y?y:[]){var y;if(o.hasField[b])continue;const t={type:"E",field:b,index:o.items.length};t.signals=(0,v.A)({},u(t,"data")),o.items.push(t),o.hasField[b]=t,o.hasSelectionId=o.hasSelectionId||b===Lz}d&&(e.init=d.map((t=>o.items.map((e=>W(t)?void 0!==t[e.geoChannel||e.channel]?t[e.geoChannel||e.channel]:t[e.field]:t))))),uC(s)||(o.timeUnit=new aI(null,s))},signals:(t,e,n)=>{const r=e.name+dI;return n.filter((t=>t.name===r)).length>0||e.project.hasSelectionId?n:n.concat({name:r,value:e.project.items.map(CI)})}},mI=pI,gI="_curr",vI="anim_value",yI="anim_clock",bI="eased_anim_clock",AI="min_extent",xI="max_range_extent",_I="last_tick_at",wI="is_playing",kI=1/60*1e3,EI={defined:t=>"point"===t.type,topLevelSignals:(t,e,n)=>(Hj(e)&&(n=n.concat([{name:yI,init:"0",on:[{events:{type:"timer",throttle:kI},update:"".concat(wI," ? (").concat(yI," + (now() - ").concat(_I,") > ").concat(xI," ? 0 : ").concat(yI," + (now() - ").concat(_I,")) : ").concat(yI)}]},{name:_I,init:"now()",on:[{events:[{signal:yI},{signal:wI}],update:"now()"}]},{name:wI,init:"true"}])),n),signals:(t,e,n)=>{var r;const i=e.name,o=i+dI,a=e.project,s="(item().isVoronoi ? datum.datum : datum)",c=fC(null!==(r=t.component.selection)&&void 0!==r?r:{}).reduce(((t,e)=>"interval"===e.type?t.concat(e.name+LI):t),[]).map((t=>"indexof(item().mark.name, '".concat(t,"') < 0"))).join(" && "),u="datum && item().mark.marktype !== 'group' && indexof(item().mark.role, 'legend') < 0".concat(c?" && ".concat(c):"");let l="unit: ".concat(Uj(t),", ");if(e.project.hasSelectionId)l+="".concat(Lz,": ").concat(s,"[").concat(Vt(Lz),"]");else if(Hj(e))l+="fields: ".concat(o,", values: [").concat(vI," ? ").concat(vI," : ").concat(AI,"]");else{const e=a.items.map((e=>{const n=t.fieldDef(e.channel);return null!==n&&void 0!==n&&n.bin?"[".concat(s,"[").concat(Vt(t.vgField(e.channel,{})),"], ")+"".concat(s,"[").concat(Vt(t.vgField(e.channel,{binSuffix:"end"})),"]]"):"".concat(s,"[").concat(Vt(e.field),"]")})).join(", ");l+="fields: ".concat(o,", values: [").concat(e,"]")}if(Hj(e))return n.concat((f=e.name,d=t.scaleName(eM),[{name:bI,update:yI},{name:"".concat(f,"_domain"),init:"domain('".concat(d,"')")},{name:AI,init:"extent(".concat(f,"_domain)[0]")},{name:xI,init:"extent(range('".concat(d,"'))[1]")},{name:vI,update:"invert('".concat(d,"', ").concat(bI,")")}]),[{name:i+Pj,on:[{events:[{signal:bI},{signal:vI}],update:"{".concat(l,"}"),force:!0}]}]);{const t=e.events;return n.concat([{name:i+Pj,on:t?[{events:t,update:"".concat(u," ? {").concat(l,"} : null"),force:!0}]:[]}])}var f,d}},FI=EI,DI=["signals","hasLegend","index"];function CI(t){const{signals:e,hasLegend:n,index:r}=t,i=(0,jD.A)(t,DI);return i.field=_C(i.field),i}function MI(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;if(q(t)){const r=t.map((t=>MI(t,e,n)));return e?"[".concat(r.join(", "),"]"):r}return gN(t)?n(e?_N(t):function(t){const e=xN(t,!0);return t.utc?+new Date(Date.UTC(...e)):+new Date(...e)}(t)):e?n(zC(t)):t}function SI(t,e){for(const r of fC(null!==(n=t.component.selection)&&void 0!==n?n:{})){var n;const i=r.name;let o="".concat(i).concat(Pj,", ").concat("global"===r.resolve?"true":"{unit: ".concat(Uj(t),"}"));for(const n of jj)n.defined(r)&&(n.signals&&(e=n.signals(t,r,e)),n.modifyExpr&&(o=n.modifyExpr(t,r,o)));e.push({name:i+Lj,on:[{events:{signal:r.name+Pj},update:"modify(".concat(Vt(r.name+zj),", ").concat(o,")")}]})}return NI(e)}function TI(t,e){for(const r of fC(null!==(n=t.component.selection)&&void 0!==n?n:{})){var n;for(const n of jj)n.defined(r)&&n.marks&&(e=n.marks(t,r,e))}return e}function NI(t){return t.map((t=>(t.on&&!t.on.length&&delete t.on,t)))}const OI={defined:t=>"interval"===t.type&&"global"===t.resolve&&t.bind&&"scales"===t.bind,parse:(t,e)=>{const n=e.scales=[];for(const r of e.project.items){const i=r.channel;if(!zS(i))continue;const o=t.getScaleComponent(i),a=o?o.get("type"):void 0;"sequential"==a&&mN("Sequntial scales are deprecated. The available quantitative scale type values are linear, log, pow, sqrt, symlog, time and utc"),o&&kO(a)?(o.set("selectionExtent",{param:e.name,field:r.field},!0),n.push(r)):mN("Scale bindings are currently only supported for scales with unbinned, continuous domains.")}},topLevelSignals:(t,e,n)=>{const r=e.scales.filter((t=>0===n.filter((e=>e.name===t.signals.data)).length));if(!t.parent||zI(t)||0===r.length)return n;const i=n.find((t=>t.name===e.name));let o=i.update;if(o.includes(Ij))i.update="{".concat(r.map((t=>"".concat(Vt(_C(t.field)),": ").concat(t.signals.data))).join(", "),"}");else{for(const t of r){const e="".concat(Vt(_C(t.field)),": ").concat(t.signals.data);o.includes(e)||(o="".concat(o.substring(0,o.length-1),", ").concat(e,"}"))}i.update=o}return n.concat(r.map((t=>({name:t.signals.data}))))},signals:(t,e,n)=>{if(t.parent&&!zI(t))for(const r of e.scales){const t=n.find((t=>t.name===r.signals.data));t.push="outer",delete t.value,delete t.update}return n}},BI=OI;function RI(t,e){const n=Vt(t.scaleName(e));return"domain(".concat(n,")")}function zI(t){return t.parent&&nG(t.parent)&&(!t.parent.parent||zI(t.parent.parent))}const PI=["fill","fillOpacity","cursor"],LI="_brush",II="_scale_trigger",jI="geo_interval_init_tick",UI="_init",qI={defined:t=>"interval"===t.type,parse:(t,e,n)=>{var r;if(t.hasProjection){const t=(0,v.A)({},W(n.select)?n.select:{});t.fields=[Lz],t.encodings||(t.encodings=n.value?lC(n.value):[QC,JC]),n.select=(0,v.A)({type:"interval"},t)}if(e.translate&&!BI.defined(e)){const t="!event.item || event.item.mark.name !== ".concat(Vt(e.name+LI));for(const n of e.events){var i;if(!n.between){mN("".concat(n," is not an ordered event stream for interval selections."));continue}const e=ht(null!==(i=(r=n.between[0]).filter)&&void 0!==i?i:r.filter=[]);e.includes(t)||e.push(t)}}},signals:(t,e,n)=>{const r=e.name,i=r+Pj,o=fC(e.project.hasChannel).filter((t=>t.channel===UC||t.channel===qC)),a=e.init?e.init[0]:null;if(n.push(...o.reduce(((n,r)=>n.concat(function(t,e,n,r){const i=!t.hasProjection,o=n.channel,a=n.signals.visual,s=Vt(i?t.scaleName(o):t.projectionName()),c=t=>"scale(".concat(s,", ").concat(t,")"),u=t.getSizeSignalRef(o===UC?"width":"height").signal,l="".concat(o,"(unit)"),f=e.events.reduce(((t,e)=>[...t,{events:e.between[0],update:"[".concat(l,", ").concat(l,"]")},{events:e,update:"[".concat(a,"[0], clamp(").concat(l,", 0, ").concat(u,")]")}]),[]);if(i){const i=n.signals.data,u=BI.defined(e),l=t.getScaleComponent(o),d=l?l.get("type"):void 0,h=r?{init:MI(r,!0,c)}:{value:[]};return f.push({events:{signal:e.name+II},update:kO(d)?"[".concat(c("".concat(i,"[0]")),", ").concat(c("".concat(i,"[1]")),"]"):"[0, 0]"}),u?[{name:i,on:[]}]:[(0,v.A)((0,v.A)({name:a},h),{},{on:f}),(0,v.A)((0,v.A)({name:i},r?{init:MI(r)}:{}),{},{on:[{events:{signal:a},update:"".concat(a,"[0] === ").concat(a,"[1] ? null : invert(").concat(s,", ").concat(a,")")}]})]}{const t=o===UC?0:1,n=e.name+UI,i=r?{init:"[".concat(n,"[0][").concat(t,"], ").concat(n,"[1][").concat(t,"]]")}:{value:[]};return[(0,v.A)((0,v.A)({name:a},i),{},{on:f})]}}(t,e,r,a&&a[r.index]))),[])),t.hasProjection){const s=Vt(t.projectionName()),c=t.projectionName()+"_center",{x:u,y:l}=e.project.hasChannel,f=u&&u.signals.visual,d=l&&l.signals.visual,h=u?a&&a[u.index]:"".concat(c,"[0]"),p=l?a&&a[l.index]:"".concat(c,"[1]"),m=e=>t.getSizeSignalRef(e).signal,g="["+"[".concat(f?f+"[0]":"0",", ").concat(d?d+"[0]":"0","],")+"[".concat(f?f+"[1]":m("width"),", ")+"".concat(d?d+"[1]":m("height"),"]")+"]";if(a&&(n.unshift({name:r+UI,init:"[scale(".concat(s,", [").concat(u?h[0]:h,", ").concat(l?p[0]:p,"]), ")+"scale(".concat(s,", [").concat(u?h[1]:h,", ").concat(l?p[1]:p,"])]")}),!u||!l)){n.find((t=>t.name===c))||n.unshift({name:c,update:"invert(".concat(s,", [").concat(m("width"),"/2, ").concat(m("height"),"/2])")})}const v="intersect(".concat(g,", {markname: ").concat(Vt(t.getName("marks")),"}, unit.mark)"),y="{unit: ".concat(Uj(t),"}"),b="vlSelectionTuples(".concat(v,", ").concat(y,")"),A=o.map((t=>t.signals.visual));return n.concat({name:i,on:[{events:[...A.length?[{signal:A.join(" || ")}]:[],...a?[{signal:jI}]:[]],update:b}]})}{if(!BI.defined(e)){const e=r+II,i=o.map((e=>{const n=e.channel,{data:r,visual:i}=e.signals,o=Vt(t.scaleName(n)),a=kO(t.getScaleComponent(n).get("type"))?"+":"";return"(!isArray(".concat(r,") || ")+"(".concat(a,"invert(").concat(o,", ").concat(i,")[0] === ").concat(a).concat(r,"[0] && ")+"".concat(a,"invert(").concat(o,", ").concat(i,")[1] === ").concat(a).concat(r,"[1]))")}));i.length&&n.push({name:e,value:{},on:[{events:o.map((e=>({scale:t.scaleName(e.channel)}))),update:i.join(" && ")+" ? ".concat(e," : {}")}]})}const s=o.map((t=>t.signals.data)),c="unit: ".concat(Uj(t),", fields: ").concat(r+dI,", values");return n.concat((0,v.A)((0,v.A)({name:i},a?{init:"{".concat(c,": ").concat(MI(a),"}")}:{}),s.length?{on:[{events:[{signal:s.join(" || ")}],update:"".concat(s.join(" && ")," ? {").concat(c,": [").concat(s,"]} : null")}]}:{}))}},topLevelSignals:(t,e,n)=>{if(KH(t)&&t.hasProjection&&e.init){n.filter((t=>t.name===jI)).length||n.unshift({name:jI,value:null,on:[{events:"timer{1}",update:"".concat(jI," === null ? {} : ").concat(jI)}]})}return n},marks:(t,e,n)=>{const r=e.name,{x:i,y:o}=e.project.hasChannel,a=null===i||void 0===i?void 0:i.signals.visual,s=null===o||void 0===o?void 0:o.signals.visual,c="data(".concat(Vt(e.name+zj),")");if(BI.defined(e)||!i&&!o)return n;const u={x:void 0!==i?{signal:"".concat(a,"[0]")}:{value:0},y:void 0!==o?{signal:"".concat(s,"[0]")}:{value:0},x2:void 0!==i?{signal:"".concat(a,"[1]")}:{field:{group:"width"}},y2:void 0!==o?{signal:"".concat(s,"[1]")}:{field:{group:"height"}}};if("global"===e.resolve)for(const y of lC(u))u[y]=[(0,v.A)({test:"".concat(c,".length && ").concat(c,"[0].unit === ").concat(Uj(t))},u[y]),{value:0}];const l=e.mark,{fill:f,fillOpacity:d,cursor:h}=l,p=(0,jD.A)(l,PI),m=lC(p).reduce(((t,e)=>(t[e]=[{test:[void 0!==i&&"".concat(a,"[0] !== ").concat(a,"[1]"),void 0!==o&&"".concat(s,"[0] !== ").concat(s,"[1]")].filter((t=>t)).join(" && "),value:p[e]},{value:null}],t)),{}),g=null!==h&&void 0!==h?h:e.translate?"move":null;return[{name:"".concat(r+LI,"_bg"),type:"rect",clip:!0,encode:{enter:{fill:{value:f},fillOpacity:{value:d}},update:u}},...n,{name:r+LI,type:"rect",clip:!0,encode:{enter:(0,v.A)((0,v.A)({},g?{cursor:{value:g}}:{}),{},{fill:{value:"transparent"}}),update:(0,v.A)((0,v.A)({},u),m)}}]}},WI=qI;function HI(t){let{model:e,channelDef:n,vgChannel:r,invalidValueRef:i,mainRefFn:o}=t;const a=JB(n)&&n.condition;let s=[];if(a){s=ht(a).map((t=>{const n=o(t);if(function(t){return PC(t,"param")}(t)){const{param:r,empty:i}=t,o=lq(e,{param:r,empty:i});return(0,v.A)({test:o},n)}{const r=dq(e,t.test);return(0,v.A)({test:r},n)}}))}void 0!==i&&s.push(i);const c=o(n);return void 0!==c&&s.push(c),s.length>1||1===s.length&&Boolean(s[0].test)?{[r]:s}:1===s.length?{[r]:s[0]}:{}}function GI(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";const n=t.encoding[e];return HI({model:t,channelDef:n,vgChannel:e,mainRefFn:e=>YI(e,t.config),invalidValueRef:void 0})}function YI(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"datum";if(t){if(cR(t))return AT(t.value);if(aR(t)){const{format:r,formatType:i}=_R(t);return EB({fieldOrDatumDef:t,format:r,formatType:i,expr:n,config:e})}}}function VI(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{encoding:n,markDef:r,config:i,stack:o}=t,a=n.tooltip;if(q(a))return{tooltip:XI({tooltip:a},o,i,e)};{const s=e.reactiveGeom?"datum.datum":"datum";return HI({model:t,channelDef:a,vgChannel:"tooltip",mainRefFn:t=>{const a=YI(t,i,s);if(a)return a;if(null===t)return;let c=ET("tooltip",r,i);return!0===c&&(c={content:"encoding"}),Lt(c)?{value:c}:W(c)?cT(c)?c:"encoding"===c.content?XI(n,o,i,e):{signal:s}:void 0},invalidValueRef:void 0})}}function $I(t,e,n){let{reactiveGeom:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=(0,v.A)((0,v.A)({},n),n.tooltipFormat),o=new Set,a=r?"datum.datum":"datum",s=[];function c(n,r){var c;const u=HM(r),l=sR(n)?n:(0,v.A)((0,v.A)({},n),{},{type:t[u].type}),f=ht(l.title||xR(l,i)).join(", ").replaceAll(/"/g,'\\"');let d;if(gS(r)){const e="x"===r?"x2":"y2",n=wR(t[e]);if(KS(l.bin)&&n){const t=pR(l,{expr:a}),r=pR(n,{expr:a}),{format:s,formatType:c}=_R(l);d=OB(t,r,s,c,i),o.add(e)}}if((gS(r)||r===XC||r===VC)&&e&&e.fieldChannel===r&&"normalize"===e.offset){const{format:t,formatType:e}=_R(l);d=EB({fieldOrDatumDef:l,format:t,formatType:e,expr:a,config:i,normalizeStack:!0}).signal}null!==(c=d)&&void 0!==c||(d=YI(l,i,a).signal),s.push({channel:r,key:f,value:d})}KR(t,((t,e)=>{tR(t)?c(t,e):QB(t)&&c(t.condition,e)}));const u={};for(const{channel:l,key:f,value:d}of s)o.has(l)||u[f]||(u[f]=d);return u}function XI(t,e,n){let{reactiveGeom:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=$I(t,e,n,{reactiveGeom:r}),o=dC(i).map((t=>{let[e,n]=t;return'"'.concat(e,'": ').concat(n)}));return o.length>0?{signal:"{".concat(o.join(", "),"}")}:void 0}function ZI(t){const{markDef:e,config:n}=t,r=ET("aria",e,n);return!1===r?{}:(0,v.A)((0,v.A)((0,v.A)({},r?{aria:r}:{}),function(t){const{mark:e,markDef:n,config:r}=t;if(!1===r.aria)return{};const i=ET("ariaRoleDescription",n,r);if(null!=i)return{ariaRoleDescription:{value:i}};return Dt(dT,e)?{}:{ariaRoleDescription:{value:e}}}(t)),function(t){const{encoding:e,markDef:n,config:r,stack:i}=t,o=e.description;if(o)return HI({model:t,channelDef:o,vgChannel:"description",mainRefFn:e=>YI(e,t.config),invalidValueRef:void 0});const a=ET("description",n,r);if(null!=a)return{description:AT(a)};if(!1===r.aria)return{};const s=$I(e,i,r);if(uC(s))return;return{description:{signal:dC(s).map(((t,e)=>{let[n,r]=t;return'"'.concat(e>0?"; ":"").concat(n,': " + (').concat(r,")")})).join(" + ")}}}(t))}function JI(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{markDef:r,encoding:i,config:o}=e,{vgChannel:a}=n;let{defaultRef:s,defaultValue:c}=n;const u=i[t];var l;void 0===s&&(null!==(l=c)&&void 0!==l||(c=ET(t,r,o,{vgChannel:a,ignoreVgConfig:!JB(u)})),void 0!==c&&(s=AT(c)));const f={markDef:r,config:o,scaleName:e.scaleName(t),scale:e.getScaleComponent(t)},d=vB((0,v.A)((0,v.A)({},f),{},{scaleChannel:t,channelDef:u}));return HI({model:e,channelDef:u,vgChannel:null!==a&&void 0!==a?a:t,invalidValueRef:d,mainRefFn:e=>xB((0,v.A)((0,v.A)({},f),{},{channel:t,channelDef:e,stack:null,defaultRef:s}))})}function QI(t){var e,n,r,i;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{filled:void 0};const{markDef:a,encoding:s,config:c}=t,{type:u}=a,l=null!==(e=o.filled)&&void 0!==e?e:ET("filled",a,c),f=QD(["bar","point","circle","square","geoshape"],u)?"transparent":void 0,d=null!==(n=null!==(r=ET(!0===l?"color":void 0,a,c,{vgChannel:"fill"}))&&void 0!==r?r:c.mark[!0===l&&"color"])&&void 0!==n?n:f,h=null!==(i=ET(!1===l?"color":void 0,a,c,{vgChannel:"stroke"}))&&void 0!==i?i:c.mark[!1===l&&"color"],p=l?"fill":"stroke",m=(0,v.A)((0,v.A)({},d?{fill:AT(d)}:{}),h?{stroke:AT(h)}:{});return a.color&&(l?a.fill:a.stroke)&&mN(ZT("property",{fill:"fill"in a,stroke:"stroke"in a})),(0,v.A)((0,v.A)((0,v.A)((0,v.A)({},m),JI("color",t,{vgChannel:p,defaultValue:l?d:h})),JI("fill",t,{defaultValue:s.fill?d:void 0})),JI("stroke",t,{defaultValue:s.stroke?h:void 0}))}function KI(t){let{channel:e,markDef:n,encoding:r={},model:i,bandPosition:o}=t;const a="".concat(e,"Offset"),s=n[a],c=r[a];if(("xOffset"===a||"yOffset"===a)&&c){return{offsetType:"encoding",offset:xB({channel:a,channelDef:c,markDef:n,config:null===i||void 0===i?void 0:i.config,scaleName:i.scaleName(a),scale:i.getScaleComponent(a),stack:null,defaultRef:AT(s),bandPosition:o})}}const u=n[a];return u?{offsetType:"visual",offset:u}:{}}const tj=["mainChannel","config"];function ej(t,e,n){let{defaultPos:r,vgChannel:i}=n;const{encoding:o,markDef:a,config:s,stack:c}=e,u=o[t],l=o[YM(t)],f=e.scaleName(t),d=e.getScaleComponent(t),{offset:h,offsetType:p}=KI({channel:t,markDef:a,encoding:o,model:e,bandPosition:.5}),m=nj({model:e,defaultPos:r,channel:t,scaleName:f,scale:d}),g=!u&&gS(t)&&(o.latitude||o.longitude)?{field:e.getName(t)}:function(t){const{channel:e,channelDef:n,scaleName:r,stack:i,offset:o,markDef:a}=t;if(aR(n)&&i&&e===i.fieldChannel){if(tR(n)){let t=n.bandPosition;if(void 0!==t||"text"!==a.type||"radius"!==e&&"theta"!==e||(t=.5),void 0!==t)return AB({scaleName:r,fieldOrDatumDef:n,startSuffix:"start",bandPosition:t,offset:o})}return bB(n,r,{suffix:"end"},{offset:o})}return yB(t)}({channel:t,channelDef:u,channel2Def:l,markDef:a,config:s,scaleName:f,scale:d,stack:c,offset:h,defaultRef:m,bandPosition:"encoding"===p?0:void 0});return g?{[i||t]:g}:void 0}function nj(t){let{model:e,defaultPos:n,channel:r,scaleName:i,scale:o}=t;const{markDef:a,config:s}=e;return()=>{const t=HM(r),c=GM(r),u=ET(r,a,s,{vgChannel:c});if(void 0!==u)return _B(r,u);switch(n){case"zeroOrMin":return rj({scaleName:i,scale:o,mode:"zeroOrMin",mainChannel:t,config:s});case"zeroOrMax":return rj({scaleName:i,scale:o,mode:{zeroOrMax:{widthSignal:e.width.signal,heightSignal:e.height.signal}},mainChannel:t,config:s});case"mid":{const t=e[VM(r)];return(0,v.A)((0,v.A)({},t),{},{mult:.5})}}}}function rj(t){let{mainChannel:e,config:n}=t,r=(0,jD.A)(t,tj);const i=gB(r),{mode:o}=r;if(i)return i;switch(e){case"radius":{if("zeroOrMin"===o)return{value:0};const{widthSignal:t,heightSignal:e}=o.zeroOrMax;return{signal:"min(".concat(t,",").concat(e,")/2")}}case"theta":return"zeroOrMin"===o?{value:0}:{signal:"2*PI"};case"x":return"zeroOrMin"===o?{value:0}:{field:{group:"width"}};case"y":return"zeroOrMin"===o?{field:{group:"height"}}:{value:0}}}const ij={left:"x",center:"xc",right:"x2"},oj={top:"y",middle:"yc",bottom:"y2"};function aj(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle";if("radius"===t||"theta"===t)return GM(t);const i="x"===t?"align":"baseline",o=ET(i,e,n);let a;return cT(o)?(mN(function(t){return"The ".concat(t," for range marks cannot be an expression")}(i)),a=void 0):a=o,"x"===t?ij[a||("top"===r?"left":"center")]:oj[a||r]}function sj(t,e,n){let{defaultPos:r,defaultPos2:i,range:o}=n;return o?cj(t,e,{defaultPos:r,defaultPos2:i}):ej(t,e,{defaultPos:r})}function cj(t,e,n){let{defaultPos:r,defaultPos2:i}=n;const{markDef:o,config:a}=e,s=YM(t),c=VM(t),u=function(t,e,n){const{encoding:r,mark:i,markDef:o,stack:a,config:s}=t,c=HM(n),u=VM(n),l=GM(n),f=r[c],d=t.scaleName(c),h=t.getScaleComponent(c),{offset:p}=KI(n in r||n in o?{channel:n,markDef:o,encoding:r,model:t}:{channel:c,markDef:o,encoding:r,model:t});if(!f&&("x2"===n||"y2"===n)&&(r.latitude||r.longitude)){const e=VM(n),r=t.markDef[e];return null!=r?{[e]:{value:r}}:{[l]:{field:t.getName(n)}}}const m=function(t){let{channel:e,channelDef:n,channel2Def:r,markDef:i,config:o,scaleName:a,scale:s,stack:c,offset:u,defaultRef:l}=t;if(aR(n)&&c&&e.charAt(0)===c.fieldChannel.charAt(0))return bB(n,a,{suffix:"start"},{offset:u});return yB({channel:e,channelDef:r,scaleName:a,scale:s,stack:c,markDef:i,config:o,offset:u,defaultRef:l})}({channel:n,channelDef:f,channel2Def:r[n],markDef:o,config:s,scaleName:d,scale:h,stack:a,offset:p,defaultRef:void 0});if(void 0!==m)return{[l]:m};return uj(n,o)||uj(n,{[n]:DT(n,o,s.style),[u]:DT(u,o,s.style)})||uj(n,s[i])||uj(n,s.mark)||{[l]:nj({model:t,defaultPos:e,channel:n,scaleName:d,scale:h})()}}(e,i,s),l=u[c]?aj(t,o,a):GM(t);return(0,v.A)((0,v.A)({},ej(t,e,{defaultPos:r,vgChannel:l})),u)}function uj(t,e){const n=VM(t),r=GM(t);if(void 0!==e[r])return{[r]:_B(t,e[r])};if(void 0!==e[t])return{[r]:_B(t,e[t])};if(e[n]){const r=e[n];if(!uB(r))return{[n]:_B(t,r)};mN(function(t){return"Position range does not support relative band size for ".concat(t,".")}(n))}}function lj(t,e){var n,r;const{config:i,encoding:o,markDef:a}=t,s=a.type,c=YM(e),u=VM(e),l=o[e],f=o[c],d=t.getScaleComponent(e),h=d?d.get("type"):void 0,p=a.orient,m=null!==(n=null!==(r=o[u])&&void 0!==r?r:o.size)&&void 0!==n?n:ET("size",a,i,{vgChannel:u}),g=$M(e),y="bar"===s&&("x"===e?"vertical"===p:"horizontal"===p)||"tick"===s&&("y"===e?"vertical"===p:"horizontal"===p);return!tR(l)||!(QS(l.bin)||KS(l.bin)||l.timeUnit&&!f)||m&&!uB(m)||o[g]||wO(h)?(aR(l)&&wO(h)||y)&&!f?function(t,e,n){var r,i;const{markDef:o,encoding:a,config:s,stack:c}=n,u=o.orient,l=n.scaleName(e),f=n.getScaleComponent(e),d=VM(e),h=YM(e),p=$M(e),m=n.scaleName(p),g=n.getScaleComponent(XM(e)),y="tick"===o.type||"horizontal"===u&&"y"===e||"vertical"===u&&"x"===e;let b;(a.size||o.size)&&(y?b=JI("size",n,{vgChannel:d,defaultRef:AT(o.size)}):mN(function(t){return'Cannot apply size to non-oriented mark "'.concat(t,'".')}(o.type)));const A=!!b,x=$B({channel:e,fieldDef:t,markDef:o,config:s,scaleType:null===(r=f||g)||void 0===r?void 0:r.get("type"),useVlSizeChannel:y});b=b||{[d]:fj(d,m||l,g||f,s,x,!!t,o.type)};const _="band"===(null===(i=f||g)||void 0===i?void 0:i.get("type"))&&uB(x)&&!A?"top":"middle",w=aj(e,o,s,_),k="xc"===w||"yc"===w,{offset:E,offsetType:F}=KI({channel:e,markDef:o,encoding:a,model:n,bandPosition:k?.5:0}),D=yB({channel:e,channelDef:t,markDef:o,config:s,scaleName:l,scale:f,stack:c,offset:E,defaultRef:nj({model:n,defaultPos:"mid",channel:e,scaleName:l,scale:f}),bandPosition:k?"encoding"===F?0:.5:cT(x)?{signal:"(1-".concat(x,")/2")}:uB(x)?(1-x.band)/2:0});if(d)return(0,v.A)({[w]:D},b);{const t=GM(h),e=b[d],n=E?(0,v.A)((0,v.A)({},e),{},{offset:E}):e;return{[w]:D,[t]:q(D)?[D[0],(0,v.A)((0,v.A)({},D[1]),{},{offset:n})]:(0,v.A)((0,v.A)({},D),{},{offset:n})}}}(l,e,t):cj(e,t,{defaultPos:"zeroOrMax",defaultPos2:"zeroOrMin"}):function(t){var e,n,r;let{fieldDef:i,fieldDef2:o,channel:a,model:s}=t;const{config:c,markDef:u,encoding:l}=s,f=s.getScaleComponent(a),d=s.scaleName(a),h=f?f.get("type"):void 0,p=f.get("reverse"),m=$B({channel:a,fieldDef:i,markDef:u,config:c,scaleType:h}),g=null===(e=s.component.axes[a])||void 0===e?void 0:e[0],v=null!==(n=null===g||void 0===g?void 0:g.get("translate"))&&void 0!==n?n:.5,y=gS(a)&&null!==(r=ET("binSpacing",u,c))&&void 0!==r?r:0,b=YM(a),A=GM(a),x=GM(b),_=FT("minBandSize",u,c),{offset:w}=KI({channel:a,markDef:u,encoding:l,model:s,bandPosition:0}),{offset:k}=KI({channel:b,markDef:u,encoding:l,model:s,bandPosition:0}),E=function(t){let{scaleName:e,fieldDef:n}=t;const r=pR(n,{expr:"datum"}),i=pR(n,{expr:"datum",suffix:"end"});return'abs(scale("'.concat(e,'", ').concat(i,') - scale("').concat(e,'", ').concat(r,"))")}({fieldDef:i,scaleName:d}),F=dj(a,y,p,v,w,_,E),D=dj(b,y,p,v,null!==k&&void 0!==k?k:w,_,E),C=cT(m)?{signal:"(1-".concat(m.signal,")/2")}:uB(m)?(1-m.band)/2:.5,M=VB({fieldDef:i,fieldDef2:o,markDef:u,config:c});if(QS(i.bin)||i.timeUnit){const t=i.timeUnit&&.5!==M;return{[x]:hj({fieldDef:i,scaleName:d,bandPosition:C,offset:D,useRectOffsetField:t}),[A]:hj({fieldDef:i,scaleName:d,bandPosition:cT(C)?{signal:"1-".concat(C.signal)}:1-C,offset:F,useRectOffsetField:t})}}if(KS(i.bin)){const t=bB(i,d,{},{offset:D});if(tR(o))return{[x]:t,[A]:bB(o,d,{},{offset:F})};if(tT(i.bin)&&i.bin.step)return{[x]:t,[A]:{signal:'scale("'.concat(d,'", ').concat(pR(i,{expr:"datum"})," + ").concat(i.bin.step,")"),offset:F}}}return void mN(lN(b))}({fieldDef:l,fieldDef2:f,channel:e,model:t})}function fj(t,e,n,r,i,o,a){if(uB(i)){if(!n)return{mult:i.band,field:{group:t}};{const t=n.get("type");if("band"===t){let t="bandwidth('".concat(e,"')");1!==i.band&&(t="".concat(i.band," * ").concat(t));const n=FT("minBandSize",{type:a},r);return{signal:n?"max(".concat(wT(n),", ").concat(t,")"):t}}1!==i.band&&(mN(function(t){return"Cannot use the relative band size with ".concat(t," scale.")}(t)),i=void 0)}}else{if(cT(i))return i;if(i)return{value:i}}if(n){const t=n.get("range");if(uT(t)&&zt(t.step))return{value:t.step-2}}if(!o){const{bandPaddingInner:e,barBandPaddingInner:n,rectBandPaddingInner:i,tickBandPaddingInner:o}=r.scale,s=FC(e,"tick"===a?o:"bar"===a?n:i);if(cT(s))return{signal:"(1 - (".concat(s.signal,")) * ").concat(t)};if(zt(s))return{signal:"".concat(1-s," * ").concat(t)}}return{value:eP(r.view,t)-2}}function dj(t,e,n,r,i,o,a){if(_M(t))return 0;const s="x"===t||"y2"===t,c=s?-e/2:e/2;if(cT(n)||cT(i)||cT(r)||o){const t=wT(n),e=wT(i),u=wT(r),l=wT(o),f=s?"":"-",d=o?"(".concat(a," < ").concat(l," ? ").concat(f,"0.5 * (").concat(l," - (").concat(a,")) : ").concat(c,")"):c;return{signal:(u?"".concat(u," + "):"")+(t?"(".concat(t," ? -1 : 1) * "):"")+(e?"(".concat(e," + ").concat(d,")"):d)}}return i=i||0,r+(n?-i-c:+i+c)}function hj(t){let{fieldDef:e,scaleName:n,bandPosition:r,offset:i,useRectOffsetField:o}=t;return AB((0,v.A)({scaleName:n,fieldOrDatumDef:e,bandPosition:r,offset:i},o?{startSuffix:sI,endSuffix:cI}:{}))}const pj=new Set(["aria","width","height"]);function mj(t,e){const{fill:n,stroke:r}="include"===e.color?QI(t):{};return(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({},function(t,e){return fT.reduce(((n,r)=>(!pj.has(r)&&PC(t,r)&&"ignore"!==e[r]&&(n[r]=AT(t[r])),n)),{})}(t.markDef,e)),gj("fill",n)),gj("stroke",r)),JI("opacity",t)),JI("fillOpacity",t)),JI("strokeOpacity",t)),JI("strokeWidth",t)),JI("strokeDash",t)),function(t){const{encoding:e,mark:n}=t,r=e.order;return!tB(n)&&cR(r)?HI({model:t,channelDef:r,vgChannel:"zindex",mainRefFn:t=>AT(t.value),invalidValueRef:void 0}):{}}(t)),VI(t)),GI(t,"href")),ZI(t))}function gj(t,e){return e?{[t]:e}:{}}function vj(t){const{config:e,markDef:n}=t,r=new Set;if(t.forEachFieldDef(((i,o)=>{let a;if(!zS(o)||!(a=t.getScaleType(o)))return;const s=$S(i.aggregate),c=mB({scaleChannel:o,markDef:n,config:e,scaleType:a,isCountAggregate:s});if("break-paths-filter-domains"===(l=c)||"break-paths-show-domains"===l){var u;const e=t.vgField(o,{expr:"datum",binSuffix:null!==(u=t.stack)&&void 0!==u&&u.impute?"mid":void 0});e&&r.add(e)}var l})),r.size>0){const t=[...r].map((t=>XN(t,!0))).join(" && ");return{defined:{signal:t}}}}function yj(t,e){if(void 0!==e)return{[t]:AT(e)}}const bj="voronoi",Aj={defined:t=>"point"===t.type&&t.nearest,parse:(t,e)=>{if(e.events)for(const n of e.events)n.markname=t.getName(bj)},marks:(t,e,n)=>{const{x:r,y:i}=e.project.hasChannel,o=t.mark;if(tB(o))return mN('The "nearest" transform is not supported for '.concat(o," marks.")),n;const a={name:t.getName(bj),type:"path",interactive:!0,from:{data:t.getName("marks")},encode:{update:(0,v.A)({fill:{value:"transparent"},strokeWidth:{value:.35},stroke:{value:"transparent"},isVoronoi:{value:!0}},VI(t,{reactiveGeom:!0}))},transform:[{type:"voronoi",x:{expr:r||!i?"datum.datum.x || 0":"0"},y:{expr:i||!r?"datum.datum.y || 0":"0"},size:[t.getSizeSignalRef("width"),t.getSizeSignalRef("height")]}]};let s=0,c=!1;return n.forEach(((e,n)=>{var r;const i=null!==(r=e.name)&&void 0!==r?r:"";i===t.component.mark[0].name?s=n:i.includes(bj)&&(c=!0)})),c||n.splice(s+1,0,a),n}},xj=Aj,_j={defined:t=>"point"===t.type&&"global"===t.resolve&&t.bind&&"scales"!==t.bind&&!jz(t.bind),parse:(t,e,n)=>Wj(e,n),topLevelSignals:(t,e,n)=>{const r=e.name,i=e.project,o=e.bind,a=e.init&&e.init[0],s=xj.defined(e)?"(item().isVoronoi ? datum.datum : datum)":"datum";return i.items.forEach(((t,i)=>{const c=pC("".concat(r,"_").concat(t.field));var u,l;n.filter((t=>t.name===c)).length||n.unshift((0,v.A)((0,v.A)({name:c},a?{init:MI(a[i])}:{value:null}),{},{on:e.events?[{events:e.events,update:"datum && item().mark.marktype !== 'group' ? ".concat(s,"[").concat(Vt(t.field),"] : null")}]:[],bind:null!==(u=null!==(l=o[t.field])&&void 0!==l?l:o[t.channel])&&void 0!==u?u:o}))})),n},signals:(t,e,n)=>{const r=e.name,i=e.project,o=n.find((t=>t.name===r+Pj)),a=r+dI,s=i.items.map((t=>pC("".concat(r,"_").concat(t.field)))),c=s.map((t=>"".concat(t," !== null"))).join(" && ");return s.length&&(o.update="".concat(c," ? {fields: ").concat(a,", values: [").concat(s.join(", "),"]} : null")),delete o.value,delete o.on,n}},wj=_j,kj="_toggle",Ej={defined:t=>"point"===t.type&&!Hj(t)&&!!t.toggle,signals:(t,e,n)=>n.concat({name:e.name+kj,value:!1,on:[{events:e.events,update:e.toggle}]}),modifyExpr:(t,e)=>{const n=e.name+Pj,r=e.name+kj;return"".concat(r," ? null : ").concat(n,", ")+("global"===e.resolve?"".concat(r," ? null : true, "):"".concat(r," ? null : {unit: ").concat(Uj(t),"}, "))+"".concat(r," ? ").concat(n," : null")}},Fj={defined:t=>void 0!==t.clear&&!1!==t.clear&&!Hj(t),parse:(t,e)=>{e.clear&&(e.clear=Lt(e.clear)?cw(e.clear,"view"):e.clear)},topLevelSignals:(t,e,n)=>{if(wj.defined(e))for(const r of e.project.items){const t=n.findIndex((t=>t.name===pC("".concat(e.name,"_").concat(r.field))));-1!==t&&n[t].on.push({events:e.clear,update:"null"})}return n},signals:(t,e,n)=>{function r(t,r){-1!==t&&n[t].on&&n[t].on.push({events:e.clear,update:r})}if("interval"===e.type)for(const i of e.project.items){const t=n.findIndex((t=>t.name===i.signals.visual));if(r(t,"[0, 0]"),-1===t){r(n.findIndex((t=>t.name===i.signals.data)),"null")}}else{let t=n.findIndex((t=>t.name===e.name+Pj));r(t,"null"),Ej.defined(e)&&(t=n.findIndex((t=>t.name===e.name+kj)),r(t,"false"))}return n}},Dj={defined:t=>{const e="global"===t.resolve&&t.bind&&jz(t.bind),n=1===t.project.items.length&&t.project.items[0].field!==Lz;return e&&!n&&mN("Legend bindings are only supported for selections over an individual field or encoding channel."),e&&n},parse:(t,e,n)=>{const r=YD(n);if(r.select=Lt(r.select)?{type:r.select,toggle:e.toggle}:(0,v.A)((0,v.A)({},r.select),{},{toggle:e.toggle}),Wj(e,r),W(n.select)&&(n.select.on||n.select.clear)){const t='event.item && indexof(event.item.mark.role, "legend") < 0';for(const n of e.events){var i;n.filter=ht(null!==(i=n.filter)&&void 0!==i?i:[]),n.filter.includes(t)||n.filter.push(t)}}const o=Uz(e.bind)?e.bind.legend:"click",a=Lt(o)?cw(o,"view"):ht(o);e.bind={legend:{merge:a}}},topLevelSignals:(t,e,n)=>{const r=e.name,i=Uz(e.bind)&&e.bind.legend,o=t=>e=>{const n=YD(e);return n.markname=t,n};for(const a of e.project.items){if(!a.hasLegend)continue;const t="".concat(pC(a.field),"_legend"),s="".concat(r,"_").concat(t);if(0===n.filter((t=>t.name===s)).length){const r=i.merge.map(o("".concat(t,"_symbols"))).concat(i.merge.map(o("".concat(t,"_labels")))).concat(i.merge.map(o("".concat(t,"_entries"))));n.unshift((0,v.A)((0,v.A)({name:s},e.init?{}:{value:null}),{},{on:[{events:r,update:"isDefined(datum.value) ? datum.value : item().items[0].items[0].datum.value",force:!0},{events:i.merge,update:"!event.item || !datum ? null : ".concat(s),force:!0}]}))}}return n},signals:(t,e,n)=>{const r=e.name,i=e.project,o=n.find((t=>t.name===r+Pj)),a=r+dI,s=i.items.filter((t=>t.hasLegend)).map((t=>pC("".concat(r,"_").concat(pC(t.field),"_legend")))),c=s.map((t=>"".concat(t," !== null"))).join(" && "),u="".concat(c," ? {fields: ").concat(a,", values: [").concat(s.join(", "),"]} : null");e.events&&s.length>0?o.on.push({events:s.map((t=>({signal:t}))),update:u}):s.length>0&&(o.update=u,delete o.value,delete o.on);const l=n.find((t=>t.name===r+kj)),f=Uz(e.bind)&&e.bind.legend;return l&&(e.events?l.on.push((0,v.A)((0,v.A)({},l.on[0]),{},{events:f})):l.on[0].events=f),n}};const Cj="_translate_anchor",Mj="_translate_delta",Sj={defined:t=>"interval"===t.type&&t.translate,signals:(t,e,n)=>{const r=e.name,i=BI.defined(e),o=r+Cj,{x:a,y:s}=e.project.hasChannel;let c=cw(e.translate,"scope");return i||(c=c.map((t=>(t.between[0].markname=r+LI,t)))),n.push({name:o,value:{},on:[{events:c.map((t=>t.between[0])),update:"{x: x(unit), y: y(unit)"+(void 0!==a?", extent_x: ".concat(i?RI(t,UC):"slice(".concat(a.signals.visual,")")):"")+(void 0!==s?", extent_y: ".concat(i?RI(t,qC):"slice(".concat(s.signals.visual,")")):"")+"}"}]},{name:r+Mj,value:{},on:[{events:c,update:"{x: ".concat(o,".x - x(unit), y: ").concat(o,".y - y(unit)}")}]}),void 0!==a&&Tj(t,e,a,"width",n),void 0!==s&&Tj(t,e,s,"height",n),n}};function Tj(t,e,n,r,i){var o,a;const s=e.name,c=s+Cj,u=s+Mj,l=n.channel,f=BI.defined(e),d=i.find((t=>t.name===n.signals[f?"data":"visual"])),h=t.getSizeSignalRef(r).signal,p=t.getScaleComponent(l),m=p&&p.get("type"),g=p&&p.get("reverse"),v=f?l===UC?g?"":"-":g?"-":"":"",y="".concat(c,".extent_").concat(l),b="".concat(v).concat(u,".").concat(l," / ").concat(f?"".concat(h):"span(".concat(y,")")),A=f&&p?"log"===m?"panLog":"symlog"===m?"panSymlog":"pow"===m?"panPow":"panLinear":"panLinear",x=f?"pow"===m?", ".concat(null!==(o=p.get("exponent"))&&void 0!==o?o:1):"symlog"===m?", ".concat(null!==(a=p.get("constant"))&&void 0!==a?a:1):"":"",_="".concat(A,"(").concat(y,", ").concat(b).concat(x,")");d.on.push({events:{signal:u},update:f?_:"clampRange(".concat(_,", 0, ").concat(h,")")})}const Nj="_zoom_anchor",Oj="_zoom_delta",Bj={defined:t=>"interval"===t.type&&t.zoom,signals:(t,e,n)=>{const r=e.name,i=BI.defined(e),o=r+Oj,{x:a,y:s}=e.project.hasChannel,c=Vt(t.scaleName(UC)),u=Vt(t.scaleName(qC));let l=cw(e.zoom,"scope");return i||(l=l.map((t=>(t.markname=r+LI,t)))),n.push({name:r+Nj,on:[{events:l,update:i?"{"+[c?"x: invert(".concat(c,", x(unit))"):"",u?"y: invert(".concat(u,", y(unit))"):""].filter((t=>t)).join(", ")+"}":"{x: x(unit), y: y(unit)}"}]},{name:o,on:[{events:l,force:!0,update:"pow(1.001, event.deltaY * pow(16, event.deltaMode))"}]}),void 0!==a&&Rj(t,e,a,"width",n),void 0!==s&&Rj(t,e,s,"height",n),n}};function Rj(t,e,n,r,i){var o,a;const s=e.name,c=n.channel,u=BI.defined(e),l=i.find((t=>t.name===n.signals[u?"data":"visual"])),f=t.getSizeSignalRef(r).signal,d=t.getScaleComponent(c),h=d&&d.get("type"),p=u?RI(t,c):l.name,m=s+Oj,g="".concat(s).concat(Nj,".").concat(c),v=u&&d?"log"===h?"zoomLog":"symlog"===h?"zoomSymlog":"pow"===h?"zoomPow":"zoomLinear":"zoomLinear",y=u?"pow"===h?", ".concat(null!==(o=d.get("exponent"))&&void 0!==o?o:1):"symlog"===h?", ".concat(null!==(a=d.get("constant"))&&void 0!==a?a:1):"":"",b="".concat(v,"(").concat(p,", ").concat(g,", ").concat(m).concat(y,")");l.on.push({events:{signal:m},update:u?b:"clampRange(".concat(b,", 0, ").concat(f,")")})}const zj="_store",Pj="_tuple",Lj="_modify",Ij="vlSelectionResolve",jj=[FI,WI,mI,Ej,wj,BI,Dj,Fj,Sj,Bj,xj];function Uj(t){let{escape:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{escape:!0},n=e?Vt(t.name):t.name;const r=function(t){let e=t.parent;for(;e&&!tG(e);)e=e.parent;return e}(t);if(r){const{facet:t}=r;for(const e of SM)t[e]&&(n+=" + '__facet_".concat(e,"_' + (facet[").concat(Vt(r.vgField(e)),"])"))}return n}function qj(t){var e;return fC(null!==(e=t.component.selection)&&void 0!==e?e:{}).reduce(((t,e)=>t||e.project.hasSelectionId),!1)}function Wj(t,e){!Lt(e.select)&&e.select.on||delete t.events,!Lt(e.select)&&e.select.clear||delete t.clear,!Lt(e.select)&&e.select.toggle||delete t.toggle}function Hj(t){var e;return null===(e=t.events)||void 0===e?void 0:e.find((t=>"type"in t&&"timer"===t.type))}const Gj="Property",Yj="ArrayExpression",Vj="BinaryExpression",$j="CallExpression",Xj="ConditionalExpression",Zj="LogicalExpression",Jj="MemberExpression",Qj="ObjectExpression",Kj="UnaryExpression";function tU(t){this.type=t}var eU,nU,rU,iU,oU;tU.prototype.visit=function(t){let e,n,r;if(t(this))return 1;for(e=function(t){switch(t.type){case Yj:return t.elements;case Vj:case Zj:return[t.left,t.right];case $j:return[t.callee].concat(t.arguments);case Xj:return[t.test,t.consequent,t.alternate];case Jj:return[t.object,t.property];case Qj:return t.properties;case Gj:return[t.key,t.value];case Kj:return[t.argument];default:return[]}}(this),n=0,r=e.length;n<r;++n)if(e[n].visit(t))return 1};(eU={})[1]="Boolean",eU[2]="<end>",eU[3]="Identifier",eU[4]="Keyword",eU[5]="Null",eU[6]="Numeric",eU[7]="Punctuator",eU[8]="String",eU[9]="RegularExpression";var aU="Identifier",sU="Unexpected token %0",cU="Invalid regular expression",uU="Invalid regular expression: missing /",lU="Octal literals are not allowed in strict mode.",fU="ILLEGAL",dU="Disabled.",hU=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),pU=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function mU(t,e){if(!t)throw new Error("ASSERT: "+e)}function gU(t){return t>=48&&t<=57}function vU(t){return"0123456789abcdefABCDEF".includes(t)}function yU(t){return"01234567".includes(t)}function bU(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t)}function AU(t){return 10===t||13===t||8232===t||8233===t}function xU(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||92===t||t>=128&&hU.test(String.fromCharCode(t))}function _U(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||92===t||t>=128&&pU.test(String.fromCharCode(t))}const wU={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function kU(){for(;rU<iU;){const t=nU.charCodeAt(rU);if(!bU(t)&&!AU(t))break;++rU}}function EU(t){var e,n,r,i=0;for(n="u"===t?4:2,e=0;e<n;++e)rU<iU&&vU(nU[rU])?(r=nU[rU++],i=16*i+"0123456789abcdef".indexOf(r.toLowerCase())):UU({},sU,fU);return String.fromCharCode(i)}function FU(){var t,e,n,r;for(e=0,"}"===(t=nU[rU])&&UU({},sU,fU);rU<iU&&vU(t=nU[rU++]);)e=16*e+"0123456789abcdef".indexOf(t.toLowerCase());return(e>1114111||"}"!==t)&&UU({},sU,fU),e<=65535?String.fromCharCode(e):(n=55296+(e-65536>>10),r=56320+(e-65536&1023),String.fromCharCode(n,r))}function DU(){var t,e;for(t=nU.charCodeAt(rU++),e=String.fromCharCode(t),92===t&&(117!==nU.charCodeAt(rU)&&UU({},sU,fU),++rU,(t=EU("u"))&&"\\"!==t&&xU(t.charCodeAt(0))||UU({},sU,fU),e=t);rU<iU&&_U(t=nU.charCodeAt(rU));)++rU,e+=String.fromCharCode(t),92===t&&(e=e.substr(0,e.length-1),117!==nU.charCodeAt(rU)&&UU({},sU,fU),++rU,(t=EU("u"))&&"\\"!==t&&_U(t.charCodeAt(0))||UU({},sU,fU),e+=t);return e}function CU(){var t,e;return t=rU,e=92===nU.charCodeAt(rU)?DU():function(){var t,e;for(t=rU++;rU<iU;){if(92===(e=nU.charCodeAt(rU)))return rU=t,DU();if(!_U(e))break;++rU}return nU.slice(t,rU)}(),{type:1===e.length?3:wU.hasOwnProperty(e)?4:"null"===e?5:"true"===e||"false"===e?1:3,value:e,start:t,end:rU}}function MU(){var t,e,n,r,i=rU,o=nU.charCodeAt(rU),a=nU[rU];switch(o){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++rU,{type:7,value:String.fromCharCode(o),start:i,end:rU};default:if(61===(t=nU.charCodeAt(rU+1)))switch(o){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return rU+=2,{type:7,value:String.fromCharCode(o)+String.fromCharCode(t),start:i,end:rU};case 33:case 61:return rU+=2,61===nU.charCodeAt(rU)&&++rU,{type:7,value:nU.slice(i,rU),start:i,end:rU}}}return">>>="===(r=nU.substr(rU,4))?{type:7,value:r,start:i,end:rU+=4}:">>>"===(n=r.substr(0,3))||"<<="===n||">>="===n?{type:7,value:n,start:i,end:rU+=3}:a===(e=n.substr(0,2))[1]&&"+-<>&|".includes(a)||"=>"===e?{type:7,value:e,start:i,end:rU+=2}:("//"===e&&UU({},sU,fU),"<>=!+-*%&|^/".includes(a)?{type:7,value:a,start:i,end:++rU}:void UU({},sU,fU))}function SU(){var t,e,n;if(mU(gU((n=nU[rU]).charCodeAt(0))||"."===n,"Numeric literal must start with a decimal digit or a decimal point"),e=rU,t="","."!==n){if(t=nU[rU++],n=nU[rU],"0"===t){if("x"===n||"X"===n)return++rU,function(t){let e="";for(;rU<iU&&vU(nU[rU]);)e+=nU[rU++];return 0===e.length&&UU({},sU,fU),xU(nU.charCodeAt(rU))&&UU({},sU,fU),{type:6,value:parseInt("0x"+e,16),start:t,end:rU}}(e);if(yU(n))return function(t){let e="0"+nU[rU++];for(;rU<iU&&yU(nU[rU]);)e+=nU[rU++];return(xU(nU.charCodeAt(rU))||gU(nU.charCodeAt(rU)))&&UU({},sU,fU),{type:6,value:parseInt(e,8),octal:!0,start:t,end:rU}}(e);n&&gU(n.charCodeAt(0))&&UU({},sU,fU)}for(;gU(nU.charCodeAt(rU));)t+=nU[rU++];n=nU[rU]}if("."===n){for(t+=nU[rU++];gU(nU.charCodeAt(rU));)t+=nU[rU++];n=nU[rU]}if("e"===n||"E"===n)if(t+=nU[rU++],"+"!==(n=nU[rU])&&"-"!==n||(t+=nU[rU++]),gU(nU.charCodeAt(rU)))for(;gU(nU.charCodeAt(rU));)t+=nU[rU++];else UU({},sU,fU);return xU(nU.charCodeAt(rU))&&UU({},sU,fU),{type:6,value:parseFloat(t),start:e,end:rU}}function TU(){var t,e,n,r;return oU=null,kU(),t=rU,e=function(){var t,e,n,r;for(mU("/"===(t=nU[rU]),"Regular expression literal must start with a slash"),e=nU[rU++],n=!1,r=!1;rU<iU;)if(e+=t=nU[rU++],"\\"===t)AU((t=nU[rU++]).charCodeAt(0))&&UU({},uU),e+=t;else if(AU(t.charCodeAt(0)))UU({},uU);else if(n)"]"===t&&(n=!1);else{if("/"===t){r=!0;break}"["===t&&(n=!0)}return r||UU({},uU),{value:e.substr(1,e.length-2),literal:e}}(),n=function(){var t,e,n;for(e="",n="";rU<iU&&_U((t=nU[rU]).charCodeAt(0));)++rU,"\\"===t&&rU<iU?UU({},sU,fU):(n+=t,e+=t);return n.search(/[^gimuy]/g)>=0&&UU({},cU,n),{value:n,literal:e}}(),r=function(t,e){let n=t;e.includes("u")&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}/g,((t,e)=>{if(parseInt(e,16)<=1114111)return"x";UU({},cU)})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(n)}catch(r){UU({},cU)}try{return new RegExp(t,e)}catch(i){return null}}(e.value,n.value),{literal:e.literal+n.literal,value:r,regex:{pattern:e.value,flags:n.value},start:t,end:rU}}function NU(){if(kU(),rU>=iU)return{type:2,start:rU,end:rU};const t=nU.charCodeAt(rU);return xU(t)?CU():40===t||41===t||59===t?MU():39===t||34===t?function(){var t,e,n,r,i="",o=!1;for(mU("'"===(t=nU[rU])||'"'===t,"String literal must starts with a quote"),e=rU,++rU;rU<iU;){if((n=nU[rU++])===t){t="";break}if("\\"===n)if((n=nU[rU++])&&AU(n.charCodeAt(0)))"\r"===n&&"\n"===nU[rU]&&++rU;else switch(n){case"u":case"x":"{"===nU[rU]?(++rU,i+=FU()):i+=EU(n);break;case"n":i+="\n";break;case"r":i+="\r";break;case"t":i+="\t";break;case"b":i+="\b";break;case"f":i+="\f";break;case"v":i+="\v";break;default:yU(n)?(0!==(r="01234567".indexOf(n))&&(o=!0),rU<iU&&yU(nU[rU])&&(o=!0,r=8*r+"01234567".indexOf(nU[rU++]),"0123".includes(n)&&rU<iU&&yU(nU[rU])&&(r=8*r+"01234567".indexOf(nU[rU++]))),i+=String.fromCharCode(r)):i+=n}else{if(AU(n.charCodeAt(0)))break;i+=n}}return""!==t&&UU({},sU,fU),{type:8,value:i,octal:o,start:e,end:rU}}():46===t?gU(nU.charCodeAt(rU+1))?SU():MU():gU(t)?SU():MU()}function OU(){const t=oU;return rU=t.end,oU=NU(),rU=t.end,t}function BU(){const t=rU;oU=NU(),rU=t}function RU(t,e,n){const r=new tU("||"===t||"&&"===t?"LogicalExpression":"BinaryExpression");return r.operator=t,r.left=e,r.right=n,r}function zU(t,e){const n=new tU("CallExpression");return n.callee=t,n.arguments=e,n}function PU(t){const e=new tU(aU);return e.name=t,e}function LU(t){const e=new tU("Literal");return e.value=t.value,e.raw=nU.slice(t.start,t.end),t.regex&&("//"===e.raw&&(e.raw="/(?:)/"),e.regex=t.regex),e}function IU(t,e,n){const r=new tU("MemberExpression");return r.computed="["===t,r.object=e,r.property=n,r.computed||(n.member=!0),r}function jU(t,e,n){const r=new tU("Property");return r.key=e,r.value=n,r.kind=t,r}function UU(t,e){var n,r=Array.prototype.slice.call(arguments,2),i=e.replace(/%(\d)/g,((t,e)=>(mU(e<r.length,"Message reference must be in range"),r[e])));throw(n=new Error(i)).index=rU,n.description=i,n}function qU(t){2===t.type&&UU(t,"Unexpected end of input"),6===t.type&&UU(t,"Unexpected number"),8===t.type&&UU(t,"Unexpected string"),3===t.type&&UU(t,"Unexpected identifier"),4===t.type&&UU(t,"Unexpected reserved word"),UU(t,sU,t.value)}function WU(t){const e=OU();7===e.type&&e.value===t||qU(e)}function HU(t){return 7===oU.type&&oU.value===t}function GU(t){return 4===oU.type&&oU.value===t}function YU(){const t=[];for(rU=oU.start,WU("[");!HU("]");)HU(",")?(OU(),t.push(null)):(t.push(iq()),HU("]")||WU(","));return OU(),function(t){const e=new tU("ArrayExpression");return e.elements=t,e}(t)}function VU(){rU=oU.start;const t=OU();return 8===t.type||6===t.type?(t.octal&&UU(t,lU),LU(t)):PU(t.value)}function $U(){var t,e,n;return rU=oU.start,3===(t=oU).type?(n=VU(),WU(":"),jU("init",n,iq())):2!==t.type&&7!==t.type?(e=VU(),WU(":"),jU("init",e,iq())):void qU(t)}function XU(){var t,e,n=[],r={},i=String;for(rU=oU.start,WU("{");!HU("}");)e="$"+((t=$U()).key.type===aU?t.key.name:i(t.key.value)),Object.prototype.hasOwnProperty.call(r,e)?UU({},"Duplicate data property in object literal not allowed in strict mode"):r[e]=!0,n.push(t),HU("}")||WU(",");return WU("}"),function(t){const e=new tU("ObjectExpression");return e.properties=t,e}(n)}const ZU={if:1};function JU(){var t,e,n;if(HU("("))return function(){WU("(");const t=oq();return WU(")"),t}();if(HU("["))return YU();if(HU("{"))return XU();if(t=oU.type,rU=oU.start,3===t||ZU[oU.value])n=PU(OU().value);else if(8===t||6===t)oU.octal&&UU(oU,lU),n=LU(OU());else{if(4===t)throw new Error(dU);1===t?((e=OU()).value="true"===e.value,n=LU(e)):5===t?((e=OU()).value=null,n=LU(e)):HU("/")||HU("/=")?(n=LU(TU()),BU()):qU(OU())}return n}function QU(){const t=[];if(WU("("),!HU(")"))for(;rU<iU&&(t.push(iq()),!HU(")"));)WU(",");return WU(")"),t}function KU(){return WU("."),function(){rU=oU.start;const t=OU();return function(t){return 3===t.type||4===t.type||1===t.type||5===t.type}(t)||qU(t),PU(t.value)}()}function tq(){WU("[");const t=oq();return WU("]"),t}function eq(){const t=function(){var t;for(t=JU();;)if(HU("."))t=IU(".",t,KU());else if(HU("("))t=zU(t,QU());else{if(!HU("["))break;t=IU("[",t,tq())}return t}();if(7===oU.type&&(HU("++")||HU("--")))throw new Error(dU);return t}function nq(){var t,e;if(7!==oU.type&&4!==oU.type)e=eq();else{if(HU("++")||HU("--"))throw new Error(dU);if(HU("+")||HU("-")||HU("~")||HU("!"))t=OU(),e=nq(),e=function(t,e){const n=new tU("UnaryExpression");return n.operator=t,n.argument=e,n.prefix=!0,n}(t.value,e);else{if(GU("delete")||GU("void")||GU("typeof"))throw new Error(dU);e=eq()}}return e}function rq(t){let e=0;if(7!==t.type&&4!==t.type)return 0;switch(t.value){case"||":e=1;break;case"&&":e=2;break;case"|":e=3;break;case"^":e=4;break;case"&":e=5;break;case"==":case"!=":case"===":case"!==":e=6;break;case"<":case">":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11}return e}function iq(){var t,e;return t=function(){var t,e,n,r,i,o,a,s,c,u;if(t=oU,c=nq(),0===(i=rq(r=oU)))return c;for(r.prec=i,OU(),e=[t,oU],o=[c,r,a=nq()];(i=rq(oU))>0;){for(;o.length>2&&i<=o[o.length-2].prec;)a=o.pop(),s=o.pop().value,c=o.pop(),e.pop(),n=RU(s,c,a),o.push(n);(r=OU()).prec=i,o.push(r),e.push(oU),n=nq(),o.push(n)}for(n=o[u=o.length-1],e.pop();u>1;)e.pop(),n=RU(o[u-1].value,o[u-2],n),u-=2;return n}(),HU("?")&&(OU(),e=iq(),WU(":"),t=function(t,e,n){const r=new tU("ConditionalExpression");return r.test=t,r.consequent=e,r.alternate=n,r}(t,e,iq())),t}function oq(){const t=iq();if(HU(","))throw new Error(dU);return t}function aq(t){const e=[];return"Identifier"===t.type?[t.name]:"Literal"===t.type?[t.value]:("MemberExpression"===t.type&&(e.push(...aq(t.object)),e.push(...aq(t.property))),e)}function sq(t){return"MemberExpression"===t.object.type?sq(t.object):"datum"===t.object.name}function cq(t){const e=function(t){rU=0,iU=(nU=t).length,oU=null,BU();const e=oq();if(2!==oU.type)throw new Error("Unexpect token after expression.");return e}(t),n=new Set;return e.visit((t=>{"MemberExpression"===t.type&&sq(t)&&n.add(aq(t).slice(1).join("."))})),n}class uq extends tI{clone(){return new uq(null,this.model,YD(this.filter))}constructor(t,e,n){super(t),this.model=e,this.filter=n,this.expr=dq(this.model,this.filter,this),this._dependentFields=cq(this.expr)}dependentFields(){return this._dependentFields}producedFields(){return new Set}assemble(){return{type:"filter",expr:this.expr}}hash(){return"Filter ".concat(this.expr)}}function lq(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"datum";const i=Lt(e)?e:e.param,o=pC(i),a=Vt(o+zj);let s;try{s=t.getSelectionComponent(o,i)}catch(d){return"!!".concat(o)}if(s.project.timeUnit){const e=null!==n&&void 0!==n?n:t.component.data.raw,r=s.project.timeUnit.clone();e.parent?r.insertAsParentOf(e):e.parent=r}const c=s.project.hasSelectionId?"vlSelectionIdTest(":"vlSelectionTest(",u="global"===s.resolve?")":", ".concat(Vt(s.resolve),")"),l="".concat(c).concat(a,", ").concat(r).concat(u),f="length(data(".concat(a,"))");return!1===e.empty?"".concat(f," && ").concat(l):"!".concat(f," || ").concat(l)}function fq(t,e,n){const r=pC(e),i=n.encoding;let o,a=n.field;try{o=t.getSelectionComponent(r,e)}catch(s){return r}if(i||a){if(i&&!a){const t=o.project.items.filter((t=>t.channel===i));!t.length||t.length>1?(a=o.project.items[0].field,mN(function(t,e,n,r){return(t.length?"Multiple ":"No ")+"matching ".concat(Vt(e)," encoding found for selection ").concat(Vt(n.param),". ")+'Using "field": '.concat(Vt(r),".")}(t,i,n,a))):a=t[0].field}}else a=o.project.items[0].field,o.project.items.length>1&&mN(function(t){return'A "field" or "encoding" must be specified when using a selection as a scale domain. '+'Using "field": '.concat(Vt(t),".")}(a));return"".concat(o.name,"[").concat(Vt(_C(a)),"]")}function dq(t,e,n){return mC(e,(e=>Lt(e)?e:function(t){return PC(t,"param")}(e)?lq(t,e,n):$N(e)))}const hq=["disable","orient","scale","labelExpr","title","zindex"],pq=["condition"],mq=["test"],gq=["test"];function vq(t,e,n,r){var i,o,a,s,c;null!==(i=t.encode)&&void 0!==i||(t.encode={}),null!==(o=(s=t.encode)[e])&&void 0!==o||(s[e]={}),null!==(a=(c=t.encode[e]).update)&&void 0!==a||(c.update={}),t.encode[e].update[n]=r}function yq(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{header:!1};const i=t.combine(),{disable:o,orient:a,scale:s,labelExpr:c,title:u,zindex:l}=i,f=(0,jD.A)(i,hq);if(!o){for(const t in f){const n=t,r=PR[n],i=f[n];if(r&&r!==e&&"both"!==r)delete f[n];else if(RR(i)){const{condition:t}=i,e=(0,jD.A)(i,pq),r=ht(t),o=BR[n];if(o){const{vgProp:t,part:i}=o,a=[...r.map((t=>{const{test:e}=t,n=(0,jD.A)(t,mq);return(0,v.A)({test:dq(null,e)},n)})),e];vq(f,i,t,a),delete f[n]}else if(null===o){const t={signal:r.map((t=>{const{test:e}=t,n=(0,jD.A)(t,gq);return"".concat(dq(null,e)," ? ").concat(_T(n)," : ")})).join("")+_T(e)};f[n]=t}}else if(cT(i)){const t=BR[n];if(t){const{vgProp:e,part:r}=t;vq(f,r,e,i),delete f[n]}}QD(["labelAlign","labelBaseline"],n)&&null===f[n]&&delete f[n]}if("grid"===e){if(!f.grid)return;if(f.encode){const{grid:t}=f.encode;f.encode=(0,v.A)({},t?{grid:t}:{}),uC(f.encode)&&delete f.encode}return(0,v.A)((0,v.A)({scale:s,orient:a},f),{},{domain:!1,labels:!1,aria:!1,maxExtent:0,minExtent:0,ticks:!1,zindex:FC(l,0)})}{if(!r.header&&t.mainExtracted)return;if(void 0!==c){var d;let t=c;null!==(d=f.encode)&&void 0!==d&&null!==(d=d.labels)&&void 0!==d&&d.update&&cT(f.encode.labels.update.text)&&(t=wC(c,"datum.label",f.encode.labels.update.text.signal)),vq(f,"labels","text",{signal:t})}if(null===f.labelAlign&&delete f.labelAlign,f.encode){for(const e of zR)t.hasAxisPart(e)||delete f.encode[e];uC(f.encode)&&delete f.encode}const e=function(t,e){if(t)return q(t)&&!sT(t)?t.map((t=>xR(t,e))).join(", "):t}(u,n);return(0,v.A)((0,v.A)((0,v.A)((0,v.A)({scale:s,orient:a,grid:!1},e?{title:e}:{}),f),!1===n.aria?{aria:!1}:{}),{},{zindex:FC(l,0)})}}}function bq(t){const{axes:e}=t.component,n=[];for(const r of mS)if(e[r])for(const i of e[r])if(!i.get("disable")&&!i.get("gridScale")){const e="x"===r?"height":"width",i=t.getSizeSignalRef(e).signal;e!==i&&n.push({name:e,update:i})}return n}function Aq(t,e,n,r){return Object.assign.apply(null,[{},...t.map((t=>{if("axisOrient"===t){const t="x"===n?"bottom":"left",i=e["x"===n?"axisBottom":"axisLeft"]||{},o=e["x"===n?"axisTop":"axisRight"]||{},a=new Set([...lC(i),...lC(o)]),s={};for(const e of a.values())s[e]={signal:"".concat(r.signal,' === "').concat(t,'" ? ').concat(wT(i[e])," : ").concat(wT(o[e]))};return s}return e[t]}))])}function xq(t,e){const n=[{}];for(const i of t){var r;let t=null===(r=e[i])||void 0===r?void 0:r.style;if(t){t=ht(t);for(const r of t)n.push(e.style[r])}}return Object.assign.apply(null,n)}function _q(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=CT(t,n,e);if(void 0!==i)return{configFrom:"style",configValue:i};for(const a of["vlOnlyAxisConfig","vgAxisConfig","axisConfigStyle"]){var o;if(void 0!==(null===(o=r[a])||void 0===o?void 0:o[t]))return{configFrom:a,configValue:r[a][t]}}return{}}const wq={scale:t=>{let{model:e,channel:n}=t;return e.scaleName(n)},format:t=>{let{format:e}=t;return e},formatType:t=>{let{formatType:e}=t;return e},grid:t=>{var e;let{fieldOrDatumDef:n,axis:r,scaleType:i}=t;return null!==(e=r.grid)&&void 0!==e?e:function(t,e){return!wO(t)&&tR(e)&&!QS(null===e||void 0===e?void 0:e.bin)&&!KS(null===e||void 0===e?void 0:e.bin)}(i,n)},gridScale:t=>{let{model:e,channel:n}=t;return function(t,e){const n="x"===e?"y":"x";if(t.getScaleComponent(n))return t.scaleName(n);return}(e,n)},labelAlign:t=>{let{axis:e,labelAngle:n,orient:r,channel:i}=t;return e.labelAlign||Fq(n,r,i)},labelAngle:t=>{let{labelAngle:e}=t;return e},labelBaseline:t=>{let{axis:e,labelAngle:n,orient:r,channel:i}=t;return e.labelBaseline||Eq(n,r,i)},labelFlush:t=>{var e;let{axis:n,fieldOrDatumDef:r,channel:i}=t;return null!==(e=n.labelFlush)&&void 0!==e?e:function(t,e){if("x"===e&&QD(["quantitative","temporal"],t))return!0;return}(r.type,i)},labelOverlap:t=>{var e;let{axis:n,fieldOrDatumDef:r,scaleType:i}=t;return null!==(e=n.labelOverlap)&&void 0!==e?e:function(t,e,n,r){if(n&&!W(r)||"nominal"!==t&&"ordinal"!==t)return"log"!==e&&"symlog"!==e||"greedy";return}(r.type,i,tR(r)&&!!r.timeUnit,tR(r)?r.sort:void 0)},orient:t=>{let{orient:e}=t;return e},tickCount:t=>{var e;let{channel:n,model:r,axis:i,fieldOrDatumDef:o,scaleType:a}=t;const s="x"===n?"width":"y"===n?"height":void 0,c=s?r.getSizeSignalRef(s):void 0;return null!==(e=i.tickCount)&&void 0!==e?e:function(t){let{fieldOrDatumDef:e,scaleType:n,size:r,values:i}=t;if(!i&&!wO(n)&&"log"!==n){if(tR(e)){var o;if(QS(e.bin))return{signal:"ceil(".concat(r.signal,"/10)")};if(e.timeUnit&&QD(["month","hours","day","quarter"],null===(o=RN(e.timeUnit))||void 0===o?void 0:o.unit))return}return{signal:"ceil(".concat(r.signal,"/40)")}}return}({fieldOrDatumDef:o,scaleType:a,size:c,values:i.values})},tickMinStep:function(t){let{format:e,fieldOrDatumDef:n}=t;if("d"===e)return 1;if(tR(n)){const{timeUnit:t}=n;if(t){const e=zN(t);if(e)return{signal:e}}}return},title:t=>{let{axis:e,model:n,channel:r}=t;if(void 0!==e.title)return e.title;const i=Dq(n,r);if(void 0!==i)return i;const o=n.typedFieldDef(r),a="x"===r?"x2":"y2",s=n.fieldDef(a);return ST(o?[GB(o)]:[],tR(s)?[GB(s)]:[])},values:t=>{let{axis:e,fieldOrDatumDef:n}=t;return function(t,e){const n=t.values;if(q(n))return NR(e,n);if(cT(n))return n;return}(e,n)},zindex:t=>{var e;let{axis:n,fieldOrDatumDef:r,mark:i}=t;return null!==(e=n.zindex)&&void 0!==e?e:function(t,e){if("rect"===t&&mR(e))return 1;return 0}(i,r)}};function kq(t){return"(((".concat(t.signal," % 360) + 360) % 360)")}function Eq(t,e,n,r){if(void 0!==t){if("x"===n){if(cT(t)){const n=kq(t),r=cT(e)?"(".concat(e.signal,' === "top")'):"top"===e;return{signal:"(45 < ".concat(n," && ").concat(n," < 135) || (225 < ").concat(n," && ").concat(n,' < 315) ? "middle" :')+"(".concat(n," <= 45 || 315 <= ").concat(n,") === ").concat(r,' ? "bottom" : "top"')}}if(45<t&&t<135||225<t&&t<315)return"middle";if(cT(e)){const n=t<=45||315<=t?"===":"!==";return{signal:"".concat(e.signal," ").concat(n,' "top" ? "bottom" : "top"')}}return(t<=45||315<=t)===("top"===e)?"bottom":"top"}if(cT(t)){const n=kq(t),i=cT(e)?"(".concat(e.signal,' === "left")'):"left"===e,o=r?'"middle"':"null";return{signal:"".concat(n," <= 45 || 315 <= ").concat(n," || (135 <= ").concat(n," && ").concat(n," <= 225) ? ").concat(o," : (45 <= ").concat(n," && ").concat(n," <= 135) === ").concat(i,' ? "top" : "bottom"')}}if(t<=45||315<=t||135<=t&&t<=225)return r?"middle":null;if(cT(e)){const n=45<=t&&t<=135?"===":"!==";return{signal:"".concat(e.signal," ").concat(n,' "left" ? "top" : "bottom"')}}return(45<=t&&t<=135)===("left"===e)?"top":"bottom"}}function Fq(t,e,n){if(void 0===t)return;const r="x"===n,i=r?0:90,o=r?"bottom":"left";if(cT(t)){const n=kq(t),a=cT(e)?"(".concat(e.signal,' === "').concat(o,'")'):e===o;return{signal:"(".concat(i?"(".concat(n," + 90)"):n," % 180 === 0) ? ").concat(r?null:'"center"'," :")+"(".concat(i," < ").concat(n," && ").concat(n," < ").concat(180+i,") === ").concat(a,' ? "left" : "right"')}}if((t+i)%180===0)return r?null:"center";if(cT(e)){const n=i<t&&t<180+i?"===":"!==",r="".concat(e.signal," ").concat(n,' "').concat(o,'"');return{signal:"".concat(r,' ? "left" : "right"')}}return(i<t&&t<180+i)===(e===o)?"left":"right"}function Dq(t,e){const n="x"===e?"x2":"y2",r=t.fieldDef(e),i=t.fieldDef(n),o=r?r.title:void 0,a=i?i.title:void 0;return o&&a?TT(o,a):o||(a||(void 0!==o?o:void 0!==a?a:void 0))}class Cq extends tI{clone(){return new Cq(null,YD(this.transform))}constructor(t,e){super(t),this.transform=e,this._dependentFields=cq(this.transform.calculate)}static parseAllForSortIndex(t,e){return e.forEachFieldDef(((e,n)=>{if(uR(e)&&LB(e.sort)){const{field:r,timeUnit:i}=e,o=e.sort,a=o.map(((t,e)=>"".concat($N({field:r,timeUnit:i,equal:t})," ? ").concat(e," : "))).join("")+o.length;t=new Cq(t,{calculate:a,as:Mq(e,n,{forAs:!0})})}})),t}producedFields(){return new Set([this.transform.as])}dependentFields(){return this._dependentFields}assemble(){return{type:"formula",expr:this.transform.calculate,as:this.transform.as}}hash(){return"Calculate ".concat(ZD(this.transform))}}function Mq(t,e,n){return pR(t,(0,v.A)({prefix:e,suffix:"sort_index"},n))}function Sq(t,e){return QD(["top","bottom"],e)?"column":QD(["left","right"],e)||"row"===t?"row":"column"}function Tq(t,e,n,r){const i="row"===r?n.headerRow:"column"===r?n.headerColumn:n.headerFacet;return FC((e||{})[t],i[t],n.header[t])}function Nq(t,e,n,r){const i={};for(const o of t){const t=Tq(o,e||{},n,r);void 0!==t&&(i[o]=t)}return i}const Oq=["row","column"],Bq=["header","footer"];function Rq(t,e){const n=t.component.layoutHeaders[e].title,r=t.config?t.config:void 0,i=t.component.layoutHeaders[e].facetFieldDef?t.component.layoutHeaders[e].facetFieldDef:void 0,{titleAnchor:o,titleAngle:a,titleOrient:s}=Nq(["titleAnchor","titleAngle","titleOrient"],i.header,r,e),c=Sq(e,s),u=NC(a);return{name:"".concat(e,"-title"),type:"group",role:"".concat(c,"-title"),title:(0,v.A)((0,v.A)((0,v.A)((0,v.A)({text:n},"row"===e?{orient:"left"}:{}),{},{style:"guide-title"},Pq(u,c)),zq(c,u,o)),Hq(r,i,e,Oz,Tz))}}function zq(t,e){switch(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"middle"){case"start":return{align:"left"};case"end":return{align:"right"}}const n=Fq(e,"row"===t?"left":"top","row"===t?"y":"x");return n?{align:n}:{}}function Pq(t,e){const n=Eq(t,"row"===e?"left":"top","row"===e?"y":"x",!0);return n?{baseline:n}:{}}function Lq(t,e){const n=t.component.layoutHeaders[e],r=[];for(const i of Bq)if(n[i])for(const o of n[i]){const a=Uq(t,e,i,n,o);null!=a&&r.push(a)}return r}function Iq(t,e){const{sort:n}=t;var r;return PB(n)?{field:pR(n,{expr:"datum"}),order:null!==(r=n.order)&&void 0!==r?r:"ascending"}:q(n)?{field:Mq(t,e,{expr:"datum"}),order:"ascending"}:{field:pR(t,{expr:"datum"}),order:null!==n&&void 0!==n?n:"ascending"}}function jq(t,e,n){const{format:r,formatType:i,labelAngle:o,labelAnchor:a,labelOrient:s,labelExpr:c}=Nq(["format","formatType","labelAngle","labelAnchor","labelOrient","labelExpr"],t.header,n,e),u=EB({fieldOrDatumDef:t,format:r,formatType:i,expr:"parent",config:n}).signal,l=Sq(e,s);return(0,v.A)((0,v.A)((0,v.A)((0,v.A)({text:{signal:c?wC(wC(c,"datum.label",u),"datum.value",pR(t,{expr:"parent"})):u}},"row"===e?{orient:"left"}:{}),{},{style:"guide-label",frame:"group"},Pq(o,l)),zq(l,o,a)),Hq(n,t,e,Bz,Nz))}function Uq(t,e,n,r,i){if(i){let o=null;const{facetFieldDef:a}=r,s=t.config?t.config:void 0;if(a&&i.labels){const{labelOrient:t}=Nq(["labelOrient"],a.header,s,e);("row"===e&&!QD(["top","bottom"],t)||"column"===e&&!QD(["left","right"],t))&&(o=jq(a,e,s))}const c=tG(t)&&!IB(t.facet),u=i.axes,l=(null===u||void 0===u?void 0:u.length)>0;if(o||l){const s="row"===e?"height":"width";return(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({name:t.getName("".concat(e,"_").concat(n)),type:"group",role:"".concat(e,"-").concat(n)},r.facetFieldDef?{from:{data:t.getName("".concat(e,"_domain"))},sort:Iq(a,e)}:{}),l&&c?{from:{data:t.getName("facet_domain_".concat(e))}}:{}),o?{title:o}:{}),i.sizeSignal?{encode:{update:{[s]:i.sizeSignal}}}:{}),l?{axes:u}:{})}}return null}const qq={column:{start:0,end:1},row:{start:1,end:0}};function Wq(t,e){return qq[e][t]}function Hq(t,e,n,r,i){const o={};for(const a of r){if(!i[a])continue;const r=Tq(a,null===e||void 0===e?void 0:e.header,t,n);void 0!==r&&(o[i[a]]=r)}return o}function Gq(t){return[...Yq(t,"width"),...Yq(t,"height"),...Yq(t,"childWidth"),...Yq(t,"childHeight")]}function Yq(t,e){const n="width"===e?"x":"y",r=t.component.layoutSize.get(e);if(!r||"merged"===r)return[];const i=t.getSizeSignalRef(e).signal;if("step"===r){const e=t.getScaleComponent(n);if(e){const r=e.get("type"),o=e.get("range");if(wO(r)&&uT(o)){const r=t.scaleName(n);if(tG(t.parent)){if("independent"===t.parent.component.resolve.scale[n])return[Vq(r,o)]}return[Vq(r,o),{name:i,update:$q(r,e,"domain('".concat(r,"').length"))}]}}throw new Error("layout size is step although width/height is not step.")}if("container"==r){const e=i.endsWith("width"),n=e?"containerSize()[0]":"containerSize()[1]",r=tP(t.config.view,e?"width":"height"),o="isFinite(".concat(n,") ? ").concat(n," : ").concat(r);return[{name:i,init:o,on:[{update:o,events:"window:resize"}]}]}return[{name:i,value:r}]}function Vq(t,e){const n="".concat(t,"_step");return cT(e.step)?{name:n,update:e.step.signal}:{name:n,value:e.step}}function $q(t,e,n){const r=e.get("type"),i=e.get("padding"),o=FC(e.get("paddingOuter"),i);let a=e.get("paddingInner");return a="band"===r?void 0!==a?a:i:1,"bandspace(".concat(n,", ").concat(wT(a),", ").concat(wT(o),") * ").concat(t,"_step")}function Xq(t){return"childWidth"===t?"width":"childHeight"===t?"height":t}function Zq(t,e){return lC(t).reduce(((n,r)=>(0,v.A)((0,v.A)({},n),HI({model:e,channelDef:t[r],vgChannel:r,mainRefFn:t=>AT(t.value),invalidValueRef:void 0}))),{})}function Jq(t,e){if(tG(e))return"theta"===t?"independent":"shared";if(nG(e))return"shared";if(eG(e))return gS(t)||"theta"===t||"radius"===t?"independent":"shared";throw new Error("invalid model type for resolve")}function Qq(t,e){const n=t.scale[e],r=gS(e)?"axis":"legend";return"independent"===n?("shared"===t[r][e]&&mN(function(t){return'Setting the scale to be independent for "'.concat(t,'" means we also have to set the guide (axis or legend) to be independent.')}(e)),"independent"):t[r][e]||"shared"}const Kq=(0,v.A)((0,v.A)({},Pz),{},{disable:1,labelExpr:1,selections:1,opacity:1,shape:1,stroke:1,fill:1,size:1,strokeWidth:1,strokeDash:1,encode:1}),tW=lC(Kq);class eW extends LL{}const nW={symbols:function(t,e){var n,r,i,o;let{fieldOrDatumDef:a,model:s,channel:c,legendCmpt:u,legendType:l}=e;if("symbol"!==l)return;const{markDef:f,encoding:d,config:h,mark:p}=s,m=f.filled&&"trail"!==p;let g=(0,v.A)((0,v.A)({},function(t,e,n){for(const r of n){const n=FT(r,e.markDef,e.config);void 0!==n&&(t[r]=AT(n))}return t}({},s,iB)),QI(s,{filled:m}));const y=null!==(n=u.get("symbolOpacity"))&&void 0!==n?n:h.legend.symbolOpacity,b=null!==(r=u.get("symbolFillColor"))&&void 0!==r?r:h.legend.symbolFillColor,A=null!==(i=u.get("symbolStrokeColor"))&&void 0!==i?i:h.legend.symbolStrokeColor,x=void 0===y?null!==(o=rW(d.opacity))&&void 0!==o?o:f.opacity:void 0;if(g.fill)if("fill"===c||m&&c===nM)delete g.fill;else if(PC(g.fill,"field")){var _;if(b)delete g.fill;else g.fill=AT(null!==(_=h.legend.symbolBaseFillColor)&&void 0!==_?_:"black"),g.fillOpacity=AT(null!==x&&void 0!==x?x:1)}else if(q(g.fill)){var w,k,E;const t=null!==(w=null!==(k=iW(null!==(E=d.fill)&&void 0!==E?E:d.color))&&void 0!==k?k:f.fill)&&void 0!==w?w:m&&f.color;t&&(g.fill=AT(t))}if(g.stroke)if("stroke"===c||!m&&c===nM)delete g.stroke;else if(PC(g.stroke,"field")||A)delete g.stroke;else if(q(g.stroke)){const t=FC(iW(d.stroke||d.color),f.stroke,m?f.color:void 0);t&&(g.stroke={value:t})}if(c!==cM){const t=tR(a)&&aW(s,u,a);t?g.opacity=[(0,v.A)({test:t},AT(null!==x&&void 0!==x?x:1)),AT(h.legend.unselectedOpacity)]:x&&(g.opacity=AT(x))}return g=(0,v.A)((0,v.A)({},g),t),uC(g)?void 0:g},gradient:function(t,e){var n;let{model:r,legendType:i,legendCmpt:o}=e;if("gradient"!==i)return;const{config:a,markDef:s,encoding:c}=r;let u={};const l=void 0===(null!==(n=o.get("gradientOpacity"))&&void 0!==n?n:a.legend.gradientOpacity)?rW(c.opacity)||s.opacity:void 0;l&&(u.opacity=AT(l));return u=(0,v.A)((0,v.A)({},u),t),uC(u)?void 0:u},labels:function(t,e){let{fieldOrDatumDef:n,model:r,channel:i,legendCmpt:o}=e;const a=r.legend(i)||{},s=r.config,c=tR(n)?aW(r,o,n):void 0,u=c?[{test:c,value:1},{value:s.legend.unselectedOpacity}]:void 0,{format:l,formatType:f}=a;let d;wB(f)?d=DB({fieldOrDatumDef:n,field:"datum.value",format:l,formatType:f,config:s}):void 0===l&&void 0===f&&s.customFormatTypes&&("quantitative"===n.type&&s.numberFormatType?d=DB({fieldOrDatumDef:n,field:"datum.value",format:s.numberFormat,formatType:s.numberFormatType,config:s}):"temporal"===n.type&&s.timeFormatType&&tR(n)&&void 0===n.timeUnit&&(d=DB({fieldOrDatumDef:n,field:"datum.value",format:s.timeFormat,formatType:s.timeFormatType,config:s})));const h=(0,v.A)((0,v.A)((0,v.A)({},u?{opacity:u}:{}),d?{text:d}:{}),t);return uC(h)?void 0:h},entries:function(t,e){let{legendCmpt:n}=e;const r=n.get("selections");return null!==r&&void 0!==r&&r.length?(0,v.A)((0,v.A)({},t),{},{fill:{value:"transparent"}}):t}};function rW(t){return oW(t,((t,e)=>Math.max(t,e.value)))}function iW(t){return oW(t,((t,e)=>FC(t,e.value)))}function oW(t,e){return function(t){const e=null===t||void 0===t?void 0:t.condition;return!!e&&(q(e)||cR(e))}(t)?ht(t.condition).reduce(e,t.value):cR(t)?t.value:void 0}function aW(t,e,n){const r=e.get("selections");if(null===r||void 0===r||!r.length)return;const i=Vt(n.field);return r.map((t=>{const e=Vt(pC(t)+zj);return"(!length(data(".concat(e,")) || (").concat(t,"[").concat(i,"] && indexof(").concat(t,"[").concat(i,"], datum.value) >= 0))")})).join(" || ")}const sW={direction:t=>{let{direction:e}=t;return e},format:t=>{let{fieldOrDatumDef:e,legend:n,config:r}=t;const{format:i,formatType:o}=n;return CB(e,e.type,i,o,r,!1)},formatType:t=>{let{legend:e,fieldOrDatumDef:n,scaleType:r}=t;const{formatType:i}=e;return MB(i,n,r)},gradientLength:t=>{var e,n;const{legend:r,legendConfig:i}=t;return null!==(e=null!==(n=r.gradientLength)&&void 0!==n?n:i.gradientLength)&&void 0!==e?e:function(t){let{legendConfig:e,model:n,direction:r,orient:i,scaleType:o}=t;const{gradientHorizontalMaxLength:a,gradientHorizontalMinLength:s,gradientVerticalMaxLength:c,gradientVerticalMinLength:u}=e;if(EO(o))return"horizontal"===r?"top"===i||"bottom"===i?lW(n,"width",s,a):s:lW(n,"height",u,c);return}(t)},labelOverlap:t=>{var e,n;let{legend:r,legendConfig:i,scaleType:o}=t;return null!==(e=null!==(n=r.labelOverlap)&&void 0!==n?n:i.labelOverlap)&&void 0!==e?e:function(t){if(QD(["quantile","threshold","log","symlog"],t))return"greedy";return}(o)},symbolType:t=>{var e;let{legend:n,markDef:r,channel:i,encoding:o}=t;return null!==(e=n.symbolType)&&void 0!==e?e:function(t,e,n,r){if("shape"!==e){var i;const t=null!==(i=iW(n))&&void 0!==i?i:r;if(t)return t}switch(t){case"bar":case"rect":case"image":case"square":return"square";case"line":case"trail":case"rule":return"stroke";case"arc":case"point":case"circle":case"tick":case"geoshape":case"area":case"text":return"circle"}}(r.type,i,o.shape,r.shape)},title:t=>{let{fieldOrDatumDef:e,config:n}=t;return bR(e,n,{allowDisabling:!0})},type:t=>{let{legendType:e,scaleType:n,channel:r}=t;if(CM(r)&&EO(n)){if("gradient"===e)return}else if("symbol"===e)return;return e},values:t=>{let{fieldOrDatumDef:e,legend:n}=t;return function(t,e){const n=t.values;if(q(n))return NR(e,n);if(cT(n))return n;return}(n,e)}};function cW(t){const{legend:e}=t;return FC(e.type,function(t){let{channel:e,timeUnit:n,scaleType:r}=t;if(CM(e)){if(QD(["quarter","month","day"],n))return"symbol";if(EO(r))return"gradient"}return"symbol"}(t))}function uW(t){var e,n;let{legendConfig:r,legendType:i,orient:o,legend:a}=t;return null!==(e=null!==(n=a.direction)&&void 0!==n?n:r[i?"gradientDirection":"symbolDirection"])&&void 0!==e?e:function(t,e){switch(t){case"top":case"bottom":return"horizontal";case"left":case"right":case"none":case void 0:return;default:return"gradient"===e?"horizontal":void 0}}(o,i)}function lW(t,e,n,r){const i=t.getSizeSignalRef(e).signal;return{signal:"clamp(".concat(i,", ").concat(n,", ").concat(r,")")}}function fW(t){const e=KH(t)?function(t){const{encoding:e}=t,n={};for(const r of[nM,...zz]){const i=kR(e[r]);i&&t.getScaleComponent(r)&&(r===oM&&tR(i)&&i.type===iO||(n[r]=hW(t,r)))}return n}(t):function(t){const{legends:e,resolve:n}=t.component;for(const r of t.children){fW(r);for(const i of lC(r.component.legends))n.legend[i]=Qq(t.component.resolve,i),"shared"===n.legend[i]&&(e[i]=pW(e[i],r.component.legends[i]),e[i]||(n.legend[i]="independent",delete e[i]))}for(const r of lC(e))for(const e of t.children)e.component.legends[r]&&"shared"===n.legend[r]&&delete e.component.legends[r];return e}(t);return t.component.legends=e,e}function dW(t,e,n,r){switch(e){case"disable":return void 0!==n;case"values":return!(null===n||void 0===n||!n.values);case"title":if("title"===e&&t===(null===r||void 0===r?void 0:r.title))return!0}return t===(n||{})[e]}function hW(t,e){var n,r,i;let o=t.legend(e);const{markDef:a,encoding:s,config:c}=t,u=c.legend,l=new eW({},function(t,e){const n=t.scaleName(e);if("trail"===t.mark){if("color"===e)return{stroke:n};if("size"===e)return{strokeWidth:n}}return"color"===e?t.markDef.filled?{fill:n}:{stroke:n}:{[e]:n}}(t,e));!function(t,e,n){var r;const i=null===(r=t.fieldDef(e))||void 0===r?void 0:r.field;for(const c of fC(null!==(o=t.component.selection)&&void 0!==o?o:{})){var o,a;const t=null!==(a=c.project.hasField[i])&&void 0!==a?a:c.project.hasChannel[e];if(t&&Dj.defined(c)){var s;const e=null!==(s=n.get("selections"))&&void 0!==s?s:[];e.push(c.name),n.set("selections",e,!1),t.hasLegend=!0}}}(t,e,l);const f=void 0!==o?!o:u.disable;if(l.set("disable",f,void 0!==o),f)return l;o=o||{};const d=t.getScaleComponent(e).get("type"),h=kR(s[e]),p=tR(h)?null===(n=RN(h.timeUnit))||void 0===n?void 0:n.unit:void 0,m=o.orient||c.legend.orient||"right",g=cW({legend:o,channel:e,timeUnit:p,scaleType:d}),y={legend:o,channel:e,model:t,markDef:a,encoding:s,fieldOrDatumDef:h,legendConfig:u,config:c,scaleType:d,orient:m,legendType:g,direction:uW({legend:o,legendType:g,orient:m,legendConfig:u})};for(const v of tW){if("gradient"===g&&v.startsWith("symbol")||"symbol"===g&&v.startsWith("gradient"))continue;const n=v in sW?sW[v](y):o[v];if(void 0!==n){const r=dW(n,v,o,t.fieldDef(e));(r||void 0===c.legend[v])&&l.set(v,n,r)}}const b=null!==(r=null===(i=o)||void 0===i?void 0:i.encoding)&&void 0!==r?r:{},A=l.get("selections"),x={},_={fieldOrDatumDef:h,model:t,channel:e,legendCmpt:l,legendType:g};for(const E of["labels","legend","title","symbols","gradient","entries"]){var w;const e=Zq(null!==(w=b[E])&&void 0!==w?w:{},t),n=E in nW?nW[E](e,_):e;void 0===n||uC(n)||(x[E]=(0,v.A)((0,v.A)((0,v.A)({},null!==A&&void 0!==A&&A.length&&tR(h)?{name:"".concat(pC(h.field),"_legend_").concat(E)}:{}),null!==A&&void 0!==A&&A.length?{interactive:!!A}:{}),{},{update:n}))}var k;uC(x)||l.set("encode",x,!(null===(k=o)||void 0===k||!k.encoding));return l}function pW(t,e){if(!t)return e.clone();const n=t.getWithExplicit("orient"),r=e.getWithExplicit("orient");if(n.explicit&&r.explicit&&n.value!==r.value)return;let i=!1;for(const s of tW){const n=WL(t.getWithExplicit(s),e.getWithExplicit(s),s,"legend",((t,e)=>{switch(s){case"symbolType":return mW(t,e);case"title":return NT(t,e);case"type":return i=!0,jL("symbol")}return qL(t,e,s,"legend")}));t.setWithExplicit(s,n)}var o,a;i&&(null!==(o=t.implicit)&&void 0!==o&&null!==(o=o.encode)&&void 0!==o&&o.gradient&&gC(t.implicit,["encode","gradient"]),null!==(a=t.explicit)&&void 0!==a&&null!==(a=a.encode)&&void 0!==a&&a.gradient&&gC(t.explicit,["encode","gradient"]));return t}function mW(t,e){return"circle"===e.value?e:t}const gW=["disable","labelExpr","selections"];function vW(t){const e=t.component.legends,n={};for(const i of lC(e)){const r=zC(t.getScaleComponent(i).get("domains"));if(n[r])for(const t of n[r]){pW(t,e[i])||n[r].push(e[i])}else n[r]=[e[i].clone()]}const r=fC(n).flat().map((e=>function(t,e){var n;const r=t.combine(),{disable:i,labelExpr:o,selections:a}=r,s=(0,jD.A)(r,gW);if(i)return;!1===e.aria&&void 0==s.aria&&(s.aria=!1);if(null!==(n=s.encode)&&void 0!==n&&n.symbols){const t=s.encode.symbols.update;!t.fill||"transparent"===t.fill.value||t.stroke||s.stroke||(t.stroke={value:"transparent"});for(const e of zz)s[e]&&delete t[e]}s.title||delete s.title;if(void 0!==o){var c;let t=o;null!==(c=s.encode)&&void 0!==c&&null!==(c=c.labels)&&void 0!==c&&c.update&&cT(s.encode.labels.update.text)&&(t=wC(o,"datum.label",s.encode.labels.update.text.signal)),function(t,e,n,r){var i,o,a,s,c;null!==(i=t.encode)&&void 0!==i||(t.encode={}),null!==(o=(s=t.encode)[e])&&void 0!==o||(s[e]={}),null!==(a=(c=t.encode[e]).update)&&void 0!==a||(c.update={}),t.encode[e].update[n]=r}(s,"labels","text",{signal:t})}return s}(e,t.config))).filter((t=>void 0!==t));return r}function yW(t){return nG(t)||eG(t)?function(t){return t.children.reduce(((t,e)=>t.concat(e.assembleProjections())),bW(t))}(t):bW(t)}function bW(t){const e=t.component.projection;if(!e||e.merged)return[];const n=e.combine(),{name:r}=n;if(e.data){const i={signal:"[".concat(e.size.map((t=>t.signal)).join(", "),"]")},o=e.data.reduce(((e,n)=>{const r=cT(n)?n.signal:"data('".concat(t.lookupDataSource(n),"')");return QD(e,r)||e.push(r),e}),[]);if(o.length<=0)throw new Error("Projection's fit didn't find any data sources");return[(0,v.A)({name:r,size:i,fit:{signal:o.length>1?"[".concat(o.join(", "),"]"):o[0]}},n)]}return[(0,v.A)({name:r,translate:{signal:"[width / 2, height / 2]"}},n)]}const AW=["type","clipAngle","clipExtent","center","rotate","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];class xW extends LL{constructor(t,e,n,r){super((0,v.A)({},e),{name:t}),this.specifiedProjection=e,this.size=n,this.data=r,this.merged=!1}get isFit(){return!!this.data}}function _W(t){t.component.projection=KH(t)?function(t){if(t.hasProjection){const e=iT(t.specifiedProjection),n=!(e&&(null!=e.scale||null!=e.translate)),r=n?[t.getSizeSignalRef("width"),t.getSizeSignalRef("height")]:void 0,i=n?function(t){const e=[],{encoding:n}=t;for(const r of[[QC,JC],[tM,KC]])(kR(n[r[0]])||kR(n[r[1]]))&&e.push({signal:t.getName("geojson_".concat(e.length))});t.channelHasField(oM)&&t.typedFieldDef(oM).type===iO&&e.push({signal:t.getName("geojson_".concat(e.length))});0===e.length&&e.push(t.requestDataName(QL.Main));return e}(t):void 0,o=new xW(t.projectionName(!0),(0,v.A)((0,v.A)({},iT(t.config.projection)),e),r,i);return o.get("type")||o.set("type","equalEarth",!1),o}return}(t):function(t){if(0===t.children.length)return;let e;for(const r of t.children)_W(r);const n=tC(t.children,(t=>{const n=t.component.projection;if(n){if(e){const t=function(t,e){const n=tC(AW,(n=>!Dt(t.explicit,n)&&!Dt(e.explicit,n)||!!(Dt(t.explicit,n)&&Dt(e.explicit,n)&&RC(t.get(n),e.get(n))))),r=RC(t.size,e.size);if(r){if(n)return t;if(RC(t.explicit,{}))return e;if(RC(e.explicit,{}))return t}return null}(e,n);return t&&(e=t),!!t}return e=n,!0}return!0}));if(e&&n){const n=t.projectionName(!0),r=new xW(n,e.specifiedProjection,e.size,YD(e.data));for(const e of t.children){const t=e.component.projection;t&&(t.isFit&&r.data.push(...e.component.projection.data),e.renameProjection(t.get("name"),n),t.merged=!0)}return r}return}(t)}const wW=["extent"];function kW(t,e){return"".concat(JS(t),"_").concat(e)}function EW(t,e,n){var r;const i=kW(null!==(r=CR(n,void 0))&&void 0!==r?r:{},e);return t.getName("".concat(i,"_bins"))}function FW(t,e,n){let r,i;r=function(t){return"as"in t}(t)?Lt(t.as)?[t.as,"".concat(t.as,"_end")]:[t.as[0],t.as[1]]:[pR(t,{forAs:!0}),pR(t,{binSuffix:"end",forAs:!0})];const o=(0,v.A)({},CR(e,void 0)),a=kW(o,t.field),{signal:s,extentSignal:c}=function(t,e){return{signal:t.getName("".concat(e,"_bins")),extentSignal:t.getName("".concat(e,"_extent"))}}(n,a);if(eT(o.extent)){const t=o.extent;i=fq(n,t.param,t),delete o.extent}return{key:a,binComponent:(0,v.A)((0,v.A)((0,v.A)({bin:o,field:t.field,as:[r]},s?{signal:s}:{}),c?{extentSignal:c}:{}),i?{span:i}:{})}}class DW extends tI{clone(){return new DW(null,YD(this.bins))}constructor(t,e){super(t),this.bins=e}static makeFromEncoding(t,e){const n=e.reduceFieldDef(((t,n,r)=>{if(sR(n)&&QS(n.bin)){const{key:i,binComponent:o}=FW(n,n.bin,e);t[i]=(0,v.A)((0,v.A)((0,v.A)({},o),t[i]),function(t,e,n,r){if(OR(e,n)){var i,o;const a=KH(t)&&null!==(i=null!==(o=t.axis(n))&&void 0!==o?o:t.legend(n))&&void 0!==i?i:{},s=pR(e,{expr:"datum"}),c=pR(e,{expr:"datum",binSuffix:"end"});return{formulaAs:pR(e,{binSuffix:"range",forAs:!0}),formula:OB(s,c,a.format,a.formatType,r)}}return{}}(e,n,r,e.config))}return t}),{});return uC(n)?null:new DW(t,n)}static makeFromTransform(t,e,n){const{key:r,binComponent:i}=FW(e,e.bin,n);return new DW(t,{[r]:i})}merge(t,e){for(const n of lC(t.bins))n in this.bins?(e(t.bins[n].signal,this.bins[n].signal),this.bins[n].as=rC([...this.bins[n].as,...t.bins[n].as],ZD)):this.bins[n]=t.bins[n];for(const n of t.children)t.removeChild(n),n.parent=this;t.remove()}producedFields(){return new Set(fC(this.bins).map((t=>t.as)).flat(2))}dependentFields(){return new Set(fC(this.bins).map((t=>t.field)))}hash(){return"Bin ".concat(ZD(this.bins))}assemble(){return fC(this.bins).flatMap((t=>{const e=[],[n,...r]=t.as,i=t.bin,{extent:o}=i,a=(0,jD.A)(i,wW),s=(0,v.A)((0,v.A)((0,v.A)({type:"bin",field:_C(t.field),as:n,signal:t.signal},eT(o)?{extent:null}:{extent:o}),t.span?{span:{signal:"span(".concat(t.span,")")}}:{}),a);!o&&t.extentSignal&&(e.push({type:"extent",field:_C(t.field),signal:t.extentSignal}),s.extent={signal:t.extentSignal}),e.push(s);for(const c of r)for(let t=0;t<2;t++)e.push({type:"formula",expr:pR({field:n[t]},{expr:"datum"}),as:c[t]});return t.formula&&e.push({type:"formula",expr:t.formula,as:t.formulaAs}),e}))}}function CW(t,e,n,r){var i;const o=KH(r)?r.encoding[YM(e)]:void 0;if(sR(n)&&KH(r)&&XB(n,o,r.markDef,r.config)){t.add(pR(n,{})),t.add(pR(n,{suffix:"end"}));const{mark:i,markDef:o,config:a}=r,s=VB({fieldDef:n,markDef:o,config:a});eB(i)&&.5!==s&&gS(e)&&(t.add(pR(n,{suffix:sI})),t.add(pR(n,{suffix:cI}))),n.bin&&OR(n,e)&&t.add(pR(n,{binSuffix:"range"}))}else if(EM(e)){const n=kM(e);t.add(r.getName(n))}else t.add(pR(n));return uR(n)&&function(t){return W(t)&&"field"in t}(null===(i=n.scale)||void 0===i?void 0:i.range)&&t.add(n.scale.range.field),t}class MW extends tI{clone(){return new MW(null,new Set(this.dimensions),YD(this.measures))}constructor(t,e,n){super(t),this.dimensions=e,this.measures=n}get groupBy(){return this.dimensions}static makeFromEncoding(t,e){let n=!1;e.forEachFieldDef((t=>{t.aggregate&&(n=!0)}));const r={},i=new Set;return n?(e.forEachFieldDef(((t,n)=>{const{aggregate:o,field:a}=t;if(o)if("count"===o){var s;null!==(s=r["*"])&&void 0!==s||(r["*"]={}),r["*"].count=new Set([pR(t,{forAs:!0})])}else{if(HS(o)||GS(o)){var c;const t=HS(o)?"argmin":"argmax",e=o[t];null!==(c=r[e])&&void 0!==c||(r[e]={}),r[e][t]=new Set([pR({op:t,field:e},{forAs:!0})])}else{var u;null!==(u=r[a])&&void 0!==u||(r[a]={}),r[a][o]=new Set([pR(t,{forAs:!0})])}var l;if(zS(n)&&"unaggregated"===e.scaleDomain(n))null!==(l=r[a])&&void 0!==l||(r[a]={}),r[a].min=new Set([pR({field:a,aggregate:"min"},{forAs:!0})]),r[a].max=new Set([pR({field:a,aggregate:"max"},{forAs:!0})])}else CW(i,n,t,e)})),i.size+lC(r).length===0?null:new MW(t,i,r)):null}static makeFromTransform(t,e){var n;const r=new Set,i={};for(const u of e.aggregate){const{op:t,field:e,as:r}=u;var o,a,s;if(t)if("count"===t)null!==(o=i["*"])&&void 0!==o||(i["*"]={}),i["*"].count=new Set([r||pR(u,{forAs:!0})]);else null!==(a=i[e])&&void 0!==a||(i[e]={}),null!==(s=(n=i[e])[t])&&void 0!==s||(n[t]=new Set),i[e][t].add(r||pR(u,{forAs:!0}))}for(const u of null!==(c=e.groupby)&&void 0!==c?c:[]){var c;r.add(u)}return r.size+lC(i).length===0?null:new MW(t,r,i)}merge(t){return oC(this.dimensions,t.dimensions)?(function(t,e){for(const r of lC(e)){const i=e[r];for(const e of lC(i)){var n;r in t?t[r][e]=new Set([...null!==(n=t[r][e])&&void 0!==n?n:[],...i[e]]):t[r]={[e]:i[e]}}}}(this.measures,t.measures),!0):(function(){dN.debug(...arguments)}("different dimensions, cannot merge"),!1)}addDimensions(t){t.forEach(this.dimensions.add,this.dimensions)}dependentFields(){return new Set([...this.dimensions,...lC(this.measures)])}producedFields(){const t=new Set;for(const e of lC(this.measures))for(const n of lC(this.measures[e])){const r=this.measures[e][n];0===r.size?t.add("".concat(n,"_").concat(e)):r.forEach(t.add,t)}return t}hash(){return"Aggregate ".concat(ZD({dimensions:this.dimensions,measures:this.measures}))}assemble(){const t=[],e=[],n=[];for(const r of lC(this.measures))for(const i of lC(this.measures[r]))for(const o of this.measures[r][i])n.push(o),t.push(i),e.push("*"===r?null:_C(r));return{type:"aggregate",groupby:[...this.dimensions].map(_C),ops:t,fields:e,as:n}}}class SW extends tI{constructor(t,e,n,r){super(t),this.model=e,this.name=n,this.data=r;for(const i of SM){const t=e.facet[i];if(t){const{bin:n,sort:r}=t;this[i]=(0,v.A)({name:e.getName("".concat(i,"_domain")),fields:[pR(t),...QS(n)?[pR(t,{binSuffix:"end"})]:[]]},PB(r)?{sortField:r}:q(r)?{sortIndexField:Mq(t,i)}:{})}}this.childModel=e.child}hash(){let t="Facet";for(const e of SM)this[e]&&(t+=" ".concat(e.charAt(0),":").concat(ZD(this[e])));return t}get fields(){const t=[];for(const n of SM){var e;null!==(e=this[n])&&void 0!==e&&e.fields&&t.push(...this[n].fields)}return t}dependentFields(){const t=new Set(this.fields);for(const e of SM)this[e]&&(this[e].sortField&&t.add(this[e].sortField.field),this[e].sortIndexField&&t.add(this[e].sortIndexField));return t}producedFields(){return new Set}getSource(){return this.name}getChildIndependentFieldsWithStep(){const t={};for(const e of mS){const n=this.childModel.component.scales[e];if(n&&!n.merged){const r=n.get("type"),i=n.get("range");if(wO(r)&&uT(i)){const n=FH(DH(this.childModel,e));n?t[e]=n:mN(LT(e))}}}return t}assembleRowColumnHeaderData(t,e,n){const r={row:"y",column:"x",facet:void 0}[t],i=[],o=[],a=[];r&&n&&n[r]&&(e?(i.push("distinct_".concat(n[r])),o.push("max")):(i.push(n[r]),o.push("distinct")),a.push("distinct_".concat(n[r])));const{sortField:s,sortIndexField:c}=this[t];if(s){const{op:t=BB,field:e}=s;i.push(e),o.push(t),a.push(pR(s,{forAs:!0}))}else c&&(i.push(c),o.push("max"),a.push(c));return{name:this[t].name,source:null!==e&&void 0!==e?e:this.data,transform:[(0,v.A)({type:"aggregate",groupby:this[t].fields},i.length?{fields:i,ops:o,as:a}:{})]}}assembleFacetHeaderData(t){const{columns:e}=this.model.layout,{layoutHeaders:n}=this.model.component,r=[],i={};for(const u of Oq){for(const t of Bq){var o;const e=null!==(o=n[u]&&n[u][t])&&void 0!==o?o:[];for(const t of e){var a;if((null===(a=t.axes)||void 0===a?void 0:a.length)>0){i[u]=!0;break}}}if(i[u]){const t='length(data("'.concat(this.facet.name,'"))'),n="row"===u?e?{signal:"ceil(".concat(t," / ").concat(e,")")}:1:e?{signal:"min(".concat(t,", ").concat(e,")")}:{signal:t};r.push({name:"".concat(this.facet.name,"_").concat(u),transform:[{type:"sequence",start:0,stop:n}]})}}const{row:s,column:c}=i;return(s||c)&&r.unshift(this.assembleRowColumnHeaderData("facet",null,t)),r}assemble(){const t=[];let e=null;const n=this.getChildIndependentFieldsWithStep(),{column:r,row:i,facet:o}=this;if(r&&i&&(n.x||n.y)){var a,s;e="cross_".concat(this.column.name,"_").concat(this.row.name);const r=[].concat(null!==(a=n.x)&&void 0!==a?a:[],null!==(s=n.y)&&void 0!==s?s:[]),i=r.map((()=>"distinct"));t.push({name:e,source:this.data,transform:[{type:"aggregate",groupby:this.fields,fields:r,ops:i}]})}for(const c of[IC,LC])this[c]&&t.push(this.assembleRowColumnHeaderData(c,e,n));if(o){const e=this.assembleFacetHeaderData(n);e&&t.push(...e)}return t}}function TW(t){return t.startsWith("'")&&t.endsWith("'")||t.startsWith('"')&&t.endsWith('"')?t.slice(1,-1):t}function NW(t){const e={};return HD(t.filter,(t=>{if(YN(t)){let r=null;if(IN(t))r=yT(t.equal);else if(UN(t))r=yT(t.lte);else if(jN(t))r=yT(t.lt);else if(qN(t))r=yT(t.gt);else if(WN(t))r=yT(t.gte);else if(HN(t))r=t.range[0];else if(GN(t)){var n;r=(null!==(n=t.oneOf)&&void 0!==n?n:t.in)[0]}r&&(gN(r)?e[t.field]="date":zt(r)?e[t.field]="number":Lt(r)&&(e[t.field]="string")),t.timeUnit&&(e[t.field]="date")}})),e}function OW(t){const e={};function n(t){var n;SR(t)?e[t.field]="date":"quantitative"===t.type&&(Lt(n=t.aggregate)&&QD(["min","max"],n))?e[t.field]="number":EC(t.field)>1?t.field in e||(e[t.field]="flatten"):uR(t)&&PB(t.sort)&&EC(t.sort.field)>1&&(t.sort.field in e||(e[t.sort.field]="flatten"))}if((KH(t)||tG(t))&&t.forEachFieldDef(((e,r)=>{if(sR(e))n(e);else{const i=HM(r),o=t.fieldDef(i);n((0,v.A)((0,v.A)({},e),{},{type:o.type}))}})),KH(t)){const{mark:n,markDef:r,encoding:i}=t;if(tB(n)&&!t.encoding.order){const t=i["horizontal"===r.orient?"y":"x"];tR(t)&&"quantitative"===t.type&&!(t.field in e)&&(e[t.field]="number")}}return e}class BW extends tI{clone(){return new BW(null,YD(this._parse))}constructor(t,e){super(t),this._parse=e}hash(){return"Parse ".concat(ZD(this._parse))}static makeExplicit(t,e,n){var r;let i={};const o=e.data;return!$L(o)&&null!==o&&void 0!==o&&null!==(r=o.format)&&void 0!==r&&r.parse&&(i=o.format.parse),this.makeWithAncestors(t,i,{},n)}static makeWithAncestors(t,e,n,r){for(const a of lC(n)){const t=r.getWithExplicit(a);void 0!==t.value&&(t.explicit||t.value===n[a]||"derived"===t.value||"flatten"===n[a]?delete n[a]:mN(GT(a,n[a],t.value)))}for(const a of lC(e)){const t=r.get(a);void 0!==t&&(t===e[a]?delete e[a]:mN(GT(a,e[a],t)))}const i=new LL(e,n);r.copyAll(i);const o={};for(const a of lC(i.combine())){const t=i.get(a);null!==t&&(o[a]=t)}return 0===lC(o).length||r.parseNothing?null:new BW(t,o)}get parse(){return this._parse}merge(t){this._parse=(0,v.A)((0,v.A)({},this._parse),t.parse),t.remove()}assembleFormatParse(){const t={};for(const e of lC(this._parse)){const n=this._parse[e];1===EC(e)&&(t[e]=n)}return t}producedFields(){return new Set(lC(this._parse))}dependentFields(){return new Set(lC(this._parse))}assembleTransforms(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return lC(this._parse).filter((e=>!t||EC(e)>1)).map((t=>{const e=function(t,e){const n=yC(t);if("number"===e)return"toNumber(".concat(n,")");if("boolean"===e)return"toBoolean(".concat(n,")");if("string"===e)return"toString(".concat(n,")");if("date"===e)return"toDate(".concat(n,")");if("flatten"===e)return n;if(e.startsWith("date:")){const t=TW(e.slice(5,e.length));return"timeParse(".concat(n,",'").concat(t,"')")}if(e.startsWith("utc:")){const t=TW(e.slice(4,e.length));return"utcParse(".concat(n,",'").concat(t,"')")}return mN('Unrecognized parse "'.concat(e,'".')),null}(t,this._parse[t]);if(!e)return null;return{type:"formula",expr:e,as:kC(t)}})).filter((t=>null!==t))}}class RW extends tI{clone(){return new RW(null)}constructor(t){super(t)}dependentFields(){return new Set}producedFields(){return new Set([Lz])}hash(){return"Identifier"}assemble(){return{type:"identifier",as:Lz}}}class zW extends tI{clone(){return new zW(null,this.params)}constructor(t,e){super(t),this.params=e}dependentFields(){return new Set}producedFields(){}hash(){return"Graticule ".concat(ZD(this.params))}assemble(){return(0,v.A)({type:"graticule"},!0===this.params?{}:this.params)}}class PW extends tI{clone(){return new PW(null,this.params)}constructor(t,e){super(t),this.params=e}dependentFields(){return new Set}producedFields(){var t;return new Set([null!==(t=this.params.as)&&void 0!==t?t:"data"])}hash(){return"Hash ".concat(ZD(this.params))}assemble(){return(0,v.A)({type:"sequence"},this.params)}}class LW extends tI{constructor(t){var e;let n;if(super(null),null!==(e=t)&&void 0!==e||(t={name:"source"}),$L(t)||(n=t.format?(0,v.A)({},XD(t.format,["parse"])):{}),YL(t))this._data={values:t.values};else if(GL(t)){if(this._data={url:t.url},!n.type){let e=/(?:\.([^.]+))?$/.exec(t.url)[1];QD(["json","csv","tsv","dsv","topojson"],e)||(e="json"),n.type=e}}else ZL(t)?this._data={values:[{type:"Sphere"}]}:(VL(t)||$L(t))&&(this._data={});this._generator=$L(t),t.name&&(this._name=t.name),n&&!uC(n)&&(this._data.format=n)}dependentFields(){return new Set}producedFields(){}get data(){return this._data}hasName(){return!!this._name}get isGenerator(){return this._generator}get dataName(){return this._name}set dataName(t){this._name=t}set parent(t){throw new Error("Source nodes have to be roots.")}remove(){throw new Error("Source nodes are roots and cannot be removed.")}hash(){throw new Error("Cannot hash sources")}assemble(){return(0,v.A)((0,v.A)({name:this._name},this._data),{},{transform:[]})}}var IW,jW=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},UW=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};function qW(t){return t instanceof LW||t instanceof zW||t instanceof PW}class WW{constructor(){IW.set(this,void 0),jW(this,IW,!1,"f")}setModified(){jW(this,IW,!0,"f")}get modifiedFlag(){return UW(this,IW,"f")}}IW=new WeakMap;class HW extends WW{getNodeDepths(t,e,n){n.set(t,e);for(const r of t.children)this.getNodeDepths(r,e+1,n);return n}optimize(t){const e=[...this.getNodeDepths(t,0,new Map).entries()].sort(((t,e)=>e[1]-t[1]));for(const n of e)this.run(n[0]);return this.modifiedFlag}}class GW extends WW{optimize(t){this.run(t);for(const e of t.children)this.optimize(e);return this.modifiedFlag}}class YW extends GW{mergeNodes(t,e){const n=e.shift();for(const r of e)t.removeChild(r),r.parent=n,r.remove()}run(t){const e=t.children.map((t=>t.hash())),n={};for(let r=0;r<e.length;r++)void 0===n[e[r]]?n[e[r]]=[t.children[r]]:n[e[r]].push(t.children[r]);for(const r of lC(n))n[r].length>1&&(this.setModified(),this.mergeNodes(t,n[r]))}}class VW extends GW{constructor(t){super(),this.requiresSelectionId=t&&qj(t)}run(t){t instanceof RW&&(this.requiresSelectionId&&(qW(t.parent)||t.parent instanceof MW||t.parent instanceof BW)||(this.setModified(),t.remove()))}}class $W extends WW{optimize(t){return this.run(t,new Set),this.modifiedFlag}run(t,e){let n=new Set;t instanceof aI&&(n=t.producedFields(),aC(n,e)&&(this.setModified(),t.removeFormulas(e),0===t.producedFields.length&&t.remove()));for(const r of t.children)this.run(r,new Set([...e,...n]))}}class XW extends GW{constructor(){super()}run(t){t instanceof eI&&!t.isRequired()&&(this.setModified(),t.remove())}}class ZW extends HW{run(t){if(!qW(t)&&!(t.numChildren()>1))for(const e of t.children)if(e instanceof BW)if(t instanceof BW)this.setModified(),t.merge(e);else{if(cC(t.producedFields(),e.dependentFields()))continue;this.setModified(),e.swapWithParent()}}}class JW extends HW{run(t){const e=[...t.children],n=t.children.filter((t=>t instanceof BW));if(t.numChildren()>1&&n.length>=1){const r={},i=new Set;for(const t of n){const e=t.parse;for(const t of lC(e))t in r?r[t]!==e[t]&&i.add(t):r[t]=e[t]}for(const t of i)delete r[t];if(!uC(r)){this.setModified();const n=new BW(t,r);for(const i of e){if(i instanceof BW)for(const t of lC(r))delete i.parse[t];t.removeChild(i),i.parent=n,i instanceof BW&&0===lC(i.parse).length&&i.remove()}}}}}class QW extends HW{run(t){t instanceof eI||t.numChildren()>0||t instanceof SW||t instanceof LW||(this.setModified(),t.remove())}}class KW extends HW{run(t){const e=t.children.filter((t=>t instanceof aI)),n=e.pop();for(const r of e)this.setModified(),n.merge(r)}}class tH extends HW{run(t){const e=t.children.filter((t=>t instanceof MW)),n={};for(const r of e){const t=ZD(r.groupBy);t in n||(n[t]=[]),n[t].push(r)}for(const r of lC(n)){const e=n[r];if(e.length>1){const n=e.pop();for(const r of e)n.merge(r)&&(t.removeChild(r),r.parent=n,r.remove(),this.setModified())}}}}class eH extends HW{constructor(t){super(),this.model=t}run(t){const e=!(qW(t)||t instanceof uq||t instanceof BW||t instanceof RW),n=[],r=[];for(const i of t.children)i instanceof DW&&(e&&!cC(t.producedFields(),i.dependentFields())?n.push(i):r.push(i));if(n.length>0){const e=n.pop();for(const t of n)e.merge(t,this.model.renameSignal.bind(this.model));this.setModified(),t instanceof DW?t.merge(e,this.model.renameSignal.bind(this.model)):e.swapWithParent()}if(r.length>1){const t=r.pop();for(const e of r)t.merge(e,this.model.renameSignal.bind(this.model));this.setModified()}}}class nH extends HW{run(t){const e=[...t.children];if(!KD(e,(t=>t instanceof eI))||t.numChildren()<=1)return;const n=[];let r;for(const i of e)if(i instanceof eI){let e=i;for(;1===e.numChildren();){const[t]=e.children;if(!(t instanceof eI))break;e=t}n.push(...e.children),r?(t.removeChild(i),i.parent=r.parent,r.parent.removeChild(r),r.parent=e,this.setModified()):r=e}else n.push(i);if(n.length){this.setModified();for(const t of n)t.parent.removeChild(t),t.parent=r}}}class rH extends tI{clone(){return new rH(null,YD(this.transform))}constructor(t,e){super(t),this.transform=e}addDimensions(t){this.transform.groupby=rC(this.transform.groupby.concat(t),(t=>t))}dependentFields(){const t=new Set;return this.transform.groupby&&this.transform.groupby.forEach(t.add,t),this.transform.joinaggregate.map((t=>t.field)).filter((t=>void 0!==t)).forEach(t.add,t),t}producedFields(){return new Set(this.transform.joinaggregate.map(this.getDefaultName))}getDefaultName(t){var e;return null!==(e=t.as)&&void 0!==e?e:pR(t)}hash(){return"JoinAggregateTransform ".concat(ZD(this.transform))}assemble(){const t=[],e=[],n=[];for(const i of this.transform.joinaggregate)e.push(i.op),n.push(this.getDefaultName(i)),t.push(void 0===i.field?null:i.field);const r=this.transform.groupby;return(0,v.A)({type:"joinaggregate",as:n,ops:e,fields:t},void 0!==r?{groupby:r}:{})}}class iH extends tI{clone(){return new iH(null,(0,v.A)({},this.filter))}constructor(t,e){super(t),this.filter=e}static make(t,e,n){const{config:r,markDef:i}=e,{marks:o,scales:a}=n;if("include-invalid-values"===o&&"include-invalid-values"===a)return null;const s=e.reduceFieldDef(((t,n,o)=>{const a=zS(o)&&e.getScaleComponent(o);if(a){const e=a.get("type"),{aggregate:s}=n,c=mB({scaleChannel:o,markDef:i,config:r,scaleType:e,isCountAggregate:$S(s)});"show"!==c&&"always-valid"!==c&&(t[n.field]=n)}return t}),{});return lC(s).length?new iH(t,s):null}dependentFields(){return new Set(lC(this.filter))}producedFields(){return new Set}hash(){return"FilterInvalid ".concat(ZD(this.filter))}assemble(){const t=lC(this.filter).reduce(((t,e)=>{const n=this.filter[e],r=pR(n,{expr:"datum"});return null!==n&&("temporal"===n.type?t.push("(isDate(".concat(r,") || (").concat(oH(r),"))")):"quantitative"===n.type&&t.push(oH(r))),t}),[]);return t.length>0?{type:"filter",expr:t.join(" && ")}:null}}function oH(t){return"isValid(".concat(t,") && isFinite(+").concat(t,")")}class aH extends tI{clone(){return new aH(null,YD(this._stack))}constructor(t,e){super(t),this._stack=e}static makeFromTransform(t,e){const{stack:n,groupby:r,as:i,offset:o="zero"}=e,a=[],s=[];if(void 0!==e.sort)for(const l of e.sort)a.push(l.field),s.push(FC(l.order,"ascending"));const c={field:a,order:s};let u;return u=function(t){return q(t)&&t.every((t=>Lt(t)))&&t.length>1}(i)?i:Lt(i)?[i,"".concat(i,"_end")]:["".concat(e.stack,"_start"),"".concat(e.stack,"_end")],new aH(t,{dimensionFieldDefs:[],stackField:n,groupby:r,offset:o,sort:c,facetby:[],as:u})}static makeFromEncoding(t,e){const n=e.stack,{encoding:r}=e;if(!n)return null;const{groupbyChannels:i,fieldChannel:o,offset:a,impute:s}=n,c=i.map((t=>wR(r[t]))).filter((t=>!!t)),u=function(t){return t.stack.stackBy.reduce(((t,e)=>{const n=pR(e.fieldDef);return n&&t.push(n),t}),[])}(e),l=e.encoding.order;let f;if(q(l)||tR(l))f=MT(l);else{const t=ZB(l)?l.sort:"y"===o?"descending":"ascending";f=u.reduce(((e,n)=>(e.field.includes(n)||(e.field.push(n),e.order.push(t)),e)),{field:[],order:[]})}return new aH(t,{dimensionFieldDefs:c,stackField:e.vgField(o),facetby:[],stackby:u,sort:f,offset:a,impute:s,as:[e.vgField(o,{suffix:"start",forAs:!0}),e.vgField(o,{suffix:"end",forAs:!0})]})}get stack(){return this._stack}addDimensions(t){this._stack.facetby.push(...t)}dependentFields(){const t=new Set;return t.add(this._stack.stackField),this.getGroupbyFields().forEach(t.add,t),this._stack.facetby.forEach(t.add,t),this._stack.sort.field.forEach(t.add,t),t}producedFields(){return new Set(this._stack.as)}hash(){return"Stack ".concat(ZD(this._stack))}getGroupbyFields(){const{dimensionFieldDefs:t,impute:e,groupby:n}=this._stack;return t.length>0?t.map((t=>t.bin?e?[pR(t,{binSuffix:"mid"})]:[pR(t,{}),pR(t,{binSuffix:"end"})]:[pR(t)])).flat():null!==n&&void 0!==n?n:[]}assemble(){const t=[],{facetby:e,dimensionFieldDefs:n,stackField:r,stackby:i,sort:o,offset:a,impute:s,as:c}=this._stack;if(s)for(const u of n){const{bandPosition:n=.5,bin:o}=u;if(o){const e=pR(u,{expr:"datum"}),r=pR(u,{expr:"datum",binSuffix:"end"});t.push({type:"formula",expr:"".concat(oH(e)," ? ").concat(n,"*").concat(e,"+").concat(1-n,"*").concat(r," : ").concat(e),as:pR(u,{binSuffix:"mid",forAs:!0})})}t.push({type:"impute",field:r,groupby:[...i,...e],key:pR(u,{binSuffix:"mid"}),method:"value",value:0})}return t.push({type:"stack",groupby:[...this.getGroupbyFields(),...e],field:r,sort:o,as:c,offset:a}),t}}class sH extends tI{clone(){return new sH(null,YD(this.transform))}constructor(t,e){super(t),this.transform=e}addDimensions(t){this.transform.groupby=rC(this.transform.groupby.concat(t),(t=>t))}dependentFields(){var t,e;const n=new Set;return(null!==(t=this.transform.groupby)&&void 0!==t?t:[]).forEach(n.add,n),(null!==(e=this.transform.sort)&&void 0!==e?e:[]).forEach((t=>n.add(t.field))),this.transform.window.map((t=>t.field)).filter((t=>void 0!==t)).forEach(n.add,n),n}producedFields(){return new Set(this.transform.window.map(this.getDefaultName))}getDefaultName(t){var e;return null!==(e=t.as)&&void 0!==e?e:pR(t)}hash(){return"WindowTransform ".concat(ZD(this.transform))}assemble(){const t=[],e=[],n=[],r=[];for(const f of this.transform.window)e.push(f.op),n.push(this.getDefaultName(f)),r.push(void 0===f.param?null:f.param),t.push(void 0===f.field?null:f.field);const i=this.transform.frame,o=this.transform.groupby;if(i&&null===i[0]&&null===i[1]&&e.every((t=>YS(t))))return(0,v.A)({type:"joinaggregate",as:n,ops:e,fields:t},void 0!==o?{groupby:o}:{});const a=[],s=[];if(void 0!==this.transform.sort)for(const f of this.transform.sort){var c;a.push(f.field),s.push(null!==(c=f.order)&&void 0!==c?c:"ascending")}const u={field:a,order:s},l=this.transform.ignorePeers;return(0,v.A)((0,v.A)((0,v.A)({type:"window",params:r,as:n,ops:e,fields:t,sort:u},void 0!==l?{ignorePeers:l}:{}),void 0!==o?{groupby:o}:{}),void 0!==i?{frame:i}:{})}}function cH(t){if(t instanceof SW)if(1!==t.numChildren()||t.children[0]instanceof eI){const n=t.model.component.data.main;uH(n);const r=(e=t,function t(n){if(!(n instanceof SW)){const r=n.clone();if(r instanceof eI){const t=lH+r.getSource();r.setSource(t),e.model.component.data.outputNodes[t]=r}else(r instanceof MW||r instanceof aH||r instanceof sH||r instanceof rH)&&r.addDimensions(e.fields);for(const e of n.children.flatMap(t))e.parent=r;return[r]}return n.children.flatMap(t)}),i=t.children.map(r).flat();for(const t of i)t.parent=n}else{const e=t.children[0];(e instanceof MW||e instanceof aH||e instanceof sH||e instanceof rH)&&e.addDimensions(t.fields),e.swapWithParent(),cH(t)}else t.children.map(cH);var e}function uH(t){if(t instanceof eI&&t.type===QL.Main&&1===t.numChildren()){const e=t.children[0];e instanceof SW||(e.swapWithParent(),uH(t))}}const lH="scale_",fH=5;function dH(t){for(const e of t){for(const t of e.children)if(t.parent!==e)return!1;if(!dH(e.children))return!1}return!0}function hH(t,e){let n=!1;for(const r of e)n=t.optimize(r)||n;return n}function pH(t,e,n){let r=t.sources,i=!1;return i=hH(new XW,r)||i,i=hH(new VW(e),r)||i,r=r.filter((t=>t.numChildren()>0)),i=hH(new QW,r)||i,r=r.filter((t=>t.numChildren()>0)),n||(i=hH(new ZW,r)||i,i=hH(new eH(e),r)||i,i=hH(new $W,r)||i,i=hH(new JW,r)||i,i=hH(new tH,r)||i,i=hH(new KW,r)||i,i=hH(new YW,r)||i,i=hH(new nH,r)||i),t.sources=r,i}class mH{constructor(t){Object.defineProperty(this,"signal",{enumerable:!0,get:t})}static fromName(t,e){return new mH((()=>t(e)))}}const gH=["sort"];function vH(t){KH(t)?function(t){const e=t.component.scales;for(const n of lC(e)){const r=yH(t,n);if(e[n].setWithExplicit("domains",r),_H(t,n),t.component.data.isFaceted){let e=t;for(;!tG(e)&&e.parent;)e=e.parent;if("shared"===e.component.resolve.scale[n])for(const t of r.value)lT(t)&&(t.data=lH+t.data.replace(lH,""))}}}(t):function(t){for(const n of t.children)vH(n);const e=t.component.scales;for(const n of lC(e)){let r,i=null;for(const e of t.children){const t=e.component.scales[n];if(t){r=void 0===r?t.getWithExplicit("domains"):WL(r,t.getWithExplicit("domains"),"domains","scale",kH);const e=t.get("selectionExtent");i&&e&&i.param!==e.param&&mN(qT),i=e}}e[n].setWithExplicit("domains",r),i&&e[n].set("selectionExtent",i,!0)}}(t)}function yH(t,e){const n=t.getScaleComponent(e).get("type"),{encoding:r}=t,i=function(t,e,n,r){if("unaggregated"===t){const{valid:t,reason:r}=wH(e,n);if(!t)return void mN(r)}else if(void 0===t&&r.useUnaggregatedDomain){const{valid:t}=wH(e,n);if(t)return"unaggregated"}return t}(t.scaleDomain(e),t.typedFieldDef(e),n,t.config.scale);return i!==t.scaleDomain(e)&&(t.specifiedScales[e]=(0,v.A)((0,v.A)({},t.specifiedScales[e]),{},{domain:i})),"x"===e&&kR(r.x2)?kR(r.x)?WL(AH(n,i,t,"x"),AH(n,i,t,"x2"),"domain","scale",kH):AH(n,i,t,"x2"):"y"===e&&kR(r.y2)?kR(r.y)?WL(AH(n,i,t,"y"),AH(n,i,t,"y2"),"domain","scale",kH):AH(n,i,t,"y2"):AH(n,i,t,e)}function bH(t,e,n){var r;const i=null===(r=RN(n))||void 0===r?void 0:r.unit;return"temporal"===e||i?function(t,e,n){return t.map((t=>{const r=TR(t,{timeUnit:n,type:e});return{signal:"{data: ".concat(r,"}")}}))}(t,e,i):[t]}function AH(t,e,n,r){const{encoding:i,markDef:o,mark:a,config:s,stack:c}=n,u=kR(i[r]),{type:l}=u,f=u.timeUnit,d=function(t){const{marks:e,scales:n}=KL(t);return e===n?QL.Main:"include-invalid-values"===n?QL.PreFilterInvalid:QL.PostFilterInvalid}({invalid:FT("invalid",o,s),isPath:tB(a)});if(function(t){return PC(t,"unionWith")}(e)){const i=AH(t,void 0,n,r);return IL([...bH(e.unionWith,l,f),...i.value])}if(cT(e))return IL([e]);if(e&&"unaggregated"!==e&&!DO(e))return IL(bH(e,l,f));if(c&&r===c.fieldChannel){if("normalize"===c.offset)return jL([[0,1]]);const t=n.requestDataName(d);return jL([{data:t,field:n.vgField(r,{suffix:"start"})},{data:t,field:n.vgField(r,{suffix:"end"})}])}const h=zS(r)&&tR(u)?function(t,e,n){if(!wO(n))return;const r=t.fieldDef(e),i=r.sort;if(LB(i))return{op:"min",field:Mq(r,e),order:"ascending"};const{stack:o}=t,a=o?new Set([...o.groupbyFields,...o.stackBy.map((t=>t.fieldDef.field))]):void 0;if(PB(i)){return xH(i,o&&!a.has(i.field))}if(function(t){return PC(t,"encoding")}(i)){const{encoding:e,order:n}=i,r=t.fieldDef(e),{aggregate:s,field:c}=r,u=o&&!a.has(c);if(HS(s)||GS(s))return xH({field:pR(r),order:n},u);if(YS(s)||!s)return xH({op:s,field:c,order:n},u)}else{if("descending"===i)return{op:"min",field:t.vgField(e),order:"descending"};if(QD(["ascending",void 0],i))return!0}return}(n,r,t):void 0;if(nR(u)){return jL(bH([u.datum],l,f))}const p=u;if("unaggregated"===e){const{field:t}=u;return jL([{data:n.requestDataName(d),field:pR({field:t,aggregate:"min"})},{data:n.requestDataName(d),field:pR({field:t,aggregate:"max"})}])}if(QS(p.bin)){if(wO(t))return jL("bin-ordinal"===t?[]:[{data:hC(h)?n.requestDataName(d):n.requestDataName(QL.Raw),field:n.vgField(r,OR(p,r)?{binSuffix:"range"}:{}),sort:!0!==h&&W(h)?h:{field:n.vgField(r,{}),op:"min"}}]);{const{bin:t}=p;if(QS(t)){const e=EW(n,p.field,t);return jL([new mH((()=>{const t=n.getSignalName(e);return"[".concat(t,".start, ").concat(t,".stop]")}))])}return jL([{data:n.requestDataName(d),field:n.vgField(r,{})}])}}if(p.timeUnit&&QD(["time","utc"],t)){const t=i[YM(r)];if(XB(p,t,o,s)){const e=n.requestDataName(d),i=VB({fieldDef:p,fieldDef2:t,markDef:o,config:s}),c=eB(a)&&.5!==i&&gS(r);return jL([{data:e,field:n.vgField(r,c?{suffix:sI}:{})},{data:e,field:n.vgField(r,{suffix:c?cI:"end"})}])}}return jL(h?[{data:hC(h)?n.requestDataName(d):n.requestDataName(QL.Raw),field:n.vgField(r),sort:h}]:[{data:n.requestDataName(d),field:n.vgField(r)}])}function xH(t,e){const{op:n,field:r,order:i}=t;return(0,v.A)((0,v.A)({op:null!==n&&void 0!==n?n:e?"sum":BB},r?{field:_C(r)}:{}),i?{order:i}:{})}function _H(t,e){var n;const r=t.component.scales[e],i=t.specifiedScales[e].domain,o=null===(n=t.fieldDef(e))||void 0===n?void 0:n.bin,a=DO(i)?i:void 0,s=tT(o)&&eT(o.extent)?o.extent:void 0;(a||s)&&r.set("selectionExtent",null!==a&&void 0!==a?a:s,!0)}function wH(t,e){const{aggregate:n,type:r}=t;return n?Lt(n)&&!ZS.has(n)?{valid:!1,reason:rN(n)}:"quantitative"===r&&"log"===e?{valid:!1,reason:iN(t)}:{valid:!0}:{valid:!1,reason:nN(t)}}function kH(t,e,n,r){return t.explicit&&e.explicit&&mN(function(t,e,n,r){return"Conflicting ".concat(e.toString(),' property "').concat(t.toString(),'" (').concat(zC(n)," and ").concat(zC(r),"). Using the union of the two domains.")}(n,r,t.value,e.value)),{explicit:t.explicit,value:[...t.value,...e.value]}}function EH(t){const e=rC(t.map((t=>{if(lT(t)){const{sort:e}=t;return(0,jD.A)(t,gH)}return t})),ZD),n=rC(t.map((t=>{if(lT(t)){const e=t.sort;return void 0===e||hC(e)||("op"in e&&"count"===e.op&&delete e.field,"ascending"===e.order&&delete e.order),e}})).filter((t=>void 0!==t)),ZD);if(0===e.length)return;if(1===e.length){const e=t[0];if(lT(e)&&n.length>0){let t=n[0];if(n.length>1){mN(sN);const e=n.filter((t=>W(t)&&"op"in t&&"min"!==t.op));t=!n.every((t=>W(t)&&"op"in t))||1!==e.length||e[0]}else if(W(t)&&"field"in t){const n=t.field;e.field===n&&(t=!t.order||{order:t.order})}return(0,v.A)((0,v.A)({},e),{},{sort:t})}return e}const r=rC(n.map((t=>hC(t)||!("op"in t)||Lt(t.op)&&Dt(WS,t.op)?t:(mN(function(t){return"Dropping sort property ".concat(zC(t),' as unioned domains only support boolean or op "count", "min", and "max".')}(t)),!0))),ZD);let i;1===r.length?i=r[0]:r.length>1&&(mN(sN),i=!0);const o=rC(t.map((t=>lT(t)?t.data:null)),(t=>t));if(1===o.length&&null!==o[0]){return(0,v.A)({data:o[0],fields:e.map((t=>t.field))},i?{sort:i}:{})}return(0,v.A)({fields:e},i?{sort:i}:{})}function FH(t){if(lT(t)&&Lt(t.field))return t.field;if(function(t){return!q(t)&&PC(t,"fields")&&!PC(t,"data")}(t)){let e;for(const n of t.fields)if(lT(n)&&Lt(n.field))if(e){if(e!==n.field)return mN("Detected faceted independent scales that union domain of multiple fields from different data sources. We will use the first field. The result view size may be incorrect."),e}else e=n.field;return mN("Detected faceted independent scales that union domain of the same fields from different source. We will assume that this is the same field from a different fork of the same data source. However, if this is not the case, the result view size may be incorrect."),e}if(function(t){return!q(t)&&PC(t,"fields")&&PC(t,"data")}(t)){mN("Detected faceted independent scales that union domain of multiple fields from the same data source. We will use the first field. The result view size may be incorrect.");const e=t.fields[0];return Lt(e)?e:void 0}}function DH(t,e){const n=t.component.scales[e].get("domains").map((e=>(lT(e)&&(e.data=t.lookupDataSource(e.data)),e)));return EH(n)}const CH=["name","type","selectionExtent","domains","range","reverse"];function MH(t){return nG(t)||eG(t)?t.children.reduce(((t,e)=>t.concat(MH(e))),SH(t)):SH(t)}function SH(t){return lC(t.component.scales).reduce(((e,n)=>{const r=t.component.scales[n];if(r.merged)return e;const i=r.combine(),{name:o,type:a,selectionExtent:s,domains:c,range:u,reverse:l}=i,f=(0,jD.A)(i,CH),d=function(t,e,n,r){if(gS(n)){if(uT(t))return{step:{signal:"".concat(e,"_step")}}}else if(W(t)&&lT(t))return(0,v.A)((0,v.A)({},t),{},{data:r.lookupDataSource(t.data)});return t}(i.range,o,n,t),h=DH(t,n),p=s?function(t,e,n,r){const i=fq(t,e.param,e);return{signal:kO(n.get("type"))&&q(r)&&r[0]>r[1]?"isValid(".concat(i,") && reverse(").concat(i,")"):i}}(t,s,r,h):null;return e.push((0,v.A)((0,v.A)((0,v.A)((0,v.A)({name:o,type:a},h?{domain:h}:{}),p?{domainRaw:p}:{}),{},{range:d},void 0!==l?{reverse:l}:{}),f)),e}),[])}class TH extends LL{constructor(t,e){super({},{name:t}),this.merged=!1,this.setWithExplicit("type",e)}domainHasZero(){const t=this.get("type");if(QD([aO,uO,lO],t))return"definitely-not";const e=this.get("zero");if(!0===e||void 0===e&&QD([oO,cO,sO],t))return"definitely";const n=this.get("domains");if(n.length>0){let t=!1,e=!1,r=!1;for(const i of n){if(q(i)){const n=i[0],r=i[i.length-1];if(zt(n)&&zt(r)){if(n<=0&&r>=0){t=!0;continue}e=!0;continue}}r=!0}if(t)return"definitely";if(e&&!r)return"definitely-not"}return"maybe"}}const NH=["range","scheme"];function OH(t,e){const n=t.fieldDef(e);if(null!==n&&void 0!==n&&n.bin){const{bin:r,field:i}=n,o=VM(e),a=t.getName(o);if(W(r)&&r.binned&&void 0!==r.step)return new mH((()=>{const n=t.scaleName(e),i='(domain("'.concat(n,'")[1] - domain("').concat(n,'")[0]) / ').concat(r.step);return"".concat(t.getSignalName(a)," / (").concat(i,")")}));if(QS(r)){const e=EW(t,i,r);return new mH((()=>{const n=t.getSignalName(e),r="(".concat(n,".stop - ").concat(n,".start) / ").concat(n,".step");return"".concat(t.getSignalName(a)," / (").concat(r,")")}))}}}function BH(t,e){const n=e.specifiedScales[t],{size:r}=e,i=e.getScaleComponent(t).get("type");for(const l of NH)if(void 0!==n[l]){const r=PO(i,l),o=LO(t,l);if(r)if(o)mN(o);else switch(l){case"range":{const r=n.range;if(q(r)){if(gS(t))return IL(r.map((t=>{if("width"===t||"height"===t){const n=e.getName(t),r=e.getSignalName.bind(e);return mH.fromName(r,n)}return t})))}else if(W(r))return IL({data:e.requestDataName(QL.Main),field:r.field,sort:{op:"min",field:e.vgField(t)}});return IL(r)}case"scheme":return IL(RH(n[l]))}else mN(oN(i,l,t))}const o=t===UC||"xOffset"===t?"width":"height",a=r[o];if(Xz(a))if(gS(t))if(wO(i)){const n=PH(a,e,t);if(n)return IL({step:n})}else mN(aN(o));else if(xS(t)){const n=t===GC?"x":"y";if("band"===e.getScaleComponent(n).get("type")){const t=LH(a,i);if(t)return IL(t)}}const{rangeMin:s,rangeMax:c}=n,u=function(t,e){const{size:n,config:r,mark:i,encoding:o}=e,{type:a}=kR(o[t]),s=e.getScaleComponent(t),c=s.get("type"),{domain:u,domainMid:l}=e.specifiedScales[t];switch(t){case UC:case qC:if(QD(["point","band"],c)){const i=IH(t,n,r.view);if(Xz(i)){return{step:PH(i,e,t)}}}return zH(t,e,c);case GC:case YC:return function(t,e,n){const r=t===GC?"x":"y",i=e.getScaleComponent(r);if(!i)return zH(r,e,n,{center:!0});const o=i.get("type"),a=e.scaleName(r),{markDef:s,config:c}=e;if("band"===o){const t=IH(r,e.size,e.config.view);if(Xz(t)){const e=LH(t,n);if(e)return e}return[0,{signal:"bandwidth('".concat(a,"')")}]}{const n=e.encoding[r];if(tR(n)&&n.timeUnit){const t=zN(n.timeUnit,(t=>"scale('".concat(a,"', ").concat(t,")"))),r=e.config.scale.bandWithNestedOffsetPaddingInner,i=VB({fieldDef:n,markDef:s,config:c})-.5,o=0!==i?" + ".concat(i):"";if(r){const e=cT(r)?"".concat(r.signal,"/2")+o:"".concat(r/2+i),n=cT(r)?"(1 - ".concat(r.signal,"/2)")+o:"".concat(1-r/2+i);return[{signal:"".concat(e," * (").concat(t,")")},{signal:"".concat(n," * (").concat(t,")")}]}return[0,{signal:t}]}return VD("Cannot use ".concat(t," scale if ").concat(r," scale is not discrete."))}}(t,e,c);case aM:{const o=function(t,e){switch(t){case"bar":case"tick":return e.scale.minBandSize;case"line":case"trail":case"rule":return e.scale.minStrokeWidth;case"text":return e.scale.minFontSize;case"point":case"square":case"circle":return e.scale.minSize}throw new Error(QT("size",t))}(i,r),a=function(t,e,n,r){const i={x:OH(n,"x"),y:OH(n,"y")};switch(t){case"bar":case"tick":{if(void 0!==r.scale.maxBandSize)return r.scale.maxBandSize;const t=UH(e,i,r.view);return zt(t)?t-1:new mH((()=>"".concat(t.signal," - 1")))}case"line":case"trail":case"rule":return r.scale.maxStrokeWidth;case"text":return r.scale.maxFontSize;case"point":case"square":case"circle":{if(r.scale.maxSize)return r.scale.maxSize;const t=UH(e,i,r.view);return zt(t)?Math.pow(jH*t,2):new mH((()=>"pow(".concat(jH," * ").concat(t.signal,", 2)")))}}throw new Error(QT("size",t))}(i,n,e,r);return FO(c)?function(t,e,n){const r=()=>{const r=wT(e),i=wT(t),o="(".concat(r," - ").concat(i,") / (").concat(n," - 1)");return"sequence(".concat(i,", ").concat(r," + ").concat(o,", ").concat(o,")")};return cT(e)?new mH(r):{signal:r()}}(o,a,function(t,e,n,r){switch(t){case"quantile":return e.scale.quantileCount;case"quantize":return e.scale.quantizeCount;case"threshold":return void 0!==n&&q(n)?n.length+1:(mN(function(t){return"Domain for ".concat(t," is required for threshold scale.")}(r)),3)}}(c,r,u,t)):[o,a]}case XC:return[0,2*Math.PI];case sM:return[0,360];case VC:return[0,new mH((()=>{const t=e.getSignalName(tG(e.parent)?"child_width":"width"),n=e.getSignalName(tG(e.parent)?"child_height":"height");return"min(".concat(t,",").concat(n,")/2")}))];case eM:return{step:1e3/r.scale.framesPerSecond};case fM:return[r.scale.minStrokeWidth,r.scale.maxStrokeWidth];case dM:return[[1,0],[4,2],[2,1],[1,1],[1,2,4,2]];case oM:return"symbol";case nM:case rM:case iM:return"ordinal"===c?"nominal"===a?"category":"ordinal":void 0!==l?"diverging":"rect"===i||"geoshape"===i?"heatmap":"ramp";case cM:case uM:case lM:return[r.scale.minOpacity,r.scale.maxOpacity]}}(t,e);return(void 0!==s||void 0!==c)&&PO(i,"rangeMin")&&q(u)&&2===u.length?IL([null!==s&&void 0!==s?s:u[0],null!==c&&void 0!==c?c:u[1]]):jL(u)}function RH(t){return function(t){return!Lt(t)&&PC(t,"name")}(t)?(0,v.A)({scheme:t.name},XD(t,["name"])):{scheme:t}}function zH(t,e,n){let{center:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=VM(t),o=e.getName(i),a=e.getSignalName.bind(e);return t===qC&&kO(n)?r?[mH.fromName((t=>"".concat(a(t),"/2")),o),mH.fromName((t=>"-".concat(a(t),"/2")),o)]:[mH.fromName(a,o),0]:r?[mH.fromName((t=>"-".concat(a(t),"/2")),o),mH.fromName((t=>"".concat(a(t),"/2")),o)]:[0,mH.fromName(a,o)]}function PH(t,e,n){const{encoding:r}=e,i=e.getScaleComponent(n),o=XM(n),a=r[o];if("offset"===$z({step:t,offsetIsDiscrete:aR(a)&&KN(a.type)})&&VR(r,o)){var s;const n=e.getScaleComponent(o),r=e.scaleName(o);let a="domain('".concat(r,"').length");if("band"===n.get("type")){var c,u,l,f;const t=null!==(c=null!==(u=n.get("paddingInner"))&&void 0!==u?u:n.get("padding"))&&void 0!==c?c:0,e=null!==(l=null!==(f=n.get("paddingOuter"))&&void 0!==f?f:n.get("padding"))&&void 0!==l?l:0;a="bandspace(".concat(a,", ").concat(t,", ").concat(e,")")}const d=null!==(s=i.get("paddingInner"))&&void 0!==s?s:i.get("padding");return{signal:"".concat(t.step," * ").concat(a," / (1-").concat(xT(d),")")}}return t.step}function LH(t,e){if("offset"===$z({step:t,offsetIsDiscrete:wO(e)}))return{step:t.step}}function IH(t,e,n){const r=t===UC?"width":"height",i=e[r];return i||nP(n,r)}const jH=.95;function UH(t,e,n){const r=Xz(t.width)?t.width.step:eP(n,"width"),i=Xz(t.height)?t.height.step:eP(n,"height");return e.x||e.y?new mH((()=>{const t=[e.x?e.x.signal:r,e.y?e.y.signal:i];return"min(".concat(t.join(", "),")")})):Math.min(r,i)}function qH(t,e){KH(t)?function(t,e){const n=t.component.scales,{config:r,encoding:i,markDef:o,specifiedScales:a}=t;for(const s of lC(n)){const c=a[s],u=n[s],l=t.getScaleComponent(s),f=kR(i[s]),d=c[e],h=l.get("type"),p=l.get("padding"),m=l.get("paddingInner"),g=PO(h,e),v=LO(s,e);if(void 0!==d&&(g?v&&mN(v):mN(oN(h,e,s))),g&&void 0===v)if(void 0!==d){const t=f.timeUnit,n=f.type;switch(e){case"domainMax":case"domainMin":gN(c[e])||"temporal"===n||t?u.set(e,{signal:TR(c[e],{type:n,timeUnit:t})},!0):u.set(e,c[e],!0);break;default:u.copyKeyFromObject(e,c)}}else{const n=PC(WH,e)?WH[e]({model:t,channel:s,fieldOrDatumDef:f,scaleType:h,scalePadding:p,scalePaddingInner:m,domain:c.domain,domainMin:c.domainMin,domainMax:c.domainMax,markDef:o,config:r,hasNestedOffsetScale:$R(i,s),hasSecondaryRangeChannel:!!i[YM(s)]}):r.scale[e];void 0!==n&&u.set(e,n,!1)}}}(t,e):GH(t,e)}const WH={bins:t=>{let{model:e,fieldOrDatumDef:n}=t;return tR(n)?function(t,e){const n=e.bin;if(QS(n)){const r=EW(t,e.field,n);return new mH((()=>t.getSignalName(r)))}if(KS(n)&&tT(n)&&void 0!==n.step)return{step:n.step};return}(e,n):void 0},interpolate:t=>{let{channel:e,fieldOrDatumDef:n}=t;return function(t,e){if(QD([nM,rM,iM],t)&&"nominal"!==e)return"hcl";return}(e,n.type)},nice:t=>{let{scaleType:e,channel:n,domain:r,domainMin:i,domainMax:o,fieldOrDatumDef:a}=t;return function(t,e,n,r,i,o){var a;if(null!==(a=wR(o))&&void 0!==a&&a.bin||q(n)||null!=i||null!=r||QD([uO,lO],t))return;return!!gS(e)||void 0}(e,n,r,i,o,a)},padding:t=>{let{channel:e,scaleType:n,fieldOrDatumDef:r,markDef:i,config:o}=t;return function(t,e,n,r,i,o){if(gS(t)){if(EO(e)){if(void 0!==n.continuousPadding)return n.continuousPadding;const{type:e,orient:a}=i;if("bar"===e&&(!tR(r)||!r.bin&&!r.timeUnit)&&("vertical"===a&&"x"===t||"horizontal"===a&&"y"===t))return o.continuousBandSize}if(e===fO)return n.pointPadding}return}(e,n,o.scale,r,i,o.bar)},paddingInner:t=>{let{scalePadding:e,channel:n,markDef:r,scaleType:i,config:o,hasNestedOffsetScale:a}=t;return function(t,e,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(void 0!==t)return;if(gS(e)){const{bandPaddingInner:t,barBandPaddingInner:e,rectBandPaddingInner:r,tickBandPaddingInner:a,bandWithNestedOffsetPaddingInner:s}=i;return o?s:FC(t,"bar"===n?e:"tick"===n?a:r)}if(xS(e)&&r===dO)return i.offsetBandPaddingInner;return}(e,n,r.type,i,o.scale,a)},paddingOuter:t=>{let{scalePadding:e,channel:n,scaleType:r,scalePaddingInner:i,config:o,hasNestedOffsetScale:a}=t;return function(t,e,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(void 0!==t)return;if(gS(e)){const{bandPaddingOuter:t,bandWithNestedOffsetPaddingOuter:e}=i;if(o)return e;if(n===dO)return FC(t,cT(r)?{signal:"".concat(r.signal,"/2")}:r/2)}else if(xS(e)){if(n===fO)return.5;if(n===dO)return i.offsetBandPaddingOuter}return}(e,n,r,i,o.scale,a)},reverse:t=>{let{fieldOrDatumDef:e,scaleType:n,channel:r,config:i}=t;return function(t,e,n,r){if("x"===n&&void 0!==r.xReverse)return kO(t)&&"descending"===e?cT(r.xReverse)?{signal:"!".concat(r.xReverse.signal)}:!r.xReverse:r.xReverse;if(kO(t)&&"descending"===e)return!0;return}(n,tR(e)?e.sort:void 0,r,i.scale)},zero:t=>{let{channel:e,fieldOrDatumDef:n,domain:r,markDef:i,scaleType:o,config:a,hasSecondaryRangeChannel:s}=t;return function(t,e,n,r,i,o,a){if(n&&"unaggregated"!==n&&kO(i)){if(q(n)){const t=n[0],e=n[n.length-1];if(zt(t)&&t<=0&&zt(e)&&e>=0)return!0}return!1}if("size"===t&&"quantitative"===e.type&&!FO(i))return!0;if((!tR(e)||!e.bin)&&QD([...mS,...yS],t)){const{orient:e,type:n}=r;return(!QD(["bar","area","line","trail"],n)||!("horizontal"===e&&"y"===t||"vertical"===e&&"x"===t))&&(!(!QD(["bar","area"],n)||a)||(null===o||void 0===o?void 0:o.zero))}return!1}(e,n,r,i,o,a.scale,s)}};function HH(t){KH(t)?function(t){const e=t.component.scales;for(const n of RS){const r=e[n];if(!r)continue;const i=BH(n,t);r.setWithExplicit("range",i)}}(t):GH(t,"range")}function GH(t,e){const n=t.component.scales;for(const r of t.children)"range"===e?HH(r):qH(r,e);for(const r of lC(n)){let i;for(const n of t.children){const t=n.component.scales[r];if(t){i=WL(i,t.getWithExplicit(e),e,"scale",UL(((t,n)=>"range"===e&&t.step&&n.step?t.step-n.step:0)))}}n[r].setWithExplicit(e,i)}}function YH(t,e,n,r){const i=function(t,e,n,r){switch(e.type){case"nominal":case"ordinal":var i;if(CM(t)||"discrete"===US(t))return"shape"===t&&"ordinal"===e.type&&mN(eN(t,"ordinal")),"ordinal";if(wS(t))return"band";if(gS(t)||xS(t)){if(QD(["rect","bar","image","rule","tick"],n.type))return"band";if(r)return"band"}else if("arc"===n.type&&t in vS)return"band";return uB(n[VM(t)])||lR(e)&&null!==(i=e.axis)&&void 0!==i&&i.tickBand?"band":"point";case"temporal":return CM(t)?"time":"discrete"===US(t)?(mN(eN(t,"temporal")),"ordinal"):tR(e)&&e.timeUnit&&RN(e.timeUnit).utc?"utc":wS(t)?"band":"time";case"quantitative":return CM(t)?tR(e)&&QS(e.bin)?"bin-ordinal":"linear":"discrete"===US(t)?(mN(eN(t,"quantitative")),"ordinal"):wS(t)?"band":"linear";case"geojson":return}throw new Error(XT(e.type))}(e,n,r,arguments.length>4&&void 0!==arguments[4]&&arguments[4]),{type:o}=t;return zS(e)?void 0!==o?function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!zS(t))return!1;switch(t){case UC:case qC:case GC:case YC:case XC:case VC:return!!EO(e)||"band"===e||"point"===e&&!n;case eM:return QD(["linear","band"],e);case aM:case fM:case cM:case uM:case lM:case sM:return EO(e)||FO(e)||QD(["band","point","ordinal"],e);case nM:case rM:case iM:return"band"!==e;case dM:case oM:return"ordinal"===e||FO(e)}}(e,o)?tR(n)&&(a=o,s=n.type,!(QD([eO,rO],s)?void 0===a||wO(a):s===nO?QD([uO,lO,void 0],a):s!==tO||bO(a)||FO(a)||void 0===a))?(mN(function(t,e){return'FieldDef does not work with "'.concat(t,'" scale. We are using "').concat(e,'" scale instead.')}(o,i)),i):o:(mN(function(t,e,n){return'Channel "'.concat(t,'" does not work with "').concat(e,'" scale. We are using "').concat(n,'" scale instead.')}(e,o,i)),i):i:null;var a,s}function VH(t){KH(t)?t.component.scales=function(t){const{encoding:e,mark:n,markDef:r}=t,i={};for(const a of RS){const s=kR(e[a]);if(s&&n===KO&&a===oM&&s.type===iO)continue;let c=s&&s.scale;if(s&&null!==c&&!1!==c){var o;null!==(o=c)&&void 0!==o||(c={});const n=YH(c,a,s,r,$R(e,a));i[a]=new TH(t.scaleName("".concat(a),!0),{value:n,explicit:c.type===n})}}return i}(t):t.component.scales=function(t){var e;const n=t.component.scales={},r={},i=t.component.resolve;for(const a of t.children){VH(a);for(const n of lC(a.component.scales)){var o;if(null!==(o=(e=i.scale)[n])&&void 0!==o||(e[n]=Jq(n,t)),"shared"===i.scale[n]){const t=r[n],e=a.component.scales[n].getWithExplicit("type");t?pO(t.value,e.value)?r[n]=WL(t,e,"type","scale",$H):(i.scale[n]="independent",delete r[n]):r[n]=e}}}for(const a of lC(r)){const e=t.scaleName(a,!0),i=r[a];n[a]=new TH(e,i);for(const n of t.children){const t=n.component.scales[a];t&&(n.renameScale(t.get("name"),e),t.merged=!0)}}return n}(t)}const $H=UL(((t,e)=>gO(t)-gO(e)));const XH=["style"],ZH=["spacing"],JH=["encoding"];class QH{constructor(){this.nameMap={}}rename(t,e){this.nameMap[t]=e}has(t){return void 0!==this.nameMap[t]}get(t){for(;this.nameMap[t]&&t!==this.nameMap[t];)t=this.nameMap[t];return t}}function KH(t){return"unit"===(null===t||void 0===t?void 0:t.type)}function tG(t){return"facet"===(null===t||void 0===t?void 0:t.type)}function eG(t){return"concat"===(null===t||void 0===t?void 0:t.type)}function nG(t){return"layer"===(null===t||void 0===t?void 0:t.type)}class rG{constructor(t,e,n,r,i,o,a){var s,c;this.type=e,this.parent=n,this.config=i,this.parent=n,this.config=i,this.view=iT(a),this.name=null!==(s=t.name)&&void 0!==s?s:r,this.title=sT(t.title)?{text:t.title}:t.title?iT(t.title):void 0,this.scaleNameMap=n?n.scaleNameMap:new QH,this.projectionNameMap=n?n.projectionNameMap:new QH,this.signalNameMap=n?n.signalNameMap:new QH,this.data=t.data,this.description=t.description,this.transforms=function(t){return t.map((t=>QP(t)?{filter:GD(t.filter,ZN)}:t))}(null!==(c=t.transform)&&void 0!==c?c:[]),this.layout="layer"===e||"unit"===e?{}:function(t,e,n){const r=n[e],i={},{spacing:o,columns:a}=r;void 0!==o&&(i.spacing=o),void 0!==a&&(UB(t)&&!IB(t.facet)||Gz(t))&&(i.columns=a),Yz(t)&&(i.columns=1);for(const u of Jz)if(void 0!==t[u])if("spacing"===u){var s,c;const e=t[u];i[u]=zt(e)?e:{row:null!==(s=e.row)&&void 0!==s?s:o,column:null!==(c=e.column)&&void 0!==c?c:o}}else i[u]=t[u];return i}(t,e,i),this.component={data:{sources:n?n.component.data.sources:[],outputNodes:n?n.component.data.outputNodes:{},outputNodeRefCounts:n?n.component.data.outputNodeRefCounts:{},isFaceted:UB(t)||(null===n||void 0===n?void 0:n.component.data.isFaceted)&&void 0===t.data},layoutSize:new LL,layoutHeaders:{row:{},column:{},facet:{}},mark:null,resolve:(0,v.A)({scale:{},axis:{},legend:{}},o?YD(o):{}),selection:null,scales:null,projection:null,axes:{},legends:{}}}get width(){return this.getSizeSignalRef("width")}get height(){return this.getSizeSignalRef("height")}parse(){this.parseScale(),this.parseLayoutSize(),this.renameTopLevelLayoutSizeSignal(),this.parseSelections(),this.parseProjection(),this.parseData(),this.parseAxesAndHeaders(),this.parseLegends(),this.parseMarkGroup()}parseScale(){!function(t){let{ignoreRange:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};VH(t),vH(t);for(const n of zO)qH(t,n);e||HH(t)}(this)}parseProjection(){_W(this)}renameTopLevelLayoutSizeSignal(){"width"!==this.getName("width")&&this.renameSignal(this.getName("width"),"width"),"height"!==this.getName("height")&&this.renameSignal(this.getName("height"),"height")}parseLegends(){fW(this)}assembleEncodeFromView(t){const{style:e}=t,n=(0,jD.A)(t,XH),r={};for(const i of lC(n)){const t=n[i];void 0!==t&&(r[i]=AT(t))}return r}assembleGroupEncodeEntry(t){let e={};return this.view&&(e=this.assembleEncodeFromView(this.view)),t||(this.description&&(e.description=AT(this.description)),"unit"!==this.type&&"layer"!==this.type)?uC(e)?void 0:e:(0,v.A)({width:this.getSizeSignalRef("width"),height:this.getSizeSignalRef("height")},e)}assembleLayout(){if(!this.layout)return;const t=this.layout,{spacing:e}=t,n=(0,jD.A)(t,ZH),{component:r,config:i}=this,o=function(t,e){const n={};for(const r of SM){const i=t[r];if(null!==i&&void 0!==i&&i.facetFieldDef){const{titleAnchor:t,titleOrient:o}=Nq(["titleAnchor","titleOrient"],i.facetFieldDef.header,e,r),a=Sq(r,o),s=Wq(t,a);void 0!==s&&(n[a]=s)}}return uC(n)?void 0:n}(r.layoutHeaders,i);return(0,v.A)((0,v.A)((0,v.A)({padding:e},this.assembleDefaultLayout()),n),o?{titleBand:o}:{})}assembleDefaultLayout(){return{}}assembleHeaderMarks(){const{layoutHeaders:t}=this.component;let e=[];for(const n of SM)t[n].title&&e.push(Rq(this,n));for(const n of Oq)e=e.concat(Lq(this,n));return e}assembleAxes(){return function(t,e){const{x:n=[],y:r=[]}=t;return[...n.map((t=>yq(t,"grid",e))),...r.map((t=>yq(t,"grid",e))),...n.map((t=>yq(t,"main",e))),...r.map((t=>yq(t,"main",e)))].filter((t=>t))}(this.component.axes,this.config)}assembleLegends(){return vW(this)}assembleProjections(){return yW(this)}assembleTitle(){var t;const e=null!==(t=this.title)&&void 0!==t?t:{},{encoding:n}=e,r=(0,jD.A)(e,JH),i=(0,v.A)((0,v.A)((0,v.A)({},aT(this.config.title).nonMarkTitleProperties),r),n?{encode:{update:n}}:{});if(i.text){var o,a;if(QD(["unit","layer"],this.type)){if(QD(["middle",void 0],i.anchor))null!==(o=i.frame)&&void 0!==o||(i.frame="group")}else null!==(a=i.anchor)&&void 0!==a||(i.anchor="start");return uC(i)?void 0:i}}assembleGroup(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e={};t=t.concat(this.assembleSignals()),t.length>0&&(e.signals=t);const n=this.assembleLayout();n&&(e.layout=n),e.marks=[].concat(this.assembleHeaderMarks(),this.assembleMarks());const r=!this.parent||tG(this.parent)?MH(this):[];r.length>0&&(e.scales=r);const i=this.assembleAxes();i.length>0&&(e.axes=i);const o=this.assembleLegends();return o.length>0&&(e.legends=o),e}getName(t){return pC((this.name?"".concat(this.name,"_"):"")+t)}getDataName(t){return this.getName(QL[t].toLowerCase())}requestDataName(t){const e=this.getDataName(t),n=this.component.data.outputNodeRefCounts;return n[e]=(n[e]||0)+1,e}getSizeSignalRef(t){if(tG(this.parent)){const e=bS(Xq(t)),n=this.component.scales[e];if(n&&!n.merged){const t=n.get("type"),r=n.get("range");if(wO(t)&&uT(r)){const t=n.get("name"),r=FH(DH(this,e));if(r){return{signal:$q(t,n,pR({aggregate:"distinct",field:r},{expr:"datum"}))}}return mN(LT(e)),null}}}return{signal:this.signalNameMap.get(this.getName(t))}}lookupDataSource(t){const e=this.component.data.outputNodes[t];return e?e.getSource():t}getSignalName(t){return this.signalNameMap.get(t)}renameSignal(t,e){this.signalNameMap.rename(t,e)}renameScale(t,e){this.scaleNameMap.rename(t,e)}renameProjection(t,e){this.projectionNameMap.rename(t,e)}scaleName(t,e){return e?this.getName(t):UM(t)&&zS(t)&&this.component.scales[t]||this.scaleNameMap.has(this.getName(t))?this.scaleNameMap.get(this.getName(t)):void 0}projectionName(t){return t?this.getName("projection"):this.component.projection&&!this.component.projection.merged||this.projectionNameMap.has(this.getName("projection"))?this.projectionNameMap.get(this.getName("projection")):void 0}getScaleComponent(t){if(!this.component.scales)throw new Error("getScaleComponent cannot be called before parseScale(). Make sure you have called parseScale or use parseUnitModelWithScale().");const e=this.component.scales[t];return e&&!e.merged?e:this.parent?this.parent.getScaleComponent(t):void 0}getScaleType(t){const e=this.getScaleComponent(t);return e?e.get("type"):void 0}getSelectionComponent(t,e){let n=this.component.selection[t];if(!n&&this.parent&&(n=this.parent.getSelectionComponent(t,e)),!n)throw new Error('Cannot find a selection named "'.concat(e,'".'));return n}hasAxisOrientSignalRef(){var t,e;return(null===(t=this.component.axes.x)||void 0===t?void 0:t.some((t=>t.hasOrientSignalRef())))||(null===(e=this.component.axes.y)||void 0===e?void 0:e.some((t=>t.hasOrientSignalRef())))}}class iG extends rG{vgField(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.fieldDef(t);if(n)return pR(n,e)}reduceFieldDef(t,e){return function(t,e,n,r){return t?lC(t).reduce(((n,i)=>{const o=t[i];return q(o)?o.reduce(((t,n)=>e.call(r,t,n,i)),n):e.call(r,n,o,i)}),n):n}(this.getMapping(),((e,n,r)=>{const i=wR(n);return i?t(e,i,r):e}),e)}forEachFieldDef(t,e){KR(this.getMapping(),((e,n)=>{const r=wR(e);r&&t(r,n)}),e)}}const oG=["density"];class aG extends tI{clone(){return new aG(null,YD(this.transform))}constructor(t,e){var n,r,i,o;super(t),this.transform=e,this.transform=YD(e);const a=null!==(n=this.transform.as)&&void 0!==n?n:[void 0,void 0];this.transform.as=[null!==(r=a[0])&&void 0!==r?r:"value",null!==(i=a[1])&&void 0!==i?i:"density"];const s=null!==(o=this.transform.resolve)&&void 0!==o?o:"shared";this.transform.resolve=s}dependentFields(){var t;return new Set([this.transform.density,...null!==(t=this.transform.groupby)&&void 0!==t?t:[]])}producedFields(){return new Set(this.transform.as)}hash(){return"DensityTransform ".concat(ZD(this.transform))}assemble(){const t=this.transform,{density:e}=t,n=(0,jD.A)(t,oG),r=(0,v.A)({type:"kde",field:e},n);return r.resolve=this.transform.resolve,r}}class sG extends tI{clone(){return new sG(null,YD(this.transform))}constructor(t,e){super(t),this.transform=e,this.transform=YD(e)}dependentFields(){return new Set([this.transform.extent])}producedFields(){return new Set([])}hash(){return"ExtentTransform ".concat(ZD(this.transform))}assemble(){const{extent:t,param:e}=this.transform;return{type:"extent",field:t,signal:e}}}class cG extends tI{clone(){return new cG(this.parent,YD(this.transform))}constructor(t,e){super(t),this.transform=e,this.transform=YD(e);const{flatten:n,as:r=[]}=this.transform;this.transform.as=n.map(((t,e)=>{var n;return null!==(n=r[e])&&void 0!==n?n:t}))}dependentFields(){return new Set(this.transform.flatten)}producedFields(){return new Set(this.transform.as)}hash(){return"FlattenTransform ".concat(ZD(this.transform))}assemble(){const{flatten:t,as:e}=this.transform;return{type:"flatten",fields:t,as:e}}}class uG extends tI{clone(){return new uG(null,YD(this.transform))}constructor(t,e){var n,r,i;super(t),this.transform=e,this.transform=YD(e);const o=null!==(n=this.transform.as)&&void 0!==n?n:[void 0,void 0];this.transform.as=[null!==(r=o[0])&&void 0!==r?r:"key",null!==(i=o[1])&&void 0!==i?i:"value"]}dependentFields(){return new Set(this.transform.fold)}producedFields(){return new Set(this.transform.as)}hash(){return"FoldTransform ".concat(ZD(this.transform))}assemble(){const{fold:t,as:e}=this.transform;return{type:"fold",fields:t,as:e}}}class lG extends tI{clone(){return new lG(null,YD(this.fields),this.geojson,this.signal)}static parseAll(t,e){if(e.component.projection&&!e.component.projection.isFit)return t;let n=0;for(const r of[[QC,JC],[tM,KC]]){const i=r.map((t=>{const n=kR(e.encoding[t]);return tR(n)?n.field:nR(n)?{expr:"".concat(n.datum)}:cR(n)?{expr:"".concat(n.value)}:void 0}));(i[0]||i[1])&&(t=new lG(t,i,null,e.getName("geojson_".concat(n++))))}if(e.channelHasField(oM)){const r=e.typedFieldDef(oM);r.type===iO&&(t=new lG(t,null,r.field,e.getName("geojson_".concat(n++))))}return t}constructor(t,e,n,r){super(t),this.fields=e,this.geojson=n,this.signal=r}dependentFields(){var t;const e=(null!==(t=this.fields)&&void 0!==t?t:[]).filter(Lt);return new Set([...this.geojson?[this.geojson]:[],...e])}producedFields(){return new Set}hash(){return"GeoJSON ".concat(this.geojson," ").concat(this.signal," ").concat(ZD(this.fields))}assemble(){return[...this.geojson?[{type:"filter",expr:'isValid(datum["'.concat(this.geojson,'"])')}]:[],(0,v.A)((0,v.A)((0,v.A)({type:"geojson"},this.fields?{fields:this.fields}:{}),this.geojson?{geojson:this.geojson}:{}),{},{signal:this.signal})]}}class fG extends tI{clone(){return new fG(null,this.projection,YD(this.fields),YD(this.as))}constructor(t,e,n,r){super(t),this.projection=e,this.fields=n,this.as=r}static parseAll(t,e){if(!e.projectionName())return t;for(const n of[[QC,JC],[tM,KC]]){const r=n.map((t=>{const n=kR(e.encoding[t]);return tR(n)?n.field:nR(n)?{expr:"".concat(n.datum)}:cR(n)?{expr:"".concat(n.value)}:void 0})),i=n[0]===tM?"2":"";(r[0]||r[1])&&(t=new fG(t,e.projectionName(),r,[e.getName("x".concat(i)),e.getName("y".concat(i))]))}return t}dependentFields(){return new Set(this.fields.filter(Lt))}producedFields(){return new Set(this.as)}hash(){return"Geopoint ".concat(this.projection," ").concat(ZD(this.fields)," ").concat(ZD(this.as))}assemble(){return{type:"geopoint",projection:this.projection,fields:this.fields,as:this.as}}}class dG extends tI{clone(){return new dG(null,YD(this.transform))}constructor(t,e){super(t),this.transform=e}dependentFields(){var t;return new Set([this.transform.impute,this.transform.key,...null!==(t=this.transform.groupby)&&void 0!==t?t:[]])}producedFields(){return new Set([this.transform.impute])}processSequence(t){const{start:e=0,stop:n,step:r}=t,i=[e,n,...r?[r]:[]].join(",");return{signal:"sequence(".concat(i,")")}}static makeFromTransform(t,e){return new dG(t,e)}static makeFromEncoding(t,e){const n=e.encoding,r=n.x,i=n.y;if(tR(r)&&tR(i)){const o=r.impute?r:i.impute?i:void 0;if(void 0===o)return;const a=r.impute?i:i.impute?r:void 0,{method:s,value:c,frame:u,keyvals:l}=o.impute,f=tz(e.mark,n);return new dG(t,(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({impute:o.field,key:a.field},s?{method:s}:{}),void 0!==c?{value:c}:{}),u?{frame:u}:{}),void 0!==l?{keyvals:l}:{}),f.length?{groupby:f}:{}))}return null}hash(){return"Impute ".concat(ZD(this.transform))}assemble(){const{impute:t,key:e,keyvals:n,method:r,groupby:i,value:o,frame:a=[null,null]}=this.transform,s=(0,v.A)((0,v.A)((0,v.A)({type:"impute",field:t,key:e},n?{keyvals:(c=n,PC(c,"stop")?this.processSequence(n):n)}:{}),{},{method:"value"},i?{groupby:i}:{}),{},{value:r&&"value"!==r?null:o});var c;if(r&&"value"!==r){return[s,(0,v.A)({type:"window",as:["imputed_".concat(t,"_value")],ops:[r],fields:[t],frame:a,ignorePeers:!1},i?{groupby:i}:{}),{type:"formula",expr:"datum.".concat(t," === null ? datum.imputed_").concat(t,"_value : datum.").concat(t),as:t}]}return[s]}}const hG=["loess","on"];class pG extends tI{clone(){return new pG(null,YD(this.transform))}constructor(t,e){var n,r,i;super(t),this.transform=e,this.transform=YD(e);const o=null!==(n=this.transform.as)&&void 0!==n?n:[void 0,void 0];this.transform.as=[null!==(r=o[0])&&void 0!==r?r:e.on,null!==(i=o[1])&&void 0!==i?i:e.loess]}dependentFields(){var t;return new Set([this.transform.loess,this.transform.on,...null!==(t=this.transform.groupby)&&void 0!==t?t:[]])}producedFields(){return new Set(this.transform.as)}hash(){return"LoessTransform ".concat(ZD(this.transform))}assemble(){const t=this.transform,{loess:e,on:n}=t,r=(0,jD.A)(t,hG);return(0,v.A)({type:"loess",x:n,y:e},r)}}class mG extends tI{clone(){return new mG(null,YD(this.transform),this.secondary)}constructor(t,e,n){super(t),this.transform=e,this.secondary=n}static make(t,e,n,r){const i=e.component.data.sources,{from:o}=n;let a=null;if(function(t){return PC(t,"data")}(o)){let t=NG(o.data,i);t||(t=new LW(o.data),i.push(t));const n=e.getName("lookup_".concat(r));a=new eI(t,n,QL.Lookup,e.component.data.outputNodeRefCounts),e.component.data.outputNodes[n]=a}else if(function(t){return PC(t,"param")}(o)){const t=o.param;let r;n=(0,v.A)({as:t},n);try{r=e.getSelectionComponent(pC(t),t)}catch(s){throw new Error('Lookups can only be performed on selection parameters. "'.concat(t,'" is a variable parameter.'))}if(a=r.materialized,!a)throw new Error(function(t){return'Cannot define and lookup the "'.concat(t,'" selection in the same view. ')+"Try moving the lookup into a second, layered view?"}(t))}return new mG(t,n,a.getSource())}dependentFields(){return new Set([this.transform.lookup])}producedFields(){return new Set(this.transform.as?ht(this.transform.as):this.transform.from.fields)}hash(){return"Lookup ".concat(ZD({transform:this.transform,secondary:this.secondary}))}assemble(){let t;if(this.transform.from.fields)t=(0,v.A)({values:this.transform.from.fields},this.transform.as?{as:ht(this.transform.as)}:{});else{let e=this.transform.as;Lt(e)||(mN('If "from.fields" is not specified, "as" has to be a string that specifies the key to be used for the data from the secondary source.'),e="_lookup"),t={as:[e]}}return(0,v.A)((0,v.A)({type:"lookup",from:this.secondary,key:this.transform.from.key,fields:[this.transform.lookup]},t),this.transform.default?{default:this.transform.default}:{})}}const gG=["quantile"];class vG extends tI{clone(){return new vG(null,YD(this.transform))}constructor(t,e){var n,r,i;super(t),this.transform=e,this.transform=YD(e);const o=null!==(n=this.transform.as)&&void 0!==n?n:[void 0,void 0];this.transform.as=[null!==(r=o[0])&&void 0!==r?r:"prob",null!==(i=o[1])&&void 0!==i?i:"value"]}dependentFields(){var t;return new Set([this.transform.quantile,...null!==(t=this.transform.groupby)&&void 0!==t?t:[]])}producedFields(){return new Set(this.transform.as)}hash(){return"QuantileTransform ".concat(ZD(this.transform))}assemble(){const t=this.transform,{quantile:e}=t,n=(0,jD.A)(t,gG);return(0,v.A)({type:"quantile",field:e},n)}}const yG=["regression","on"];class bG extends tI{clone(){return new bG(null,YD(this.transform))}constructor(t,e){var n,r,i;super(t),this.transform=e,this.transform=YD(e);const o=null!==(n=this.transform.as)&&void 0!==n?n:[void 0,void 0];this.transform.as=[null!==(r=o[0])&&void 0!==r?r:e.on,null!==(i=o[1])&&void 0!==i?i:e.regression]}dependentFields(){var t;return new Set([this.transform.regression,this.transform.on,...null!==(t=this.transform.groupby)&&void 0!==t?t:[]])}producedFields(){return new Set(this.transform.as)}hash(){return"RegressionTransform ".concat(ZD(this.transform))}assemble(){const t=this.transform,{regression:e,on:n}=t,r=(0,jD.A)(t,yG);return(0,v.A)({type:"regression",x:n,y:e},r)}}class AG extends tI{clone(){return new AG(null,YD(this.transform))}constructor(t,e){super(t),this.transform=e}addDimensions(t){var e;this.transform.groupby=rC((null!==(e=this.transform.groupby)&&void 0!==e?e:[]).concat(t),(t=>t))}producedFields(){}dependentFields(){var t;return new Set([this.transform.pivot,this.transform.value,...null!==(t=this.transform.groupby)&&void 0!==t?t:[]])}hash(){return"PivotTransform ".concat(ZD(this.transform))}assemble(){const{pivot:t,value:e,groupby:n,limit:r,op:i}=this.transform;return(0,v.A)((0,v.A)((0,v.A)({type:"pivot",field:t,value:e},void 0!==r?{limit:r}:{}),void 0!==i?{op:i}:{}),void 0!==n?{groupby:n}:{})}}class xG extends tI{clone(){return new xG(null,YD(this.transform))}constructor(t,e){super(t),this.transform=e}dependentFields(){return new Set}producedFields(){return new Set}hash(){return"SampleTransform ".concat(ZD(this.transform))}assemble(){return{type:"sample",size:this.transform.sample}}}function _G(t){let e=0;return function n(r,i){if(r instanceof LW&&!r.isGenerator&&!GL(r.data)){t.push(i);i={name:null,source:i.name,transform:[]}}if(r instanceof BW&&(r.parent instanceof LW&&!i.source?(i.format=(0,v.A)((0,v.A)({},i.format),{},{parse:r.assembleFormatParse()}),i.transform.push(...r.assembleTransforms(!0))):i.transform.push(...r.assembleTransforms())),r instanceof SW)return i.name||(i.name="data_".concat(e++)),!i.source||i.transform.length>0?(t.push(i),r.data=i.name):r.data=i.source,void t.push(...r.assemble());if((r instanceof zW||r instanceof PW||r instanceof iH||r instanceof uq||r instanceof Cq||r instanceof fG||r instanceof MW||r instanceof mG||r instanceof sH||r instanceof rH||r instanceof uG||r instanceof cG||r instanceof aG||r instanceof pG||r instanceof vG||r instanceof bG||r instanceof RW||r instanceof xG||r instanceof AG||r instanceof sG)&&i.transform.push(r.assemble()),(r instanceof DW||r instanceof aI||r instanceof dG||r instanceof aH||r instanceof lG)&&i.transform.push(...r.assemble()),r instanceof eI)if(i.source&&0===i.transform.length)r.setSource(i.source);else if(r.parent instanceof eI)r.setSource(i.name);else if(i.name||(i.name="data_".concat(e++)),r.setSource(i.name),1===r.numChildren()){t.push(i);i={name:null,source:i.name,transform:[]}}switch(r.numChildren()){case 0:r instanceof eI&&(!i.source||i.transform.length>0)&&t.push(i);break;case 1:n(r.children[0],i);break;default:{i.name||(i.name="data_".concat(e++));let o=i.name;!i.source||i.transform.length>0?t.push(i):o=i.source;for(const t of r.children){n(t,{name:null,source:o,transform:[]})}break}}}}function wG(t){return"top"===t||"left"===t||cT(t)?"header":"footer"}function kG(t,e){const{facet:n,config:r,child:i,component:o}=t;if(t.channelHasField(e)){var a;const s=n[e],c=Tq("title",null,r,e);let u=bR(s,r,{allowDisabling:!0,includeDefault:void 0===c||!!c});i.component.layoutHeaders[e].title&&(u=q(u)?u.join(", "):u,u+=" / ".concat(i.component.layoutHeaders[e].title),i.component.layoutHeaders[e].title=null);const l=Tq("labelOrient",s.header,r,e),f=null!==s.header&&FC(null===(a=s.header)||void 0===a?void 0:a.labels,r.header.labels,!0),d=QD(["bottom","right"],l)?"footer":"header";o.layoutHeaders[e]={title:null!==s.header?u:null,facetFieldDef:s,[d]:"facet"===e?[]:[EG(t,e,f)]}}}function EG(t,e,n){const r="row"===e?"height":"width";return{labels:n,sizeSignal:t.child.component.layoutSize.get(r)?t.child.getSizeSignalRef(r):void 0,axes:[]}}function FG(t,e){const{child:n}=t;if(n.component.axes[e]){const{layoutHeaders:i,resolve:o}=t.component;if(o.axis[e]=Qq(o,e),"shared"===o.axis[e]){const o="x"===e?"column":"row",a=i[o];for(const i of n.component.axes[e]){var r;const e=wG(i.get("orient"));null!==(r=a[e])&&void 0!==r||(a[e]=[EG(t,o,!1)]);const n=yq(i,"main",t.config,{header:!0});n&&a[e][0].axes.push(n),i.mainExtracted=!0}}}}function DG(t){for(const e of t.children)e.parseLayoutSize()}function CG(t,e){const n=Xq(e),r=bS(n),i=t.component.resolve,o=t.component.layoutSize;let a;for(const c of t.children){var s;const e=c.component.layoutSize.getWithExplicit(n),o=null!==(s=i.scale[r])&&void 0!==s?s:Jq(r,t);if("independent"===o&&"step"===e.value){a=void 0;break}if(a){if("independent"===o&&a.value!==e.value){a=void 0;break}a=WL(a,e,n,"")}else a=e}if(a){for(const r of t.children)t.renameSignal(r.getName(n),t.getName(e)),r.component.layoutSize.set(n,"merged",!1);o.setWithExplicit(e,a)}else o.setWithExplicit(e,{explicit:!1,value:void 0})}function MG(t,e){const n="width"===e?"x":"y",r=t.config,i=t.getScaleComponent(n);if(i){const t=i.get("type"),n=i.get("range");if(wO(t)){const t=nP(r.view,e);return uT(n)||Xz(t)?"step":t}return tP(r.view,e)}if(t.hasProjection||"arc"===t.mark)return tP(r.view,e);{const t=nP(r.view,e);return Xz(t)?t.step:t}}function SG(t,e,n){return pR(e,(0,v.A)({suffix:"by_".concat(pR(t))},n))}class TG extends iG{constructor(t,e,n,r){super(t,"facet",e,n,r,t.resolve),this.child=nY(t.spec,this,this.getName("child"),void 0,r),this.children=[this.child],this.facet=this.initFacet(t.facet)}initFacet(t){if(!IB(t))return{facet:this.initFacetFieldDef(t,"facet")};const e=lC(t),n={};for(const r of e){if(![LC,IC].includes(r)){mN(QT(r,"facet"));break}const e=t[r];if(void 0===e.field){mN(JT(e,r));break}n[r]=this.initFacetFieldDef(e,r)}return n}initFacetFieldDef(t,e){const n=DR(t,e);return n.header?n.header=iT(n.header):null===n.header&&(n.header=null),n}channelHasField(t){return PC(this.facet,t)}fieldDef(t){return this.facet[t]}parseData(){this.component.data=OG(this),this.child.parseData()}parseLayoutSize(){DG(this)}parseSelections(){this.child.parseSelections(),this.component.selection=this.child.component.selection,Object.values(this.component.selection).some((t=>Hj(t)))&&pN(HT)}parseMarkGroup(){this.child.parseMarkGroup()}parseAxesAndHeaders(){this.child.parseAxesAndHeaders(),function(t){for(const e of SM)kG(t,e);FG(t,"x"),FG(t,"y")}(this)}assembleSelectionTopLevelSignals(t){return this.child.assembleSelectionTopLevelSignals(t)}assembleSignals(){return this.child.assembleSignals(),[]}assembleSelectionData(t){return this.child.assembleSelectionData(t)}getHeaderLayoutMixins(){const t={};for(const i of SM)for(const o of Bq){const a=this.component.layoutHeaders[i],s=a[o],{facetFieldDef:c}=a;if(c){const n=Tq("titleOrient",c.header,this.config,i);if(["right","bottom"].includes(n)){var e;const r=Sq(i,n);null!==(e=t.titleAnchor)&&void 0!==e||(t.titleAnchor={}),t.titleAnchor[r]="end"}}if(null!==s&&void 0!==s&&s[0]){const e="row"===i?"height":"width",s="header"===o?"headerBand":"footerBand";var n,r;if("facet"!==i&&!this.child.component.layoutSize.get(e))null!==(n=t[s])&&void 0!==n||(t[s]={}),t[s][i]=.5;if(a.title)null!==(r=t.offset)&&void 0!==r||(t.offset={}),t.offset["row"===i?"rowTitle":"columnTitle"]=10}}return t}assembleDefaultLayout(){const{column:t,row:e}=this.facet,n=t?this.columnDistinctSignal():e?1:void 0;let r="all";return(e||"independent"!==this.component.resolve.scale.x)&&(t||"independent"!==this.component.resolve.scale.y)||(r="none"),(0,v.A)((0,v.A)((0,v.A)({},this.getHeaderLayoutMixins()),n?{columns:n}:{}),{},{bounds:"full",align:r})}assembleLayoutSignals(){return this.child.assembleLayoutSignals()}columnDistinctSignal(){if(!(this.parent&&this.parent instanceof TG)){const t=this.getName("column_domain");return{signal:"length(data('".concat(t,"'))")}}}assembleGroupStyle(){}assembleGroup(t){return this.parent&&this.parent instanceof TG?(0,v.A)((0,v.A)({},this.channelHasField("column")?{encode:{update:{columns:{field:pR(this.facet.column,{prefix:"distinct"})}}}}:{}),super.assembleGroup(t)):super.assembleGroup(t)}getCardinalityAggregateForChild(){const t=[],e=[],n=[];if(this.child instanceof TG){if(this.child.channelHasField("column")){const r=pR(this.child.facet.column);t.push(r),e.push("distinct"),n.push("distinct_".concat(r))}}else for(const r of mS){const i=this.child.component.scales[r];if(i&&!i.merged){const o=i.get("type"),a=i.get("range");if(wO(o)&&uT(a)){const i=FH(DH(this.child,r));i?(t.push(i),e.push("distinct"),n.push("distinct_".concat(i))):mN(LT(r))}}}return{fields:t,ops:e,as:n}}assembleFacet(){const{name:t,data:e}=this.component.data.facetRoot,{row:n,column:r}=this.facet,{fields:i,ops:o,as:a}=this.getCardinalityAggregateForChild(),s=[];for(const u of SM){const t=this.facet[u];if(t){s.push(pR(t));const{bin:e,sort:c}=t;if(QS(e)&&s.push(pR(t,{binSuffix:"end"})),PB(c)){const{field:e,op:s=BB}=c,u=SG(t,c);n&&r?(i.push(u),o.push("max"),a.push(u)):(i.push(e),o.push(s),a.push(u))}else if(q(c)){const e=Mq(t,u);i.push(e),o.push("max"),a.push(e)}}}const c=!!n&&!!r;return(0,v.A)({name:t,data:e,groupby:s},c||i.length>0?{aggregate:(0,v.A)((0,v.A)({},c?{cross:c}:{}),i.length?{fields:i,ops:o,as:a}:{})}:{})}facetSortFields(t){const{facet:e}=this,n=e[t];return n?PB(n.sort)?[SG(n,n.sort,{expr:"datum"})]:q(n.sort)?[Mq(n,t,{expr:"datum"})]:[pR(n,{expr:"datum"})]:[]}facetSortOrder(t){const{facet:e}=this,n=e[t];if(n){const{sort:t}=n;return[(PB(t)?t.order:!q(t)&&t)||"ascending"]}return[]}assembleLabelTitle(){const{facet:t,config:e}=this;if(t.facet)return jq(t.facet,"facet",e);const n={row:["top","bottom"],column:["left","right"]};for(const i of Oq)if(t[i]){var r;const o=Tq("labelOrient",null===(r=t[i])||void 0===r?void 0:r.header,e,i);if(n[i].includes(o))return jq(t[i],i,e)}}assembleMarks(){const{child:t}=this,e=function(t){const e=[],n=_G(e);for(const r of t.children)n(r,{source:t.name,name:null,transform:[]});return e}(this.component.data.facetRoot),n=t.assembleGroupEncodeEntry(!1),r=this.assembleLabelTitle()||t.assembleTitle(),i=t.assembleGroupStyle();return[(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({name:this.getName("cell"),type:"group"},r?{title:r}:{}),i?{style:i}:{}),{},{from:{facet:this.assembleFacet()},sort:{field:SM.map((t=>this.facetSortFields(t))).flat(),order:SM.map((t=>this.facetSortOrder(t))).flat()}},e.length>0?{data:e}:{}),n?{encode:{update:n}}:{}),t.assembleGroup(function(t,e){if(t.component.selection&&lC(t.component.selection).length){const n=Vt(t.getName("cell"));e.unshift({name:"facet",value:{},on:[{events:cw("pointermove","scope"),update:"isTuple(facet) ? facet : group(".concat(n,").datum")}]})}return NI(e)}(this,[])))]}getMapping(){return this.facet}}function NG(t,e){for(const a of e){var n,r,i,o;const e=a.data;if(t.name&&a.hasName()&&t.name!==a.dataName)continue;const s=null===(n=t.format)||void 0===n?void 0:n.mesh,c=null===(r=e.format)||void 0===r?void 0:r.feature;if(s&&c)continue;const u=null===(i=t.format)||void 0===i?void 0:i.feature;if((u||c)&&u!==c)continue;const l=null===(o=e.format)||void 0===o?void 0:o.mesh;if(!s&&!l||s===l)if(YL(t)&&YL(e)){if(RC(t.values,e.values))return a}else if(GL(t)&&GL(e)){if(t.url===e.url)return a}else if(VL(t)&&t.name===a.dataName)return a}return null}function OG(t){var e,n,r;let i=function(t,e){if(t.data||!t.parent){if(null===t.data){const t=new LW({values:[]});return e.push(t),t}const n=NG(t.data,e);if(n)return $L(t.data)||(n.data.format=eC({},t.data.format,n.data.format)),!n.hasName()&&t.data.name&&(n.dataName=t.data.name),n;{const n=new LW(t.data);return e.push(n),n}}return t.parent.component.data.facetRoot?t.parent.component.data.facetRoot:t.parent.component.data.main}(t,t.component.data.sources);const{outputNodes:o,outputNodeRefCounts:a}=t.component.data,s=t.data,c=!(s&&($L(s)||GL(s)||YL(s)))&&t.parent?t.parent.component.data.ancestorParse.clone():new HL;$L(s)?(XL(s)?i=new PW(i,s.sequence):JL(s)&&(i=new zW(i,s.graticule)),c.parseNothing=!0):null===(null===s||void 0===s||null===(e=s.format)||void 0===e?void 0:e.parse)&&(c.parseNothing=!0),i=null!==(n=BW.makeExplicit(i,t,c))&&void 0!==n?n:i,i=new RW(i);const u=t.parent&&nG(t.parent);var l;(KH(t)||tG(t))&&(u&&(i=null!==(l=DW.makeFromEncoding(i,t))&&void 0!==l?l:i));t.transforms.length>0&&(i=function(t,e,n){let r=0;for(const a of e.transforms){let s,c;if(uL(a))c=t=new Cq(t,a),s="derived";else if(QP(a)){var i;const r=NW(a);c=t=null!==(i=BW.makeWithAncestors(t,{},r,n))&&void 0!==i?i:t,t=new uq(t,e,a.filter)}else if(lL(a))c=t=DW.makeFromTransform(t,a,e),s="number";else if(dL(a))s="date",void 0===n.getWithExplicit(a.field).value&&(t=new BW(t,{[a.field]:s}),n.set(a.field,s,!1)),c=t=aI.makeFromTransform(t,a);else if(hL(a))c=t=MW.makeFromTransform(t,a),s="number",qj(e)&&(t=new RW(t));else if(KP(a))c=t=mG.make(t,e,a,r++),s="derived";else if(aL(a))c=t=new sH(t,a),s="number";else if(sL(a))c=t=new rH(t,a),s="number";else if(pL(a))c=t=aH.makeFromTransform(t,a),s="derived";else if(mL(a))c=t=new uG(t,a),s="derived";else if(gL(a))c=t=new sG(t,a),s="derived";else if(cL(a))c=t=new cG(t,a),s="derived";else if(tL(a))c=t=new AG(t,a),s="derived";else if(oL(a))t=new xG(t,a);else if(fL(a))c=t=dG.makeFromTransform(t,a),s="derived";else if(eL(a))c=t=new aG(t,a),s="derived";else if(nL(a))c=t=new vG(t,a),s="derived";else if(rL(a))c=t=new bG(t,a),s="derived";else{if(!iL(a)){mN(YT(a));continue}c=t=new pG(t,a),s="derived"}if(c&&void 0!==s)for(const t of null!==(o=c.producedFields())&&void 0!==o?o:[]){var o;n.set(t,s,!1)}}return t}(i,t,c));const f=function(t){const e={};if(KH(t)&&t.component.selection)for(const n of lC(t.component.selection)){const r=t.component.selection[n];for(const t of r.project.items)!t.channel&&EC(t.field)>1&&(e[t.field]="flatten")}return e}(t),d=OW(t);if(i=null!==(r=BW.makeWithAncestors(i,{},(0,v.A)((0,v.A)({},f),d),c))&&void 0!==r?r:i,KH(t)&&(i=lG.parseAll(i,t),i=fG.parseAll(i,t)),KH(t)||tG(t)){var h,p;if(!u)i=null!==(p=DW.makeFromEncoding(i,t))&&void 0!==p?p:i;i=null!==(h=aI.makeFromEncoding(i,t))&&void 0!==h?h:i,i=Cq.parseAllForSortIndex(i,t)}const m=i=BG(QL.Raw,t,i);if(KH(t)){var g,y;const e=MW.makeFromEncoding(i,t);e&&(i=e,qj(t)&&(i=new RW(i))),i=null!==(g=dG.makeFromEncoding(i,t))&&void 0!==g?g:i,i=null!==(y=aH.makeFromEncoding(i,t))&&void 0!==y?y:i}let b,A;if(KH(t)){const{markDef:e,mark:n,config:r}=t,o=ET("invalid",e,r),{marks:a,scales:s}=A=KL({invalid:o,isPath:tB(n)});var x;if(a!==s&&"include-invalid-values"===s&&(b=i=BG(QL.PreFilterInvalid,t,i)),"exclude-invalid-values"===a)i=null!==(x=iH.make(i,t,A))&&void 0!==x?x:i}const _=i=BG(QL.Main,t,i);let w;if(KH(t)&&A){const{marks:e,scales:n}=A;var k;if("include-invalid-values"===e&&"exclude-invalid-values"===n)i=null!==(k=iH.make(i,t,A))&&void 0!==k?k:i,w=i=BG(QL.PostFilterInvalid,t,i)}KH(t)&&function(t,e){for(const[r,i]of dC(null!==(n=t.component.selection)&&void 0!==n?n:{})){var n;const o=t.getName("lookup_".concat(r));t.component.data.outputNodes[o]=i.materialized=new eI(new uq(e,t,{param:r}),o,QL.Lookup,t.component.data.outputNodeRefCounts)}}(t,_);let E=null;if(tG(t)){var F;const e=t.getName("facet");i=null!==(F=function(t,e){const{row:n,column:r}=e;if(n&&r){let e=null;for(const i of[n,r])if(PB(i.sort)){const{field:n,op:r=BB}=i.sort;t=e=new rH(t,{joinaggregate:[{op:r,field:n,as:SG(i,i.sort,{forAs:!0})}],groupby:[pR(i)]})}return e}return null}(i,t.facet))&&void 0!==F?F:i,E=new SW(i,t,e,_.getSource()),o[e]=E}return(0,v.A)((0,v.A)({},t.component.data),{},{outputNodes:o,outputNodeRefCounts:a,raw:m,main:_,facetRoot:E,ancestorParse:c,preFilterInvalid:b,postFilterInvalid:w})}function BG(t,e,n){const{outputNodes:r,outputNodeRefCounts:i}=e.component.data,o=e.getDataName(t),a=new eI(n,o,t,i);return r[o]=a,a}class RG extends rG{constructor(t,e,n,r){var i,o;super(t,"concat",e,n,r,t.resolve),"shared"!==(null===(i=t.resolve)||void 0===i||null===(i=i.axis)||void 0===i?void 0:i.x)&&"shared"!==(null===(o=t.resolve)||void 0===o||null===(o=o.axis)||void 0===o?void 0:o.y)||mN("Axes cannot be shared in concatenated or repeated views yet (https://github.com/vega/vega-lite/issues/2415)."),this.children=this.getChildren(t).map(((t,e)=>nY(t,this,this.getName("concat_".concat(e)),void 0,r)))}parseData(){this.component.data=OG(this);for(const t of this.children)t.parseData()}parseSelections(){this.component.selection={};for(const t of this.children){t.parseSelections();for(const e of lC(t.component.selection))this.component.selection[e]=t.component.selection[e]}Object.values(this.component.selection).some((t=>Hj(t)))&&pN(HT)}parseMarkGroup(){for(const t of this.children)t.parseMarkGroup()}parseAxesAndHeaders(){for(const t of this.children)t.parseAxesAndHeaders()}getChildren(t){return Yz(t)?t.vconcat:Vz(t)?t.hconcat:t.concat}parseLayoutSize(){!function(t){DG(t);const e=1===t.layout.columns?"width":"childWidth",n=void 0===t.layout.columns?"height":"childHeight";CG(t,e),CG(t,n)}(this)}parseAxisGroup(){return null}assembleSelectionTopLevelSignals(t){return this.children.reduce(((t,e)=>e.assembleSelectionTopLevelSignals(t)),t)}assembleSignals(){return this.children.forEach((t=>t.assembleSignals())),[]}assembleLayoutSignals(){const t=Gq(this);for(const e of this.children)t.push(...e.assembleLayoutSignals());return t}assembleSelectionData(t){return this.children.reduce(((t,e)=>e.assembleSelectionData(t)),t)}assembleMarks(){return this.children.map((t=>{const e=t.assembleTitle(),n=t.assembleGroupStyle(),r=t.assembleGroupEncodeEntry(!1);return(0,v.A)((0,v.A)((0,v.A)((0,v.A)({type:"group",name:t.getName("group")},e?{title:e}:{}),n?{style:n}:{}),r?{encode:{update:r}}:{}),t.assembleGroup())}))}assembleGroupStyle(){}assembleDefaultLayout(){const t=this.layout.columns;return(0,v.A)((0,v.A)({},null!=t?{columns:t}:{}),{},{bounds:"full",align:"each"})}}const zG=(0,v.A)((0,v.A)({disable:1,gridScale:1,scale:1},LR),{},{labelExpr:1,encode:1}),PG=lC(zG);class LG extends LL{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super(),this.explicit=t,this.implicit=e,this.mainExtracted=n}clone(){return new LG(YD(this.explicit),YD(this.implicit),this.mainExtracted)}hasAxisPart(t){return"axis"===t||("grid"===t||"title"===t?!!this.get(t):!(!1===(e=this.get(t))||null===e));var e}hasOrientSignalRef(){return cT(this.explicit.orient)}}const IG={bottom:"top",top:"bottom",left:"right",right:"left"};function jG(t,e){if(!t)return e.map((t=>t.clone()));{if(t.length!==e.length)return;const n=t.length;for(let r=0;r<n;r++){const n=t[r],i=e[r];if(!!n!==!!i)return;if(n&&i){const e=n.getWithExplicit("orient"),o=i.getWithExplicit("orient");if(e.explicit&&o.explicit&&e.value!==o.value)return;t[r]=UG(n,i)}}}return t}function UG(t,e){for(const n of PG){const r=WL(t.getWithExplicit(n),e.getWithExplicit(n),n,"axis",((t,e)=>{switch(n){case"title":return NT(t,e);case"gridScale":return{explicit:t.explicit,value:FC(t.value,e.value)}}return qL(t,e,n,"axis")}));t.setWithExplicit(n,r)}return t}function qG(t,e,n,r,i){if("disable"===e)return void 0!==n;switch(n=n||{},e){case"titleAngle":case"labelAngle":return t===(cT(n.labelAngle)?n.labelAngle:NC(n.labelAngle));case"values":return!!n.values;case"encode":return!!n.encoding||!!n.labelAngle;case"title":if(t===Dq(r,i))return!0}return t===n[e]}const WG=new Set(["grid","translate","format","formatType","orient","labelExpr","tickCount","position","tickMinStep"]);function HG(t,e){var n,r,i,o,a;let s=e.axis(t);const c=new LG,u=kR(e.encoding[t]),{mark:l,config:f}=e,d=(null===(n=s)||void 0===n?void 0:n.orient)||(null===(r=f["x"===t?"axisX":"axisY"])||void 0===r?void 0:r.orient)||(null===(i=f.axis)||void 0===i?void 0:i.orient)||function(t){return"x"===t?"bottom":"left"}(t),h=e.getScaleComponent(t).get("type"),p=function(t,e,n,r){const i="band"===e?["axisDiscrete","axisBand"]:"point"===e?["axisDiscrete","axisPoint"]:bO(e)?["axisQuantitative"]:"time"===e||"utc"===e?["axisTemporal"]:[],o="x"===t?"axisX":"axisY",a=cT(n)?"axisOrient":"axis".concat(vC(n)),s=[...i,...i.map((t=>o+t.substr(4)))],c=["axis",a,o];return{vlOnlyAxisConfig:Aq(s,r,t,n),vgAxisConfig:Aq(c,r,t,n),axisConfigStyle:xq([...c,...s],r)}}(t,h,d,e.config),m=void 0!==s?!s:_q("disable",f.style,null===(o=s)||void 0===o?void 0:o.style,p).configValue;if(c.set("disable",m,void 0!==s),m)return c;s=s||{};const g=function(t,e,n,r,i){const o=null===e||void 0===e?void 0:e.labelAngle;if(void 0!==o)return cT(o)?o:NC(o);{const{configValue:o}=_q("labelAngle",r,null===e||void 0===e?void 0:e.style,i);return void 0!==o?NC(o):n!==UC||!QD([rO,eO],t.type)||tR(t)&&t.timeUnit?void 0:270}}(u,s,t,f.style,p),y=MB(s.formatType,u,h),b=CB(u,u.type,s.format,s.formatType,f,!0),A={fieldOrDatumDef:u,axis:s,channel:t,model:e,scaleType:h,orient:d,labelAngle:g,format:b,formatType:y,mark:l,config:f};for(const v of PG){const n=v in wq?wq[v](A):jR(v)?s[v]:void 0,r=void 0!==n,i=qG(n,v,s,e,t);if(r&&i)c.set(v,n,i);else{const{configValue:t,configFrom:e}=jR(v)&&"values"!==v?_q(v,f.style,s.style,p):{},o=void 0!==t;r&&!o?c.set(v,n,i):("vgAxisConfig"!==e||WG.has(v)&&o||RR(t)||cT(t))&&c.set(v,t,!1)}}const x=null!==(a=s.encoding)&&void 0!==a?a:{},_=zR.reduce(((n,r)=>{var i;if(!c.hasAxisPart(r))return n;const o=Zq(null!==(i=x[r])&&void 0!==i?i:{},e),a="labels"===r?function(t,e,n){var r;const{encoding:i,config:o}=t,a=null!==(r=kR(i[e]))&&void 0!==r?r:kR(i[YM(e)]),s=t.axis(e)||{},{format:c,formatType:u}=s;if(wB(u))return(0,v.A)({text:DB({fieldOrDatumDef:a,field:"datum.value",format:c,formatType:u,config:o})},n);if(void 0===c&&void 0===u&&o.customFormatTypes){if("quantitative"===eR(a)){if(lR(a)&&"normalize"===a.stack&&o.normalizedNumberFormatType)return(0,v.A)({text:DB({fieldOrDatumDef:a,field:"datum.value",format:o.normalizedNumberFormat,formatType:o.normalizedNumberFormatType,config:o})},n);if(o.numberFormatType)return(0,v.A)({text:DB({fieldOrDatumDef:a,field:"datum.value",format:o.numberFormat,formatType:o.numberFormatType,config:o})},n)}if("temporal"===eR(a)&&o.timeFormatType&&tR(a)&&!a.timeUnit)return(0,v.A)({text:DB({fieldOrDatumDef:a,field:"datum.value",format:o.timeFormat,formatType:o.timeFormatType,config:o})},n)}return n}(e,t,o):o;return void 0===a||uC(a)||(n[r]={update:a}),n}),{});return uC(_)||c.set("encode",_,!!s.encoding||void 0!==s.labelAngle),c}function GG(t,e){const{config:n}=t;return(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"})),ej("x",t,{defaultPos:"mid"})),ej("y",t,{defaultPos:"mid"})),JI("size",t)),JI("angle",t)),function(t,e,n){if(n)return{shape:{value:n}};return JI("shape",t)}(t,0,e))}const YG={vgMark:"rule",encodeEntry:t=>{const{markDef:e}=t,n=e.orient;return t.encoding.x||t.encoding.y||t.encoding.latitude||t.encoding.longitude?(0,v.A)((0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),sj("x",t,{defaultPos:"horizontal"===n?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:"vertical"!==n})),sj("y",t,{defaultPos:"vertical"===n?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:"horizontal"!==n})),JI("size",t,{vgChannel:"strokeWidth"})):{}}},VG={vgMark:"text",encodeEntry:t=>{const{config:e,encoding:n}=t;return(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"include",baseline:"include",color:"include",size:"ignore",orient:"ignore",theta:"include"})),ej("x",t,{defaultPos:"mid"})),ej("y",t,{defaultPos:"mid"})),GI(t)),JI("size",t,{vgChannel:"fontSize"})),JI("angle",t)),yj("align",function(t,e,n){const r=ET("align",t,n);if(void 0===r)return"center";return}(t.markDef,0,e))),yj("baseline",function(t,e,n){const r=ET("baseline",t,n);if(void 0===r)return"middle";return}(t.markDef,0,e))),ej("radius",t,{defaultPos:null})),ej("theta",t,{defaultPos:null}))}};const $G={vgMark:"rect",encodeEntry:t=>{const{config:e,markDef:n}=t,r=n.orient,i="horizontal"===r?"x":"y",o="horizontal"===r?"y":"x",a="horizontal"===r?"height":"width";return(0,v.A)((0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),lj(t,i)),ej(o,t,{defaultPos:"mid",vgChannel:"y"===o?"yc":"xc"})),{},{[a]:AT(ET("thickness",n,e))})}},XG={arc:{vgMark:"arc",encodeEntry:t=>(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),ej("x",t,{defaultPos:"mid"})),ej("y",t,{defaultPos:"mid"})),lj(t,"radius")),lj(t,"theta"))},area:{vgMark:"area",encodeEntry:t=>(0,v.A)((0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"include",orient:"include",size:"ignore",theta:"ignore"})),sj("x",t,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:"horizontal"===t.markDef.orient})),sj("y",t,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:"vertical"===t.markDef.orient})),vj(t))},bar:{vgMark:"rect",encodeEntry:t=>(0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),lj(t,"x")),lj(t,"y"))},circle:{vgMark:"symbol",encodeEntry:t=>GG(t,"circle")},geoshape:{vgMark:"shape",encodeEntry:t=>(0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),postEncodingTransform:t=>{const{encoding:e}=t,n=e.shape;return[(0,v.A)({type:"geoshape",projection:t.projectionName()},n&&tR(n)&&n.type===iO?{field:pR(n,{expr:"datum"})}:{})]}},image:{vgMark:"image",encodeEntry:t=>(0,v.A)((0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"ignore",orient:"ignore",size:"ignore",theta:"ignore"})),lj(t,"x")),lj(t,"y")),GI(t,"url"))},line:{vgMark:"line",encodeEntry:t=>(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),ej("x",t,{defaultPos:"mid"})),ej("y",t,{defaultPos:"mid"})),JI("size",t,{vgChannel:"strokeWidth"})),vj(t))},point:{vgMark:"symbol",encodeEntry:t=>GG(t)},rect:{vgMark:"rect",encodeEntry:t=>(0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),lj(t,"x")),lj(t,"y"))},rule:YG,square:{vgMark:"symbol",encodeEntry:t=>GG(t,"square")},text:VG,tick:$G,trail:{vgMark:"trail",encodeEntry:t=>(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({},mj(t,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"})),ej("x",t,{defaultPos:"mid"})),ej("y",t,{defaultPos:"mid"})),JI("size",t)),vj(t))}};function ZG(t){if(QD([HO,UO,ZO],t.mark)){const e=tz(t.mark,t.encoding);if(e.length>0)return function(t,e){return[{name:t.getName("pathgroup"),type:"group",from:{facet:{name:JG+t.requestDataName(QL.Main),data:t.requestDataName(QL.Main),groupby:e}},encode:{update:{width:{field:{group:"width"}},height:{field:{group:"height"}}}},marks:KG(t,{fromPrefix:JG})}]}(t,e)}else if(t.mark===qO){const e=hT.some((e=>ET(e,t.markDef,t.config)));if(t.stack&&!t.fieldDef("size")&&e)return function(t){var e;const[n]=KG(t,{fromPrefix:QG}),r=t.scaleName(t.stack.fieldChannel),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.vgField(t.stack.fieldChannel,e)},o=(t,e)=>{const n=[i({prefix:"min",suffix:"start",expr:e}),i({prefix:"max",suffix:"start",expr:e}),i({prefix:"min",suffix:"end",expr:e}),i({prefix:"max",suffix:"end",expr:e})];return"".concat(t,"(").concat(n.map((t=>"scale('".concat(r,"',").concat(t,")"))).join(","),")")};let a,s;"x"===t.stack.fieldChannel?(a=(0,v.A)((0,v.A)({},$D(n.encode.update,["y","yc","y2","height",...hT])),{},{x:{signal:o("min","datum")},x2:{signal:o("max","datum")},clip:{value:!0}}),s={x:{field:{group:"x"},mult:-1},height:{field:{group:"height"}}},n.encode.update=(0,v.A)((0,v.A)({},XD(n.encode.update,["y","yc","y2"])),{},{height:{field:{group:"height"}}})):(a=(0,v.A)((0,v.A)({},$D(n.encode.update,["x","xc","x2","width"])),{},{y:{signal:o("min","datum")},y2:{signal:o("max","datum")},clip:{value:!0}}),s={y:{field:{group:"y"},mult:-1},width:{field:{group:"width"}}},n.encode.update=(0,v.A)((0,v.A)({},XD(n.encode.update,["x","xc","x2"])),{},{width:{field:{group:"width"}}}));for(const u of hT){const e=FT(u,t.markDef,t.config);n.encode.update[u]?(a[u]=n.encode.update[u],delete n.encode.update[u]):e&&(a[u]=AT(e)),e&&(n.encode.update[u]={value:0})}const c=[];if((null===(e=t.stack.groupbyChannels)||void 0===e?void 0:e.length)>0)for(const u of t.stack.groupbyChannels){const e=t.fieldDef(u),n=pR(e);n&&c.push(n),(null!==e&&void 0!==e&&e.bin||null!==e&&void 0!==e&&e.timeUnit)&&c.push(pR(e,{binSuffix:"end"}))}a=["stroke","strokeWidth","strokeJoin","strokeCap","strokeDash","strokeDashOffset","strokeMiterLimit","strokeOpacity"].reduce(((e,r)=>{if(n.encode.update[r])return(0,v.A)((0,v.A)({},e),{},{[r]:n.encode.update[r]});{const n=FT(r,t.markDef,t.config);return void 0!==n?(0,v.A)((0,v.A)({},e),{},{[r]:AT(n)}):e}}),a),a.stroke&&(a.strokeForeground={value:!0},a.strokeOffset={value:0});return[{type:"group",from:{facet:{data:t.requestDataName(QL.Main),name:QG+t.requestDataName(QL.Main),groupby:c,aggregate:{fields:[i({suffix:"start"}),i({suffix:"start"}),i({suffix:"end"}),i({suffix:"end"})],ops:["min","max","min","max"]}}},encode:{update:a},marks:[{type:"group",encode:{update:s},marks:[n]}]}]}(t)}return KG(t)}const JG="faceted_path_";const QG="stack_group_";function KG(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromPrefix:""};const{mark:n,markDef:r,encoding:i,config:o}=t,a=FC(r.clip,function(t){const e=t.getScaleComponent("x"),n=t.getScaleComponent("y");return!!(null!==e&&void 0!==e&&e.get("selectionExtent")||null!==n&&void 0!==n&&n.get("selectionExtent"))||void 0}(t),function(t){const e=t.component.projection;return!(!e||e.isFit)||void 0}(t)),s=kT(r),c=i.key,u=function(t){const{encoding:e,stack:n,mark:r,markDef:i,config:o}=t,a=e.order;if(!(!q(a)&&cR(a)&&JD(a.value)||!a&&JD(ET("order",i,o)))){if((q(a)||tR(a))&&!n)return MT(a,{expr:"datum"});if(tB(r)){const t="horizontal"===i.orient?"y":"x";if(tR(e[t]))return{field:t}}}}(t),l=function(t){if(!t.component.selection)return null;const e=lC(t.component.selection).length;let n=e,r=t.parent;for(;r&&0===n;)n=lC(r.component.selection).length,r=r.parent;return n?{interactive:e>0||"geoshape"===t.mark||!!t.encoding.tooltip||!!t.markDef.tooltip}:null}(t),f=ET("aria",r,o),d=XG[n].postEncodingTransform?XG[n].postEncodingTransform(t):null;return[(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({name:t.getName("marks"),type:XG[n].vgMark},a?{clip:a}:{}),s?{style:s}:{}),c?{key:c.field}:{}),u?{sort:u}:{}),l||{}),!1===f?{aria:f}:{}),{},{from:{data:e.fromPrefix+t.requestDataName(QL.Main)},encode:{update:XG[n].encodeEntry(t)}},d?{transform:d}:{})]}class tY extends iG{constructor(t,e,n){var r;let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;super(t,"unit",e,n,o,void 0,Zz(t)?t.view:void 0),this.specifiedScales={},this.specifiedAxes={},this.specifiedLegends={},this.specifiedProjection={},this.selection=[],this.children=[],this.correctDataNames=t=>{var e,n;return null!==(e=t.from)&&void 0!==e&&e.data&&(t.from.data=this.lookupDataSource(t.from.data),"time"in this.encoding&&(t.from.data=t.from.data+gI)),null!==(n=t.from)&&void 0!==n&&null!==(n=n.facet)&&void 0!==n&&n.data&&(t.from.facet.data=this.lookupDataSource(t.from.facet.data)),t};const a=rB(t.mark)?(0,v.A)({},t.mark):{type:t.mark},s=a.type;void 0===a.filled&&(a.filled=function(t,e,n){let{graticule:r}=n;if(r)return!1;const i=FT("filled",t,e),o=t.type;return FC(i,o!==GO&&o!==HO&&o!==VO)}(a,o,{graticule:t.data&&JL(t.data)}));const c=this.encoding=function(t,e,n,r){const i={};for(const a of lC(t))UM(a)||mN("".concat(o=a,"-encoding is dropped as ").concat(o," is not a valid encoding channel."));var o;for(let a of JM){if(!t[a])continue;const o=t[a];if(xS(a)){const t=ZM(a),e=i[t];if(tR(e)&&QN(e.type)&&tR(o)&&!e.timeUnit){mN($T(t));continue}}if("angle"!==a||"arc"!==e||t.theta||(mN("Arc marks uses theta channel rather than angle, replacing angle with theta."),a=XC),JR(t,a,e)){if(a===aM&&"line"===e){const e=wR(t[a]);if(null!==e&&void 0!==e&&e.aggregate){mN("Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.");continue}}if(a===nM&&(n?"fill"in t:"stroke"in t))mN(ZT("encoding",{fill:"fill"in t,stroke:"stroke"in t}));else if(a===mM||a===pM&&!q(o)&&!cR(o)||a===vM&&q(o)){if(o){if(a===pM){const e=t[a];if(ZB(e)){i[a]=e;continue}}i[a]=ht(o).reduce(((t,e)=>(tR(e)?t.push(DR(e,a)):mN(JT(e,a)),t)),[])}}else{if(a===vM&&null===o)i[a]=null;else if(!tR(o)&&!nR(o)&&!cR(o)&&!JB(o)&&!cT(o)){mN(JT(o,a));continue}i[a]=ER(o,a,r)}}else mN(QT(a,e))}return i}(t.encoding||{},s,a.filled,o);this.markDef=EP(a,c,o),this.size=function(t){let{encoding:e,size:n}=t;for(const r of mS){const t=VM(r);Xz(n[t])&&rR(e[r])&&(delete n[t],mN(aN(t)))}return n}({encoding:c,size:Zz(t)?(0,v.A)((0,v.A)((0,v.A)({},i),t.width?{width:t.width}:{}),t.height?{height:t.height}:{}):i}),this.stack=kP(this.markDef,c),this.specifiedScales=this.initScales(s,c),this.specifiedAxes=this.initAxes(c),this.specifiedLegends=this.initLegends(c),this.specifiedProjection=t.projection,this.selection=(null!==(r=t.params)&&void 0!==r?r:[]).filter((t=>qz(t)))}get hasProjection(){const{encoding:t}=this,e=this.mark===KO,n=t&&FM.some((e=>aR(t[e])));return e||n}scaleDomain(t){const e=this.specifiedScales[t];return e?e.domain:void 0}axis(t){return this.specifiedAxes[t]}legend(t){return this.specifiedLegends[t]}initScales(t,e){return RS.reduce(((t,n)=>{const r=kR(e[n]);var i;r&&(t[n]=this.initScale(null!==(i=r.scale)&&void 0!==i?i:{}));return t}),{})}initScale(t){const{domain:e,range:n}=t,r=iT(t);return q(e)&&(r.domain=e.map(yT)),q(n)&&(r.range=n.map(yT)),r}initAxes(t){return mS.reduce(((e,n)=>{const r=t[n];if(aR(r)||n===UC&&aR(t.x2)||n===qC&&aR(t.y2)){const t=aR(r)?r.axis:void 0;e[n]=t?this.initAxis((0,v.A)({},t)):t}return e}),{})}initAxis(t){const e=lC(t),n={};for(const r of e){const e=t[r];n[r]=RR(e)?vT(e):yT(e)}return n}initLegends(t){return OS.reduce(((e,n)=>{const r=kR(t[n]);if(r&&function(t){switch(t){case nM:case rM:case iM:case aM:case oM:case cM:case fM:case dM:return!0;case uM:case lM:case sM:case eM:return!1}}(n)){const t=r.legend;e[n]=t?iT(t):t}return e}),{})}parseData(){this.component.data=OG(this)}parseLayoutSize(){!function(t){const{size:e,component:n}=t;for(const r of mS){const i=VM(r);if(e[i]){const t=e[i];n.layoutSize.set(i,Xz(t)?"step":t,!0)}else{const e=MG(t,i);n.layoutSize.set(i,e,!1)}}}(this)}parseSelections(){this.component.selection=function(t,e){const n={},r=t.config.selection;if(!e||!e.length)return n;let i=0;for(const a of e){const e=pC(a.name),s=a.select,c=Lt(s)?s:s.type,u=W(s)?YD(s):{type:c},l=r[c];for(const t in l){var o;"fields"!==t&&"encodings"!==t&&("mark"===t&&(u.mark=(0,v.A)((0,v.A)({},l.mark),u.mark)),(void 0===u[t]||!0===u[t])&&(u[t]=YD(null!==(o=l[t])&&void 0!==o?o:u[t])))}const f=n[e]=(0,v.A)((0,v.A)({},u),{},{name:e,type:c,init:a.value,bind:a.bind,events:Lt(u.on)?cw(u.on,"scope"):ht(YD(u.on))});if(Hj(f)&&(i++,i>1)){delete n[e];continue}const d=YD(a);for(const n of jj)n.defined(f)&&n.parse&&n.parse(t,f,d)}return i>1&&mN("Multiple timer selections in one unit spec are not supported. Ignoring all but the first."),n}(this,this.selection)}parseMarkGroup(){this.component.mark=ZG(this)}parseAxesAndHeaders(){var t;this.component.axes=(t=this,mS.reduce(((e,n)=>(t.component.scales[n]&&(e[n]=[HG(n,t)]),e)),{}))}assembleSelectionTopLevelSignals(t){return function(t,e){let n=!1;for(const i of fC(null!==(r=t.component.selection)&&void 0!==r?r:{})){var r;const o=i.name,a=Vt(o+zj);if(0===e.filter((t=>t.name===o)).length){const t="global"===i.resolve?"union":i.resolve,n="point"===i.type?", true, true)":")";e.push({name:i.name,update:"".concat(Ij,"(").concat(a,", ").concat(Vt(t)).concat(n)})}n=!0;for(const n of jj)n.defined(i)&&n.topLevelSignals&&(e=n.topLevelSignals(t,i,e))}n&&0===e.filter((t=>"unit"===t.name)).length&&e.unshift({name:"unit",value:{},on:[{events:"pointermove",update:"isTuple(group()) ? group() : unit"}]});return NI(e)}(this,t)}assembleSignals(){return[...bq(this),...SI(this,[])]}assembleSelectionData(t){return function(t,e){const n=[],r=[],i=Uj(t,{escape:!1});for(const a of fC(null!==(o=t.component.selection)&&void 0!==o?o:{})){var o;const s={name:a.name+zj};if(a.project.hasSelectionId&&(s.transform=[{type:"collect",sort:{field:Lz}}]),a.init){const t=a.project.items.map(CI);s.values=a.project.hasSelectionId?a.init.map((t=>({unit:i,[Lz]:MI(t,!1)[0]}))):a.init.map((e=>({unit:i,fields:t,values:MI(e,!1)})))}if([...n,...e].filter((t=>t.name===a.name+zj)).length||n.push(s),Hj(a)&&e.length){const n=t.lookupDataSource(t.getDataName(QL.Main)),i=e.find((t=>t.name===n)),o=i.transform.find((t=>"filter"===t.type&&t.expr.includes("vlSelectionTest")));if(o){i.transform=i.transform.filter((t=>t!==o));const t={name:i.name+gI,source:i.name,transform:[o]};r.push(t)}}}return n.concat(e,r)}(this,t)}assembleLayout(){return null}assembleLayoutSignals(){return Gq(this)}assembleMarks(){var t;let e=null!==(t=this.component.mark)&&void 0!==t?t:[];return this.parent&&nG(this.parent)||(e=TI(this,e)),e.map(this.correctDataNames)}assembleGroupStyle(){const{style:t}=this.view||{};return void 0!==t?t:this.encoding.x||this.encoding.y?"cell":"view"}getMapping(){return this.encoding}get mark(){return this.markDef.type}channelHasField(t){return YR(this.encoding,t)}fieldDef(t){return wR(this.encoding[t])}typedFieldDef(t){const e=this.fieldDef(t);return sR(e)?e:null}}class eY extends rG{constructor(t,e,n,r,i){super(t,"layer",e,n,i,t.resolve,t.view);const o=(0,v.A)((0,v.A)((0,v.A)({},r),t.width?{width:t.width}:{}),t.height?{height:t.height}:{});this.children=t.layer.map(((t,e)=>{if(gP(t))return new eY(t,this,this.getName("layer_".concat(e)),o,i);if(qR(t))return new tY(t,this,this.getName("layer_".concat(e)),o,i);throw new Error(OT(t))}))}parseData(){this.component.data=OG(this);for(const t of this.children)t.parseData()}parseLayoutSize(){var t;DG(t=this),CG(t,"width"),CG(t,"height")}parseSelections(){this.component.selection={};for(const t of this.children){t.parseSelections();for(const e of lC(t.component.selection))this.component.selection[e]=t.component.selection[e]}Object.values(this.component.selection).some((t=>Hj(t)))&&pN(HT)}parseMarkGroup(){for(const t of this.children)t.parseMarkGroup()}parseAxesAndHeaders(){!function(t){const{axes:e,resolve:n}=t.component,r={top:0,bottom:0,right:0,left:0};for(const o of t.children){o.parseAxesAndHeaders();for(const r of lC(o.component.axes))n.axis[r]=Qq(t.component.resolve,r),"shared"===n.axis[r]&&(e[r]=jG(e[r],o.component.axes[r]),e[r]||(n.axis[r]="independent",delete e[r]))}for(const o of mS){for(const a of t.children)if(a.component.axes[o]){if("independent"===n.axis[o]){var i;e[o]=(null!==(i=e[o])&&void 0!==i?i:[]).concat(a.component.axes[o]);for(const t of a.component.axes[o]){const{value:e,explicit:n}=t.getWithExplicit("orient");if(!cT(e)){if(r[e]>0&&!n){const n=IG[e];r[e]>r[n]&&t.set("orient",n,!1)}r[e]++}}}delete a.component.axes[o]}if("independent"===n.axis[o]&&e[o]&&e[o].length>1)for(const[t,n]of(e[o]||[]).entries())t>0&&n.get("grid")&&!n.explicit.grid&&(n.implicit.grid=!1)}}(this)}assembleSelectionTopLevelSignals(t){return this.children.reduce(((t,e)=>e.assembleSelectionTopLevelSignals(t)),t)}assembleSignals(){return this.children.reduce(((t,e)=>t.concat(e.assembleSignals())),bq(this))}assembleLayoutSignals(){return this.children.reduce(((t,e)=>t.concat(e.assembleLayoutSignals())),Gq(this))}assembleSelectionData(t){return this.children.reduce(((t,e)=>e.assembleSelectionData(t)),t)}assembleGroupStyle(){const t=new Set;for(const n of this.children)for(const e of ht(n.assembleGroupStyle()))t.add(e);const e=Array.from(t);return e.length>1?e:1===e.length?e[0]:void 0}assembleTitle(){let t=super.assembleTitle();if(t)return t;for(const e of this.children)if(t=e.assembleTitle(),t)return t}assembleLayout(){return null}assembleMarks(){return function(t,e){for(const n of t.children)KH(n)&&(e=TI(n,e));return e}(this,this.children.flatMap((t=>t.assembleMarks())))}assembleLegends(){return this.children.reduce(((t,e)=>t.concat(e.assembleLegends())),vW(this))}}function nY(t,e,n,r,i){if(UB(t))return new TG(t,e,n,i);if(gP(t))return new eY(t,e,n,r,i);if(qR(t))return new tY(t,e,n,r,i);if(function(t){return Yz(t)||Vz(t)||Gz(t)}(t))return new RG(t,e,n,i);throw new Error(OT(t))}const rY=["params"];function iY(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;e.logger&&(n=e.logger,dN=n),e.fieldTitle&&yR(e.fieldTitle);try{const n=lP(G(e.config,t.config)),r=TL(t,n),i=nY(r,null,"",void 0,n);i.parse(),function(t,e){dH(t.sources);let n=0,r=0;for(let i=0;i<fH&&pH(t,e,!0);i++)n++;t.sources.map(cH);for(let i=0;i<fH&&pH(t,e,!1);i++)r++;dH(t.sources),Math.max(n,r)===fH&&mN("Maximum optimization runs(".concat(fH,") reached."))}(i.component.data,i);const o=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;const i=t.config?pP(t.config):void 0,o=function(t,e){const n=[],r=_G(n);let i=0;for(const c of t.sources){c.hasName()||(c.dataName="source_".concat(i++));const t=c.assemble();r(c,t)}for(const c of n)0===c.transform.length&&delete c.transform;let o=0;for(const[c,u]of n.entries()){var a;0!==(null!==(a=u.transform)&&void 0!==a?a:[]).length||u.source||n.splice(o++,0,n.splice(c,1)[0])}for(const c of n)for(const e of null!==(s=c.transform)&&void 0!==s?s:[]){var s;"lookup"===e.type&&(e.from=t.outputNodes[e.from].getSource())}for(const c of n)c.name in e&&(c.values=e[c.name]);return n}(t.component.data,n),a=t.assembleSelectionData(o),s=t.assembleProjections(),c=t.assembleTitle(),u=t.assembleGroupStyle(),l=t.assembleGroupEncodeEntry(!0);let f=t.assembleLayoutSignals();f=f.filter((t=>"width"!==t.name&&"height"!==t.name||void 0===t.value||(e[t.name]=+t.value,!1)));const{params:d}=e,h=(0,jD.A)(e,rY);return(0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)((0,v.A)({$schema:"https://vega.github.io/schema/vega/v5.json"},t.description?{description:t.description}:{}),h),c?{title:c}:{}),u?{style:u}:{}),l?{encode:{update:l}}:{}),{},{data:a},s.length>0?{projections:s}:{}),t.assembleGroup([...f,...t.assembleSelectionTopLevelSignals([]),...Hz(d)])),i?{config:i}:{}),r?{usermeta:r}:{})}(i,function(t,e,n,r){const i=r.component.layoutSize.get("width"),o=r.component.layoutSize.get("height");void 0===e?(e={type:"pad"},r.hasAxisOrientSignalRef()&&(e.resize=!0)):Lt(e)&&(e={type:e});if(i&&o&&(a=e.type,["fit","fit-x","fit-y"].includes(a)))if("step"===i&&"step"===o)mN(PT()),e.type="pad";else if("step"===i||"step"===o){const t="step"===i?"width":"height";mN(PT(bS(t)));const n="width"===t?"height":"width";e.type=function(t){return t?"fit-".concat(bS(t)):"fit"}(n)}var a;return(0,v.A)((0,v.A)((0,v.A)({},1===lC(e).length&&e.type?"pad"===e.type?{}:{autosize:e.type}:{autosize:e}),PL(n,!1)),PL(t,!0))}(t,r.autosize,n,i),t.datasets,t.usermeta);return{spec:o,normalized:r}}finally{e.logger&&hN(),e.fieldTitle&&yR(gR)}}const oY="5.23.0";const aY=function(t){const[e,n]=/schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(t).slice(1,3);return{library:e,version:n}};var sY="2.15.0";const cY="#fff",uY="#888",lY={background:"#333",view:{stroke:uY},title:{color:cY,subtitleColor:cY},style:{"guide-label":{fill:cY},"guide-title":{fill:cY}},axis:{domainColor:cY,gridColor:uY,tickColor:cY}},fY="#4572a7",dY={background:"#fff",arc:{fill:fY},area:{fill:fY},line:{stroke:fY,strokeWidth:2},path:{stroke:fY},rect:{fill:fY},shape:{stroke:fY},symbol:{fill:fY,strokeWidth:1.5,size:50},axis:{bandPosition:.5,grid:!0,gridColor:"#000000",gridOpacity:1,gridWidth:.5,labelPadding:10,tickSize:5,tickWidth:.5},axisBand:{grid:!1,tickExtra:!0},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:50,symbolType:"square"},range:{category:["#4572a7","#aa4643","#8aa453","#71598e","#4598ae","#d98445","#94aace","#d09393","#b9cc98","#a99cbc"]}},hY="#30a2da",pY="#cbcbcb",mY="#f0f0f0",gY="#333",vY={arc:{fill:hY},area:{fill:hY},axis:{domainColor:pY,grid:!0,gridColor:pY,gridWidth:1,labelColor:"#999",labelFontSize:10,titleColor:"#333",tickColor:pY,tickSize:10,titleFontSize:14,titlePadding:10,labelPadding:4},axisBand:{grid:!1},background:mY,group:{fill:mY},legend:{labelColor:gY,labelFontSize:11,padding:1,symbolSize:30,symbolType:"square",titleColor:gY,titleFontSize:14,titlePadding:10},line:{stroke:hY,strokeWidth:2},path:{stroke:hY,strokeWidth:.5},rect:{fill:hY},range:{category:["#30a2da","#fc4f30","#e5ae38","#6d904f","#8b8b8b","#b96db8","#ff9e27","#56cc60","#52d2ca","#52689e","#545454","#9fe4f8"],diverging:["#cc0020","#e77866","#f6e7e1","#d6e8ed","#91bfd9","#1d78b5"],heatmap:["#d6e8ed","#cee0e5","#91bfd9","#549cc6","#1d78b5"]},point:{filled:!0,shape:"circle"},shape:{stroke:hY},bar:{binSpacing:2,fill:hY,stroke:null},title:{anchor:"start",fontSize:24,fontWeight:600,offset:20}},yY="#000",bY={group:{fill:"#e5e5e5"},arc:{fill:yY},area:{fill:yY},line:{stroke:yY},path:{stroke:yY},rect:{fill:yY},shape:{stroke:yY},symbol:{fill:yY,size:40},axis:{domain:!1,grid:!0,gridColor:"#FFFFFF",gridOpacity:1,labelColor:"#7F7F7F",labelPadding:4,tickColor:"#7F7F7F",tickSize:5.67,titleFontSize:16,titleFontWeight:"normal"},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:40},range:{category:["#000000","#7F7F7F","#1A1A1A","#999999","#333333","#B0B0B0","#4D4D4D","#C9C9C9","#666666","#DCDCDC"]}},AY="Benton Gothic, sans-serif",xY="#82c6df",_Y="Benton Gothic Bold, sans-serif",wY="normal",kY={"category-6":["#ec8431","#829eb1","#c89d29","#3580b1","#adc839","#ab7fb4"],"fire-7":["#fbf2c7","#f9e39c","#f8d36e","#f4bb6a","#e68a4f","#d15a40","#ab4232"],"fireandice-6":["#e68a4f","#f4bb6a","#f9e39c","#dadfe2","#a6b7c6","#849eae"],"ice-7":["#edefee","#dadfe2","#c4ccd2","#a6b7c6","#849eae","#607785","#47525d"]},EY={background:"#ffffff",title:{anchor:"start",color:"#000000",font:_Y,fontSize:22,fontWeight:"normal"},arc:{fill:xY},area:{fill:xY},line:{stroke:xY,strokeWidth:2},path:{stroke:xY},rect:{fill:xY},shape:{stroke:xY},symbol:{fill:xY,size:30},axis:{labelFont:AY,labelFontSize:11.5,labelFontWeight:"normal",titleFont:_Y,titleFontSize:13,titleFontWeight:wY},axisX:{labelAngle:0,labelPadding:4,tickSize:3},axisY:{labelBaseline:"middle",maxExtent:45,minExtent:45,tickSize:2,titleAlign:"left",titleAngle:0,titleX:-45,titleY:-11},legend:{labelFont:AY,labelFontSize:11.5,symbolType:"square",titleFont:_Y,titleFontSize:13,titleFontWeight:wY},range:{category:kY["category-6"],diverging:kY["fireandice-6"],heatmap:kY["fire-7"],ordinal:kY["fire-7"],ramp:kY["fire-7"]}},FY="#ab5787",DY="#979797",CY={background:"#f9f9f9",arc:{fill:FY},area:{fill:FY},line:{stroke:FY},path:{stroke:FY},rect:{fill:FY},shape:{stroke:FY},symbol:{fill:FY,size:30},axis:{domainColor:DY,domainWidth:.5,gridWidth:.2,labelColor:DY,tickColor:DY,tickWidth:.2,titleColor:DY},axisBand:{grid:!1},axisX:{grid:!0,tickSize:10},axisY:{domain:!1,grid:!0,tickSize:0},legend:{labelFontSize:11,padding:1,symbolSize:30,symbolType:"square"},range:{category:["#ab5787","#51b2e5","#703c5c","#168dd9","#d190b6","#00609f","#d365ba","#154866","#666666","#c4c4c4"]}},MY="#3e5c69",SY={background:"#fff",arc:{fill:MY},area:{fill:MY},line:{stroke:MY},path:{stroke:MY},rect:{fill:MY},shape:{stroke:MY},symbol:{fill:MY},axis:{domainWidth:.5,grid:!0,labelPadding:2,tickSize:5,tickWidth:.5,titleFontWeight:"normal"},axisBand:{grid:!1},axisX:{gridWidth:.2},axisY:{gridDash:[3],gridWidth:.4},legend:{labelFontSize:11,padding:1,symbolType:"square"},range:{category:["#3e5c69","#6793a6","#182429","#0570b0","#3690c0","#74a9cf","#a6bddb","#e2ddf2"]}},TY="#1696d2",NY="#000000",OY="Lato",BY="Lato",RY={"main-colors":["#1696d2","#d2d2d2","#000000","#fdbf11","#ec008b","#55b748","#5c5859","#db2b27"],"shades-blue":["#CFE8F3","#A2D4EC","#73BFE2","#46ABDB","#1696D2","#12719E","#0A4C6A","#062635"],"shades-gray":["#F5F5F5","#ECECEC","#E3E3E3","#DCDBDB","#D2D2D2","#9D9D9D","#696969","#353535"],"shades-yellow":["#FFF2CF","#FCE39E","#FDD870","#FCCB41","#FDBF11","#E88E2D","#CA5800","#843215"],"shades-magenta":["#F5CBDF","#EB99C2","#E46AA7","#E54096","#EC008B","#AF1F6B","#761548","#351123"],"shades-green":["#DCEDD9","#BCDEB4","#98CF90","#78C26D","#55B748","#408941","#2C5C2D","#1A2E19"],"shades-black":["#D5D5D4","#ADABAC","#848081","#5C5859","#332D2F","#262223","#1A1717","#0E0C0D"],"shades-red":["#F8D5D4","#F1AAA9","#E9807D","#E25552","#DB2B27","#A4201D","#6E1614","#370B0A"],"one-group":["#1696d2","#000000"],"two-groups-cat-1":["#1696d2","#000000"],"two-groups-cat-2":["#1696d2","#fdbf11"],"two-groups-cat-3":["#1696d2","#db2b27"],"two-groups-seq":["#a2d4ec","#1696d2"],"three-groups-cat":["#1696d2","#fdbf11","#000000"],"three-groups-seq":["#a2d4ec","#1696d2","#0a4c6a"],"four-groups-cat-1":["#000000","#d2d2d2","#fdbf11","#1696d2"],"four-groups-cat-2":["#1696d2","#ec0008b","#fdbf11","#5c5859"],"four-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a"],"five-groups-cat-1":["#1696d2","#fdbf11","#d2d2d2","#ec008b","#000000"],"five-groups-cat-2":["#1696d2","#0a4c6a","#d2d2d2","#fdbf11","#332d2f"],"five-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a","#000000"],"six-groups-cat-1":["#1696d2","#ec008b","#fdbf11","#000000","#d2d2d2","#55b748"],"six-groups-cat-2":["#1696d2","#d2d2d2","#ec008b","#fdbf11","#332d2f","#0a4c6a"],"six-groups-seq":["#cfe8f3","#a2d4ec","#73bfe2","#46abdb","#1696d2","#12719e"],"diverging-colors":["#ca5800","#fdbf11","#fdd870","#fff2cf","#cfe8f3","#73bfe2","#1696d2","#0a4c6a"]},zY={background:"#FFFFFF",title:{anchor:"start",fontSize:18,font:OY},axisX:{domain:!0,domainColor:NY,domainWidth:1,grid:!1,labelFontSize:12,labelFont:BY,labelAngle:0,tickColor:NY,tickSize:5,titleFontSize:12,titlePadding:10,titleFont:OY},axisY:{domain:!1,domainWidth:1,grid:!0,gridColor:"#DEDDDD",gridWidth:1,labelFontSize:12,labelFont:BY,labelPadding:8,ticks:!1,titleFontSize:12,titlePadding:10,titleFont:OY,titleAngle:0,titleY:-10,titleX:18},legend:{labelFontSize:12,labelFont:BY,symbolSize:100,titleFontSize:12,titlePadding:10,titleFont:OY,orient:"right",offset:10},view:{stroke:"transparent"},range:{category:RY["six-groups-cat-1"],diverging:RY["diverging-colors"],heatmap:RY["diverging-colors"],ordinal:RY["six-groups-seq"],ramp:RY["shades-blue"]},area:{fill:TY},rect:{fill:TY},line:{color:TY,stroke:TY,strokeWidth:5},trail:{color:TY,stroke:TY,strokeWidth:0,size:1},path:{stroke:TY,strokeWidth:.5},point:{filled:!0},text:{font:"Lato",color:TY,fontSize:11,align:"center",fontWeight:400,size:11},style:{bar:{fill:TY,stroke:null}},arc:{fill:TY},shape:{stroke:TY},symbol:{fill:TY,size:30}},PY="#3366CC",LY="#ccc",IY="Arial, sans-serif",jY={arc:{fill:PY},area:{fill:PY},path:{stroke:PY},rect:{fill:PY},shape:{stroke:PY},symbol:{stroke:PY},circle:{fill:PY},background:"#fff",padding:{top:10,right:10,bottom:10,left:10},style:{"guide-label":{font:IY,fontSize:12},"guide-title":{font:IY,fontSize:12},"group-title":{font:IY,fontSize:12}},title:{font:IY,fontSize:14,fontWeight:"bold",dy:-3,anchor:"start"},axis:{gridColor:LY,tickColor:LY,domain:!1,grid:!0},range:{category:["#4285F4","#DB4437","#F4B400","#0F9D58","#AB47BC","#00ACC1","#FF7043","#9E9D24","#5C6BC0","#F06292","#00796B","#C2185B"],heatmap:["#c6dafc","#5e97f6","#2a56c6"]}},UY=t=>t*(1/3+1),qY=UY(9),WY=UY(10),HY=UY(12),GY="Segoe UI",YY="wf_standard-font, helvetica, arial, sans-serif",VY="#252423",$Y="#605E5C",XY="transparent",ZY="#118DFF",JY="#DEEFFF",QY=[JY,ZY],KY={view:{stroke:XY},background:XY,font:GY,header:{titleFont:YY,titleFontSize:HY,titleColor:VY,labelFont:GY,labelFontSize:WY,labelColor:$Y},axis:{ticks:!1,grid:!1,domain:!1,labelColor:$Y,labelFontSize:qY,titleFont:YY,titleColor:VY,titleFontSize:HY,titleFontWeight:"normal"},axisQuantitative:{tickCount:3,grid:!0,gridColor:"#C8C6C4",gridDash:[1,5],labelFlush:!1},axisBand:{tickExtra:!0},axisX:{labelPadding:5},axisY:{labelPadding:10},bar:{fill:ZY},line:{stroke:ZY,strokeWidth:3,strokeCap:"round",strokeJoin:"round"},text:{font:GY,fontSize:qY,fill:$Y},arc:{fill:ZY},area:{fill:ZY,line:!0,opacity:.6},path:{stroke:ZY},rect:{fill:ZY},point:{fill:ZY,filled:!0,size:75},shape:{stroke:ZY},symbol:{fill:ZY,strokeWidth:1.5,size:50},legend:{titleFont:GY,titleFontWeight:"bold",titleColor:$Y,labelFont:GY,labelFontSize:WY,labelColor:$Y,symbolType:"circle",symbolSize:75},range:{category:[ZY,"#12239E","#E66C37","#6B007B","#E044A7","#744EC2","#D9B300","#D64550"],diverging:QY,heatmap:QY,ordinal:[JY,"#c7e4ff","#b0d9ff","#9aceff","#83c3ff","#6cb9ff","#55aeff","#3fa3ff","#2898ff",ZY]}},tV='IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,".sfnstext-regular",sans-serif',eV={textPrimary:{g90:"#f4f4f4",g100:"#f4f4f4",white:"#161616",g10:"#161616"},textSecondary:{g90:"#c6c6c6",g100:"#c6c6c6",white:"#525252",g10:"#525252"},layerAccent01:{white:"#e0e0e0",g10:"#e0e0e0",g90:"#525252",g100:"#393939"},gridBg:{white:"#ffffff",g10:"#ffffff",g90:"#161616",g100:"#161616"}},nV=["#8a3ffc","#33b1ff","#007d79","#ff7eb6","#fa4d56","#fff1f1","#6fdc8c","#4589ff","#d12771","#d2a106","#08bdba","#bae6ff","#ba4e00","#d4bbff"],rV=["#6929c4","#1192e8","#005d5d","#9f1853","#fa4d56","#570408","#198038","#002d9c","#ee538b","#b28600","#009d9a","#012749","#8a3800","#a56eff"];function iV(t){let{theme:e,background:n}=t;const r=["white","g10"].includes(e)?"light":"dark",i=eV.gridBg[e],o=eV.textPrimary[e],a=eV.textSecondary[e],s="dark"===r?nV:rV,c="dark"===r?"#d4bbff":"#6929c4";return{background:n,arc:{fill:c},area:{fill:c},path:{stroke:c},rect:{fill:c},shape:{stroke:c},symbol:{stroke:c},circle:{fill:c},view:{fill:i,stroke:i},group:{fill:i},title:{color:o,anchor:"start",dy:-15,fontSize:16,font:tV,fontWeight:600},axis:{labelColor:a,labelFontSize:12,labelFont:'IBM Plex Sans Condensed, system-ui, -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", sans-serif',labelFontWeight:400,titleColor:o,titleFontWeight:600,titleFontSize:12,grid:!0,gridColor:eV.layerAccent01[e],labelAngle:0},axisX:{titlePadding:10},axisY:{titlePadding:2.5},style:{"guide-label":{font:tV,fill:a,fontWeight:400},"guide-title":{font:tV,fill:a,fontWeight:400}},range:{category:s,diverging:["#750e13","#a2191f","#da1e28","#fa4d56","#ff8389","#ffb3b8","#ffd7d9","#fff1f1","#e5f6ff","#bae6ff","#82cfff","#33b1ff","#1192e8","#0072c3","#00539a","#003a6d"],heatmap:["#f6f2ff","#e8daff","#d4bbff","#be95ff","#a56eff","#8a3ffc","#6929c4","#491d8b","#31135e","#1c0f30"]}}}const oV=iV({theme:"white",background:"#ffffff"}),aV=iV({theme:"g10",background:"#f4f4f4"}),sV=iV({theme:"g90",background:"#262626"}),cV=iV({theme:"g100",background:"#161616"}),uV=sY,lV=["title","image"];function fV(t,e){return JSON.stringify(t,function(t){const e=[];return function(n,r){if("object"!==typeof r||null===r)return r;const i=e.indexOf(this)+1;return e.length=i,e.length>t?"[Object]":e.indexOf(r)>=0?"[Circular]":(e.push(r),r)}}(e))}const dV="vg-tooltip-element",hV={offsetX:10,offsetY:10,id:dV,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:function(t){return String(t).replace(/&/g,"&").replace(/</g,"<")},maxDepth:2,formatTooltip:function(t,e,n,r){if(q(t))return"[".concat(t.map((t=>e(Lt(t)?t:fV(t,n)))).join(", "),"]");if(W(t)){let i="";const{title:o,image:a}=t,s=(0,jD.A)(t,lV);o&&(i+="<h2>".concat(e(o),"</h2>")),a&&(i+='<img src="'.concat(new URL(e(a),r||location.href).href,'">'));const c=Object.keys(s);if(c.length>0){i+="<table>";for(const t of c){let r=s[t];void 0!==r&&(W(r)&&(r=fV(r,n)),i+='<tr><td class="key">'.concat(e(t),'</td><td class="value">').concat(e(r),"</td></tr>"))}i+="</table>"}return i||"{}"}return e(t)},baseURL:"",anchor:"cursor",position:["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"]};function pV(t,e,n){let{offsetX:r,offsetY:i}=n;const o=mV({x1:t.clientX,x2:t.clientX,y1:t.clientY,y2:t.clientY},e,r,i),a=["bottom-right","bottom-left","top-right","top-left"];for(const s of a)if(gV(o[s],e))return o[s];return o["top-left"]}function mV(t,e,n,r){const i=(t.x1+t.x2)/2,o=(t.y1+t.y2)/2,a=t.x1-e.width-n,s=i-e.width/2,c=t.x2+n,u=t.y1-e.height-r,l=o-e.height/2,f=t.y2+r;return{top:{x:s,y:u},bottom:{x:s,y:f},left:{x:a,y:l},right:{x:c,y:l},"top-left":{x:a,y:u},"top-right":{x:c,y:u},"bottom-left":{x:a,y:f},"bottom-right":{x:c,y:f}}}function gV(t,e){return t.x>=0&&t.y>=0&&t.x+e.width<=window.innerWidth&&t.y+e.height<=window.innerHeight}function vV(t,e,n){return t.clientX>=e.x&&t.clientX<=e.x+n.width&&t.clientY>=e.y&&t.clientY<=e.y+n.height}class yV{constructor(t){this.options=(0,v.A)((0,v.A)({},hV),t);const e=this.options.id;if(this.el=null,this.call=this.tooltipHandler.bind(this),!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){const t=document.createElement("style");t.setAttribute("id",this.options.styleId),t.innerHTML=function(t){if(!/^[A-Za-z]+[-:.\w]*$/.test(t))throw new Error("Invalid HTML ID");return"#vg-tooltip-element {\n visibility: hidden;\n padding: 8px;\n position: fixed;\n z-index: 1000;\n font-family: sans-serif;\n font-size: 11px;\n border-radius: 3px;\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n /* The default theme is the light theme. */\n background-color: rgba(255, 255, 255, 0.95);\n border: 1px solid #d9d9d9;\n color: black;\n}\n#vg-tooltip-element.visible {\n visibility: visible;\n}\n#vg-tooltip-element h2 {\n margin-top: 0;\n margin-bottom: 10px;\n font-size: 13px;\n}\n#vg-tooltip-element table {\n border-spacing: 0;\n}\n#vg-tooltip-element table tr {\n border: none;\n}\n#vg-tooltip-element table tr td {\n overflow: hidden;\n text-overflow: ellipsis;\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#vg-tooltip-element table tr td.key {\n color: #808080;\n max-width: 150px;\n text-align: right;\n padding-right: 4px;\n}\n#vg-tooltip-element table tr td.value {\n display: block;\n max-width: 300px;\n max-height: 7em;\n text-align: left;\n}\n#vg-tooltip-element.dark-theme {\n background-color: rgba(32, 32, 32, 0.9);\n border: 1px solid #f5f5f5;\n color: white;\n}\n#vg-tooltip-element.dark-theme td.key {\n color: #bfbfbf;\n}\n".toString().replace(dV,t)}(e);const n=document.head;n.childNodes.length>0?n.insertBefore(t,n.childNodes[0]):n.appendChild(t)}}tooltipHandler(t,e,n,r){if(this.el=document.getElementById(this.options.id),!this.el){var i;this.el=document.createElement("div"),this.el.setAttribute("id",this.options.id),this.el.classList.add("vg-tooltip");(null!==(i=document.fullscreenElement)&&void 0!==i?i:document.body).appendChild(this.el)}if(null==r||""===r)return void this.el.classList.remove("visible","".concat(this.options.theme,"-theme"));this.el.innerHTML=this.options.formatTooltip(r,this.options.sanitize,this.options.maxDepth,this.options.baseURL),this.el.classList.add("visible","".concat(this.options.theme,"-theme"));const{x:o,y:a}="mark"===this.options.anchor?function(t,e,n,r,i){const{position:o,offsetX:a,offsetY:s}=i,c=function(t,e,n){const r=n.isVoronoi?n.datum.bounds:n.bounds;let i=t.left+e[0]+r.x1,o=t.top+e[1]+r.y1,a=n;for(;a.mark.group;){var s,c;a=a.mark.group,i+=null!==(s=a.x)&&void 0!==s?s:0,o+=null!==(c=a.y)&&void 0!==c?c:0}return{x1:i,x2:i+(r.x2-r.x1),y1:o,y2:o+(r.y2-r.y1)}}(t._el.getBoundingClientRect(),t._origin,n),u=mV(c,r,a,s),l=Array.isArray(o)?o:[o];for(const f of l)if(gV(u[f],r)&&!vV(e,u[f],r))return u[f];return pV(e,r,i)}(t,e,n,this.el.getBoundingClientRect(),this.options):pV(e,this.el.getBoundingClientRect(),this.options);this.el.style.top="".concat(a,"px"),this.el.style.left="".concat(o,"px")}}var bV,AV=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xV=Object.prototype.hasOwnProperty;function _V(t,e){return xV.call(t,e)}function wV(t){if(Array.isArray(t)){for(var e=new Array(t.length),n=0;n<e.length;n++)e[n]=""+n;return e}if(Object.keys)return Object.keys(t);var r=[];for(var i in t)_V(t,i)&&r.push(i);return r}function kV(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function EV(t){for(var e,n=0,r=t.length;n<r;){if(!((e=t.charCodeAt(n))>=48&&e<=57))return!1;n++}return!0}function FV(t){return-1===t.indexOf("/")&&-1===t.indexOf("~")?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function DV(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function CV(t){if(void 0===t)return!0;if(t)if(Array.isArray(t)){for(var e=0,n=t.length;e<n;e++)if(CV(t[e]))return!0}else if("object"===typeof t)for(var r=wV(t),i=r.length,o=0;o<i;o++)if(CV(t[r[o]]))return!0;return!1}function MV(t,e){var n=[t];for(var r in e){var i="object"===typeof e[r]?JSON.stringify(e[r],null,2):e[r];"undefined"!==typeof i&&n.push(r+": "+i)}return n.join("\n")}var SV=function(t){function e(e,n,r,i,o){var a=this.constructor,s=t.call(this,MV(e,{name:n,index:r,operation:i,tree:o}))||this;return s.name=n,s.index=r,s.operation=i,s.tree=o,Object.setPrototypeOf(s,a.prototype),s.message=MV(e,{name:n,index:r,operation:i,tree:o}),s}return AV(e,t),e}(Error),TV=SV,NV=kV,OV={add:function(t,e,n){return t[e]=this.value,{newDocument:n}},remove:function(t,e,n){var r=t[e];return delete t[e],{newDocument:n,removed:r}},replace:function(t,e,n){var r=t[e];return t[e]=this.value,{newDocument:n,removed:r}},move:function(t,e,n){var r=RV(n,this.path);r&&(r=kV(r));var i=zV(n,{op:"remove",path:this.from}).removed;return zV(n,{op:"add",path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(t,e,n){var r=RV(n,this.from);return zV(n,{op:"add",path:this.path,value:kV(r)}),{newDocument:n}},test:function(t,e,n){return{newDocument:n,test:jV(t[e],this.value)}},_get:function(t,e,n){return this.value=t[e],{newDocument:n}}},BV={add:function(t,e,n){return EV(e)?t.splice(e,0,this.value):t[e]=this.value,{newDocument:n,index:e}},remove:function(t,e,n){return{newDocument:n,removed:t.splice(e,1)[0]}},replace:function(t,e,n){var r=t[e];return t[e]=this.value,{newDocument:n,removed:r}},move:OV.move,copy:OV.copy,test:OV.test,_get:OV._get};function RV(t,e){if(""==e)return t;var n={op:"_get",path:e};return zV(t,n),n.value}function zV(t,e,n,r,i,o){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===i&&(i=!0),void 0===o&&(o=0),n&&("function"==typeof n?n(e,0,t,e.path):LV(e,0)),""===e.path){var a={newDocument:t};if("add"===e.op)return a.newDocument=e.value,a;if("replace"===e.op)return a.newDocument=e.value,a.removed=t,a;if("move"===e.op||"copy"===e.op)return a.newDocument=RV(t,e.from),"move"===e.op&&(a.removed=t),a;if("test"===e.op){if(a.test=jV(t,e.value),!1===a.test)throw new TV("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return a.newDocument=t,a}if("remove"===e.op)return a.removed=t,a.newDocument=null,a;if("_get"===e.op)return e.value=t,a;if(n)throw new TV("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",o,e,t);return a}r||(t=kV(t));var s=(e.path||"").split("/"),c=t,u=1,l=s.length,f=void 0,d=void 0,h=void 0;for(h="function"==typeof n?n:LV;;){if((d=s[u])&&-1!=d.indexOf("~")&&(d=DV(d)),i&&("__proto__"==d||"prototype"==d&&u>0&&"constructor"==s[u-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===f&&(void 0===c[d]?f=s.slice(0,u).join("/"):u==l-1&&(f=e.path),void 0!==f&&h(e,0,t,f)),u++,Array.isArray(c)){if("-"===d)d=c.length;else{if(n&&!EV(d))throw new TV("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,e,t);EV(d)&&(d=~~d)}if(u>=l){if(n&&"add"===e.op&&d>c.length)throw new TV("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,e,t);if(!1===(a=BV[e.op].call(e,c,d,t)).test)throw new TV("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return a}}else if(u>=l){if(!1===(a=OV[e.op].call(e,c,d,t)).test)throw new TV("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return a}if(c=c[d],n&&u<l&&(!c||"object"!==typeof c))throw new TV("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",o,e,t)}}function PV(t,e,n,r,i){if(void 0===r&&(r=!0),void 0===i&&(i=!0),n&&!Array.isArray(e))throw new TV("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(t=kV(t));for(var o=new Array(e.length),a=0,s=e.length;a<s;a++)o[a]=zV(t,e[a],n,!0,i,a),t=o[a].newDocument;return o.newDocument=t,o}function LV(t,e,n,r){if("object"!==typeof t||null===t||Array.isArray(t))throw new TV("Operation is not an object","OPERATION_NOT_AN_OBJECT",e,t,n);if(!OV[t.op])throw new TV("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",e,t,n);if("string"!==typeof t.path)throw new TV("Operation `path` property is not a string","OPERATION_PATH_INVALID",e,t,n);if(0!==t.path.indexOf("/")&&t.path.length>0)throw new TV('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",e,t,n);if(("move"===t.op||"copy"===t.op)&&"string"!==typeof t.from)throw new TV("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",e,t,n);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new TV("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",e,t,n);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&CV(t.value))throw new TV("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",e,t,n);if(n)if("add"==t.op){var i=t.path.split("/").length,o=r.split("/").length;if(i!==o+1&&i!==o)throw new TV("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",e,t,n)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==r)throw new TV("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",e,t,n)}else if("move"===t.op||"copy"===t.op){var a=IV([{op:"_get",path:t.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new TV("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",e,t,n)}}function IV(t,e,n){try{if(!Array.isArray(t))throw new TV("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)PV(kV(e),kV(t),n||!0);else{n=n||LV;for(var r=0;r<t.length;r++)n(t[r],r,e,void 0)}}catch(i){if(i instanceof TV)return i;throw i}}function jV(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var n,r,i,o=Array.isArray(t),a=Array.isArray(e);if(o&&a){if((r=t.length)!=e.length)return!1;for(n=r;0!==n--;)if(!jV(t[n],e[n]))return!1;return!0}if(o!=a)return!1;var s=Object.keys(t);if((r=s.length)!==Object.keys(e).length)return!1;for(n=r;0!==n--;)if(!e.hasOwnProperty(s[n]))return!1;for(n=r;0!==n--;)if(!jV(t[i=s[n]],e[i]))return!1;return!0}return t!==t&&e!==e}var UV=Object.freeze({__proto__:null,JsonPatchError:TV,_areEquals:jV,applyOperation:zV,applyPatch:PV,applyReducer:function(t,e,n){var r=zV(t,e);if(!1===r.test)throw new TV("Test operation failed","TEST_OPERATION_FAILED",n,e,t);return r.newDocument},deepClone:NV,getValueByPointer:RV,validate:IV,validator:LV}),qV=new WeakMap,WV=function(t){this.observers=new Map,this.obj=t},HV=function(t,e){this.callback=t,this.observer=e};function GV(t,e){void 0===e&&(e=!1);var n=qV.get(t.object);YV(n.value,t.object,t.patches,"",e),t.patches.length&&PV(n.value,t.patches);var r=t.patches;return r.length>0&&(t.patches=[],t.callback&&t.callback(r)),r}function YV(t,e,n,r,i){if(e!==t){"function"===typeof e.toJSON&&(e=e.toJSON());for(var o=wV(e),a=wV(t),s=!1,c=a.length-1;c>=0;c--){var u=t[f=a[c]];if(!_V(e,f)||void 0===e[f]&&void 0!==u&&!1===Array.isArray(e))Array.isArray(t)===Array.isArray(e)?(i&&n.push({op:"test",path:r+"/"+FV(f),value:kV(u)}),n.push({op:"remove",path:r+"/"+FV(f)}),s=!0):(i&&n.push({op:"test",path:r,value:t}),n.push({op:"replace",path:r,value:e}));else{var l=e[f];"object"==typeof u&&null!=u&&"object"==typeof l&&null!=l&&Array.isArray(u)===Array.isArray(l)?YV(u,l,n,r+"/"+FV(f),i):u!==l&&(i&&n.push({op:"test",path:r+"/"+FV(f),value:kV(u)}),n.push({op:"replace",path:r+"/"+FV(f),value:kV(l)}))}}if(s||o.length!=a.length)for(c=0;c<o.length;c++){var f;_V(t,f=o[c])||void 0===e[f]||n.push({op:"add",path:r+"/"+FV(f),value:kV(e[f])})}}}var VV,$V,XV,ZV,JV=Object.freeze({__proto__:null,compare:function(t,e,n){void 0===n&&(n=!1);var r=[];return YV(t,e,r,"",n),r},generate:GV,observe:function(t,e){var n,r=function(t){return qV.get(t)}(t);if(r){var i=function(t,e){return t.observers.get(e)}(r,e);n=i&&i.observer}else r=new WV(t),qV.set(t,r);if(n)return n;if(n={},r.value=kV(t),e){n.callback=e,n.next=null;var o=function(){GV(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(o)};"undefined"!==typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=t,n.unobserve=function(){GV(n),clearTimeout(n.next),function(t,e){t.observers.delete(e.callback)}(r,n),"undefined"!==typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(e,new HV(e,n)),n},unobserve:function(t,e){e.unobserve()}});function QV(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function KV(){if(ZV)return XV;ZV=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return XV=n=>n?"object"!==typeof n?t:n:e}Object.assign({},UV,JV,{JsonPatchError:SV,deepClone:kV,escapePathComponent:FV,unescapePathComponent:DV});var t$,e$,n$,r$,i$,o$,a$,s$,c$,u$,l$,f$,d$,h$,p$,m$,g$,v$,y$,b$,A$,x$,_$,w$,k$,E$,F$,D$,C$,M$,S$,T$={exports:{}};function N$(){if(e$)return t$;e$=1;const t=Number.MAX_SAFE_INTEGER||9007199254740991;return t$={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function O$(){if(r$)return n$;r$=1;const t="object"===typeof process&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG)?function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error("SEMVER",...e)}:()=>{};return n$=t}function B$(){return i$||(i$=1,function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=N$(),o=O$(),a=(e=t.exports={}).re=[],s=e.safeRe=[],c=e.src=[],u=e.t={};let l=0;const f="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[f,r]],h=(t,e,n)=>{const r=(t=>{for(const[e,n]of d)t=t.split("".concat(e,"*")).join("".concat(e,"{0,").concat(n,"}")).split("".concat(e,"+")).join("".concat(e,"{1,").concat(n,"}"));return t})(e),i=l++;o(t,i,e),u[t]=i,c[i]=e,a[i]=new RegExp(e,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(f,"*")),h("MAINVERSION","(".concat(c[u.NUMERICIDENTIFIER],")\\.")+"(".concat(c[u.NUMERICIDENTIFIER],")\\.")+"(".concat(c[u.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(c[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(c[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(c[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(c[u.NUMERICIDENTIFIER],"|").concat(c[u.NONNUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(c[u.NUMERICIDENTIFIERLOOSE],"|").concat(c[u.NONNUMERICIDENTIFIER],")")),h("PRERELEASE","(?:-(".concat(c[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(c[u.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(c[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(c[u.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(f,"+")),h("BUILD","(?:\\+(".concat(c[u.BUILDIDENTIFIER],"(?:\\.").concat(c[u.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(c[u.MAINVERSION]).concat(c[u.PRERELEASE],"?").concat(c[u.BUILD],"?")),h("FULL","^".concat(c[u.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(c[u.MAINVERSIONLOOSE]).concat(c[u.PRERELEASELOOSE],"?").concat(c[u.BUILD],"?")),h("LOOSE","^".concat(c[u.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(c[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(c[u.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(c[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(c[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(c[u.XRANGEIDENTIFIER],")")+"(?:".concat(c[u.PRERELEASE],")?").concat(c[u.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(c[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(c[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(c[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(c[u.PRERELEASELOOSE],")?").concat(c[u.BUILD],"?")+")?)?"),h("XRANGE","^".concat(c[u.GTLT],"\\s*").concat(c[u.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(c[u.GTLT],"\\s*").concat(c[u.XRANGEPLAINLOOSE],"$")),h("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),h("COERCE","".concat(c[u.COERCEPLAIN],"(?:$|[^\\d])")),h("COERCEFULL",c[u.COERCEPLAIN]+"(?:".concat(c[u.PRERELEASE],")?")+"(?:".concat(c[u.BUILD],")?")+"(?:$|[^\\d])"),h("COERCERTL",c[u.COERCE],!0),h("COERCERTLFULL",c[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(c[u.LONETILDE],"\\s+"),!0),e.tildeTrimReplace="$1~",h("TILDE","^".concat(c[u.LONETILDE]).concat(c[u.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(c[u.LONETILDE]).concat(c[u.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(c[u.LONECARET],"\\s+"),!0),e.caretTrimReplace="$1^",h("CARET","^".concat(c[u.LONECARET]).concat(c[u.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(c[u.LONECARET]).concat(c[u.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(c[u.GTLT],"\\s*(").concat(c[u.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(c[u.GTLT],"\\s*(").concat(c[u.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(c[u.GTLT],"\\s*(").concat(c[u.LOOSEPLAIN],"|").concat(c[u.XRANGEPLAIN],")"),!0),e.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(c[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(c[u.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(c[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(c[u.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(T$,T$.exports)),T$.exports}function R$(){if(c$)return s$;c$=1;const t=O$(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:n}=N$(),{safeRe:r,t:i}=B$(),o=KV(),{compareIdentifiers:a}=function(){if(a$)return o$;a$=1;const t=/^[0-9]+$/,e=(e,n)=>{const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:e<n?-1:1};return o$={compareIdentifiers:e,rcompareIdentifiers:(t,n)=>e(n,t)},o$}();class s{constructor(a,c){if(c=o(c),a instanceof s){if(a.loose===!!c.loose&&a.includePrerelease===!!c.includePrerelease)return a;a=a.version}else if("string"!==typeof a)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof a,'".'));if(a.length>e)throw new TypeError("version is longer than ".concat(e," characters"));t("SemVer",a,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const u=a.trim().match(c.loose?r[i.LOOSE]:r[i.FULL]);if(!u)throw new TypeError("Invalid Version: ".concat(a));if(this.raw=a,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<n)return e}return t})):this.prerelease=[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(t("SemVer.compare",this.version,this.options,e),!(e instanceof s)){if("string"===typeof e&&e===this.version)return 0;e=new s(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(t){return t instanceof s||(t=new s(t,this.options)),a(this.major,t.major)||a(this.minor,t.minor)||a(this.patch,t.patch)}comparePre(e){if(e instanceof s||(e=new s(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=e.prerelease[n];if(t("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return a(r,i)}while(++n)}compareBuild(e){e instanceof s||(e=new s(e,this.options));let n=0;do{const r=this.build[n],i=e.build[n];if(t("build compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return a(r,i)}while(++n)}inc(t,e,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,n),this.inc("pre",e,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,n),this.inc("pre",e,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(n)?1:0;if(!e&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let r=this.prerelease.length;for(;--r>=0;)"number"===typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(e===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let r=[e,t];!1===n&&(r=[e]),0===a(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(t))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}return s$=s}function z$(){if(l$)return u$;l$=1;const t=R$();return u$=(e,n,r)=>new t(e,r).compare(new t(n,r)),u$}function P$(){if(k$)return w$;k$=1;const t=function(){if(d$)return f$;d$=1;const t=z$();return f$=(e,n,r)=>0===t(e,n,r),f$}(),e=function(){if(p$)return h$;p$=1;const t=z$();return h$=(e,n,r)=>0!==t(e,n,r),h$}(),n=function(){if(g$)return m$;g$=1;const t=z$();return m$=(e,n,r)=>t(e,n,r)>0,m$}(),r=function(){if(y$)return v$;y$=1;const t=z$();return v$=(e,n,r)=>t(e,n,r)>=0,v$}(),i=function(){if(A$)return b$;A$=1;const t=z$();return b$=(e,n,r)=>t(e,n,r)<0,b$}(),o=function(){if(_$)return x$;_$=1;const t=z$();return x$=(e,n,r)=>t(e,n,r)<=0,x$}();return w$=(a,s,c,u)=>{switch(s){case"===":return"object"===typeof a&&(a=a.version),"object"===typeof c&&(c=c.version),a===c;case"!==":return"object"===typeof a&&(a=a.version),"object"===typeof c&&(c=c.version),a!==c;case"":case"=":case"==":return t(a,c,u);case"!=":return e(a,c,u);case">":return n(a,c,u);case">=":return r(a,c,u);case"<":return i(a,c,u);case"<=":return o(a,c,u);default:throw new TypeError("Invalid operator: ".concat(s))}},w$}function L$(){if(C$)return D$;C$=1;const t=/\s+/g;class e{constructor(n,r){if(r=i(r),n instanceof e)return n.loose===!!r.loose&&n.includePrerelease===!!r.includePrerelease?n:new e(n.raw,r);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=n.trim().replace(t," "),this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!m(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");const e=this.set[t];for(let t=0;t<e.length;t++)t>0&&(this.formatted+=" "),this.formatted+=e[t].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&h)|(this.options.loose&&p))+":"+t,n=r.get(e);if(n)return n;const i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];t=t.replace(s,C(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(c[u.COMPARATORTRIM],l),a("comparator trim",t),t=t.replace(c[u.TILDETRIM],f),a("tilde trim",t),t=t.replace(c[u.CARETTRIM],d),a("caret trim",t);let g=t.split(" ").map((t=>y(t,this.options))).join(" ").split(/\s+/).map((t=>D(t,this.options)));i&&(g=g.filter((t=>(a("loose invalid filter",t,this.options),!!t.match(c[u.COMPARATORLOOSE]))))),a("range list",g);const v=new Map,b=g.map((t=>new o(t,this.options)));for(const r of b){if(m(r))return[r];v.set(r.value,r)}v.size>1&&v.has("")&&v.delete("");const A=[...v.values()];return r.set(e,A),A}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>v(e,n)&&t.set.some((t=>v(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(t){if(!t)return!1;if("string"===typeof t)try{t=new s(t,this.options)}catch(e){return!1}for(let n=0;n<this.set.length;n++)if(M(this.set[n],t,this.options))return!0;return!1}}D$=e;const n=($V||($V=1,VV=class{constructor(){this.max=1e3,this.map=new Map}get(t){const e=this.map.get(t);return void 0===e?void 0:(this.map.delete(t),this.map.set(t,e),e)}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&void 0!==e){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,e)}return this}}),VV),r=new n,i=KV(),o=function(){if(F$)return E$;F$=1;const t=Symbol("SemVer ANY");class e{static get ANY(){return t}constructor(r,i){if(i=n(i),r instanceof e){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===t?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(e){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=e.match(n);if(!o)throw new TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=t}toString(){return this.value}test(e){if(a("Comparator.test",e,this.options.loose),this.semver===t||e===t)return!0;if("string"===typeof e)try{e=new s(e,this.options)}catch(n){return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(t.value,r).test(this.value):""===t.operator?""===t.value||new c(this.value,r).test(t.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==t.value)&&!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!t.operator.startsWith(">"))||!(!this.operator.startsWith("<")||!t.operator.startsWith("<"))||!(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))||!!(o(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))||!!(o(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}E$=e;const n=KV(),{safeRe:r,t:i}=B$(),o=P$(),a=O$(),s=R$(),c=L$();return E$}(),a=O$(),s=R$(),{safeRe:c,t:u,comparatorTrimReplace:l,tildeTrimReplace:f,caretTrimReplace:d}=B$(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:p}=N$(),m=t=>"<0.0.0-0"===t.value,g=t=>""===t.value,v=(t,e)=>{let n=!0;const r=t.slice();let i=r.pop();for(;n&&r.length;)n=r.every((t=>i.intersects(t,e))),i=r.pop();return n},y=(t,e)=>(a("comp",t,e),t=_(t,e),a("caret",t),t=A(t,e),a("tildes",t),t=k(t,e),a("xrange",t),t=F(t,e),a("stars",t),t),b=t=>!t||"x"===t.toLowerCase()||"*"===t,A=(t,e)=>t.trim().split(/\s+/).map((t=>x(t,e))).join(" "),x=(t,e)=>{const n=e.loose?c[u.TILDELOOSE]:c[u.TILDE];return t.replace(n,((e,n,r,i,o)=>{let s;return a("tilde",t,e,n,r,i,o),b(n)?s="":b(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):b(i)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):o?(a("replaceTilde pr",o),s=">=".concat(n,".").concat(r,".").concat(i,"-").concat(o," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(i," <").concat(n,".").concat(+r+1,".0-0"),a("tilde return",s),s}))},_=(t,e)=>t.trim().split(/\s+/).map((t=>w(t,e))).join(" "),w=(t,e)=>{a("caret",t,e);const n=e.loose?c[u.CARETLOOSE]:c[u.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,((e,n,i,o,s)=>{let c;return a("caret",t,e,n,i,o,s),b(n)?c="":b(i)?c=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):b(o)?c="0"===n?">=".concat(n,".").concat(i,".0").concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(a("replaceCaret pr",s),c="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(o,"-").concat(s," <").concat(n,".").concat(i,".").concat(+o+1,"-0"):">=".concat(n,".").concat(i,".").concat(o,"-").concat(s," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(o,"-").concat(s," <").concat(+n+1,".0.0-0")):(a("no pr"),c="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(o).concat(r," <").concat(n,".").concat(i,".").concat(+o+1,"-0"):">=".concat(n,".").concat(i,".").concat(o).concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(o," <").concat(+n+1,".0.0-0")),a("caret return",c),c}))},k=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>E(t,e))).join(" ")),E=(t,e)=>{t=t.trim();const n=e.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return t.replace(n,((n,r,i,o,s,c)=>{a("xRange",t,n,r,i,o,s,c);const u=b(i),l=u||b(o),f=l||b(s),d=f;return"="===r&&d&&(r=""),c=e.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(l&&(o=0),s=0,">"===r?(r=">=",l?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),"<"===r&&(c="-0"),n="".concat(r+i,".").concat(o,".").concat(s).concat(c)):l?n=">=".concat(i,".0.0").concat(c," <").concat(+i+1,".0.0-0"):f&&(n=">=".concat(i,".").concat(o,".0").concat(c," <").concat(i,".").concat(+o+1,".0-0")),a("xRange return",n),n}))},F=(t,e)=>(a("replaceStars",t,e),t.trim().replace(c[u.STAR],"")),D=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(c[e.includePrerelease?u.GTE0PRE:u.GTE0],"")),C=t=>(e,n,r,i,o,a,s,c,u,l,f,d)=>(n=b(r)?"":b(i)?">=".concat(r,".0.0").concat(t?"-0":""):b(o)?">=".concat(r,".").concat(i,".0").concat(t?"-0":""):a?">=".concat(n):">=".concat(n).concat(t?"-0":""),c=b(u)?"":b(l)?"<".concat(+u+1,".0.0-0"):b(f)?"<".concat(u,".").concat(+l+1,".0-0"):d?"<=".concat(u,".").concat(l,".").concat(f,"-").concat(d):t?"<".concat(u,".").concat(l,".").concat(+f+1,"-0"):"<=".concat(c),"".concat(n," ").concat(c).trim()),M=(t,e,n)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let n=0;n<t.length;n++)if(a(t[n].semver),t[n].semver!==o.ANY&&t[n].semver.prerelease.length>0){const r=t[n].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}return!1}return!0};return D$}var I$=function(){if(S$)return M$;S$=1;const t=L$();return M$=(e,n,r)=>{try{n=new t(n,r)}catch(i){return!1}return n.test(e)},M$}(),j$=QV(I$);var U$='.vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n}\n.vega-embed.has-actions {\n padding-right: 38px;\n}\n.vega-embed details:not([open]) > :not(summary) {\n display: none !important;\n}\n.vega-embed summary {\n list-style: none;\n position: absolute;\n top: 0;\n right: 0;\n padding: 6px;\n z-index: 1000;\n background: white;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);\n color: #1b1e23;\n border: 1px solid #aaa;\n border-radius: 999px;\n opacity: 0.2;\n transition: opacity 0.4s ease-in;\n cursor: pointer;\n line-height: 0px;\n}\n.vega-embed summary::-webkit-details-marker {\n display: none;\n}\n.vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset;\n}\n.vega-embed summary svg {\n width: 14px;\n height: 14px;\n}\n.vega-embed details[open] summary {\n opacity: 0.7;\n}\n.vega-embed:hover summary, .vega-embed:focus-within summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease;\n}\n.vega-embed .vega-actions {\n position: absolute;\n z-index: 1001;\n top: 35px;\n right: -9px;\n display: flex;\n flex-direction: column;\n padding-bottom: 8px;\n padding-top: 8px;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #d9d9d9;\n background: white;\n animation-duration: 0.15s;\n animation-name: scale-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n text-align: left;\n}\n.vega-embed .vega-actions a {\n padding: 8px 16px;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: 600;\n white-space: nowrap;\n color: #434a56;\n text-decoration: none;\n}\n.vega-embed .vega-actions a:hover, .vega-embed .vega-actions a:focus {\n background-color: #f7f7f9;\n color: black;\n}\n.vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: "";\n display: inline-block;\n position: absolute;\n}\n.vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid rgba(0, 0, 0, 0);\n border-bottom-color: #d9d9d9;\n}\n.vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid rgba(0, 0, 0, 0);\n border-bottom-color: #fff;\n}\n.vega-embed .chart-wrapper.fit-x {\n width: 100%;\n}\n.vega-embed .chart-wrapper.fit-y {\n height: 100%;\n}\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px;\n}\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n';function q$(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(const i of n)W$(t,i);return t}function W$(t,e){for(const n of Object.keys(e))Y(t,n,e[n],!0)}const H$=p;let G$=m;const Y$="undefined"!==typeof window?window:void 0;void 0===G$&&null!==Y$&&void 0!==Y$&&null!==(bV=Y$.vl)&&void 0!==bV&&bV.compile&&(G$=Y$.vl);const V$={export:{svg:!0,png:!0},source:!0,compiled:!0,editor:!0},$$={CLICK_TO_VIEW_ACTIONS:"Click to view actions",COMPILED_ACTION:"View Compiled Vega",EDITOR_ACTION:"Open in Vega Editor",PNG_ACTION:"Save as PNG",SOURCE_ACTION:"View Source",SVG_ACTION:"Save as SVG"},X$={vega:"Vega","vega-lite":"Vega-Lite"},Z$={vega:H$.version,"vega-lite":G$?G$.version:"not available"},J$={vega:t=>t,"vega-lite":(t,e)=>G$.compile(t,{config:e}).spec},Q$='\n<svg viewBox="0 0 16 16" fill="currentColor" stroke="none" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">\n <circle r="2" cy="8" cx="2"></circle>\n <circle r="2" cy="8" cx="8"></circle>\n <circle r="2" cy="8" cx="14"></circle>\n</svg>',K$="chart-wrapper";function tX(t,e,n,r){const i="<html><head>".concat(e,'</head><body><pre><code class="json">'),o="</code></pre>".concat(n,"</body></html>"),a=window.open("");a.document.write(i+t+o),a.document.title="".concat(X$[r]," JSON Source")}function eX(t){return!(!t||!("load"in t))}function nX(t){return eX(t)?t:H$.loader(t)}async function rX(t,e){var n,r;let i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Lt(e)?(o=nX(a.loader),i=JSON.parse(await o.load(e))):i=e;const s=function(t){var e,n;const r=null!==(e=null===(n=t.usermeta)||void 0===n?void 0:n.embedOptions)&&void 0!==e?e:{};return Lt(r.defaultStyle)&&(r.defaultStyle=!1),r}(i),c=s.loader;var u;o&&!c||(o=nX(null!==(u=a.loader)&&void 0!==u?u:c));const l=await iX(s,o),f=await iX(a,o),d=(0,v.A)((0,v.A)({},q$(f,l)),{},{config:G(null!==(n=f.config)&&void 0!==n?n:{},null!==(r=l.config)&&void 0!==r?r:{})});return await async function(t,e){var n,r,i,o,a,s,c;let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;const f=u.theme?G(g[u.theme],null!==(n=u.config)&&void 0!==n?n:{}):u.config,d=Ot(u.actions)?u.actions:q$({},V$,null!==(r=u.actions)&&void 0!==r?r:{}),h=(0,v.A)((0,v.A)({},$$),u.i18n),p=null!==(i=u.renderer)&&void 0!==i?i:"canvas",m=null!==(o=u.logLevel)&&void 0!==o?o:H$.Warn,y=null!==(a=u.downloadFileName)&&void 0!==a?a:"visualization",A="string"===typeof t?document.querySelector(t):t;if(!A)throw new Error("".concat(t," does not exist"));if(!1!==u.defaultStyle){const t="vega-embed-style",{root:e,rootContainer:n}=function(t){var e;const n=t.getRootNode?t.getRootNode():document;return n instanceof ShadowRoot?{root:n,rootContainer:n}:{root:document,rootContainer:null!==(e=document.head)&&void 0!==e?e:document.body}}(A);if(!e.getElementById(t)){const e=document.createElement("style");e.id=t,e.innerHTML=void 0===u.defaultStyle||!0===u.defaultStyle?U$.toString():u.defaultStyle,n.appendChild(e)}}const x=function(t,e){if(t.$schema){const r=aY(t.$schema);var n;e&&e!==r.library&&console.warn("The given visualization spec is written in ".concat(X$[r.library],", but mode argument sets ").concat(null!==(n=X$[e])&&void 0!==n?n:e,"."));const i=r.library;return j$(Z$[i],"^".concat(r.version.slice(1)))||console.warn("The input spec uses ".concat(X$[i]," ").concat(r.version,", but the current version of ").concat(X$[i]," is v").concat(Z$[i],".")),i}return"mark"in t||"encoding"in t||"layer"in t||"hconcat"in t||"vconcat"in t||"facet"in t||"repeat"in t?"vega-lite":"marks"in t||"signals"in t||"scales"in t||"axes"in t?"vega":null!==e&&void 0!==e?e:"vega"}(e,u.mode);let _=J$[x](e,f);if("vega-lite"===x&&_.$schema){const t=aY(_.$schema);j$(Z$.vega,"^".concat(t.version.slice(1)))||console.warn("The compiled spec uses Vega ".concat(t.version,", but current version is v").concat(Z$.vega,"."))}A.classList.add("vega-embed"),d&&A.classList.add("has-actions");A.innerHTML="";let w=A;if(d){const t=document.createElement("div");t.classList.add(K$),A.appendChild(t),w=t}const k=u.patch;k&&(_=k instanceof Function?k(_):PV(_,k,!0,!1).newDocument);u.formatLocale&&H$.formatLocale(u.formatLocale);u.timeFormatLocale&&H$.timeFormatLocale(u.timeFormatLocale);if(u.expressionFunctions)for(const g in u.expressionFunctions){const t=u.expressionFunctions[g];"fn"in t?H$.expressionFunction(g,t.fn,t.visitor):t instanceof Function&&H$.expressionFunction(g,t)}const{ast:E}=u,F=H$.parse(_,"vega-lite"===x?{}:f,{ast:E}),D=new(u.viewClass||H$.View)(F,(0,v.A)({loader:l,logLevel:m,renderer:p},E?{expr:null!==(s=null!==(c=H$.expressionInterpreter)&&void 0!==c?c:u.expr)&&void 0!==s?s:ID}:{}));if(D.addSignalListener("autosize",((t,e)=>{const{type:n}=e;"fit-x"==n?(w.classList.add("fit-x"),w.classList.remove("fit-y")):"fit-y"==n?(w.classList.remove("fit-x"),w.classList.add("fit-y")):"fit"==n?w.classList.add("fit-x","fit-y"):w.classList.remove("fit-x","fit-y")})),!1!==u.tooltip){const{loader:t,tooltip:e}=u,n=t&&!eX(t)?null===t||void 0===t?void 0:t.baseURL:void 0,r=function(t){return"function"===typeof t}(e)?e:new yV((0,v.A)({baseURL:n},!0===e?{}:e)).call;D.tooltip(r)}let C,{hover:M}=u;void 0===M&&(M="vega"===x);if(M){const{hoverSet:t,updateSet:e}="boolean"===typeof M?{}:M;D.hover(t,e)}u&&(null!=u.width&&D.width(u.width),null!=u.height&&D.height(u.height),null!=u.padding&&D.padding(u.padding));if(await D.initialize(w,u.bind).runAsync(),!1!==d){let t=A;if(!1!==u.defaultStyle||u.forceActionsMenu){const e=document.createElement("details");e.title=h.CLICK_TO_VIEW_ACTIONS,A.append(e),t=e;const n=document.createElement("summary");n.innerHTML=Q$,e.append(n),C=t=>{e.contains(t.target)||e.removeAttribute("open")},document.addEventListener("click",C)}const n=document.createElement("div");if(t.append(n),n.classList.add("vega-actions"),!0===d||!1!==d.export)for(const e of["svg","png"])if(!0===d||!0===d.export||d.export[e]){const t=h["".concat(e.toUpperCase(),"_ACTION")],r=document.createElement("a"),i=W(u.scaleFactor)?u.scaleFactor[e]:u.scaleFactor;r.text=t,r.href="#",r.target="_blank",r.download="".concat(y,".").concat(e),r.addEventListener("mousedown",(async function(t){t.preventDefault();const n=await D.toImageURL(e,i);this.href=n})),n.append(r)}if(!0===d||!1!==d.source){const t=document.createElement("a");t.text=h.SOURCE_ACTION,t.href="#",t.addEventListener("click",(function(t){var n,r;tX(b(e),null!==(n=u.sourceHeader)&&void 0!==n?n:"",null!==(r=u.sourceFooter)&&void 0!==r?r:"",x),t.preventDefault()})),n.append(t)}if("vega-lite"===x&&(!0===d||!1!==d.compiled)){const t=document.createElement("a");t.text=h.COMPILED_ACTION,t.href="#",t.addEventListener("click",(function(t){var e,n;tX(b(_),null!==(e=u.sourceHeader)&&void 0!==e?e:"",null!==(n=u.sourceFooter)&&void 0!==n?n:"","vega"),t.preventDefault()})),n.append(t)}if(!0===d||!1!==d.editor){var S;const t=null!==(S=u.editorUrl)&&void 0!==S?S:"https://vega.github.io/editor/",r=document.createElement("a");r.text=h.EDITOR_ACTION,r.href="#",r.addEventListener("click",(function(n){!function(t,e,n){const r=t.open(e),{origin:i}=new URL(e);let o=40;t.addEventListener("message",(function e(n){n.source===r&&(o=0,t.removeEventListener("message",e,!1))}),!1),setTimeout((function t(){o<=0||(r.postMessage(n,i),setTimeout(t,250),o-=1)}),250)}(window,t,{config:f,mode:k?"vega":x,renderer:p,spec:b(k?_:e)}),n.preventDefault()})),n.append(r)}}function T(){C&&document.removeEventListener("click",C),D.finalize()}return{view:D,spec:e,vgSpec:_,finalize:T,embedOptions:u}}(t,i,d,o)}async function iX(t,e){var n;const r=Lt(t.config)?JSON.parse(await e.load(t.config)):null!==(n=t.config)&&void 0!==n?n:{},i=Lt(t.patch)?JSON.parse(await e.load(t.patch)):t.patch;return(0,v.A)((0,v.A)((0,v.A)({},t),i?{patch:i}:{}),r?{config:r}:{})}},57528:(t,e,n)=>{function r(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}n.d(e,{A:()=>r})},84283:(t,e,n)=>{function r(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}n.d(e,{A:()=>r})},89511:(t,e,n)=>{n.d(e,{Ay:()=>l,Jj:()=>s,WD:()=>u,ah:()=>c});var r=n(84283),i=n(88910),o=n(69132);const a=(0,i.A)(r.A),s=a.right,c=a.left,u=(0,i.A)(o.A).center,l=s},88910:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(84283),i=n(60799);function o(t){let e,n,o;function s(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=r.A,n=(e,n)=>(0,r.A)(t(e),n),o=(e,n)=>t(e)-n):(e=t===r.A||t===i.A?t:a,n=t,o=t),{left:s,center:function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=s(t,e,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length)-1);return r>n&&o(t[r-1],e)>-o(t[r],e)?r-1:r},right:function(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function a(){return 0}},60799:(t,e,n)=>{function r(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}n.d(e,{A:()=>r})},90774:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(10094);function i(t,e){const n=(0,r.A)(t,e);return n?Math.sqrt(n):n}},79876:(t,e,n)=>{n.d(e,{KS:()=>i,Nn:()=>o,ph:()=>r});class r{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=e[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(e=o,n=t[--i],o=e+n,r=n-(o-e),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(n=2*r,e=o+n,n==e-o&&(o=e))}return o}}function i(t,e){const n=new r;if(void 0===e)for(let r of t)(r=+r)&&n.add(r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&n.add(i)}return+n}function o(t,e){const n=new r;let i=-1;return Float64Array.from(t,void 0===e?t=>n.add(+t||0):r=>n.add(+e(r,++i,t)||0))}},32494:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(84283);function i(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.A,i=!1;if(1===n.length){let o;for(const a of t){const t=n(a);(i?(0,r.A)(t,o)>0:0===(0,r.A)(t,t))&&(e=a,o=t,i=!0)}}else for(const r of t)(i?n(r,e)>0:0===n(r,r))&&(e=r,i=!0);return e}},20676:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(5252);function i(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];t=new r.v(t),n=n.map(o);t:for(const r of t)for(const e of n)if(!e.has(r)){t.delete(r);continue t}return t}function o(t){return t instanceof r.v?t:new r.v(t)}},11963:(t,e,n)=>{function r(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{A:()=>r})},24591:(t,e,n)=>{function r(t,e){let n,r=-1,i=-1;if(void 0===e)for(const o of t)++i,null!=o&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);else for(let o of t)null!=(o=e(o,++i,t))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}n.d(e,{A:()=>r})},91236:(t,e,n)=>{function r(t,e){let n=0,r=0;if(void 0===e)for(let i of t)null!=i&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}n.d(e,{A:()=>r})},73675:(t,e,n)=>{n.d(e,{A:()=>i,T:()=>o});var r=n(49020);function i(t,e){return(0,r.Ay)(t,.5,e)}function o(t,e){return(0,r.AX)(t,.5,e)}},58533:(t,e,n)=>{function r(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}n.d(e,{A:()=>r})},53305:(t,e,n)=>{function r(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{A:()=>r})},75349:(t,e,n)=>{function r(t,e){let n,r=-1,i=-1;if(void 0===e)for(const o of t)++i,null!=o&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);else for(let o of t)null!=(o=e(o,++i,t))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}n.d(e,{A:()=>r})},69132:(t,e,n)=>{function r(t){return null===t?NaN:+t}function*i(t,e){if(void 0===e)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}n.d(e,{A:()=>r,n:()=>i})},21199:(t,e,n)=>{function r(t,e){return Array.from(e,(e=>t[e]))}n.d(e,{A:()=>r})},49020:(t,e,n)=>{n.d(e,{AX:()=>h,Ay:()=>f,Z4:()=>d});var r=n(11963),i=n(24591),o=n(53305),a=n(75349),s=n(44302),c=n(69132),u=n(4709),l=n(32494);function f(t,e,n){if((i=(t=Float64Array.from((0,c.n)(t,n))).length)&&!isNaN(e=+e)){if(e<=0||i<2)return(0,o.A)(t);if(e>=1)return(0,r.A)(t);var i,a=(i-1)*e,u=Math.floor(a),l=(0,r.A)((0,s.A)(t,u).subarray(0,u+1));return l+((0,o.A)(t.subarray(u+1))-l)*(a-u)}}function d(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.A;if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function h(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.A;if(!isNaN(e=+e)){if(r=Float64Array.from(t,((e,r)=>(0,c.A)(n(t[r],r,t)))),e<=0)return(0,a.A)(r);if(e>=1)return(0,i.A)(r);var r,o=Uint32Array.from(t,((t,e)=>e)),f=r.length-1,d=Math.floor(f*e);return(0,s.A)(o,d,0,f,((t,e)=>(0,u.o2)(r[t],r[e]))),(d=(0,l.A)(o.subarray(0,d+1),(t=>r[t])))>=0?d:-1}}},44302:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(4709);function i(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,s=arguments.length>4?arguments[4]:void 0;if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),a=Math.floor(Math.min(t.length-1,a)),!(n<=e&&e<=a))return t;for(s=void 0===s?r.o2:(0,r.JC)(s);a>n;){if(a-n>600){const r=a-n+1,o=e-n+1,c=Math.log(r),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(r-u)/r)*(o-r/2<0?-1:1);i(t,e,Math.max(n,Math.floor(e-o*u/r+l)),Math.min(a,Math.floor(e+(r-o)*u/r+l)),s)}const r=t[e];let c=n,u=a;for(o(t,n,e),s(t[a],r)>0&&o(t,n,a);c<u;){for(o(t,c,u),++c,--u;s(t[c],r)<0;)++c;for(;s(t[u],r)>0;)--u}0===s(t[n],r)?o(t,n,u):(++u,o(t,u,a)),u<=e&&(n=u+1),e<=u&&(a=u-1)}return t}function o(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}},36172:(t,e,n)=>{function r(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}n.d(e,{A:()=>r})},4709:(t,e,n)=>{n.d(e,{Ay:()=>o,JC:()=>a,o2:()=>s});var r=n(84283),i=n(21199);function o(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if("function"!==typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[o]=n;if(o&&2!==o.length||n.length>1){const e=Uint32Array.from(t,((t,e)=>e));return n.length>1?(n=n.map((e=>t.map(e))),e.sort(((t,e)=>{for(const r of n){const n=s(r[t],r[e]);if(n)return n}}))):(o=t.map(o),e.sort(((t,e)=>s(o[t],o[e])))),(0,i.A)(t,e)}return t.sort(a(o))}function a(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.A;if(t===r.A)return s;if("function"!==typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}function s(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}},5398:(t,e,n)=>{function r(t,e){let n=0;if(void 0===e)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}n.d(e,{A:()=>r})},90787:(t,e,n)=>{n.d(e,{Ay:()=>s,lq:()=>c,sG:()=>u});const r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){const s=(e-t)/Math.max(0,n),c=Math.floor(Math.log10(s)),u=s/Math.pow(10,c),l=u>=r?10:u>=i?5:u>=o?2:1;let f,d,h;return c<0?(h=Math.pow(10,-c)/l,f=Math.round(t*h),d=Math.round(e*h),f/h<t&&++f,d/h>e&&--d,h=-h):(h=Math.pow(10,c)*l,f=Math.round(t/h),d=Math.round(e/h),f*h<t&&++f,d*h>e&&--d),d<f&&.5<=n&&n<2?a(t,e,2*n):[f,d,h]}function s(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[i,o,s]=r?a(e,t,n):a(t,e,n);if(!(o>=i))return[];const c=o-i+1,u=new Array(c);if(r)if(s<0)for(let a=0;a<c;++a)u[a]=(o-a)/-s;else for(let a=0;a<c;++a)u[a]=(o-a)*s;else if(s<0)for(let a=0;a<c;++a)u[a]=(i+a)/-s;else for(let a=0;a<c;++a)u[a]=(i+a)*s;return u}function c(t,e,n){return a(t=+t,e=+e,n=+n)[2]}function u(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?c(e,t,n):c(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}},85698:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(5252);function i(){const t=new r.v;for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(const r of n)for(const e of r)t.add(e);return t}},10094:(t,e,n)=>{function r(t,e){let n,r=0,i=0,o=0;if(void 0===e)for(let a of t)null!=a&&(a=+a)>=a&&(n=a-i,i+=n/++r,o+=n*(a-i));else{let a=-1;for(let s of t)null!=(s=e(s,++a,t))&&(s=+s)>=s&&(n=s-i,i+=n/++r,o+=n*(s-i))}if(r>1)return o/(r-1)}n.d(e,{A:()=>r})},17840:(t,e,n)=>{n.d(e,{Ay:()=>A,Gw:()=>E,KI:()=>O,Q1:()=>i,Qh:()=>k,Uw:()=>a,b:()=>w,ef:()=>o});var r=n(18860);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\(".concat(s,",").concat(s,",").concat(s,"\\)$")),d=new RegExp("^rgb\\(".concat(u,",").concat(u,",").concat(u,"\\)$")),h=new RegExp("^rgba\\(".concat(s,",").concat(s,",").concat(s,",").concat(c,"\\)$")),p=new RegExp("^rgba\\(".concat(u,",").concat(u,",").concat(u,",").concat(c,"\\)$")),m=new RegExp("^hsl\\(".concat(c,",").concat(u,",").concat(u,"\\)$")),g=new RegExp("^hsla\\(".concat(c,",").concat(u,",").concat(u,",").concat(c,"\\)$")),v={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};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function A(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?x(e):3===n?new E(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=f.exec(t))?new E(e[1],e[2],e[3],1):(e=d.exec(t))?new E(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?_(e[1],e[2],e[3],e[4]):(e=p.exec(t))?_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=m.exec(t))?T(e[1],e[2]/100,e[3]/100,1):(e=g.exec(t))?T(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?x(v[t]):"transparent"===t?new E(NaN,NaN,NaN,0):null}function x(t){return new E(t>>16&255,t>>8&255,255&t,1)}function _(t,e,n,r){return r<=0&&(t=e=n=NaN),new E(t,e,n,r)}function w(t){return t instanceof i||(t=A(t)),t?new E((t=t.rgb()).r,t.g,t.b,t.opacity):new E}function k(t,e,n,r){return 1===arguments.length?w(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function F(){return"#".concat(S(this.r)).concat(S(this.g)).concat(S(this.b))}function D(){const t=C(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(M(this.r),", ").concat(M(this.g),", ").concat(M(this.b)).concat(1===t?")":", ".concat(t,")"))}function C(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function M(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function S(t){return((t=M(t))<16?"0":"")+t.toString(16)}function T(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new B(t,e,n,r)}function N(t){if(t instanceof B)return new B(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=A(t)),!t)return new B;if(t instanceof B)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,c=a-o,u=(a+o)/2;return c?(s=e===a?(n-r)/c+6*(n<r):n===a?(r-e)/c+2:(e-n)/c+4,c/=u<.5?a+o:2-a-o,s*=60):c=u>0&&u<1?0:s,new B(s,c,u,t.opacity)}function O(t,e,n,r){return 1===arguments.length?N(t):new B(t,e,n,null==r?1:r)}function B(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function R(t){return(t=(t||0)%360)<0?t+360:t}function z(t){return Math.max(0,Math.min(1,t||0))}function P(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.A)(i,A,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:y,formatHex:y,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return N(this).formatHsl()},formatRgb:b,toString:b}),(0,r.A)(E,k,(0,r.X)(i,{brighter(t){return t=null==t?a:Math.pow(a,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?o:Math.pow(o,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new E(M(this.r),M(this.g),M(this.b),C(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:F,formatHex:F,formatHex8:function(){return"#".concat(S(this.r)).concat(S(this.g)).concat(S(this.b)).concat(S(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:D,toString:D})),(0,r.A)(B,O,(0,r.X)(i,{brighter(t){return t=null==t?a:Math.pow(a,t),new B(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?o:Math.pow(o,t),new B(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new E(P(t>=240?t-240:t+120,i,r),P(t,i,r),P(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new B(R(this.h),z(this.s),z(this.l),C(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(){const t=C(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(R(this.h),", ").concat(100*z(this.s),"%, ").concat(100*z(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}))},96112:(t,e,n)=>{n.d(e,{A:()=>p});var r=n(18860),i=n(17840),o=n(70661),a=-.14861,s=1.78277,c=-.29227,u=-.90649,l=1.97294,f=l*u,d=l*s,h=s*c-u*a;function p(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof m)return new m(t.h,t.s,t.l,t.opacity);t instanceof i.Gw||(t=(0,i.b)(t));var e=t.r/255,n=t.g/255,r=t.b/255,a=(h*r+f*e-d*n)/(h+f-d),s=r-a,p=(l*(n-a)-c*s)/u,g=Math.sqrt(p*p+s*s)/(l*a*(1-a)),v=g?Math.atan2(p,s)*o.u-120:NaN;return new m(v<0?v+360:v,g,a,t.opacity)}(t):new m(t,e,n,null==r?1:r)}function m(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}(0,r.A)(m,p,(0,r.X)(i.Q1,{brighter(t){return t=null==t?i.Uw:Math.pow(i.Uw,t),new m(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?i.ef:Math.pow(i.ef,t),new m(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*o.F,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),f=Math.sin(t);return new i.Gw(255*(e+n*(a*r+s*f)),255*(e+n*(c*r+u*f)),255*(e+n*(l*r)),this.opacity)}}))},18860:(t,e,n)=>{function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{A:()=>r,X:()=>i})},13696:(t,e,n)=>{n.d(e,{Ay:()=>m,aq:()=>w,s1:()=>_,wm:()=>p});var r=n(18860),i=n(17840),o=n(70661);const a=.96422,s=1,c=.82521,u=4/29,l=6/29,f=3*l*l,d=l*l*l;function h(t){if(t instanceof g)return new g(t.l,t.a,t.b,t.opacity);if(t instanceof k)return E(t);t instanceof i.Gw||(t=(0,i.b)(t));var e,n,r=A(t.r),o=A(t.g),u=A(t.b),l=v((.2225045*r+.7168786*o+.0606169*u)/s);return r===o&&o===u?e=n=l:(e=v((.4360747*r+.3850649*o+.1430804*u)/a),n=v((.0139322*r+.0971045*o+.7141733*u)/c)),new g(116*l-16,500*(e-l),200*(l-n),t.opacity)}function p(t,e){return new g(t,0,0,null==e?1:e)}function m(t,e,n,r){return 1===arguments.length?h(t):new g(t,e,n,null==r?1:r)}function g(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function v(t){return t>d?Math.pow(t,1/3):t/f+u}function y(t){return t>l?t*t*t:f*(t-u)}function b(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function A(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function x(t){if(t instanceof k)return new k(t.h,t.c,t.l,t.opacity);if(t instanceof g||(t=h(t)),0===t.a&&0===t.b)return new k(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*o.u;return new k(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function _(t,e,n,r){return 1===arguments.length?x(t):new k(n,e,t,null==r?1:r)}function w(t,e,n,r){return 1===arguments.length?x(t):new k(t,e,n,null==r?1:r)}function k(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function E(t){if(isNaN(t.h))return new g(t.l,0,0,t.opacity);var e=t.h*o.F;return new g(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}(0,r.A)(g,m,(0,r.X)(i.Q1,{brighter(t){return new g(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new g(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=a*y(e),t=s*y(t),n=c*y(n),new i.Gw(b(3.1338561*e-1.6168667*t-.4906146*n),b(-.9787684*e+1.9161415*t+.033454*n),b(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),(0,r.A)(k,w,(0,r.X)(i.Q1,{brighter(t){return new k(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new k(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return E(this).rgb()}}))},70661:(t,e,n)=>{n.d(e,{F:()=>r,u:()=>i});const r=Math.PI/180,i=180/Math.PI},66824:(t,e,n)=>{n.d(e,{A:()=>N});const r=11102230246251565e-32,i=134217729,o=(3+8*r)*r;function a(t,e,n,r,i){let o,a,s,c,u=e[0],l=r[0],f=0,d=0;l>u===l>-u?(o=u,u=e[++f]):(o=l,l=r[++d]);let h=0;if(f<t&&d<n)for(l>u===l>-u?(a=u+o,s=o-(a-u),u=e[++f]):(a=l+o,s=o-(a-l),l=r[++d]),o=a,0!==s&&(i[h++]=s);f<t&&d<n;)l>u===l>-u?(a=o+u,c=a-o,s=o-(a-c)+(u-c),u=e[++f]):(a=o+l,c=a-o,s=o-(a-c)+(l-c),l=r[++d]),o=a,0!==s&&(i[h++]=s);for(;f<t;)a=o+u,c=a-o,s=o-(a-c)+(u-c),u=e[++f],o=a,0!==s&&(i[h++]=s);for(;d<n;)a=o+l,c=a-o,s=o-(a-c)+(l-c),l=r[++d],o=a,0!==s&&(i[h++]=s);return 0===o&&0!==h||(i[h++]=o),h}function s(t){return new Float64Array(t)}const c=s(4),u=s(8),l=s(12),f=s(16),d=s(4);function h(t,e,n,r,s,h){const p=(e-h)*(n-s),m=(t-s)*(r-h),g=p-m,v=Math.abs(p+m);return Math.abs(g)>=33306690738754716e-32*v?g:-function(t,e,n,r,s,h,p){let m,g,v,y,b,A,x,_,w,k,E,F,D,C,M,S,T,N;const O=t-s,B=n-s,R=e-h,z=r-h;C=O*z,A=i*O,x=A-(A-O),_=O-x,A=i*z,w=A-(A-z),k=z-w,M=_*k-(C-x*w-_*w-x*k),S=R*B,A=i*R,x=A-(A-R),_=R-x,A=i*B,w=A-(A-B),k=B-w,T=_*k-(S-x*w-_*w-x*k),E=M-T,b=M-E,c[0]=M-(E+b)+(b-T),F=C+E,b=F-C,D=C-(F-b)+(E-b),E=D-S,b=D-E,c[1]=D-(E+b)+(b-S),N=F+E,b=N-F,c[2]=F-(N-b)+(E-b),c[3]=N;let P=function(t,e){let n=e[0];for(let r=1;r<t;r++)n+=e[r];return n}(4,c),L=22204460492503146e-32*p;if(P>=L||-P>=L)return P;if(b=t-O,m=t-(O+b)+(b-s),b=n-B,v=n-(B+b)+(b-s),b=e-R,g=e-(R+b)+(b-h),b=r-z,y=r-(z+b)+(b-h),0===m&&0===g&&0===v&&0===y)return P;if(L=11093356479670487e-47*p+o*Math.abs(P),P+=O*y+z*m-(R*v+B*g),P>=L||-P>=L)return P;C=m*z,A=i*m,x=A-(A-m),_=m-x,A=i*z,w=A-(A-z),k=z-w,M=_*k-(C-x*w-_*w-x*k),S=g*B,A=i*g,x=A-(A-g),_=g-x,A=i*B,w=A-(A-B),k=B-w,T=_*k-(S-x*w-_*w-x*k),E=M-T,b=M-E,d[0]=M-(E+b)+(b-T),F=C+E,b=F-C,D=C-(F-b)+(E-b),E=D-S,b=D-E,d[1]=D-(E+b)+(b-S),N=F+E,b=N-F,d[2]=F-(N-b)+(E-b),d[3]=N;const I=a(4,c,4,d,u);C=O*y,A=i*O,x=A-(A-O),_=O-x,A=i*y,w=A-(A-y),k=y-w,M=_*k-(C-x*w-_*w-x*k),S=R*v,A=i*R,x=A-(A-R),_=R-x,A=i*v,w=A-(A-v),k=v-w,T=_*k-(S-x*w-_*w-x*k),E=M-T,b=M-E,d[0]=M-(E+b)+(b-T),F=C+E,b=F-C,D=C-(F-b)+(E-b),E=D-S,b=D-E,d[1]=D-(E+b)+(b-S),N=F+E,b=N-F,d[2]=F-(N-b)+(E-b),d[3]=N;const j=a(I,u,4,d,l);C=m*y,A=i*m,x=A-(A-m),_=m-x,A=i*y,w=A-(A-y),k=y-w,M=_*k-(C-x*w-_*w-x*k),S=g*v,A=i*g,x=A-(A-g),_=g-x,A=i*v,w=A-(A-v),k=v-w,T=_*k-(S-x*w-_*w-x*k),E=M-T,b=M-E,d[0]=M-(E+b)+(b-T),F=C+E,b=F-C,D=C-(F-b)+(E-b),E=D-S,b=D-E,d[1]=D-(E+b)+(b-S),N=F+E,b=N-F,d[2]=F-(N-b)+(E-b),d[3]=N;const U=a(j,l,4,d,f);return f[U-1]}(t,e,n,r,s,h,v)}s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(8),s(8),s(8),s(4),s(8),s(8),s(8),s(12);s(192),s(192);s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(8),s(8),s(8),s(8),s(8),s(8),s(8),s(8),s(8),s(4),s(4),s(4),s(8),s(16),s(16),s(16),s(32),s(32),s(48),s(64);s(1152),s(1152);s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(24),s(24),s(24),s(24),s(24),s(24),s(24),s(24),s(24),s(24),s(1152),s(1152),s(1152),s(1152),s(1152),s(2304),s(2304),s(3456),s(5760),s(8),s(8),s(8),s(16),s(24),s(48),s(48),s(96),s(192),s(384),s(384),s(384),s(768);s(96),s(96),s(96),s(1152);const p=Math.pow(2,-52),m=new Uint32Array(512);class g{static from(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;const r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=t[o];i[2*o]=e(r),i[2*o+1]=n(r)}return new g(i)}constructor(t){const e=t.length>>1;if(e>0&&"number"!==typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let a=1/0,s=1/0,c=-1/0,u=-1/0;for(let h=0;h<o;h++){const e=t[2*h],n=t[2*h+1];e<a&&(a=e),n<s&&(s=n),e>c&&(c=e),n>u&&(u=n),this._ids[h]=h}const l=(a+c)/2,f=(s+u)/2;let d,m,g;for(let h=0,p=1/0;h<o;h++){const e=v(l,f,t[2*h],t[2*h+1]);e<p&&(d=h,p=e)}const y=t[2*d],x=t[2*d+1];for(let h=0,p=1/0;h<o;h++){if(h===d)continue;const e=v(y,x,t[2*h],t[2*h+1]);e<p&&e>0&&(m=h,p=e)}let _=t[2*m],w=t[2*m+1],k=1/0;for(let h=0;h<o;h++){if(h===d||h===m)continue;const e=b(y,x,_,w,t[2*h],t[2*h+1]);e<k&&(g=h,k=e)}let E=t[2*g],F=t[2*g+1];if(k===1/0){for(let r=0;r<o;r++)this._dists[r]=t[2*r]-t[0]||t[2*r+1]-t[1];A(this._ids,this._dists,0,o-1);const e=new Uint32Array(o);let n=0;for(let t=0,r=-1/0;t<o;t++){const i=this._ids[t],o=this._dists[i];o>r&&(e[n++]=i,r=o)}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(h(y,x,_,w,E,F)<0){const t=m,e=_,n=w;m=g,_=E,w=F,g=t,E=e,F=n}const D=function(t,e,n,r,i,o){const a=n-t,s=r-e,c=i-t,u=o-e,l=a*a+s*s,f=c*c+u*u,d=.5/(a*u-s*c);return{x:t+(u*l-s*f)*d,y:e+(a*f-c*l)*d}}(y,x,_,w,E,F);this._cx=D.x,this._cy=D.y;for(let h=0;h<o;h++)this._dists[h]=v(t[2*h],t[2*h+1],D.x,D.y);A(this._ids,this._dists,0,o-1),this._hullStart=d;let C=3;n[d]=e[g]=m,n[m]=e[d]=g,n[g]=e[m]=d,r[d]=0,r[m]=1,r[g]=2,i.fill(-1),i[this._hashKey(y,x)]=d,i[this._hashKey(_,w)]=m,i[this._hashKey(E,F)]=g,this.trianglesLen=0,this._addTriangle(d,m,g,-1,-1,-1);for(let v,b,A=0;A<this._ids.length;A++){const o=this._ids[A],a=t[2*o],s=t[2*o+1];if(A>0&&Math.abs(a-v)<=p&&Math.abs(s-b)<=p)continue;if(v=a,b=s,o===d||o===m||o===g)continue;let c=0;for(let t=0,e=this._hashKey(a,s);t<this._hashSize&&(c=i[(e+t)%this._hashSize],-1===c||c===n[c]);t++);c=e[c];let u,l=c;for(;u=n[l],h(a,s,t[2*l],t[2*l+1],t[2*u],t[2*u+1])>=0;)if(l=u,l===c){l=-1;break}if(-1===l)continue;let f=this._addTriangle(l,o,n[l],-1,-1,r[l]);r[o]=this._legalize(f+2),r[l]=f,C++;let y=n[l];for(;u=n[y],h(a,s,t[2*y],t[2*y+1],t[2*u],t[2*u+1])<0;)f=this._addTriangle(y,o,u,r[o],-1,r[y]),r[o]=this._legalize(f+2),n[y]=y,C--,y=u;if(l===c)for(;u=e[l],h(a,s,t[2*u],t[2*u+1],t[2*l],t[2*l+1])<0;)f=this._addTriangle(u,o,l,-1,r[l],r[u]),this._legalize(f+2),r[u]=f,n[l]=l,C--,l=u;this._hullStart=e[o]=l,n[l]=e[y]=o,n[o]=y,i[this._hashKey(a,s)]=o,i[this._hashKey(t[2*l],t[2*l+1])]=l}this.hull=new Uint32Array(C);for(let h=0,p=this._hullStart;h<C;h++)this.hull[h]=p,p=n[p];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){const n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:e,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[t],s=t-t%3;if(o=s+(t+2)%3,-1===a){if(0===i)break;t=m[--i];continue}const c=a-a%3,u=s+(t+1)%3,l=c+(a+2)%3,f=e[o],d=e[t],h=e[u],p=e[l];if(y(r[2*f],r[2*f+1],r[2*d],r[2*d+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1])){e[t]=p,e[a]=f;const r=n[l];if(-1===r){let e=this._hullStart;do{if(this._hullTri[e]===l){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,r),this._link(a,n[o]),this._link(o,l);const s=c+(a+1)%3;i<m.length&&(m[i++]=s)}else{if(0===i)break;t=m[--i]}}return o}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,r,i,o){const a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function v(t,e,n,r){const i=t-n,o=e-r;return i*i+o*o}function y(t,e,n,r,i,o,a,s){const c=t-a,u=e-s,l=n-a,f=r-s,d=i-a,h=o-s,p=l*l+f*f,m=d*d+h*h;return c*(f*m-p*h)-u*(l*m-p*d)+(c*c+u*u)*(l*h-f*d)<0}function b(t,e,n,r,i,o){const a=n-t,s=r-e,c=i-t,u=o-e,l=a*a+s*s,f=c*c+u*u,d=.5/(a*u-s*c),h=(u*l-s*f)*d,p=(a*f-c*l)*d;return h*h+p*p}function A(t,e,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=t[i],o=e[r];let a=i-1;for(;a>=n&&e[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=n+1,o=r;x(t,n+r>>1,i),e[t[n]]>e[t[r]]&&x(t,n,r),e[t[i]]>e[t[r]]&&x(t,i,r),e[t[n]]>e[t[i]]&&x(t,n,i);const a=t[i],s=e[a];for(;;){do{i++}while(e[t[i]]<s);do{o--}while(e[t[o]]>s);if(o<i)break;x(t,i,o)}t[n+1]=t[o],t[o]=a,r-i+1>=o-n?(A(t,e,i,r),A(t,e,n,o-1)):(A(t,e,n,o-1),A(t,e,i,r))}}function x(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function _(t){return t[0]}function w(t){return t[1]}var k=n(63980),E=n(42305),F=n(54949);const D=2*Math.PI,C=Math.pow;function M(t){return t[0]}function S(t){return t[1]}function T(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class N{static from(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,r=arguments.length>3?arguments[3]:void 0;return new N("length"in t?function(t,e,n,r){const i=t.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=t[a];o[2*a]=e.call(r,i,a,t),o[2*a+1]=n.call(r,i,a,t)}return o}(t,e,n,r):Float64Array.from(function*(t,e,n,r){let i=0;for(const o of t)yield e.call(r,o,i,t),yield n.call(r,o,i,t),++i}(t,e,n,r)))}constructor(t){this._delaunator=new g(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:e,coords:n}=t;for(let r=0;r<e.length;r+=3){const t=2*e[r],i=2*e[r+1],o=2*e[r+2];if((n[o]-n[t])*(n[i+1]-n[t+1])-(n[i]-n[t])*(n[o+1]-n[t+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},((t,e)=>e)).sort(((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]));const t=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let o=0,a=e.length/2;o<a;++o){const t=T(e[2*o],e[2*o+1],i);e[2*o]=t[0],e[2*o+1]=t[1]}this._delaunator=new g(e)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let s=0,c=n.length;s<c;++s){const t=i[s%3===2?s-2:s+1];-1!==n[s]&&-1!==o[t]||(o[t]=s)}for(let s=0,c=r.length;s<c;++s)a[r[s]]=s;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new F.A(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const e=a.indexOf(t);return e>0&&(yield a[e-1]),void(e<a.length-1&&(yield a[e+1]))}const s=e[t];if(-1===s)return;let c=s,u=-1;do{if(yield u=o[c],c=c%3===2?c-2:c+1,o[c]!==t)return;if(c=i[c],-1===c){const e=n[(r[t]+1)%n.length];return void(e!==u&&(yield e))}}while(c!==s)}find(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((t=+t)!==t||(e=+e)!==e)return-1;const r=n;let i;for(;(i=this._step(n,t,e))>=0&&i!==n&&i!==r;)n=i;return i}_step(t,e,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let u=t,l=C(e-c[2*t],2)+C(n-c[2*t+1],2);const f=r[t];let d=f;do{let r=s[d];const f=C(e-c[2*r],2)+C(n-c[2*r+1],2);if(f<l&&(l=f,u=r),d=d%3===2?d-2:d+1,s[d]!==t)break;if(d=a[d],-1===d){if(d=i[(o[t]+1)%i.length],d!==r&&C(e-c[2*d],2)+C(n-c[2*d+1],2)<l)return d;break}}while(d!==f);return u}render(t){const e=null==t?t=new k.A:void 0,{points:n,halfedges:r,triangles:i}=this;for(let o=0,a=r.length;o<a;++o){const e=r[o];if(e<o)continue;const a=2*i[o],s=2*i[e];t.moveTo(n[a],n[a+1]),t.lineTo(n[s],n[s+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"===typeof t.moveTo||(e=t,t=null),e=void 0==e?2:+e;const n=null==t?t=new k.A:void 0,{points:r}=this;for(let i=0,o=r.length;i<o;i+=2){const n=r[i],o=r[i+1];t.moveTo(n+e,o),t.arc(n,o,e,0,D)}return n&&n.value()}renderHull(t){const e=null==t?t=new k.A:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;t.moveTo(r[i],r[i+1]);for(let a=1;a<o;++a){const e=2*n[a];t.lineTo(r[e],r[e+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new E.A;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new k.A:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],a=2*i[t+1],s=2*i[t+2];return e.moveTo(r[o],r[o+1]),e.lineTo(r[a],r[a+1]),e.lineTo(r[s],r[s+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new E.A;return this.renderTriangle(t,e),e.value()}}},63980:(t,e,n)=>{n.d(e,{A:()=>i});const r=1e-6;class i{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+="M".concat(this._x0=this._x1=+t,",").concat(this._y0=this._y1=+e)}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+="L".concat(this._x1=+t,",").concat(this._y1=+e)}arc(t,e,n){const i=(t=+t)+(n=+n),o=e=+e;if(n<0)throw new Error("negative radius");null===this._x1?this._+="M".concat(i,",").concat(o):(Math.abs(this._x1-i)>r||Math.abs(this._y1-o)>r)&&(this._+="L"+i+","+o),n&&(this._+="A".concat(n,",").concat(n,",0,1,1,").concat(t-n,",").concat(e,"A").concat(n,",").concat(n,",0,1,1,").concat(this._x1=i,",").concat(this._y1=o))}rect(t,e,n,r){this._+="M".concat(this._x0=this._x1=+t,",").concat(this._y0=this._y1=+e,"h").concat(+n,"v").concat(+r,"h").concat(-n,"Z")}value(){return this._||null}}},42305:(t,e,n)=>{n.d(e,{A:()=>r});class r{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}},54949:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(63980),i=n(42305);class o{constructor(t){let[e,n,r,i]=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,960,500];if(!((r=+r)>=(e=+e))||!((i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=e,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:r}=this;let i,o;const a=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let p,m,g=0,v=0,y=n.length;g<y;g+=3,v+=2){const r=2*n[g],s=2*n[g+1],c=2*n[g+2],u=t[r],l=t[r+1],f=t[s],d=t[s+1],h=t[c],y=t[c+1],b=f-u,A=d-l,x=h-u,_=y-l,w=2*(b*_-A*x);if(Math.abs(w)<1e-9){if(void 0===i){i=o=0;for(const n of e)i+=t[2*n],o+=t[2*n+1];i/=e.length,o/=e.length}const n=1e9*Math.sign((i-u)*_-(o-l)*x);p=(u+h)/2-n*_,m=(l+y)/2+n*x}else{const t=1/w,e=b*b+A*A,n=x*x+_*_;p=u+(_*e-A*n)*t,m=l+(b*n-x*e)*t}a[v]=p,a[v+1]=m}let s,c,u,l=e[e.length-1],f=4*l,d=t[2*l],h=t[2*l+1];r.fill(0);for(let p=0;p<e.length;++p)l=e[p],s=f,c=d,u=h,f=4*l,d=t[2*l],h=t[2*l+1],r[s+2]=r[f]=u-h,r[s+3]=r[f+1]=d-c}render(t){const e=null==t?t=new r.A:void 0,{delaunay:{halfedges:n,inedges:i,hull:o},circumcenters:a,vectors:s}=this;if(o.length<=1)return null;for(let r=0,l=n.length;r<l;++r){const e=n[r];if(e<r)continue;const i=2*Math.floor(r/3),o=2*Math.floor(e/3),s=a[i],c=a[i+1],u=a[o],l=a[o+1];this._renderSegment(s,c,u,l,t)}let c,u=o[o.length-1];for(let r=0;r<o.length;++r){c=u,u=o[r];const e=2*Math.floor(i[u]/3),n=a[e],l=a[e+1],f=4*c,d=this._project(n,l,s[f+2],s[f+3]);d&&this._renderSegment(n,l,d[0],d[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new r.A:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new r.A:void 0,i=this._clip(t);if(null===i||!i.length)return;e.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let r=2;r<o;r+=2)i[r]===i[r-2]&&i[r+1]===i[r-1]||e.lineTo(i[r],i[r+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new i.A;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,r,i){let o;const a=this._regioncode(t,e),s=this._regioncode(n,r);0===a&&0===s?(i.moveTo(t,e),i.lineTo(n,r)):(o=this._clipSegment(t,e,n,r,a,s))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,e,n){return(e=+e)===e&&(n=+n)===n&&this.delaunay._step(t,e,n)===t}*neighbors(t){const e=this._clip(t);if(e)for(const n of this.delaunay.neighbors(t)){const t=this._clip(n);if(t)t:for(let r=0,i=e.length;r<i;r+=2)for(let o=0,a=t.length;o<a;o+=2)if(e[r]===t[o]&&e[r+1]===t[o+1]&&e[(r+2)%i]===t[(o+a-2)%a]&&e[(r+3)%i]===t[(o+a-1)%a]){yield n;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[t];if(-1===o)return null;const a=[];let s=o;do{const n=Math.floor(s/3);if(a.push(e[2*n],e[2*n+1]),s=s%3===2?s-2:s+1,i[s]!==t)break;s=r[s]}while(s!==o&&-1!==s);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const e=this._cell(t);if(null===e)return null;const{vectors:n}=this,r=4*t;return this._simplify(n[r]||n[r+1]?this._clipInfinite(t,e,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(t,e))}_clipFinite(t,e){const n=e.length;let r,i,o,a,s=null,c=e[n-2],u=e[n-1],l=this._regioncode(c,u),f=0;for(let d=0;d<n;d+=2)if(r=c,i=u,c=e[d],u=e[d+1],o=l,l=this._regioncode(c,u),0===o&&0===l)a=f,f=0,s?s.push(c,u):s=[c,u];else{let e,n,d,h,p;if(0===o){if(null===(e=this._clipSegment(r,i,c,u,o,l)))continue;[n,d,h,p]=e}else{if(null===(e=this._clipSegment(c,u,r,i,l,o)))continue;[h,p,n,d]=e,a=f,f=this._edgecode(n,d),a&&f&&this._edge(t,a,f,s,s.length),s?s.push(n,d):s=[n,d]}a=f,f=this._edgecode(h,p),a&&f&&this._edge(t,a,f,s,s.length),s?s.push(h,p):s=[h,p]}if(s)a=f,f=this._edgecode(s[0],s[1]),a&&f&&this._edge(t,a,f,s,s.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return s}_clipSegment(t,e,n,r,i,o){const a=i<o;for(a&&([t,e,n,r,i,o]=[n,r,t,e,o,i]);;){if(0===i&&0===o)return a?[n,r,t,e]:[t,e,n,r];if(i&o)return null;let s,c,u=i||o;8&u?(s=t+(n-t)*(this.ymax-e)/(r-e),c=this.ymax):4&u?(s=t+(n-t)*(this.ymin-e)/(r-e),c=this.ymin):2&u?(c=e+(r-e)*(this.xmax-t)/(n-t),s=this.xmax):(c=e+(r-e)*(this.xmin-t)/(n-t),s=this.xmin),i?(t=s,e=c,i=this._regioncode(t,e)):(n=s,r=c,o=this._regioncode(n,r))}}_clipInfinite(t,e,n,r,i,o){let a,s=Array.from(e);if((a=this._project(s[0],s[1],n,r))&&s.unshift(a[0],a[1]),(a=this._project(s[s.length-2],s[s.length-1],i,o))&&s.push(a[0],a[1]),s=this._clipFinite(t,s))for(let c,u=0,l=s.length,f=this._edgecode(s[l-2],s[l-1]);u<l;u+=2)c=f,f=this._edgecode(s[u],s[u+1]),c&&f&&(u=this._edge(t,c,f,s,u),l=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,e,n,r,i){for(;e!==n;){let n,o;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,o=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,o=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,o=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(t,n,o)||(r.splice(i,0,n,o),i+=2)}return i}_project(t,e,n,r){let i,o,a,s=1/0;if(r<0){if(e<=this.ymin)return null;(i=(this.ymin-e)/r)<s&&(a=this.ymin,o=t+(s=i)*n)}else if(r>0){if(e>=this.ymax)return null;(i=(this.ymax-e)/r)<s&&(a=this.ymax,o=t+(s=i)*n)}if(n>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/n)<s&&(o=this.xmax,a=e+(s=i)*r)}else if(n<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/n)<s&&(o=this.xmin,a=e+(s=i)*r)}return[o,a]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let e=0;e<t.length;e+=2){const n=(e+2)%t.length,r=(e+4)%t.length;(t[e]===t[n]&&t[n]===t[r]||t[e+1]===t[n+1]&&t[n+1]===t[r+1])&&(t.splice(n,2),e-=2)}t.length||(t=null)}return t}}},1280:(t,e,n)=>{n.d(e,{A:()=>c});var r={value:()=>{}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function s(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),c=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);for(;++c<u;)if(n=(t=o[c]).type)i[n]=s(i[n],t.name,e);else if(null==e)for(n in i)i[n]=s(i[n],t.name,null);return this}for(;++c<u;)if((n=(t=o[c]).type)&&(n=a(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};const c=i},56768:(t,e,n)=>{n.d(e,{A:()=>d});var r={},i={},o=34,a=10,s=13;function c(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function u(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function l(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function f(t){var e,n=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+l(-e,6):e>9999?"+"+l(e,6):l(e,4))+"-"+l(t.getUTCMonth()+1,2)+"-"+l(t.getUTCDate(),2)+(o?"T"+l(n,2)+":"+l(r,2)+":"+l(i,2)+"."+l(o,3)+"Z":i?"T"+l(n,2)+":"+l(r,2)+":"+l(i,2)+"Z":r||n?"T"+l(n,2)+":"+l(r,2)+"Z":"")}function d(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function l(t,e){var c,u=[],l=t.length,f=0,d=0,h=l<=0,p=!1;function m(){if(h)return i;if(p)return p=!1,r;var e,c,u=f;if(t.charCodeAt(u)===o){for(;f++<l&&t.charCodeAt(f)!==o||t.charCodeAt(++f)===o;);return(e=f)>=l?h=!0:(c=t.charCodeAt(f++))===a?p=!0:c===s&&(p=!0,t.charCodeAt(f)===a&&++f),t.slice(u+1,e-1).replace(/""/g,'"')}for(;f<l;){if((c=t.charCodeAt(e=f++))===a)p=!0;else if(c===s)p=!0,t.charCodeAt(f)===a&&++f;else if(c!==n)continue;return t.slice(u,e)}return h=!0,t.slice(u,l)}for(t.charCodeAt(l-1)===a&&--l,t.charCodeAt(l-1)===s&&--l;(c=m())!==i;){for(var g=[];c!==r&&c!==i;)g.push(c),c=m();e&&null==(g=e(g,d++))||u.push(g)}return u}function d(e,n){return e.map((function(e){return n.map((function(t){return p(e[t])})).join(t)}))}function h(e){return e.map(p).join(t)}function p(t){return null==t?"":t instanceof Date?f(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,r,i=l(t,(function(t,i){if(n)return n(t,i-1);r=t,n=e?function(t,e){var n=c(t);return function(r,i){return e(n(r),i,t)}}(t,e):c(t)}));return i.columns=r||[],i},parseRows:l,format:function(e,n){return null==n&&(n=u(e)),[n.map(p).join(t)].concat(d(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=u(t)),d(t,e).join("\n")},formatRows:function(t){return t.map(h).join("\n")},formatRow:h,formatValue:p}}},35034:(t,e,n)=>{function r(t,e){var n,r=1;function i(){var i,o,a=n.length,s=0,c=0;for(i=0;i<a;++i)s+=(o=n[i]).x,c+=o.y;for(s=(s/a-t)*r,c=(c/a-e)*r,i=0;i<a;++i)(o=n[i]).x-=s,o.y-=c}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i}n.d(e,{A:()=>r})},4593:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(67466),i=n(38283),o=n(36879);function a(t){return t.x+t.vx}function s(t){return t.y+t.vy}function c(t){var e,n,c,u=1,l=1;function f(){for(var t,i,f,h,p,m,g,v=e.length,y=0;y<l;++y)for(i=(0,r.A)(e,a,s).visitAfter(d),t=0;t<v;++t)f=e[t],m=n[f.index],g=m*m,h=f.x+f.vx,p=f.y+f.vy,i.visit(b);function b(t,e,n,r,i){var a=t.data,s=t.r,l=m+s;if(!a)return e>h+l||r<h-l||n>p+l||i<p-l;if(a.index>f.index){var d=h-a.x-a.vx,v=p-a.y-a.vy,y=d*d+v*v;y<l*l&&(0===d&&(y+=(d=(0,o.A)(c))*d),0===v&&(y+=(v=(0,o.A)(c))*v),y=(l-(y=Math.sqrt(y)))/y*u,f.vx+=(d*=y)*(l=(s*=s)/(g+s)),f.vy+=(v*=y)*l,a.vx-=d*(l=1-l),a.vy-=v*l)}}}function d(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function h(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!==typeof t&&(t=(0,i.A)(null==t?1:+t)),f.initialize=function(t,n){e=t,c=n,h()},f.iterations=function(t){return arguments.length?(l=+t,f):l},f.strength=function(t){return arguments.length?(u=+t,f):u},f.radius=function(e){return arguments.length?(t="function"===typeof e?e:(0,i.A)(+e),h(),f):t},f}},38283:(t,e,n)=>{function r(t){return function(){return t}}n.d(e,{A:()=>r})},36879:(t,e,n)=>{function r(t){return 1e-6*(t()-.5)}n.d(e,{A:()=>r})},38119:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(38283),i=n(36879);function o(t){return t.index}function a(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function s(t){var e,n,s,c,u,l,f=o,d=function(t){return 1/Math.min(c[t.source.index],c[t.target.index])},h=(0,r.A)(30),p=1;function m(r){for(var o=0,a=t.length;o<p;++o)for(var s,c,f,d,h,m,g,v=0;v<a;++v)c=(s=t[v]).source,d=(f=s.target).x+f.vx-c.x-c.vx||(0,i.A)(l),h=f.y+f.vy-c.y-c.vy||(0,i.A)(l),d*=m=((m=Math.sqrt(d*d+h*h))-n[v])/m*r*e[v],h*=m,f.vx-=d*(g=u[v]),f.vy-=h*g,c.vx+=d*(g=1-g),c.vy+=h*g}function g(){if(s){var r,i,o=s.length,l=t.length,d=new Map(s.map(((t,e)=>[f(t,e,s),t])));for(r=0,c=new Array(o);r<l;++r)(i=t[r]).index=r,"object"!==typeof i.source&&(i.source=a(d,i.source)),"object"!==typeof i.target&&(i.target=a(d,i.target)),c[i.source.index]=(c[i.source.index]||0)+1,c[i.target.index]=(c[i.target.index]||0)+1;for(r=0,u=new Array(l);r<l;++r)i=t[r],u[r]=c[i.source.index]/(c[i.source.index]+c[i.target.index]);e=new Array(l),v(),n=new Array(l),y()}}function v(){if(s)for(var n=0,r=t.length;n<r;++n)e[n]=+d(t[n],n,t)}function y(){if(s)for(var e=0,r=t.length;e<r;++e)n[e]=+h(t[e],e,t)}return null==t&&(t=[]),m.initialize=function(t,e){s=t,l=e,g()},m.links=function(e){return arguments.length?(t=e,g(),m):t},m.id=function(t){return arguments.length?(f=t,m):f},m.iterations=function(t){return arguments.length?(p=+t,m):p},m.strength=function(t){return arguments.length?(d="function"===typeof t?t:(0,r.A)(+t),v(),m):d},m.distance=function(t){return arguments.length?(h="function"===typeof t?t:(0,r.A)(+t),y(),m):h},m}},64948:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(67466),i=n(38283),o=n(36879),a=n(99968);function s(){var t,e,n,s,c,u=(0,i.A)(-30),l=1,f=1/0,d=.81;function h(n){var i,o=t.length,c=(0,r.A)(t,a.x,a.y).visitAfter(m);for(s=n,i=0;i<o;++i)e=t[i],c.visit(g)}function p(){if(t){var e,n,r=t.length;for(c=new Array(r),e=0;e<r;++e)n=t[e],c[n.index]=+u(n,e,t)}}function m(t){var e,n,r,i,o,a=0,s=0;if(t.length){for(r=i=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(a+=e.value,s+=n,r+=n*e.x,i+=n*e.y);t.x=r/s,t.y=i/s}else{(e=t).x=e.data.x,e.y=e.data.y;do{a+=c[e.data.index]}while(e=e.next)}t.value=a}function g(t,r,i,a){if(!t.value)return!0;var u=t.x-e.x,h=t.y-e.y,p=a-r,m=u*u+h*h;if(p*p/d<m)return m<f&&(0===u&&(m+=(u=(0,o.A)(n))*u),0===h&&(m+=(h=(0,o.A)(n))*h),m<l&&(m=Math.sqrt(l*m)),e.vx+=u*t.value*s/m,e.vy+=h*t.value*s/m),!0;if(!(t.length||m>=f)){(t.data!==e||t.next)&&(0===u&&(m+=(u=(0,o.A)(n))*u),0===h&&(m+=(h=(0,o.A)(n))*h),m<l&&(m=Math.sqrt(l*m)));do{t.data!==e&&(p=c[t.data.index]*s/m,e.vx+=u*p,e.vy+=h*p)}while(t=t.next)}}return h.initialize=function(e,r){t=e,n=r,p()},h.strength=function(t){return arguments.length?(u="function"===typeof t?t:(0,i.A)(+t),p(),h):u},h.distanceMin=function(t){return arguments.length?(l=t*t,h):Math.sqrt(l)},h.distanceMax=function(t){return arguments.length?(f=t*t,h):Math.sqrt(f)},h.theta=function(t){return arguments.length?(d=t*t,h):Math.sqrt(d)},h}},99968:(t,e,n)=>{n.d(e,{A:()=>d,x:()=>c,y:()=>u});var r=n(1280),i=n(79488);const o=1664525,a=1013904223,s=4294967296;function c(t){return t.x}function u(t){return t.y}var l=10,f=Math.PI*(3-Math.sqrt(5));function d(t){var e,n=1,c=.001,u=1-Math.pow(c,1/300),d=0,h=.6,p=new Map,m=(0,i.O1)(y),g=(0,r.A)("tick","end"),v=function(){let t=1;return()=>(t=(o*t+a)%s)/s}();function y(){b(),g.call("tick",e),n<c&&(m.stop(),g.call("end",e))}function b(r){var i,o,a=t.length;void 0===r&&(r=1);for(var s=0;s<r;++s)for(n+=(d-n)*u,p.forEach((function(t){t(n)})),i=0;i<a;++i)null==(o=t[i]).fx?o.x+=o.vx*=h:(o.x=o.fx,o.vx=0),null==o.fy?o.y+=o.vy*=h:(o.y=o.fy,o.vy=0);return e}function A(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=l*Math.sqrt(.5+n),o=n*f;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function x(e){return e.initialize&&e.initialize(t,v),e}return null==t&&(t=[]),A(),e={tick:b,restart:function(){return m.restart(y),e},stop:function(){return m.stop(),e},nodes:function(n){return arguments.length?(t=n,A(),p.forEach(x),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(c=+t,e):c},alphaDecay:function(t){return arguments.length?(u=+t,e):+u},alphaTarget:function(t){return arguments.length?(d=+t,e):d},velocityDecay:function(t){return arguments.length?(h=1-t,e):1-h},randomSource:function(t){return arguments.length?(v=t,p.forEach(x),e):v},force:function(t,n){return arguments.length>1?(null==n?p.delete(t):p.set(t,x(n)),e):p.get(t)},find:function(e,n,r){var i,o,a,s,c,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u<l;++u)(a=(i=e-(s=t[u]).x)*i+(o=n-s.y)*o)<r&&(c=s,r=a);return c},on:function(t,n){return arguments.length>1?(g.on(t,n),e):g.on(t)}}}},11015:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(38283);function i(t){var e,n,i,o=(0,r.A)(.1);function a(t){for(var r,o=0,a=e.length;o<a;++o)(r=e[o]).vx+=(i[o]-r.x)*n[o]*t}function s(){if(e){var r,a=e.length;for(n=new Array(a),i=new Array(a),r=0;r<a;++r)n[r]=isNaN(i[r]=+t(e[r],r,e))?0:+o(e[r],r,e)}}return"function"!==typeof t&&(t=(0,r.A)(null==t?0:+t)),a.initialize=function(t){e=t,s()},a.strength=function(t){return arguments.length?(o="function"===typeof t?t:(0,r.A)(+t),s(),a):o},a.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.A)(+e),s(),a):t},a}},87792:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(38283);function i(t){var e,n,i,o=(0,r.A)(.1);function a(t){for(var r,o=0,a=e.length;o<a;++o)(r=e[o]).vy+=(i[o]-r.y)*n[o]*t}function s(){if(e){var r,a=e.length;for(n=new Array(a),i=new Array(a),r=0;r<a;++r)n[r]=isNaN(i[r]=+t(e[r],r,e))?0:+o(e[r],r,e)}}return"function"!==typeof t&&(t=(0,r.A)(null==t?0:+t)),a.initialize=function(t){e=t,s()},a.strength=function(t){return arguments.length?(o="function"===typeof t?t:(0,r.A)(+t),s(),a):o},a.y=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.A)(+e),s(),a):t},a}},56214:(t,e,n)=>{n.d(e,{Ay:()=>s,GP:()=>i,s:()=>o});var r,i,o,a=n(47339);function s(t){return r=(0,a.A)(t),i=r.format,o=r.formatPrefix,r}s({thousands:",",grouping:[3],currency:["$",""]})},19554:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(32139);function i(t){return(t=(0,r.f)(Math.abs(t)))?t[1]:NaN}},32139:(t,e,n)=>{function r(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function i(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{A:()=>r,f:()=>i})},30276:(t,e,n)=>{n.d(e,{A:()=>i,S:()=>o});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},47339:(t,e,n)=>{n.d(e,{A:()=>d});var r=n(19554);var i=n(30276);var o,a=n(32139);function s(t,e){var n=(0,a.f)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const c={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:a.A,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>s(100*t,e),r:s,s:function(t,e){var n=(0,a.f)(t,e);if(!n)return t+"";var r=n[0],i=n[1],s=i-(o=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,c=r.length;return s===c?r:s>c?r+new Array(s-c+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+(0,a.f)(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function u(t){return t}var l=Array.prototype.map,f=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function d(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?u:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",d=void 0===t.currency?"":t.currency[1]+"",h=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?u:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(l.call(t.numerals,String)),m=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"\u2212":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=(0,i.A)(t)).fill,n=t.align,r=t.sign,u=t.symbol,l=t.zero,y=t.width,b=t.comma,A=t.precision,x=t.trim,_=t.type;"n"===_?(b=!0,_="g"):c[_]||(void 0===A&&(A=12),x=!0,_="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var w="$"===u?s:"#"===u&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k="$"===u?d:/[%p]/.test(_)?m:"",E=c[_],F=/[defgprs%]/.test(_);function D(t){var i,s,c,u=w,d=k;if("c"===_)d=E(t)+d,t="";else{var m=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:E(Math.abs(t),A),x&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),m&&0===+t&&"+"!==r&&(m=!1),u=(m?"("===r?r:g:"-"===r||"("===r?"":r)+u,d=("s"===_?f[8+o/3]:"")+d+(m&&"("===r?")":""),F)for(i=-1,s=t.length;++i<s;)if(48>(c=t.charCodeAt(i))||c>57){d=(46===c?h+t.slice(i+1):t.slice(i))+d,t=t.slice(0,i);break}}b&&!l&&(t=a(t,1/0));var D=u.length+t.length+d.length,C=D<y?new Array(y-D+1).join(e):"";switch(b&&l&&(t=a(C+t,C.length?y-d.length:1/0),C=""),n){case"<":t=u+t+d+C;break;case"=":t=u+C+t+d;break;case"^":t=C.slice(0,D=C.length>>1)+u+t+d+C.slice(D);break;default:t=C+u+t+d}return p(t)}return A=void 0===A?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A)),D.toString=function(){return t+""},D}return{format:y,formatPrefix:function(t,e){var n=y(((t=(0,i.A)(t)).type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor((0,r.A)(e)/3))),a=Math.pow(10,-o),s=f[8+o/3];return function(t){return n(a*t)+s}}}}},97867:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(19554);function i(t){return Math.max(0,-(0,r.A)(Math.abs(t)))}},48249:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(19554);function i(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.A)(e)/3)))-(0,r.A)(Math.abs(t)))}},43877:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(19554);function i(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,r.A)(e)-(0,r.A)(t))+1}},30896:(t,e,n)=>{n.d(e,{Ay:()=>b,B0:()=>d,Y7:()=>p});var r,i,o,a,s,c=n(79876),u=n(3603),l=n(78005),f=n(86057),d=new c.ph,h=new c.ph,p={point:l.A,lineStart:l.A,lineEnd:l.A,polygonStart:function(){d=new c.ph,p.lineStart=m,p.lineEnd=g},polygonEnd:function(){var t=+d;h.add(t<0?u.FA+t:t),this.lineStart=this.lineEnd=this.point=l.A},sphere:function(){h.add(u.FA)}};function m(){p.point=v}function g(){y(r,i)}function v(t,e){p.point=y,r=t,i=e,t*=u.F2,e*=u.F2,o=t,a=(0,u.gn)(e=e/2+u.gz),s=(0,u.F8)(e)}function y(t,e){t*=u.F2,e=(e*=u.F2)/2+u.gz;var n=t-o,r=n>=0?1:-1,i=r*n,c=(0,u.gn)(e),l=(0,u.F8)(e),f=s*l,h=a*c+f*(0,u.gn)(i),p=f*r*(0,u.F8)(i);d.add((0,u.FP)(p,h)),o=t,a=c,s=l}function b(t){return h=new c.ph,(0,f.A)(t,p),2*h}},37332:(t,e,n)=>{n.d(e,{A:()=>S});var r,i,o,a,s,c,u,l,f,d,h,p=n(79876),m=n(30896),g=n(75887),v=n(3603),y=n(86057),b={point:A,lineStart:_,lineEnd:w,polygonStart:function(){b.point=k,b.lineStart=E,b.lineEnd=F,f=new p.ph,m.Y7.polygonStart()},polygonEnd:function(){m.Y7.polygonEnd(),b.point=A,b.lineStart=_,b.lineEnd=w,m.B0<0?(r=-(o=180),i=-(a=90)):f>v.Ni?a=90:f<-v.Ni&&(i=-90),h[0]=r,h[1]=o},sphere:function(){r=-(o=180),i=-(a=90)}};function A(t,e){d.push(h=[r=t,o=t]),e<i&&(i=e),e>a&&(a=e)}function x(t,e){var n=(0,g.jf)([t*v.F2,e*v.F2]);if(l){var c=(0,g.r8)(l,n),u=[c[1],-c[0],0],f=(0,g.r8)(u,c);(0,g.Cx)(f),f=(0,g.EV)(f);var p,m=t-s,y=m>0?1:-1,b=f[0]*v.uj*y,A=(0,v.tn)(m)>180;A^(y*s<b&&b<y*t)?(p=f[1]*v.uj)>a&&(a=p):A^(y*s<(b=(b+360)%360-180)&&b<y*t)?(p=-f[1]*v.uj)<i&&(i=p):(e<i&&(i=e),e>a&&(a=e)),A?t<s?D(r,t)>D(r,o)&&(o=t):D(t,o)>D(r,o)&&(r=t):o>=r?(t<r&&(r=t),t>o&&(o=t)):t>s?D(r,t)>D(r,o)&&(o=t):D(t,o)>D(r,o)&&(r=t)}else d.push(h=[r=t,o=t]);e<i&&(i=e),e>a&&(a=e),l=n,s=t}function _(){b.point=x}function w(){h[0]=r,h[1]=o,b.point=A,l=null}function k(t,e){if(l){var n=t-s;f.add((0,v.tn)(n)>180?n+(n>0?360:-360):n)}else c=t,u=e;m.Y7.point(t,e),x(t,e)}function E(){m.Y7.lineStart()}function F(){k(c,u),m.Y7.lineEnd(),(0,v.tn)(f)>v.Ni&&(r=-(o=180)),h[0]=r,h[1]=o,l=null}function D(t,e){return(e-=t)<0?e+360:e}function C(t,e){return t[0]-e[0]}function M(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function S(t){var e,n,s,c,u,l,f;if(a=o=-(r=i=1/0),d=[],(0,y.A)(t,b),n=d.length){for(d.sort(C),e=1,u=[s=d[0]];e<n;++e)M(s,(c=d[e])[0])||M(s,c[1])?(D(s[0],c[1])>D(s[0],s[1])&&(s[1]=c[1]),D(c[0],s[1])>D(s[0],s[1])&&(s[0]=c[0])):u.push(s=c);for(l=-1/0,e=0,s=u[n=u.length-1];e<=n;s=c,++e)c=u[e],(f=D(s[1],c[0]))>l&&(l=f,r=c[0],o=s[1])}return d=h=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[o,a]]}},75887:(t,e,n)=>{n.d(e,{Cx:()=>l,EV:()=>i,W8:()=>a,ep:()=>c,jf:()=>o,ly:()=>u,r8:()=>s});var r=n(3603);function i(t){return[(0,r.FP)(t[1],t[0]),(0,r.qR)(t[2])]}function o(t){var e=t[0],n=t[1],i=(0,r.gn)(n);return[i*(0,r.gn)(e),i*(0,r.F8)(e),(0,r.F8)(n)]}function a(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function s(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function c(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function u(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function l(t){var e=(0,r.RZ)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}},83677:(t,e,n)=>{n.d(e,{A:()=>B});var r,i,o,a,s,c,u,l,f,d,h,p,m,g,v,y,b=n(79876),A=n(3603),x=n(78005),_=n(86057),w={sphere:x.A,point:k,lineStart:F,lineEnd:M,polygonStart:function(){w.lineStart=S,w.lineEnd=T},polygonEnd:function(){w.lineStart=F,w.lineEnd=M}};function k(t,e){t*=A.F2,e*=A.F2;var n=(0,A.gn)(e);E(n*(0,A.gn)(t),n*(0,A.F8)(t),(0,A.F8)(e))}function E(t,e,n){++r,o+=(t-o)/r,a+=(e-a)/r,s+=(n-s)/r}function F(){w.point=D}function D(t,e){t*=A.F2,e*=A.F2;var n=(0,A.gn)(e);g=n*(0,A.gn)(t),v=n*(0,A.F8)(t),y=(0,A.F8)(e),w.point=C,E(g,v,y)}function C(t,e){t*=A.F2,e*=A.F2;var n=(0,A.gn)(e),r=n*(0,A.gn)(t),o=n*(0,A.F8)(t),a=(0,A.F8)(e),s=(0,A.FP)((0,A.RZ)((s=v*a-y*o)*s+(s=y*r-g*a)*s+(s=g*o-v*r)*s),g*r+v*o+y*a);i+=s,c+=s*(g+(g=r)),u+=s*(v+(v=o)),l+=s*(y+(y=a)),E(g,v,y)}function M(){w.point=k}function S(){w.point=N}function T(){O(p,m),w.point=k}function N(t,e){p=t,m=e,t*=A.F2,e*=A.F2,w.point=O;var n=(0,A.gn)(e);g=n*(0,A.gn)(t),v=n*(0,A.F8)(t),y=(0,A.F8)(e),E(g,v,y)}function O(t,e){t*=A.F2,e*=A.F2;var n=(0,A.gn)(e),r=n*(0,A.gn)(t),o=n*(0,A.F8)(t),a=(0,A.F8)(e),s=v*a-y*o,p=y*r-g*a,m=g*o-v*r,b=(0,A.dY)(s,p,m),x=(0,A.qR)(b),_=b&&-x/b;f.add(_*s),d.add(_*p),h.add(_*m),i+=x,c+=x*(g+(g=r)),u+=x*(v+(v=o)),l+=x*(y+(y=a)),E(g,v,y)}function B(t){r=i=o=a=s=c=u=l=0,f=new b.ph,d=new b.ph,h=new b.ph,(0,_.A)(t,w);var e=+f,n=+d,p=+h,m=(0,A.dY)(e,n,p);return m<A.$t&&(e=c,n=u,p=l,i<A.Ni&&(e=o,n=a,p=s),(m=(0,A.dY)(e,n,p))<A.$t)?[NaN,NaN]:[(0,A.FP)(n,e)*A.uj,(0,A.qR)(p/m)*A.uj]}},81871:(t,e,n)=>{n.d(e,{J:()=>s,A:()=>u});var r=n(75887);function i(t){return function(){return t}}var o=n(3603),a=n(43531);function s(t,e,n,i,a,s){if(n){var u=(0,o.gn)(e),l=(0,o.F8)(e),f=i*n;null==a?(a=e+i*o.FA,s=e-f/2):(a=c(u,a),s=c(u,s),(i>0?a<s:a>s)&&(a+=i*o.FA));for(var d,h=a;i>0?h>s:h<s;h-=f)d=(0,r.EV)([u,-l*(0,o.gn)(h),-l*(0,o.F8)(h)]),t.point(d[0],d[1])}}function c(t,e){(e=(0,r.jf)(e))[0]-=t,(0,r.Cx)(e);var n=(0,o.HQ)(-e[1]);return((-e[2]<0?-n:n)+o.FA-o.Ni)%o.FA}function u(){var t,e,n=i([0,0]),r=i(90),c=i(2),u={point:function(n,r){t.push(n=e(n,r)),n[0]*=o.uj,n[1]*=o.uj}};function l(){var i=n.apply(this,arguments),l=r.apply(this,arguments)*o.F2,f=c.apply(this,arguments)*o.F2;return t=[],e=(0,a.y)(-i[0]*o.F2,-i[1]*o.F2,0).invert,s(u,l,f,1),i={type:"Polygon",coordinates:[t]},t=e=null,i}return l.center=function(t){return arguments.length?(n="function"===typeof t?t:i([+t[0],+t[1]]),l):n},l.radius=function(t){return arguments.length?(r="function"===typeof t?t:i(+t),l):r},l.precision=function(t){return arguments.length?(c="function"===typeof t?t:i(+t),l):c},l}},91061:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(79872),i=n(3603);const o=(0,r.A)((function(){return!0}),(function(t){var e,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,s){var c=a>0?i.pi:-i.pi,u=(0,i.tn)(a-n);(0,i.tn)(u-i.pi)<i.Ni?(t.point(n,r=(r+s)/2>0?i.TW:-i.TW),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(a,r),e=0):o!==c&&u>=i.pi&&((0,i.tn)(n-o)<i.Ni&&(n-=o*i.Ni),(0,i.tn)(a-c)<i.Ni&&(a-=c*i.Ni),r=function(t,e,n,r){var o,a,s=(0,i.F8)(t-n);return(0,i.tn)(s)>i.Ni?(0,i.rY)(((0,i.F8)(e)*(a=(0,i.gn)(r))*(0,i.F8)(n)-(0,i.F8)(r)*(o=(0,i.gn)(e))*(0,i.F8)(t))/(o*a*s)):(e+r)/2}(n,r,a,s),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),e=0),t.point(n=a,r=s),o=c},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var o;if(null==t)o=n*i.TW,r.point(-i.pi,o),r.point(0,o),r.point(i.pi,o),r.point(i.pi,0),r.point(i.pi,-o),r.point(0,-o),r.point(-i.pi,-o),r.point(-i.pi,0),r.point(-i.pi,o);else if((0,i.tn)(t[0]-e[0])>i.Ni){var a=t[0]<e[0]?i.pi:-i.pi;o=n*a/2,r.point(-a,o),r.point(0,o),r.point(a,o)}else r.point(e[0],e[1])}),[-i.pi,-i.TW])},35328:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(78005);function i(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:r.A,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}},3442:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(75887),i=n(81871),o=n(3603),a=n(27999),s=n(79872);function c(t){var e=(0,o.gn)(t),n=2*o.F2,c=e>0,u=(0,o.tn)(e)>o.Ni;function l(t,n){return(0,o.gn)(t)*(0,o.gn)(n)>e}function f(t,n,i){var a=(0,r.jf)(t),s=(0,r.jf)(n),c=[1,0,0],u=(0,r.r8)(a,s),l=(0,r.W8)(u,u),f=u[0],d=l-f*f;if(!d)return!i&&t;var h=e*l/d,p=-e*f/d,m=(0,r.r8)(c,u),g=(0,r.ly)(c,h),v=(0,r.ly)(u,p);(0,r.ep)(g,v);var y=m,b=(0,r.W8)(g,y),A=(0,r.W8)(y,y),x=b*b-A*((0,r.W8)(g,g)-1);if(!(x<0)){var _=(0,o.RZ)(x),w=(0,r.ly)(y,(-b-_)/A);if((0,r.ep)(w,g),w=(0,r.EV)(w),!i)return w;var k,E=t[0],F=n[0],D=t[1],C=n[1];F<E&&(k=E,E=F,F=k);var M=F-E,S=(0,o.tn)(M-o.pi)<o.Ni;if(!S&&C<D&&(k=D,D=C,C=k),S||M<o.Ni?S?D+C>0^w[1]<((0,o.tn)(w[0]-E)<o.Ni?D:C):D<=w[1]&&w[1]<=C:M>o.pi^(E<=w[0]&&w[0]<=F)){var T=(0,r.ly)(y,(-b+_)/A);return(0,r.ep)(T,g),[w,(0,r.EV)(T)]}}}function d(e,n){var r=c?t:o.pi-t,i=0;return e<-r?i|=1:e>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}return(0,s.A)(l,(function(t){var e,n,r,i,s;return{lineStart:function(){i=r=!1,s=1},point:function(h,p){var m,g=[h,p],v=l(h,p),y=c?v?0:d(h,p):v?d(h+(h<0?o.pi:-o.pi),p):0;if(!e&&(i=r=v)&&t.lineStart(),v!==r&&(!(m=f(e,g))||(0,a.A)(e,m)||(0,a.A)(g,m))&&(g[2]=1),v!==r)s=0,v?(t.lineStart(),m=f(g,e),t.point(m[0],m[1])):(m=f(e,g),t.point(m[0],m[1],2),t.lineEnd()),e=m;else if(u&&e&&c^v){var b;y&n||!(b=f(g,e,!0))||(s=0,c?(t.lineStart(),t.point(b[0][0],b[0][1]),t.point(b[1][0],b[1][1]),t.lineEnd()):(t.point(b[1][0],b[1][1]),t.lineEnd(),t.lineStart(),t.point(b[0][0],b[0][1],3)))}!v||e&&(0,a.A)(e,g)||t.point(g[0],g[1]),e=g,r=v,n=y},lineEnd:function(){r&&t.lineEnd(),e=null},clean:function(){return s|(i&&r)<<1}}}),(function(e,r,o,a){(0,i.J)(a,t,n,o,e,r)}),c?[0,-t]:[-o.pi,t-o.pi])}},79872:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(35328),i=n(23575),o=n(3603),a=n(44362),s=n(58533);function c(t,e,n,o){return function(c){var f,d,h,p=e(c),m=(0,r.A)(),g=e(m),v=!1,y={point:b,lineStart:x,lineEnd:_,polygonStart:function(){y.point=w,y.lineStart=k,y.lineEnd=E,d=[],f=[]},polygonEnd:function(){y.point=b,y.lineStart=x,y.lineEnd=_,d=(0,s.A)(d);var t=(0,a.A)(f,o);d.length?(v||(c.polygonStart(),v=!0),(0,i.A)(d,l,t,n,c)):t&&(v||(c.polygonStart(),v=!0),c.lineStart(),n(null,null,1,c),c.lineEnd()),v&&(c.polygonEnd(),v=!1),d=f=null},sphere:function(){c.polygonStart(),c.lineStart(),n(null,null,1,c),c.lineEnd(),c.polygonEnd()}};function b(e,n){t(e,n)&&c.point(e,n)}function A(t,e){p.point(t,e)}function x(){y.point=A,p.lineStart()}function _(){y.point=b,p.lineEnd()}function w(t,e){h.push([t,e]),g.point(t,e)}function k(){g.lineStart(),h=[]}function E(){w(h[0][0],h[0][1]),g.lineEnd();var t,e,n,r,i=g.clean(),o=m.result(),a=o.length;if(h.pop(),f.push(h),h=null,a)if(1&i){if((e=(n=o[0]).length-1)>0){for(v||(c.polygonStart(),v=!0),c.lineStart(),t=0;t<e;++t)c.point((r=n[t])[0],r[1]);c.lineEnd()}}else a>1&&2&i&&o.push(o.pop().concat(o.shift())),d.push(o.filter(u))}return y}}function u(t){return t.length>1}function l(t,e){return((t=t.x)[0]<0?t[1]-o.TW-o.Ni:o.TW-t[1])-((e=e.x)[0]<0?e[1]-o.TW-o.Ni:o.TW-e[1])}},82101:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(3603),i=n(35328);var o=n(23575),a=n(58533),s=1e9,c=-s;function u(t,e,n,u){function l(r,i){return t<=r&&r<=n&&e<=i&&i<=u}function f(r,i,o,a){var s=0,c=0;if(null==r||(s=d(r,o))!==(c=d(i,o))||p(r,i)<0^o>0)do{a.point(0===s||3===s?t:n,s>1?u:e)}while((s=(s+o+4)%4)!==c);else a.point(i[0],i[1])}function d(i,o){return(0,r.tn)(i[0]-t)<r.Ni?o>0?0:3:(0,r.tn)(i[0]-n)<r.Ni?o>0?2:1:(0,r.tn)(i[1]-e)<r.Ni?o>0?1:0:o>0?3:2}function h(t,e){return p(t.x,e.x)}function p(t,e){var n=d(t,1),r=d(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(r){var d,p,m,g,v,y,b,A,x,_,w,k=r,E=(0,i.A)(),F={point:D,lineStart:function(){F.point=C,p&&p.push(m=[]);_=!0,x=!1,b=A=NaN},lineEnd:function(){d&&(C(g,v),y&&x&&E.rejoin(),d.push(E.result()));F.point=D,x&&k.lineEnd()},polygonStart:function(){k=E,d=[],p=[],w=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,r=p.length;n<r;++n)for(var i,o,a=p[n],s=1,c=a.length,l=a[0],f=l[0],d=l[1];s<c;++s)i=f,o=d,f=(l=a[s])[0],d=l[1],o<=u?d>u&&(f-i)*(u-o)>(d-o)*(t-i)&&++e:d<=u&&(f-i)*(u-o)<(d-o)*(t-i)&&--e;return e}(),n=w&&e,i=(d=(0,a.A)(d)).length;(n||i)&&(r.polygonStart(),n&&(r.lineStart(),f(null,null,1,r),r.lineEnd()),i&&(0,o.A)(d,h,e,f,r),r.polygonEnd());k=r,d=p=m=null}};function D(t,e){l(t,e)&&k.point(t,e)}function C(r,i){var o=l(r,i);if(p&&m.push([r,i]),_)g=r,v=i,y=o,_=!1,o&&(k.lineStart(),k.point(r,i));else if(o&&x)k.point(r,i);else{var a=[b=Math.max(c,Math.min(s,b)),A=Math.max(c,Math.min(s,A))],f=[r=Math.max(c,Math.min(s,r)),i=Math.max(c,Math.min(s,i))];!function(t,e,n,r,i,o){var a,s=t[0],c=t[1],u=0,l=1,f=e[0]-s,d=e[1]-c;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a<u)return;a<l&&(l=a)}else if(f>0){if(a>l)return;a>u&&(u=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>u&&(u=a)}else if(f>0){if(a<u)return;a<l&&(l=a)}if(a=r-c,d||!(a>0)){if(a/=d,d<0){if(a<u)return;a<l&&(l=a)}else if(d>0){if(a>l)return;a>u&&(u=a)}if(a=o-c,d||!(a<0)){if(a/=d,d<0){if(a>l)return;a>u&&(u=a)}else if(d>0){if(a<u)return;a<l&&(l=a)}return u>0&&(t[0]=s+u*f,t[1]=c+u*d),l<1&&(e[0]=s+l*f,e[1]=c+l*d),!0}}}}}(a,f,t,e,n,u)?o&&(k.lineStart(),k.point(r,i),w=!1):(x||(k.lineStart(),k.point(a[0],a[1])),k.point(f[0],f[1]),o||k.lineEnd(),w=!1)}b=r,A=i,x=o}return F}}},23575:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(27999),i=n(3603);function o(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function a(t,e,n,a,c){var u,l,f=[],d=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,a=t[0],s=t[e];if((0,r.A)(a,s)){if(!a[2]&&!s[2]){for(c.lineStart(),u=0;u<e;++u)c.point((a=t[u])[0],a[1]);return void c.lineEnd()}s[0]+=2*i.Ni}f.push(n=new o(a,t,null,!0)),d.push(n.o=new o(a,null,n,!1)),f.push(n=new o(s,t,null,!1)),d.push(n.o=new o(s,null,n,!0))}})),f.length){for(d.sort(e),s(f),s(d),u=0,l=d.length;u<l;++u)d[u].e=n=!n;for(var h,p,m=f[0];;){for(var g=m,v=!0;g.v;)if((g=g.n)===m)return;h=g.z,c.lineStart();do{if(g.v=g.o.v=!0,g.e){if(v)for(u=0,l=h.length;u<l;++u)c.point((p=h[u])[0],p[1]);else a(g.x,g.n.x,1,c);g=g.n}else{if(v)for(h=g.p.z,u=h.length-1;u>=0;--u)c.point((p=h[u])[0],p[1]);else a(g.x,g.p.x,-1,c);g=g.p}h=(g=g.o).z,v=!v}while(!g.v);c.lineEnd()}}}function s(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}},93689:(t,e,n)=>{function r(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}n.d(e,{A:()=>r})},62741:(t,e,n)=>{n.d(e,{A:()=>s,q:()=>c});var r=n(36172),i=n(3603);function o(t,e,n){var o=(0,r.A)(t,e-i.Ni,n).concat(e);return function(t){return o.map((function(e){return[t,e]}))}}function a(t,e,n){var o=(0,r.A)(t,e-i.Ni,n).concat(e);return function(t){return o.map((function(e){return[e,t]}))}}function s(){var t,e,n,s,c,u,l,f,d,h,p,m,g=10,v=g,y=90,b=360,A=2.5;function x(){return{type:"MultiLineString",coordinates:_()}}function _(){return(0,r.A)((0,i.mk)(s/y)*y,n,y).map(p).concat((0,r.A)((0,i.mk)(f/b)*b,l,b).map(m)).concat((0,r.A)((0,i.mk)(e/g)*g,t,g).filter((function(t){return(0,i.tn)(t%y)>i.Ni})).map(d)).concat((0,r.A)((0,i.mk)(u/v)*v,c,v).filter((function(t){return(0,i.tn)(t%b)>i.Ni})).map(h))}return x.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},x.outline=function(){return{type:"Polygon",coordinates:[p(s).concat(m(l).slice(1),p(n).reverse().slice(1),m(f).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.extentMajor(t).extentMinor(t):x.extentMinor()},x.extentMajor=function(t){return arguments.length?(s=+t[0][0],n=+t[1][0],f=+t[0][1],l=+t[1][1],s>n&&(t=s,s=n,n=t),f>l&&(t=f,f=l,l=t),x.precision(A)):[[s,f],[n,l]]},x.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],u=+n[0][1],c=+n[1][1],e>t&&(n=e,e=t,t=n),u>c&&(n=u,u=c,c=n),x.precision(A)):[[e,u],[t,c]]},x.step=function(t){return arguments.length?x.stepMajor(t).stepMinor(t):x.stepMinor()},x.stepMajor=function(t){return arguments.length?(y=+t[0],b=+t[1],x):[y,b]},x.stepMinor=function(t){return arguments.length?(g=+t[0],v=+t[1],x):[g,v]},x.precision=function(r){return arguments.length?(A=+r,d=o(u,c,90),h=a(e,t,A),p=o(f,l,90),m=a(s,n,A),x):A},x.extentMajor([[-180,-90+i.Ni],[180,90-i.Ni]]).extentMinor([[-180,-80-i.Ni],[180,80+i.Ni]])}function c(){return s()()}},11187:(t,e,n)=>{n.d(e,{A:()=>r});const r=t=>t},3603:(t,e,n)=>{n.d(e,{$t:()=>i,F2:()=>l,F8:()=>A,FA:()=>c,FP:()=>h,HQ:()=>k,Ml:()=>w,Ni:()=>r,RZ:()=>_,Rm:()=>y,TW:()=>a,_S:()=>x,bo:()=>F,dY:()=>v,gn:()=>p,gz:()=>s,mk:()=>m,n7:()=>b,oN:()=>g,pi:()=>o,qR:()=>E,rY:()=>d,tn:()=>f,uj:()=>u});var r=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,c=2*o,u=180/o,l=o/180,f=Math.abs,d=Math.atan,h=Math.atan2,p=Math.cos,m=Math.ceil,g=Math.exp,v=(Math.floor,Math.hypot),y=Math.log,b=Math.pow,A=Math.sin,x=Math.sign||function(t){return t>0?1:t<0?-1:0},_=Math.sqrt,w=Math.tan;function k(t){return t>1?0:t<-1?o:Math.acos(t)}function E(t){return t>1?a:t<-1?-a:Math.asin(t)}function F(t){return(t=A(t/2))*t}},78005:(t,e,n)=>{function r(){}n.d(e,{A:()=>r})},34844:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(78005),i=1/0,o=i,a=-i,s=a;const c={point:function(t,e){t<i&&(i=t);t>a&&(a=t);e<o&&(o=e);e>s&&(s=e)},lineStart:r.A,lineEnd:r.A,polygonStart:r.A,polygonEnd:r.A,result:function(){var t=[[i,o],[a,s]];return a=s=-(o=i=1/0),t}}},42948:(t,e,n)=>{n.d(e,{A:()=>ht});var r,i,o,a,s=n(11187),c=n(86057),u=n(79876),l=n(3603),f=n(78005),d=new u.ph,h=new u.ph,p={point:f.A,lineStart:f.A,lineEnd:f.A,polygonStart:function(){p.lineStart=m,p.lineEnd=y},polygonEnd:function(){p.lineStart=p.lineEnd=p.point=f.A,d.add((0,l.tn)(h)),h=new u.ph},result:function(){var t=d/2;return d=new u.ph,t}};function m(){p.point=g}function g(t,e){p.point=v,r=o=t,i=a=e}function v(t,e){h.add(a*t-o*e),o=t,a=e}function y(){v(r,i)}const b=p;var A,x,_,w,k=n(34844),E=0,F=0,D=0,C=0,M=0,S=0,T=0,N=0,O=0,B={point:R,lineStart:z,lineEnd:I,polygonStart:function(){B.lineStart=j,B.lineEnd=U},polygonEnd:function(){B.point=R,B.lineStart=z,B.lineEnd=I},result:function(){var t=O?[T/O,N/O]:S?[C/S,M/S]:D?[E/D,F/D]:[NaN,NaN];return E=F=D=C=M=S=T=N=O=0,t}};function R(t,e){E+=t,F+=e,++D}function z(){B.point=P}function P(t,e){B.point=L,R(_=t,w=e)}function L(t,e){var n=t-_,r=e-w,i=(0,l.RZ)(n*n+r*r);C+=i*(_+t)/2,M+=i*(w+e)/2,S+=i,R(_=t,w=e)}function I(){B.point=R}function j(){B.point=q}function U(){W(A,x)}function q(t,e){B.point=W,R(A=_=t,x=w=e)}function W(t,e){var n=t-_,r=e-w,i=(0,l.RZ)(n*n+r*r);C+=i*(_+t)/2,M+=i*(w+e)/2,S+=i,T+=(i=w*t-_*e)*(_+t),N+=i*(w+e),O+=3*i,R(_=t,w=e)}const H=B;function G(t){this._context=t}G.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,l.FA)}},result:f.A};var Y,V,$,X,Z,J=new u.ph,Q={point:f.A,lineStart:function(){Q.point=K},lineEnd:function(){Y&&tt(V,$),Q.point=f.A},polygonStart:function(){Y=!0},polygonEnd:function(){Y=null},result:function(){var t=+J;return J=new u.ph,t}};function K(t,e){Q.point=tt,V=X=t,$=Z=e}function tt(t,e){X-=t,Z-=e,J.add((0,l.RZ)(X*X+Z*Z)),X=t,Z=e}const et=Q;var nt,rt,it,ot,at=n(57528);let st,ct,ut,lt;class ft{constructor(t){this._append=null==t?dt:function(t){const e=Math.floor(t);if(!(e>=0))throw new RangeError("invalid digits: ".concat(t));if(e>15)return dt;if(e!==st){const t=10**e;st=e,ct=function(e){let n=1;this._+=e[0];for(const r=e.length;n<r;++n)this._+=Math.round(arguments[n]*t)/t+e[n]}}return ct}(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(t,e){switch(this._point){case 0:this._append(nt||(nt=(0,at.A)(["M",",",""])),t,e),this._point=1;break;case 1:this._append(rt||(rt=(0,at.A)(["L",",",""])),t,e);break;default:if(this._append(it||(it=(0,at.A)(["M",",",""])),t,e),this._radius!==ut||this._append!==ct){const t=this._radius,e=this._;this._="",this._append(ot||(ot=(0,at.A)(["m0,","a",","," 0 1,1 0,","a",","," 0 1,1 0,","z"])),t,t,t,-2*t,t,t,2*t),ut=t,ct=this._append,lt=this._,this._=e}this._+=lt}}result(){const t=this._;return this._="",t.length?t:null}}function dt(t){let e=1;this._+=t[0];for(const n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function ht(t,e){let n,r,i=3,o=4.5;function a(t){return t&&("function"===typeof o&&r.pointRadius(+o.apply(this,arguments)),(0,c.A)(t,n(r))),r.result()}return a.area=function(t){return(0,c.A)(t,n(b)),b.result()},a.measure=function(t){return(0,c.A)(t,n(et)),et.result()},a.bounds=function(t){return(0,c.A)(t,n(k.A)),k.A.result()},a.centroid=function(t){return(0,c.A)(t,n(H)),H.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,s.A):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new ft(i)):new G(e=t),"function"!==typeof o&&r.pointRadius(o),a):e},a.pointRadius=function(t){return arguments.length?(o="function"===typeof t?t:(r.pointRadius(+t),+t),a):o},a.digits=function(t){if(!arguments.length)return i;if(null==t)i=null;else{const e=Math.floor(t);if(!(e>=0))throw new RangeError("invalid digits: ".concat(t));i=e}return null===e&&(r=new ft(i)),a},a.projection(t).digits(i).context(e)}},27999:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(3603);function i(t,e){return(0,r.tn)(t[0]-e[0])<r.Ni&&(0,r.tn)(t[1]-e[1])<r.Ni}},44362:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(79876),i=n(75887),o=n(3603);function a(t){return(0,o.tn)(t[0])<=o.pi?t[0]:(0,o._S)(t[0])*(((0,o.tn)(t[0])+o.pi)%o.FA-o.pi)}function s(t,e){var n=a(e),s=e[1],c=(0,o.F8)(s),u=[(0,o.F8)(n),-(0,o.gn)(n),0],l=0,f=0,d=new r.ph;1===c?s=o.TW+o.Ni:-1===c&&(s=-o.TW-o.Ni);for(var h=0,p=t.length;h<p;++h)if(g=(m=t[h]).length)for(var m,g,v=m[g-1],y=a(v),b=v[1]/2+o.gz,A=(0,o.F8)(b),x=(0,o.gn)(b),_=0;_<g;++_,y=k,A=F,x=D,v=w){var w=m[_],k=a(w),E=w[1]/2+o.gz,F=(0,o.F8)(E),D=(0,o.gn)(E),C=k-y,M=C>=0?1:-1,S=M*C,T=S>o.pi,N=A*F;if(d.add((0,o.FP)(N*M*(0,o.F8)(S),x*D+N*(0,o.gn)(S))),l+=T?C+M*o.FA:C,T^y>=n^k>=n){var O=(0,i.r8)((0,i.jf)(v),(0,i.jf)(w));(0,i.Cx)(O);var B=(0,i.r8)(u,O);(0,i.Cx)(B);var R=(T^C>=0?-1:1)*(0,o.qR)(B[2]);(s>R||s===R&&(O[0]||O[1]))&&(f+=T^C>=0?1:-1)}}return(l<-o.Ni||l<o.Ni&&d<-o.$t)^1&f}},34536:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(35640);function i(){return(0,r.A)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},73585:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(3603),i=n(34536),o=n(35640),a=n(1152);function s(){var t,e,n,s,c,u,l=(0,i.A)(),f=(0,o.A)().rotate([154,0]).center([-2,58.5]).parallels([55,65]),d=(0,o.A)().rotate([157,0]).center([-3,19.9]).parallels([8,18]),h={point:function(t,e){u=[t,e]}};function p(t){var e=t[0],r=t[1];return u=null,n.point(e,r),u||(s.point(e,r),u)||(c.point(e,r),u)}function m(){return t=e=null,p}return p.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?f:i>=.166&&i<.234&&r>=-.214&&r<-.115?d:l).invert(t)},p.stream=function(n){return t&&e===n?t:t=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([l.stream(e=n),f.stream(n),d.stream(n)])},p.precision=function(t){return arguments.length?(l.precision(t),f.precision(t),d.precision(t),m()):l.precision()},p.scale=function(t){return arguments.length?(l.scale(t),f.scale(.35*t),d.scale(t),p.translate(l.translate())):l.scale()},p.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),i=+t[0],o=+t[1];return n=l.translate(t).clipExtent([[i-.455*e,o-.238*e],[i+.455*e,o+.238*e]]).stream(h),s=f.translate([i-.307*e,o+.201*e]).clipExtent([[i-.425*e+r.Ni,o+.12*e+r.Ni],[i-.214*e-r.Ni,o+.234*e-r.Ni]]).stream(h),c=d.translate([i-.205*e,o+.212*e]).clipExtent([[i-.214*e+r.Ni,o+.166*e+r.Ni],[i-.115*e-r.Ni,o+.234*e-r.Ni]]).stream(h),m()},p.fitExtent=function(t,e){return(0,a.sp)(p,t,e)},p.fitSize=function(t,e){return(0,a.Hv)(p,t,e)},p.fitWidth=function(t,e){return(0,a.G0)(p,t,e)},p.fitHeight=function(t,e){return(0,a.FL)(p,t,e)},p.scale(1070)}},66050:(t,e,n)=>{n.d(e,{I:()=>o,c:()=>i});var r=n(3603);function i(t){return function(e,n){var i=(0,r.gn)(e),o=(0,r.gn)(n),a=t(i*o);return a===1/0?[2,0]:[a*o*(0,r.F8)(e),a*(0,r.F8)(n)]}}function o(t){return function(e,n){var i=(0,r.RZ)(e*e+n*n),o=t(i),a=(0,r.F8)(o),s=(0,r.gn)(o);return[(0,r.FP)(e*a,i*s),(0,r.qR)(i&&n*a/i)]}}},27041:(t,e,n)=>{n.d(e,{A:()=>s,n:()=>a});var r=n(3603),i=n(66050),o=n(62951),a=(0,i.c)((function(t){return(0,r.RZ)(2/(1+t))}));function s(){return(0,o.A)(a).scale(124.75).clipAngle(179.999)}a.invert=(0,i.I)((function(t){return 2*(0,r.qR)(t/2)}))},15741:(t,e,n)=>{n.d(e,{A:()=>s,j:()=>a});var r=n(3603),i=n(66050),o=n(62951),a=(0,i.c)((function(t){return(t=(0,r.HQ)(t))&&t/(0,r.F8)(t)}));function s(){return(0,o.A)(a).scale(79.4188).clipAngle(179.999)}a.invert=(0,i.I)((function(t){return t}))},52119:(t,e,n)=>{n.d(e,{S:()=>o});var r=n(3603),i=n(62951);function o(t){var e=0,n=r.pi/3,o=(0,i.U)(t),a=o(e,n);return a.parallels=function(t){return arguments.length?o(e=t[0]*r.F2,n=t[1]*r.F2):[e*r.uj,n*r.uj]},a}},45180:(t,e,n)=>{n.d(e,{A:()=>c,C:()=>s});var r=n(3603),i=n(52119),o=n(35058);function a(t){return(0,r.Ml)((r.TW+t)/2)}function s(t,e){var n=(0,r.gn)(t),i=t===e?(0,r.F8)(t):(0,r.Rm)(n/(0,r.gn)(e))/(0,r.Rm)(a(e)/a(t)),s=n*(0,r.n7)(a(t),i)/i;if(!i)return o.Gx;function c(t,e){s>0?e<-r.TW+r.Ni&&(e=-r.TW+r.Ni):e>r.TW-r.Ni&&(e=r.TW-r.Ni);var n=s/(0,r.n7)(a(e),i);return[n*(0,r.F8)(i*t),s-n*(0,r.gn)(i*t)]}return c.invert=function(t,e){var n=s-e,o=(0,r._S)(i)*(0,r.RZ)(t*t+n*n),a=(0,r.FP)(t,(0,r.tn)(n))*(0,r._S)(n);return n*i<0&&(a-=r.pi*(0,r._S)(t)*(0,r._S)(n)),[a/i,2*(0,r.rY)((0,r.n7)(s/o,1/i))-r.TW]},c}function c(){return(0,i.S)(s).scale(109.5).parallels([30,30])}},35640:(t,e,n)=>{n.d(e,{y:()=>o,A:()=>a});var r=n(3603),i=n(52119);function o(t,e){var n=(0,r.F8)(t),i=(n+(0,r.F8)(e))/2;if((0,r.tn)(i)<r.Ni)return function(t){var e=(0,r.gn)(t);function n(t,n){return[t*e,(0,r.F8)(n)/e]}return n.invert=function(t,n){return[t/e,(0,r.qR)(n*e)]},n}(t);var o=1+n*(2*i-n),a=(0,r.RZ)(o)/i;function s(t,e){var n=(0,r.RZ)(o-2*i*(0,r.F8)(e))/i;return[n*(0,r.F8)(t*=i),a-n*(0,r.gn)(t)]}return s.invert=function(t,e){var n=a-e,s=(0,r.FP)(t,(0,r.tn)(n))*(0,r._S)(n);return n*i<0&&(s-=r.pi*(0,r._S)(t)*(0,r._S)(n)),[s/i,(0,r.qR)((o-(t*t+n*n)*i*i)/(2*i))]},s}function a(){return(0,i.S)(o).scale(155.424).center([0,33.6442])}},39358:(t,e,n)=>{n.d(e,{A:()=>s,G:()=>a});var r=n(3603),i=n(52119),o=n(12083);function a(t,e){var n=(0,r.gn)(t),i=t===e?(0,r.F8)(t):(n-(0,r.gn)(e))/(e-t),a=n/i+t;if((0,r.tn)(i)<r.Ni)return o.f;function s(t,e){var n=a-e,o=i*t;return[n*(0,r.F8)(o),a-n*(0,r.gn)(o)]}return s.invert=function(t,e){var n=a-e,o=(0,r.FP)(t,(0,r.tn)(n))*(0,r._S)(n);return n*i<0&&(o-=r.pi*(0,r._S)(t)*(0,r._S)(n)),[o/i,a-(0,r._S)(i)*(0,r.RZ)(t*t+n*n)]},s}function s(){return(0,i.S)(a).scale(131.154).center([0,13.9389])}},14295:(t,e,n)=>{n.d(e,{A:()=>f,f:()=>l});var r=n(62951),i=n(3603),o=1.340264,a=-.081106,s=893e-6,c=.003796,u=(0,i.RZ)(3)/2;function l(t,e){var n=(0,i.qR)(u*(0,i.F8)(e)),r=n*n,l=r*r*r;return[t*(0,i.gn)(n)/(u*(o+3*a*r+l*(7*s+9*c*r))),n*(o+a*r+l*(s+c*r))]}function f(){return(0,r.A)(l).scale(177.158)}l.invert=function(t,e){for(var n,r=e,l=r*r,f=l*l*l,d=0;d<12&&(f=(l=(r-=n=(r*(o+a*l+f*(s+c*l))-e)/(o+3*a*l+f*(7*s+9*c*l)))*r)*l*l,!((0,i.tn)(n)<i.$t));++d);return[u*t*(o+3*a*l+f*(7*s+9*c*l))/(0,i.gn)(r),(0,i.qR)((0,i.F8)(r)/u)]}},12083:(t,e,n)=>{n.d(e,{A:()=>o,f:()=>i});var r=n(62951);function i(t,e){return[t,e]}function o(){return(0,r.A)(i).scale(152.63)}i.invert=i},1152:(t,e,n)=>{n.d(e,{FL:()=>u,G0:()=>c,Hv:()=>s,sp:()=>a});var r=n(86057),i=n(34844);function o(t,e,n){var o=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),(0,r.A)(n,t.stream(i.A)),e(i.A.result()),null!=o&&t.clipExtent(o),t}function a(t,e,n){return o(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])}),n)}function s(t,e,n){return a(t,[[0,0],e],n)}function c(t,e,n){return o(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function u(t,e,n){return o(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}},29371:(t,e,n)=>{n.d(e,{A:()=>s,T:()=>a});var r=n(3603),i=n(66050),o=n(62951);function a(t,e){var n=(0,r.gn)(e),i=(0,r.gn)(t)*n;return[n*(0,r.F8)(t)/i,(0,r.F8)(e)/i]}function s(){return(0,o.A)(a).scale(144.049).clipAngle(60)}a.invert=(0,i.I)(r.rY)},69849:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(82101),i=n(11187),o=n(98745),a=n(1152),s=n(3603);function c(){var t,e,n,c,u,l,f,d=1,h=0,p=0,m=1,g=1,v=0,y=null,b=1,A=1,x=(0,o.G)({point:function(t,e){var n=k([t,e]);this.stream.point(n[0],n[1])}}),_=i.A;function w(){return b=d*m,A=d*g,l=f=null,k}function k(n){var r=n[0]*b,i=n[1]*A;if(v){var o=i*t-r*e;r=r*t+i*e,i=o}return[r+h,i+p]}return k.invert=function(n){var r=n[0]-h,i=n[1]-p;if(v){var o=i*t+r*e;r=r*t-i*e,i=o}return[r/b,i/A]},k.stream=function(t){return l&&f===t?l:l=x(_(f=t))},k.postclip=function(t){return arguments.length?(_=t,y=n=c=u=null,w()):_},k.clipExtent=function(t){return arguments.length?(_=null==t?(y=n=c=u=null,i.A):(0,r.A)(y=+t[0][0],n=+t[0][1],c=+t[1][0],u=+t[1][1]),w()):null==y?null:[[y,n],[c,u]]},k.scale=function(t){return arguments.length?(d=+t,w()):d},k.translate=function(t){return arguments.length?(h=+t[0],p=+t[1],w()):[h,p]},k.angle=function(n){return arguments.length?(v=n%360*s.F2,e=(0,s.F8)(v),t=(0,s.gn)(v),w()):v*s.uj},k.reflectX=function(t){return arguments.length?(m=t?-1:1,w()):m<0},k.reflectY=function(t){return arguments.length?(g=t?-1:1,w()):g<0},k.fitExtent=function(t,e){return(0,a.sp)(k,t,e)},k.fitSize=function(t,e){return(0,a.Hv)(k,t,e)},k.fitWidth=function(t,e){return(0,a.G0)(k,t,e)},k.fitHeight=function(t,e){return(0,a.FL)(k,t,e)},k}},62951:(t,e,n)=>{n.d(e,{A:()=>y,U:()=>b});var r=n(91061),i=n(3442),o=n(82101),a=n(93689),s=n(11187),c=n(3603),u=n(43531),l=n(98745),f=n(1152),d=n(75887),h=16,p=(0,c.gn)(30*c.F2);function m(t,e){return+e?function(t,e){function n(r,i,o,a,s,u,l,f,d,h,m,g,v,y){var b=l-r,A=f-i,x=b*b+A*A;if(x>4*e&&v--){var _=a+h,w=s+m,k=u+g,E=(0,c.RZ)(_*_+w*w+k*k),F=(0,c.qR)(k/=E),D=(0,c.tn)((0,c.tn)(k)-1)<c.Ni||(0,c.tn)(o-d)<c.Ni?(o+d)/2:(0,c.FP)(w,_),C=t(D,F),M=C[0],S=C[1],T=M-r,N=S-i,O=A*T-b*N;(O*O/x>e||(0,c.tn)((b*T+A*N)/x-.5)>.3||a*h+s*m+u*g<p)&&(n(r,i,o,a,s,u,M,S,D,_/=E,w/=E,k,v,y),y.point(M,S),n(M,S,D,_,w,k,l,f,d,h,m,g,v,y))}}return function(e){var r,i,o,a,s,c,u,l,f,p,m,g,v={point:y,lineStart:b,lineEnd:x,polygonStart:function(){e.polygonStart(),v.lineStart=_},polygonEnd:function(){e.polygonEnd(),v.lineStart=b}};function y(n,r){n=t(n,r),e.point(n[0],n[1])}function b(){l=NaN,v.point=A,e.lineStart()}function A(r,i){var o=(0,d.jf)([r,i]),a=t(r,i);n(l,f,u,p,m,g,l=a[0],f=a[1],u=r,p=o[0],m=o[1],g=o[2],h,e),e.point(l,f)}function x(){v.point=y,e.lineEnd()}function _(){b(),v.point=w,v.lineEnd=k}function w(t,e){A(r=t,e),i=l,o=f,a=p,s=m,c=g,v.point=A}function k(){n(l,f,u,p,m,g,i,o,r,a,s,c,h,e),v.lineEnd=x,x()}return v}}(t,e):function(t){return(0,l.G)({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var g=(0,l.G)({point:function(t,e){this.stream.point(t*c.F2,e*c.F2)}});function v(t,e,n,r,i,o){if(!o)return function(t,e,n,r,i){function o(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return o.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},o}(t,e,n,r,i);var a=(0,c.gn)(o),s=(0,c.F8)(o),u=a*t,l=s*t,f=a/t,d=s/t,h=(s*n-a*e)/t,p=(s*e+a*n)/t;function m(t,o){return[u*(t*=r)-l*(o*=i)+e,n-l*t-u*o]}return m.invert=function(t,e){return[r*(f*t-d*e+h),i*(p-d*t-f*e)]},m}function y(t){return b((function(){return t}))()}function b(t){var e,n,d,h,p,y,b,A,x,_,w=150,k=480,E=250,F=0,D=0,C=0,M=0,S=0,T=0,N=1,O=1,B=null,R=r.A,z=null,P=s.A,L=.5;function I(t){return A(t[0]*c.F2,t[1]*c.F2)}function j(t){return(t=A.invert(t[0],t[1]))&&[t[0]*c.uj,t[1]*c.uj]}function U(){var t=v(w,0,0,N,O,T).apply(null,e(F,D)),r=v(w,k-t[0],E-t[1],N,O,T);return n=(0,u.y)(C,M,S),b=(0,a.A)(e,r),A=(0,a.A)(n,b),y=m(b,L),q()}function q(){return x=_=null,I}return I.stream=function(t){return x&&_===t?x:x=g(function(t){return(0,l.G)({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(R(y(P(_=t)))))},I.preclip=function(t){return arguments.length?(R=t,B=void 0,q()):R},I.postclip=function(t){return arguments.length?(P=t,z=d=h=p=null,q()):P},I.clipAngle=function(t){return arguments.length?(R=+t?(0,i.A)(B=t*c.F2):(B=null,r.A),q()):B*c.uj},I.clipExtent=function(t){return arguments.length?(P=null==t?(z=d=h=p=null,s.A):(0,o.A)(z=+t[0][0],d=+t[0][1],h=+t[1][0],p=+t[1][1]),q()):null==z?null:[[z,d],[h,p]]},I.scale=function(t){return arguments.length?(w=+t,U()):w},I.translate=function(t){return arguments.length?(k=+t[0],E=+t[1],U()):[k,E]},I.center=function(t){return arguments.length?(F=t[0]%360*c.F2,D=t[1]%360*c.F2,U()):[F*c.uj,D*c.uj]},I.rotate=function(t){return arguments.length?(C=t[0]%360*c.F2,M=t[1]%360*c.F2,S=t.length>2?t[2]%360*c.F2:0,U()):[C*c.uj,M*c.uj,S*c.uj]},I.angle=function(t){return arguments.length?(T=t%360*c.F2,U()):T*c.uj},I.reflectX=function(t){return arguments.length?(N=t?-1:1,U()):N<0},I.reflectY=function(t){return arguments.length?(O=t?-1:1,U()):O<0},I.precision=function(t){return arguments.length?(y=m(b,L=t*t),q()):(0,c.RZ)(L)},I.fitExtent=function(t,e){return(0,f.sp)(I,t,e)},I.fitSize=function(t,e){return(0,f.Hv)(I,t,e)},I.fitWidth=function(t,e){return(0,f.G0)(I,t,e)},I.fitHeight=function(t,e){return(0,f.FL)(I,t,e)},function(){return e=t.apply(this,arguments),I.invert=e.invert&&j,U()}}},35058:(t,e,n)=>{n.d(e,{Ay:()=>s,Gx:()=>a,T7:()=>c});var r=n(3603),i=n(43531),o=n(62951);function a(t,e){return[t,(0,r.Rm)((0,r.Ml)((r.TW+e)/2))]}function s(){return c(a).scale(961/r.FA)}function c(t){var e,n,s,c=(0,o.A)(t),u=c.center,l=c.scale,f=c.translate,d=c.clipExtent,h=null;function p(){var o=r.pi*l(),u=c((0,i.A)(c.rotate()).invert([0,0]));return d(null==h?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:t===a?[[Math.max(u[0]-o,h),e],[Math.min(u[0]+o,n),s]]:[[h,Math.max(u[1]-o,e)],[n,Math.min(u[1]+o,s)]])}return c.scale=function(t){return arguments.length?(l(t),p()):l()},c.translate=function(t){return arguments.length?(f(t),p()):f()},c.center=function(t){return arguments.length?(u(t),p()):u()},c.clipExtent=function(t){return arguments.length?(null==t?h=e=n=s=null:(h=+t[0][0],e=+t[0][1],n=+t[1][0],s=+t[1][1]),p()):null==h?null:[[h,e],[n,s]]},p()}a.invert=function(t,e){return[t,2*(0,r.rY)((0,r.oN)(e))-r.TW]}},73653:(t,e,n)=>{n.d(e,{A:()=>a,P:()=>o});var r=n(62951),i=n(3603);function o(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function a(){return(0,r.A)(o).scale(175.295)}o.invert=function(t,e){var n,r=e,o=25;do{var a=r*r,s=a*a;r-=n=(r*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while((0,i.tn)(n)>i.Ni&&--o>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]}},83885:(t,e,n)=>{n.d(e,{A:()=>s,x:()=>a});var r=n(3603),i=n(66050),o=n(62951);function a(t,e){return[(0,r.gn)(e)*(0,r.F8)(t),(0,r.F8)(e)]}function s(){return(0,o.A)(a).scale(249.5).clipAngle(90+r.Ni)}a.invert=(0,i.I)(r.qR)},31435:(t,e,n)=>{n.d(e,{A:()=>s,F:()=>a});var r=n(3603),i=n(66050),o=n(62951);function a(t,e){var n=(0,r.gn)(e),i=1+(0,r.gn)(t)*n;return[n*(0,r.F8)(t)/i,(0,r.F8)(e)/i]}function s(){return(0,o.A)(a).scale(250).clipAngle(142)}a.invert=(0,i.I)((function(t){return 2*(0,r.rY)(t)}))},26089:(t,e,n)=>{n.d(e,{A:()=>a,b:()=>o});var r=n(3603),i=n(35058);function o(t,e){return[(0,r.Rm)((0,r.Ml)((r.TW+e)/2)),-t]}function a(){var t=(0,i.T7)(o),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}o.invert=function(t,e){return[-e,2*(0,r.rY)((0,r.oN)(t))-r.TW]}},43531:(t,e,n)=>{n.d(e,{A:()=>l,y:()=>a});var r=n(93689),i=n(3603);function o(t,e){return(0,i.tn)(t)>i.pi&&(t-=Math.round(t/i.FA)*i.FA),[t,e]}function a(t,e,n){return(t%=i.FA)?e||n?(0,r.A)(c(t),u(e,n)):c(t):e||n?u(e,n):o}function s(t){return function(e,n){return e+=t,(0,i.tn)(e)>i.pi&&(e-=Math.round(e/i.FA)*i.FA),[e,n]}}function c(t){var e=s(t);return e.invert=s(-t),e}function u(t,e){var n=(0,i.gn)(t),r=(0,i.F8)(t),o=(0,i.gn)(e),a=(0,i.F8)(e);function s(t,e){var s=(0,i.gn)(e),c=(0,i.gn)(t)*s,u=(0,i.F8)(t)*s,l=(0,i.F8)(e),f=l*n+c*r;return[(0,i.FP)(u*o-f*a,c*n-l*r),(0,i.qR)(f*o+u*a)]}return s.invert=function(t,e){var s=(0,i.gn)(e),c=(0,i.gn)(t)*s,u=(0,i.F8)(t)*s,l=(0,i.F8)(e),f=l*o-u*a;return[(0,i.FP)(u*o+l*a,c*n+f*r),(0,i.qR)(f*n-c*r)]},s}function l(t){function e(e){return(e=t(e[0]*i.F2,e[1]*i.F2))[0]*=i.uj,e[1]*=i.uj,e}return t=a(t[0]*i.F2,t[1]*i.F2,t.length>2?t[2]*i.F2:0),e.invert=function(e){return(e=t.invert(e[0]*i.F2,e[1]*i.F2))[0]*=i.uj,e[1]*=i.uj,e},e}o.invert=o},86057:(t,e,n)=>{function r(t,e){t&&o.hasOwnProperty(t.type)&&o[t.type](t,e)}n.d(e,{A:()=>c});var i={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,o=n.length;++i<o;)r(n[i].geometry,e)}},o={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){a(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)a(n[r],e,0)},Polygon:function(t,e){s(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)s(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,o=n.length;++i<o;)r(n[i],e)}};function a(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function s(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)a(t[n],e,1);e.polygonEnd()}function c(t,e){t&&i.hasOwnProperty(t.type)?i[t.type](t,e):r(t,e)}},98745:(t,e,n)=>{function r(t){return{stream:i(t)}}function i(t){return function(e){var n=new o;for(var r in t)n[r]=t[r];return n.stream=e,n}}function o(){}n.d(e,{A:()=>r,G:()=>i}),o.prototype={constructor:o,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},22659:(t,e,n)=>{function r(t){return null==t?null:i(t)}function i(t){if("function"!==typeof t)throw new Error;return t}n.d(e,{l:()=>r,m:()=>i})},98486:(t,e,n)=>{function r(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}function i(t,e){let n,r,i=t.length;for(;i;)r=e()*i--|0,n=t[i],t[i]=t[r],t[r]=n;return t}n.d(e,{A:()=>r,k:()=>i})},10509:(t,e,n)=>{function r(t,e){return t.parent===e.parent?1:2}function i(t,e){return t+e.x}function o(t,e){return Math.max(t,e.y)}function a(){var t=r,e=1,n=1,a=!1;function s(r){var s,c=0;r.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(i,0)/t.length}(n),e.y=function(t){return 1+t.reduce(o,0)}(n)):(e.x=s?c+=t(e,s):0,e.y=0,s=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(r),l=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(r),f=u.x-t(u,l)/2,d=l.x+t(l,u)/2;return r.eachAfter(a?function(t){t.x=(t.x-r.x)*e,t.y=(r.y-t.y)*n}:function(t){t.x=(t.x-f)/(d-f)*e,t.y=(1-(r.y?t.y/r.y:1))*n})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(a=!1,e=+t[0],n=+t[1],s):a?null:[e,n]},s.nodeSize=function(t){return arguments.length?(a=!0,e=+t[0],n=+t[1],s):a?[e,n]:null},s}n.d(e,{A:()=>a})},57619:(t,e,n)=>{function r(){return 0}function i(t){return function(){return t}}n.d(e,{A:()=>i,P:()=>r})},35201:(t,e,n)=>{function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function i(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=a)):void 0===e&&(e=o);for(var n,r,i,s,l,f=new u(t),d=[f];n=d.pop();)if((i=e(n.data))&&(l=(i=Array.from(i)).length))for(n.children=i,s=l-1;s>=0;--s)d.push(r=i[s]=new u(i[s])),r.parent=n,r.depth=n.depth+1;return f.eachBefore(c)}function o(t){return t.children}function a(t){return Array.isArray(t)?t[1]:null}function s(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function c(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function u(t){this.data=t,this.depth=this.height=0,this.parent=null}n.d(e,{bP:()=>u,lW:()=>c,Ay:()=>i}),u.prototype=i.prototype={constructor:u,count:function(){return this.eachAfter(r)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],c=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)t.call(e,o,++c,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return i(this).eachBefore(s)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}}},10905:(t,e,n)=>{n.d(e,{A:()=>a});const r=1664525,i=1013904223,o=4294967296;function a(){let t=1;return()=>(t=(r*t+i)%o)/o}},35028:(t,e,n)=>{n.d(e,{A:()=>o,m:()=>a});var r=n(98486),i=n(10905);function o(t){return a(t,(0,i.A)())}function a(t,e){for(var n,i,o=0,a=(t=(0,r.k)(Array.from(t),e)).length,c=[];o<a;)n=t[o],i&&u(i,n)?++o:(i=f(c=s(c,n)),o=0);return i}function s(t,e){var n,r;if(l(e,t))return[e];for(n=0;n<t.length;++n)if(c(e,t[n])&&l(d(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(c(d(t[n],t[r]),e)&&c(d(t[n],e),t[r])&&c(d(t[r],e),t[n])&&l(h(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function c(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function u(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function l(t,e){for(var n=0;n<e.length;++n)if(!u(t,e[n]))return!1;return!0}function f(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return d(t[0],t[1]);case 3:return h(t[0],t[1],t[2])}var e}function d(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,c=o-n,u=a-r,l=s-i,f=Math.sqrt(c*c+u*u);return{x:(n+o+c/f*l)/2,y:(r+a+u/f*l)/2,r:(f+i+s)/2}}function h(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,c=e.r,u=n.x,l=n.y,f=n.r,d=r-a,h=r-u,p=i-s,m=i-l,g=c-o,v=f-o,y=r*r+i*i-o*o,b=y-a*a-s*s+c*c,A=y-u*u-l*l+f*f,x=h*p-d*m,_=(p*A-m*b)/(2*x)-r,w=(m*g-p*v)/x,k=(h*b-d*A)/(2*x)-i,E=(d*v-h*g)/x,F=w*w+E*E-1,D=2*(o+_*w+k*E),C=_*_+k*k-o*o,M=-(Math.abs(F)>1e-6?(D+Math.sqrt(D*D-4*F*C))/(2*F):C/D);return{x:r+_+w*M,y:i+k+E*M,r:M}}},50905:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(22659),i=n(57619),o=n(10905),a=n(48898);function s(t){return Math.sqrt(t.value)}function c(){var t=null,e=1,n=1,a=i.P;function c(r){const c=(0,o.A)();return r.x=e/2,r.y=n/2,t?r.eachBefore(u(t)).eachAfter(l(a,.5,c)).eachBefore(f(1)):r.eachBefore(u(s)).eachAfter(l(i.P,1,c)).eachAfter(l(a,r.r/Math.min(e,n),c)).eachBefore(f(Math.min(e,n)/(2*r.r))),r}return c.radius=function(e){return arguments.length?(t=(0,r.l)(e),c):t},c.size=function(t){return arguments.length?(e=+t[0],n=+t[1],c):[e,n]},c.padding=function(t){return arguments.length?(a="function"===typeof t?t:(0,i.A)(+t),c):a},c}function u(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function l(t,e,n){return function(r){if(i=r.children){var i,o,s,c=i.length,u=t(r)*e||0;if(u)for(o=0;o<c;++o)i[o].r+=u;if(s=(0,a.K)(i,n),u)for(o=0;o<c;++o)i[o].r-=u;r.r=s+u}}}function f(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}},48898:(t,e,n)=>{n.d(e,{A:()=>f,K:()=>l});var r=n(98486),i=n(10905),o=n(35028);function a(t,e,n){var r,i,o,a,s=t.x-e.x,c=t.y-e.y,u=s*s+c*c;u?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(u+a-i)/(2*u),o=Math.sqrt(Math.max(0,a/u-r*r)),n.x=t.x-r*s-o*c,n.y=t.y-r*c+o*s):(r=(u+i-a)/(2*u),o=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-o*c,n.y=e.y+r*c+o*s)):(n.x=e.x+n.r,n.y=e.y)}function s(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function c(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function u(t){this._=t,this.next=null,this.previous=null}function l(t,e){if(!(f=(t=(0,r.A)(t)).length))return 0;var n,i,l,f,d,h,p,m,g,v,y;if((n=t[0]).x=0,n.y=0,!(f>1))return n.r;if(i=t[1],n.x=-i.r,i.x=n.r,i.y=0,!(f>2))return n.r+i.r;a(i,n,l=t[2]),n=new u(n),i=new u(i),l=new u(l),n.next=l.previous=i,i.next=n.previous=l,l.next=i.previous=n;t:for(p=3;p<f;++p){a(n._,i._,l=t[p]),l=new u(l),m=i.next,g=n.previous,v=i._.r,y=n._.r;do{if(v<=y){if(s(m._,l._)){i=m,n.next=i,i.previous=n,--p;continue t}v+=m._.r,m=m.next}else{if(s(g._,l._)){(n=g).next=i,i.previous=n,--p;continue t}y+=g._.r,g=g.previous}}while(m!==g.next);for(l.previous=n,l.next=i,n.next=i.previous=i=l,d=c(n);(l=l.next)!==i;)(h=c(l))<d&&(n=l,d=h);i=n.next}for(n=[i._],l=i;(l=l.next)!==i;)n.push(l._);for(l=(0,o.m)(n,e),p=0;p<f;++p)(n=t[p]).x-=l.x,n.y-=l.y;return l.r}function f(t){return l(t,(0,i.A)()),t}},73705:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(82178),i=n(67991);function o(){var t=1,e=1,n=0,o=!1;function a(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=t,a.y1=e/s,a.eachBefore(function(t,e){return function(r){r.children&&(0,i.A)(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var o=r.x0,a=r.y0,s=r.x1-n,c=r.y1-n;s<o&&(o=s=(o+s)/2),c<a&&(a=c=(a+c)/2),r.x0=o,r.y0=a,r.x1=s,r.y1=c}}(e,s)),o&&a.eachBefore(r.A),a}return a.round=function(t){return arguments.length?(o=!!t,a):o},a.size=function(n){return arguments.length?(t=+n[0],e=+n[1],a):[t,e]},a.padding=function(t){return arguments.length?(n=+t,a):n},a}},89339:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(22659),i=n(35201),o={depth:-1},a={},s={};function c(t){return t.id}function u(t){return t.parentId}function l(){var t,e=c,n=u;function l(r){var c,u,l,h,p,m,g,v,y=Array.from(r),b=e,A=n,x=new Map;if(null!=t){const e=y.map(((e,n)=>function(t){t="".concat(t);let e=t.length;d(t,e-1)&&!d(t,e-2)&&(t=t.slice(0,-1));return"/"===t[0]?t:"/".concat(t)}(t(e,n,r)))),n=e.map(f),i=new Set(e).add("");for(const t of n)i.has(t)||(i.add(t),e.push(t),n.push(f(t)),y.push(s));b=(t,n)=>e[n],A=(t,e)=>n[e]}for(l=0,c=y.length;l<c;++l)u=y[l],m=y[l]=new i.bP(u),null!=(g=b(u,l,r))&&(g+="")&&(v=m.id=g,x.set(v,x.has(v)?a:m)),null!=(g=A(u,l,r))&&(g+="")&&(m.parent=g);for(l=0;l<c;++l)if(g=(m=y[l]).parent){if(!(p=x.get(g)))throw new Error("missing: "+g);if(p===a)throw new Error("ambiguous: "+g);p.children?p.children.push(m):p.children=[m],m.parent=p}else{if(h)throw new Error("multiple roots");h=m}if(!h)throw new Error("no root");if(null!=t){for(;h.data===s&&1===h.children.length;)h=h.children[0],--c;for(let t=y.length-1;t>=0&&(m=y[t]).data===s;--t)m.data=null}if(h.parent=o,h.eachBefore((function(t){t.depth=t.parent.depth+1,--c})).eachBefore(i.lW),h.parent=null,c>0)throw new Error("cycle");return h}return l.id=function(t){return arguments.length?(e=(0,r.l)(t),l):e},l.parentId=function(t){return arguments.length?(n=(0,r.l)(t),l):n},l.path=function(e){return arguments.length?(t=(0,r.l)(e),l):t},l}function f(t){let e=t.length;if(e<2)return"";for(;--e>1&&!d(t,e););return t.slice(0,e)}function d(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if(0===(1&n))return!0}return!1}},24191:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(35201);function i(t,e){return t.parent===e.parent?1:2}function o(t){var e=t.children;return e?e[0]:t.t}function a(t){var e=t.children;return e?e[e.length-1]:t.t}function s(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function c(t,e,n){return t.a.parent===e.parent?t.a:n}function u(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function l(){var t=i,e=1,n=1,r=null;function l(i){var o=function(t){for(var e,n,r,i,o,a=new u(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new u(r[i],i)),n.parent=e;return(a.parent=new u(null,0)).children=[a],a}(i);if(o.eachAfter(f),o.parent.m=-o.z,o.eachBefore(d),r)i.eachBefore(h);else{var a=i,s=i,c=i;i.eachBefore((function(t){t.x<a.x&&(a=t),t.x>s.x&&(s=t),t.depth>c.depth&&(c=t)}));var l=a===s?1:t(a,s)/2,p=l-a.x,m=e/(s.x+l+p),g=n/(c.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*m,t.y=t.depth*g}))}return i}function f(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var u=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-u):e.z=u}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,u=e,l=e,f=n,d=u.parent.children[0],h=u.m,p=l.m,m=f.m,g=d.m;f=a(f),u=o(u),f&&u;)d=o(d),(l=a(l)).a=e,(i=f.z+m-u.z-h+t(f._,u._))>0&&(s(c(f,e,r),e,i),h+=i,p+=i),m+=f.m,h+=u.m,g+=d.m,p+=l.m;f&&!a(l)&&(l.t=f,l.m+=m-p),u&&!o(d)&&(d.t=u,d.m+=h-g,r=e)}return r}(e,i,e.parent.A||r[0])}function d(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function h(t){t.x*=e,t.y=t.depth*n}return l.separation=function(e){return arguments.length?(t=e,l):t},l.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],l):r?null:[e,n]},l.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],l):r?[e,n]:null},l}u.prototype=Object.create(r.bP.prototype)},14937:(t,e,n)=>{function r(t,e,n,r,i){var o,a,s=t.children,c=s.length,u=new Array(c+1);for(u[0]=a=o=0;o<c;++o)u[o+1]=a+=s[o].value;!function t(e,n,r,i,o,a,c){if(e>=n-1){var l=s[e];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=c)}var f=u[e],d=r/2+f,h=e+1,p=n-1;for(;h<p;){var m=h+p>>>1;u[m]<d?h=m+1:p=m}d-u[h-1]<u[h]-d&&e+1<h&&--h;var g=u[h]-f,v=r-g;if(a-i>c-o){var y=r?(i*v+a*g)/r:a;t(e,h,g,i,o,y,c),t(h,n,v,y,o,a,c)}else{var b=r?(o*v+c*g)/r:c;t(e,h,g,i,o,a,b),t(h,n,v,i,b,a,c)}}(0,c,t.value,e,n,r,i)}n.d(e,{A:()=>r})},67991:(t,e,n)=>{function r(t,e,n,r,i){for(var o,a=t.children,s=-1,c=a.length,u=t.value&&(r-e)/t.value;++s<c;)(o=a[s]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*u}n.d(e,{A:()=>r})},65242:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(82178),i=n(92234),o=n(22659),a=n(57619);function s(){var t=i.Ay,e=!1,n=1,s=1,c=[0],u=a.P,l=a.P,f=a.P,d=a.P,h=a.P;function p(t){return t.x0=t.y0=0,t.x1=n,t.y1=s,t.eachBefore(m),c=[0],e&&t.eachBefore(r.A),t}function m(e){var n=c[e.depth],r=e.x0+n,i=e.y0+n,o=e.x1-n,a=e.y1-n;o<r&&(r=o=(r+o)/2),a<i&&(i=a=(i+a)/2),e.x0=r,e.y0=i,e.x1=o,e.y1=a,e.children&&(n=c[e.depth+1]=u(e)/2,r+=h(e)-n,i+=l(e)-n,(o-=f(e)-n)<r&&(r=o=(r+o)/2),(a-=d(e)-n)<i&&(i=a=(i+a)/2),t(e,r,i,o,a))}return p.round=function(t){return arguments.length?(e=!!t,p):e},p.size=function(t){return arguments.length?(n=+t[0],s=+t[1],p):[n,s]},p.tile=function(e){return arguments.length?(t=(0,o.m)(e),p):t},p.padding=function(t){return arguments.length?p.paddingInner(t).paddingOuter(t):p.paddingInner()},p.paddingInner=function(t){return arguments.length?(u="function"===typeof t?t:(0,a.A)(+t),p):u},p.paddingOuter=function(t){return arguments.length?p.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):p.paddingTop()},p.paddingTop=function(t){return arguments.length?(l="function"===typeof t?t:(0,a.A)(+t),p):l},p.paddingRight=function(t){return arguments.length?(f="function"===typeof t?t:(0,a.A)(+t),p):f},p.paddingBottom=function(t){return arguments.length?(d="function"===typeof t?t:(0,a.A)(+t),p):d},p.paddingLeft=function(t){return arguments.length?(h="function"===typeof t?t:(0,a.A)(+t),p):h},p}},95647:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(67991),i=n(72224),o=n(92234);const a=function t(e){function n(t,n,a,s,c){if((u=t._squarify)&&u.ratio===e)for(var u,l,f,d,h,p=-1,m=u.length,g=t.value;++p<m;){for(f=(l=u[p]).children,d=l.value=0,h=f.length;d<h;++d)l.value+=f[d].value;l.dice?(0,r.A)(l,n,a,s,g?a+=(c-a)*l.value/g:c):(0,i.A)(l,n,a,g?n+=(s-n)*l.value/g:s,c),g-=l.value}else t._squarify=u=(0,o.AI)(e,t,n,a,s,c),u.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(o.U1)},82178:(t,e,n)=>{function r(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}n.d(e,{A:()=>r})},72224:(t,e,n)=>{function r(t,e,n,r,i){for(var o,a=t.children,s=-1,c=a.length,u=t.value&&(i-n)/t.value;++s<c;)(o=a[s]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*u}n.d(e,{A:()=>r})},24391:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(67991),i=n(72224);function o(t,e,n,o,a){(1&t.depth?i.A:r.A)(t,e,n,o,a)}},92234:(t,e,n)=>{n.d(e,{AI:()=>a,Ay:()=>s,U1:()=>o});var r=n(67991),i=n(72224),o=(1+Math.sqrt(5))/2;function a(t,e,n,o,a,s){for(var c,u,l,f,d,h,p,m,g,v,y,b=[],A=e.children,x=0,_=0,w=A.length,k=e.value;x<w;){l=a-n,f=s-o;do{d=A[_++].value}while(!d&&_<w);for(h=p=d,y=d*d*(v=Math.max(f/l,l/f)/(k*t)),g=Math.max(p/y,y/h);_<w;++_){if(d+=u=A[_].value,u<h&&(h=u),u>p&&(p=u),y=d*d*v,(m=Math.max(p/y,y/h))>g){d-=u;break}g=m}b.push(c={value:d,dice:l<f,children:A.slice(x,_)}),c.dice?(0,r.A)(c,n,o,a,k?o+=f*d/k:s):(0,i.A)(c,n,o,k?n+=l*d/k:a,s),k-=d,x=_}return b}const s=function t(e){function n(t,n,r,i,o){a(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(o)},81014:(t,e,n)=>{n.d(e,{$:()=>a,A:()=>o});var r=n(20226),i=n(51877);function o(t,e){return((0,i.p)(e)?i.A:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n<o;++n)a[n]=(0,r.A)(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<o;++n)s[n]=a[n](t);return s}}},78441:(t,e,n)=>{function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function i(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,c=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,s,o,a,c)}}n.d(e,{A:()=>i,H:()=>r})},7037:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(78441);function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],a=t[i%e],s=t[(i+1)%e],c=t[(i+2)%e];return(0,r.H)((n-i/e)*e,o,a,s,c)}}},57220:(t,e,n)=>{n.d(e,{Ay:()=>s,lG:()=>o,uN:()=>a});var r=n(38419);function i(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.A)(isNaN(t)?e:t)}function a(t){return 1===(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.A)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):(0,r.A)(isNaN(t)?e:t)}},38419:(t,e,n)=>{n.d(e,{A:()=>r});const r=t=>()=>t},12252:(t,e,n)=>{n.d(e,{A:()=>a,w:()=>s});var r=n(96112),i=n(57220);function o(t){return function e(n){function o(e,o){var a=t((e=(0,r.A)(e)).h,(o=(0,r.A)(o)).h),s=(0,i.Ay)(e.s,o.s),c=(0,i.Ay)(e.l,o.l),u=(0,i.Ay)(e.opacity,o.opacity);return function(t){return e.h=a(t),e.s=s(t),e.l=c(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,o.gamma=e,o}(1)}const a=o(i.lG);var s=o(i.Ay)},71315:(t,e,n)=>{function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}n.d(e,{A:()=>r})},61754:(t,e,n)=>{n.r(e),n.d(e,{interpolate:()=>r.A,interpolateArray:()=>i.A,interpolateBasis:()=>o.A,interpolateBasisClosed:()=>a.A,interpolateCubehelix:()=>C.A,interpolateCubehelixLong:()=>C.w,interpolateDate:()=>s.A,interpolateDiscrete:()=>c,interpolateHcl:()=>F,interpolateHclLong:()=>D,interpolateHsl:()=>x,interpolateHslLong:()=>_,interpolateHue:()=>l,interpolateLab:()=>k,interpolateNumber:()=>f.A,interpolateNumberArray:()=>d.A,interpolateObject:()=>h.A,interpolateRgb:()=>y.Ay,interpolateRgbBasis:()=>y.Ik,interpolateRgbBasisClosed:()=>y.uL,interpolateRound:()=>p.A,interpolateString:()=>m.A,interpolateTransformCss:()=>g.T,interpolateTransformSvg:()=>g.I,interpolateZoom:()=>v.A,piecewise:()=>M.A,quantize:()=>S});var r=n(20226),i=n(81014),o=n(78441),a=n(7037),s=n(71315);function c(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var u=n(57220);function l(t,e){var n=(0,u.lG)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}var f=n(50010),d=n(51877),h=n(30604),p=n(10831),m=n(97162),g=n(8225),v=n(96248),y=n(66968),b=n(17840);function A(t){return function(e,n){var r=t((e=(0,b.KI)(e)).h,(n=(0,b.KI)(n)).h),i=(0,u.Ay)(e.s,n.s),o=(0,u.Ay)(e.l,n.l),a=(0,u.Ay)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}const x=A(u.lG);var _=A(u.Ay),w=n(13696);function k(t,e){var n=(0,u.Ay)((t=(0,w.Ay)(t)).l,(e=(0,w.Ay)(e)).l),r=(0,u.Ay)(t.a,e.a),i=(0,u.Ay)(t.b,e.b),o=(0,u.Ay)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=o(e),t+""}}function E(t){return function(e,n){var r=t((e=(0,w.aq)(e)).h,(n=(0,w.aq)(n)).h),i=(0,u.Ay)(e.c,n.c),o=(0,u.Ay)(e.l,n.l),a=(0,u.Ay)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}const F=E(u.lG);var D=E(u.Ay),C=n(12252),M=n(92629);function S(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},50010:(t,e,n)=>{function r(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}n.d(e,{A:()=>r})},51877:(t,e,n)=>{function r(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,{A:()=>r,p:()=>i})},30604:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(20226);function i(t,e){var n,i={},o={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?i[n]=(0,r.A)(t[n],e[n]):o[n]=e[n];return function(t){for(n in i)o[n]=i[n](t);return o}}},92629:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(20226);function i(t,e){void 0===e&&(e=t,t=r.A);for(var n=0,i=e.length-1,o=e[0],a=new Array(i<0?0:i);n<i;)a[n]=t(o,o=e[++n]);return function(t){var e=Math.max(0,Math.min(i-1,Math.floor(t*=i)));return a[e](t-e)}}},66968:(t,e,n)=>{n.d(e,{Ay:()=>s,Ik:()=>u,uL:()=>l});var r=n(17840),i=n(78441),o=n(7037),a=n(57220);const s=function t(e){var n=(0,a.uN)(e);function i(t,e){var i=n((t=(0,r.Qh)(t)).r,(e=(0,r.Qh)(e)).r),o=n(t.g,e.g),s=n(t.b,e.b),c=(0,a.Ay)(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=s(e),t.opacity=c(e),t+""}}return i.gamma=t,i}(1);function c(t){return function(e){var n,i,o=e.length,a=new Array(o),s=new Array(o),c=new Array(o);for(n=0;n<o;++n)i=(0,r.Qh)(e[n]),a[n]=i.r||0,s[n]=i.g||0,c[n]=i.b||0;return a=t(a),s=t(s),c=t(c),i.opacity=1,function(t){return i.r=a(t),i.g=s(t),i.b=c(t),i+""}}}var u=c(i.A),l=c(o.A)},10831:(t,e,n)=>{function r(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}n.d(e,{A:()=>r})},97162:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(50010),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function a(t,e){var n,a,s,c=i.lastIndex=o.lastIndex=0,u=-1,l=[],f=[];for(t+="",e+="";(n=i.exec(t))&&(a=o.exec(e));)(s=a.index)>c&&(s=e.slice(c,s),l[u]?l[u]+=s:l[++u]=s),(n=n[0])===(a=a[0])?l[u]?l[u]+=a:l[++u]=a:(l[++u]=null,f.push({i:u,x:(0,r.A)(n,a)})),c=o.lastIndex;return c<e.length&&(s=e.slice(c),l[u]?l[u]+=s:l[++u]=s),l.length<2?f[0]?function(t){return function(e){return t(e)+""}}(f[0].x):function(t){return function(){return t}}(e):(e=f.length,function(t){for(var n,r=0;r<e;++r)l[(n=f[r]).i]=n.x(t);return l.join("")})}},8225:(t,e,n)=>{n.d(e,{T:()=>u,I:()=>l});var r,i=n(50010),o=180/Math.PI,a={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function s(t,e,n,r,i,a){var s,c,u;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(c=Math.sqrt(n*n+r*r))&&(n/=c,r/=c,u/=c),t*r<e*n&&(t=-t,e=-e,u=-u,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*o,skewX:Math.atan(u)*o,scaleX:s,scaleY:c}}function c(t,e,n,r){function o(t){return t.length?t.pop()+" ":""}return function(a,s){var c=[],u=[];return a=t(a),s=t(s),function(t,r,o,a,s,c){if(t!==o||r!==a){var u=s.push("translate(",null,e,null,n);c.push({i:u-4,x:(0,i.A)(t,o)},{i:u-2,x:(0,i.A)(r,a)})}else(o||a)&&s.push("translate("+o+e+a+n)}(a.translateX,a.translateY,s.translateX,s.translateY,c,u),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(o(n)+"rotate(",null,r)-2,x:(0,i.A)(t,e)})):e&&n.push(o(n)+"rotate("+e+r)}(a.rotate,s.rotate,c,u),function(t,e,n,a){t!==e?a.push({i:n.push(o(n)+"skewX(",null,r)-2,x:(0,i.A)(t,e)}):e&&n.push(o(n)+"skewX("+e+r)}(a.skewX,s.skewX,c,u),function(t,e,n,r,a,s){if(t!==n||e!==r){var c=a.push(o(a)+"scale(",null,",",null,")");s.push({i:c-4,x:(0,i.A)(t,n)},{i:c-2,x:(0,i.A)(e,r)})}else 1===n&&1===r||a.push(o(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,c,u),a=s=null,function(t){for(var e,n=-1,r=u.length;++n<r;)c[(e=u[n]).i]=e.x(t);return c.join("")}}}var u=c((function(t){const e=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?a:s(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),l=c((function(t){return null==t?a:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",t),(t=r.transform.baseVal.consolidate())?s((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):a)}),", ",")",")")},20226:(t,e,n)=>{n.d(e,{A:()=>d});var r=n(17840),i=n(66968),o=n(81014),a=n(71315),s=n(50010),c=n(30604),u=n(97162),l=n(38419),f=n(51877);function d(t,e){var n,d=typeof e;return null==e||"boolean"===d?(0,l.A)(e):("number"===d?s.A:"string"===d?(n=(0,r.Ay)(e))?(e=n,i.Ay):u.A:e instanceof r.Ay?i.Ay:e instanceof Date?a.A:(0,f.p)(e)?f.A:Array.isArray(e)?o.$:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?c.A:s.A)(t,e)}},96248:(t,e,n)=>{n.d(e,{A:()=>i});function r(t){return((t=Math.exp(t))+1/t)/2}const i=function t(e,n,i){function o(t,o){var a,s,c=t[0],u=t[1],l=t[2],f=o[0],d=o[1],h=o[2],p=f-c,m=d-u,g=p*p+m*m;if(g<1e-12)s=Math.log(h/l)/e,a=function(t){return[c+t*p,u+t*m,l*Math.exp(e*t*s)]};else{var v=Math.sqrt(g),y=(h*h-l*l+i*g)/(2*l*n*v),b=(h*h-l*l-i*g)/(2*h*n*v),A=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(b*b+1)-b);s=(x-A)/e,a=function(t){var i,o=t*s,a=r(A),f=l/(n*v)*(a*(i=e*o+A,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(A));return[c+f*p,u+f*m,l*a/r(e*o+A)]}}return a.duration=1e3*s*e/Math.SQRT2,a}return o.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},o}(Math.SQRT2,2,4)},73718:(t,e,n)=>{n.d(e,{Ae:()=>k,uj:()=>E,wA:()=>w});var r,i,o,a,s,c,u,l,f,d,h,p,m,g,v=n(57528);const y=Math.PI,b=2*y,A=1e-6,x=b-A;function _(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class w{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?_:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error("invalid digits: ".concat(t));if(e>15)return _;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append(r||(r=(0,v.A)(["M",",",""])),this._x0=this._x1=+t,this._y0=this._y1=+e)}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(i||(i=(0,v.A)(["Z"]))))}lineTo(t,e){this._append(o||(o=(0,v.A)(["L",",",""])),this._x1=+t,this._y1=+e)}quadraticCurveTo(t,e,n,r){this._append(a||(a=(0,v.A)(["Q",",",",",",",""])),+t,+e,this._x1=+n,this._y1=+r)}bezierCurveTo(t,e,n,r,i,o){this._append(s||(s=(0,v.A)(["C",",",",",",",",",",",""])),+t,+e,+n,+r,this._x1=+i,this._y1=+o)}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error("negative radius: ".concat(i));let o=this._x1,a=this._y1,s=n-t,d=r-e,h=o-t,p=a-e,m=h*h+p*p;if(null===this._x1)this._append(c||(c=(0,v.A)(["M",",",""])),this._x1=t,this._y1=e);else if(m>A)if(Math.abs(p*s-d*h)>A&&i){let c=n-o,u=r-a,g=s*s+d*d,b=c*c+u*u,x=Math.sqrt(g),_=Math.sqrt(m),w=i*Math.tan((y-Math.acos((g+m-b)/(2*x*_)))/2),k=w/_,E=w/x;Math.abs(k-1)>A&&this._append(l||(l=(0,v.A)(["L",",",""])),t+k*h,e+k*p),this._append(f||(f=(0,v.A)(["A",",",",0,0,",",",",",""])),i,i,+(p*c>h*u),this._x1=t+E*s,this._y1=e+E*d)}else this._append(u||(u=(0,v.A)(["L",",",""])),this._x1=t,this._y1=e);else;}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error("negative radius: ".concat(n));let a=n*Math.cos(r),s=n*Math.sin(r),c=t+a,u=e+s,l=1^o,f=o?r-i:i-r;null===this._x1?this._append(d||(d=(0,v.A)(["M",",",""])),c,u):(Math.abs(this._x1-c)>A||Math.abs(this._y1-u)>A)&&this._append(h||(h=(0,v.A)(["L",",",""])),c,u),n&&(f<0&&(f=f%b+b),f>x?this._append(p||(p=(0,v.A)(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,l,t-a,e-s,n,n,l,this._x1=c,this._y1=u):f>A&&this._append(m||(m=(0,v.A)(["A",",",",0,",",",",",",",""])),n,n,+(f>=y),l,this._x1=t+n*Math.cos(i),this._y1=e+n*Math.sin(i)))}rect(t,e,n,r){this._append(g||(g=(0,v.A)(["M",",","h","v","h","Z"])),this._x0=this._x1=+t,this._y0=this._y1=+e,n=+n,+r,-n)}toString(){return this._}}function k(){return new w}function E(){return new w(+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:3))}k.prototype=w.prototype},67466:(t,e,n)=>{function r(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,s,c,u,l,f,d,h=t._root,p={data:r},m=t._x0,g=t._y0,v=t._x1,y=t._y1;if(!h)return t._root=p,t;for(;h.length;)if((u=e>=(o=(m+v)/2))?m=o:v=o,(l=n>=(a=(g+y)/2))?g=a:y=a,i=h,!(h=h[f=l<<1|u]))return i[f]=p,t;if(s=+t._x.call(null,h.data),c=+t._y.call(null,h.data),e===s&&n===c)return p.next=h,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(u=e>=(o=(m+v)/2))?m=o:v=o,(l=n>=(a=(g+y)/2))?g=a:y=a}while((f=l<<1|u)===(d=(c>=a)<<1|s>=o));return i[d]=h,i[f]=p,t}function i(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function o(t){return t[0]}function a(t){return t[1]}function s(t,e,n){var r=new c(null==e?o:e,null==n?a:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function c(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function u(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}n.d(e,{A:()=>s});var l=s.prototype=c.prototype;l.copy=function(){var t,e,n=new c(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=u(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=u(e));return n},l.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return r(this.cover(e,n),e,n,t)},l.addAll=function(t){var e,n,i,o,a=t.length,s=new Array(a),c=new Array(a),u=1/0,l=1/0,f=-1/0,d=-1/0;for(n=0;n<a;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(s[n]=i,c[n]=o,i<u&&(u=i),i>f&&(f=i),o<l&&(l=o),o>d&&(d=o));if(u>f||l>d)return this;for(this.cover(u,l).cover(f,d),n=0;n<a;++n)r(this,s[n],c[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var a,s,c=i-n||1,u=this._root;n>t||t>=i||r>e||e>=o;)switch(s=(e<r)<<1|t<n,(a=new Array(4))[s]=u,u=a,c*=2,s){case 0:i=n+c,o=r+c;break;case 1:n=i-c,o=r+c;break;case 2:i=n+c,r=o-c;break;case 3:n=i-c,r=o-c}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var r,o,a,s,c,u,l,f=this._x0,d=this._y0,h=this._x1,p=this._y1,m=[],g=this._root;for(g&&m.push(new i(g,f,d,h,p)),null==n?n=1/0:(f=t-n,d=e-n,h=t+n,p=e+n,n*=n);u=m.pop();)if(!(!(g=u.node)||(o=u.x0)>h||(a=u.y0)>p||(s=u.x1)<f||(c=u.y1)<d))if(g.length){var v=(o+s)/2,y=(a+c)/2;m.push(new i(g[3],v,y,s,c),new i(g[2],o,y,v,c),new i(g[1],v,a,s,y),new i(g[0],o,a,v,y)),(l=(e>=y)<<1|t>=v)&&(u=m[m.length-1],m[m.length-1]=m[m.length-1-l],m[m.length-1-l]=u)}else{var b=t-+this._x.call(null,g.data),A=e-+this._y.call(null,g.data),x=b*b+A*A;if(x<n){var _=Math.sqrt(n=x);f=t-_,d=e-_,h=t+_,p=e+_,r=g.data}}return r},l.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,s,c,u,l,f,d,h=this._root,p=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!h)return this;if(h.length)for(;;){if((u=o>=(s=(p+g)/2))?p=s:g=s,(l=a>=(c=(m+v)/2))?m=c:v=c,e=h,!(h=h[f=l<<1|u]))return this;if(!h.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,d=f)}for(;h.data!==t;)if(r=h,!(h=h.next))return this;return(i=h.next)&&delete h.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(h=e[0]||e[1]||e[2]||e[3])&&h===(e[3]||e[2]||e[1]||e[0])&&!h.length&&(n?n[d]=h:this._root=h),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,r,o,a,s,c=[],u=this._root;for(u&&c.push(new i(u,this._x0,this._y0,this._x1,this._y1));e=c.pop();)if(!t(u=e.node,r=e.x0,o=e.y0,a=e.x1,s=e.y1)&&u.length){var l=(r+a)/2,f=(o+s)/2;(n=u[3])&&c.push(new i(n,l,f,a,s)),(n=u[2])&&c.push(new i(n,r,f,l,s)),(n=u[1])&&c.push(new i(n,l,o,a,f)),(n=u[0])&&c.push(new i(n,r,o,l,f))}return this},l.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var o=e.node;if(o.length){var a,s=e.x0,c=e.y0,u=e.x1,l=e.y1,f=(s+u)/2,d=(c+l)/2;(a=o[0])&&n.push(new i(a,s,c,f,d)),(a=o[1])&&n.push(new i(a,f,c,u,d)),(a=o[2])&&n.push(new i(a,s,d,f,l)),(a=o[3])&&n.push(new i(a,f,d,u,l))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y}},73762:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(33245).A)("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666")},90624:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(33245).A)("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666")},55005:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(33245).A)("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928")},27838:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(33245).A)("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2")},47675:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(33245).A)("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc")},1879:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(33245).A)("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999")},16778:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(33245).A)("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3")},29561:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(33245).A)("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f")},88505:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(33245).A)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},79500:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(33245).A)("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0")},33245:(t,e,n)=>{function r(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}n.d(e,{A:()=>r})},79793:(t,e,n)=>{n.d(e,{C:()=>h,Ay:()=>m,D_:()=>u,Gu:()=>p});var r=n(89511),i=n(20226),o=n(50010),a=n(10831);var s=n(54521),c=[0,1];function u(t){return t}function l(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function f(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=l(i,r),o=n(a,o)):(r=l(r,i),o=n(o,a)),function(t){return o(r(t))}}function d(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),a=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=l(t[s],t[s+1]),a[s]=n(e[s],e[s+1]);return function(e){var n=(0,r.Ay)(t,e,1,i)-1;return a[n](o[n](e))}}function h(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function p(){var t,e,n,r,l,h,p=c,m=c,g=i.A,v=u;function y(){var t=Math.min(p.length,m.length);return v!==u&&(v=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(p[0],p[t-1])),r=t>2?d:f,l=h=null,b}function b(e){return null==e||isNaN(e=+e)?n:(l||(l=r(p.map(t),m,g)))(t(v(e)))}return b.invert=function(n){return v(e((h||(h=r(m,p.map(t),o.A)))(n)))},b.domain=function(t){return arguments.length?(p=Array.from(t,s.A),y()):p.slice()},b.range=function(t){return arguments.length?(m=Array.from(t),y()):m.slice()},b.rangeRound=function(t){return m=Array.from(t),g=a.A,y()},b.clamp=function(t){return arguments.length?(v=!!t||u,y()):v!==u},b.interpolate=function(t){return arguments.length?(g=t,y()):g},b.unknown=function(t){return arguments.length?(n=t,b):n},function(n,r){return t=n,e=r,y()}}function m(){return p()(u,u)}},38349:(t,e,n)=>{n.d(e,{Ay:()=>p,Ee:()=>m,Iu:()=>v,QO:()=>y,fy:()=>g});var r=n(92629),i=n(20226),o=n(10831),a=n(79793),s=n(94402),c=n(1645),u=n(67772),l=n(76495),f=n(94779),d=n(8528);function h(){var t,e,n,s,c,u,l,f=0,d=.5,h=1,p=1,m=a.D_,g=!1;function v(t){return isNaN(t=+t)?l:(t=.5+((t=+u(t))-e)*(p*t<p*e?s:c),m(g?Math.max(0,Math.min(1,t)):t))}function y(t){return function(e){var n,i,o;return arguments.length?([n,i,o]=e,m=(0,r.A)(t,[n,i,o]),v):[m(0),m(.5),m(1)]}}return v.domain=function(r){return arguments.length?([f,d,h]=r,t=u(f=+f),e=u(d=+d),n=u(h=+h),s=t===e?0:.5/(e-t),c=e===n?0:.5/(n-e),p=e<t?-1:1,v):[f,d,h]},v.clamp=function(t){return arguments.length?(g=!!t,v):g},v.interpolator=function(t){return arguments.length?(m=t,v):m},v.range=y(i.A),v.rangeRound=y(o.A),v.unknown=function(t){return arguments.length?(l=t,v):l},function(r){return u=r,t=r(f),e=r(d),n=r(h),s=t===e?0:.5/(e-t),c=e===n?0:.5/(n-e),p=e<t?-1:1,v}}function p(){var t=(0,c.C)(h()(a.D_));return t.copy=function(){return(0,l.C)(t,p())},s.K.apply(t,arguments)}function m(){var t=(0,u.g)(h()).domain([.1,1,10]);return t.copy=function(){return(0,l.C)(t,m()).base(t.base())},s.K.apply(t,arguments)}function g(){var t=(0,f.s)(h());return t.copy=function(){return(0,l.C)(t,g()).constant(t.constant())},s.K.apply(t,arguments)}function v(){var t=(0,d.DS)(h());return t.copy=function(){return(0,l.C)(t,v()).exponent(t.exponent())},s.K.apply(t,arguments)}function y(){return v.apply(null,arguments).exponent(.5)}},26722:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(1645),i=n(54521);function o(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,i.A),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return o(t).unknown(e)},t=arguments.length?Array.from(t,i.A):[0,1],(0,r.C)(n)}},94402:(t,e,n)=>{function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function i(t,e){switch(arguments.length){case 0:break;case 1:"function"===typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"===typeof e?this.interpolator(e):this.range(e)}return this}n.d(e,{C:()=>r,K:()=>i})},1645:(t,e,n)=>{n.d(e,{A:()=>c,C:()=>s});var r=n(90787),i=n(79793),o=n(94402),a=n(47910);function s(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,r.Ay)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return(0,a.A)(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,o,a=e(),s=0,c=a.length-1,u=a[s],l=a[c],f=10;for(l<u&&(o=u,u=l,l=o,o=s,s=c,c=o);f-- >0;){if((o=(0,r.lq)(u,l,n))===i)return a[s]=u,a[c]=l,e(a);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}i=o}return t},t}function c(){var t=(0,i.Ay)();return t.copy=function(){return(0,i.C)(t,c())},o.C.apply(t,arguments),s(t)}},67772:(t,e,n)=>{n.d(e,{A:()=>g,g:()=>m});var r=n(90787),i=n(30276),o=n(56214),a=n(45201),s=n(79793),c=n(94402);function u(t){return Math.log(t)}function l(t){return Math.exp(t)}function f(t){return-Math.log(-t)}function d(t){return-Math.exp(-t)}function h(t){return isFinite(t)?+("1e"+t):t<0?0:t}function p(t){return(e,n)=>-t(-e,n)}function m(t){const e=t(u,l),n=e.domain;let s,c,m=10;function g(){return s=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(m),c=function(t){return 10===t?h:t===Math.E?Math.exp:e=>Math.pow(t,e)}(m),n()[0]<0?(s=p(s),c=p(c),t(f,d)):t(u,l),e}return e.base=function(t){return arguments.length?(m=+t,g()):m},e.domain=function(t){return arguments.length?(n(t),g()):n()},e.ticks=t=>{const e=n();let i=e[0],o=e[e.length-1];const a=o<i;a&&([i,o]=[o,i]);let u,l,f=s(i),d=s(o);const h=null==t?10:+t;let p=[];if(!(m%1)&&d-f<h){if(f=Math.floor(f),d=Math.ceil(d),i>0){for(;f<=d;++f)for(u=1;u<m;++u)if(l=f<0?u/c(-f):u*c(f),!(l<i)){if(l>o)break;p.push(l)}}else for(;f<=d;++f)for(u=m-1;u>=1;--u)if(l=f>0?u/c(-f):u*c(f),!(l<i)){if(l>o)break;p.push(l)}2*p.length<h&&(p=(0,r.Ay)(i,o,h))}else p=(0,r.Ay)(f,d,Math.min(d-f,h)).map(c);return a?p.reverse():p},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===m?"s":","),"function"!==typeof n&&(m%1||null!=(n=(0,i.A)(n)).precision||(n.trim=!0),n=(0,o.GP)(n)),t===1/0)return n;const r=Math.max(1,m*t/e.ticks().length);return t=>{let e=t/c(Math.round(s(t)));return e*m<m-.5&&(e*=m),e<=r?n(t):""}},e.nice=()=>n((0,a.A)(n(),{floor:t=>c(Math.floor(s(t))),ceil:t=>c(Math.ceil(s(t)))})),e}function g(){const t=m((0,s.Gu)()).domain([1,10]);return t.copy=()=>(0,s.C)(t,g()).base(t.base()),c.C.apply(t,arguments),t}},45201:(t,e,n)=>{function r(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}n.d(e,{A:()=>r})},54521:(t,e,n)=>{function r(t){return+t}n.d(e,{A:()=>r})},58299:(t,e,n)=>{n.d(e,{A:()=>a,h:()=>o});var r=n(5252),i=n(94402);const o=Symbol("implicit");function a(){var t=new r.B,e=[],n=[],s=o;function c(r){let i=t.get(r);if(void 0===i){if(s!==o)return s;t.set(r,i=e.push(r)-1)}return n[i%n.length]}return c.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new r.B;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return c},c.range=function(t){return arguments.length?(n=Array.from(t),c):n.slice()},c.unknown=function(t){return arguments.length?(s=t,c):s},c.copy=function(){return a(e,n).unknown(s)},i.C.apply(c,arguments),c}},8528:(t,e,n)=>{n.d(e,{Ay:()=>l,DS:()=>u,RZ:()=>f});var r=n(1645),i=n(79793),o=n(94402);function a(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function s(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function c(t){return t<0?-t*t:t*t}function u(t){var e=t(i.D_,i.D_),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(i.D_,i.D_):.5===n?t(s,c):t(a(n),a(1/n)):n},(0,r.C)(e)}function l(){var t=u((0,i.Gu)());return t.copy=function(){return(0,i.C)(t,l()).exponent(t.exponent())},o.C.apply(t,arguments),t}function f(){return l.apply(null,arguments).exponent(.5)}},59813:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(49020),i=n(89511),o=n(84283),a=n(94402);function s(){var t,e=[],n=[],c=[];function u(){var t=0,i=Math.max(1,n.length);for(c=new Array(i-1);++t<i;)c[t-1]=(0,r.Z4)(e,t/i);return l}function l(e){return null==e||isNaN(e=+e)?t:n[(0,i.Ay)(c,e)]}return l.invertExtent=function(t){var r=n.indexOf(t);return r<0?[NaN,NaN]:[r>0?c[r-1]:e[0],r<c.length?c[r]:e[e.length-1]]},l.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(o.A),u()},l.range=function(t){return arguments.length?(n=Array.from(t),u()):n.slice()},l.unknown=function(e){return arguments.length?(t=e,l):t},l.quantiles=function(){return c.slice()},l.copy=function(){return s().domain(e).range(n).unknown(t)},a.C.apply(l,arguments)}},14071:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(89511),i=n(1645),o=n(94402);function a(){var t,e=0,n=1,s=1,c=[.5],u=[0,1];function l(e){return null!=e&&e<=e?u[(0,r.Ay)(c,e,0,s)]:t}function f(){var t=-1;for(c=new Array(s);++t<s;)c[t]=((t+1)*n-(t-s)*e)/(s+1);return l}return l.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,f()):[e,n]},l.range=function(t){return arguments.length?(s=(u=Array.from(t)).length-1,f()):u.slice()},l.invertExtent=function(t){var r=u.indexOf(t);return r<0?[NaN,NaN]:r<1?[e,c[0]]:r>=s?[c[s-1],n]:[c[r-1],c[r]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return c.slice()},l.copy=function(){return a().domain([e,n]).range(u).unknown(t)},o.C.apply((0,i.C)(l),arguments)}},76495:(t,e,n)=>{n.d(e,{Ay:()=>h,C:()=>d,a6:()=>p,ao:()=>v,bZ:()=>m,iG:()=>g});var r=n(20226),i=n(10831),o=n(79793),a=n(94402),s=n(1645),c=n(67772),u=n(94779),l=n(8528);function f(){var t,e,n,a,s,c=0,u=1,l=o.D_,f=!1;function d(e){return null==e||isNaN(e=+e)?s:l(0===n?.5:(e=(a(e)-t)*n,f?Math.max(0,Math.min(1,e)):e))}function h(t){return function(e){var n,r;return arguments.length?([n,r]=e,l=t(n,r),d):[l(0),l(1)]}}return d.domain=function(r){return arguments.length?([c,u]=r,t=a(c=+c),e=a(u=+u),n=t===e?0:1/(e-t),d):[c,u]},d.clamp=function(t){return arguments.length?(f=!!t,d):f},d.interpolator=function(t){return arguments.length?(l=t,d):l},d.range=h(r.A),d.rangeRound=h(i.A),d.unknown=function(t){return arguments.length?(s=t,d):s},function(r){return a=r,t=r(c),e=r(u),n=t===e?0:1/(e-t),d}}function d(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function h(){var t=(0,s.C)(f()(o.D_));return t.copy=function(){return d(t,h())},a.K.apply(t,arguments)}function p(){var t=(0,c.g)(f()).domain([1,10]);return t.copy=function(){return d(t,p()).base(t.base())},a.K.apply(t,arguments)}function m(){var t=(0,u.s)(f());return t.copy=function(){return d(t,m()).constant(t.constant())},a.K.apply(t,arguments)}function g(){var t=(0,l.DS)(f());return t.copy=function(){return d(t,g()).exponent(t.exponent())},a.K.apply(t,arguments)}function v(){return g.apply(null,arguments).exponent(.5)}},94779:(t,e,n)=>{n.d(e,{A:()=>u,s:()=>c});var r=n(1645),i=n(79793),o=n(94402);function a(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function s(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function c(t){var e=1,n=t(a(e),s(e));return n.constant=function(n){return arguments.length?t(a(e=+n),s(e)):e},(0,r.C)(n)}function u(){var t=c((0,i.Gu)());return t.copy=function(){return(0,i.C)(t,u()).constant(t.constant())},o.C.apply(t,arguments)}},67645:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(89511),i=n(94402);function o(){var t,e=[.5],n=[0,1],a=1;function s(i){return null!=i&&i<=i?n[(0,r.Ay)(e,i,0,a)]:t}return s.domain=function(t){return arguments.length?(e=Array.from(t),a=Math.min(e.length,n.length-1),s):e.slice()},s.range=function(t){return arguments.length?(n=Array.from(t),a=Math.min(e.length,n.length-1),s):n.slice()},s.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return o().domain(e).range(n).unknown(t)},i.C.apply(s,arguments)}},47910:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(90787),i=n(30276),o=n(48249),a=n(56214),s=n(43877),c=n(97867);function u(t,e,n,u){var l,f=(0,r.sG)(t,e,n);switch((u=(0,i.A)(null==u?",f":u)).type){case"s":var d=Math.max(Math.abs(t),Math.abs(e));return null!=u.precision||isNaN(l=(0,o.A)(f,d))||(u.precision=l),(0,a.s)(u,d);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(l=(0,s.A)(f,Math.max(Math.abs(t),Math.abs(e))))||(u.precision=l-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(l=(0,c.A)(f))||(u.precision=l-2*("%"===u.type))}return(0,a.GP)(u)}},12689:(t,e,n)=>{n.d(e,{A:()=>y,B:()=>v});var r=n(94185),i=n(8574),o=n(79477),a=n(99215),s=n(26409),c=n(62269),u=n(5827),l=n(19039),f=n(15744),d=n(79793),h=n(94402),p=n(45201);function m(t){return new Date(t)}function g(t){return t instanceof Date?+t:+new Date(+t)}function v(t,e,n,r,i,o,a,s,c,u){var l=(0,d.Ay)(),f=l.invert,h=l.domain,y=u(".%L"),b=u(":%S"),A=u("%I:%M"),x=u("%I %p"),_=u("%a %d"),w=u("%b %d"),k=u("%B"),E=u("%Y");function F(t){return(c(t)<t?y:s(t)<t?b:a(t)<t?A:o(t)<t?x:r(t)<t?i(t)<t?_:w:n(t)<t?k:E)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?h(Array.from(t,g)):h().map(m)},l.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?F:u(e)},l.nice=function(t){var n=h();return t&&"function"===typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h((0,p.A)(n,t)):l},l.copy=function(){return(0,d.C)(l,v(t,e,n,r,i,o,a,s,c,u))},l}function y(){return h.C.apply(v(r.Cf,r.yE,i.he,o.Ui,a.YP,s.UA,c.Ag,u.wX,l.R,f.DC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}},80977:(t,e,n)=>{n.d(e,{A:()=>p});var r=n(94185),i=n(8574),o=n(79477),a=n(99215),s=n(26409),c=n(62269),u=n(5827),l=n(19039),f=n(15744),d=n(12689),h=n(94402);function p(){return h.C.apply((0,d.B)(r.$Z,r.lk,i.Mb,o.R6,a.Hl,s.dA,c.pz,u.vD,l.R,f.aL).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}},45453:(t,e,n)=>{n.d(e,{A:()=>d});var r=n(13809),i=n(6739),o=n(21286);function a(t){return t.innerRadius}function s(t){return t.outerRadius}function c(t){return t.startAngle}function u(t){return t.endAngle}function l(t){return t&&t.padAngle}function f(t,e,n,r,o,a,s){var c=t-n,u=e-r,l=(s?a:-a)/(0,i.RZ)(c*c+u*u),f=l*u,d=-l*c,h=t+f,p=e+d,m=n+f,g=r+d,v=(h+m)/2,y=(p+g)/2,b=m-h,A=g-p,x=b*b+A*A,_=o-a,w=h*g-m*p,k=(A<0?-1:1)*(0,i.RZ)((0,i.T9)(0,_*_*x-w*w)),E=(w*A-b*k)/x,F=(-w*b-A*k)/x,D=(w*A+b*k)/x,C=(-w*b+A*k)/x,M=E-v,S=F-y,T=D-v,N=C-y;return M*M+S*S>T*T+N*N&&(E=D,F=C),{cx:E,cy:F,x01:-f,y01:-d,x11:E*(o/_-1),y11:F*(o/_-1)}}function d(){var t=a,e=s,n=(0,r.A)(0),d=null,h=c,p=u,m=l,g=null,v=(0,o.i)(y);function y(){var r,o,a=+t.apply(this,arguments),s=+e.apply(this,arguments),c=h.apply(this,arguments)-i.TW,u=p.apply(this,arguments)-i.TW,l=(0,i.tn)(u-c),y=u>c;if(g||(g=r=v()),s<a&&(o=s,s=a,a=o),s>i.Ni)if(l>i.FA-i.Ni)g.moveTo(s*(0,i.gn)(c),s*(0,i.F8)(c)),g.arc(0,0,s,c,u,!y),a>i.Ni&&(g.moveTo(a*(0,i.gn)(u),a*(0,i.F8)(u)),g.arc(0,0,a,u,c,y));else{var b,A,x=c,_=u,w=c,k=u,E=l,F=l,D=m.apply(this,arguments)/2,C=D>i.Ni&&(d?+d.apply(this,arguments):(0,i.RZ)(a*a+s*s)),M=(0,i.jk)((0,i.tn)(s-a)/2,+n.apply(this,arguments)),S=M,T=M;if(C>i.Ni){var N=(0,i.qR)(C/a*(0,i.F8)(D)),O=(0,i.qR)(C/s*(0,i.F8)(D));(E-=2*N)>i.Ni?(w+=N*=y?1:-1,k-=N):(E=0,w=k=(c+u)/2),(F-=2*O)>i.Ni?(x+=O*=y?1:-1,_-=O):(F=0,x=_=(c+u)/2)}var B=s*(0,i.gn)(x),R=s*(0,i.F8)(x),z=a*(0,i.gn)(k),P=a*(0,i.F8)(k);if(M>i.Ni){var L,I=s*(0,i.gn)(_),j=s*(0,i.F8)(_),U=a*(0,i.gn)(w),q=a*(0,i.F8)(w);if(l<i.pi)if(L=function(t,e,n,r,o,a,s,c){var u=n-t,l=r-e,f=s-o,d=c-a,h=d*u-f*l;if(!(h*h<i.Ni))return[t+(h=(f*(e-a)-d*(t-o))/h)*u,e+h*l]}(B,R,U,q,I,j,z,P)){var W=B-L[0],H=R-L[1],G=I-L[0],Y=j-L[1],V=1/(0,i.F8)((0,i.HQ)((W*G+H*Y)/((0,i.RZ)(W*W+H*H)*(0,i.RZ)(G*G+Y*Y)))/2),$=(0,i.RZ)(L[0]*L[0]+L[1]*L[1]);S=(0,i.jk)(M,(a-$)/(V-1)),T=(0,i.jk)(M,(s-$)/(V+1))}else S=T=0}F>i.Ni?T>i.Ni?(b=f(U,q,B,R,s,T,y),A=f(I,j,z,P,s,T,y),g.moveTo(b.cx+b.x01,b.cy+b.y01),T<M?g.arc(b.cx,b.cy,T,(0,i.FP)(b.y01,b.x01),(0,i.FP)(A.y01,A.x01),!y):(g.arc(b.cx,b.cy,T,(0,i.FP)(b.y01,b.x01),(0,i.FP)(b.y11,b.x11),!y),g.arc(0,0,s,(0,i.FP)(b.cy+b.y11,b.cx+b.x11),(0,i.FP)(A.cy+A.y11,A.cx+A.x11),!y),g.arc(A.cx,A.cy,T,(0,i.FP)(A.y11,A.x11),(0,i.FP)(A.y01,A.x01),!y))):(g.moveTo(B,R),g.arc(0,0,s,x,_,!y)):g.moveTo(B,R),a>i.Ni&&E>i.Ni?S>i.Ni?(b=f(z,P,I,j,a,-S,y),A=f(B,R,U,q,a,-S,y),g.lineTo(b.cx+b.x01,b.cy+b.y01),S<M?g.arc(b.cx,b.cy,S,(0,i.FP)(b.y01,b.x01),(0,i.FP)(A.y01,A.x01),!y):(g.arc(b.cx,b.cy,S,(0,i.FP)(b.y01,b.x01),(0,i.FP)(b.y11,b.x11),!y),g.arc(0,0,a,(0,i.FP)(b.cy+b.y11,b.cx+b.x11),(0,i.FP)(A.cy+A.y11,A.cx+A.x11),y),g.arc(A.cx,A.cy,S,(0,i.FP)(A.y11,A.x11),(0,i.FP)(A.y01,A.x01),!y))):g.arc(0,0,a,k,w,y):g.lineTo(z,P)}else g.moveTo(0,0);if(g.closePath(),r)return g=null,r+""||null}return y.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+h.apply(this,arguments)+ +p.apply(this,arguments))/2-i.pi/2;return[(0,i.gn)(r)*n,(0,i.F8)(r)*n]},y.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.A)(+e),y):t},y.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.A)(+t),y):e},y.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.A)(+t),y):n},y.padRadius=function(t){return arguments.length?(d=null==t?null:"function"===typeof t?t:(0,r.A)(+t),y):d},y.startAngle=function(t){return arguments.length?(h="function"===typeof t?t:(0,r.A)(+t),y):h},y.endAngle=function(t){return arguments.length?(p="function"===typeof t?t:(0,r.A)(+t),y):p},y.padAngle=function(t){return arguments.length?(m="function"===typeof t?t:(0,r.A)(+t),y):m},y.context=function(t){return arguments.length?(g=null==t?null:t,y):g},y}},21872:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(99236),i=n(13809),o=n(35248),a=n(68907),s=n(21286),c=n(15527);function u(t,e,n){var u=null,l=(0,i.A)(!0),f=null,d=o.A,h=null,p=(0,s.i)(m);function m(i){var o,a,s,c,m,g=(i=(0,r.A)(i)).length,v=!1,y=new Array(g),b=new Array(g);for(null==f&&(h=d(m=p())),o=0;o<=g;++o){if(!(o<g&&l(c=i[o],o,i))===v)if(v=!v)a=o,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),s=o-1;s>=a;--s)h.point(y[s],b[s]);h.lineEnd(),h.areaEnd()}v&&(y[o]=+t(c,o,i),b[o]=+e(c,o,i),h.point(u?+u(c,o,i):y[o],n?+n(c,o,i):b[o]))}if(m)return h=null,m+""||null}function g(){return(0,a.A)().defined(l).curve(d).context(f)}return t="function"===typeof t?t:void 0===t?c.x:(0,i.A)(+t),e="function"===typeof e?e:void 0===e?(0,i.A)(0):(0,i.A)(+e),n="function"===typeof n?n:void 0===n?c.y:(0,i.A)(+n),m.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,i.A)(+e),u=null,m):t},m.x0=function(e){return arguments.length?(t="function"===typeof e?e:(0,i.A)(+e),m):t},m.x1=function(t){return arguments.length?(u=null==t?null:"function"===typeof t?t:(0,i.A)(+t),m):u},m.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,i.A)(+t),n=null,m):e},m.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,i.A)(+t),m):e},m.y1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,i.A)(+t),m):n},m.lineX0=m.lineY0=function(){return g().x(t).y(e)},m.lineY1=function(){return g().x(t).y(n)},m.lineX1=function(){return g().x(u).y(e)},m.defined=function(t){return arguments.length?(l="function"===typeof t?t:(0,i.A)(!!t),m):l},m.curve=function(t){return arguments.length?(d=t,null!=f&&(h=d(f)),m):d},m.context=function(t){return arguments.length?(null==t?f=h=null:h=d(f=t),m):f},m}},99236:(t,e,n)=>{n.d(e,{A:()=>i,d:()=>r});var r=Array.prototype.slice;function i(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}},13809:(t,e,n)=>{function r(t){return function(){return t}}n.d(e,{A:()=>r})},84047:(t,e,n)=>{function r(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function i(t){this._context=t}function o(t){return new i(t)}n.d(e,{Ay:()=>o,xO:()=>i,zx:()=>r}),i.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:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,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:r(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},51103:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(83477),i=n(84047);function o(t){this._context=t}function a(t){return new o(t)}o.prototype={areaStart:r.A,areaEnd:r.A,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)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:(0,i.zx)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},72271:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(84047);function i(t){this._context=t}function o(t){return new i(t)}i.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:(0,r.zx)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},87701:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(84047);function i(t,e){this._basis=new r.xO(t),this._beta=e}i.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*e[c]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const o=function t(e){function n(t){return 1===e?new r.xO(t):new i(t,e)}return n.beta=function(e){return t(+e)},n}(.85)},38101:(t,e,n)=>{function r(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function i(t,e){this._context=t,this._k=(1-e)/6}n.d(e,{Ay:()=>o,vP:()=>i,zx:()=>r}),i.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:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:r(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const o=function t(e){function n(t){return new i(t,e)}return n.tension=function(e){return t(+e)},n}(0)},31961:(t,e,n)=>{n.d(e,{A:()=>a,L:()=>o});var r=n(83477),i=n(38101);function o(t,e){this._context=t,this._k=(1-e)/6}o.prototype={areaStart:r.A,areaEnd:r.A,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)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:(0,i.zx)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const a=function t(e){function n(t){return new o(t,e)}return n.tension=function(e){return t(+e)},n}(0)},69685:(t,e,n)=>{n.d(e,{A:()=>o,H:()=>i});var r=n(38101);function i(t,e){this._context=t,this._k=(1-e)/6}i.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,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:(0,r.zx)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const o=function t(e){function n(t){return new i(t,e)}return n.tension=function(e){return t(+e)},n}(0)},25393:(t,e,n)=>{n.d(e,{A:()=>s,z:()=>o});var r=n(6739),i=n(38101);function o(t,e,n){var i=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>r.Ni){var c=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*c-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,o=(o*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>r.Ni){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/f,s=(s*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(i,o,a,s,t._x2,t._y2)}function a(t,e){this._context=t,this._alpha=e}a.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:o(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const s=function t(e){function n(t){return e?new a(t,e):new i.vP(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},63685:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(31961),i=n(83477),o=n(25393);function a(t,e){this._context=t,this._alpha=e}a.prototype={areaStart:i.A,areaEnd:i.A,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)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:(0,o.z)(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const s=function t(e){function n(t){return e?new a(t,e):new r.L(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},44025:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(69685),i=n(25393);function o(t,e){this._context=t,this._alpha=e}o.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:(0,i.z)(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const a=function t(e){function n(t){return e?new o(t,e):new r.H(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},35248:(t,e,n)=>{function r(t){this._context=t}function i(t){return new r(t)}n.d(e,{A:()=>i}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},12988:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(83477);function i(t){this._context=t}function o(t){return new i(t)}i.prototype={areaStart:r.A,areaEnd:r.A,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}}},88330:(t,e,n)=>{function r(t){return t<0?-1:1}function i(t,e,n){var i=t._x1-t._x0,o=e-t._x1,a=(t._y1-t._y0)/(i||o<0&&-0),s=(n-t._y1)/(o||i<0&&-0),c=(a*o+s*i)/(i+o);return(r(a)+r(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(c))||0}function o(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function a(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function s(t){this._context=t}function c(t){this._context=new u(t)}function u(t){this._context=t}function l(t){return new s(t)}function f(t){return new c(t)}n.d(e,{G:()=>l,N:()=>f}),s.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:a(this,this._t0,o(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,a(this,o(this,n=i(this,t,e)),n);break;default:a(this,this._t0,n=i(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(c.prototype=Object.create(s.prototype)).point=function(t,e){s.prototype.point.call(this,e,t)},u.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}}},69340:(t,e,n)=>{function r(t){this._context=t}function i(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function o(t){return new r(t)}n.d(e,{A:()=>o}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=i(t),o=i(e),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],o[0][a],r[1][a],o[1][a],t[s],e[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}}},54623:(t,e,n)=>{function r(t,e){this._context=t,this._t=e}function i(t){return new r(t,.5)}function o(t){return new r(t,0)}function a(t){return new r(t,1)}n.d(e,{Ay:()=>i,Ko:()=>o,Ps:()=>a}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}}},68907:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(99236),i=n(13809),o=n(35248),a=n(21286),s=n(15527);function c(t,e){var n=(0,i.A)(!0),c=null,u=o.A,l=null,f=(0,a.i)(d);function d(i){var o,a,s,d=(i=(0,r.A)(i)).length,h=!1;for(null==c&&(l=u(s=f())),o=0;o<=d;++o)!(o<d&&n(a=i[o],o,i))===h&&((h=!h)?l.lineStart():l.lineEnd()),h&&l.point(+t(a,o,i),+e(a,o,i));if(s)return l=null,s+""||null}return t="function"===typeof t?t:void 0===t?s.x:(0,i.A)(t),e="function"===typeof e?e:void 0===e?s.y:(0,i.A)(e),d.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,i.A)(+e),d):t},d.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,i.A)(+t),d):e},d.defined=function(t){return arguments.length?(n="function"===typeof t?t:(0,i.A)(!!t),d):n},d.curve=function(t){return arguments.length?(u=t,null!=c&&(l=u(c)),d):u},d.context=function(t){return arguments.length?(null==t?c=l=null:l=u(c=t),d):c},d}},6739:(t,e,n)=>{n.d(e,{F8:()=>c,FA:()=>h,FP:()=>i,HQ:()=>p,Ni:()=>l,RZ:()=>u,T9:()=>a,TW:()=>d,gn:()=>o,jk:()=>s,pi:()=>f,qR:()=>m,tn:()=>r});const r=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,c=Math.sin,u=Math.sqrt,l=1e-12,f=Math.PI,d=f/2,h=2*f;function p(t){return t>1?0:t<-1?f:Math.acos(t)}function m(t){return t>=1?d:t<=-1?-d:Math.asin(t)}},83477:(t,e,n)=>{function r(){}n.d(e,{A:()=>r})},21286:(t,e,n)=>{n.d(e,{i:()=>i});var r=n(73718);function i(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError("invalid digits: ".concat(n));e=t}return t},()=>new r.wA(e)}},15527:(t,e,n)=>{function r(t){return t[0]}function i(t){return t[1]}n.d(e,{x:()=>r,y:()=>i})},42817:(t,e,n)=>{n.d(e,{AM:()=>b,Ay:()=>A,Lk:()=>y});var r=n(13809),i=n(21286),o=n(18372),a=n(67544),s=n(91922),c=n(88210),u=n(7426),l=n(93340),f=n(20299),d=n(28317),h=n(43148),p=n(93564),m=n(3980),g=n(46137),v=n(17512);const y=[a.A,s.A,c.A,f.A,h.A,p.A,g.A],b=[a.A,l.A,v.A,m.A,o.A,d.A,u.A];function A(t,e){let n=null,o=(0,i.i)(s);function s(){let r;if(n||(n=r=o()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return t="function"===typeof t?t:(0,r.A)(t||a.A),e="function"===typeof e?e:(0,r.A)(void 0===e?64:+e),s.type=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.A)(e),s):t},s.size=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.A)(+t),s):e},s.context=function(t){return arguments.length?(n=null==t?null:t,s):n},s}},18372:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(6739);const i=(0,r.RZ)(3),o={draw(t,e){const n=.59436*(0,r.RZ)(e+(0,r.jk)(e/28,.75)),o=n/2,a=o*i;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-a,-o),t.lineTo(a,o),t.moveTo(-a,o),t.lineTo(a,-o)}}},67544:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6739);const i={draw(t,e){const n=(0,r.RZ)(e/r.pi);t.moveTo(n,0),t.arc(0,0,n,0,r.FA)}}},91922:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6739);const i={draw(t,e){const n=(0,r.RZ)(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}}},88210:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(6739);const i=(0,r.RZ)(1/3),o=2*i,a={draw(t,e){const n=(0,r.RZ)(e/o),a=n*i;t.moveTo(0,-n),t.lineTo(a,0),t.lineTo(0,n),t.lineTo(-a,0),t.closePath()}}},7426:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6739);const i={draw(t,e){const n=.62625*(0,r.RZ)(e);t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}}},93340:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6739);const i={draw(t,e){const n=.87559*(0,r.RZ)(e-(0,r.jk)(e/7,2));t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}}},20299:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6739);const i={draw(t,e){const n=(0,r.RZ)(e),i=-n/2;t.rect(i,i,n,n)}}},28317:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6739);const i={draw(t,e){const n=.4431*(0,r.RZ)(e);t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}}},43148:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(6739);const i=(0,r.F8)(r.pi/10)/(0,r.F8)(7*r.pi/10),o=(0,r.F8)(r.FA/10)*i,a=-(0,r.gn)(r.FA/10)*i,s={draw(t,e){const n=(0,r.RZ)(.8908130915292852*e),i=o*n,s=a*n;t.moveTo(0,-n),t.lineTo(i,s);for(let o=1;o<5;++o){const e=r.FA*o/5,a=(0,r.gn)(e),c=(0,r.F8)(e);t.lineTo(c*n,-a*n),t.lineTo(a*i-c*s,c*i+a*s)}t.closePath()}}},17512:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6739);const i={draw(t,e){const n=.6189*(0,r.RZ)(e-(0,r.jk)(e/6,1.7));t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}}},93564:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(6739);const i=(0,r.RZ)(3),o={draw(t,e){const n=-(0,r.RZ)(e/(3*i));t.moveTo(0,2*n),t.lineTo(-i*n,-n),t.lineTo(i*n,-n),t.closePath()}}},3980:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(6739);const i=(0,r.RZ)(3),o={draw(t,e){const n=.6824*(0,r.RZ)(e),o=n/2,a=n*i/2;t.moveTo(0,-n),t.lineTo(a,o),t.lineTo(-a,o),t.closePath()}}},46137:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(6739);const i=-.5,o=(0,r.RZ)(3)/2,a=1/(0,r.RZ)(12),s=3*(a/2+1),c={draw(t,e){const n=(0,r.RZ)(e/s),c=n/2,u=n*a,l=c,f=n*a+n,d=-l,h=f;t.moveTo(c,u),t.lineTo(l,f),t.lineTo(d,h),t.lineTo(i*c-o*u,o*c+i*u),t.lineTo(i*l-o*f,o*l+i*f),t.lineTo(i*d-o*h,o*d+i*h),t.lineTo(i*c+o*u,i*u-o*c),t.lineTo(i*l+o*f,i*f-o*l),t.lineTo(i*d+o*h,i*h-o*d),t.closePath()}}},15744:(t,e,n)=>{n.d(e,{Ay:()=>u,DC:()=>i,GY:()=>s,T6:()=>o,aL:()=>a});var r,i,o,a,s,c=n(77953);function u(t){return r=(0,c.A)(t),i=r.format,o=r.parse,a=r.utcFormat,s=r.utcParse,r}u({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},77953:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(99215),i=n(26409),o=n(8574);function a(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function s(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function c(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function u(t){var e=t.dateTime,n=t.date,o=t.time,u=t.periods,f=t.days,d=t.shortDays,h=t.months,p=t.shortMonths,m=g(u),X=v(u),mt=g(f),Dt=v(f),Ct=g(d),Mt=v(d),St=g(h),Tt=v(h),Nt=g(p),Ot=v(p),Bt={a:function(t){return d[t.getDay()]},A:function(t){return f[t.getDay()]},b:function(t){return p[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:L,e:L,f:W,g:tt,G:nt,H:I,I:j,j:U,L:q,m:H,M:G,p:function(t){return u[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Et,s:Ft,S:Y,u:V,U:$,V:Z,w:J,W:Q,x:null,X:null,y:K,Y:et,Z:rt,"%":kt},Rt={a:function(t){return d[t.getUTCDay()]},A:function(t){return f[t.getUTCDay()]},b:function(t){return p[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:it,e:it,f:ut,g:At,G:_t,H:ot,I:at,j:st,L:ct,m:lt,M:ft,p:function(t){return u[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Et,s:Ft,S:dt,u:ht,U:pt,V:gt,w:vt,W:yt,x:null,X:null,y:bt,Y:xt,Z:wt,"%":kt},zt={a:function(t,e,n){var r=Ct.exec(e.slice(n));return r?(t.w=Mt.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=mt.exec(e.slice(n));return r?(t.w=Dt.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=Nt.exec(e.slice(n));return r?(t.m=Ot.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=St.exec(e.slice(n));return r?(t.m=Tt.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return It(t,e,n,r)},d:C,e:C,f:B,g:k,G:w,H:S,I:S,j:M,L:O,m:D,M:T,p:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.p=X.get(r[0].toLowerCase()),n+r[0].length):-1},q:F,Q:z,s:P,S:N,u:b,U:A,V:x,w:y,W:_,x:function(t,e,r){return It(t,n,e,r)},X:function(t,e,n){return It(t,o,e,n)},y:k,Y:w,Z:E,"%":R};function Pt(t,e){return function(n){var r,i,o,a=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===t.charCodeAt(s)&&(a.push(t.slice(c,s)),null!=(i=l[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),c=s+1);return a.push(t.slice(c,s)),a.join("")}}function Lt(t,e){return function(n){var o,u,l=c(1900,void 0,1);if(It(l,t,n+="",0)!=n.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(1e3*l.s+("L"in l?l.L:0));if(e&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+12*l.p),void 0===l.m&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(u=(o=s(c(l.y,0,1))).getUTCDay(),o=u>4||0===u?r.rt.ceil(o):(0,r.rt)(o),o=i.dA.offset(o,7*(l.V-1)),l.y=o.getUTCFullYear(),l.m=o.getUTCMonth(),l.d=o.getUTCDate()+(l.w+6)%7):(u=(o=a(c(l.y,0,1))).getDay(),o=u>4||0===u?r.AB.ceil(o):(0,r.AB)(o),o=i.UA.offset(o,7*(l.V-1)),l.y=o.getFullYear(),l.m=o.getMonth(),l.d=o.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),u="Z"in l?s(c(l.y,0,1)).getUTCDay():a(c(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+7*l.W-(u+5)%7:l.w+7*l.U-(u+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,s(l)):a(l)}}function It(t,e,n,r){for(var i,o,a=0,s=e.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=zt[i in l?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Bt.x=Pt(n,Bt),Bt.X=Pt(o,Bt),Bt.c=Pt(e,Bt),Rt.x=Pt(n,Rt),Rt.X=Pt(o,Rt),Rt.c=Pt(e,Rt),{format:function(t){var e=Pt(t+="",Bt);return e.toString=function(){return t},e},parse:function(t){var e=Lt(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Pt(t+="",Rt);return e.toString=function(){return t},e},utcParse:function(t){var e=Lt(t+="",!0);return e.toString=function(){return t},e}}}var l={"-":"",_:" ",0:"0"},f=/^\s*\d+/,d=/^%/,h=/[\\^$*+?|[\]().{}]/g;function p(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function m(t){return t.replace(h,"\\$&")}function g(t){return new RegExp("^(?:"+t.map(m).join("|")+")","i")}function v(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function y(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function b(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function A(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function x(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function _(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function w(t,e,n){var r=f.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function k(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function E(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function F(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function D(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function C(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function M(t,e,n){var r=f.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function S(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function T(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function N(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function O(t,e,n){var r=f.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function B(t,e,n){var r=f.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function R(t,e,n){var r=d.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function z(t,e,n){var r=f.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function P(t,e,n){var r=f.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function L(t,e){return p(t.getDate(),e,2)}function I(t,e){return p(t.getHours(),e,2)}function j(t,e){return p(t.getHours()%12||12,e,2)}function U(t,e){return p(1+i.UA.count((0,o.he)(t),t),e,3)}function q(t,e){return p(t.getMilliseconds(),e,3)}function W(t,e){return q(t,e)+"000"}function H(t,e){return p(t.getMonth()+1,e,2)}function G(t,e){return p(t.getMinutes(),e,2)}function Y(t,e){return p(t.getSeconds(),e,2)}function V(t){var e=t.getDay();return 0===e?7:e}function $(t,e){return p(r.YP.count((0,o.he)(t)-1,t),e,2)}function X(t){var e=t.getDay();return e>=4||0===e?(0,r.Mo)(t):r.Mo.ceil(t)}function Z(t,e){return t=X(t),p(r.Mo.count((0,o.he)(t),t)+(4===(0,o.he)(t).getDay()),e,2)}function J(t){return t.getDay()}function Q(t,e){return p(r.AB.count((0,o.he)(t)-1,t),e,2)}function K(t,e){return p(t.getFullYear()%100,e,2)}function tt(t,e){return p((t=X(t)).getFullYear()%100,e,2)}function et(t,e){return p(t.getFullYear()%1e4,e,4)}function nt(t,e){var n=t.getDay();return p((t=n>=4||0===n?(0,r.Mo)(t):r.Mo.ceil(t)).getFullYear()%1e4,e,4)}function rt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+p(e/60|0,"0",2)+p(e%60,"0",2)}function it(t,e){return p(t.getUTCDate(),e,2)}function ot(t,e){return p(t.getUTCHours(),e,2)}function at(t,e){return p(t.getUTCHours()%12||12,e,2)}function st(t,e){return p(1+i.dA.count((0,o.Mb)(t),t),e,3)}function ct(t,e){return p(t.getUTCMilliseconds(),e,3)}function ut(t,e){return ct(t,e)+"000"}function lt(t,e){return p(t.getUTCMonth()+1,e,2)}function ft(t,e){return p(t.getUTCMinutes(),e,2)}function dt(t,e){return p(t.getUTCSeconds(),e,2)}function ht(t){var e=t.getUTCDay();return 0===e?7:e}function pt(t,e){return p(r.Hl.count((0,o.Mb)(t)-1,t),e,2)}function mt(t){var e=t.getUTCDay();return e>=4||0===e?(0,r.pT)(t):r.pT.ceil(t)}function gt(t,e){return t=mt(t),p(r.pT.count((0,o.Mb)(t),t)+(4===(0,o.Mb)(t).getUTCDay()),e,2)}function vt(t){return t.getUTCDay()}function yt(t,e){return p(r.rt.count((0,o.Mb)(t)-1,t),e,2)}function bt(t,e){return p(t.getUTCFullYear()%100,e,2)}function At(t,e){return p((t=mt(t)).getUTCFullYear()%100,e,2)}function xt(t,e){return p(t.getUTCFullYear()%1e4,e,4)}function _t(t,e){var n=t.getUTCDay();return p((t=n>=4||0===n?(0,r.pT)(t):r.pT.ceil(t)).getUTCFullYear()%1e4,e,4)}function wt(){return"+0000"}function kt(){return"%"}function Et(t){return+t}function Ft(t){return Math.floor(+t/1e3)}},26409:(t,e,n)=>{n.d(e,{NT:()=>a,TW:()=>u,UA:()=>o,dA:()=>s,ou:()=>c,yE:()=>l});var r=n(73870),i=n(72203);const o=(0,r.f)((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.rR)/i.Nm),(t=>t.getDate()-1)),a=o.range,s=(0,r.f)((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/i.Nm),(t=>t.getUTCDate()-1)),c=s.range,u=(0,r.f)((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/i.Nm),(t=>Math.floor(t/i.Nm))),l=u.range},72203:(t,e,n)=>{n.d(e,{Fq:()=>s,JJ:()=>o,MP:()=>u,Nm:()=>a,Pv:()=>c,Tt:()=>r,rR:()=>i});const r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,c=30*a,u=365*a},62269:(t,e,n)=>{n.d(e,{Ag:()=>o,L6:()=>a,iA:()=>c,pz:()=>s});var r=n(73870),i=n(72203);const o=(0,r.f)((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Tt-t.getMinutes()*i.rR)}),((t,e)=>{t.setTime(+t+e*i.JJ)}),((t,e)=>(e-t)/i.JJ),(t=>t.getHours())),a=o.range,s=(0,r.f)((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*i.JJ)}),((t,e)=>(e-t)/i.JJ),(t=>t.getUTCHours())),c=s.range},73870:(t,e,n)=>{n.d(e,{f:()=>o});const r=new Date,i=new Date;function o(t,e,n,a){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=e=>(t(e=new Date(+e)),e),s.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),s.round=t=>{const e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),s.range=(n,r,i)=>{const o=[];if(n=s.ceil(n),i=null==i?1:Math.floor(i),!(n<r)||!(i>0))return o;let a;do{o.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return o},s.filter=n=>o((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(s.count=(e,o)=>(r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))),s.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?e=>a(e)%t===0:e=>s.count(0,e)%t===0):s:null)),s}},40566:(t,e,n)=>{n.d(e,{R:()=>o,y:()=>i});var r=n(73870);const i=(0,r.f)((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?(0,r.f)((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):i:null);const o=i.range},5827:(t,e,n)=>{n.d(e,{Y4:()=>c,rn:()=>a,vD:()=>s,wX:()=>o});var r=n(73870),i=n(72203);const o=(0,r.f)((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Tt)}),((t,e)=>{t.setTime(+t+e*i.rR)}),((t,e)=>(e-t)/i.rR),(t=>t.getMinutes())),a=o.range,s=(0,r.f)((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*i.rR)}),((t,e)=>(e-t)/i.rR),(t=>t.getUTCMinutes())),c=s.range},79477:(t,e,n)=>{n.d(e,{Bz:()=>o,R6:()=>a,Ui:()=>i,oi:()=>s});var r=n(73870);const i=(0,r.f)((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth())),o=i.range,a=(0,r.f)((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth())),s=a.range},19039:(t,e,n)=>{n.d(e,{R:()=>o,Y:()=>a});var r=n(73870),i=n(72203);const o=(0,r.f)((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*i.Tt)}),((t,e)=>(e-t)/i.Tt),(t=>t.getUTCSeconds())),a=o.range},94185:(t,e,n)=>{n.d(e,{$Z:()=>m,Cf:()=>v,lk:()=>g,yE:()=>y});var r=n(88910),i=n(90787),o=n(72203),a=n(40566),s=n(19039),c=n(5827),u=n(62269),l=n(26409),f=n(99215),d=n(79477),h=n(8574);function p(t,e,n,c,u,l){const f=[[s.R,1,o.Tt],[s.R,5,5*o.Tt],[s.R,15,15*o.Tt],[s.R,30,30*o.Tt],[l,1,o.rR],[l,5,5*o.rR],[l,15,15*o.rR],[l,30,30*o.rR],[u,1,o.JJ],[u,3,3*o.JJ],[u,6,6*o.JJ],[u,12,12*o.JJ],[c,1,o.Nm],[c,2,2*o.Nm],[n,1,o.Fq],[e,1,o.Pv],[e,3,3*o.Pv],[t,1,o.MP]];function d(e,n,s){const c=Math.abs(n-e)/s,u=(0,r.A)((t=>{let[,,e]=t;return e})).right(f,c);if(u===f.length)return t.every((0,i.sG)(e/o.MP,n/o.MP,s));if(0===u)return a.y.every(Math.max((0,i.sG)(e,n,s),1));const[l,d]=f[c/f[u-1][2]<f[u][2]/c?u-1:u];return l.every(d)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"===typeof n.range?n:d(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},d]}const[m,g]=p(h.Mb,d.R6,f.Hl,l.TW,u.pz,c.vD),[v,y]=p(h.he,d.Ui,f.YP,l.UA,u.Ag,c.wX)},99215:(t,e,n)=>{n.d(e,{AB:()=>s,Dr:()=>g,G6:()=>T,Gu:()=>u,HU:()=>v,Hl:()=>x,Mo:()=>l,OK:()=>m,ON:()=>M,PG:()=>c,SQ:()=>y,TU:()=>f,Xo:()=>B,YP:()=>a,Zn:()=>O,_M:()=>b,a1:()=>F,aZ:()=>C,c8:()=>D,h8:()=>p,jN:()=>S,pT:()=>E,rG:()=>d,rt:()=>_,sr:()=>w,vD:()=>h,wr:()=>N,z2:()=>k});var r=n(73870),i=n(72203);function o(t){return(0,r.f)((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.rR)/i.Fq))}const a=o(0),s=o(1),c=o(2),u=o(3),l=o(4),f=o(5),d=o(6),h=a.range,p=s.range,m=c.range,g=u.range,v=l.range,y=f.range,b=d.range;function A(t){return(0,r.f)((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/i.Fq))}const x=A(0),_=A(1),w=A(2),k=A(3),E=A(4),F=A(5),D=A(6),C=x.range,M=_.range,S=w.range,T=k.range,N=E.range,O=F.range,B=D.range},8574:(t,e,n)=>{n.d(e,{Mb:()=>a,Yo:()=>o,he:()=>i,jH:()=>s});var r=n(73870);const i=(0,r.f)((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));i.every=t=>isFinite(t=Math.floor(t))&&t>0?(0,r.f)((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null;const o=i.range,a=(0,r.f)((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));a.every=t=>isFinite(t=Math.floor(t))&&t>0?(0,r.f)((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null;const s=a.range},95508:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(79488);function i(t,e,n){var i=new r.M4,o=e;return null==e?(i.restart(t,e,n),i):(i._restart=i.restart,i.restart=function(t,e,n){e=+e,n=null==n?(0,r.tB)():+n,i._restart((function r(a){a+=o,i._restart(r,o+=e,n),t(a)}),e,n)},i.restart(t,e,n),i)}},79488:(t,e,n)=>{n.d(e,{M4:()=>m,O1:()=>g,O2:()=>v,tB:()=>h});var r,i,o=0,a=0,s=0,c=0,u=0,l=0,f="object"===typeof performance&&performance.now?performance:Date,d="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function h(){return u||(d(p),u=f.now()+l)}function p(){u=0}function m(){this._call=this._time=this._next=null}function g(t,e,n){var r=new m;return r.restart(t,e,n),r}function v(){h(),++o;for(var t,e=r;e;)(t=u-e._time)>=0&&e._call.call(void 0,t),e=e._next;--o}function y(){u=(c=f.now())+l,o=a=0;try{v()}finally{o=0,function(){var t,e,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,A(o)}(),u=0}}function b(){var t=f.now(),e=t-c;e>1e3&&(l-=e,c=t)}function A(t){o||(a&&(a=clearTimeout(a)),t-u>24?(t<1/0&&(a=setTimeout(y,t-f.now()-l)),s&&(s=clearInterval(s))):(s||(c=f.now(),s=setInterval(b,1e3)),o=1,d(y)))}m.prototype=g.prototype={constructor:m,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?h():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}}},51252:(t,e,n)=>{n.r(e),n.d(e,{Adder:()=>_.ph,Delaunay:()=>Ri.A,FormatSpecifier:()=>ka.S,InternMap:()=>w.B,InternSet:()=>w.v,Node:()=>Ss.bP,Path:()=>ri.wA,Voronoi:()=>zi.A,ZoomTransform:()=>pd,active:()=>hr,arc:()=>Dl.A,area:()=>Cl.A,areaRadial:()=>ql,ascending:()=>i.A,autoType:()=>so,axisBottom:()=>Vt,axisLeft:()=>$t,axisRight:()=>Yt,axisTop:()=>Gt,bin:()=>H,bisect:()=>r.Ay,bisectCenter:()=>r.WD,bisectLeft:()=>r.ah,bisectRight:()=>r.Jj,bisector:()=>o.A,blob:()=>Jo,blur:()=>a,blur2:()=>s,blurImage:()=>c,brush:()=>qr,brushSelection:()=>Ir,brushX:()=>jr,brushY:()=>Ur,buffer:()=>Ko,chord:()=>Kr,chordDirected:()=>ei,chordTranspose:()=>ti,cluster:()=>Ms.A,color:()=>Pn.Ay,contourDensity:()=>Bi,contours:()=>Fi,count:()=>h,create:()=>xl,creator:()=>Xe,cross:()=>v,csv:()=>ia,csvFormat:()=>$i,csvFormatBody:()=>Xi,csvFormatRow:()=>Ji,csvFormatRows:()=>Zi,csvFormatValue:()=>Qi,csvParse:()=>Yi,csvParseRows:()=>Vi,cubehelix:()=>vi.A,cumsum:()=>y,curveBasis:()=>Af.Ay,curveBasisClosed:()=>yf.A,curveBasisOpen:()=>bf.A,curveBumpX:()=>Yl,curveBumpY:()=>Vl,curveBundle:()=>xf.A,curveCardinal:()=>kf.Ay,curveCardinalClosed:()=>_f.A,curveCardinalOpen:()=>wf.A,curveCatmullRom:()=>Df.A,curveCatmullRomClosed:()=>Ef.A,curveCatmullRomOpen:()=>Ff.A,curveLinear:()=>zl.A,curveLinearClosed:()=>Cf.A,curveMonotoneX:()=>Mf.G,curveMonotoneY:()=>Mf.N,curveNatural:()=>Sf.A,curveStep:()=>Tf.Ay,curveStepAfter:()=>Tf.Ps,curveStepBefore:()=>Tf.Ko,descending:()=>b.A,deviation:()=>A.A,difference:()=>Ft,disjoint:()=>Dt,dispatch:()=>Xt.A,drag:()=>Wi,dragDisable:()=>mn,dragEnable:()=>gn,dsv:()=>ra,dsvFormat:()=>Hi.A,easeBack:()=>Go,easeBackIn:()=>Wo,easeBackInOut:()=>Go,easeBackOut:()=>Ho,easeBounce:()=>jo,easeBounceIn:()=>Io,easeBounceInOut:()=>Uo,easeBounceOut:()=>jo,easeCircle:()=>Co,easeCircleIn:()=>Fo,easeCircleInOut:()=>Co,easeCircleOut:()=>Do,easeCubic:()=>ur,easeCubicIn:()=>sr,easeCubicInOut:()=>ur,easeCubicOut:()=>cr,easeElastic:()=>$o,easeElasticIn:()=>Vo,easeElasticInOut:()=>Xo,easeElasticOut:()=>$o,easeExp:()=>Eo,easeExpIn:()=>wo,easeExpInOut:()=>Eo,easeExpOut:()=>ko,easeLinear:()=>uo,easePoly:()=>go,easePolyIn:()=>po,easePolyInOut:()=>go,easePolyOut:()=>mo,easeQuad:()=>ho,easeQuadIn:()=>lo,easeQuadInOut:()=>ho,easeQuadOut:()=>fo,easeSin:()=>xo,easeSinIn:()=>bo,easeSinInOut:()=>xo,easeSinOut:()=>Ao,every:()=>At,extent:()=>x,fcumsum:()=>_.Nn,filter:()=>_t,flatGroup:()=>C,flatRollup:()=>M,forceCenter:()=>ha.A,forceCollide:()=>pa.A,forceLink:()=>ma.A,forceManyBody:()=>ga.A,forceRadial:()=>ya,forceSimulation:()=>ba.A,forceX:()=>Aa.A,forceY:()=>xa.A,format:()=>_a.GP,formatDefaultLocale:()=>_a.Ay,formatLocale:()=>wa.A,formatPrefix:()=>_a.s,formatSpecifier:()=>ka.A,fsum:()=>_.KS,geoAlbers:()=>ls.A,geoAlbersUsa:()=>fs.A,geoArea:()=>Ca.Ay,geoAzimuthalEqualArea:()=>ds.A,geoAzimuthalEqualAreaRaw:()=>ds.n,geoAzimuthalEquidistant:()=>hs.A,geoAzimuthalEquidistantRaw:()=>hs.j,geoBounds:()=>Ma.A,geoCentroid:()=>Sa.A,geoCircle:()=>Ta.A,geoClipAntimeridian:()=>Na.A,geoClipCircle:()=>Oa.A,geoClipExtent:()=>Ra,geoClipRectangle:()=>Ba.A,geoConicConformal:()=>ps.A,geoConicConformalRaw:()=>ps.C,geoConicEqualArea:()=>ms.A,geoConicEqualAreaRaw:()=>ms.y,geoConicEquidistant:()=>gs.A,geoConicEquidistantRaw:()=>gs.G,geoContains:()=>as,geoDistance:()=>Ja,geoEqualEarth:()=>vs.A,geoEqualEarthRaw:()=>vs.f,geoEquirectangular:()=>ys.A,geoEquirectangularRaw:()=>ys.f,geoGnomonic:()=>bs.A,geoGnomonicRaw:()=>bs.T,geoGraticule:()=>ss.A,geoGraticule10:()=>ss.q,geoIdentity:()=>As.A,geoInterpolate:()=>cs,geoLength:()=>$a,geoMercator:()=>_s.Ay,geoMercatorRaw:()=>_s.Gx,geoNaturalEarth1:()=>ws.A,geoNaturalEarth1Raw:()=>ws.P,geoOrthographic:()=>ks.A,geoOrthographicRaw:()=>ks.x,geoPath:()=>us.A,geoProjection:()=>xs.A,geoProjectionMutator:()=>xs.U,geoRotation:()=>Ds.A,geoStereographic:()=>Es.A,geoStereographicRaw:()=>Es.F,geoStream:()=>Wa.A,geoTransform:()=>Cs.A,geoTransverseMercator:()=>Fs.A,geoTransverseMercatorRaw:()=>Fs.b,gray:()=>gi.wm,greatest:()=>lt.A,greatestIndex:()=>ft,group:()=>E,groupSort:()=>P,groups:()=>F,hcl:()=>gi.aq,hierarchy:()=>Ss.Ay,histogram:()=>H,hsl:()=>Pn.KI,html:()=>fa,image:()=>aa,index:()=>N,indexes:()=>O,interpolate:()=>Hs.interpolate,interpolateArray:()=>Hs.interpolateArray,interpolateBasis:()=>Hs.interpolateBasis,interpolateBasisClosed:()=>Hs.interpolateBasisClosed,interpolateBlues:()=>Vu,interpolateBrBG:()=>ou,interpolateBuGn:()=>wu,interpolateBuPu:()=>Eu,interpolateCividis:()=>il,interpolateCool:()=>cl,interpolateCubehelix:()=>Hs.interpolateCubehelix,interpolateCubehelixDefault:()=>al,interpolateCubehelixLong:()=>Hs.interpolateCubehelixLong,interpolateDate:()=>Hs.interpolateDate,interpolateDiscrete:()=>Hs.interpolateDiscrete,interpolateGnBu:()=>Du,interpolateGreens:()=>Xu,interpolateGreys:()=>Ju,interpolateHcl:()=>Hs.interpolateHcl,interpolateHclLong:()=>Hs.interpolateHclLong,interpolateHsl:()=>Hs.interpolateHsl,interpolateHslLong:()=>Hs.interpolateHslLong,interpolateHue:()=>Hs.interpolateHue,interpolateInferno:()=>bl,interpolateLab:()=>Hs.interpolateLab,interpolateMagma:()=>yl,interpolateNumber:()=>Hs.interpolateNumber,interpolateNumberArray:()=>Hs.interpolateNumberArray,interpolateObject:()=>Hs.interpolateObject,interpolateOrRd:()=>Mu,interpolateOranges:()=>rl,interpolatePRGn:()=>su,interpolatePiYG:()=>uu,interpolatePlasma:()=>Al,interpolatePuBu:()=>Ou,interpolatePuBuGn:()=>Tu,interpolatePuOr:()=>fu,interpolatePuRd:()=>Ru,interpolatePurples:()=>Ku,interpolateRainbow:()=>ll,interpolateRdBu:()=>hu,interpolateRdGy:()=>mu,interpolateRdPu:()=>Pu,interpolateRdYlBu:()=>vu,interpolateRdYlGn:()=>bu,interpolateReds:()=>el,interpolateRgb:()=>Hs.interpolateRgb,interpolateRgbBasis:()=>Hs.interpolateRgbBasis,interpolateRgbBasisClosed:()=>Hs.interpolateRgbBasisClosed,interpolateRound:()=>Hs.interpolateRound,interpolateSinebow:()=>pl,interpolateSpectral:()=>xu,interpolateString:()=>Hs.interpolateString,interpolateTransformCss:()=>Hs.interpolateTransformCss,interpolateTransformSvg:()=>Hs.interpolateTransformSvg,interpolateTurbo:()=>ml,interpolateViridis:()=>vl,interpolateWarm:()=>sl,interpolateYlGn:()=>Uu,interpolateYlGnBu:()=>Iu,interpolateYlOrBr:()=>Wu,interpolateYlOrRd:()=>Gu,interpolateZoom:()=>Hs.interpolateZoom,interrupt:()=>Nn,intersection:()=>Ct.A,interval:()=>ld.A,isoFormat:()=>sd,isoParse:()=>ud,json:()=>ca,lab:()=>gi.Ay,lch:()=>gi.s1,least:()=>ct,leastIndex:()=>ut,line:()=>Ml.A,lineRadial:()=>Ul,link:()=>Kl,linkHorizontal:()=>tf,linkRadial:()=>nf,linkVertical:()=>ef,local:()=>wl,map:()=>wt,matcher:()=>ee,max:()=>$.A,maxIndex:()=>X.A,mean:()=>Z.A,median:()=>J.A,medianIndex:()=>J.T,merge:()=>Q.A,min:()=>K.A,minIndex:()=>tt.A,mode:()=>et,namespace:()=>ge,namespaces:()=>me,nice:()=>q,now:()=>An.tB,pack:()=>Ts.A,packEnclose:()=>Os.A,packSiblings:()=>Ns.A,pairs:()=>nt,partition:()=>Bs.A,path:()=>ri.Ae,pathRound:()=>ri.uj,permute:()=>it.A,pie:()=>Rl,piecewise:()=>Hs.piecewise,pointRadial:()=>Wl,pointer:()=>bn,pointers:()=>El,polygonArea:()=>Gs,polygonCentroid:()=>Ys,polygonContains:()=>Js,polygonHull:()=>Zs,polygonLength:()=>Qs,precisionFixed:()=>Ea.A,precisionPrefix:()=>Fa.A,precisionRound:()=>Da.A,quadtree:()=>Ks.A,quantile:()=>G.Ay,quantileIndex:()=>G.AX,quantileSorted:()=>G.Z4,quantize:()=>Hs.quantize,quickselect:()=>ot.A,radialArea:()=>ql,radialLine:()=>Ul,randomBates:()=>ac,randomBernoulli:()=>uc,randomBeta:()=>dc,randomBinomial:()=>hc,randomCauchy:()=>mc,randomExponential:()=>sc,randomGamma:()=>fc,randomGeometric:()=>lc,randomInt:()=>nc,randomIrwinHall:()=>oc,randomLcg:()=>xc,randomLogNormal:()=>ic,randomLogistic:()=>gc,randomNormal:()=>rc,randomPareto:()=>cc,randomPoisson:()=>vc,randomUniform:()=>ec,randomWeibull:()=>pc,range:()=>at.A,rank:()=>st,reduce:()=>kt,reverse:()=>Et,rgb:()=>Pn.Qh,ribbon:()=>pi,ribbonArrow:()=>mi,rollup:()=>S,rollups:()=>T,scaleBand:()=>kc,scaleDiverging:()=>Wc.Ay,scaleDivergingLog:()=>Wc.Ee,scaleDivergingPow:()=>Wc.Iu,scaleDivergingSqrt:()=>Wc.QO,scaleDivergingSymlog:()=>Wc.fy,scaleIdentity:()=>Dc.A,scaleImplicit:()=>wc.h,scaleLinear:()=>Cc.A,scaleLog:()=>Mc.A,scaleOrdinal:()=>wc.A,scalePoint:()=>Fc,scalePow:()=>Tc.Ay,scaleQuantile:()=>zc.A,scaleQuantize:()=>Pc.A,scaleRadial:()=>Rc,scaleSequential:()=>Uc.Ay,scaleSequentialLog:()=>Uc.a6,scaleSequentialPow:()=>Uc.iG,scaleSequentialQuantile:()=>qc,scaleSequentialSqrt:()=>Uc.ao,scaleSequentialSymlog:()=>Uc.bZ,scaleSqrt:()=>Tc.RZ,scaleSymlog:()=>Sc.A,scaleThreshold:()=>Lc.A,scaleTime:()=>Ic.A,scaleUtc:()=>jc.A,scan:()=>dt,schemeAccent:()=>Yc.A,schemeBlues:()=>Yu,schemeBrBG:()=>iu,schemeBuGn:()=>_u,schemeBuPu:()=>ku,schemeCategory10:()=>Gc.A,schemeDark2:()=>Vc.A,schemeGnBu:()=>Fu,schemeGreens:()=>$u,schemeGreys:()=>Zu,schemeObservable10:()=>$c.A,schemeOrRd:()=>Cu,schemeOranges:()=>nl,schemePRGn:()=>au,schemePaired:()=>Xc.A,schemePastel1:()=>Zc.A,schemePastel2:()=>Jc.A,schemePiYG:()=>cu,schemePuBu:()=>Nu,schemePuBuGn:()=>Su,schemePuOr:()=>lu,schemePuRd:()=>Bu,schemePurples:()=>Qu,schemeRdBu:()=>du,schemeRdGy:()=>pu,schemeRdPu:()=>zu,schemeRdYlBu:()=>gu,schemeRdYlGn:()=>yu,schemeReds:()=>tl,schemeSet1:()=>Qc.A,schemeSet2:()=>Kc.A,schemeSet3:()=>tu.A,schemeSpectral:()=>Au,schemeTableau10:()=>nu,schemeYlGn:()=>ju,schemeYlGnBu:()=>Lu,schemeYlOrBr:()=>qu,schemeYlOrRd:()=>Hu,select:()=>ln,selectAll:()=>Fl,selection:()=>un,selector:()=>Jt,selectorAll:()=>te,shuffle:()=>ht,shuffler:()=>pt,some:()=>xt,sort:()=>z.Ay,stack:()=>zf,stackOffsetDiverging:()=>Lf,stackOffsetExpand:()=>Pf,stackOffsetNone:()=>Nf,stackOffsetSilhouette:()=>If,stackOffsetWiggle:()=>jf,stackOrderAppearance:()=>Uf,stackOrderAscending:()=>Wf,stackOrderDescending:()=>Gf,stackOrderInsideOut:()=>Yf,stackOrderNone:()=>Of,stackOrderReverse:()=>Vf,stratify:()=>Rs.A,style:()=>De,subset:()=>Tt,sum:()=>mt.A,superset:()=>Mt,svg:()=>da,symbol:()=>rf.Ay,symbolAsterisk:()=>of.A,symbolCircle:()=>af.A,symbolCross:()=>sf.A,symbolDiamond:()=>cf.A,symbolDiamond2:()=>uf.A,symbolPlus:()=>lf.A,symbolSquare:()=>ff.A,symbolSquare2:()=>df.A,symbolStar:()=>hf.A,symbolTimes:()=>vf.A,symbolTriangle:()=>pf.A,symbolTriangle2:()=>mf.A,symbolWye:()=>gf.A,symbolX:()=>vf.A,symbols:()=>rf.Lk,symbolsFill:()=>rf.Lk,symbolsStroke:()=>rf.AM,text:()=>ea,thresholdFreedmanDiaconis:()=>Y,thresholdScott:()=>V,thresholdSturges:()=>W,tickFormat:()=>Hc.A,tickIncrement:()=>U.lq,tickStep:()=>U.sG,ticks:()=>U.Ay,timeDay:()=>Kf.UA,timeDays:()=>Kf.NT,timeFormat:()=>id.DC,timeFormatDefaultLocale:()=>id.Ay,timeFormatLocale:()=>od.A,timeFriday:()=>td.TU,timeFridays:()=>td.SQ,timeHour:()=>Qf.Ag,timeHours:()=>Qf.L6,timeInterval:()=>$f.f,timeMillisecond:()=>Xf.y,timeMilliseconds:()=>Xf.R,timeMinute:()=>Jf.wX,timeMinutes:()=>Jf.rn,timeMonday:()=>td.AB,timeMondays:()=>td.h8,timeMonth:()=>ed.Ui,timeMonths:()=>ed.Bz,timeParse:()=>id.T6,timeSaturday:()=>td.rG,timeSaturdays:()=>td._M,timeSecond:()=>Zf.R,timeSeconds:()=>Zf.Y,timeSunday:()=>td.YP,timeSundays:()=>td.vD,timeThursday:()=>td.Mo,timeThursdays:()=>td.HU,timeTickInterval:()=>rd.yE,timeTicks:()=>rd.Cf,timeTuesday:()=>td.PG,timeTuesdays:()=>td.OK,timeWednesday:()=>td.Gu,timeWednesdays:()=>td.Dr,timeWeek:()=>td.YP,timeWeeks:()=>td.vD,timeYear:()=>nd.he,timeYears:()=>nd.Yo,timeout:()=>xn,timer:()=>An.O1,timerFlush:()=>An.O2,transition:()=>ir,transpose:()=>gt,tree:()=>zs.A,treemap:()=>Ps.A,treemapBinary:()=>Ls.A,treemapDice:()=>Is.A,treemapResquarify:()=>Ws.A,treemapSlice:()=>js.A,treemapSliceDice:()=>Us.A,treemapSquarify:()=>qs.Ay,tsv:()=>oa,tsvFormat:()=>no,tsvFormatBody:()=>ro,tsvFormatRow:()=>oo,tsvFormatRows:()=>io,tsvFormatValue:()=>ao,tsvParse:()=>to,tsvParseRows:()=>eo,union:()=>Nt.A,unixDay:()=>Kf.TW,unixDays:()=>Kf.yE,utcDay:()=>Kf.dA,utcDays:()=>Kf.ou,utcFormat:()=>id.aL,utcFriday:()=>td.a1,utcFridays:()=>td.Zn,utcHour:()=>Qf.pz,utcHours:()=>Qf.iA,utcMillisecond:()=>Xf.y,utcMilliseconds:()=>Xf.R,utcMinute:()=>Jf.vD,utcMinutes:()=>Jf.Y4,utcMonday:()=>td.rt,utcMondays:()=>td.ON,utcMonth:()=>ed.R6,utcMonths:()=>ed.oi,utcParse:()=>id.GY,utcSaturday:()=>td.c8,utcSaturdays:()=>td.Xo,utcSecond:()=>Zf.R,utcSeconds:()=>Zf.Y,utcSunday:()=>td.Hl,utcSundays:()=>td.aZ,utcThursday:()=>td.pT,utcThursdays:()=>td.wr,utcTickInterval:()=>rd.lk,utcTicks:()=>rd.$Z,utcTuesday:()=>td.sr,utcTuesdays:()=>td.jN,utcWednesday:()=>td.z2,utcWednesdays:()=>td.G6,utcWeek:()=>td.Hl,utcWeeks:()=>td.aZ,utcYear:()=>nd.Mb,utcYears:()=>nd.jH,variance:()=>yt.A,window:()=>we,xml:()=>la,zip:()=>bt,zoom:()=>Ed,zoomIdentity:()=>md,zoomTransform:()=>gd});var r=n(89511),i=n(84283),o=n(88910);function a(t,e){if(!((e=+e)>=0))throw new RangeError("invalid r");let n=t.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!e)return t;const r=d(e),i=t.slice();return r(t,i,0,n,1),r(i,t,0,n,1),r(t,i,0,n,1),t}const s=u(d),c=u((function(t){const e=d(t);return(t,n,r,i,o)=>{e(t,n,(r<<=2)+0,(i<<=2)+0,o<<=2),e(t,n,r+1,i+1,o),e(t,n,r+2,i+2,o),e(t,n,r+3,i+3,o)}}));function u(t){return function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:a}=e;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!n&&!r)return e;const s=n&&t(n),c=r&&t(r),u=i.slice();return s&&c?(l(s,u,i,o,a),l(s,i,u,o,a),l(s,u,i,o,a),f(c,i,u,o,a),f(c,u,i,o,a),f(c,i,u,o,a)):s?(l(s,i,u,o,a),l(s,u,i,o,a),l(s,i,u,o,a)):c&&(f(c,i,u,o,a),f(c,u,i,o,a),f(c,i,u,o,a)),e}}function l(t,e,n,r,i){for(let o=0,a=r*i;o<a;)t(e,n,o,o+=r,1)}function f(t,e,n,r,i){for(let o=0,a=r*i;o<r;++o)t(e,n,o,o+a,r)}function d(t){const e=Math.floor(t);if(e===t)return function(t){const e=2*t+1;return(n,r,i,o,a)=>{if(!((o-=a)>=i))return;let s=t*r[i];const c=a*t;for(let t=i,e=i+c;t<e;t+=a)s+=r[Math.min(o,t)];for(let t=i,u=o;t<=u;t+=a)s+=r[Math.min(o,t+c)],n[t]=s/e,s-=r[Math.max(i,t-c)]}}(t);const n=t-e,r=2*t+1;return(t,i,o,a,s)=>{if(!((a-=s)>=o))return;let c=e*i[o];const u=s*e,l=u+s;for(let e=o,n=o+u;e<n;e+=s)c+=i[Math.min(a,e)];for(let e=o,f=a;e<=f;e+=s)c+=i[Math.min(a,e+u)],t[e]=(c+n*(i[Math.max(o,e-l)]+i[Math.min(a,e+l)]))/r,c-=i[Math.max(o,e-u)]}}function h(t,e){let n=0;if(void 0===e)for(let r of t)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}function p(t){return 0|t.length}function m(t){return!(t>0)}function g(t){return"object"!==typeof t||"length"in t?t:Array.from(t)}function v(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const r="function"===typeof e[e.length-1]&&function(t){return e=>t(...e)}(e.pop()),i=(e=e.map(g)).map(p),o=e.length-1,a=new Array(o+1).fill(0),s=[];if(o<0||i.some(m))return s;for(;;){s.push(a.map(((t,n)=>e[n][t])));let t=o;for(;++a[t]===i[t];){if(0===t)return r?s.map(r):s;a[t--]=0}}}function y(t,e){var n=0,r=0;return Float64Array.from(t,void 0===e?t=>n+=+t||0:i=>n+=+e(i,r++,t)||0)}var b=n(60799),A=n(90774);function x(t,e){let n,r;if(void 0===e)for(const i of t)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}var _=n(79876),w=n(5252);function k(t){return t}function E(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return R(t,k,k,n)}function F(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return R(t,Array.from,k,n)}function D(t,e){for(let n=1,r=e.length;n<r;++n)t=t.flatMap((t=>t.pop().map((e=>{let[n,r]=e;return[...t,n,r]}))));return t}function C(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return D(F(t,...n),n)}function M(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return D(T(t,e,...r),r)}function S(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return R(t,k,e,r)}function T(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return R(t,Array.from,e,r)}function N(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return R(t,k,B,n)}function O(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return R(t,Array.from,B,n)}function B(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function R(t,e,n,r){return function t(i,o){if(o>=r.length)return n(i);const a=new w.B,s=r[o++];let c=-1;for(const e of i){const t=s(e,++c,i),n=a.get(t);n?n.push(e):a.set(t,[e])}for(const[e,n]of a)a.set(e,t(n,o));return e(a)}(t,0)}var z=n(4709);function P(t,e,n){return(2!==e.length?(0,z.Ay)(S(t,e,n),((t,e)=>{let[n,r]=t,[o,a]=e;return(0,i.A)(r,a)||(0,i.A)(n,o)})):(0,z.Ay)(E(t,n),((t,n)=>{let[r,o]=t,[a,s]=n;return e(o,s)||(0,i.A)(r,a)}))).map((t=>{let[e]=t;return e}))}var L=Array.prototype,I=L.slice;L.map;function j(t){return()=>t}var U=n(90787);function q(t,e,n){let r;for(;;){const i=(0,U.lq)(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function W(t){return Math.max(1,Math.ceil(Math.log(h(t))/Math.LN2)+1)}function H(){var t=k,e=x,n=W;function i(i){Array.isArray(i)||(i=Array.from(i));var o,a,s,c=i.length,u=new Array(c);for(o=0;o<c;++o)u[o]=t(i[o],o,i);var l=e(u),f=l[0],d=l[1],h=n(u,f,d);if(!Array.isArray(h)){const t=d,n=+h;if(e===x&&([f,d]=q(f,d,n)),(h=(0,U.Ay)(f,d,n))[0]<=f&&(s=(0,U.lq)(f,d,n)),h[h.length-1]>=d)if(t>=d&&e===x){const t=(0,U.lq)(f,d,n);isFinite(t)&&(t>0?d=(Math.floor(d/t)+1)*t:t<0&&(d=(Math.ceil(d*-t)+1)/-t))}else h.pop()}for(var p=h.length,m=0,g=p;h[m]<=f;)++m;for(;h[g-1]>d;)--g;(m||g<p)&&(h=h.slice(m,g),p=g-m);var v,y=new Array(p+1);for(o=0;o<=p;++o)(v=y[o]=[]).x0=o>0?h[o-1]:f,v.x1=o<p?h[o]:d;if(isFinite(s)){if(s>0)for(o=0;o<c;++o)null!=(a=u[o])&&f<=a&&a<=d&&y[Math.min(p,Math.floor((a-f)/s))].push(i[o]);else if(s<0)for(o=0;o<c;++o)if(null!=(a=u[o])&&f<=a&&a<=d){const t=Math.floor((f-a)*s);y[Math.min(p,t+(h[t]<=a))].push(i[o])}}else for(o=0;o<c;++o)null!=(a=u[o])&&f<=a&&a<=d&&y[(0,r.Ay)(h,a,0,p)].push(i[o]);return y}return i.value=function(e){return arguments.length?(t="function"===typeof e?e:j(e),i):t},i.domain=function(t){return arguments.length?(e="function"===typeof t?t:j([t[0],t[1]]),i):e},i.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:j(Array.isArray(t)?I.call(t):t),i):n},i}var G=n(49020);function Y(t,e,n){const r=h(t),i=(0,G.Ay)(t,.75)-(0,G.Ay)(t,.25);return r&&i?Math.ceil((n-e)/(2*i*Math.pow(r,-1/3))):1}function V(t,e,n){const r=h(t),i=(0,A.A)(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}var $=n(11963),X=n(24591),Z=n(91236),J=n(73675),Q=n(58533),K=n(53305),tt=n(75349);function et(t,e){const n=new w.B;if(void 0===e)for(let o of t)null!=o&&o>=o&&n.set(o,(n.get(o)||0)+1);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&i>=i&&n.set(i,(n.get(i)||0)+1)}let r,i=0;for(const[o,a]of n)a>i&&(i=a,r=o);return r}function nt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt;const n=[];let r,i=!1;for(const o of t)i&&n.push(e(r,o)),r=o,i=!0;return n}function rt(t,e){return[t,e]}var it=n(21199),ot=n(44302),at=n(36172);function st(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.A;if("function"!==typeof t[Symbol.iterator])throw new TypeError("values is not iterable");let n=Array.from(t);const r=new Float64Array(n.length);2!==e.length&&(n=n.map(e),e=i.A);const o=(t,r)=>e(n[t],n[r]);let a,s;return(t=Uint32Array.from(n,((t,e)=>e))).sort(e===i.A?(t,e)=>(0,z.o2)(n[t],n[e]):(0,z.JC)(o)),t.forEach(((t,e)=>{const n=o(t,void 0===a?t:a);n>=0?((void 0===a||n>0)&&(a=t,s=e),r[t]=s):r[t]=NaN})),r}function ct(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.A,r=!1;if(1===n.length){let o;for(const a of t){const t=n(a);(r?(0,i.A)(t,o)<0:0===(0,i.A)(t,t))&&(e=a,o=t,r=!0)}}else for(const i of t)(r?n(i,e)<0:0===n(i,i))&&(e=i,r=!0);return e}function ut(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.A;if(1===n.length)return(0,tt.A)(t,n);let r=-1,o=-1;for(const i of t)++o,(r<0?0===n(i,i):n(i,e)<0)&&(e=i,r=o);return r}var lt=n(32494);function ft(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.A;if(1===n.length)return(0,X.A)(t,n);let r=-1,o=-1;for(const i of t)++o,(r<0?0===n(i,i):n(i,e)>0)&&(e=i,r=o);return r}function dt(t,e){const n=ut(t,e);return n<0?void 0:n}const ht=pt(Math.random);function pt(t){return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length)-(n=+n);for(;r;){const i=t()*r--|0,o=e[r+n];e[r+n]=e[i+n],e[i+n]=o}return e}}var mt=n(5398);function gt(t){if(!(i=t.length))return[];for(var e=-1,n=(0,K.A)(t,vt),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r}function vt(t){return t.length}var yt=n(10094);function bt(){return gt(arguments)}function At(t,e){if("function"!==typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(!e(r,++n,t))return!1;return!0}function xt(t,e){if("function"!==typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(e(r,++n,t))return!0;return!1}function _t(t,e){if("function"!==typeof e)throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of t)e(i,++r,t)&&n.push(i);return n}function wt(t,e){if("function"!==typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!==typeof e)throw new TypeError("mapper is not a function");return Array.from(t,((n,r)=>e(n,r,t)))}function kt(t,e,n){if("function"!==typeof e)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)n=e(n,o,++a,t);return n}function Et(t){if("function"!==typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Ft(t){t=new w.v(t);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(const i of n)for(const e of i)t.delete(e);return t}function Dt(t,e){const n=e[Symbol.iterator](),r=new w.v;for(const i of t){if(r.has(i))return!1;let t,e;for(;({value:t,done:e}=n.next())&&!e;){if(Object.is(i,t))return!1;r.add(t)}}return!0}var Ct=n(20676);function Mt(t,e){const n=t[Symbol.iterator](),r=new Set;for(const i of e){const t=St(i);if(r.has(t))continue;let e,o;for(;({value:e,done:o}=n.next());){if(o)return!1;const n=St(e);if(r.add(n),Object.is(t,n))break}}return!0}function St(t){return null!==t&&"object"===typeof t?t.valueOf():t}function Tt(t,e){return Mt(e,t)}var Nt=n(85698);function Ot(t){return t}var Bt=1,Rt=2,zt=3,Pt=4,Lt=1e-6;function It(t){return"translate("+t+",0)"}function jt(t){return"translate(0,"+t+")"}function Ut(t){return e=>+t(e)}function qt(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Wt(){return!this.__axis}function Ht(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,c="undefined"!==typeof window&&window.devicePixelRatio>1?0:.5,u=t===Bt||t===Pt?-1:1,l=t===Pt||t===Rt?"x":"y",f=t===Bt||t===zt?It:jt;function d(d){var h=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):Ot:i,m=Math.max(o,0)+s,g=e.range(),v=+g[0]+c,y=+g[g.length-1]+c,b=(e.bandwidth?qt:Ut)(e.copy(),c),A=d.selection?d.selection():d,x=A.selectAll(".domain").data([null]),_=A.selectAll(".tick").data(h,e).order(),w=_.exit(),k=_.enter().append("g").attr("class","tick"),E=_.select("line"),F=_.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(k),E=E.merge(k.append("line").attr("stroke","currentColor").attr(l+"2",u*o)),F=F.merge(k.append("text").attr("fill","currentColor").attr(l,u*m).attr("dy",t===Bt?"0em":t===zt?"0.71em":"0.32em")),d!==A&&(x=x.transition(d),_=_.transition(d),E=E.transition(d),F=F.transition(d),w=w.transition(d).attr("opacity",Lt).attr("transform",(function(t){return isFinite(t=b(t))?f(t+c):this.getAttribute("transform")})),k.attr("opacity",Lt).attr("transform",(function(t){var e=this.parentNode.__axis;return f((e&&isFinite(e=e(t))?e:b(t))+c)}))),w.remove(),x.attr("d",t===Pt||t===Rt?a?"M"+u*a+","+v+"H"+c+"V"+y+"H"+u*a:"M"+c+","+v+"V"+y:a?"M"+v+","+u*a+"V"+c+"H"+y+"V"+u*a:"M"+v+","+c+"H"+y),_.attr("opacity",1).attr("transform",(function(t){return f(b(t)+c)})),E.attr(l+"2",u*o),F.attr(l,u*m).text(p),A.filter(Wt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Rt?"start":t===Pt?"end":"middle"),A.each((function(){this.__axis=b}))}return d.scale=function(t){return arguments.length?(e=t,d):e},d.ticks=function(){return n=Array.from(arguments),d},d.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),d):n.slice()},d.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),d):r&&r.slice()},d.tickFormat=function(t){return arguments.length?(i=t,d):i},d.tickSize=function(t){return arguments.length?(o=a=+t,d):o},d.tickSizeInner=function(t){return arguments.length?(o=+t,d):o},d.tickSizeOuter=function(t){return arguments.length?(a=+t,d):a},d.tickPadding=function(t){return arguments.length?(s=+t,d):s},d.offset=function(t){return arguments.length?(c=+t,d):c},d}function Gt(t){return Ht(Bt,t)}function Yt(t){return Ht(Rt,t)}function Vt(t){return Ht(zt,t)}function $t(t){return Ht(Pt,t)}var Xt=n(1280);function Zt(){}function Jt(t){return null==t?Zt:function(){return this.querySelector(t)}}function Qt(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Kt(){return[]}function te(t){return null==t?Kt:function(){return this.querySelectorAll(t)}}function ee(t){return function(){return this.matches(t)}}function ne(t){return function(e){return e.matches(t)}}var re=Array.prototype.find;function ie(){return this.firstElementChild}var oe=Array.prototype.filter;function ae(){return Array.from(this.children)}function se(t){return new Array(t.length)}function ce(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ue(t,e,n,r,i,o){for(var a,s=0,c=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new ce(t,o[s]);for(;s<c;++s)(a=e[s])&&(i[s]=a)}function le(t,e,n,r,i,o,a){var s,c,u,l=new Map,f=e.length,d=o.length,h=new Array(f);for(s=0;s<f;++s)(c=e[s])&&(h[s]=u=a.call(c,c.__data__,s,e)+"",l.has(u)?i[s]=c:l.set(u,c));for(s=0;s<d;++s)u=a.call(t,o[s],s,o)+"",(c=l.get(u))?(r[s]=c,c.__data__=o[s],l.delete(u)):n[s]=new ce(t,o[s]);for(s=0;s<f;++s)(c=e[s])&&l.get(h[s])===c&&(i[s]=c)}function fe(t){return t.__data__}function de(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}function he(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}ce.prototype={constructor:ce,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var pe="http://www.w3.org/1999/xhtml";const me={svg:"http://www.w3.org/2000/svg",xhtml:pe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ge(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),me.hasOwnProperty(e)?{space:me[e],local:t}:t}function ve(t){return function(){this.removeAttribute(t)}}function ye(t){return function(){this.removeAttributeNS(t.space,t.local)}}function be(t,e){return function(){this.setAttribute(t,e)}}function Ae(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function xe(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function _e(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function we(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ke(t){return function(){this.style.removeProperty(t)}}function Ee(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Fe(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function De(t,e){return t.style.getPropertyValue(e)||we(t).getComputedStyle(t,null).getPropertyValue(e)}function Ce(t){return function(){delete this[t]}}function Me(t,e){return function(){this[t]=e}}function Se(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Te(t){return t.trim().split(/^|\s+/)}function Ne(t){return t.classList||new Oe(t)}function Oe(t){this._node=t,this._names=Te(t.getAttribute("class")||"")}function Be(t,e){for(var n=Ne(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Re(t,e){for(var n=Ne(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ze(t){return function(){Be(this,t)}}function Pe(t){return function(){Re(this,t)}}function Le(t,e){return function(){(e.apply(this,arguments)?Be:Re)(this,t)}}function Ie(){this.textContent=""}function je(t){return function(){this.textContent=t}}function Ue(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function qe(){this.innerHTML=""}function We(t){return function(){this.innerHTML=t}}function He(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Ge(){this.nextSibling&&this.parentNode.appendChild(this)}function Ye(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ve(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===pe&&e.documentElement.namespaceURI===pe?e.createElement(t):e.createElementNS(n,t)}}function $e(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Xe(t){var e=ge(t);return(e.local?$e:Ve)(e)}function Ze(){return null}function Je(){var t=this.parentNode;t&&t.removeChild(this)}function Qe(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ke(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tn(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function en(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function nn(t,e,n){var r=we(t),i=r.CustomEvent;"function"===typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function rn(t,e){return function(){return nn(this,t,e)}}function on(t,e){return function(){return nn(this,t,e.apply(this,arguments))}}Oe.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var an=[null];function sn(t,e){this._groups=t,this._parents=e}function cn(){return new sn([[document.documentElement]],an)}sn.prototype=cn.prototype={constructor:sn,select:function(t){"function"!==typeof t&&(t=Jt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],c=s.length,u=r[i]=new Array(c),l=0;l<c;++l)(o=s[l])&&(a=t.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),u[l]=a);return new sn(r,this._parents)},selectAll:function(t){t="function"===typeof t?function(t){return function(){return Qt(t.apply(this,arguments))}}(t):te(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],c=s.length,u=0;u<c;++u)(a=s[u])&&(r.push(t.call(a,a.__data__,u,s)),i.push(a));return new sn(r,i)},selectChild:function(t){return this.select(null==t?ie:function(t){return function(){return re.call(this.children,t)}}("function"===typeof t?t:ne(t)))},selectChildren:function(t){return this.selectAll(null==t?ae:function(t){return function(){return oe.call(this.children,t)}}("function"===typeof t?t:ne(t)))},filter:function(t){"function"!==typeof t&&(t=ee(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,c=r[i]=[],u=0;u<s;++u)(o=a[u])&&t.call(o,o.__data__,u,a)&&c.push(o);return new sn(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,fe);var n=e?le:ue,r=this._parents,i=this._groups;"function"!==typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,a=new Array(o),s=new Array(o),c=new Array(o),u=0;u<o;++u){var l=r[u],f=i[u],d=f.length,h=de(t.call(l,l&&l.__data__,u,r)),p=h.length,m=s[u]=new Array(p),g=a[u]=new Array(p);n(l,f,m,g,c[u]=new Array(d),h,e);for(var v,y,b=0,A=0;b<p;++b)if(v=m[b]){for(b>=A&&(A=b+1);!(y=g[A])&&++A<p;);v._next=y||null}}return(a=new sn(a,r))._enter=s,a._exit=c,a},enter:function(){return new sn(this._enter||this._groups.map(se),this._parents)},exit:function(){return new sn(this._exit||this._groups.map(se),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),c=0;c<a;++c)for(var u,l=n[c],f=r[c],d=l.length,h=s[c]=new Array(d),p=0;p<d;++p)(u=l[p]||f[p])&&(h[p]=u);for(;c<i;++c)s[c]=n[c];return new sn(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=he);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],c=s.length,u=i[o]=new Array(c),l=0;l<c;++l)(a=s[l])&&(u[l]=a);u.sort(e)}return new sn(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=ge(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?ye:ve:"function"===typeof e?n.local?_e:xe:n.local?Ae:be)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?ke:"function"===typeof e?Fe:Ee)(t,e,null==n?"":n)):De(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ce:"function"===typeof e?Se:Me)(t,e)):this.node()[t]},classed:function(t,e){var n=Te(t+"");if(arguments.length<2){for(var r=Ne(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?Le:e?ze:Pe)(n,e))},text:function(t){return arguments.length?this.each(null==t?Ie:("function"===typeof t?Ue:je)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?qe:("function"===typeof t?He:We)(t)):this.node().innerHTML},raise:function(){return this.each(Ge)},lower:function(){return this.each(Ye)},append:function(t){var e="function"===typeof t?t:Xe(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"===typeof t?t:Xe(t),r=null==e?Ze:"function"===typeof e?e:Jt(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Je)},clone:function(t){return this.select(t?Ke:Qe)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?en:tn,r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var c,u=0,l=s.length;u<l;++u)for(r=0,c=s[u];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"===typeof e?on:rn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const un=cn;function ln(t){return"string"===typeof t?new sn([[document.querySelector(t)]],[document.documentElement]):new sn([[t]],an)}const fn={passive:!1},dn={capture:!0,passive:!1};function hn(t){t.stopImmediatePropagation()}function pn(t){t.preventDefault(),t.stopImmediatePropagation()}function mn(t){var e=t.document.documentElement,n=ln(t).on("dragstart.drag",pn,dn);"onselectstart"in e?n.on("selectstart.drag",pn,dn):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function gn(t,e){var n=t.document.documentElement,r=ln(t).on("dragstart.drag",null);e&&(r.on("click.drag",pn,dn),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var vn=n(20226);function yn(t){let e;for(;e=t.sourceEvent;)t=e;return t}function bn(t,e){if(t=yn(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var An=n(79488);function xn(t,e,n){var r=new An.M4;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}var _n=(0,Xt.A)("start","end","cancel","interrupt"),wn=[],kn=1,En=2,Fn=5,Dn=6;function Cn(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=kn,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var u,l,f,d;if(n.state!==kn)return c();for(u in i)if((d=i[u]).name===n.name){if(3===d.state)return xn(a);4===d.state?(d.state=Dn,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[u]):+u<e&&(d.state=Dn,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[u])}if(xn((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=En,n.on.call("start",t,t.__data__,n.index,n.group),n.state===En){for(n.state=3,r=new Array(f=n.tween.length),u=0,l=-1;u<f;++u)(d=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=d);r.length=l+1}}function s(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(c),n.state=Fn,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);n.state===Fn&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){for(var r in n.state=Dn,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=(0,An.O1)(o,0,n.time)}(t,n,{name:e,index:r,group:i,on:_n,tween:wn,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Mn(t,e){var n=Tn(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Sn(t,e){var n=Tn(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Tn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Nn(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>En&&n.state<Fn,n.state=Dn,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var On=n(8225);function Bn(t,e){var n,r;return function(){var i=Sn(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function Rn(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Sn(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=s;break}c===u&&i.push(s)}o.tween=i}}function zn(t,e,n){var r=t._id;return t.each((function(){var t=Sn(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Tn(t,r).value[e]}}var Pn=n(17840),Ln=n(50010),In=n(66968),jn=n(97162);function Un(t,e){var n;return("number"===typeof e?Ln.A:e instanceof Pn.Ay?In.Ay:(n=(0,Pn.Ay)(e))?(e=n,In.Ay):jn.A)(t,e)}function qn(t){return function(){this.removeAttribute(t)}}function Wn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Hn(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function Gn(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function Yn(t,e,n){var r,i,o;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttribute(t))===(s=c+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,c));this.removeAttribute(t)}}function Vn(t,e,n){var r,i,o;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,c));this.removeAttributeNS(t.space,t.local)}}function $n(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Xn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Zn(t,e){return function(){Mn(this,t).delay=+e.apply(this,arguments)}}function Jn(t,e){return e=+e,function(){Mn(this,t).delay=e}}function Qn(t,e){return function(){Sn(this,t).duration=+e.apply(this,arguments)}}function Kn(t,e){return e=+e,function(){Sn(this,t).duration=e}}var tr=un.prototype.constructor;function er(t){return function(){this.style.removeProperty(t)}}var nr=0;function rr(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function ir(t){return un().transition(t)}function or(){return++nr}var ar=un.prototype;function sr(t){return t*t*t}function cr(t){return--t*t*t+1}function ur(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}rr.prototype=ir.prototype={constructor:rr,select:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Jt(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,c,u=r[a],l=u.length,f=o[a]=new Array(l),d=0;d<l;++d)(s=u[d])&&(c=t.call(s,s.__data__,d,u))&&("__data__"in s&&(c.__data__=s.__data__),f[d]=c,Cn(f[d],e,n,d,f,Tn(s,n)));return new rr(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=te(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var c,u=r[s],l=u.length,f=0;f<l;++f)if(c=u[f]){for(var d,h=t.call(c,c.__data__,f,u),p=Tn(c,n),m=0,g=h.length;m<g;++m)(d=h[m])&&Cn(d,e,n,m,h,p);o.push(h),a.push(c)}return new rr(o,a,e,n)},selectChild:ar.selectChild,selectChildren:ar.selectChildren,filter:function(t){"function"!==typeof t&&(t=ee(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,c=r[i]=[],u=0;u<s;++u)(o=a[u])&&t.call(o,o.__data__,u,a)&&c.push(o);return new rr(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var c,u=e[s],l=n[s],f=u.length,d=a[s]=new Array(f),h=0;h<f;++h)(c=u[h]||l[h])&&(d[h]=c);for(;s<r;++s)a[s]=e[s];return new rr(a,this._parents,this._name,this._id)},selection:function(){return new tr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=or(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],c=s.length,u=0;u<c;++u)if(a=s[u]){var l=Tn(a,e);Cn(a,t,n,u,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new rr(r,this._parents,t,n)},call:ar.call,nodes:ar.nodes,node:ar.node,size:ar.size,empty:ar.empty,each:ar.each,on:function(t,e){var n=this._id;return arguments.length<2?Tn(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Mn:Sn;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=ge(t),r="transform"===n?On.I:Un;return this.attrTween(t,"function"===typeof e?(n.local?Vn:Yn)(n,r,zn(this,"attr."+t,e)):null==e?(n.local?Wn:qn)(n):(n.local?Gn:Hn)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var r=ge(t);return this.tween(n,(r.local?$n:Xn)(r,e))},style:function(t,e,n){var r="transform"===(t+="")?On.T:Un;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=De(this,t),a=(this.style.removeProperty(t),De(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,er(t)):"function"===typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=De(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=De(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s))}}(t,r,zn(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var c=Sn(this,t),u=c.on,l=null==c.value[a]?o||(o=er(e)):void 0;u===n&&i===l||(r=(n=u).copy()).on(s,i=l),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=De(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"===typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(zn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Tn(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?Bn:Rn)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Zn:Jn)(e,t)):Tn(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Qn:Kn)(e,t)):Tn(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!==typeof e)throw new Error;return function(){Sn(this,t).ease=e}}(e,t)):Tn(this.node(),e).ease},easeVarying:function(t){if("function"!==typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!==typeof n)throw new Error;Sn(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},c={value:function(){0===--i&&o()}};n.each((function(){var n=Sn(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e})),0===i&&o()}))},[Symbol.iterator]:ar[Symbol.iterator]};var lr={time:null,delay:0,duration:250,ease:ur};function fr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition ".concat(e," not found"));return n}un.prototype.interrupt=function(t){return this.each((function(){Nn(this,t)}))},un.prototype.transition=function(t){var e,n;t instanceof rr?(e=t._id,t=t._name):(e=or(),(n=lr).time=(0,An.tB)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],c=s.length,u=0;u<c;++u)(a=s[u])&&Cn(a,t,e,u,s,n||fr(a,e));return new rr(r,this._parents,t,e)};var dr=[null];function hr(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>kn&&n.name===e)return new rr([[t]],dr,e,+r);return null}const pr=t=>()=>t;function mr(t,e){let{sourceEvent:n,target:r,selection:i,mode:o,dispatch:a}=e;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:i,enumerable:!0,configurable:!0},mode:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function gr(t){t.preventDefault(),t.stopImmediatePropagation()}var vr={name:"drag"},yr={name:"space"},br={name:"handle"},Ar={name:"center"};const{abs:xr,max:_r,min:wr}=Math;function kr(t){return[+t[0],+t[1]]}function Er(t){return[kr(t[0]),kr(t[1])]}var Fr={name:"x",handles:["w","e"].map(Br),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Dr={name:"y",handles:["n","s"].map(Br),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Cr={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Br),input:function(t){return null==t?null:Er(t)},output:function(t){return t}},Mr={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Sr={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Tr={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Nr={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Or={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Br(t){return{type:t}}function Rr(t){return!t.ctrlKey&&!t.button}function zr(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Pr(){return navigator.maxTouchPoints||"ontouchstart"in this}function Lr(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ir(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function jr(){return Wr(Fr)}function Ur(){return Wr(Dr)}function qr(){return Wr(Cr)}function Wr(t){var e,n=zr,r=Rr,i=Pr,o=!0,a=(0,Xt.A)("start","brush","end"),s=6;function c(e){var n=e.property("__brush",m).selectAll(".overlay").data([Br("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Mr.overlay).merge(n).each((function(){var t=Lr(this).extent;ln(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Br("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Mr.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return Mr[t.type]})),e.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",d).filter(i).on("touchstart.brush",d).on("touchmove.brush",h).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function u(){var t=ln(this),e=Lr(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new f(t,e,n):r}function f(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function d(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,s,c,f,d,h,p,m,g,v,y=this,b=n.target.__data__.type,A="selection"===(o&&n.metaKey?b="overlay":b)?vr:o&&n.altKey?Ar:br,x=t===Dr?null:Nr[b],_=t===Fr?null:Or[b],w=Lr(y),k=w.extent,E=w.selection,F=k[0][0],D=k[0][1],C=k[1][0],M=k[1][1],S=0,T=0,N=x&&_&&o&&n.shiftKey,O=Array.from(n.touches||[n],(t=>{const e=t.identifier;return(t=bn(t,y)).point0=t.slice(),t.identifier=e,t}));Nn(y);var B=l(y,arguments,!0).beforestart();if("overlay"===b){E&&(m=!0);const e=[O[0],O[1]||O[0]];w.selection=E=[[i=t===Dr?F:wr(e[0][0],e[1][0]),s=t===Fr?D:wr(e[0][1],e[1][1])],[f=t===Dr?C:_r(e[0][0],e[1][0]),h=t===Fr?M:_r(e[0][1],e[1][1])]],O.length>1&&I(n)}else i=E[0][0],s=E[0][1],f=E[1][0],h=E[1][1];a=i,c=s,d=f,p=h;var R=ln(y).attr("pointer-events","none"),z=R.selectAll(".overlay").attr("cursor",Mr[b]);if(n.touches)B.moved=L,B.ended=j;else{var P=ln(n.view).on("mousemove.brush",L,!0).on("mouseup.brush",j,!0);o&&P.on("keydown.brush",(function(t){switch(t.keyCode){case 16:N=x&&_;break;case 18:A===br&&(x&&(f=d-S*x,i=a+S*x),_&&(h=p-T*_,s=c+T*_),A=Ar,I(t));break;case 32:A!==br&&A!==Ar||(x<0?f=d-S:x>0&&(i=a-S),_<0?h=p-T:_>0&&(s=c-T),A=yr,z.attr("cursor",Mr.selection),I(t));break;default:return}gr(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:N&&(g=v=N=!1,I(t));break;case 18:A===Ar&&(x<0?f=d:x>0&&(i=a),_<0?h=p:_>0&&(s=c),A=br,I(t));break;case 32:A===yr&&(t.altKey?(x&&(f=d-S*x,i=a+S*x),_&&(h=p-T*_,s=c+T*_),A=Ar):(x<0?f=d:x>0&&(i=a),_<0?h=p:_>0&&(s=c),A=br),z.attr("cursor",Mr[b]),I(t));break;default:return}gr(t)}),!0),mn(n.view)}u.call(y),B.start(n,A.name)}function L(t){for(const e of t.changedTouches||[t])for(const t of O)t.identifier===e.identifier&&(t.cur=bn(e,y));if(N&&!g&&!v&&1===O.length){const t=O[0];xr(t.cur[0]-t[0])>xr(t.cur[1]-t[1])?v=!0:g=!0}for(const e of O)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);m=!0,gr(t),I(t)}function I(t){const e=O[0],n=e.point0;var r;switch(S=e[0]-n[0],T=e[1]-n[1],A){case yr:case vr:x&&(S=_r(F-i,wr(C-f,S)),a=i+S,d=f+S),_&&(T=_r(D-s,wr(M-h,T)),c=s+T,p=h+T);break;case br:O[1]?(x&&(a=_r(F,wr(C,O[0][0])),d=_r(F,wr(C,O[1][0])),x=1),_&&(c=_r(D,wr(M,O[0][1])),p=_r(D,wr(M,O[1][1])),_=1)):(x<0?(S=_r(F-i,wr(C-i,S)),a=i+S,d=f):x>0&&(S=_r(F-f,wr(C-f,S)),a=i,d=f+S),_<0?(T=_r(D-s,wr(M-s,T)),c=s+T,p=h):_>0&&(T=_r(D-h,wr(M-h,T)),c=s,p=h+T));break;case Ar:x&&(a=_r(F,wr(C,i-S*x)),d=_r(F,wr(C,f+S*x))),_&&(c=_r(D,wr(M,s-T*_)),p=_r(D,wr(M,h+T*_)))}d<a&&(x*=-1,r=i,i=f,f=r,r=a,a=d,d=r,b in Sr&&z.attr("cursor",Mr[b=Sr[b]])),p<c&&(_*=-1,r=s,s=h,h=r,r=c,c=p,p=r,b in Tr&&z.attr("cursor",Mr[b=Tr[b]])),w.selection&&(E=w.selection),g&&(a=E[0][0],d=E[1][0]),v&&(c=E[0][1],p=E[1][1]),E[0][0]===a&&E[0][1]===c&&E[1][0]===d&&E[1][1]===p||(w.selection=[[a,c],[d,p]],u.call(y),B.brush(t,A.name))}function j(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else gn(t.view,m),P.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);R.attr("pointer-events","all"),z.attr("cursor",Mr.overlay),w.selection&&(E=w.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(E)&&(w.selection=null,u.call(y)),B.end(t,A.name)}}function h(t){l(this,arguments).moved(t)}function p(t){l(this,arguments).ended(t)}function m(){var e=this.__brush||{selection:null};return e.extent=Er(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){l(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){l(this,arguments).end(t)})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),o=r.selection,a=t.input("function"===typeof n?n.apply(this,arguments):n,r.extent),s=(0,vn.A)(o,a);function c(t){r.selection=1===t&&null===a?null:s(t),u.call(e),i.brush()}return null!==o&&null!==a?c:c(1)})):e.each((function(){var e=this,i=arguments,o=e.__brush,a=t.input("function"===typeof n?n.apply(e,i):n,o.extent),s=l(e,i).beforestart();Nn(e),o.selection=null===a?null:a,u.call(e),s.start(r).brush(r).end(r)}))},c.clear=function(t,e){c.move(t,null,e)},f.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0===--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=ln(this.that).datum();a.call(e,this.that,new mr(e,{sourceEvent:n,target:c,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},c.extent=function(t){return arguments.length?(n="function"===typeof t?t:pr(Er(t)),c):n},c.filter=function(t){return arguments.length?(r="function"===typeof t?t:pr(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"===typeof t?t:pr(!!t),c):i},c.handleSize=function(t){return arguments.length?(s=+t,c):s},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=a.on.apply(a,arguments);return t===a?c:t},c}var Hr=Math.abs,Gr=Math.cos,Yr=Math.sin,Vr=Math.PI,$r=Vr/2,Xr=2*Vr,Zr=Math.max,Jr=1e-12;function Qr(t,e){return Array.from({length:e-t},((e,n)=>t+n))}function Kr(){return ni(!1,!1)}function ti(){return ni(!1,!0)}function ei(){return ni(!0,!1)}function ni(t,e){var n=0,r=null,i=null,o=null;function a(a){var s,c=a.length,u=new Array(c),l=Qr(0,c),f=new Array(c*c),d=new Array(c),h=0;a=Float64Array.from({length:c*c},e?(t,e)=>a[e%c][e/c|0]:(t,e)=>a[e/c|0][e%c]);for(let e=0;e<c;++e){let n=0;for(let r=0;r<c;++r)n+=a[e*c+r]+t*a[r*c+e];h+=u[e]=n}s=(h=Zr(0,Xr-n*c)/h)?n:Xr/c;{let e=0;r&&l.sort(((t,e)=>r(u[t],u[e])));for(const n of l){const r=e;if(t){const t=Qr(1+~c,c).filter((t=>t<0?a[~t*c+n]:a[n*c+t]));i&&t.sort(((t,e)=>i(t<0?-a[~t*c+n]:a[n*c+t],e<0?-a[~e*c+n]:a[n*c+e])));for(const r of t)if(r<0){(f[~r*c+n]||(f[~r*c+n]={source:null,target:null})).target={index:n,startAngle:e,endAngle:e+=a[~r*c+n]*h,value:a[~r*c+n]}}else{(f[n*c+r]||(f[n*c+r]={source:null,target:null})).source={index:n,startAngle:e,endAngle:e+=a[n*c+r]*h,value:a[n*c+r]}}d[n]={index:n,startAngle:r,endAngle:e,value:u[n]}}else{const t=Qr(0,c).filter((t=>a[n*c+t]||a[t*c+n]));i&&t.sort(((t,e)=>i(a[n*c+t],a[n*c+e])));for(const r of t){let t;if(n<r?(t=f[n*c+r]||(f[n*c+r]={source:null,target:null}),t.source={index:n,startAngle:e,endAngle:e+=a[n*c+r]*h,value:a[n*c+r]}):(t=f[r*c+n]||(f[r*c+n]={source:null,target:null}),t.target={index:n,startAngle:e,endAngle:e+=a[n*c+r]*h,value:a[n*c+r]},n===r&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const e=t.source;t.source=t.target,t.target=e}}d[n]={index:n,startAngle:r,endAngle:e,value:u[n]}}e+=s}}return(f=Object.values(f)).groups=d,o?f.sort(o):f}return a.padAngle=function(t){return arguments.length?(n=Zr(0,t),a):n},a.sortGroups=function(t){return arguments.length?(r=t,a):r},a.sortSubgroups=function(t){return arguments.length?(i=t,a):i},a.sortChords=function(t){return arguments.length?(null==t?o=null:(e=t,o=function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)})._=t,a):o&&o._;var e},a}var ri=n(73718),ii=Array.prototype.slice;function oi(t){return function(){return t}}function ai(t){return t.source}function si(t){return t.target}function ci(t){return t.radius}function ui(t){return t.startAngle}function li(t){return t.endAngle}function fi(){return 0}function di(){return 10}function hi(t){var e=ai,n=si,r=ci,i=ci,o=ui,a=li,s=fi,c=null;function u(){var u,l=e.apply(this,arguments),f=n.apply(this,arguments),d=s.apply(this,arguments)/2,h=ii.call(arguments),p=+r.apply(this,(h[0]=l,h)),m=o.apply(this,h)-$r,g=a.apply(this,h)-$r,v=+i.apply(this,(h[0]=f,h)),y=o.apply(this,h)-$r,b=a.apply(this,h)-$r;if(c||(c=u=(0,ri.Ae)()),d>Jr&&(Hr(g-m)>2*d+Jr?g>m?(m+=d,g-=d):(m-=d,g+=d):m=g=(m+g)/2,Hr(b-y)>2*d+Jr?b>y?(y+=d,b-=d):(y-=d,b+=d):y=b=(y+b)/2),c.moveTo(p*Gr(m),p*Yr(m)),c.arc(0,0,p,m,g),m!==y||g!==b)if(t){var A=v-+t.apply(this,arguments),x=(y+b)/2;c.quadraticCurveTo(0,0,A*Gr(y),A*Yr(y)),c.lineTo(v*Gr(x),v*Yr(x)),c.lineTo(A*Gr(b),A*Yr(b))}else c.quadraticCurveTo(0,0,v*Gr(y),v*Yr(y)),c.arc(0,0,v,y,b);if(c.quadraticCurveTo(0,0,p*Gr(m),p*Yr(m)),c.closePath(),u)return c=null,u+""||null}return t&&(u.headRadius=function(e){return arguments.length?(t="function"===typeof e?e:oi(+e),u):t}),u.radius=function(t){return arguments.length?(r=i="function"===typeof t?t:oi(+t),u):r},u.sourceRadius=function(t){return arguments.length?(r="function"===typeof t?t:oi(+t),u):r},u.targetRadius=function(t){return arguments.length?(i="function"===typeof t?t:oi(+t),u):i},u.startAngle=function(t){return arguments.length?(o="function"===typeof t?t:oi(+t),u):o},u.endAngle=function(t){return arguments.length?(a="function"===typeof t?t:oi(+t),u):a},u.padAngle=function(t){return arguments.length?(s="function"===typeof t?t:oi(+t),u):s},u.source=function(t){return arguments.length?(e=t,u):e},u.target=function(t){return arguments.length?(n=t,u):n},u.context=function(t){return arguments.length?(c=null==t?null:t,u):c},u}function pi(){return hi()}function mi(){return hi(di)}var gi=n(13696),vi=n(96112),yi=Array.prototype.slice;function bi(t,e){return t-e}const Ai=t=>()=>t;function xi(t,e){for(var n,r=-1,i=e.length;++r<i;)if(n=_i(t,e[r]))return n;return 0}function _i(t,e){for(var n=e[0],r=e[1],i=-1,o=0,a=t.length,s=a-1;o<a;s=o++){var c=t[o],u=c[0],l=c[1],f=t[s],d=f[0],h=f[1];if(wi(c,f,e))return 0;l>r!==h>r&&n<(d-u)*(r-l)/(h-l)+u&&(i=-i)}return i}function wi(t,e,n){var r,i,o,a;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])===(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],o=n[r],a=e[r],i<=o&&o<=a||a<=o&&o<=i)}function ki(){}var Ei=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Fi(){var t=1,e=1,n=W,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(bi);else{const n=x(t,Di);for(e=(0,U.Ay)(...q(n[0],n[1],e),e);e[e.length-1]>=n[1];)e.pop();for(;e[1]<n[0];)e.shift()}return e.map((e=>o(t,e)))}function o(n,i){const o=null==i?NaN:+i;if(isNaN(o))throw new Error("invalid value: ".concat(i));var s=[],c=[];return function(n,r,i){var o,s,c,u,l,f,d=new Array,h=new Array;o=s=-1,u=Ci(n[0],r),Ei[u<<1].forEach(p);for(;++o<t-1;)c=u,u=Ci(n[o+1],r),Ei[c|u<<1].forEach(p);Ei[u|0].forEach(p);for(;++s<e-1;){for(o=-1,u=Ci(n[s*t+t],r),l=Ci(n[s*t],r),Ei[u<<1|l<<2].forEach(p);++o<t-1;)c=u,u=Ci(n[s*t+t+o+1],r),f=l,l=Ci(n[s*t+o+1],r),Ei[c|u<<1|l<<2|f<<3].forEach(p);Ei[u|l<<3].forEach(p)}o=-1,l=n[s*t]>=r,Ei[l<<2].forEach(p);for(;++o<t-1;)f=l,l=Ci(n[s*t+o+1],r),Ei[l<<2|f<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+o,t[0][1]+s],c=[t[1][0]+o,t[1][1]+s],u=a(r),l=a(c);(e=h[u])?(n=d[l])?(delete h[e.end],delete d[n.start],e===n?(e.ring.push(c),i(e.ring)):d[e.start]=h[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[e.end],e.ring.push(c),h[e.end=l]=e):(e=d[l])?(n=h[u])?(delete d[e.start],delete h[n.end],e===n?(e.ring.push(c),i(e.ring)):d[n.start]=h[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[e.start],e.ring.unshift(r),d[e.start=u]=e):d[u]=h[l]={start:u,end:l,ring:[r,c]}}Ei[l<<3].forEach(p)}(n,o,(function(t){r(t,n,o),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}(t)>0?s.push([t]):c.push(t)})),c.forEach((function(t){for(var e,n=0,r=s.length;n<r;++n)if(-1!==xi((e=s[n])[0],t))return void e.push(t)})),{type:"MultiPolygon",value:i,coordinates:s}}function a(e){return 2*e[0]+e[1]*(t+1)*4}function s(n,r,i){n.forEach((function(n){var o=n[0],a=n[1],s=0|o,c=0|a,u=Mi(r[c*t+s]);o>0&&o<t&&s===o&&(n[0]=Si(o,Mi(r[c*t+s-1]),u,i)),a>0&&a<e&&c===a&&(n[1]=Si(a,Mi(r[(c-1)*t+s]),u,i))}))}return i.contour=o,i.size=function(n){if(!arguments.length)return[t,e];var r=Math.floor(n[0]),o=Math.floor(n[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return t=r,e=o,i},i.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?Ai(yi.call(t)):Ai(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:ki,i):r===s},i}function Di(t){return isFinite(t)?t:NaN}function Ci(t,e){return null!=t&&+t>=e}function Mi(t){return null==t||isNaN(t=+t)?-1/0:t}function Si(t,e,n,r){const i=r-e,o=n-e,a=isFinite(i)||isFinite(o)?i/o:Math.sign(i)/Math.sign(o);return isNaN(a)?t:t+a-.5}function Ti(t){return t[0]}function Ni(t){return t[1]}function Oi(){return 1}function Bi(){var t=Ti,e=Ni,n=Oi,r=960,i=500,o=20,a=2,c=3*o,u=r+2*c>>a,l=i+2*c>>a,f=Ai(20);function d(r){var i=new Float32Array(u*l),f=Math.pow(2,-a),d=-1;for(const o of r){var h=(t(o,++d,r)+c)*f,p=(e(o,d,r)+c)*f,m=+n(o,d,r);if(m&&h>=0&&h<u&&p>=0&&p<l){var g=Math.floor(h),v=Math.floor(p),y=h-g-.5,b=p-v-.5;i[g+v*u]+=(1-y)*(1-b)*m,i[g+1+v*u]+=y*(1-b)*m,i[g+1+(v+1)*u]+=y*b*m,i[g+(v+1)*u]+=(1-y)*b*m}}return s({data:i,width:u,height:l},o*f),i}function h(t){var e=d(t),n=f(e),r=Math.pow(2,2*a);return Array.isArray(n)||(n=(0,U.Ay)(Number.MIN_VALUE,(0,$.A)(e)/r,n)),Fi().size([u,l]).thresholds(n.map((t=>t*r)))(e).map(((t,e)=>(t.value=+n[e],p(t))))}function p(t){return t.coordinates.forEach(m),t}function m(t){t.forEach(g)}function g(t){t.forEach(v)}function v(t){t[0]=t[0]*Math.pow(2,a)-c,t[1]=t[1]*Math.pow(2,a)-c}function y(){return u=r+2*(c=3*o)>>a,l=i+2*c>>a,h}return h.contours=function(t){var e=d(t),n=Fi().size([u,l]),r=Math.pow(2,2*a),i=t=>{t=+t;var i=p(n.contour(e,t*r));return i.value=t,i};return Object.defineProperty(i,"max",{get:()=>(0,$.A)(e)/r}),i},h.x=function(e){return arguments.length?(t="function"===typeof e?e:Ai(+e),h):t},h.y=function(t){return arguments.length?(e="function"===typeof t?t:Ai(+t),h):e},h.weight=function(t){return arguments.length?(n="function"===typeof t?t:Ai(+t),h):n},h.size=function(t){if(!arguments.length)return[r,i];var e=+t[0],n=+t[1];if(!(e>=0&&n>=0))throw new Error("invalid size");return r=e,i=n,y()},h.cellSize=function(t){if(!arguments.length)return 1<<a;if(!((t=+t)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),y()},h.thresholds=function(t){return arguments.length?(f="function"===typeof t?t:Array.isArray(t)?Ai(yi.call(t)):Ai(t),h):f},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=(Math.sqrt(4*t*t+1)-1)/2,y()},h}var Ri=n(66824),zi=n(54949);const Pi=t=>()=>t;function Li(t,e){let{sourceEvent:n,subject:r,target:i,identifier:o,active:a,x:s,y:c,dx:u,dy:l,dispatch:f}=e;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:c,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:f}})}function Ii(t){return!t.ctrlKey&&!t.button}function ji(){return this.parentNode}function Ui(t,e){return null==e?{x:t.x,y:t.y}:e}function qi(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wi(){var t,e,n,r,i=Ii,o=ji,a=Ui,s=qi,c={},u=(0,Xt.A)("start","drag","end"),l=0,f=0;function d(t){t.on("mousedown.drag",h).filter(s).on("touchstart.drag",g).on("touchmove.drag",v,fn).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(a,s){if(!r&&i.call(this,a,s)){var c=b(this,o.call(this,a,s),a,s,"mouse");c&&(ln(a.view).on("mousemove.drag",p,dn).on("mouseup.drag",m,dn),mn(a.view),hn(a),n=!1,t=a.clientX,e=a.clientY,c("start",a))}}function p(r){if(pn(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>f}c.mouse("drag",r)}function m(t){ln(t.view).on("mousemove.drag mouseup.drag",null),gn(t.view,n),pn(t),c.mouse("end",t)}function g(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,s=o.call(this,t,e),c=a.length;for(n=0;n<c;++n)(r=b(this,s,t,e,a[n].identifier,a[n]))&&(hn(t),r("start",t,a[n]))}}function v(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=c[r[e].identifier])&&(pn(t),n("drag",t,r[e]))}function y(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<o;++e)(n=c[i[e].identifier])&&(hn(t),n("end",t,i[e]))}function b(t,e,n,r,i,o){var s,f,h,p=u.copy(),m=bn(o||n,e);if(null!=(h=a.call(t,new Li("beforestart",{sourceEvent:n,target:d,identifier:i,active:l,x:m[0],y:m[1],dx:0,dy:0,dispatch:p}),r)))return s=h.x-m[0]||0,f=h.y-m[1]||0,function n(o,a,u){var g,v=m;switch(o){case"start":c[i]=n,g=l++;break;case"end":delete c[i],--l;case"drag":m=bn(u||a,e),g=l}p.call(o,t,new Li(o,{sourceEvent:a,subject:h,target:d,identifier:i,active:g,x:m[0]+s,y:m[1]+f,dx:m[0]-v[0],dy:m[1]-v[1],dispatch:p}),r)}}return d.filter=function(t){return arguments.length?(i="function"===typeof t?t:Pi(!!t),d):i},d.container=function(t){return arguments.length?(o="function"===typeof t?t:Pi(t),d):o},d.subject=function(t){return arguments.length?(a="function"===typeof t?t:Pi(t),d):a},d.touchable=function(t){return arguments.length?(s="function"===typeof t?t:Pi(!!t),d):s},d.on=function(){var t=u.on.apply(u,arguments);return t===u?d:t},d.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,d):Math.sqrt(f)},d}Li.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Hi=n(56768),Gi=(0,Hi.A)(","),Yi=Gi.parse,Vi=Gi.parseRows,$i=Gi.format,Xi=Gi.formatBody,Zi=Gi.formatRows,Ji=Gi.formatRow,Qi=Gi.formatValue,Ki=(0,Hi.A)("\t"),to=Ki.parse,eo=Ki.parseRows,no=Ki.format,ro=Ki.formatBody,io=Ki.formatRows,oo=Ki.formatRow,ao=Ki.formatValue;function so(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;co&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}const co=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),uo=t=>+t;function lo(t){return t*t}function fo(t){return t*(2-t)}function ho(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var po=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),mo=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),go=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),vo=Math.PI,yo=vo/2;function bo(t){return 1===+t?1:1-Math.cos(t*yo)}function Ao(t){return Math.sin(t*yo)}function xo(t){return(1-Math.cos(vo*t))/2}function _o(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function wo(t){return _o(1-+t)}function ko(t){return 1-_o(t)}function Eo(t){return((t*=2)<=1?_o(1-t):2-_o(t-1))/2}function Fo(t){return 1-Math.sqrt(1-t*t)}function Do(t){return Math.sqrt(1- --t*t)}function Co(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Mo=4/11,So=6/11,To=8/11,No=3/4,Oo=9/11,Bo=10/11,Ro=15/16,zo=21/22,Po=63/64,Lo=1/Mo/Mo;function Io(t){return 1-jo(1-t)}function jo(t){return(t=+t)<Mo?Lo*t*t:t<To?Lo*(t-=So)*t+No:t<Bo?Lo*(t-=Oo)*t+Ro:Lo*(t-=zo)*t+Po}function Uo(t){return((t*=2)<=1?1-jo(1-t):jo(t-1)+1)/2}var qo=1.70158,Wo=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(qo),Ho=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(qo),Go=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(qo),Yo=2*Math.PI,Vo=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Yo);function i(t){return e*_o(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Yo)},i.period=function(n){return t(e,n)},i}(1,.3),$o=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Yo);function i(t){return 1-e*_o(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Yo)},i.period=function(n){return t(e,n)},i}(1,.3),Xo=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Yo);function i(t){return((t=2*t-1)<0?e*_o(-t)*Math.sin((r-t)/n):2-e*_o(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Yo)},i.period=function(n){return t(e,n)},i}(1,.3);function Zo(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function Jo(t,e){return fetch(t,e).then(Zo)}function Qo(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Ko(t,e){return fetch(t,e).then(Qo)}function ta(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function ea(t,e){return fetch(t,e).then(ta)}function na(t){return function(e,n,r){return 2===arguments.length&&"function"===typeof n&&(r=n,n=void 0),ea(e,n).then((function(e){return t(e,r)}))}}function ra(t,e,n,r){3===arguments.length&&"function"===typeof n&&(r=n,n=void 0);var i=(0,Hi.A)(t);return ea(e,n).then((function(t){return i.parse(t,r)}))}var ia=na(Yi),oa=na(to);function aa(t,e){return new Promise((function(n,r){var i=new Image;for(var o in e)i[o]=e[o];i.onerror=r,i.onload=function(){n(i)},i.src=t}))}function sa(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function ca(t,e){return fetch(t,e).then(sa)}function ua(t){return(e,n)=>ea(e,n).then((e=>(new DOMParser).parseFromString(e,t)))}const la=ua("application/xml");var fa=ua("text/html"),da=ua("image/svg+xml"),ha=n(35034),pa=n(4593),ma=n(38119),ga=n(64948),va=n(38283);function ya(t,e,n){var r,i,o,a=(0,va.A)(.1);function s(t){for(var a=0,s=r.length;a<s;++a){var c=r[a],u=c.x-e||1e-6,l=c.y-n||1e-6,f=Math.sqrt(u*u+l*l),d=(o[a]-f)*i[a]*t/f;c.vx+=u*d,c.vy+=l*d}}function c(){if(r){var e,n=r.length;for(i=new Array(n),o=new Array(n),e=0;e<n;++e)o[e]=+t(r[e],e,r),i[e]=isNaN(o[e])?0:+a(r[e],e,r)}}return"function"!==typeof t&&(t=(0,va.A)(+t)),null==e&&(e=0),null==n&&(n=0),s.initialize=function(t){r=t,c()},s.strength=function(t){return arguments.length?(a="function"===typeof t?t:(0,va.A)(+t),c(),s):a},s.radius=function(e){return arguments.length?(t="function"===typeof e?e:(0,va.A)(+e),c(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s}var ba=n(99968),Aa=n(11015),xa=n(87792),_a=n(56214),wa=n(47339),ka=n(30276),Ea=n(97867),Fa=n(48249),Da=n(43877),Ca=n(30896),Ma=n(37332),Sa=n(83677),Ta=n(81871),Na=n(91061),Oa=n(3442),Ba=n(82101);function Ra(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=(0,Ba.A)(r,i,o,a)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[r,i],[o,a]]}}}var za,Pa,La,Ia,ja=n(44362),Ua=n(3603),qa=n(78005),Wa=n(86057),Ha={sphere:qa.A,point:qa.A,lineStart:function(){Ha.point=Ya,Ha.lineEnd=Ga},lineEnd:qa.A,polygonStart:qa.A,polygonEnd:qa.A};function Ga(){Ha.point=Ha.lineEnd=qa.A}function Ya(t,e){t*=Ua.F2,e*=Ua.F2,Pa=t,La=(0,Ua.F8)(e),Ia=(0,Ua.gn)(e),Ha.point=Va}function Va(t,e){t*=Ua.F2,e*=Ua.F2;var n=(0,Ua.F8)(e),r=(0,Ua.gn)(e),i=(0,Ua.tn)(t-Pa),o=(0,Ua.gn)(i),a=r*(0,Ua.F8)(i),s=Ia*n-La*r*o,c=La*n+Ia*r*o;za.add((0,Ua.FP)((0,Ua.RZ)(a*a+s*s),c)),Pa=t,La=n,Ia=r}function $a(t){return za=new _.ph,(0,Wa.A)(t,Ha),+za}var Xa=[null,null],Za={type:"LineString",coordinates:Xa};function Ja(t,e){return Xa[0]=t,Xa[1]=e,$a(Za)}var Qa={Feature:function(t,e){return ts(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(ts(n[r].geometry,e))return!0;return!1}},Ka={Sphere:function(){return!0},Point:function(t,e){return es(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(es(n[r],e))return!0;return!1},LineString:function(t,e){return ns(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(ns(n[r],e))return!0;return!1},Polygon:function(t,e){return rs(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(rs(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(ts(n[r],e))return!0;return!1}};function ts(t,e){return!(!t||!Ka.hasOwnProperty(t.type))&&Ka[t.type](t,e)}function es(t,e){return 0===Ja(t,e)}function ns(t,e){for(var n,r,i,o=0,a=t.length;o<a;o++){if(0===(r=Ja(t[o],e)))return!0;if(o>0&&(i=Ja(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<Ua.$t*i)return!0;n=r}return!1}function rs(t,e){return!!(0,ja.A)(t.map(is),os(e))}function is(t){return(t=t.map(os)).pop(),t}function os(t){return[t[0]*Ua.F2,t[1]*Ua.F2]}function as(t,e){return(t&&Qa.hasOwnProperty(t.type)?Qa[t.type]:ts)(t,e)}var ss=n(62741);function cs(t,e){var n=t[0]*Ua.F2,r=t[1]*Ua.F2,i=e[0]*Ua.F2,o=e[1]*Ua.F2,a=(0,Ua.gn)(r),s=(0,Ua.F8)(r),c=(0,Ua.gn)(o),u=(0,Ua.F8)(o),l=a*(0,Ua.gn)(n),f=a*(0,Ua.F8)(n),d=c*(0,Ua.gn)(i),h=c*(0,Ua.F8)(i),p=2*(0,Ua.qR)((0,Ua.RZ)((0,Ua.bo)(o-r)+a*c*(0,Ua.bo)(i-n))),m=(0,Ua.F8)(p),g=p?function(t){var e=(0,Ua.F8)(t*=p)/m,n=(0,Ua.F8)(p-t)/m,r=n*l+e*d,i=n*f+e*h,o=n*s+e*u;return[(0,Ua.FP)(i,r)*Ua.uj,(0,Ua.FP)(o,(0,Ua.RZ)(r*r+i*i))*Ua.uj]}:function(){return[n*Ua.uj,r*Ua.uj]};return g.distance=p,g}var us=n(42948),ls=n(34536),fs=n(73585),ds=n(27041),hs=n(15741),ps=n(45180),ms=n(35640),gs=n(39358),vs=n(14295),ys=n(12083),bs=n(29371),As=n(69849),xs=n(62951),_s=n(35058),ws=n(73653),ks=n(83885),Es=n(31435),Fs=n(26089),Ds=n(43531),Cs=n(98745),Ms=n(10509),Ss=n(35201),Ts=n(50905),Ns=n(48898),Os=n(35028),Bs=n(73705),Rs=n(89339),zs=n(24191),Ps=n(65242),Ls=n(14937),Is=n(67991),js=n(72224),Us=n(24391),qs=n(92234),Ws=n(95647),Hs=n(61754);function Gs(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[1]*i[0]-e[0]*i[1];return o/2}function Ys(t){for(var e,n,r=-1,i=t.length,o=0,a=0,s=t[i-1],c=0;++r<i;)e=s,s=t[r],c+=n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o/(c*=3),a/c]}function Vs(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function $s(t,e){return t[0]-e[0]||t[1]-e[1]}function Xs(t){const e=t.length,n=[0,1];let r,i=2;for(r=2;r<e;++r){for(;i>1&&Vs(t[n[i-2]],t[n[i-1]],t[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}function Zs(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e)r[e]=[+t[e][0],+t[e][1],e];for(r.sort($s),e=0;e<n;++e)i[e]=[r[e][0],-r[e][1]];var o=Xs(r),a=Xs(i),s=a[0]===o[0],c=a[a.length-1]===o[o.length-1],u=[];for(e=o.length-1;e>=0;--e)u.push(t[r[o[e]][2]]);for(e=+s;e<a.length-c;++e)u.push(t[r[a[e]][2]]);return u}function Js(t,e){for(var n,r,i=t.length,o=t[i-1],a=e[0],s=e[1],c=o[0],u=o[1],l=!1,f=0;f<i;++f)n=(o=t[f])[0],(r=o[1])>s!==u>s&&a<(c-n)*(s-r)/(u-r)+n&&(l=!l),c=n,u=r;return l}function Qs(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],s=o[1],c=0;++r<i;)e=a,n=s,e-=a=(o=t[r])[0],n-=s=o[1],c+=Math.hypot(e,n);return c}var Ks=n(67466);const tc=Math.random,ec=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(tc),nc=function t(e){function n(t,n){return arguments.length<2&&(n=t,t=0),t=Math.floor(t),n=Math.floor(n)-t,function(){return Math.floor(e()*n+t)}}return n.source=t,n}(tc),rc=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*e()-1,o=2*e()-1,i=r*r+o*o}while(!i||i>1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(tc),ic=function t(e){var n=rc.source(e);function r(){var t=n.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(tc),oc=function t(e){function n(t){return(t=+t)<=0?()=>0:function(){for(var n=0,r=t;r>1;--r)n+=e();return n+r*e()}}return n.source=t,n}(tc),ac=function t(e){var n=oc.source(e);function r(t){if(0===(t=+t))return e;var r=n(t);return function(){return r()/t}}return r.source=t,r}(tc),sc=function t(e){function n(t){return function(){return-Math.log1p(-e())/t}}return n.source=t,n}(tc),cc=function t(e){function n(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-e(),t)}}return n.source=t,n}(tc),uc=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+t)}}return n.source=t,n}(tc),lc=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-e())/t)})}return n.source=t,n}(tc),fc=function t(e){var n=rc.source(e)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-e())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),a=t<1?()=>Math.pow(e(),1/t):()=>1;return function(){do{do{var t=n(),s=1+o*t}while(s<=0);s*=s*s;var c=1-e()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-s+Math.log(s)));return i*s*a()*r}}return r.source=t,r}(tc),dc=function t(e){var n=fc.source(e);function r(t,e){var r=n(t),i=n(e);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(tc),hc=function t(e){var n=lc.source(e),r=dc.source(e);function i(t,e){return t=+t,(e=+e)>=1?()=>t:e<=0?()=>0:function(){for(var i=0,o=t,a=e;o*a>16&&o*(1-a)>16;){var s=Math.floor((o+1)*a),c=r(s,o-s+1)();c<=a?(i+=s,o-=s,a=(a-c)/(1-c)):(o=s-1,a/=c)}for(var u=a<.5,l=n(u?a:1-a),f=l(),d=0;f<=o;++d)f+=l();return i+(u?d:o-d)}}return i.source=t,i}(tc),pc=function t(e){function n(t,n,r){var i;return 0===(t=+t)?i=t=>-Math.log(t):(t=1/t,i=e=>Math.pow(e,t)),n=null==n?0:+n,r=null==r?1:+r,function(){return n+r*i(-Math.log1p(-e()))}}return n.source=t,n}(tc),mc=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){return t+n*Math.tan(Math.PI*e())}}return n.source=t,n}(tc),gc=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){var r=e();return t+n*Math.log(r/(1-r))}}return n.source=t,n}(tc),vc=function t(e){var n=fc.source(e),r=hc.source(e);function i(t){return function(){for(var i=0,o=t;o>16;){var a=Math.floor(.875*o),s=n(a)();if(s>o)return i+r(a-1,o/s)();i+=a,o-=s}for(var c=-Math.log1p(-e()),u=0;c<=o;++u)c-=Math.log1p(-e());return i+u}}return i.source=t,i}(tc),yc=1664525,bc=1013904223,Ac=1/4294967296;function xc(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Math.random(),e=0|(0<=t&&t<1?t/Ac:Math.abs(t));return()=>(e=yc*e+bc|0,Ac*(e>>>0))}var _c=n(94402),wc=n(58299);function kc(){var t,e,n=(0,wc.A)().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<o,d=f?a:o,h=f?o:a;t=(h-d)/Math.max(1,n-c+2*u),s&&(t=Math.floor(t)),d+=(h-d-t*(n-c))*l,e=t*(1-c),s&&(d=Math.round(d),e=Math.round(e));var p=(0,at.A)(n).map((function(e){return d+t*e}));return i(f?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,s=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,f()):s},n.padding=function(t){return arguments.length?(c=Math.min(1,u=+t),f()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},n.paddingOuter=function(t){return arguments.length?(u=+t,f()):u},n.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),f()):l},n.copy=function(){return kc(r(),[o,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},_c.C.apply(f(),arguments)}function Ec(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ec(e())},t}function Fc(){return Ec(kc.apply(null,arguments).paddingInner(1))}var Dc=n(26722),Cc=n(1645),Mc=n(67772),Sc=n(94779),Tc=n(8528),Nc=n(79793),Oc=n(54521);function Bc(t){return Math.sign(t)*t*t}function Rc(){var t,e=(0,Nc.Ay)(),n=[0,1],r=!1;function i(n){var i=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(n));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return e.invert(Bc(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((n=Array.from(t,Oc.A)).map(Bc)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Rc(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},_c.C.apply(i,arguments),(0,Cc.C)(i)}var zc=n(59813),Pc=n(14071),Lc=n(67645),Ic=n(12689),jc=n(80977),Uc=n(76495);function qc(){var t=[],e=Nc.D_;function n(n){if(null!=n&&!isNaN(n=+n))return e(((0,r.Ay)(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(i.A),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>(0,G.Ay)(t,r/e)))},n.copy=function(){return qc(e).domain(t)},_c.K.apply(n,arguments)}var Wc=n(38349),Hc=n(47910),Gc=n(88505),Yc=n(73762),Vc=n(90624),$c=n(79500),Xc=n(55005),Zc=n(27838),Jc=n(47675),Qc=n(1879),Kc=n(16778),tu=n(29561),eu=n(33245);const nu=(0,eu.A)("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),ru=t=>(0,In.Ik)(t[t.length-1]);var iu=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(eu.A);const ou=ru(iu);var au=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(eu.A);const su=ru(au);var cu=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(eu.A);const uu=ru(cu);var lu=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(eu.A);const fu=ru(lu);var du=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(eu.A);const hu=ru(du);var pu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(eu.A);const mu=ru(pu);var gu=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(eu.A);const vu=ru(gu);var yu=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(eu.A);const bu=ru(yu);var Au=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(eu.A);const xu=ru(Au);var _u=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(eu.A);const wu=ru(_u);var ku=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(eu.A);const Eu=ru(ku);var Fu=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(eu.A);const Du=ru(Fu);var Cu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(eu.A);const Mu=ru(Cu);var Su=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(eu.A);const Tu=ru(Su);var Nu=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(eu.A);const Ou=ru(Nu);var Bu=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(eu.A);const Ru=ru(Bu);var zu=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(eu.A);const Pu=ru(zu);var Lu=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(eu.A);const Iu=ru(Lu);var ju=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(eu.A);const Uu=ru(ju);var qu=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(eu.A);const Wu=ru(qu);var Hu=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(eu.A);const Gu=ru(Hu);var Yu=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(eu.A);const Vu=ru(Yu);var $u=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(eu.A);const Xu=ru($u);var Zu=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(eu.A);const Ju=ru(Zu);var Qu=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(eu.A);const Ku=ru(Qu);var tl=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(eu.A);const el=ru(tl);var nl=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(eu.A);const rl=ru(nl);function il(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}var ol=n(12252);const al=(0,ol.w)((0,vi.A)(300,.5,0),(0,vi.A)(-240,.5,1));var sl=(0,ol.w)((0,vi.A)(-100,.75,.35),(0,vi.A)(80,1.5,.8)),cl=(0,ol.w)((0,vi.A)(260,.75,.35),(0,vi.A)(80,1.5,.8)),ul=(0,vi.A)();function ll(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return ul.h=360*t-100,ul.s=1.5-1.5*e,ul.l=.8-.9*e,ul+""}var fl=(0,Pn.Qh)(),dl=Math.PI/3,hl=2*Math.PI/3;function pl(t){var e;return t=(.5-t)*Math.PI,fl.r=255*(e=Math.sin(t))*e,fl.g=255*(e=Math.sin(t+dl))*e,fl.b=255*(e=Math.sin(t+hl))*e,fl+""}function ml(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function gl(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const vl=gl((0,eu.A)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var yl=gl((0,eu.A)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),bl=gl((0,eu.A)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Al=gl((0,eu.A)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function xl(t){return ln(Xe(t).call(document.documentElement))}var _l=0;function wl(){return new kl}function kl(){this._="@"+(++_l).toString(36)}function El(t,e){return t.target&&(t=yn(t),void 0===e&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,(t=>bn(t,e)))}function Fl(t){return"string"===typeof t?new sn([document.querySelectorAll(t)],[document.documentElement]):new sn([Qt(t)],an)}kl.prototype=wl.prototype={constructor:kl,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Dl=n(45453),Cl=n(21872),Ml=n(68907),Sl=n(99236),Tl=n(13809);function Nl(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Ol(t){return t}var Bl=n(6739);function Rl(){var t=Ol,e=Nl,n=null,r=(0,Tl.A)(0),i=(0,Tl.A)(Bl.FA),o=(0,Tl.A)(0);function a(a){var s,c,u,l,f,d=(a=(0,Sl.A)(a)).length,h=0,p=new Array(d),m=new Array(d),g=+r.apply(this,arguments),v=Math.min(Bl.FA,Math.max(-Bl.FA,i.apply(this,arguments)-g)),y=Math.min(Math.abs(v)/d,o.apply(this,arguments)),b=y*(v<0?-1:1);for(s=0;s<d;++s)(f=m[p[s]=s]=+t(a[s],s,a))>0&&(h+=f);for(null!=e?p.sort((function(t,n){return e(m[t],m[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),s=0,u=h?(v-d*b)/h:0;s<d;++s,g=l)c=p[s],l=g+((f=m[c])>0?f*u:0)+b,m[c]={data:a[c],index:s,value:f,startAngle:g,endAngle:l,padAngle:y};return m}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:(0,Tl.A)(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:(0,Tl.A)(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:(0,Tl.A)(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:(0,Tl.A)(+t),a):o},a}var zl=n(35248),Pl=Il(zl.A);function Ll(t){this._curve=t}function Il(t){function e(e){return new Ll(t(e))}return e._curve=t,e}function jl(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Il(t)):e()._curve},t}function Ul(){return jl((0,Ml.A)().curve(Pl))}function ql(){var t=(0,Cl.A)().curve(Pl),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return jl(n())},delete t.lineX0,t.lineEndAngle=function(){return jl(r())},delete t.lineX1,t.lineInnerRadius=function(){return jl(i())},delete t.lineY0,t.lineOuterRadius=function(){return jl(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Il(t)):e()._curve},t}function Wl(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}Ll.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};class Hl{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}class Gl{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,e){if(t=+t,e=+e,0===this._point)this._point=1;else{const n=Wl(this._x0,this._y0),r=Wl(this._x0,this._y0=(this._y0+e)/2),i=Wl(t,this._y0),o=Wl(t,e);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...o)}this._x0=t,this._y0=e}}function Yl(t){return new Hl(t,!0)}function Vl(t){return new Hl(t,!1)}function $l(t){return new Gl(t)}var Xl=n(21286),Zl=n(15527);function Jl(t){return t.source}function Ql(t){return t.target}function Kl(t){let e=Jl,n=Ql,r=Zl.x,i=Zl.y,o=null,a=null,s=(0,Xl.i)(c);function c(){let c;const u=Sl.d.call(arguments),l=e.apply(this,u),f=n.apply(this,u);if(null==o&&(a=t(c=s())),a.lineStart(),u[0]=l,a.point(+r.apply(this,u),+i.apply(this,u)),u[0]=f,a.point(+r.apply(this,u),+i.apply(this,u)),a.lineEnd(),c)return a=null,c+""||null}return c.source=function(t){return arguments.length?(e=t,c):e},c.target=function(t){return arguments.length?(n=t,c):n},c.x=function(t){return arguments.length?(r="function"===typeof t?t:(0,Tl.A)(+t),c):r},c.y=function(t){return arguments.length?(i="function"===typeof t?t:(0,Tl.A)(+t),c):i},c.context=function(e){return arguments.length?(null==e?o=a=null:a=t(o=e),c):o},c}function tf(){return Kl(Yl)}function ef(){return Kl(Vl)}function nf(){const t=Kl($l);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var rf=n(42817),of=n(18372),af=n(67544),sf=n(91922),cf=n(88210),uf=n(7426),lf=n(93340),ff=n(20299),df=n(28317),hf=n(43148),pf=n(93564),mf=n(3980),gf=n(46137),vf=n(17512),yf=n(51103),bf=n(72271),Af=n(84047),xf=n(87701),_f=n(31961),wf=n(69685),kf=n(38101),Ef=n(63685),Ff=n(44025),Df=n(25393),Cf=n(12988),Mf=n(88330),Sf=n(69340),Tf=n(54623);function Nf(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Of(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function Bf(t,e){return t[e]}function Rf(t){const e=[];return e.key=t,e}function zf(){var t=(0,Tl.A)([]),e=Of,n=Nf,r=Bf;function i(i){var o,a,s=Array.from(t.apply(this,arguments),Rf),c=s.length,u=-1;for(const t of i)for(o=0,++u;o<c;++o)(s[o][u]=[0,+r(t,s[o].key,u,i)]).data=t;for(o=0,a=(0,Sl.A)(e(s));o<c;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:(0,Tl.A)(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:(0,Tl.A)(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Of:"function"===typeof t?t:(0,Tl.A)(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Nf:t,i):n},i}function Pf(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}Nf(t,e)}}function Lf(t,e){if((s=t.length)>0)for(var n,r,i,o,a,s,c=0,u=t[e[0]].length;c<u;++c)for(o=a=0,n=0;n<s;++n)(i=(r=t[e[n]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function If(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}Nf(t,e)}}function jf(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<i;++s){for(var l=t[e[s]],f=l[a][1]||0,d=(f-(l[a-1][1]||0))/2,h=0;h<s;++h){var p=t[e[h]];d+=(p[a][1]||0)-(p[a-1][1]||0)}c+=f,u+=d*f}n[a-1][1]+=n[a-1][0]=o,c&&(o-=u/c)}n[a-1][1]+=n[a-1][0]=o,Nf(t,e)}}function Uf(t){var e=t.map(qf);return Of(t).sort((function(t,n){return e[t]-e[n]}))}function qf(t){for(var e,n=-1,r=0,i=t.length,o=-1/0;++n<i;)(e=+t[n][1])>o&&(o=e,r=n);return r}function Wf(t){var e=t.map(Hf);return Of(t).sort((function(t,n){return e[t]-e[n]}))}function Hf(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}function Gf(t){return Wf(t).reverse()}function Yf(t){var e,n,r=t.length,i=t.map(Hf),o=Uf(t),a=0,s=0,c=[],u=[];for(e=0;e<r;++e)n=o[e],a<s?(a+=i[n],c.push(n)):(s+=i[n],u.push(n));return u.reverse().concat(c)}function Vf(t){return Of(t).reverse()}var $f=n(73870),Xf=n(40566),Zf=n(19039),Jf=n(5827),Qf=n(62269),Kf=n(26409),td=n(99215),ed=n(79477),nd=n(8574),rd=n(94185),id=n(15744),od=n(77953),ad="%Y-%m-%dT%H:%M:%S.%LZ";const sd=Date.prototype.toISOString?function(t){return t.toISOString()}:(0,id.aL)(ad);var cd=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:(0,id.GY)(ad);const ud=cd;var ld=n(95508),fd=n(96248);const dd=t=>()=>t;function hd(t,e){let{sourceEvent:n,target:r,transform:i,dispatch:o}=e;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function pd(t,e,n){this.k=t,this.x=e,this.y=n}pd.prototype={constructor:pd,scale:function(t){return 1===t?this:new pd(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new pd(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var md=new pd(1,0,0);function gd(t){for(;!t.__zoom;)if(!(t=t.parentNode))return md;return t.__zoom}function vd(t){t.stopImmediatePropagation()}function yd(t){t.preventDefault(),t.stopImmediatePropagation()}function bd(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function Ad(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function xd(){return this.__zoom||md}function _d(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function wd(){return navigator.maxTouchPoints||"ontouchstart"in this}function kd(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function Ed(){var t,e,n,r=bd,i=Ad,o=kd,a=_d,s=wd,c=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],l=250,f=fd.A,d=(0,Xt.A)("start","zoom","end"),h=0,p=10;function m(t){t.property("__zoom",xd).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",w).on("dblclick.zoom",k).filter(s).on("touchstart.zoom",E).on("touchmove.zoom",F).on("touchend.zoom touchcancel.zoom",D).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(c[0],Math.min(c[1],e)))===t.k?t:new pd(e,t.x,t.y)}function v(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new pd(t.k,r,i)}function y(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,r){t.on("start.zoom",(function(){A(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){A(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=A(t,o).event(r),s=i.apply(t,o),c=null==n?y(s):"function"===typeof n?n.apply(t,o):n,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=t.__zoom,d="function"===typeof e?e.apply(t,o):e,h=f(l.invert(c).concat(u/l.k),d.invert(c).concat(u/d.k));return function(t){if(1===t)t=d;else{var e=h(t),n=u/e[2];t=new pd(n,c[0]-e[0]*n,c[1]-e[1]*n)}a.zoom(null,t)}}))}function A(t,e,n){return!n&&t.__zooming||new x(t,e)}function x(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function _(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var s=A(this,n).event(t),l=this.__zoom,f=Math.max(c[0],Math.min(c[1],l.k*Math.pow(2,a.apply(this,arguments)))),d=bn(t);if(s.wheel)s.mouse[0][0]===d[0]&&s.mouse[0][1]===d[1]||(s.mouse[1]=l.invert(s.mouse[0]=d)),clearTimeout(s.wheel);else{if(l.k===f)return;s.mouse=[d,l.invert(d)],Nn(this),s.start()}yd(t),s.wheel=setTimeout((function(){s.wheel=null,s.end()}),150),s.zoom("mouse",o(v(g(l,f),s.mouse[0],s.mouse[1]),s.extent,u))}}function w(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];if(!n&&r.apply(this,arguments)){var s=t.currentTarget,c=A(this,i,!0).event(t),l=ln(t.view).on("mousemove.zoom",(function(t){if(yd(t),!c.moved){var e=t.clientX-d,n=t.clientY-p;c.moved=e*e+n*n>h}c.event(t).zoom("mouse",o(v(c.that.__zoom,c.mouse[0]=bn(t,s),c.mouse[1]),c.extent,u))}),!0).on("mouseup.zoom",(function(t){l.on("mousemove.zoom mouseup.zoom",null),gn(t.view,c.moved),yd(t),c.event(t).end()}),!0),f=bn(t,s),d=t.clientX,p=t.clientY;mn(t.view),vd(t),c.mouse=[f,this.__zoom.invert(f)],Nn(this),c.start()}}function k(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];if(r.apply(this,arguments)){var s=this.__zoom,c=bn(t.changedTouches?t.changedTouches[0]:t,this),f=s.invert(c),d=s.k*(t.shiftKey?.5:2),h=o(v(g(s,d),c,f),i.apply(this,n),u);yd(t),l>0?ln(this).transition().duration(l).call(b,h,c,t):ln(this).call(m.transform,h,c,t)}}function E(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(r.apply(this,arguments)){var s,c,u,l,f=n.touches,d=f.length,h=A(this,o,n.changedTouches.length===d).event(n);for(vd(n),c=0;c<d;++c)l=[l=bn(u=f[c],this),this.__zoom.invert(l),u.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!t);t&&(t=clearTimeout(t)),s&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),500)),Nn(this),h.start())}}function F(t){if(this.__zooming){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i,a,s,c,l=A(this,n).event(t),f=t.changedTouches,d=f.length;for(yd(t),i=0;i<d;++i)s=bn(a=f[i],this),l.touch0&&l.touch0[2]===a.identifier?l.touch0[0]=s:l.touch1&&l.touch1[2]===a.identifier&&(l.touch1[0]=s);if(a=l.that.__zoom,l.touch1){var h=l.touch0[0],p=l.touch0[1],m=l.touch1[0],y=l.touch1[1],b=(b=m[0]-h[0])*b+(b=m[1]-h[1])*b,x=(x=y[0]-p[0])*x+(x=y[1]-p[1])*x;a=g(a,Math.sqrt(b/x)),s=[(h[0]+m[0])/2,(h[1]+m[1])/2],c=[(p[0]+y[0])/2,(p[1]+y[1])/2]}else{if(!l.touch0)return;s=l.touch0[0],c=l.touch0[1]}l.zoom("touch",o(v(a,s,c),l.extent,u))}}function D(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.__zooming){var a,s,c=A(this,i).event(t),u=t.changedTouches,l=u.length;for(vd(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),a=0;a<l;++a)s=u[a],c.touch0&&c.touch0[2]===s.identifier?delete c.touch0:c.touch1&&c.touch1[2]===s.identifier&&delete c.touch1;if(c.touch1&&!c.touch0&&(c.touch0=c.touch1,delete c.touch1),c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),2===c.taps&&(s=bn(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<p)){var f=ln(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return m.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",xd),t!==i?b(t,e,n,r):i.interrupt().each((function(){A(this,arguments).event(r).start().zoom(null,"function"===typeof e?e.apply(this,arguments):e).end()}))},m.scaleBy=function(t,e,n,r){m.scaleTo(t,(function(){return this.__zoom.k*("function"===typeof e?e.apply(this,arguments):e)}),n,r)},m.scaleTo=function(t,e,n,r){m.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==n?y(t):"function"===typeof n?n.apply(this,arguments):n,s=r.invert(a),c="function"===typeof e?e.apply(this,arguments):e;return o(v(g(r,c),a,s),t,u)}),n,r)},m.translateBy=function(t,e,n,r){m.transform(t,(function(){return o(this.__zoom.translate("function"===typeof e?e.apply(this,arguments):e,"function"===typeof n?n.apply(this,arguments):n),i.apply(this,arguments),u)}),null,r)},m.translateTo=function(t,e,n,r,a){m.transform(t,(function(){var t=i.apply(this,arguments),a=this.__zoom,s=null==r?y(t):"function"===typeof r?r.apply(this,arguments):r;return o(md.translate(s[0],s[1]).scale(a.k).translate("function"===typeof e?-e.apply(this,arguments):-e,"function"===typeof n?-n.apply(this,arguments):-n),t,u)}),r,a)},x.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=ln(this.that).datum();d.call(t,this.that,new hd(t,{sourceEvent:this.sourceEvent,target:m,type:t,transform:this.that.__zoom,dispatch:d}),e)}},m.wheelDelta=function(t){return arguments.length?(a="function"===typeof t?t:dd(+t),m):a},m.filter=function(t){return arguments.length?(r="function"===typeof t?t:dd(!!t),m):r},m.touchable=function(t){return arguments.length?(s="function"===typeof t?t:dd(!!t),m):s},m.extent=function(t){return arguments.length?(i="function"===typeof t?t:dd([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),m):i},m.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],m):[c[0],c[1]]},m.translateExtent=function(t){return arguments.length?(u[0][0]=+t[0][0],u[1][0]=+t[1][0],u[0][1]=+t[0][1],u[1][1]=+t[1][1],m):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},m.constrain=function(t){return arguments.length?(o=t,m):o},m.duration=function(t){return arguments.length?(l=+t,m):l},m.interpolate=function(t){return arguments.length?(f=t,m):f},m.on=function(){var t=d.on.apply(d,arguments);return t===d?m:t},m.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,m):Math.sqrt(h)},m.tapDistance=function(t){return arguments.length?(p=+t,m):p},m}gd.prototype=pd.prototype},5252:(t,e,n)=>{n.d(e,{B:()=>r,v:()=>i});class r extends Map{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(a(this,t),e)}delete(t){return super.delete(s(this,t))}}class i extends Set{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(o(this,t))}add(t){return super.add(a(this,t))}delete(t){return super.delete(s(this,t))}}function o(t,e){let{_intern:n,_key:r}=t;const i=r(e);return n.has(i)?n.get(i):e}function a(t,e){let{_intern:n,_key:r}=t;const i=r(e);return n.has(i)?n.get(i):(n.set(i,e),e)}function s(t,e){let{_intern:n,_key:r}=t;const i=r(e);return n.has(i)&&(e=n.get(i),n.delete(i)),e}function c(t){return null!==t&&"object"===typeof t?t.valueOf():t}}}]);
|
|
3
|
+
//# sourceMappingURL=53653.56c7ad1f.chunk.js.map
|