watch-tail 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -2
- package/build/client/_app/immutable/assets/{0.BQQ1YLPc.css → 0.Dfts6BC4.css} +1 -1
- package/build/client/_app/immutable/assets/0.Dfts6BC4.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Dfts6BC4.css.gz +0 -0
- package/build/client/_app/immutable/chunks/{D-JtVVAo.js → Amq8zxdJ.js} +1 -1
- package/build/client/_app/immutable/chunks/Amq8zxdJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Amq8zxdJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B6nyufJR.js → B3p3umIY.js} +1 -1
- package/build/client/_app/immutable/chunks/B3p3umIY.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3p3umIY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DJDlf6lC.js → B43Eeyih.js} +1 -1
- package/build/client/_app/immutable/chunks/B43Eeyih.js.br +0 -0
- package/build/client/_app/immutable/chunks/B43Eeyih.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CoEFQJcr.js → B5q6rkQ-.js} +1 -1
- package/build/client/_app/immutable/chunks/B5q6rkQ-.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5q6rkQ-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BR7qH0F5.js → BAynhd7i.js} +1 -1
- package/build/client/_app/immutable/chunks/BAynhd7i.js.br +0 -0
- package/build/client/_app/immutable/chunks/BAynhd7i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DQi7bc16.js → BDlvDAqe.js} +1 -1
- package/build/client/_app/immutable/chunks/BDlvDAqe.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDlvDAqe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{PYzEcuyd.js → BGmgUZMc.js} +5 -5
- package/build/client/_app/immutable/chunks/BGmgUZMc.js.br +0 -0
- package/build/client/_app/immutable/chunks/BGmgUZMc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DJLYkl5w.js → BJpWBbAS.js} +1 -1
- package/build/client/_app/immutable/chunks/BJpWBbAS.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJpWBbAS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dp8S9ymS.js → BOT2hFMn.js} +1 -1
- package/build/client/_app/immutable/chunks/BOT2hFMn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOT2hFMn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bp63j1zN.js → BZFYtRPj.js} +1 -1
- package/build/client/_app/immutable/chunks/BZFYtRPj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BZFYtRPj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjxZ_neZ.js +5 -0
- package/build/client/_app/immutable/chunks/BjxZ_neZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjxZ_neZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DkyYNO4U.js → BsH4MNzX.js} +1 -1
- package/build/client/_app/immutable/chunks/BsH4MNzX.js.br +0 -0
- package/build/client/_app/immutable/chunks/BsH4MNzX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DmRhEzIa.js → ByhwhtiG.js} +1 -1
- package/build/client/_app/immutable/chunks/ByhwhtiG.js.br +0 -0
- package/build/client/_app/immutable/chunks/ByhwhtiG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CDbeYGlD.js → C1lycbEF.js} +1 -1
- package/build/client/_app/immutable/chunks/C1lycbEF.js.br +0 -0
- package/build/client/_app/immutable/chunks/C1lycbEF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DslUcEd-.js → CEU4ihsz.js} +1 -1
- package/build/client/_app/immutable/chunks/CEU4ihsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEU4ihsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DVTgeA2y.js → CG6rRxUy.js} +1 -1
- package/build/client/_app/immutable/chunks/CG6rRxUy.js.br +0 -0
- package/build/client/_app/immutable/chunks/CG6rRxUy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{AUlz4-kZ.js → CM5sQDq_.js} +1 -1
- package/build/client/_app/immutable/chunks/CM5sQDq_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CM5sQDq_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{UySfXNq7.js → CT_NYh_-.js} +1 -1
- package/build/client/_app/immutable/chunks/CT_NYh_-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CT_NYh_-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DPKdNiYi.js → CZIk93qi.js} +1 -1
- package/build/client/_app/immutable/chunks/CZIk93qi.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZIk93qi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B1t8v2wP.js → C_aXFBl3.js} +1 -1
- package/build/client/_app/immutable/chunks/C_aXFBl3.js.br +0 -0
- package/build/client/_app/immutable/chunks/C_aXFBl3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CqWPu3PG.js +1 -0
- package/build/client/_app/immutable/chunks/CqWPu3PG.js.br +1 -0
- package/build/client/_app/immutable/chunks/CqWPu3PG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CJFHBop_.js → CyncJW0D.js} +1 -1
- package/build/client/_app/immutable/chunks/CyncJW0D.js.br +0 -0
- package/build/client/_app/immutable/chunks/CyncJW0D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bmk_Voz6.js → D4sC5v3c.js} +1 -1
- package/build/client/_app/immutable/chunks/D4sC5v3c.js.br +0 -0
- package/build/client/_app/immutable/chunks/D4sC5v3c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{dbhDrJmm.js → D76YLq-2.js} +1 -1
- package/build/client/_app/immutable/chunks/D76YLq-2.js.br +0 -0
- package/build/client/_app/immutable/chunks/D76YLq-2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C20WvNRq.js → D8H_ivbb.js} +1 -1
- package/build/client/_app/immutable/chunks/D8H_ivbb.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8H_ivbb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Di37PX72.js → DU0OQtdJ.js} +1 -1
- package/build/client/_app/immutable/chunks/DU0OQtdJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DU0OQtdJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CYw9ugj1.js → Yk6ZJZnu.js} +1 -1
- package/build/client/_app/immutable/chunks/Yk6ZJZnu.js.br +0 -0
- package/build/client/_app/immutable/chunks/Yk6ZJZnu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BwntJtbK.js → jO4fmY1N.js} +1 -1
- package/build/client/_app/immutable/chunks/jO4fmY1N.js.br +0 -0
- package/build/client/_app/immutable/chunks/jO4fmY1N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dt_Zd6U2.js → snfmbqby.js} +1 -1
- package/build/client/_app/immutable/chunks/snfmbqby.js.br +0 -0
- package/build/client/_app/immutable/chunks/snfmbqby.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{_Zq76xnA.js → wx-wtMGx.js} +1 -1
- package/build/client/_app/immutable/chunks/wx-wtMGx.js.br +0 -0
- package/build/client/_app/immutable/chunks/wx-wtMGx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BkXArOra.js → zHL7lw4G.js} +1 -1
- package/build/client/_app/immutable/chunks/zHL7lw4G.js.br +0 -0
- package/build/client/_app/immutable/chunks/zHL7lw4G.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.vMZB8_Zr.js → app.DFSifnlU.js} +2 -2
- package/build/client/_app/immutable/entry/app.DFSifnlU.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DFSifnlU.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.2H5s3Lol.js +1 -0
- package/build/client/_app/immutable/entry/start.2H5s3Lol.js.br +1 -0
- package/build/client/_app/immutable/entry/start.2H5s3Lol.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.zcN3R_zF.js → 1.Djdw1GzA.js} +1 -1
- package/build/client/_app/immutable/nodes/{1.zcN3R_zF.js.br → 1.Djdw1GzA.js.br} +0 -0
- package/build/client/_app/immutable/nodes/1.Djdw1GzA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js +4 -0
- package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/{EventScatter.js-DqCMPeHG.js → EventScatter.js-D3Jaw_Cw.js} +7 -3
- package/build/server/chunks/chunks/{EventScatter.js-DqCMPeHG.js.map → EventScatter.js-D3Jaw_Cw.js.map} +1 -1
- package/build/server/chunks/chunks/{archive.js-C6rz09rJ.js → archive.js-C2D-5edp.js} +258 -19
- package/build/server/chunks/chunks/archive.js-C2D-5edp.js.map +1 -0
- package/build/server/chunks/chunks/{internal2.js-DDcktblR.js → internal2.js-BPo5dcDi.js} +2 -2
- package/build/server/chunks/chunks/{internal2.js-DDcktblR.js.map → internal2.js-BPo5dcDi.js.map} +1 -1
- package/build/server/chunks/chunks/{level-filter.js-H_AdNbCw.js → level-filter.js-B3o2hyWD.js} +32 -16
- package/build/server/chunks/chunks/level-filter.js-B3o2hyWD.js.map +1 -0
- package/build/server/chunks/chunks/{log-buffer.js-CpI7gyom.js → log-buffer.js-BI_gQOls.js} +118 -2
- package/build/server/chunks/chunks/log-buffer.js-BI_gQOls.js.map +1 -0
- package/build/server/chunks/chunks/series-buckets.js-BjigySff.js +290 -0
- package/build/server/chunks/chunks/series-buckets.js-BjigySff.js.map +1 -0
- package/build/server/chunks/chunks/{state.js-Dves8H8h.js → state.js-DgkwfYFo.js} +2 -2
- package/build/server/chunks/chunks/{state.js-Dves8H8h.js.map → state.js-DgkwfYFo.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/archive/{_server.ts.js-sNd3lS0y.js → _server.ts.js-83Ch7djd.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/archive/{_server.ts.js-sNd3lS0y.js.map → _server.ts.js-83Ch7djd.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/log-groups/{_server.ts.js-BGyWbj78.js → _server.ts.js-drLgUdvB.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/log-groups/{_server.ts.js-BGyWbj78.js.map → _server.ts.js-drLgUdvB.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/series/{_server.ts.js-DjGMqXKo.js → _server.ts.js-DOvBhEDU.js} +39 -8
- package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DOvBhEDU.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/stream/{_server.ts.js-C-XDemlx.js → _server.ts.js-BWRHawY8.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-BWRHawY8.js.map +1 -0
- package/build/server/chunks/entries/fallbacks/{error.svelte.js-DdUYlUJV.js → error.svelte.js-CsCL5PMW.js} +3 -3
- package/build/server/chunks/entries/fallbacks/{error.svelte.js-DdUYlUJV.js.map → error.svelte.js-CsCL5PMW.js.map} +1 -1
- package/build/server/chunks/entries/pages/{_page.svelte.js-B-kVwiNh.js → _page.svelte.js-qqtU0apo.js} +191 -28
- package/build/server/chunks/entries/pages/_page.svelte.js-qqtU0apo.js.map +1 -0
- package/build/server/chunks/{handler-BHf-eLnl.js → handler-DlfTB05m.js} +3 -3
- package/build/server/chunks/{handler-BHf-eLnl.js.map → handler-DlfTB05m.js.map} +1 -1
- package/build/server/chunks/{index.js-D6Auup1Z.js → index.js-BMrd9hfO.js} +2 -2
- package/build/server/chunks/{index.js-D6Auup1Z.js.map → index.js-BMrd9hfO.js.map} +1 -1
- package/build/server/chunks/{manifest.js-B3Q7n9I6.js → manifest.js-D1kCuVe5.js} +9 -9
- package/build/server/chunks/{manifest.js-B3Q7n9I6.js.map → manifest.js-D1kCuVe5.js.map} +1 -1
- package/build/server/chunks/nodes/{0.js-BMP_Yttt.js → 0.js-CNFDDPj5.js} +3 -3
- package/build/server/chunks/nodes/{0.js-BMP_Yttt.js.map → 0.js-CNFDDPj5.js.map} +1 -1
- package/build/server/chunks/nodes/{1.js-2HQHUOse.js → 1.js-B5FPLYnf.js} +3 -3
- package/build/server/chunks/nodes/{1.js-2HQHUOse.js.map → 1.js-B5FPLYnf.js.map} +1 -1
- package/build/server/chunks/nodes/{2.js-7RtHpiHN.js → 2.js-BEuxzw6b.js} +3 -3
- package/build/server/chunks/nodes/{2.js-7RtHpiHN.js.map → 2.js-BEuxzw6b.js.map} +1 -1
- package/dist/cli/index.js +127 -104
- package/dist/cli/ui.js +18 -3
- package/dist/lib/log-buffer.js +129 -0
- package/package.json +1 -1
- package/build/client/_app/immutable/assets/0.BQQ1YLPc.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BQQ1YLPc.css.gz +0 -0
- package/build/client/_app/immutable/chunks/AUlz4-kZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/AUlz4-kZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1t8v2wP.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1t8v2wP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B6nyufJR.js.br +0 -0
- package/build/client/_app/immutable/chunks/B6nyufJR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BR7qH0F5.js.br +0 -0
- package/build/client/_app/immutable/chunks/BR7qH0F5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BkXArOra.js.br +0 -0
- package/build/client/_app/immutable/chunks/BkXArOra.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bmk_Voz6.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bmk_Voz6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bp63j1zN.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bp63j1zN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BwntJtbK.js.br +0 -0
- package/build/client/_app/immutable/chunks/BwntJtbK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C20WvNRq.js.br +0 -0
- package/build/client/_app/immutable/chunks/C20WvNRq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDbeYGlD.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDbeYGlD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJFHBop_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJFHBop_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CYw9ugj1.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYw9ugj1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CjJd0uRB.js +0 -1
- package/build/client/_app/immutable/chunks/CjJd0uRB.js.br +0 -1
- package/build/client/_app/immutable/chunks/CjJd0uRB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CoEFQJcr.js.br +0 -0
- package/build/client/_app/immutable/chunks/CoEFQJcr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D-JtVVAo.js.br +0 -0
- package/build/client/_app/immutable/chunks/D-JtVVAo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJDlf6lC.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJDlf6lC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJLYkl5w.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJLYkl5w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DPKdNiYi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DPKdNiYi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQi7bc16.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQi7bc16.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVTgeA2y.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVTgeA2y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Di37PX72.js.br +0 -0
- package/build/client/_app/immutable/chunks/Di37PX72.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkyYNO4U.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkyYNO4U.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmRhEzIa.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmRhEzIa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dp8S9ymS.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dp8S9ymS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DslUcEd-.js.br +0 -0
- package/build/client/_app/immutable/chunks/DslUcEd-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dt_Zd6U2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dt_Zd6U2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DwezeuNE.js +0 -5
- package/build/client/_app/immutable/chunks/DwezeuNE.js.br +0 -0
- package/build/client/_app/immutable/chunks/DwezeuNE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PYzEcuyd.js.br +0 -0
- package/build/client/_app/immutable/chunks/PYzEcuyd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/UySfXNq7.js.br +0 -0
- package/build/client/_app/immutable/chunks/UySfXNq7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_Zq76xnA.js.br +0 -0
- package/build/client/_app/immutable/chunks/_Zq76xnA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dbhDrJmm.js.br +0 -0
- package/build/client/_app/immutable/chunks/dbhDrJmm.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.vMZB8_Zr.js.br +0 -0
- package/build/client/_app/immutable/entry/app.vMZB8_Zr.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.pM5lNk_5.js +0 -1
- package/build/client/_app/immutable/entry/start.pM5lNk_5.js.br +0 -0
- package/build/client/_app/immutable/entry/start.pM5lNk_5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.zcN3R_zF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DxevVqut.js +0 -2
- package/build/client/_app/immutable/nodes/2.DxevVqut.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DxevVqut.js.gz +0 -0
- package/build/server/chunks/chunks/archive.js-C6rz09rJ.js.map +0 -1
- package/build/server/chunks/chunks/level-filter.js-H_AdNbCw.js.map +0 -1
- package/build/server/chunks/chunks/log-buffer.js-CpI7gyom.js.map +0 -1
- package/build/server/chunks/chunks/series-buckets.js-CX_rWCeH.js +0 -123
- package/build/server/chunks/chunks/series-buckets.js-CX_rWCeH.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DjGMqXKo.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-C-XDemlx.js.map +0 -1
- package/build/server/chunks/entries/pages/_page.svelte.js-B-kVwiNh.js.map +0 -1
- /package/build/client/_app/immutable/nodes/{0.CZO0sIxX.js → 0.BN3NguWs.js} +0 -0
- /package/build/client/_app/immutable/nodes/{0.CZO0sIxX.js.br → 0.BN3NguWs.js.br} +0 -0
- /package/build/client/_app/immutable/nodes/{0.CZO0sIxX.js.gz → 0.BN3NguWs.js.gz} +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as e,P as t,R as n,a as r,bt as i,ft as a,ht as o,i as s,k as c,o as l,st as u,yt as d,z as f}from"./pqiPC7Y8.js";import"./xihTtKlq.js";import{M as p,t as m}from"./
|
|
1
|
+
import{J as e,P as t,R as n,a as r,bt as i,ft as a,ht as o,i as s,k as c,o as l,st as u,yt as d,z as f}from"./pqiPC7Y8.js";import"./xihTtKlq.js";import{M as p,t as m}from"./CyncJW0D.js";import{D as h,E as g}from"./BAynhd7i.js";import{t as _}from"./snfmbqby.js";import{t as v}from"./zHL7lw4G.js";import{n as y}from"./C_aXFBl3.js";import{C as b,S as x,b as S,w as C,x as w}from"./BGmgUZMc.js";var T=class{#e=()=>({});#t=o(()=>this.#e());ctx=m();constructor(e){this.#e=e}#n=o(()=>{let t=e(this.#t).seriesKey;return t?this.ctx.series.series.find(e=>e.key===t):void 0});get series(){return e(this.#n)}set series(e){a(this.#n,e)}#r=o(()=>this.series?this.series.value??(this.series.data?void 0:this.series.key):void 0);get seriesAccessor(){return e(this.#r)}set seriesAccessor(e){a(this.#r,e)}#i=o(()=>this.ctx.stackAccessorsFor({seriesKey:e(this.#t).seriesKey,stacksImplicitly:!0}));get stackAccessors(){return e(this.#i)}set stackAccessors(e){a(this.#i,e)}#a=o(()=>e(this.#t).x??(this.ctx.valueAxis===`x`?this.stackAccessors?.value??this.seriesAccessor:void 0)??this.ctx.x);get x(){return e(this.#a)}set x(e){a(this.#a,e)}#o=o(()=>e(this.#t).y??(this.ctx.valueAxis===`y`?this.stackAccessors?.value??this.seriesAccessor:void 0)??this.ctx.y);get y(){return e(this.#o)}set y(e){a(this.#o,e)}#s=o(()=>e(this.#t).x1);get x1(){return e(this.#s)}set x1(e){a(this.#s,e)}#c=o(()=>e(this.#t).y1);get y1(){return e(this.#c)}set y1(e){a(this.#c,e)}#l=o(()=>{let t=e(this.#t).seriesKey;return t?this.ctx.series.visibleSeries.findIndex(e=>e.key===t):void 0});get seriesIndex(){return e(this.#l)}set seriesIndex(e){a(this.#l,e)}#u=o(()=>this.ctx.series.visibleSeries.length);get seriesCount(){return e(this.#u)}set seriesCount(e){a(this.#u,e)}#d=o(()=>{let t=e(this.#t).stackPadding??0;if(this.ctx.series.stackLayout==null||t===0||this.seriesIndex===void 0)return;let n=this.seriesIndex===0,r=this.seriesIndex===this.seriesCount-1,i=t/2;return this.ctx.valueAxis===`y`?{bottom:n?void 0:i,top:r?void 0:i}:{left:n?void 0:i,right:r?void 0:i}});get stackInsets(){return e(this.#d)}set stackInsets(e){a(this.#d,e)}#f=o(()=>e(this.#t).insets??this.stackInsets);get insets(){return e(this.#f)}set insets(e){a(this.#f,e)}#p=o(()=>y(this.ctx,()=>({x:this.x,y:this.y,x1:this.x1,y1:this.y1,insets:this.insets})));get getDimensions(){return e(this.#p)}set getDimensions(e){a(this.#p,e)}#m=o(()=>this.getDimensions(e(this.#t).data)??{x:0,y:0,width:0,height:0});get scaleDimensions(){return e(this.#m)}set scaleDimensions(e){a(this.#m,e)}#h=o(()=>{let{x:t,y:n,width:r,height:i}=this.scaleDimensions,a=e(this.#t);return a.width!=null&&(t+=(r-a.width)/2,r=a.width),a.height!=null&&(n+=(i-a.height)/2,i=a.height),{x:t,y:n,width:r,height:i}});get dimensions(){return e(this.#h)}set dimensions(e){a(this.#h,e)}#g=o(()=>_(this.ctx.valueAxis===`y`?this.y:this.x));get valueAccessor(){return e(this.#g)}set valueAccessor(e){a(this.#g,e)}#_=o(()=>{let t=this.valueAccessor(e(this.#t).data);return Array.isArray(t)?p(t):t});get resolvedValue(){return e(this.#_)}set resolvedValue(e){a(this.#_,e)}#v=o(()=>{let t=g(e(this.#t).rounded,e(this.#t).data)??`all`;return t===`edge`?this.ctx.valueAxis===`y`?this.resolvedValue>=0&&this.ctx.yRange[0]>this.ctx.yRange[1]?`top`:`bottom`:this.resolvedValue>=0&&this.ctx.xRange[0]<this.ctx.xRange[1]?`right`:`left`:t});get rounded(){return e(this.#v)}set rounded(e){a(this.#v,e)}#y=o(()=>{let t=e(this.#t).radius??0,n=this.rounded,r=[`all`,`top`,`left`,`top-left`].includes(n),i=[`all`,`top`,`right`,`top-right`].includes(n),a=[`all`,`bottom`,`left`,`bottom-left`].includes(n),o=[`all`,`bottom`,`right`,`bottom-right`].includes(n);return[r?t:0,i?t:0,o?t:0,a?t:0]});get corners(){return e(this.#y)}set corners(e){a(this.#y,e)}#b=o(()=>{let t=e(this.#t);return t.initialY??(t.motion&&this.ctx.valueAxis===`y`?Math.max(this.ctx.yRange[0],this.ctx.yRange[1]):void 0)});get resolvedInitialY(){return e(this.#b)}set resolvedInitialY(e){a(this.#b,e)}#x=o(()=>{let t=e(this.#t);return t.initialHeight??(t.motion&&this.ctx.valueAxis===`y`?0:void 0)});get resolvedInitialHeight(){return e(this.#x)}set resolvedInitialHeight(e){a(this.#x,e)}#S=o(()=>{let t=e(this.#t);return t.initialX??(t.motion&&this.ctx.valueAxis===`x`?Math.min(this.ctx.xRange[0],this.ctx.xRange[1]):void 0)});get resolvedInitialX(){return e(this.#S)}set resolvedInitialX(e){a(this.#S,e)}#C=o(()=>{let t=e(this.#t);return t.initialWidth??(t.motion&&this.ctx.valueAxis===`x`?0:void 0)});get resolvedInitialWidth(){return e(this.#C)}set resolvedInitialWidth(e){a(this.#C,e)}},E=new Set(`$$slots.$$events.$$legacy.Rect.Arc.data.x.y.x1.y1.seriesKey.stackPadding.fill.fillOpacity.stroke.strokeWidth.opacity.radius.rounded.motion.insets.initialX.initialY.initialHeight.initialWidth.width.height.tooltip.onpointerenter.onpointermove.onpointerleave`.split(`.`));function D(a,p){i(p,!0);let m=s(p,`stackPadding`,3,0),h=s(p,`stroke`,3,`black`),_=s(p,`strokeWidth`,3,0),y=s(p,`radius`,3,0),b=s(p,`rounded`,3,`all`),x=r(p,E),S=o(()=>h()===null||h()===void 0?`black`:h()),C=o(()=>g(p.fillOpacity,p.data)),w=o(()=>g(_(),p.data)),D=o(()=>g(p.opacity,p.data)),O=new T(()=>({data:p.data,x:p.x,y:p.y,x1:p.x1,y1:p.y1,seriesKey:p.seriesKey,stackPadding:m(),radius:y(),rounded:b(),motion:p.motion,insets:p.insets,initialX:p.initialX,initialY:p.initialY,initialHeight:p.initialHeight,initialWidth:p.initialWidth,width:p.width,height:p.height,tooltip:p.tooltip})),k=e=>{p.onpointerenter?.(e),p.tooltip&&O.ctx.tooltip.show(e,p.data)},A=e=>{p.onpointermove?.(e),p.tooltip&&O.ctx.tooltip.show(e,p.data)},j=e=>{p.onpointerleave?.(e),p.tooltip&&O.ctx.tooltip.hide()};var M=f(),N=u(M),P=t=>{var r=f(),i=u(r);{let t=o(()=>O.dimensions.y+O.dimensions.height),n=o(()=>O.dimensions.x+O.dimensions.width),r=o(()=>v(x,`lc-bar`));c(i,()=>p.Arc,(i,a)=>{a(i,l({get innerRadius(){return O.dimensions.y},get outerRadius(){return e(t)},get startAngle(){return O.dimensions.x},get endAngle(){return e(n)},get fill(){return p.fill},get fillOpacity(){return e(C)},get stroke(){return e(S)},get strokeWidth(){return e(w)},get opacity(){return e(D)},get cornerRadius(){return y()},onpointerenter:k,onpointermove:A,onpointerleave:j},()=>e(r)))})}n(t,r)},F=t=>{var r=f(),i=u(r);{let t=o(()=>v(x,`lc-bar`));c(i,()=>p.Rect,(n,r)=>{r(n,l({get fill(){return p.fill},get fillOpacity(){return e(C)},get stroke(){return e(S)},get strokeWidth(){return e(w)},get opacity(){return e(D)},get corners(){return O.corners},get motion(){return p.motion},get initialX(){return O.resolvedInitialX},get initialY(){return O.resolvedInitialY},get initialHeight(){return O.resolvedInitialHeight},get initialWidth(){return O.resolvedInitialWidth}},()=>O.dimensions,{onpointerenter:k,onpointermove:A,onpointerleave:j},()=>e(t)))})}n(t,r)};t(N,e=>{O.ctx.radial&&p.Arc?e(P):e(F,-1)}),n(a,M),d()}var O=new Set([`$$slots`,`$$events`,`$$legacy`]);function k(e,t){let n=r(t,O);D(e,l({get Rect(){return x},get Arc(){return C}},()=>n))}var A=new Set([`$$slots`,`$$events`,`$$legacy`]);function j(e,t){let n=r(t,A);D(e,l({get Rect(){return w},get Arc(){return b}},()=>n))}var M=new Set([`$$slots`,`$$events`,`$$legacy`]);function N(e,t){let n=r(t,M);D(e,l({get Rect(){return S}},()=>n))}var P=new Set([`$$slots`,`$$events`,`$$legacy`]);function F(e,a){i(a,!0);let o=h(),s=r(a,P);var c=f(),p=u(c),m=e=>{k(e,l(()=>s))},g=e=>{j(e,l(()=>s))},_=e=>{N(e,l(()=>s))};t(p,e=>{o===`svg`?e(m):o===`canvas`?e(g,1):o===`html`&&e(_,2)}),n(e,c),d()}export{F as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as e,X as t,Y as n,Z as r,ft as i,gt as a,mt as o,n as s,t as c}from"./pqiPC7Y8.js";var l=class{constructor(e,t){this.status=e,this.body=typeof t==`string`?{message:t}:t||{message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},u=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},d=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function f(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function p(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function ee(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(){}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var te=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),te(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=_(e));let i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ne(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var re=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,ie=/^\/\((?:[^)]+)\)$/;function ae(e){let t=[];return{pattern:e===`/`||ie.test(e)?/^\/$/:RegExp(`^${se(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return le(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return le(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=re.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return le(e)}).join(``)}).join(``)}/?$`),params:t}}function oe(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function se(e){return e.slice(1).split(`/`).filter(oe)}function ce(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0){if(s.rest)c=``;else continue}if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function le(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ue({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ae(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ce(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function de(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function fe(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_bxtmu4?.base??``,pe=globalThis.__sveltekit_bxtmu4?.assets??x??``,me=`1789237317739`,he=`sveltekit:snapshot`,ge=`sveltekit:scroll`,_e=`sveltekit:states`,ve=`sveltekit:pageurl`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ye=location.origin;function be(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var xe={...w,"":w.hover};function Se(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Se(e)}}function we(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===ye&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=Se(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:xe[r??`off`],preload_data:xe[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Te(e){let t=a(e),n=!0;function r(){n=!0,t.update(e=>e)}function i(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:i,subscribe:o}}var Ee={v:h};function De(){let{set:e,subscribe:t}=a(!1),n;async function r(){clearTimeout(n);try{let t=await fetch(`${pe}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let r=(await t.json()).version!==me;return r&&(e(!0),Ee.v(),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:r}}function O(e,t,n){return e.origin!==ye||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Oe(e){}var ke=2**32-1-1,Ae=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function je(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Ae}function Me(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ne(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}function Pe(e){return!(!Number.isInteger(e)||e<0||e>ke)}function Fe(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<48||n>57)return!1}return Pe(+e)}function Ie(e){for(var t=e.length-1;t>=0&&!Fe(e[t]);t--);return t+1}function Le(e){let t=Object.keys(e);return t.length=Ie(t),t}Uint8Array.fromBase64,typeof process==`object`&&process.versions?.node;var Re=Object.freeze({kind:`not-plain`}),ze=Object.freeze({kind:`symbol-keys`});Object.freeze({identify:e=>e,typeOf:e=>e===null?`null`:typeof e,toPrimitive:e=>e,tagOf:e=>Me(e),isThenable:e=>typeof e.then==`function`,toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?``:e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>({buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>Le(e),shapeOf:e=>je(e)?Ne(e).length>0?ze:{kind:Object.getPrototypeOf(e)===null?`null-proto`:`plain`,keys:Object.keys(e)}:Re,get:(e,t)=>e[t]}),Object.freeze({fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e===`URL`?new URL(t):e===`URLSearchParams`?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,n,r)=>{let i=globalThis[e];return n===void 0?new i(t):new i(t,n,r)},box:e=>Object(e),createArray:e=>Array(e),createSparseArray:e=>{let t=[];return t[ke]=void 0,delete t[ke],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,n)=>{e[t]=n},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,n)=>{e.set(t,n)}});var Be=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...Be],[...new Set([...Be])];function Ve(e){return e.filter(e=>e!=null)}function k(e,t){return e+`/`+t}function He(e){return e instanceof l||e instanceof d?e.status:500}function Ue(e){return e instanceof d?e.text:`Internal Error`}var A,j,We,Ge=s.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(s.toString()),Ke=`a:`;Ge?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Ke)},j={current:null},We={current:!1}):(A=new class{#e=o({});get data(){return e(this.#e)}set data(e){i(this.#e,e)}#t=o(null);get form(){return e(this.#t)}set form(e){i(this.#t,e)}#n=o(null);get error(){return e(this.#n)}set error(e){i(this.#n,e)}#r=o({});get params(){return e(this.#r)}set params(e){i(this.#r,e)}#i=o({id:null});get route(){return e(this.#i)}set route(e){i(this.#i,e)}#a=o({});get state(){return e(this.#a)}set state(e){i(this.#a,e)}#o=o(-1);get status(){return e(this.#o)}set status(e){i(this.#o,e)}#s=o(new URL(Ke));get url(){return e(this.#s)}set url(e){i(this.#s,e)}},j=new class{#e=o(null);get current(){return e(this.#e)}set current(e){i(this.#e,e)}},We=new class{#e=o(!1);get current(){return e(this.#e)}set current(e){i(this.#e,e)}},Ee.v=()=>We.current=!0);function qe(e){Object.assign(A,e)}var{onMount:Je,tick:Ye}=c,Xe=r??(e=>e()),Ze=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=de(`sveltekit:scroll`)??{},P=de(`sveltekit:snapshot`)??{},F={url:Te({}),page:Te({}),navigating:a(null),updated:De()};function Qe(e){N[e]=T()}function $e(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function et(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}var tt,nt,L,R,rt,z,it={},at={},B=[],V=[],H=null;function ot(){H?.fork?.then(e=>e?.discard()),H=null,Q={element:void 0,href:void 0}}var st=new Map,ct=new Set,lt=new Set,U=new Set,W={branch:[],error:null,url:null,nav:null},ut=!1,G=!1,dt=!0,K=!1,q=!1,ft=!1,pt=!1,mt,J,Y,X,ht=new Set,gt=new Map,_t=new Map;async function vt(e,t,n){if(globalThis.__sveltekit_bxtmu4.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_bxtmu4.data;for(let t in e)it[t]=e[t];for(let e in n)it[e]=n[e];for(let e in r)it[e]=r[e];for(let e in t)at[e]=t[e]}document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),tt=ue(e),R=document.documentElement,rt=t,nt=e.nodes[0],L=e.nodes[1],nt(),L(),J=history.state?.[S],Y=history.state?.[C],J||(J=Y=Date.now(),history.replaceState({...history.state,[S]:J,[C]:Y},``));let r=N[J];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await qt(rt,n)):(await Z({type:`enter`,url:be(z.hash?$t(new URL(location.href)):location.href),replace_state:!0}),i()),Kt()}function yt(){B.length=0,pt=!1}function bt(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function xt(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function St(){Qe(J),fe(ge,N),bt(Y),fe(he,P)}async function Ct(e,n,r,i){let a,o;n.invalidateAll&&ot(),await Z({type:`goto`,url:be(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){pt=!0,a=new Set;for(let[e,t]of gt)for(let[n,r]of t)r.resource?.reset(),a.add(k(e,n));o=new Set;for(let[e,t]of _t)for(let n of t.keys())o.add(k(e,n))}n.invalidate&&n.invalidate.forEach(Wt)}}),n.invalidateAll&&t().then(t).then(()=>{for(let[e,t]of gt)for(let[n,{resource:r}]of t)a?.has(k(e,n))&&r.start();for(let[e,t]of _t)for(let[n,{resource:r}]of t)o?.has(k(e,n))&&r.reconnect()})}async function wt(e){if(e.id!==H?.id){ot();let t={};ht.add(t),H={id:e.id,token:t,promise:Pt({...e,preload:t}).then(e=>(ht.delete(t),e.type===`loaded`&&e.state.error&&ot(),e)),fork:null}}return H.promise}async function Tt(e){let t=(await Rt(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function Et(e,t,n){let r={params:W.params,route:{id:W.route?.id??null},url:new URL(location.href)};if(W={...e.state,nav:r},qe(e.props.page),mt=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:N[J]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};U.forEach(t=>t(e))}xt(Y),G=!0}async function Dt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=f(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Ve(n).map(e=>e.node.component),page:Qt(A)}};s!==void 0&&(l.props.form=s);let u={},d=!A,p=0;for(let e=0;e<Math.max(n.length,W.branch.length);e+=1){let t=n[e],r=W.branch[e];t?.data!==r?.data&&(d=!0),t&&(u={...u,...t.data},d&&(l.props[`data_${p}`]=u),p+=1)}return(!W.url||e.href!==W.url.href||W.error!==a||s!==void 0&&s!==A.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?u:A.data}),l}async function Ot({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:a,universal:s.universal?.load?{type:`data`,data:null,uses:o}:null,data:a?.data??null,slash:s.universal?.trailingSlash??a?.slash}}function kt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:G?ne(r,i.href,t):y(r,t)}}function At(e,t,n,r,i,a){if(pt)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==W.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function jt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Mt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function Nt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Qt(A),constructors:[]}}}async function Pt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return ht.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:c}=i,d=[...s,c];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=W.url?e!==Bt(W.url):!1,p=W.route?i.id!==W.route.id:!1,ee=Mt(W.url,n),m=!1,g=d.map(async(e,t)=>{if(!e)return;let a=W.branch[t];return e[1]===a?.loader&&!At(m,p,f,ee,a.universal?.uses,r)?a:(m=!0,Ot({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:jt(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(h);let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof u)return{type:`redirect`,location:t.location};if(a&&ht.has(a))return Nt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=He(t),c;if(t instanceof l)c=t.body;else{if(await F.updated.check())return await et(),await I(n);c=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await Ft(e,_,o);return d?Dt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:c,route:i}):await Ht(n,{id:i.id},c,s)}else _.push(void 0);return Dt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function Ft(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function It({status:e,error:t,url:n,route:r}){let i={};try{return Dt({url:n,params:i,branch:[await Ot({loader:nt,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:jt(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof u){await Ct(new URL(t.location,location.href),{},0);return}let a=await z.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function Lt(e){let t=e.href;if(st.has(t))return st.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>kt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();st.set(t,r),n=await r}catch{st.delete(t);return}return n}async function Rt(e,t){if(e&&!O(e,x,z.hash)){let n=await Lt(e);if(!n)return;let r=zt(n);for(let n of tt){let i=n.exec(r);if(i)return{id:Bt(e),invalidating:t,route:n,params:ee(i),url:e}}}}function zt(e){return p(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function Bt(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Vt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Zt(W,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return K||ct.forEach(e=>e(c)),o?null:s}async function Z({type:e,url:r,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:u={},accept:f=h,block:p=h,event:ee}){let m=X;X=u;let g=await Rt(r,!1),_=e===`enter`?Zt(W,g,r,e):Vt({url:r,type:e,delta:i?.delta,intent:g,scroll:i?.scroll,event:ee});if(!_){p(),X===u&&(X=m);return}let te=J,v=Y;f(),K=!0,G&&_.navigation.type!==`enter`&&F.navigating.set(j.current=_.navigation);let y=g&&await Pt(g);if(!y){if(O(r,x,z.hash))return await I(r,s);y=await Ht(r,{id:null},await $(new d(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=g?.url||r,X!==u){_.reject(Error(`navigation aborted`));return}if(!y)return;if(y.type===`redirect`){if(l<20){await Z({type:e,url:new URL(y.location,r),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:u}),_.fulfil(void 0);return}if(y=await It({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}}),!y)return}else if(y.props.page.status>=400&&await F.updated.check())return await et(),await I(r,s);if(yt(),Qe(te),bt(v),y.props.page.url.pathname!==r.pathname&&(r.pathname=y.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[S]:J+=e,[C]:Y+=e,[_e]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||$e(J,Y)}let ne=g&&H?.id===g.id?H.fork:null;H?.fork&&!ne?ot():(H=null,Q={element:void 0,href:void 0}),y.props.page.state=c;let b;if(G){let e=(await Promise.all(Array.from(lt,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{U.delete(e)})}e.push(t),e.forEach(e=>{U.add(e)})}let t=_.navigation.to;W={...y.state,nav:{params:t.params,route:t.route,url:t.url}},y.props.page&&(y.props.page.url=r),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=ne&&await ne;i?b=i.commit():(M=null,mt.$set(y.props),M&&Object.assign(y.props.page,M),qe(y.props.page),b=n?.()),ft=!0}else await Et(y,rt,!1);let{activeElement:re}=document;if(await b,await t(),await t(),X!==u){_.reject(Error(`navigation aborted`));return}y.props.page&&M&&Object.assign(y.props.page,M);let ie=null;if(dt){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(ie=r.hash&&document.getElementById(en(r)))?ie.scrollIntoView():scrollTo(0,0)}let ae=document.activeElement!==re&&document.activeElement!==document.body;!a&&!ae&&Xt(r,!ie),dt=!0,K=!1,_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),U.forEach(e=>e(_.navigation)),e===`popstate`&&xt(Y),F.navigating.set(j.current=null)}async function Ht(e,t,n,r,i){return e.origin===ye&&e.pathname===location.pathname&&!ut?await It({status:r,error:n,url:e,route:t}):await I(e,i)}var Q={element:void 0,href:void 0};function Ut(){let e,t;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,w.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,n),R.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(Tt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=Ce(e,R),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=we(r,x,z.hash);if(o||s)return;let c=D(r),l=a&&Bt(W.url)===Bt(a);if(!(c.reload||l)){if(n<=c.preload_data){Q={element:r,href:r.href},t=w.tap;let e=await Rt(a,!1);if(!e)return;wt(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,Tt(a))}}function a(){r.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:i}=we(e,x,z.hash);if(n||i)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&r.observe(e),a.preload_code===w.eager&&Tt(t))}}U.add(a),a()}function $(e,t){if(e instanceof l)return e.body;let n=He(e),r=Ue(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Wt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function Gt(e,t){let n={[S]:J,[C]:Y,[ve]:A.url.href,[_e]:t};history.replaceState(n,``,be(e)),A.state=t,mt.$set({page:Xe(()=>Qt(A))})}function Kt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(St(),!K){let e=Zt(W,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};ct.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&St()}),navigator.connection?.saveData||Ut(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=Ce(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=we(n,x,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=D(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Vt({url:r,type:`link`,event:t})?K=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=W.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(q=!0,Qe(J),e(r),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(O(r,x,!1))return;let i=e.target,a=D(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Yt){if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(X={},n===J)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=W.url?m(location)===m(W.url):!1;if(o===Y&&(ft||s)){i!==A.state&&(A.state=i),e(a),N[J]=T(),r&&scrollTo(r.x,r.y),J=n;return}let c=n-J;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{J=n,Y=o},block:()=>{history.go(-c)},nav_token:X,event:t})}else q||(e(new URL(location.href)),z.hash&&location.reload())}}),addEventListener(`hashchange`,()=>{q&&(q=!1,history.replaceState({...history.state,[S]:++J,[C]:Y},``,location.href))});for(let e of document.querySelectorAll(`link`))Ze.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(j.current=null)});function e(e){W.url=A.url=e,F.page.set(Qt(A)),F.page.notify()}}async function qt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){ut=!0;let l=new URL(location.href),d;({params:i={},route:a={id:null}}=await Rt(l,!1)||{}),d=tt.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Jt(r.uses)),Ot({loader:z.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:jt(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await Dt({url:l,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof u)return await I(new URL(t.location,location.href));f=await It({status:He(t),error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await Et(f,e,p))}function Jt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Yt=!1;function Xt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=en(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Yt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Yt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Zt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Qt(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function $t(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function en(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Oe as a,A as i,vt as n,j as r,Gt as t};
|
|
1
|
+
import{J as e,X as t,Y as n,Z as r,ft as i,gt as a,mt as o,n as s,t as c}from"./pqiPC7Y8.js";var l=class{constructor(e,t){this.status=e,this.body=typeof t==`string`?{message:t}:t||{message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},u=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},d=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function f(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function p(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function ee(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(){}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var te=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),te(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=_(e));let i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ne(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var re=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,ie=/^\/\((?:[^)]+)\)$/;function ae(e){let t=[];return{pattern:e===`/`||ie.test(e)?/^\/$/:RegExp(`^${se(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return le(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return le(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=re.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return le(e)}).join(``)}).join(``)}/?$`),params:t}}function oe(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function se(e){return e.slice(1).split(`/`).filter(oe)}function ce(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0){if(s.rest)c=``;else continue}if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function le(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ue({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ae(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ce(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function de(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function fe(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_owmmlz?.base??``,pe=globalThis.__sveltekit_owmmlz?.assets??x??``,me=`1789367720442`,he=`sveltekit:snapshot`,ge=`sveltekit:scroll`,_e=`sveltekit:states`,ve=`sveltekit:pageurl`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ye=location.origin;function be(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var xe={...w,"":w.hover};function Se(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Se(e)}}function we(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===ye&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=Se(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:xe[r??`off`],preload_data:xe[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Te(e){let t=a(e),n=!0;function r(){n=!0,t.update(e=>e)}function i(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:i,subscribe:o}}var Ee={v:h};function De(){let{set:e,subscribe:t}=a(!1),n;async function r(){clearTimeout(n);try{let t=await fetch(`${pe}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let r=(await t.json()).version!==me;return r&&(e(!0),Ee.v(),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:r}}function O(e,t,n){return e.origin!==ye||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Oe(e){}var ke=2**32-1-1,Ae=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function je(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Ae}function Me(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ne(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}function Pe(e){return!(!Number.isInteger(e)||e<0||e>ke)}function Fe(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<48||n>57)return!1}return Pe(+e)}function Ie(e){for(var t=e.length-1;t>=0&&!Fe(e[t]);t--);return t+1}function Le(e){let t=Object.keys(e);return t.length=Ie(t),t}Uint8Array.fromBase64,typeof process==`object`&&process.versions?.node;var Re=Object.freeze({kind:`not-plain`}),ze=Object.freeze({kind:`symbol-keys`});Object.freeze({identify:e=>e,typeOf:e=>e===null?`null`:typeof e,toPrimitive:e=>e,tagOf:e=>Me(e),isThenable:e=>typeof e.then==`function`,toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?``:e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>({buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>Le(e),shapeOf:e=>je(e)?Ne(e).length>0?ze:{kind:Object.getPrototypeOf(e)===null?`null-proto`:`plain`,keys:Object.keys(e)}:Re,get:(e,t)=>e[t]}),Object.freeze({fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e===`URL`?new URL(t):e===`URLSearchParams`?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,n,r)=>{let i=globalThis[e];return n===void 0?new i(t):new i(t,n,r)},box:e=>Object(e),createArray:e=>Array(e),createSparseArray:e=>{let t=[];return t[ke]=void 0,delete t[ke],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,n)=>{e[t]=n},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,n)=>{e.set(t,n)}});var Be=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...Be],[...new Set([...Be])];function Ve(e){return e.filter(e=>e!=null)}function k(e,t){return e+`/`+t}function He(e){return e instanceof l||e instanceof d?e.status:500}function Ue(e){return e instanceof d?e.text:`Internal Error`}var A,j,We,Ge=s.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(s.toString()),Ke=`a:`;Ge?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Ke)},j={current:null},We={current:!1}):(A=new class{#e=o({});get data(){return e(this.#e)}set data(e){i(this.#e,e)}#t=o(null);get form(){return e(this.#t)}set form(e){i(this.#t,e)}#n=o(null);get error(){return e(this.#n)}set error(e){i(this.#n,e)}#r=o({});get params(){return e(this.#r)}set params(e){i(this.#r,e)}#i=o({id:null});get route(){return e(this.#i)}set route(e){i(this.#i,e)}#a=o({});get state(){return e(this.#a)}set state(e){i(this.#a,e)}#o=o(-1);get status(){return e(this.#o)}set status(e){i(this.#o,e)}#s=o(new URL(Ke));get url(){return e(this.#s)}set url(e){i(this.#s,e)}},j=new class{#e=o(null);get current(){return e(this.#e)}set current(e){i(this.#e,e)}},We=new class{#e=o(!1);get current(){return e(this.#e)}set current(e){i(this.#e,e)}},Ee.v=()=>We.current=!0);function qe(e){Object.assign(A,e)}var{onMount:Je,tick:Ye}=c,Xe=r??(e=>e()),Ze=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=de(`sveltekit:scroll`)??{},P=de(`sveltekit:snapshot`)??{},F={url:Te({}),page:Te({}),navigating:a(null),updated:De()};function Qe(e){N[e]=T()}function $e(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function et(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}var tt,nt,L,R,rt,z,it={},at={},B=[],V=[],H=null;function ot(){H?.fork?.then(e=>e?.discard()),H=null,Q={element:void 0,href:void 0}}var st=new Map,ct=new Set,lt=new Set,U=new Set,W={branch:[],error:null,url:null,nav:null},ut=!1,G=!1,dt=!0,K=!1,q=!1,ft=!1,pt=!1,mt,J,Y,X,ht=new Set,gt=new Map,_t=new Map;async function vt(e,t,n){if(globalThis.__sveltekit_owmmlz.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_owmmlz.data;for(let t in e)it[t]=e[t];for(let e in n)it[e]=n[e];for(let e in r)it[e]=r[e];for(let e in t)at[e]=t[e]}document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),tt=ue(e),R=document.documentElement,rt=t,nt=e.nodes[0],L=e.nodes[1],nt(),L(),J=history.state?.[S],Y=history.state?.[C],J||(J=Y=Date.now(),history.replaceState({...history.state,[S]:J,[C]:Y},``));let r=N[J];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await qt(rt,n)):(await Z({type:`enter`,url:be(z.hash?$t(new URL(location.href)):location.href),replace_state:!0}),i()),Kt()}function yt(){B.length=0,pt=!1}function bt(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function xt(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function St(){Qe(J),fe(ge,N),bt(Y),fe(he,P)}async function Ct(e,n,r,i){let a,o;n.invalidateAll&&ot(),await Z({type:`goto`,url:be(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){pt=!0,a=new Set;for(let[e,t]of gt)for(let[n,r]of t)r.resource?.reset(),a.add(k(e,n));o=new Set;for(let[e,t]of _t)for(let n of t.keys())o.add(k(e,n))}n.invalidate&&n.invalidate.forEach(Wt)}}),n.invalidateAll&&t().then(t).then(()=>{for(let[e,t]of gt)for(let[n,{resource:r}]of t)a?.has(k(e,n))&&r.start();for(let[e,t]of _t)for(let[n,{resource:r}]of t)o?.has(k(e,n))&&r.reconnect()})}async function wt(e){if(e.id!==H?.id){ot();let t={};ht.add(t),H={id:e.id,token:t,promise:Pt({...e,preload:t}).then(e=>(ht.delete(t),e.type===`loaded`&&e.state.error&&ot(),e)),fork:null}}return H.promise}async function Tt(e){let t=(await Rt(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function Et(e,t,n){let r={params:W.params,route:{id:W.route?.id??null},url:new URL(location.href)};if(W={...e.state,nav:r},qe(e.props.page),mt=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:N[J]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};U.forEach(t=>t(e))}xt(Y),G=!0}async function Dt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=f(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Ve(n).map(e=>e.node.component),page:Qt(A)}};s!==void 0&&(l.props.form=s);let u={},d=!A,p=0;for(let e=0;e<Math.max(n.length,W.branch.length);e+=1){let t=n[e],r=W.branch[e];t?.data!==r?.data&&(d=!0),t&&(u={...u,...t.data},d&&(l.props[`data_${p}`]=u),p+=1)}return(!W.url||e.href!==W.url.href||W.error!==a||s!==void 0&&s!==A.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?u:A.data}),l}async function Ot({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:a,universal:s.universal?.load?{type:`data`,data:null,uses:o}:null,data:a?.data??null,slash:s.universal?.trailingSlash??a?.slash}}function kt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:G?ne(r,i.href,t):y(r,t)}}function At(e,t,n,r,i,a){if(pt)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==W.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function jt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Mt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function Nt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Qt(A),constructors:[]}}}async function Pt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return ht.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:c}=i,d=[...s,c];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=W.url?e!==Bt(W.url):!1,p=W.route?i.id!==W.route.id:!1,ee=Mt(W.url,n),m=!1,g=d.map(async(e,t)=>{if(!e)return;let a=W.branch[t];return e[1]===a?.loader&&!At(m,p,f,ee,a.universal?.uses,r)?a:(m=!0,Ot({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:jt(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(h);let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof u)return{type:`redirect`,location:t.location};if(a&&ht.has(a))return Nt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=He(t),c;if(t instanceof l)c=t.body;else{if(await F.updated.check())return await et(),await I(n);c=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await Ft(e,_,o);return d?Dt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:c,route:i}):await Ht(n,{id:i.id},c,s)}else _.push(void 0);return Dt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function Ft(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function It({status:e,error:t,url:n,route:r}){let i={};try{return Dt({url:n,params:i,branch:[await Ot({loader:nt,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:jt(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof u){await Ct(new URL(t.location,location.href),{},0);return}let a=await z.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function Lt(e){let t=e.href;if(st.has(t))return st.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>kt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();st.set(t,r),n=await r}catch{st.delete(t);return}return n}async function Rt(e,t){if(e&&!O(e,x,z.hash)){let n=await Lt(e);if(!n)return;let r=zt(n);for(let n of tt){let i=n.exec(r);if(i)return{id:Bt(e),invalidating:t,route:n,params:ee(i),url:e}}}}function zt(e){return p(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function Bt(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Vt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Zt(W,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return K||ct.forEach(e=>e(c)),o?null:s}async function Z({type:e,url:r,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:u={},accept:f=h,block:p=h,event:ee}){let m=X;X=u;let g=await Rt(r,!1),_=e===`enter`?Zt(W,g,r,e):Vt({url:r,type:e,delta:i?.delta,intent:g,scroll:i?.scroll,event:ee});if(!_){p(),X===u&&(X=m);return}let te=J,v=Y;f(),K=!0,G&&_.navigation.type!==`enter`&&F.navigating.set(j.current=_.navigation);let y=g&&await Pt(g);if(!y){if(O(r,x,z.hash))return await I(r,s);y=await Ht(r,{id:null},await $(new d(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=g?.url||r,X!==u){_.reject(Error(`navigation aborted`));return}if(!y)return;if(y.type===`redirect`){if(l<20){await Z({type:e,url:new URL(y.location,r),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:u}),_.fulfil(void 0);return}if(y=await It({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}}),!y)return}else if(y.props.page.status>=400&&await F.updated.check())return await et(),await I(r,s);if(yt(),Qe(te),bt(v),y.props.page.url.pathname!==r.pathname&&(r.pathname=y.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[S]:J+=e,[C]:Y+=e,[_e]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||$e(J,Y)}let ne=g&&H?.id===g.id?H.fork:null;H?.fork&&!ne?ot():(H=null,Q={element:void 0,href:void 0}),y.props.page.state=c;let b;if(G){let e=(await Promise.all(Array.from(lt,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{U.delete(e)})}e.push(t),e.forEach(e=>{U.add(e)})}let t=_.navigation.to;W={...y.state,nav:{params:t.params,route:t.route,url:t.url}},y.props.page&&(y.props.page.url=r),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=ne&&await ne;i?b=i.commit():(M=null,mt.$set(y.props),M&&Object.assign(y.props.page,M),qe(y.props.page),b=n?.()),ft=!0}else await Et(y,rt,!1);let{activeElement:re}=document;if(await b,await t(),await t(),X!==u){_.reject(Error(`navigation aborted`));return}y.props.page&&M&&Object.assign(y.props.page,M);let ie=null;if(dt){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(ie=r.hash&&document.getElementById(en(r)))?ie.scrollIntoView():scrollTo(0,0)}let ae=document.activeElement!==re&&document.activeElement!==document.body;!a&&!ae&&Xt(r,!ie),dt=!0,K=!1,_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),U.forEach(e=>e(_.navigation)),e===`popstate`&&xt(Y),F.navigating.set(j.current=null)}async function Ht(e,t,n,r,i){return e.origin===ye&&e.pathname===location.pathname&&!ut?await It({status:r,error:n,url:e,route:t}):await I(e,i)}var Q={element:void 0,href:void 0};function Ut(){let e,t;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,w.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,n),R.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(Tt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=Ce(e,R),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=we(r,x,z.hash);if(o||s)return;let c=D(r),l=a&&Bt(W.url)===Bt(a);if(!(c.reload||l)){if(n<=c.preload_data){Q={element:r,href:r.href},t=w.tap;let e=await Rt(a,!1);if(!e)return;wt(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,Tt(a))}}function a(){r.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:i}=we(e,x,z.hash);if(n||i)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&r.observe(e),a.preload_code===w.eager&&Tt(t))}}U.add(a),a()}function $(e,t){if(e instanceof l)return e.body;let n=He(e),r=Ue(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Wt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function Gt(e,t){let n={[S]:J,[C]:Y,[ve]:A.url.href,[_e]:t};history.replaceState(n,``,be(e)),A.state=t,mt.$set({page:Xe(()=>Qt(A))})}function Kt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(St(),!K){let e=Zt(W,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};ct.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&St()}),navigator.connection?.saveData||Ut(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=Ce(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=we(n,x,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=D(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Vt({url:r,type:`link`,event:t})?K=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=W.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(q=!0,Qe(J),e(r),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(O(r,x,!1))return;let i=e.target,a=D(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Yt){if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(X={},n===J)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=W.url?m(location)===m(W.url):!1;if(o===Y&&(ft||s)){i!==A.state&&(A.state=i),e(a),N[J]=T(),r&&scrollTo(r.x,r.y),J=n;return}let c=n-J;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{J=n,Y=o},block:()=>{history.go(-c)},nav_token:X,event:t})}else q||(e(new URL(location.href)),z.hash&&location.reload())}}),addEventListener(`hashchange`,()=>{q&&(q=!1,history.replaceState({...history.state,[S]:++J,[C]:Y},``,location.href))});for(let e of document.querySelectorAll(`link`))Ze.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(j.current=null)});function e(e){W.url=A.url=e,F.page.set(Qt(A)),F.page.notify()}}async function qt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){ut=!0;let l=new URL(location.href),d;({params:i={},route:a={id:null}}=await Rt(l,!1)||{}),d=tt.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Jt(r.uses)),Ot({loader:z.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:jt(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await Dt({url:l,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof u)return await I(new URL(t.location,location.href));f=await It({status:He(t),error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await Et(f,e,p))}function Jt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Yt=!1;function Xt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=en(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Yt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Yt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Zt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Qt(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function $t(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function en(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Oe as a,A as i,vt as n,j as r,Gt as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,J as t,M as n,P as r,R as i,a,bt as o,ft as s,ht as c,i as l,j as u,k as d,o as f,st as p,yt as m,z as h}from"./pqiPC7Y8.js";import"./xihTtKlq.js";import{t as g}from"./
|
|
1
|
+
import{A as e,J as t,M as n,P as r,R as i,a,bt as o,ft as s,ht as c,i as l,j as u,k as d,o as f,st as p,yt as m,z as h}from"./pqiPC7Y8.js";import"./xihTtKlq.js";import{t as g}from"./CyncJW0D.js";import{g as _,y as v}from"./BAynhd7i.js";import{t as y}from"./snfmbqby.js";import{i as b}from"./DU0OQtdJ.js";import{t as x}from"./zHL7lw4G.js";import{t as S}from"./BR2LaRms.js";import{n as C,r as w,t as T}from"./D8H_ivbb.js";var E=class{#e=()=>({});#t=c(()=>this.#e());ctx=g();markData=v();geo=_();constructor(e){this.#e=e,this.ctx.registerComponent({name:`Points`,kind:`mark`,markInfo:()=>{let e=t(this.#t);return{data:e.data,x:e.x,y:e.y,seriesKey:e.seriesKey,color:e.fill??e.stroke}}})}#n=c(()=>this.ctx.series.series.find(e=>e.key===t(this.#t).seriesKey));get series(){return t(this.#n)}set series(e){s(this.#n,e)}#r=c(()=>this.series?.value??(this.series?.data?void 0:this.series?.key));get seriesAccessor(){return t(this.#r)}set seriesAccessor(e){s(this.#r,e)}#i=c(()=>this.ctx.stackAccessorsFor({seriesKey:t(this.#t).seriesKey,ownData:t(this.#t).data!=null}));get stackAccessors(){return t(this.#i)}set stackAccessors(e){s(this.#i,e)}#a=c(()=>y(t(this.#t).x??(this.ctx.valueAxis===`x`?this.seriesAccessor:void 0)??this.ctx.x));get xAccessor(){return t(this.#a)}set xAccessor(e){s(this.#a,e)}#o=c(()=>{let e=t(this.#t);return e.y?y(e.y):this.stackAccessors?this.stackAccessors.y1:Array.isArray(this.seriesAccessor)&&this.ctx.valueAxis===`y`?y(this.seriesAccessor[1]):y((this.ctx.valueAxis===`y`?this.seriesAccessor:void 0)??this.ctx.y)});get yAccessor(){return t(this.#o)}set yAccessor(e){s(this.#o,e)}#s=c(()=>this.markData(t(this.#t).data??this.series?.data));get pointsData(){return t(this.#s)}set pointsData(e){s(this.#s,e)}#c(e,n,r,i){let a=t(this.#t).seriesKey;return typeof n==`function`?n(e,this.ctx):n??(i&&a?i(a)+(i.bandwidth?.()??0)/2:b(r)&&!this.ctx.radial?r.bandwidth()/2:0)}#l(e,n,r,i){let a=t(this.#t);if(this.geo.projection){let[t,o]=this.geo.projection([e,n])??[0,0];return{x:t,y:o,r:this.ctx.config.r?this.ctx.rGet(r):a.r??5,xValue:e,yValue:n,data:r,edgeIndex:i}}let o=this.ctx.xScale(e),s=this.ctx.yScale(n),c=o+this.#c(o,a.offsetX,this.ctx.xScale,this.ctx.x1Scale??void 0),l=s+this.#c(s,a.offsetY,this.ctx.yScale,this.ctx.y1Scale??void 0),u=S(c,l);return{x:this.ctx.radial?u[0]:c,y:this.ctx.radial?u[1]:l,r:this.ctx.config.r?this.ctx.rGet(r):a.r??5,xValue:e,yValue:n,data:r,edgeIndex:i}}#u=c(()=>this.pointsData.flatMap(e=>{let t=this.xAccessor(e),n=this.yAccessor(e);return Array.isArray(t)?t.filter(Boolean).map((t,r)=>this.#l(t,n,e,r)):Array.isArray(n)?n.filter(Boolean).map((n,r)=>this.#l(t,n,e,r)):t!=null&&n!=null?this.#l(t,n,e):[]}));get points(){return t(this.#u)}set points(e){s(this.#u,e)}},D=new Set([`$$slots`,`$$events`,`$$legacy`,`Circle`,`data`,`x`,`y`,`seriesKey`,`r`,`offsetX`,`offsetY`,`fill`,`fillOpacity`,`stroke`,`strokeWidth`,`opacity`,`children`]);function O(s,g){o(g,!0);let _=l(g,`r`,3,5),v=a(g,D),y=new E(()=>({data:g.data,x:g.x,y:g.y,seriesKey:g.seriesKey,r:_(),offsetX:g.offsetX,offsetY:g.offsetY,fill:g.fill,fillOpacity:g.fillOpacity,stroke:g.stroke,strokeWidth:g.strokeWidth,opacity:g.opacity}));function b(e){let t=y.ctx.cKey(e);return t==null?y.series?.key==null||y.ctx.series.visibleSeries.length<=1||y.ctx.series.isHighlighted(y.series.key,!0)?1:.1:y.ctx.series.isHighlighted(t,!0)?1:.1}var S=h(),C=p(S),w=t=>{var n=h(),r=p(n);e(r,()=>g.children,()=>({points:y.points})),i(t,n)},T=e=>{var r=h(),a=p(r);u(a,17,()=>y.points,n,(e,n)=>{var r=h(),a=p(r);{let e=c(()=>g.fill??y.series?.color??(y.ctx.config.c?y.ctx.cGet(t(n).data):null)),r=c(()=>g.opacity??b(t(n).data)),i=c(()=>x(v,`lc-point`));d(a,()=>g.Circle,(a,o)=>{o(a,f({get cx(){return t(n).x},get cy(){return t(n).y},get r(){return t(n).r},get fill(){return t(e)},get fillOpacity(){return g.fillOpacity},get stroke(){return g.stroke},get strokeWidth(){return g.strokeWidth},get opacity(){return t(r)}},()=>y.series?.props,()=>t(i)))})}i(e,r)}),i(e,r)};r(C,e=>{g.children?e(w):e(T,-1)}),i(s,S),m()}var k=new Set([`$$slots`,`$$events`,`$$legacy`]);function A(e,t){let n=a(t,k);O(e,f({get Circle(){return w}},()=>n))}var j=new Set([`$$slots`,`$$events`,`$$legacy`]);function M(e,t){let n=a(t,j);O(e,f({get Circle(){return C}},()=>n))}var N=new Set([`$$slots`,`$$events`,`$$legacy`]);function P(e,t){let n=a(t,N);O(e,f({get Circle(){return T}},()=>n))}export{M as n,A as r,P as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
function e(e){if(typeof e!=`string`)return null;let t=e.trim();if(t.length===0)return null;let n=t[0];if(n!==`{`&&n!==`[`)return null;try{let e=JSON.parse(t);return typeof e!=`object`||!e?null:e}catch{return null}}function t(t,n={}){let{prettyJson:r=!0}=n,i=e(t);return i===null||!r?{text:t,isJson:i!==null,value:i}:{text:JSON.stringify(i,null,2),isJson:!0,value:i}}var n=/^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function r(e){let t=[],r=0,i=(e,n)=>{n.length>0&&t.push({type:e,text:n})};for(;r<e.length;){let t=e[r];if(t===` `||t===`
|
|
2
|
+
`||t===` `||t===`\r`){let t=r;for(;t<e.length&&`
|
|
3
|
+
\r`.includes(e[t]);)t+=1;i(`whitespace`,e.slice(r,t)),r=t;continue}if(t===`"`){let t=r+1;for(;t<e.length;){if(e[t]===`\\`){t+=2;continue}if(e[t]===`"`)break;t+=1}let n=e.slice(r,Math.min(t+1,e.length)),a=r+n.length;for(;a<e.length&&`
|
|
4
|
+
\r`.includes(e[a]);)a+=1;i(e[a]===`:`?`key`:`string`,n),r+=n.length;continue}if(t===`{`||t===`}`||t===`[`||t===`]`||t===`,`||t===`:`){i(`punctuation`,t),r+=1;continue}if(e.startsWith(`true`,r)||e.startsWith(`false`,r)){let t=e.startsWith(`true`,r)?`true`:`false`;i(`boolean`,t),r+=t.length;continue}if(e.startsWith(`null`,r)){i(`null`,`null`),r+=4;continue}let a=r;for(;a<e.length&&!`{}[],:"
|
|
5
|
+
\r`.includes(e[a]);)a+=1;let o=e.slice(r,Math.max(a,r+1));i(n.test(o)?`number`:`other`,o),r+=o.length}return t}function i(t){if(typeof t!=`string`)return null;let n=e(t);if(n!==null)return n;for(let e=0;e<t.length;e+=1){let n=t[e];if(n!==`{`&&n!==`[`)continue;let r=n===`{`?`}`:`]`,i=0,a=!1,o=!1;for(let s=e;s<t.length;s+=1){let c=t[s];if(a){o?o=!1:c===`\\`?o=!0:c===`"`&&(a=!1);continue}if(c===`"`){a=!0;continue}if(c===n)i+=1;else if(c===r&&(--i,i===0)){let n=t.slice(e,s+1);try{let e=JSON.parse(n);if(typeof e==`object`&&e)return e}catch{}break}}}return null}var a=5e3,o=/\b(ERROR|FATAL|CRITICAL|CRIT|PANIC|EXCEPTION|TRACEBACK|SEVERE|FAILED|FAILURE)\b/,s=/\b(WARN|WARNING)\b/,c=/\b(DEBUG|TRACE|VERBOSE)\b/,l=[`level`,`severity`,`lvl`,`logLevel`,`log_level`],u={trace:`debug`,verbose:`debug`,debug:`debug`,info:`info`,information:`info`,notice:`info`,note:`info`,warn:`warn`,warning:`warn`,error:`error`,err:`error`,exception:`error`,fatal:`error`,critical:`error`,crit:`error`,panic:`error`,severe:`error`,alert:`error`,emergency:`error`},d={10:`debug`,20:`debug`,30:`info`,40:`warn`,50:`error`,60:`error`};function f(e){if(typeof e==`number`&&Number.isFinite(e))return d[e]??null;if(typeof e!=`string`)return null;let t=e.trim().toLowerCase();return t.length===0?null:u[t]??null}function p(e){let t=i(e);if(typeof t!=`object`||!t||Array.isArray(t))return null;let n=t;for(let e of l){let t=f(n[e]);if(t!==null)return t}return null}var m={error:4,warn:3,info:2,debug:1,unknown:0};function h(e){let t=null,n=-1;for(let r of e){if(r==null||r===`unknown`)continue;let e=m[r];e>n&&(n=e,t=r)}return t}var g=[`requestId`,`request_id`,`requestID`,`reqId`,`req_id`,`awsRequestId`,`aws_request_id`,`xRequestId`,`x_request_id`,`x-request-id`,`X-Request-Id`],_=new Set([`none`,`null`,`undefined`,`n/a`,`na`,`unknown`,`test`,`-`,`{{requestid}}`,"${requestid}"]),v=4,y=/^[A-Za-z0-9][A-Za-z0-9._:=-]*$/,b=/\brequest[\s_-]?id\b\s*[:=]\s*"?([A-Za-z0-9][A-Za-z0-9._:=-]*)"?/i;function x(e){let t=e.replace(/[.,;:]+$/,``).trim();return t.length<v||_.has(t.toLowerCase())?null:y.test(t)?t:null}function S(e){let t=i(e);if(typeof t!=`object`||!t||Array.isArray(t))return null;let n=t;for(let e of g){let t=n[e];if(typeof t==`string`){let e=x(t);if(e!==null)return e}if(typeof t==`number`&&Number.isFinite(t))return String(t)}return null}function C(e){let t=e??``;if(t===``)return null;let n=S(t);if(n!==null)return n;let r=b.exec(t);return r===null?null:x(r[1]??``)}function w(e){let t=p(e??``);if(t!==null)return{level:t,source:`json`};let n=(e??``).toUpperCase();return o.test(n)?{level:`error`,source:`text`}:s.test(n)?{level:`warn`,source:`text`}:c.test(n)?{level:`debug`,source:`text`}:{level:null,source:null}}function T(e){return w(e).level}function E(e){return e.level===void 0?T(e.message):e.level}function D(e,t){return t===null||E(e)===t}function O(e,t){return t===null?e.slice():e.filter(e=>D(e,t))}function k(e){switch(e){case`error`:return`text-red-400`;case`warn`:return`text-amber-300`;case`debug`:return`text-neutral-500`;default:return`text-neutral-200`}}function A(e,t){return`${e.id??`no-id`}:${e.timestamp}:${t}`}function j(e,t){let n=(t??``).trim().toLowerCase();return n===``||`${e.message??``} ${e.streamName??``}`.toLowerCase().includes(n)}function M(e,t){return(t??``).trim()===``?e.slice():e.filter(e=>j(e,t))}function N(e){return Array.from({length:e})}var P=class{capacity;#e;#t=0;#n=0;#r=0;constructor(e=a){if(!Number.isInteger(e)||e<=0)throw RangeError(`capacity must be a positive integer, received ${e}`);this.capacity=e,this.#e=N(e)}get size(){return this.#n}get dropped(){return this.#r}get full(){return this.#n===this.capacity}push(e){this.#n===this.capacity&&(this.#r+=1,this.#t=(this.#t+1)%this.capacity,--this.#n);let t=(this.#t+this.#n)%this.capacity;this.#e[t]=e,this.#n+=1}pushMany(e){for(let t of e)this.push(t)}toArray(){let e=N(this.#n);for(let t=0;t<this.#n;t+=1)e[t]=this.#e[(this.#t+t)%this.capacity];return e}first(){return this.#n===0?void 0:this.#e[this.#t]}last(){return this.#n===0?void 0:this.#e[(this.#t+this.#n-1)%this.capacity]}clear(){this.#e=N(this.capacity),this.#t=0,this.#n=0,this.#r=0}},F=class{buffer;#e;#t=!1;constructor(e=a){this.buffer=new P(e),this.#e=new P(e)}get paused(){return this.#t}get size(){return this.buffer.size}get pendingCount(){return this.#e.size}get droppedCount(){return this.buffer.dropped}push(e){if(this.#t){this.#e.pushMany(e);return}this.buffer.pushMany(e)}setPaused(e){return e===this.#t?[]:(this.#t=e,e?[]:this.flush())}pause(){this.#t=!0}resume(){return this.#t=!1,this.flush()}flush(){let e=this.#e.toArray();return this.#e.clear(),this.buffer.pushMany(e),e}toArray(){return this.buffer.toArray()}clear(){this.buffer.clear(),this.#e.clear()}};function I(e){if(e.requestId!==void 0){let t=e.requestId;return t===null||t===``?null:t}return C(e.message??``)}function L(e){return h(e.map(e=>E(e)))??`unknown`}function R(e){let t=new Map;e.forEach((e,n)=>{let r=I(e);if(r===null)return;let i=t.get(r);if(i===void 0){t.set(r,{id:r,level:`unknown`,first:e.timestamp,last:e.timestamp,events:[{event:e,index:n}]});return}i.events.push({event:e,index:n}),Number.isFinite(e.timestamp)&&(e.timestamp<i.first&&(i.first=e.timestamp),e.timestamp>i.last&&(i.last=e.timestamp))});let n=[...t.values()];for(let e of n)e.level=L(e.events.map(e=>e.event));return n}function z(e){return I(e)!==null}function B(e){let t=new Map;for(let n of R(e)){let e=n.events[0];e!==void 0&&t.set(e.index,n)}let n=[];return e.forEach((e,r)=>{let i=t.get(r);if(i!==void 0){n.push({kind:`request`,key:`req:${i.id}`,request:i});return}z(e)||n.push({kind:`line`,key:`line:${r}`,event:e,index:r})}),n}function V(e,t){let n=t.bucketMs>0?Math.round(t.bucketMs):6e4,r=t.level??null,i=t.fallbackGroup??``,a=[];for(let t of R(e))a.push({t:t.first,group:t.events[0]?.event.group??i,level:t.level});for(let t of e)I(t)===null&&a.push({t:t.timestamp,group:t.group??i,level:E(t)??`unknown`});let o=new Map;for(let e of a){let i=e.t;if(!Number.isFinite(i)||i<t.from||i>=t.to||r!==null&&e.level!==r)continue;let a=Math.floor(i/n)*n,s=e.group,c=`${a}\u0000${s}\u0000${e.level}`,l=o.get(c);l===void 0?o.set(c,{t:a,group:s,level:e.level,events:1}):l.events+=1}return[...o.values()].toSorted((e,t)=>e.t===t.t?e.level.localeCompare(t.level):e.t-t.t)}var H=[`error`,`warn`,`info`,`debug`,`unknown`],U={error:`Error`,warn:`Warn`,info:`Info`,debug:`Debug`,unknown:`No level`},W={error:`#f87171`,warn:`#fcd34d`,info:`#a3a3a3`,debug:`#737373`,unknown:`#525252`},G=6e4;function K(e){return E(e)??`unknown`}function q(e,t){let n=t.bucketMs??6e4,r=Number.isFinite(n)&&n>0?Math.round(n):G,i=t.level??null,a=t.fallbackGroup??``;if(t.byRequest===!0)return V(e,{from:t.from,to:t.to,bucketMs:r,level:i,fallbackGroup:a});let o=new Map;for(let n of e){let e=n.timestamp;if(!Number.isFinite(e)||e<t.from||e>=t.to)continue;let s=K(n);if(i!==null&&s!==i)continue;let c=Math.floor(e/r)*r,l=n.group??a,u=`${c}\u0000${l}\u0000${s}`,d=o.get(u);d===void 0?o.set(u,{t:c,group:l,level:s,events:1}):d.events+=1}return[...o.values()].toSorted((e,t)=>e.t===t.t?e.level.localeCompare(t.level):e.t-t.t)}function J(e){let t=new Map;for(let n of e){let e=t.get(n.level);e===void 0?t.set(n.level,[n]):e.push(n)}return H.filter(e=>t.has(e)).map(e=>{let n=(t.get(e)??[]).toSorted((e,t)=>e.t-t.t);return{level:e,label:U[e],points:n,events:n.reduce((e,t)=>e+t.events,0)}})}var Y=.98;function X(e,t,n){let r=e.to-e.from;if(!Number.isFinite(r)||r<=0)return!1;let i=t.to-t.from;return!Number.isFinite(i)||i<=0||r<Math.max(3e4,n*2)?!1:r<=i*Y}export{r as _,X as a,F as c,A as d,O as f,t as g,i as h,J as i,T as l,k as m,W as n,B as o,M as p,q as r,a as s,U as t,E as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./pqiPC7Y8.js";import{i as e}from"./
|
|
1
|
+
import"./pqiPC7Y8.js";import{i as e}from"./BOT2hFMn.js";var t={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};export{t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,At as t,B as n,H as r,J as i,M as a,P as o,R as s,a as c,bt as l,ht as u,i as d,j as f,k as p,lt as m,o as h,st as g,yt as _,z as v}from"./pqiPC7Y8.js";import"./xihTtKlq.js";import{t as y}from"./CJFHBop_.js";import{D as b,g as x,v as S}from"./BR7qH0F5.js";import{C,S as w,_ as T,a as E,b as D,c as O,d as k,f as A,g as j,h as M,i as N,l as P,n as F,o as I,p as L,r as ee,s as te,t as ne,u as R,v as re,w as z,x as B,y as V}from"./Y5urAfNy.js";import{t as ie}from"./Db0q5_zr.js";import{c as ae,t as oe}from"./Dt_Zd6U2.js";import{c as se,d as ce,l as le,n as ue,s as de,t as fe}from"./DVTgeA2y.js";import{t as pe}from"./BR2LaRms.js";import{n as me,r as he,t as ge}from"./yCfI4PCa.js";import{T as _e,d as ve,j as ye,u as be}from"./PYzEcuyd.js";function*xe(e){for(let t of e)yield*t}function Se(e){return Array.from(xe(e))}var Ce=new z,we=new z,Te,Ee,De,Oe,ke,H={point:E,lineStart:E,lineEnd:E,polygonStart:function(){Ce=new z,H.lineStart=Ae,H.lineEnd=je},polygonEnd:function(){var e=+Ce;we.add(e<0?C+e:e),this.lineStart=this.lineEnd=this.point=E},sphere:function(){we.add(C)}};function Ae(){H.point=Me}function je(){Ne(Te,Ee)}function Me(e,t){H.point=Ne,Te=e,Ee=t,e*=V,t*=V,De=e,Oe=k(t=t/2+re),ke=B(t)}function Ne(e,t){e*=V,t*=V,t=t/2+re;var n=e-De,r=n>=0?1:-1,i=r*n,a=k(t),o=B(t),s=ke*o,c=Oe*a+s*k(i),l=s*r*B(i);Ce.add(R(l,c)),De=e,Oe=a,ke=o}function Pe(e){return we=new z,N(e,H),we*2}function Fe(e){return[R(e[1],e[0]),O(e[2])]}function U(e){var t=e[0],n=e[1],r=k(n);return[r*k(t),r*B(t),B(n)]}function Ie(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Le(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Re(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ze(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Be(e){var t=w(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var W,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,G,K,q,J={sphere:E,point:$e,lineStart:et,lineEnd:rt,polygonStart:function(){J.lineStart=it,J.lineEnd=at},polygonEnd:function(){J.lineStart=et,J.lineEnd=rt}};function $e(e,t){e*=V,t*=V;var n=k(t);Y(n*k(e),n*B(e),B(t))}function Y(e,t,n){++W,He+=(e-He)/W,Ue+=(t-Ue)/W,We+=(n-We)/W}function et(){J.point=tt}function tt(e,t){e*=V,t*=V;var n=k(t);G=n*k(e),K=n*B(e),q=B(t),J.point=nt,Y(G,K,q)}function nt(e,t){e*=V,t*=V;var n=k(t),r=n*k(e),i=n*B(e),a=B(t),o=R(w((o=K*a-q*i)*o+(o=q*r-G*a)*o+(o=G*i-K*r)*o),G*r+K*i+q*a);Ve+=o,Ge+=o*(G+(G=r)),Ke+=o*(K+(K=i)),qe+=o*(q+(q=a)),Y(G,K,q)}function rt(){J.point=$e}function it(){J.point=ot}function at(){st(Ze,Qe),J.point=$e}function ot(e,t){Ze=e,Qe=t,e*=V,t*=V,J.point=st;var n=k(t);G=n*k(e),K=n*B(e),q=B(t),Y(G,K,q)}function st(e,t){e*=V,t*=V;var n=k(t),r=n*k(e),i=n*B(e),a=B(t),o=K*a-q*i,s=q*r-G*a,c=G*i-K*r,l=j(o,s,c),u=O(l),d=l&&-u/l;Je.add(d*o),Ye.add(d*s),Xe.add(d*c),Ve+=u,Ge+=u*(G+(G=r)),Ke+=u*(K+(K=i)),qe+=u*(q+(q=a)),Y(G,K,q)}function ct(e){W=Ve=He=Ue=We=Ge=Ke=qe=0,Je=new z,Ye=new z,Xe=new z,N(e,J);var t=+Je,n=+Ye,r=+Xe,i=j(t,n,r);return i<1e-12&&(t=Ge,n=Ke,r=qe,Ve<1e-6&&(t=He,n=Ue,r=We),i=j(t,n,r),i<1e-12)?[NaN,NaN]:[R(n,t)*A,O(r/i)*A]}function lt(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function ut(e,t){return I(e)>T&&(e-=Math.round(e/C)*C),[e,t]}ut.invert=ut;function dt(e,t,n){return(e%=C)?t||n?lt(pt(e),mt(t,n)):pt(e):t||n?mt(t,n):ut}function ft(e){return function(t,n){return t+=e,I(t)>T&&(t-=Math.round(t/C)*C),[t,n]}}function pt(e){var t=ft(e);return t.invert=ft(-e),t}function mt(e,t){var n=k(e),r=B(e),i=k(t),a=B(t);function o(e,t){var o=k(t),s=k(e)*o,c=B(e)*o,l=B(t),u=l*n+s*r;return[R(c*i-u*a,s*n-l*r),O(u*i+c*a)]}return o.invert=function(e,t){var o=k(t),s=k(e)*o,c=B(e)*o,l=B(t),u=l*i-c*a;return[R(c*i+l*a,s*n+u*r),O(u*n-s*r)]},o}function ht(e){e=dt(e[0]*V,e[1]*V,e.length>2?e[2]*V:0);function t(t){return t=e(t[0]*V,t[1]*V),t[0]*=A,t[1]*=A,t}return t.invert=function(t){return t=e.invert(t[0]*V,t[1]*V),t[0]*=A,t[1]*=A,t},t}function gt(e,t,n,r,i,a){if(n){var o=k(t),s=B(t),c=r*n;i==null?(i=t+r*C,a=t-c/2):(i=_t(o,i),a=_t(o,a),(r>0?i<a:i>a)&&(i+=r*C));for(var l,u=i;r>0?u>a:u<a;u-=c)l=Fe([o,-s*k(u),-s*B(u)]),e.point(l[0],l[1])}}function _t(e,t){t=U(t),t[0]-=e,Be(t);var n=te(-t[1]);return((-t[2]<0?-n:n)+C-L)%C}function vt(){var e=[],t;return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:E,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function yt(e,t){return I(e[0]-t[0])<1e-6&&I(e[1]-t[1])<1e-6}function bt(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function xt(e,t,n,r,i){var a=[],o=[],s,c;if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t],c;if(yt(n,r)){if(!n[2]&&!r[2]){for(i.lineStart(),s=0;s<t;++s)i.point((n=e[s])[0],n[1]);i.lineEnd();return}r[0]+=2*L}a.push(c=new bt(n,e,null,!0)),o.push(c.o=new bt(n,null,c,!1)),a.push(c=new bt(r,e,null,!1)),o.push(c.o=new bt(r,null,c,!0))}}),a.length){for(o.sort(t),St(a),St(o),s=0,c=o.length;s<c;++s)o[s].e=n=!n;for(var l=a[0],u,d;;){for(var f=l,p=!0;f.v;)if((f=f.n)===l)return;u=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(s=0,c=u.length;s<c;++s)i.point((d=u[s])[0],d[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(p)for(u=f.p.z,s=u.length-1;s>=0;--s)i.point((d=u[s])[0],d[1]);else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,u=f.z,p=!p}while(!f.v);i.lineEnd()}}}function St(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function Ct(e){return I(e[0])<=T?e[0]:D(e[0])*((I(e[0])+T)%C-T)}function wt(e,t){var n=Ct(t),r=t[1],i=B(r),a=[B(n),-k(n),0],o=0,s=0,c=new z;i===1?r=M+L:i===-1&&(r=-M-L);for(var l=0,u=e.length;l<u;++l)if(f=(d=e[l]).length)for(var d,f,p=d[f-1],m=Ct(p),h=p[1]/2+re,g=B(h),_=k(h),v=0;v<f;++v,m=b,g=S,_=w,p=y){var y=d[v],b=Ct(y),x=y[1]/2+re,S=B(x),w=k(x),E=b-m,D=E>=0?1:-1,A=D*E,j=A>T,N=g*S;if(c.add(R(N*D*B(A),_*w+N*k(A))),o+=j?E+D*C:E,j^m>=n^b>=n){var P=Le(U(p),U(y));Be(P);var F=Le(a,P);Be(F);var I=(j^E>=0?-1:1)*O(F[2]);(r>I||r===I&&(P[0]||P[1]))&&(s+=j^E>=0?1:-1)}}return(o<-1e-6||o<1e-6&&c<-1e-12)^s&1}function Tt(e,t,n,r){return function(i){var a=t(i),o=vt(),s=t(o),c=!1,l,u,d,f={point:p,lineStart:h,lineEnd:g,polygonStart:function(){f.point=_,f.lineStart=v,f.lineEnd=y,u=[],l=[]},polygonEnd:function(){f.point=p,f.lineStart=h,f.lineEnd=g,u=Se(u);var e=wt(l,r);u.length?(c||=(i.polygonStart(),!0),xt(u,Dt,e,n,i)):e&&(c||=(i.polygonStart(),!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),c&&=(i.polygonEnd(),!1),u=l=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(t,n){e(t,n)&&i.point(t,n)}function m(e,t){a.point(e,t)}function h(){f.point=m,a.lineStart()}function g(){f.point=p,a.lineEnd()}function _(e,t){d.push([e,t]),s.point(e,t)}function v(){s.lineStart(),d=[]}function y(){_(d[0][0],d[0][1]),s.lineEnd();var e=s.clean(),t=o.result(),n,r=t.length,a,f,p;if(d.pop(),l.push(d),d=null,r){if(e&1){if(f=t[0],(a=f.length-1)>0){for(c||=(i.polygonStart(),!0),i.lineStart(),n=0;n<a;++n)i.point((p=f[n])[0],p[1]);i.lineEnd()}return}r>1&&e&2&&t.push(t.pop().concat(t.shift())),u.push(t.filter(Et))}}return f}}function Et(e){return e.length>1}function Dt(e,t){return((e=e.x)[0]<0?e[1]-M-L:M-e[1])-((t=t.x)[0]<0?t[1]-M-L:M-t[1])}var Ot=Tt(function(){return!0},kt,jt,[-T,-M]);function kt(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?T:-T,c=I(a-t);I(c-T)<1e-6?(e.point(t,n=(n+o)/2>0?M:-M),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&c>=T&&(I(t-r)<1e-6&&(t-=r*L),I(a-s)<1e-6&&(a-=s*L),n=At(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function At(e,t,n,r){var i,a,o=B(e-n);return I(o)>1e-6?P((B(t)*(a=k(r))*B(n)-B(r)*(i=k(t))*B(e))/(i*a*o)):(t+r)/2}function jt(e,t,n,r){var i;if(e==null)i=n*M,r.point(-T,i),r.point(0,i),r.point(T,i),r.point(T,0),r.point(T,-i),r.point(0,-i),r.point(-T,-i),r.point(-T,0),r.point(-T,i);else if(I(e[0]-t[0])>1e-6){var a=e[0]<t[0]?T:-T;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function Mt(e){var t=k(e),n=2*V,r=t>0,i=I(t)>L;function a(t,r,i,a){gt(a,e,n,i,t,r)}function o(e,n){return k(e)*k(n)>t}function s(e){var t,n,a,s,u;return{lineStart:function(){s=a=!1,u=1},point:function(d,f){var p=[d,f],m,h=o(d,f),g=r?h?0:l(d,f):h?l(d+(d<0?T:-T),f):0;if(!t&&(s=a=h)&&e.lineStart(),h!==a&&(m=c(t,p),(!m||yt(t,m)||yt(p,m))&&(p[2]=1)),h!==a)u=0,h?(e.lineStart(),m=c(p,t),e.point(m[0],m[1])):(m=c(t,p),e.point(m[0],m[1],2),e.lineEnd()),t=m;else if(i&&t&&r^h){var _;!(g&n)&&(_=c(p,t,!0))&&(u=0,r?(e.lineStart(),e.point(_[0][0],_[0][1]),e.point(_[1][0],_[1][1]),e.lineEnd()):(e.point(_[1][0],_[1][1]),e.lineEnd(),e.lineStart(),e.point(_[0][0],_[0][1],3)))}h&&(!t||!yt(t,p))&&e.point(p[0],p[1]),t=p,a=h,n=g},lineEnd:function(){a&&e.lineEnd(),t=null},clean:function(){return u|(s&&a)<<1}}}function c(e,n,r){var i=U(e),a=U(n),o=[1,0,0],s=Le(i,a),c=Ie(s,s),l=s[0],u=c-l*l;if(!u)return!r&&e;var d=t*c/u,f=-t*l/u,p=Le(o,s),m=ze(o,d);Re(m,ze(s,f));var h=p,g=Ie(m,h),_=Ie(h,h),v=g*g-_*(Ie(m,m)-1);if(!(v<0)){var y=w(v),b=ze(h,(-g-y)/_);if(Re(b,m),b=Fe(b),!r)return b;var x=e[0],S=n[0],C=e[1],E=n[1],D;S<x&&(D=x,x=S,S=D);var O=S-x,k=I(O-T)<L,A=k||O<1e-6;if(!k&&E<C&&(D=C,C=E,E=D),A?k?C+E>0^b[1]<(I(b[0]-x)<1e-6?C:E):C<=b[1]&&b[1]<=E:O>T^(x<=b[0]&&b[0]<=S)){var j=ze(h,(-g+y)/_);return Re(j,m),[b,Fe(j)]}}}function l(t,n){var i=r?e:T-e,a=0;return t<-i?a|=1:t>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return Tt(o,s,a,r?[0,-e]:[-T,e-T])}function Nt(e,t,n,r,i,a){var o=e[0],s=e[1],c=t[0],l=t[1],u=0,d=1,f=c-o,p=l-s,m=n-o;if(!(!f&&m>0)){if(m/=f,f<0){if(m<u)return;m<d&&(d=m)}else if(f>0){if(m>d)return;m>u&&(u=m)}if(m=i-o,!(!f&&m<0)){if(m/=f,f<0){if(m>d)return;m>u&&(u=m)}else if(f>0){if(m<u)return;m<d&&(d=m)}if(m=r-s,!(!p&&m>0)){if(m/=p,p<0){if(m<u)return;m<d&&(d=m)}else if(p>0){if(m>d)return;m>u&&(u=m)}if(m=a-s,!(!p&&m<0)){if(m/=p,p<0){if(m>d)return;m>u&&(u=m)}else if(p>0){if(m<u)return;m<d&&(d=m)}return u>0&&(e[0]=o+u*f,e[1]=s+u*p),d<1&&(t[0]=o+d*f,t[1]=s+d*p),!0}}}}}var X=1e9,Pt=-X;function Ft(e,t,n,r){function i(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function a(i,a,s,l){var u=0,d=0;if(i==null||(u=o(i,s))!==(d=o(a,s))||c(i,a)<0^s>0)do l.point(u===0||u===3?e:n,u>1?r:t);while((u=(u+s+4)%4)!==d);else l.point(a[0],a[1])}function o(r,i){return I(r[0]-e)<1e-6?i>0?0:3:I(r[0]-n)<1e-6?i>0?2:1:I(r[1]-t)<1e-6?+(i>0):i>0?3:2}function s(e,t){return c(e.x,t.x)}function c(e,t){var n=o(e,1),r=o(t,1);return n===r?n===0?t[1]-e[1]:n===1?e[0]-t[0]:n===2?e[1]-t[1]:t[0]-e[0]:n-r}return function(o){var c=o,l=vt(),u,d,f,p,m,h,g,_,v,y,b,x={point:S,lineStart:E,lineEnd:D,polygonStart:w,polygonEnd:T};function S(e,t){i(e,t)&&c.point(e,t)}function C(){for(var t=0,n=0,i=d.length;n<i;++n)for(var a=d[n],o=1,s=a.length,c=a[0],l,u,f=c[0],p=c[1];o<s;++o)l=f,u=p,c=a[o],f=c[0],p=c[1],u<=r?p>r&&(f-l)*(r-u)>(p-u)*(e-l)&&++t:p<=r&&(f-l)*(r-u)<(p-u)*(e-l)&&--t;return t}function w(){c=l,u=[],d=[],b=!0}function T(){var e=C(),t=b&&e,n=(u=Se(u)).length;(t||n)&&(o.polygonStart(),t&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),n&&xt(u,s,e,a,o),o.polygonEnd()),c=o,u=d=f=null}function E(){x.point=O,d&&d.push(f=[]),y=!0,v=!1,g=_=NaN}function D(){u&&(O(p,m),h&&v&&l.rejoin(),u.push(l.result())),x.point=S,v&&c.lineEnd()}function O(a,o){var s=i(a,o);if(d&&f.push([a,o]),y)p=a,m=o,h=s,y=!1,s&&(c.lineStart(),c.point(a,o));else if(s&&v)c.point(a,o);else{var l=[g=Math.max(Pt,Math.min(X,g)),_=Math.max(Pt,Math.min(X,_))],u=[a=Math.max(Pt,Math.min(X,a)),o=Math.max(Pt,Math.min(X,o))];Nt(l,u,e,t,n,r)?(v||(c.lineStart(),c.point(l[0],l[1])),c.point(u[0],u[1]),s||c.lineEnd(),b=!1):s&&(c.lineStart(),c.point(a,o),b=!1)}g=a,_=o,v=s}return x}}var It,Lt,Rt,zt,Z={sphere:E,point:E,lineStart:Bt,lineEnd:E,polygonStart:E,polygonEnd:E};function Bt(){Z.point=Ht,Z.lineEnd=Vt}function Vt(){Z.point=Z.lineEnd=E}function Ht(e,t){e*=V,t*=V,Lt=e,Rt=B(t),zt=k(t),Z.point=Ut}function Ut(e,t){e*=V,t*=V;var n=B(t),r=k(t),i=I(e-Lt),a=k(i),o=r*B(i),s=zt*n-Rt*r*a,c=Rt*n+zt*r*a;It.add(R(w(o*o+s*s),c)),Lt=e,Rt=n,zt=r}function Wt(e){return It=new z,N(e,Z),+It}var Gt=[null,null],Kt={type:`LineString`,coordinates:Gt};function qt(e,t){return Gt[0]=e,Gt[1]=t,Wt(Kt)}function Jt(e){return{stream:Yt(e)}}function Yt(e){return function(t){var n=new Xt;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Xt(){}Xt.prototype={constructor:Xt,point:function(e,t){this.stream.point(e,t)},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()}};function Zt(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),N(n,e.stream(F)),t(F.result()),r!=null&&e.clipExtent(r),e}function Qt(e,t,n){return Zt(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+t[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-a*(n[1][1]+n[0][1]))/2;e.scale(150*a).translate([o,s])},n)}function $t(e,t,n){return Qt(e,[[0,0],t],n)}function en(e,t,n){return Zt(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];e.scale(150*i).translate([a,o])},n)}function tn(e,t,n){return Zt(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,o])},n)}var nn=16,rn=k(30*V);function an(e,t){return+t?sn(e,t):on(e)}function on(e){return Yt({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function sn(e,t){function n(r,i,a,o,s,c,l,u,d,f,p,m,h,g){var _=l-r,v=u-i,y=_*_+v*v;if(y>4*t&&h--){var b=o+f,x=s+p,S=c+m,C=w(b*b+x*x+S*S),T=O(S/=C),E=I(I(S)-1)<1e-6||I(a-d)<1e-6?(a+d)/2:R(x,b),D=e(E,T),k=D[0],A=D[1],j=k-r,M=A-i,N=v*j-_*M;(N*N/y>t||I((_*j+v*M)/y-.5)>.3||o*f+s*p+c*m<rn)&&(n(r,i,a,o,s,c,k,A,E,b/=C,x/=C,S,h,g),g.point(k,A),n(k,A,E,b,x,S,l,u,d,f,p,m,h,g))}}return function(t){var r,i,a,o,s,c,l,u,d,f,p,m,h={point:g,lineStart:_,lineEnd:y,polygonStart:function(){t.polygonStart(),h.lineStart=b},polygonEnd:function(){t.polygonEnd(),h.lineStart=_}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function _(){u=NaN,h.point=v,t.lineStart()}function v(r,i){var a=U([r,i]),o=e(r,i);n(u,d,l,f,p,m,u=o[0],d=o[1],l=r,f=a[0],p=a[1],m=a[2],nn,t),t.point(u,d)}function y(){h.point=g,t.lineEnd()}function b(){_(),h.point=x,h.lineEnd=S}function x(e,t){v(r=e,t),i=u,a=d,o=f,s=p,c=m,h.point=v}function S(){n(u,d,l,f,p,m,i,a,r,o,s,c,nn,t),h.lineEnd=y,y()}return h}}var cn=Yt({point:function(e,t){this.stream.point(e*V,t*V)}});function ln(e){return Yt({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function un(e,t,n,r,i){function a(a,o){return a*=r,o*=i,[t+e*a,n-e*o]}return a.invert=function(a,o){return[(a-t)/e*r,(n-o)/e*i]},a}function dn(e,t,n,r,i,a){if(!a)return un(e,t,n,r,i);var o=k(a),s=B(a),c=o*e,l=s*e,u=o/e,d=s/e,f=(s*n-o*t)/e,p=(s*t+o*n)/e;function m(e,a){return e*=r,a*=i,[c*e-l*a+t,n-l*e-c*a]}return m.invert=function(e,t){return[r*(u*e-d*t+f),i*(p-d*e-u*t)]},m}function fn(e){return pn(function(){return e})()}function pn(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,c=0,l=0,u,d=0,f=1,p=1,m=null,h=Ot,g=null,_,v,y,b=ee,x=.5,S,C,T,E,D;function O(e){return T(e[0]*V,e[1]*V)}function k(e){return e=T.invert(e[0],e[1]),e&&[e[0]*A,e[1]*A]}O.stream=function(e){return E&&D===e?E:E=cn(ln(u)(h(S(b(D=e)))))},O.preclip=function(e){return arguments.length?(h=e,m=void 0,M()):h},O.postclip=function(e){return arguments.length?(b=e,g=_=v=y=null,M()):b},O.clipAngle=function(e){return arguments.length?(h=+e?Mt(m=e*V):(m=null,Ot),M()):m*A},O.clipExtent=function(e){return arguments.length?(b=e==null?(g=_=v=y=null,ee):Ft(g=+e[0][0],_=+e[0][1],v=+e[1][0],y=+e[1][1]),M()):g==null?null:[[g,_],[v,y]]},O.scale=function(e){return arguments.length?(n=+e,j()):n},O.translate=function(e){return arguments.length?(r=+e[0],i=+e[1],j()):[r,i]},O.center=function(e){return arguments.length?(a=e[0]%360*V,o=e[1]%360*V,j()):[a*A,o*A]},O.rotate=function(e){return arguments.length?(s=e[0]%360*V,c=e[1]%360*V,l=e.length>2?e[2]%360*V:0,j()):[s*A,c*A,l*A]},O.angle=function(e){return arguments.length?(d=e%360*V,j()):d*A},O.reflectX=function(e){return arguments.length?(f=e?-1:1,j()):f<0},O.reflectY=function(e){return arguments.length?(p=e?-1:1,j()):p<0},O.precision=function(e){return arguments.length?(S=an(C,x=e*e),M()):w(x)},O.fitExtent=function(e,t){return Qt(O,e,t)},O.fitSize=function(e,t){return $t(O,e,t)},O.fitWidth=function(e,t){return en(O,e,t)},O.fitHeight=function(e,t){return tn(O,e,t)};function j(){var e=dn(n,0,0,f,p,d).apply(null,t(a,o)),m=dn(n,r-e[0],i-e[1],f,p,d);return u=dt(s,c,l),C=lt(t,m),T=lt(u,C),S=an(C,x),M()}function M(){return E=D=null,O}return function(){return t=e.apply(this,arguments),O.invert=t.invert&&k,j()}}function mn(e){return function(t,n){var r=w(t*t+n*n),i=e(r),a=B(i),o=k(i);return[R(t*a,r*o),O(r&&n*a/r)]}}function hn(e,t){var n=k(t),r=1+k(e)*n;return[n*B(e)/r,B(t)/r]}hn.invert=mn(function(e){return 2*P(e)});function gn(){return fn(hn).scale(250).clipAngle(142)}var _n=Math.PI,vn=_n/2;_n/4,_n*2;var yn=180/_n,bn=_n/180,xn=Math.atan2,Sn=Math.cos,Cn=Math.max,wn=Math.min,Tn=Math.sin,En=Math.sign||function(e){return e>0?1:e<0?-1:0},Dn=Math.sqrt;function On(e){return e>1?vn:e<-1?-vn:Math.asin(e)}function kn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Q(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function An(e,t){return[e[0]+t[0],e[1]+t[1],e[2]+t[2]]}function jn(e){var t=Dn(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);return[e[0]/t,e[1]/t,e[2]/t]}function Mn(e){return[xn(e[1],e[0])*yn,On(Cn(-1,wn(1,e[2])))*yn]}function $(e){let t=e[0]*bn,n=e[1]*bn,r=Sn(n);return[r*Sn(t),r*Tn(t),Tn(n)]}function Nn(e){return e=e.map(e=>$(e)),kn(e[0],Q(e[2],e[1]))}function Pn(e){let t=In(e),n=Rn(t),r=Ln(n,e),i=Bn(n,e.length),a=Fn(i,e),{polygons:o,centers:s}=Vn(zn(n,e),n,e);return{delaunay:t,edges:r,triangles:n,centers:s,neighbors:i,polygons:o,mesh:Un(o),hull:Gn(n,e),urquhart:Wn(r,n),find:a}}function Fn(e,t){function n(e,t){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}return function(r,i,a){a===void 0&&(a=0);let o,s,c=a,l=$([r,i]);do o=a,a=null,s=n(l,$(t[o])),e[o].forEach(e=>{let r=n(l,$(t[e]));if(r<s){s=r,a=e,c=e;return}});while(a!==null);return c}}function In(e){if(e.length<2)return{};let t=0;for(;isNaN(e[t][0]+e[t][1])&&t++<e.length;);let n=ht(e[t]),r=gn().translate([0,0]).scale(1).rotate(n.invert([180,0]));e=e.map(r);let i=[],a=1;for(let t=0,n=e.length;t<n;t++){let n=e[t][0]**2+e[t][1]**2;!isFinite(n)||n>1e32?i.push(t):n>a&&(a=n)}let o=1e6*Dn(a);i.forEach(t=>e[t]=[o,0]),e.push([0,o]),e.push([-o,0]),e.push([0,-o]);let s=he.from(e);s.projection=r;let{triangles:c,halfedges:l,inedges:u}=s,d=[];for(let n=0,r=l.length;n<r;n++)if(l[n]<0){let e=n%3==2?n-2:n+1,r=n%3==0?n+2:n-1,i=l[e],a=l[r];l[i]=a,l[a]=i,l[e]=l[r]=-1,c[n]=c[e]=c[r]=t,u[c[i]]=i%3==0?i+2:i-1,u[c[a]]=a%3==0?a+2:a-1,d.push(Math.min(n,e,r)),n+=2-n%3}else c[n]>e.length-3-1&&(c[n]=t);return s}function Ln(e,t){let n=new Set;return t.length===2?[[0,1]]:(e.forEach(e=>{if(e[0]!==e[1]&&!(Nn(e.map(e=>t[e]))<0))for(let t=0,r;t<3;t++)r=(t+1)%3,n.add(ye([e[t],e[r]]).join(`-`))}),Array.from(n,e=>e.split(`-`).map(Number)))}function Rn(e){let{triangles:t}=e;if(!t)return[];let n=[];for(let e=0,r=t.length/3;e<r;e++){let r=t[3*e],i=t[3*e+1],a=t[3*e+2];r!==i&&i!==a&&n.push([r,a,i])}return n}function zn(e,t){return e.map(e=>{let n=e.map(e=>t[e]).map($);return Mn(jn(An(An(Q(n[1],n[0]),Q(n[2],n[1])),Q(n[0],n[2]))))})}function Bn(e,t){let n=[];return e.forEach(e=>{for(let t=0;t<3;t++){let r=e[t],i=e[(t+1)%3];n[r]=n[r]||[],n[r].push(i)}}),e.length===0&&(t===2?(n[0]=[1],n[1]=[0]):t===1&&(n[0]=[])),n}function Vn(e,t,n){let r=[],i=e.slice();if(t.length===0){if(n.length<2)return{polygons:r,centers:i};if(n.length===2){let e=$(n[0]),t=$(n[1]),a=jn(An(e,t)),s=Q(a,jn(Q(e,t))),c=[a,Q(a,s),Q(Q(a,s),s),Q(Q(Q(a,s),s),s)].map(Mn).map(o);return r.push(c),r.push(c.slice().reverse()),{polygons:r,centers:i}}}t.forEach((e,t)=>{for(let n=0;n<3;n++){let i=e[n],a=e[(n+1)%3],o=e[(n+2)%3];r[i]=r[i]||[],r[i].push([a,o,t,[i,a,o]])}});let a=r.map(e=>{let t=[e[0][2]],r=e[0][1];for(let n=1;n<e.length;n++)for(let n=0;n<e.length;n++)if(e[n][0]==r){r=e[n][1],t.push(e[n][2]);break}if(t.length>2)return t;if(t.length==2){let r=Hn(n[e[0][3][0]],n[e[0][3][1]],i[t[0]]),a=Hn(n[e[0][3][2]],n[e[0][3][0]],i[t[0]]),s=o(r),c=o(a);return[t[0],c,t[1],s]}});function o(e){let n=-1;return i.slice(t.length,1/0).forEach((r,i)=>{r[0]===e[0]&&r[1]===e[1]&&(n=i+t.length)}),n<0&&(n=i.length,i.push(e)),n}return{polygons:a,centers:i}}function Hn(e,t,n){e=$(e),t=$(t),n=$(n);let r=En(kn(Q(t,e),n));return Mn(jn(An(e,t)).map(e=>r*e))}function Un(e){let t=[];return e.forEach(e=>{if(!e)return;let n=e[e.length-1];for(let r of e)r>n&&t.push([n,r]),n=r}),t}function Wn(e,t){return function(n){let r=new Map,i=new Map;return e.forEach((e,t)=>{let a=e.join(`-`);r.set(a,n[t]),i.set(a,!0)}),t.forEach(e=>{let t=0,n=-1;for(let i=0;i<3;i++){let a=ye([e[i],e[(i+1)%3]]).join(`-`);r.get(a)>t&&(t=r.get(a),n=a)}i.set(n,!1)}),e.map(e=>i.get(e.join(`-`)))}}function Gn(e,t){let n=new Set,r=[];e.map(e=>{if(!(Nn(e.map(e=>t[e>t.length?0:e]))>1e-12))for(let t=0;t<3;t++){let r=[e[t],e[(t+1)%3]],i=`${r[0]}-${r[1]}`;n.has(i)?n.delete(i):n.add(`${r[1]}-${r[0]}`)}});let i=new Map,a;if(n.forEach(e=>{e=e.split(`-`).map(Number),i.set(e[0],e[1]),a=e[0]}),a===void 0)return r;let o=a;do{r.push(o);let e=i.get(o);i.set(o,-1),o=e}while(o>-1&&o!==a);return r}function Kn(e){let t=function(e){if(t.delaunay=null,t._data=e,typeof t._data==`object`&&t._data.type===`FeatureCollection`&&(t._data=t._data.features),typeof t._data==`object`){let e=t._data.map(e=>[t._vx(e),t._vy(e),e]).filter(e=>isFinite(e[0]+e[1]));t.points=e.map(e=>[e[0],e[1]]),t.valid=e.map(e=>e[2]),t.delaunay=Pn(t.points)}return t};return t._vx=function(e){if(typeof e==`object`&&`type`in e)return ct(e)[0];if(0 in e)return e[0]},t._vy=function(e){if(typeof e==`object`&&`type`in e)return ct(e)[1];if(1 in e)return e[1]},t.x=function(e){return e?(t._vx=e,t):t._vx},t.y=function(e){return e?(t._vy=e,t):t._vy},t.polygons=function(e){if(e!==void 0&&t(e),!t.delaunay)return!1;let n={type:`FeatureCollection`,features:[]};return t.valid.length===0?n:(t.delaunay.polygons.forEach((e,r)=>n.features.push({type:`Feature`,geometry:e?{type:`Polygon`,coordinates:[[...e,e[0]].map(e=>t.delaunay.centers[e])]}:null,properties:{site:t.valid[r],sitecoordinates:t.points[r],neighbours:t.delaunay.neighbors[r]}})),t.valid.length===1&&n.features.push({type:`Feature`,geometry:{type:`Sphere`},properties:{site:t.valid[0],sitecoordinates:t.points[0],neighbours:[]}}),n)},t.triangles=function(e){return e!==void 0&&t(e),t.delaunay?{type:`FeatureCollection`,features:t.delaunay.triangles.map((e,n)=>(e=e.map(e=>t.points[e]),e.center=t.delaunay.centers[n],e)).filter(e=>Nn(e)>0).map(e=>({type:`Feature`,properties:{circumcenter:e.center},geometry:{type:`Polygon`,coordinates:[[...e,e[0]]]}}))}:!1},t.links=function(e){if(e!==void 0&&t(e),!t.delaunay)return!1;let n=t.delaunay.edges.map(e=>qt(t.points[e[0]],t.points[e[1]])),r=t.delaunay.urquhart(n);return{type:`FeatureCollection`,features:t.delaunay.edges.map((e,i)=>({type:`Feature`,properties:{source:t.valid[e[0]],target:t.valid[e[1]],length:n[i],urquhart:!!r[i]},geometry:{type:`LineString`,coordinates:[t.points[e[0]],t.points[e[1]]]}}))}},t.mesh=function(e){return e!==void 0&&t(e),t.delaunay?{type:`MultiLineString`,coordinates:t.delaunay.edges.map(e=>[t.points[e[0]],t.points[e[1]]])}:!1},t.cellMesh=function(e){if(e!==void 0&&t(e),!t.delaunay)return!1;let{centers:n,polygons:r}=t.delaunay,i=[];for(let e of r)if(e)for(let t=e.length,r=e[t-1],a=e[0],o=0;o<t;r=a,a=e[++o])a>r&&i.push([n[r],n[a]]);return{type:`MultiLineString`,coordinates:i}},t._found=void 0,t.find=function(e,n,r){if(t._found=t.delaunay.find(e,n,t._found),!r||qt([e,n],t.points[t._found])<r)return t._found},t.hull=function(e){e!==void 0&&t(e);let n=t.delaunay.hull,r=t.points;return n.length===0?null:{type:`Polygon`,coordinates:[[...n.map(e=>r[e]),r[n[0]]]]}},e?t(e):t}function qn(e,t,n){let r=n===void 0?ce():n,i=ne(e,Jn(t(r))),a=e=>(i(e),n===void 0?r+``:void 0);return Object.setPrototypeOf(a,i),a}function Jn(e){return{beginPath(){},moveTo(t,n){e.lineStart(),e.point(t,n)},arc(e,t,n,r,i,a){},lineTo(t,n){e.point(t,n)},closePath(){e.lineEnd()}}}var Yn=new Set([`$$slots`,`$$events`,`$$legacy`,`Path`,`geoTransform`,`geojson`,`tooltip`,`curve`,`onclick`,`onpointerenter`,`onpointermove`,`onpointerleave`,`class`,`ref`,`children`]);function Xn(t,n){l(n,!0);let r=d(n,`curve`,3,_e),a=c(n,Yn),f=y(),m=x(),b=u(()=>n.geoTransform&&m.projection?Jt(n.geoTransform(m.projection)):m.projection),S=u(()=>{if(n.geojson,i(b))return r()===_e?ne(i(b)):qn(i(b),r())}),C=u(()=>n.geojson?i(S)?.(n.geojson)??``:``);function w(e){n.onclick?.(e,i(S))}function T(e){n.onpointerenter?.(e),n.tooltip&&f?.tooltip.show(e,n.geojson)}function E(e){n.onpointermove?.(e),n.tooltip&&f.tooltip.show(e,n.geojson)}function D(e){n.onpointerleave?.(e),n.tooltip&&f.tooltip.hide()}var O=v(),k=g(O),A=t=>{var r=v(),a=g(r);e(a,()=>n.children,()=>({geoPath:i(S)})),s(t,r)},j=e=>{var t=v(),r=g(t);{let e=u(()=>ae(`lc-geo-path`,n.class));p(r,()=>n.Path,(t,r)=>{r(t,h({get pathData(){return i(C)}},()=>a,()=>n.onclick&&{onclick:w},()=>(n.tooltip||n.onpointerenter)&&{onpointerenter:T},()=>(n.tooltip||n.onpointermove)&&{onpointermove:E},()=>(n.tooltip||n.onpointerleave)&&{onpointerleave:D},{get class(){return i(e)},get pathRef(){return n.ref}}))})}s(e,t)};o(k,e=>{n.children?e(A):e(j,-1)}),s(t,O),_()}var Zn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Qn(e,t){let n=c(t,Zn);Xn(e,h({get Path(){return ue}},()=>n))}var $n=new Set([`$$slots`,`$$events`,`$$legacy`]);function er(e,t){let n=c(t,$n);Xn(e,h({get Path(){return fe}},()=>n))}var tr=new Set([`$$slots`,`$$events`,`$$legacy`]);function nr(e,t){l(t,!0);let n=b(),r=c(t,tr);var i=v(),a=g(i),u=e=>{Qn(e,h(()=>r))},d=e=>{er(e,h(()=>r))};o(a,e=>{n===`svg`?e(u):n===`canvas`&&e(d,1)}),s(e,i),_()}var rr=new Set([`$$slots`,`$$events`,`$$legacy`,`Group`,`Path`,`CircleClipPath`,`data`,`x`,`y`,`r`,`classes`,`onclick`,`onpointerenter`,`onpointerdown`,`onpointermove`,`class`,`children`]),ir=n(`<!> <!>`,1);function ar(n,r){l(r,!0);let b=d(r,`classes`,19,()=>({})),C=c(r,rr),w=y(),T=S(),E=x(),D=u(()=>r.x==null?void 0:oe(r.x)),O=u(()=>r.y==null?void 0:oe(r.y)),k=u(()=>(r.data??T?.().data??w.flatData).map(e=>{let t=i(D)?E.projection?i(D)(e):w.xScale(i(D)(e)):E.projection?w.x(e):w.xGet(e),n=i(O)?E.projection?i(O)(e):w.yScale(i(O)(e)):E.projection?w.y(e):w.yGet(e),r=Array.isArray(t)?ie(t):t,a=Array.isArray(n)?ie(n):n,o;if(w.radial){let e=pe(r,a);o=[e[0]+w.width/2,e[1]+w.height/2]}else o=[r,a];return o.data=e,o})),A=u(()=>Math.max(w.width,0)),j=u(()=>Math.max(w.height,0)),M=u(()=>r.r===0||r.r==null||r.r===1/0),N=u(()=>E.projection?null:he.from(i(k)).voronoi([0,0,i(A),i(j)])),P=u(()=>E.projection?Kn().polygons(i(k)):null),F=u(()=>r.children?E.projection&&i(P)?i(P).features.map((e,t)=>{let n=E.projection?.(e.properties.sitecoordinates)??null,r=(e.geometry?.coordinates?.[0]??[]).map(e=>E.projection?.(e)).filter(e=>e!=null),i=r.length?r:null,a=E.projection?.(ct(e))??null;return{data:e.properties.site?.data,index:t,point:n??[NaN,NaN],polygon:i,centroid:a&&Number.isFinite(a[0])?a:null,area:Pe(e)}}):i(N)?i(k).map((e,t)=>{let n=i(N).cellPolygon(t);return{data:e.data,index:t,point:[e[0],e[1]],polygon:n,centroid:n?ge(n):null,area:n?Math.abs(me(n)):0}}):[]:[]);var I=v(),L=g(I);{let n=u(()=>ae(`lc-voronoi-g`,b().root,r.class));p(L,()=>r.Group,(c,l)=>{l(c,h(()=>C,{get class(){return i(n)},children:(n,c)=>{var l=ir(),d=g(l),h=e=>{var t=v(),n=g(t),c=e=>{var t=v(),n=g(t);f(n,17,()=>i(P).features,a,(e,t)=>{let n=u(()=>r.r?E.projection?.(i(t).properties.sitecoordinates):null);var a=v(),o=g(a);{let e=u(()=>i(n)?.[0]),a=u(()=>i(n)?.[1]),s=u(()=>r.r??0),c=u(()=>i(n)==null||i(M));p(o,()=>r.CircleClipPath,(n,o)=>{o(n,{get cx(){return i(e)},get cy(){return i(a)},get r(){return i(s)},get disabled(){return i(c)},children:(e,n)=>{{let n=u(()=>[`lc-voronoi-geo-path`,b().path]);nr(e,{get geojson(){return i(t)},get class(){return i(n)},onclick:e=>r.onclick?.(e,{data:i(t).properties.site.data,feature:i(t)}),onpointerenter:e=>r.onpointerenter?.(e,{data:i(t).properties.site.data,feature:i(t)}),onpointermove:e=>r.onpointermove?.(e,{data:i(t).properties.site.data,feature:i(t)}),onpointerdown:e=>r.onpointerdown?.(e,{data:i(t).properties.site.data,feature:i(t)}),ontouchmove:e=>{e.preventDefault()}})}},$$slots:{default:!0}})})}s(e,a)}),s(e,t)};o(n,e=>{i(P)&&e(c)}),s(e,t)},_=e=>{var t=v(),n=g(t);f(n,17,()=>i(k),a,(e,t,n)=>{let a=u(()=>i(N).renderCell(n));var c=v(),l=g(c),d=e=>{var n=v(),o=g(n);{let e=u(()=>r.r??0);p(o,()=>r.CircleClipPath,(n,o)=>{o(n,{get cx(){return i(t)[0]},get cy(){return i(t)[1]},get r(){return i(e)},get disabled(){return i(M)},children:(e,n)=>{var o=v(),c=g(o);{let e=u(()=>[`lc-voronoi-path`,b().path]);p(c,()=>r.Path,(n,o)=>{o(n,{get pathData(){return i(a)},get class(){return i(e)},onclick:e=>r.onclick?.(e,{data:i(t).data,point:i(t)}),onpointerenter:e=>r.onpointerenter?.(e,{data:i(t).data,point:i(t)}),onpointermove:e=>r.onpointermove?.(e,{data:i(t).data,point:i(t)}),onpointerdown:e=>r.onpointerdown?.(e,{data:i(t).data,point:i(t)}),ontouchmove:e=>{e.preventDefault()}})})}s(e,o)},$$slots:{default:!0}})})}s(e,n)};o(l,e=>{i(a)&&e(d)}),s(e,c)}),s(e,t)};o(d,e=>{E.projection?e(h):i(N)&&e(_,1)});var y=m(d,2);e(y,()=>r.children??t,()=>({cells:i(F)})),s(n,l)},$$slots:{default:!0}}))})}s(n,I),_()}function or(e,t){let n=r();l(t,!0);let a=d(t,`id`,19,()=>le(`clipPath-`,n)),o=d(t,`cx`,3,0),c=d(t,`cy`,3,0),f=d(t,`disabled`,3,!1),m=d(t,`invert`,3,!1),h=u(()=>`M${o()-t.r},${c()} a${t.r},${t.r} 0 1,0 ${2*t.r},0 a${t.r},${t.r} 0 1,0 ${-2*t.r},0 Z`);var y=v(),b=g(y);p(b,()=>t.ClipPath,(e,n)=>{n(e,{get id(){return a()},get disabled(){return f()},get invert(){return m()},get children(){return t.children},get path(){return i(h)}})}),s(e,y),_()}var sr=new Set([`$$slots`,`$$events`,`$$legacy`]);function cr(e,t){let n=c(t,sr);or(e,h({get ClipPath(){return ve}},()=>n))}var lr=new Set([`$$slots`,`$$events`,`$$legacy`]);function ur(e,t){let n=c(t,lr);ar(e,h({get Group(){return se},get Path(){return ue},get CircleClipPath(){return cr}},()=>n))}var dr=new Set([`$$slots`,`$$events`,`$$legacy`]);function fr(e,t){let n=c(t,dr);or(e,h({get ClipPath(){return be}},()=>n))}var pr=new Set([`$$slots`,`$$events`,`$$legacy`]);function mr(e,t){let n=c(t,pr);ar(e,h({get Group(){return de},get Path(){return fe},get CircleClipPath(){return fr}},()=>n))}var hr=new Set([`$$slots`,`$$events`,`$$legacy`]);function gr(e,t){l(t,!0);let n=b(),r=c(t,hr);var i=v(),a=g(i),u=e=>{ur(e,h(()=>r))},d=e=>{mr(e,h(()=>r))};o(a,e=>{n===`svg`?e(u):n===`canvas`&&e(d,1)}),s(e,i),_()}export{gr as default};
|
|
1
|
+
import{A as e,At as t,B as n,H as r,J as i,M as a,P as o,R as s,a as c,bt as l,ht as u,i as d,j as f,k as p,lt as m,o as h,st as g,yt as _,z as v}from"./pqiPC7Y8.js";import"./xihTtKlq.js";import{t as y}from"./CyncJW0D.js";import{D as b,g as x,v as S}from"./BAynhd7i.js";import{C,S as w,_ as T,a as E,b as D,c as O,d as k,f as A,g as j,h as M,i as N,l as P,n as F,o as I,p as L,r as ee,s as te,t as ne,u as R,v as re,w as z,x as B,y as V}from"./Y5urAfNy.js";import{t as ie}from"./Db0q5_zr.js";import{c as ae,t as oe}from"./snfmbqby.js";import{c as se,d as ce,l as le,n as ue,s as de,t as fe}from"./CG6rRxUy.js";import{t as pe}from"./BR2LaRms.js";import{n as me,r as he,t as ge}from"./yCfI4PCa.js";import{T as _e,d as ve,j as ye,u as be}from"./BGmgUZMc.js";function*xe(e){for(let t of e)yield*t}function Se(e){return Array.from(xe(e))}var Ce=new z,we=new z,Te,Ee,De,Oe,ke,H={point:E,lineStart:E,lineEnd:E,polygonStart:function(){Ce=new z,H.lineStart=Ae,H.lineEnd=je},polygonEnd:function(){var e=+Ce;we.add(e<0?C+e:e),this.lineStart=this.lineEnd=this.point=E},sphere:function(){we.add(C)}};function Ae(){H.point=Me}function je(){Ne(Te,Ee)}function Me(e,t){H.point=Ne,Te=e,Ee=t,e*=V,t*=V,De=e,Oe=k(t=t/2+re),ke=B(t)}function Ne(e,t){e*=V,t*=V,t=t/2+re;var n=e-De,r=n>=0?1:-1,i=r*n,a=k(t),o=B(t),s=ke*o,c=Oe*a+s*k(i),l=s*r*B(i);Ce.add(R(l,c)),De=e,Oe=a,ke=o}function Pe(e){return we=new z,N(e,H),we*2}function Fe(e){return[R(e[1],e[0]),O(e[2])]}function U(e){var t=e[0],n=e[1],r=k(n);return[r*k(t),r*B(t),B(n)]}function Ie(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Le(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Re(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ze(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Be(e){var t=w(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var W,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,G,K,q,J={sphere:E,point:$e,lineStart:et,lineEnd:rt,polygonStart:function(){J.lineStart=it,J.lineEnd=at},polygonEnd:function(){J.lineStart=et,J.lineEnd=rt}};function $e(e,t){e*=V,t*=V;var n=k(t);Y(n*k(e),n*B(e),B(t))}function Y(e,t,n){++W,He+=(e-He)/W,Ue+=(t-Ue)/W,We+=(n-We)/W}function et(){J.point=tt}function tt(e,t){e*=V,t*=V;var n=k(t);G=n*k(e),K=n*B(e),q=B(t),J.point=nt,Y(G,K,q)}function nt(e,t){e*=V,t*=V;var n=k(t),r=n*k(e),i=n*B(e),a=B(t),o=R(w((o=K*a-q*i)*o+(o=q*r-G*a)*o+(o=G*i-K*r)*o),G*r+K*i+q*a);Ve+=o,Ge+=o*(G+(G=r)),Ke+=o*(K+(K=i)),qe+=o*(q+(q=a)),Y(G,K,q)}function rt(){J.point=$e}function it(){J.point=ot}function at(){st(Ze,Qe),J.point=$e}function ot(e,t){Ze=e,Qe=t,e*=V,t*=V,J.point=st;var n=k(t);G=n*k(e),K=n*B(e),q=B(t),Y(G,K,q)}function st(e,t){e*=V,t*=V;var n=k(t),r=n*k(e),i=n*B(e),a=B(t),o=K*a-q*i,s=q*r-G*a,c=G*i-K*r,l=j(o,s,c),u=O(l),d=l&&-u/l;Je.add(d*o),Ye.add(d*s),Xe.add(d*c),Ve+=u,Ge+=u*(G+(G=r)),Ke+=u*(K+(K=i)),qe+=u*(q+(q=a)),Y(G,K,q)}function ct(e){W=Ve=He=Ue=We=Ge=Ke=qe=0,Je=new z,Ye=new z,Xe=new z,N(e,J);var t=+Je,n=+Ye,r=+Xe,i=j(t,n,r);return i<1e-12&&(t=Ge,n=Ke,r=qe,Ve<1e-6&&(t=He,n=Ue,r=We),i=j(t,n,r),i<1e-12)?[NaN,NaN]:[R(n,t)*A,O(r/i)*A]}function lt(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function ut(e,t){return I(e)>T&&(e-=Math.round(e/C)*C),[e,t]}ut.invert=ut;function dt(e,t,n){return(e%=C)?t||n?lt(pt(e),mt(t,n)):pt(e):t||n?mt(t,n):ut}function ft(e){return function(t,n){return t+=e,I(t)>T&&(t-=Math.round(t/C)*C),[t,n]}}function pt(e){var t=ft(e);return t.invert=ft(-e),t}function mt(e,t){var n=k(e),r=B(e),i=k(t),a=B(t);function o(e,t){var o=k(t),s=k(e)*o,c=B(e)*o,l=B(t),u=l*n+s*r;return[R(c*i-u*a,s*n-l*r),O(u*i+c*a)]}return o.invert=function(e,t){var o=k(t),s=k(e)*o,c=B(e)*o,l=B(t),u=l*i-c*a;return[R(c*i+l*a,s*n+u*r),O(u*n-s*r)]},o}function ht(e){e=dt(e[0]*V,e[1]*V,e.length>2?e[2]*V:0);function t(t){return t=e(t[0]*V,t[1]*V),t[0]*=A,t[1]*=A,t}return t.invert=function(t){return t=e.invert(t[0]*V,t[1]*V),t[0]*=A,t[1]*=A,t},t}function gt(e,t,n,r,i,a){if(n){var o=k(t),s=B(t),c=r*n;i==null?(i=t+r*C,a=t-c/2):(i=_t(o,i),a=_t(o,a),(r>0?i<a:i>a)&&(i+=r*C));for(var l,u=i;r>0?u>a:u<a;u-=c)l=Fe([o,-s*k(u),-s*B(u)]),e.point(l[0],l[1])}}function _t(e,t){t=U(t),t[0]-=e,Be(t);var n=te(-t[1]);return((-t[2]<0?-n:n)+C-L)%C}function vt(){var e=[],t;return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:E,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function yt(e,t){return I(e[0]-t[0])<1e-6&&I(e[1]-t[1])<1e-6}function bt(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function xt(e,t,n,r,i){var a=[],o=[],s,c;if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t],c;if(yt(n,r)){if(!n[2]&&!r[2]){for(i.lineStart(),s=0;s<t;++s)i.point((n=e[s])[0],n[1]);i.lineEnd();return}r[0]+=2*L}a.push(c=new bt(n,e,null,!0)),o.push(c.o=new bt(n,null,c,!1)),a.push(c=new bt(r,e,null,!1)),o.push(c.o=new bt(r,null,c,!0))}}),a.length){for(o.sort(t),St(a),St(o),s=0,c=o.length;s<c;++s)o[s].e=n=!n;for(var l=a[0],u,d;;){for(var f=l,p=!0;f.v;)if((f=f.n)===l)return;u=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(s=0,c=u.length;s<c;++s)i.point((d=u[s])[0],d[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(p)for(u=f.p.z,s=u.length-1;s>=0;--s)i.point((d=u[s])[0],d[1]);else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,u=f.z,p=!p}while(!f.v);i.lineEnd()}}}function St(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function Ct(e){return I(e[0])<=T?e[0]:D(e[0])*((I(e[0])+T)%C-T)}function wt(e,t){var n=Ct(t),r=t[1],i=B(r),a=[B(n),-k(n),0],o=0,s=0,c=new z;i===1?r=M+L:i===-1&&(r=-M-L);for(var l=0,u=e.length;l<u;++l)if(f=(d=e[l]).length)for(var d,f,p=d[f-1],m=Ct(p),h=p[1]/2+re,g=B(h),_=k(h),v=0;v<f;++v,m=b,g=S,_=w,p=y){var y=d[v],b=Ct(y),x=y[1]/2+re,S=B(x),w=k(x),E=b-m,D=E>=0?1:-1,A=D*E,j=A>T,N=g*S;if(c.add(R(N*D*B(A),_*w+N*k(A))),o+=j?E+D*C:E,j^m>=n^b>=n){var P=Le(U(p),U(y));Be(P);var F=Le(a,P);Be(F);var I=(j^E>=0?-1:1)*O(F[2]);(r>I||r===I&&(P[0]||P[1]))&&(s+=j^E>=0?1:-1)}}return(o<-1e-6||o<1e-6&&c<-1e-12)^s&1}function Tt(e,t,n,r){return function(i){var a=t(i),o=vt(),s=t(o),c=!1,l,u,d,f={point:p,lineStart:h,lineEnd:g,polygonStart:function(){f.point=_,f.lineStart=v,f.lineEnd=y,u=[],l=[]},polygonEnd:function(){f.point=p,f.lineStart=h,f.lineEnd=g,u=Se(u);var e=wt(l,r);u.length?(c||=(i.polygonStart(),!0),xt(u,Dt,e,n,i)):e&&(c||=(i.polygonStart(),!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),c&&=(i.polygonEnd(),!1),u=l=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(t,n){e(t,n)&&i.point(t,n)}function m(e,t){a.point(e,t)}function h(){f.point=m,a.lineStart()}function g(){f.point=p,a.lineEnd()}function _(e,t){d.push([e,t]),s.point(e,t)}function v(){s.lineStart(),d=[]}function y(){_(d[0][0],d[0][1]),s.lineEnd();var e=s.clean(),t=o.result(),n,r=t.length,a,f,p;if(d.pop(),l.push(d),d=null,r){if(e&1){if(f=t[0],(a=f.length-1)>0){for(c||=(i.polygonStart(),!0),i.lineStart(),n=0;n<a;++n)i.point((p=f[n])[0],p[1]);i.lineEnd()}return}r>1&&e&2&&t.push(t.pop().concat(t.shift())),u.push(t.filter(Et))}}return f}}function Et(e){return e.length>1}function Dt(e,t){return((e=e.x)[0]<0?e[1]-M-L:M-e[1])-((t=t.x)[0]<0?t[1]-M-L:M-t[1])}var Ot=Tt(function(){return!0},kt,jt,[-T,-M]);function kt(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?T:-T,c=I(a-t);I(c-T)<1e-6?(e.point(t,n=(n+o)/2>0?M:-M),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&c>=T&&(I(t-r)<1e-6&&(t-=r*L),I(a-s)<1e-6&&(a-=s*L),n=At(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function At(e,t,n,r){var i,a,o=B(e-n);return I(o)>1e-6?P((B(t)*(a=k(r))*B(n)-B(r)*(i=k(t))*B(e))/(i*a*o)):(t+r)/2}function jt(e,t,n,r){var i;if(e==null)i=n*M,r.point(-T,i),r.point(0,i),r.point(T,i),r.point(T,0),r.point(T,-i),r.point(0,-i),r.point(-T,-i),r.point(-T,0),r.point(-T,i);else if(I(e[0]-t[0])>1e-6){var a=e[0]<t[0]?T:-T;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function Mt(e){var t=k(e),n=2*V,r=t>0,i=I(t)>L;function a(t,r,i,a){gt(a,e,n,i,t,r)}function o(e,n){return k(e)*k(n)>t}function s(e){var t,n,a,s,u;return{lineStart:function(){s=a=!1,u=1},point:function(d,f){var p=[d,f],m,h=o(d,f),g=r?h?0:l(d,f):h?l(d+(d<0?T:-T),f):0;if(!t&&(s=a=h)&&e.lineStart(),h!==a&&(m=c(t,p),(!m||yt(t,m)||yt(p,m))&&(p[2]=1)),h!==a)u=0,h?(e.lineStart(),m=c(p,t),e.point(m[0],m[1])):(m=c(t,p),e.point(m[0],m[1],2),e.lineEnd()),t=m;else if(i&&t&&r^h){var _;!(g&n)&&(_=c(p,t,!0))&&(u=0,r?(e.lineStart(),e.point(_[0][0],_[0][1]),e.point(_[1][0],_[1][1]),e.lineEnd()):(e.point(_[1][0],_[1][1]),e.lineEnd(),e.lineStart(),e.point(_[0][0],_[0][1],3)))}h&&(!t||!yt(t,p))&&e.point(p[0],p[1]),t=p,a=h,n=g},lineEnd:function(){a&&e.lineEnd(),t=null},clean:function(){return u|(s&&a)<<1}}}function c(e,n,r){var i=U(e),a=U(n),o=[1,0,0],s=Le(i,a),c=Ie(s,s),l=s[0],u=c-l*l;if(!u)return!r&&e;var d=t*c/u,f=-t*l/u,p=Le(o,s),m=ze(o,d);Re(m,ze(s,f));var h=p,g=Ie(m,h),_=Ie(h,h),v=g*g-_*(Ie(m,m)-1);if(!(v<0)){var y=w(v),b=ze(h,(-g-y)/_);if(Re(b,m),b=Fe(b),!r)return b;var x=e[0],S=n[0],C=e[1],E=n[1],D;S<x&&(D=x,x=S,S=D);var O=S-x,k=I(O-T)<L,A=k||O<1e-6;if(!k&&E<C&&(D=C,C=E,E=D),A?k?C+E>0^b[1]<(I(b[0]-x)<1e-6?C:E):C<=b[1]&&b[1]<=E:O>T^(x<=b[0]&&b[0]<=S)){var j=ze(h,(-g+y)/_);return Re(j,m),[b,Fe(j)]}}}function l(t,n){var i=r?e:T-e,a=0;return t<-i?a|=1:t>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return Tt(o,s,a,r?[0,-e]:[-T,e-T])}function Nt(e,t,n,r,i,a){var o=e[0],s=e[1],c=t[0],l=t[1],u=0,d=1,f=c-o,p=l-s,m=n-o;if(!(!f&&m>0)){if(m/=f,f<0){if(m<u)return;m<d&&(d=m)}else if(f>0){if(m>d)return;m>u&&(u=m)}if(m=i-o,!(!f&&m<0)){if(m/=f,f<0){if(m>d)return;m>u&&(u=m)}else if(f>0){if(m<u)return;m<d&&(d=m)}if(m=r-s,!(!p&&m>0)){if(m/=p,p<0){if(m<u)return;m<d&&(d=m)}else if(p>0){if(m>d)return;m>u&&(u=m)}if(m=a-s,!(!p&&m<0)){if(m/=p,p<0){if(m>d)return;m>u&&(u=m)}else if(p>0){if(m<u)return;m<d&&(d=m)}return u>0&&(e[0]=o+u*f,e[1]=s+u*p),d<1&&(t[0]=o+d*f,t[1]=s+d*p),!0}}}}}var X=1e9,Pt=-X;function Ft(e,t,n,r){function i(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function a(i,a,s,l){var u=0,d=0;if(i==null||(u=o(i,s))!==(d=o(a,s))||c(i,a)<0^s>0)do l.point(u===0||u===3?e:n,u>1?r:t);while((u=(u+s+4)%4)!==d);else l.point(a[0],a[1])}function o(r,i){return I(r[0]-e)<1e-6?i>0?0:3:I(r[0]-n)<1e-6?i>0?2:1:I(r[1]-t)<1e-6?+(i>0):i>0?3:2}function s(e,t){return c(e.x,t.x)}function c(e,t){var n=o(e,1),r=o(t,1);return n===r?n===0?t[1]-e[1]:n===1?e[0]-t[0]:n===2?e[1]-t[1]:t[0]-e[0]:n-r}return function(o){var c=o,l=vt(),u,d,f,p,m,h,g,_,v,y,b,x={point:S,lineStart:E,lineEnd:D,polygonStart:w,polygonEnd:T};function S(e,t){i(e,t)&&c.point(e,t)}function C(){for(var t=0,n=0,i=d.length;n<i;++n)for(var a=d[n],o=1,s=a.length,c=a[0],l,u,f=c[0],p=c[1];o<s;++o)l=f,u=p,c=a[o],f=c[0],p=c[1],u<=r?p>r&&(f-l)*(r-u)>(p-u)*(e-l)&&++t:p<=r&&(f-l)*(r-u)<(p-u)*(e-l)&&--t;return t}function w(){c=l,u=[],d=[],b=!0}function T(){var e=C(),t=b&&e,n=(u=Se(u)).length;(t||n)&&(o.polygonStart(),t&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),n&&xt(u,s,e,a,o),o.polygonEnd()),c=o,u=d=f=null}function E(){x.point=O,d&&d.push(f=[]),y=!0,v=!1,g=_=NaN}function D(){u&&(O(p,m),h&&v&&l.rejoin(),u.push(l.result())),x.point=S,v&&c.lineEnd()}function O(a,o){var s=i(a,o);if(d&&f.push([a,o]),y)p=a,m=o,h=s,y=!1,s&&(c.lineStart(),c.point(a,o));else if(s&&v)c.point(a,o);else{var l=[g=Math.max(Pt,Math.min(X,g)),_=Math.max(Pt,Math.min(X,_))],u=[a=Math.max(Pt,Math.min(X,a)),o=Math.max(Pt,Math.min(X,o))];Nt(l,u,e,t,n,r)?(v||(c.lineStart(),c.point(l[0],l[1])),c.point(u[0],u[1]),s||c.lineEnd(),b=!1):s&&(c.lineStart(),c.point(a,o),b=!1)}g=a,_=o,v=s}return x}}var It,Lt,Rt,zt,Z={sphere:E,point:E,lineStart:Bt,lineEnd:E,polygonStart:E,polygonEnd:E};function Bt(){Z.point=Ht,Z.lineEnd=Vt}function Vt(){Z.point=Z.lineEnd=E}function Ht(e,t){e*=V,t*=V,Lt=e,Rt=B(t),zt=k(t),Z.point=Ut}function Ut(e,t){e*=V,t*=V;var n=B(t),r=k(t),i=I(e-Lt),a=k(i),o=r*B(i),s=zt*n-Rt*r*a,c=Rt*n+zt*r*a;It.add(R(w(o*o+s*s),c)),Lt=e,Rt=n,zt=r}function Wt(e){return It=new z,N(e,Z),+It}var Gt=[null,null],Kt={type:`LineString`,coordinates:Gt};function qt(e,t){return Gt[0]=e,Gt[1]=t,Wt(Kt)}function Jt(e){return{stream:Yt(e)}}function Yt(e){return function(t){var n=new Xt;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Xt(){}Xt.prototype={constructor:Xt,point:function(e,t){this.stream.point(e,t)},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()}};function Zt(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),N(n,e.stream(F)),t(F.result()),r!=null&&e.clipExtent(r),e}function Qt(e,t,n){return Zt(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+t[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-a*(n[1][1]+n[0][1]))/2;e.scale(150*a).translate([o,s])},n)}function $t(e,t,n){return Qt(e,[[0,0],t],n)}function en(e,t,n){return Zt(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];e.scale(150*i).translate([a,o])},n)}function tn(e,t,n){return Zt(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,o])},n)}var nn=16,rn=k(30*V);function an(e,t){return+t?sn(e,t):on(e)}function on(e){return Yt({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function sn(e,t){function n(r,i,a,o,s,c,l,u,d,f,p,m,h,g){var _=l-r,v=u-i,y=_*_+v*v;if(y>4*t&&h--){var b=o+f,x=s+p,S=c+m,C=w(b*b+x*x+S*S),T=O(S/=C),E=I(I(S)-1)<1e-6||I(a-d)<1e-6?(a+d)/2:R(x,b),D=e(E,T),k=D[0],A=D[1],j=k-r,M=A-i,N=v*j-_*M;(N*N/y>t||I((_*j+v*M)/y-.5)>.3||o*f+s*p+c*m<rn)&&(n(r,i,a,o,s,c,k,A,E,b/=C,x/=C,S,h,g),g.point(k,A),n(k,A,E,b,x,S,l,u,d,f,p,m,h,g))}}return function(t){var r,i,a,o,s,c,l,u,d,f,p,m,h={point:g,lineStart:_,lineEnd:y,polygonStart:function(){t.polygonStart(),h.lineStart=b},polygonEnd:function(){t.polygonEnd(),h.lineStart=_}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function _(){u=NaN,h.point=v,t.lineStart()}function v(r,i){var a=U([r,i]),o=e(r,i);n(u,d,l,f,p,m,u=o[0],d=o[1],l=r,f=a[0],p=a[1],m=a[2],nn,t),t.point(u,d)}function y(){h.point=g,t.lineEnd()}function b(){_(),h.point=x,h.lineEnd=S}function x(e,t){v(r=e,t),i=u,a=d,o=f,s=p,c=m,h.point=v}function S(){n(u,d,l,f,p,m,i,a,r,o,s,c,nn,t),h.lineEnd=y,y()}return h}}var cn=Yt({point:function(e,t){this.stream.point(e*V,t*V)}});function ln(e){return Yt({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function un(e,t,n,r,i){function a(a,o){return a*=r,o*=i,[t+e*a,n-e*o]}return a.invert=function(a,o){return[(a-t)/e*r,(n-o)/e*i]},a}function dn(e,t,n,r,i,a){if(!a)return un(e,t,n,r,i);var o=k(a),s=B(a),c=o*e,l=s*e,u=o/e,d=s/e,f=(s*n-o*t)/e,p=(s*t+o*n)/e;function m(e,a){return e*=r,a*=i,[c*e-l*a+t,n-l*e-c*a]}return m.invert=function(e,t){return[r*(u*e-d*t+f),i*(p-d*e-u*t)]},m}function fn(e){return pn(function(){return e})()}function pn(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,c=0,l=0,u,d=0,f=1,p=1,m=null,h=Ot,g=null,_,v,y,b=ee,x=.5,S,C,T,E,D;function O(e){return T(e[0]*V,e[1]*V)}function k(e){return e=T.invert(e[0],e[1]),e&&[e[0]*A,e[1]*A]}O.stream=function(e){return E&&D===e?E:E=cn(ln(u)(h(S(b(D=e)))))},O.preclip=function(e){return arguments.length?(h=e,m=void 0,M()):h},O.postclip=function(e){return arguments.length?(b=e,g=_=v=y=null,M()):b},O.clipAngle=function(e){return arguments.length?(h=+e?Mt(m=e*V):(m=null,Ot),M()):m*A},O.clipExtent=function(e){return arguments.length?(b=e==null?(g=_=v=y=null,ee):Ft(g=+e[0][0],_=+e[0][1],v=+e[1][0],y=+e[1][1]),M()):g==null?null:[[g,_],[v,y]]},O.scale=function(e){return arguments.length?(n=+e,j()):n},O.translate=function(e){return arguments.length?(r=+e[0],i=+e[1],j()):[r,i]},O.center=function(e){return arguments.length?(a=e[0]%360*V,o=e[1]%360*V,j()):[a*A,o*A]},O.rotate=function(e){return arguments.length?(s=e[0]%360*V,c=e[1]%360*V,l=e.length>2?e[2]%360*V:0,j()):[s*A,c*A,l*A]},O.angle=function(e){return arguments.length?(d=e%360*V,j()):d*A},O.reflectX=function(e){return arguments.length?(f=e?-1:1,j()):f<0},O.reflectY=function(e){return arguments.length?(p=e?-1:1,j()):p<0},O.precision=function(e){return arguments.length?(S=an(C,x=e*e),M()):w(x)},O.fitExtent=function(e,t){return Qt(O,e,t)},O.fitSize=function(e,t){return $t(O,e,t)},O.fitWidth=function(e,t){return en(O,e,t)},O.fitHeight=function(e,t){return tn(O,e,t)};function j(){var e=dn(n,0,0,f,p,d).apply(null,t(a,o)),m=dn(n,r-e[0],i-e[1],f,p,d);return u=dt(s,c,l),C=lt(t,m),T=lt(u,C),S=an(C,x),M()}function M(){return E=D=null,O}return function(){return t=e.apply(this,arguments),O.invert=t.invert&&k,j()}}function mn(e){return function(t,n){var r=w(t*t+n*n),i=e(r),a=B(i),o=k(i);return[R(t*a,r*o),O(r&&n*a/r)]}}function hn(e,t){var n=k(t),r=1+k(e)*n;return[n*B(e)/r,B(t)/r]}hn.invert=mn(function(e){return 2*P(e)});function gn(){return fn(hn).scale(250).clipAngle(142)}var _n=Math.PI,vn=_n/2;_n/4,_n*2;var yn=180/_n,bn=_n/180,xn=Math.atan2,Sn=Math.cos,Cn=Math.max,wn=Math.min,Tn=Math.sin,En=Math.sign||function(e){return e>0?1:e<0?-1:0},Dn=Math.sqrt;function On(e){return e>1?vn:e<-1?-vn:Math.asin(e)}function kn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Q(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function An(e,t){return[e[0]+t[0],e[1]+t[1],e[2]+t[2]]}function jn(e){var t=Dn(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);return[e[0]/t,e[1]/t,e[2]/t]}function Mn(e){return[xn(e[1],e[0])*yn,On(Cn(-1,wn(1,e[2])))*yn]}function $(e){let t=e[0]*bn,n=e[1]*bn,r=Sn(n);return[r*Sn(t),r*Tn(t),Tn(n)]}function Nn(e){return e=e.map(e=>$(e)),kn(e[0],Q(e[2],e[1]))}function Pn(e){let t=In(e),n=Rn(t),r=Ln(n,e),i=Bn(n,e.length),a=Fn(i,e),{polygons:o,centers:s}=Vn(zn(n,e),n,e);return{delaunay:t,edges:r,triangles:n,centers:s,neighbors:i,polygons:o,mesh:Un(o),hull:Gn(n,e),urquhart:Wn(r,n),find:a}}function Fn(e,t){function n(e,t){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}return function(r,i,a){a===void 0&&(a=0);let o,s,c=a,l=$([r,i]);do o=a,a=null,s=n(l,$(t[o])),e[o].forEach(e=>{let r=n(l,$(t[e]));if(r<s){s=r,a=e,c=e;return}});while(a!==null);return c}}function In(e){if(e.length<2)return{};let t=0;for(;isNaN(e[t][0]+e[t][1])&&t++<e.length;);let n=ht(e[t]),r=gn().translate([0,0]).scale(1).rotate(n.invert([180,0]));e=e.map(r);let i=[],a=1;for(let t=0,n=e.length;t<n;t++){let n=e[t][0]**2+e[t][1]**2;!isFinite(n)||n>1e32?i.push(t):n>a&&(a=n)}let o=1e6*Dn(a);i.forEach(t=>e[t]=[o,0]),e.push([0,o]),e.push([-o,0]),e.push([0,-o]);let s=he.from(e);s.projection=r;let{triangles:c,halfedges:l,inedges:u}=s,d=[];for(let n=0,r=l.length;n<r;n++)if(l[n]<0){let e=n%3==2?n-2:n+1,r=n%3==0?n+2:n-1,i=l[e],a=l[r];l[i]=a,l[a]=i,l[e]=l[r]=-1,c[n]=c[e]=c[r]=t,u[c[i]]=i%3==0?i+2:i-1,u[c[a]]=a%3==0?a+2:a-1,d.push(Math.min(n,e,r)),n+=2-n%3}else c[n]>e.length-3-1&&(c[n]=t);return s}function Ln(e,t){let n=new Set;return t.length===2?[[0,1]]:(e.forEach(e=>{if(e[0]!==e[1]&&!(Nn(e.map(e=>t[e]))<0))for(let t=0,r;t<3;t++)r=(t+1)%3,n.add(ye([e[t],e[r]]).join(`-`))}),Array.from(n,e=>e.split(`-`).map(Number)))}function Rn(e){let{triangles:t}=e;if(!t)return[];let n=[];for(let e=0,r=t.length/3;e<r;e++){let r=t[3*e],i=t[3*e+1],a=t[3*e+2];r!==i&&i!==a&&n.push([r,a,i])}return n}function zn(e,t){return e.map(e=>{let n=e.map(e=>t[e]).map($);return Mn(jn(An(An(Q(n[1],n[0]),Q(n[2],n[1])),Q(n[0],n[2]))))})}function Bn(e,t){let n=[];return e.forEach(e=>{for(let t=0;t<3;t++){let r=e[t],i=e[(t+1)%3];n[r]=n[r]||[],n[r].push(i)}}),e.length===0&&(t===2?(n[0]=[1],n[1]=[0]):t===1&&(n[0]=[])),n}function Vn(e,t,n){let r=[],i=e.slice();if(t.length===0){if(n.length<2)return{polygons:r,centers:i};if(n.length===2){let e=$(n[0]),t=$(n[1]),a=jn(An(e,t)),s=Q(a,jn(Q(e,t))),c=[a,Q(a,s),Q(Q(a,s),s),Q(Q(Q(a,s),s),s)].map(Mn).map(o);return r.push(c),r.push(c.slice().reverse()),{polygons:r,centers:i}}}t.forEach((e,t)=>{for(let n=0;n<3;n++){let i=e[n],a=e[(n+1)%3],o=e[(n+2)%3];r[i]=r[i]||[],r[i].push([a,o,t,[i,a,o]])}});let a=r.map(e=>{let t=[e[0][2]],r=e[0][1];for(let n=1;n<e.length;n++)for(let n=0;n<e.length;n++)if(e[n][0]==r){r=e[n][1],t.push(e[n][2]);break}if(t.length>2)return t;if(t.length==2){let r=Hn(n[e[0][3][0]],n[e[0][3][1]],i[t[0]]),a=Hn(n[e[0][3][2]],n[e[0][3][0]],i[t[0]]),s=o(r),c=o(a);return[t[0],c,t[1],s]}});function o(e){let n=-1;return i.slice(t.length,1/0).forEach((r,i)=>{r[0]===e[0]&&r[1]===e[1]&&(n=i+t.length)}),n<0&&(n=i.length,i.push(e)),n}return{polygons:a,centers:i}}function Hn(e,t,n){e=$(e),t=$(t),n=$(n);let r=En(kn(Q(t,e),n));return Mn(jn(An(e,t)).map(e=>r*e))}function Un(e){let t=[];return e.forEach(e=>{if(!e)return;let n=e[e.length-1];for(let r of e)r>n&&t.push([n,r]),n=r}),t}function Wn(e,t){return function(n){let r=new Map,i=new Map;return e.forEach((e,t)=>{let a=e.join(`-`);r.set(a,n[t]),i.set(a,!0)}),t.forEach(e=>{let t=0,n=-1;for(let i=0;i<3;i++){let a=ye([e[i],e[(i+1)%3]]).join(`-`);r.get(a)>t&&(t=r.get(a),n=a)}i.set(n,!1)}),e.map(e=>i.get(e.join(`-`)))}}function Gn(e,t){let n=new Set,r=[];e.map(e=>{if(!(Nn(e.map(e=>t[e>t.length?0:e]))>1e-12))for(let t=0;t<3;t++){let r=[e[t],e[(t+1)%3]],i=`${r[0]}-${r[1]}`;n.has(i)?n.delete(i):n.add(`${r[1]}-${r[0]}`)}});let i=new Map,a;if(n.forEach(e=>{e=e.split(`-`).map(Number),i.set(e[0],e[1]),a=e[0]}),a===void 0)return r;let o=a;do{r.push(o);let e=i.get(o);i.set(o,-1),o=e}while(o>-1&&o!==a);return r}function Kn(e){let t=function(e){if(t.delaunay=null,t._data=e,typeof t._data==`object`&&t._data.type===`FeatureCollection`&&(t._data=t._data.features),typeof t._data==`object`){let e=t._data.map(e=>[t._vx(e),t._vy(e),e]).filter(e=>isFinite(e[0]+e[1]));t.points=e.map(e=>[e[0],e[1]]),t.valid=e.map(e=>e[2]),t.delaunay=Pn(t.points)}return t};return t._vx=function(e){if(typeof e==`object`&&`type`in e)return ct(e)[0];if(0 in e)return e[0]},t._vy=function(e){if(typeof e==`object`&&`type`in e)return ct(e)[1];if(1 in e)return e[1]},t.x=function(e){return e?(t._vx=e,t):t._vx},t.y=function(e){return e?(t._vy=e,t):t._vy},t.polygons=function(e){if(e!==void 0&&t(e),!t.delaunay)return!1;let n={type:`FeatureCollection`,features:[]};return t.valid.length===0?n:(t.delaunay.polygons.forEach((e,r)=>n.features.push({type:`Feature`,geometry:e?{type:`Polygon`,coordinates:[[...e,e[0]].map(e=>t.delaunay.centers[e])]}:null,properties:{site:t.valid[r],sitecoordinates:t.points[r],neighbours:t.delaunay.neighbors[r]}})),t.valid.length===1&&n.features.push({type:`Feature`,geometry:{type:`Sphere`},properties:{site:t.valid[0],sitecoordinates:t.points[0],neighbours:[]}}),n)},t.triangles=function(e){return e!==void 0&&t(e),t.delaunay?{type:`FeatureCollection`,features:t.delaunay.triangles.map((e,n)=>(e=e.map(e=>t.points[e]),e.center=t.delaunay.centers[n],e)).filter(e=>Nn(e)>0).map(e=>({type:`Feature`,properties:{circumcenter:e.center},geometry:{type:`Polygon`,coordinates:[[...e,e[0]]]}}))}:!1},t.links=function(e){if(e!==void 0&&t(e),!t.delaunay)return!1;let n=t.delaunay.edges.map(e=>qt(t.points[e[0]],t.points[e[1]])),r=t.delaunay.urquhart(n);return{type:`FeatureCollection`,features:t.delaunay.edges.map((e,i)=>({type:`Feature`,properties:{source:t.valid[e[0]],target:t.valid[e[1]],length:n[i],urquhart:!!r[i]},geometry:{type:`LineString`,coordinates:[t.points[e[0]],t.points[e[1]]]}}))}},t.mesh=function(e){return e!==void 0&&t(e),t.delaunay?{type:`MultiLineString`,coordinates:t.delaunay.edges.map(e=>[t.points[e[0]],t.points[e[1]]])}:!1},t.cellMesh=function(e){if(e!==void 0&&t(e),!t.delaunay)return!1;let{centers:n,polygons:r}=t.delaunay,i=[];for(let e of r)if(e)for(let t=e.length,r=e[t-1],a=e[0],o=0;o<t;r=a,a=e[++o])a>r&&i.push([n[r],n[a]]);return{type:`MultiLineString`,coordinates:i}},t._found=void 0,t.find=function(e,n,r){if(t._found=t.delaunay.find(e,n,t._found),!r||qt([e,n],t.points[t._found])<r)return t._found},t.hull=function(e){e!==void 0&&t(e);let n=t.delaunay.hull,r=t.points;return n.length===0?null:{type:`Polygon`,coordinates:[[...n.map(e=>r[e]),r[n[0]]]]}},e?t(e):t}function qn(e,t,n){let r=n===void 0?ce():n,i=ne(e,Jn(t(r))),a=e=>(i(e),n===void 0?r+``:void 0);return Object.setPrototypeOf(a,i),a}function Jn(e){return{beginPath(){},moveTo(t,n){e.lineStart(),e.point(t,n)},arc(e,t,n,r,i,a){},lineTo(t,n){e.point(t,n)},closePath(){e.lineEnd()}}}var Yn=new Set([`$$slots`,`$$events`,`$$legacy`,`Path`,`geoTransform`,`geojson`,`tooltip`,`curve`,`onclick`,`onpointerenter`,`onpointermove`,`onpointerleave`,`class`,`ref`,`children`]);function Xn(t,n){l(n,!0);let r=d(n,`curve`,3,_e),a=c(n,Yn),f=y(),m=x(),b=u(()=>n.geoTransform&&m.projection?Jt(n.geoTransform(m.projection)):m.projection),S=u(()=>{if(n.geojson,i(b))return r()===_e?ne(i(b)):qn(i(b),r())}),C=u(()=>n.geojson?i(S)?.(n.geojson)??``:``);function w(e){n.onclick?.(e,i(S))}function T(e){n.onpointerenter?.(e),n.tooltip&&f?.tooltip.show(e,n.geojson)}function E(e){n.onpointermove?.(e),n.tooltip&&f.tooltip.show(e,n.geojson)}function D(e){n.onpointerleave?.(e),n.tooltip&&f.tooltip.hide()}var O=v(),k=g(O),A=t=>{var r=v(),a=g(r);e(a,()=>n.children,()=>({geoPath:i(S)})),s(t,r)},j=e=>{var t=v(),r=g(t);{let e=u(()=>ae(`lc-geo-path`,n.class));p(r,()=>n.Path,(t,r)=>{r(t,h({get pathData(){return i(C)}},()=>a,()=>n.onclick&&{onclick:w},()=>(n.tooltip||n.onpointerenter)&&{onpointerenter:T},()=>(n.tooltip||n.onpointermove)&&{onpointermove:E},()=>(n.tooltip||n.onpointerleave)&&{onpointerleave:D},{get class(){return i(e)},get pathRef(){return n.ref}}))})}s(e,t)};o(k,e=>{n.children?e(A):e(j,-1)}),s(t,O),_()}var Zn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Qn(e,t){let n=c(t,Zn);Xn(e,h({get Path(){return ue}},()=>n))}var $n=new Set([`$$slots`,`$$events`,`$$legacy`]);function er(e,t){let n=c(t,$n);Xn(e,h({get Path(){return fe}},()=>n))}var tr=new Set([`$$slots`,`$$events`,`$$legacy`]);function nr(e,t){l(t,!0);let n=b(),r=c(t,tr);var i=v(),a=g(i),u=e=>{Qn(e,h(()=>r))},d=e=>{er(e,h(()=>r))};o(a,e=>{n===`svg`?e(u):n===`canvas`&&e(d,1)}),s(e,i),_()}var rr=new Set([`$$slots`,`$$events`,`$$legacy`,`Group`,`Path`,`CircleClipPath`,`data`,`x`,`y`,`r`,`classes`,`onclick`,`onpointerenter`,`onpointerdown`,`onpointermove`,`class`,`children`]),ir=n(`<!> <!>`,1);function ar(n,r){l(r,!0);let b=d(r,`classes`,19,()=>({})),C=c(r,rr),w=y(),T=S(),E=x(),D=u(()=>r.x==null?void 0:oe(r.x)),O=u(()=>r.y==null?void 0:oe(r.y)),k=u(()=>(r.data??T?.().data??w.flatData).map(e=>{let t=i(D)?E.projection?i(D)(e):w.xScale(i(D)(e)):E.projection?w.x(e):w.xGet(e),n=i(O)?E.projection?i(O)(e):w.yScale(i(O)(e)):E.projection?w.y(e):w.yGet(e),r=Array.isArray(t)?ie(t):t,a=Array.isArray(n)?ie(n):n,o;if(w.radial){let e=pe(r,a);o=[e[0]+w.width/2,e[1]+w.height/2]}else o=[r,a];return o.data=e,o})),A=u(()=>Math.max(w.width,0)),j=u(()=>Math.max(w.height,0)),M=u(()=>r.r===0||r.r==null||r.r===1/0),N=u(()=>E.projection?null:he.from(i(k)).voronoi([0,0,i(A),i(j)])),P=u(()=>E.projection?Kn().polygons(i(k)):null),F=u(()=>r.children?E.projection&&i(P)?i(P).features.map((e,t)=>{let n=E.projection?.(e.properties.sitecoordinates)??null,r=(e.geometry?.coordinates?.[0]??[]).map(e=>E.projection?.(e)).filter(e=>e!=null),i=r.length?r:null,a=E.projection?.(ct(e))??null;return{data:e.properties.site?.data,index:t,point:n??[NaN,NaN],polygon:i,centroid:a&&Number.isFinite(a[0])?a:null,area:Pe(e)}}):i(N)?i(k).map((e,t)=>{let n=i(N).cellPolygon(t);return{data:e.data,index:t,point:[e[0],e[1]],polygon:n,centroid:n?ge(n):null,area:n?Math.abs(me(n)):0}}):[]:[]);var I=v(),L=g(I);{let n=u(()=>ae(`lc-voronoi-g`,b().root,r.class));p(L,()=>r.Group,(c,l)=>{l(c,h(()=>C,{get class(){return i(n)},children:(n,c)=>{var l=ir(),d=g(l),h=e=>{var t=v(),n=g(t),c=e=>{var t=v(),n=g(t);f(n,17,()=>i(P).features,a,(e,t)=>{let n=u(()=>r.r?E.projection?.(i(t).properties.sitecoordinates):null);var a=v(),o=g(a);{let e=u(()=>i(n)?.[0]),a=u(()=>i(n)?.[1]),s=u(()=>r.r??0),c=u(()=>i(n)==null||i(M));p(o,()=>r.CircleClipPath,(n,o)=>{o(n,{get cx(){return i(e)},get cy(){return i(a)},get r(){return i(s)},get disabled(){return i(c)},children:(e,n)=>{{let n=u(()=>[`lc-voronoi-geo-path`,b().path]);nr(e,{get geojson(){return i(t)},get class(){return i(n)},onclick:e=>r.onclick?.(e,{data:i(t).properties.site.data,feature:i(t)}),onpointerenter:e=>r.onpointerenter?.(e,{data:i(t).properties.site.data,feature:i(t)}),onpointermove:e=>r.onpointermove?.(e,{data:i(t).properties.site.data,feature:i(t)}),onpointerdown:e=>r.onpointerdown?.(e,{data:i(t).properties.site.data,feature:i(t)}),ontouchmove:e=>{e.preventDefault()}})}},$$slots:{default:!0}})})}s(e,a)}),s(e,t)};o(n,e=>{i(P)&&e(c)}),s(e,t)},_=e=>{var t=v(),n=g(t);f(n,17,()=>i(k),a,(e,t,n)=>{let a=u(()=>i(N).renderCell(n));var c=v(),l=g(c),d=e=>{var n=v(),o=g(n);{let e=u(()=>r.r??0);p(o,()=>r.CircleClipPath,(n,o)=>{o(n,{get cx(){return i(t)[0]},get cy(){return i(t)[1]},get r(){return i(e)},get disabled(){return i(M)},children:(e,n)=>{var o=v(),c=g(o);{let e=u(()=>[`lc-voronoi-path`,b().path]);p(c,()=>r.Path,(n,o)=>{o(n,{get pathData(){return i(a)},get class(){return i(e)},onclick:e=>r.onclick?.(e,{data:i(t).data,point:i(t)}),onpointerenter:e=>r.onpointerenter?.(e,{data:i(t).data,point:i(t)}),onpointermove:e=>r.onpointermove?.(e,{data:i(t).data,point:i(t)}),onpointerdown:e=>r.onpointerdown?.(e,{data:i(t).data,point:i(t)}),ontouchmove:e=>{e.preventDefault()}})})}s(e,o)},$$slots:{default:!0}})})}s(e,n)};o(l,e=>{i(a)&&e(d)}),s(e,c)}),s(e,t)};o(d,e=>{E.projection?e(h):i(N)&&e(_,1)});var y=m(d,2);e(y,()=>r.children??t,()=>({cells:i(F)})),s(n,l)},$$slots:{default:!0}}))})}s(n,I),_()}function or(e,t){let n=r();l(t,!0);let a=d(t,`id`,19,()=>le(`clipPath-`,n)),o=d(t,`cx`,3,0),c=d(t,`cy`,3,0),f=d(t,`disabled`,3,!1),m=d(t,`invert`,3,!1),h=u(()=>`M${o()-t.r},${c()} a${t.r},${t.r} 0 1,0 ${2*t.r},0 a${t.r},${t.r} 0 1,0 ${-2*t.r},0 Z`);var y=v(),b=g(y);p(b,()=>t.ClipPath,(e,n)=>{n(e,{get id(){return a()},get disabled(){return f()},get invert(){return m()},get children(){return t.children},get path(){return i(h)}})}),s(e,y),_()}var sr=new Set([`$$slots`,`$$events`,`$$legacy`]);function cr(e,t){let n=c(t,sr);or(e,h({get ClipPath(){return ve}},()=>n))}var lr=new Set([`$$slots`,`$$events`,`$$legacy`]);function ur(e,t){let n=c(t,lr);ar(e,h({get Group(){return se},get Path(){return ue},get CircleClipPath(){return cr}},()=>n))}var dr=new Set([`$$slots`,`$$events`,`$$legacy`]);function fr(e,t){let n=c(t,dr);or(e,h({get ClipPath(){return be}},()=>n))}var pr=new Set([`$$slots`,`$$events`,`$$legacy`]);function mr(e,t){let n=c(t,pr);ar(e,h({get Group(){return de},get Path(){return fe},get CircleClipPath(){return fr}},()=>n))}var hr=new Set([`$$slots`,`$$events`,`$$legacy`]);function gr(e,t){l(t,!0);let n=b(),r=c(t,hr);var i=v(),a=g(i),u=e=>{ur(e,h(()=>r))},d=e=>{mr(e,h(()=>r))};o(a,e=>{n===`svg`?e(u):n===`canvas`&&e(d,1)}),s(e,i),_()}export{gr as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as e,M as t,P as n,R as r,Z as i,a,bt as o,ft as s,ht as c,j as l,k as u,o as d,rt as f,st as p,yt as m,z as h}from"./pqiPC7Y8.js";import"./xihTtKlq.js";import{t as g}from"./CJFHBop_.js";import{C as _,D as v,E as y,g as b,x,y as S}from"./BR7qH0F5.js";import{t as C}from"./Y5urAfNy.js";import{t as w}from"./Db0q5_zr.js";import{t as T}from"./Dt_Zd6U2.js";import{i as E}from"./Di37PX72.js";import{n as D,r as O,t as k}from"./DVTgeA2y.js";import{n as A,t as j}from"./DPKdNiYi.js";import{a as M,o as N,r as P}from"./CoEFQJcr.js";import{A as F}from"./PYzEcuyd.js";var I=class{#e=()=>({});#t=c(()=>this.#e());ctx=g();markData=S();geo=b();#n;#r=null;constructor(t){this.#e=t;let n=t();this.ctx.registerComponent({name:`Spline`,kind:`mark`,markInfo:()=>{let t=e(this.#t);return{data:t.data,x:t.x,y:t.y,seriesKey:t.seriesKey,color:typeof t.stroke==`string`?t.stroke:void 0}}});let r=N(e(this.#t).motion);if(this.#n=P(this.#T(),()=>this.d,r?{type:`tween`,interpolate:O,...r.options}:void 0),this.#r=M(n.motion,O),this.#r){let t=this.#r,n=new Set;f(()=>{let r=e(this.#v);if(!r)return;let a=new Set,o=new Set;for(let e of r){if(e.key===void 0)continue;a.add(e.key),e.lineKey!==void 0&&o.add(e.lineKey);let r=e.lineKey!==void 0&&n.has(e.lineKey);i(()=>t.update(e.key,e.d,()=>r?this.#E(e.data):this.#T(e.data)))}n=o,i(()=>t.cleanup(a))})}}#i(e,t,n){let r=n(e);return Array.isArray(r)&&(r=w(r)),t.domain().length?t(r):r}#a=c(()=>this.ctx.series.series.find(t=>t.key===e(this.#t).seriesKey));get series(){return e(this.#a)}set series(e){s(this.#a,e)}#o=c(()=>this.series?.value??(this.series?.data?void 0:this.series?.key));get seriesAccessor(){return e(this.#o)}set seriesAccessor(e){s(this.#o,e)}#s=c(()=>T(e(this.#t).x??(this.ctx.valueAxis===`x`?this.seriesAccessor:void 0)??this.ctx.x));get xAccessor(){return e(this.#s)}set xAccessor(e){s(this.#s,e)}#c=c(()=>this.ctx.stackAccessorsFor({seriesKey:e(this.#t).seriesKey,ownData:e(this.#t).data!=null}));get stackAccessors(){return e(this.#c)}set stackAccessors(e){s(this.#c,e)}#l=c(()=>{let t=e(this.#t);if(t.y)return T(t.y);if(this.ctx.valueAxis===`y`){if(this.stackAccessors)return this.stackAccessors.y1;if(this.seriesAccessor)return T(this.seriesAccessor)}return T(this.ctx.y)});get yAccessor(){return e(this.#l)}set yAccessor(e){s(this.#l,e)}#u=c(()=>this.markData(e(this.#t).data??this.series?.data));get resolvedData(){return e(this.#u)}set resolvedData(e){s(this.#u,e)}#d=c(()=>{let t=e(this.#t),n=t.z??this.ctx.props.z;if(n!=null)return T(n);let r=this.resolvedData?.[0],i=x(t.stroke,r)??x(t.fill,r);return i==null?t.data!=null||this.series?.data!=null?null:r!=null&&this.ctx.cKey(r)!=null?this.ctx.cKey:null:T(i)});get zAccessor(){return e(this.#d)}set zAccessor(e){s(this.#d,e)}#f=c(()=>this.zAccessor?Array.from(F(this.resolvedData,this.zAccessor).values()).filter(e=>this.#w(e[0])):[this.resolvedData]);get lines(){return e(this.#f)}set lines(e){s(this.#f,e)}#p=c(()=>E(this.ctx.xScale)?this.ctx.xScale.bandwidth()/2:0);get xOffset(){return e(this.#p)}set xOffset(e){s(this.#p,e)}#m=c(()=>E(this.ctx.yScale)?this.ctx.yScale.bandwidth()/2:0);get yOffset(){return e(this.#m)}set yOffset(e){s(this.#m,e)}#h(t){let n=e(this.#t),r=this.ctx.radial?j().angle(e=>this.#i(e,this.ctx.xScale,this.xAccessor)+0).radius(e=>this.#i(e,this.ctx.yScale,this.yAccessor)+this.yOffset):A().x(e=>this.#i(e,this.ctx.xScale,this.xAccessor)+this.xOffset).y(e=>this.#i(e,this.ctx.yScale,this.yAccessor)+this.yOffset);return r.defined(n.defined??(e=>this.xAccessor(e)!=null&&this.yAccessor(e)!=null)),n.curve&&r.curve(n.curve),r(t)??``}#g=c(()=>{let t=e(this.#t);return typeof t.stroke==`function`||typeof t.fill==`function`||typeof t.opacity==`function`||typeof t.class==`function`});get hasAnyStyleFn(){return e(this.#g)}set hasAnyStyleFn(e){s(this.#g,e)}#_=c(()=>{let t=e(this.#t);if((this.hasAnyStyleFn||this.zAccessor)&&!this.geo.projection)return``;let n=this.resolvedData;if(this.geo.projection){let e={type:`LineString`,coordinates:n.filter(e=>t.defined?t.defined(e,0,n):this.xAccessor(e)!=null&&this.yAccessor(e)!=null).map(e=>[this.xAccessor(e),this.yAccessor(e)])};return C(this.geo.projection)(e)??``}return this.#h(n)});get d(){return e(this.#_)}set d(e){s(this.#_,e)}#v=c(()=>{if(!this.hasAnyStyleFn&&!this.zAccessor)return null;let t=e(this.#t);if(this.geo.projection)return null;let n=[];for(let e of this.lines){let r=this.#x(e);if(this.hasAnyStyleFn){let i=L(e,(e,n,r)=>{let i=_(t.stroke,e,this.ctx.cScale,n,r),a=_(t.fill,e,this.ctx.cScale,n,r),o=y(t.opacity,e,n,r),s=y(t.class,e,n,r);return{key:`${i}\0${a}\0${o}\0${s}`,style:{stroke:i,fill:a,opacity:o,class:s}}}),a=this.#b(e[0])??this.series?.color,o=this.zAccessor?this.zAccessor(e[0]):``,s=new Map;i.forEach((e,t)=>{let c=s.get(e.key)??0;s.set(e.key,c+1),n.push({...e.style,stroke:e.style.stroke??a,opacity:e.style.opacity??r,d:this.#h(e.data),data:e.data,key:`${o}\0${e.key}\0${c}`,lineKey:o,lineStart:t===0,lineEnd:t===i.length-1})})}else n.push({stroke:_(t.stroke,e[0],this.ctx.cScale)??this.#b(e[0])??this.series?.color,fill:_(t.fill,e[0],this.ctx.cScale),opacity:y(t.opacity,e[0])??r,class:y(t.class,e[0]),d:this.#h(e),data:e,key:this.zAccessor?this.zAccessor(e[0]):void 0,lineStart:!0,lineEnd:!0})}return n});#y=c(()=>{let t=e(this.#v),n=this.#r;return!t||!n?t:t.map(e=>e.key===void 0?e:{...e,d:n.get(e.key)??e.d})});get segments(){return e(this.#y)}set segments(e){s(this.#y,e)}#b(e){return e!=null&&this.ctx.cKey(e)!=null?this.ctx.cGet(e):void 0}#x(e){let t=this.#S(e[0]);if(t!=null)return this.ctx.series.isHighlighted(t,!0)?1:.1}#S(e){let t=this.ctx.cKey(e);if(t!=null)return t;if(!this.zAccessor||e==null)return null;let n=this.zAccessor(e);return this.#C(n)?n:null}#C(e){return e!=null&&this.ctx.series.series.some(t=>t.key===e)}#w(e){if(e==null||!this.zAccessor)return!0;let t=this.zAccessor(e);return!this.#C(t)||this.ctx.series.visibleSeries.some(e=>e.key===t)}#T(t){let n=e(this.#t);if(!N(n.motion))return``;if(this.ctx.config.x){let e=t??this.resolvedData,r=Math.min(this.ctx.yScale(0)??this.ctx.yRange[0],this.ctx.yRange[0]),i=this.ctx.radial?j().angle(e=>this.#i(e,this.ctx.xScale,this.xAccessor)+0).radius(()=>r):A().x(e=>this.#i(e,this.ctx.xScale,this.xAccessor)+this.xOffset).y(()=>r);return i.defined(n.defined??(e=>this.xAccessor(e)!=null&&this.yAccessor(e)!=null)),n.curve&&i.curve(n.curve),i(e)??``}return``}#E(t){let n=e(this.#t);if(!N(n.motion)||t[0]==null)return``;let r=this.#i(t[0],this.ctx.xScale,this.xAccessor),i=this.#i(t[0],this.ctx.yScale,this.yAccessor);if(!Number.isFinite(r)||!Number.isFinite(i))return``;let a=this.ctx.radial?j().angle(()=>r).radius(()=>i+this.yOffset):A().x(()=>r+this.xOffset).y(()=>i+this.yOffset);return a.defined(n.defined??(e=>this.xAccessor(e)!=null&&this.yAccessor(e)!=null)),n.curve&&a.curve(n.curve),a(t)??``}#D=c(()=>_(e(this.#t).stroke,this.lines[0]?.[0],this.ctx.cScale)??this.#b(this.lines[0]?.[0])??this.series?.color);get resolvedStroke(){return e(this.#D)}set resolvedStroke(e){s(this.#D,e)}#O=c(()=>_(e(this.#t).fill,this.lines[0]?.[0],this.ctx.cScale));get resolvedFill(){return e(this.#O)}set resolvedFill(e){s(this.#O,e)}#k=c(()=>y(e(this.#t).class,this.lines[0]?.[0]));get resolvedClass(){return e(this.#k)}set resolvedClass(e){s(this.#k,e)}#A=c(()=>N(e(this.#t).motion)!=null);get isTweened(){return e(this.#A)}set isTweened(e){s(this.#A,e)}get tweenedPath(){return this.#n.current}#j=c(()=>this.series?.key==null||this.ctx.series.visibleSeries.length<=1||this.ctx.series.isHighlighted(this.series.key,!0)?1:.1);get seriesOpacity(){return e(this.#j)}set seriesOpacity(e){s(this.#j,e)}};function L(e,t){if(e.length<2)return[];let n=[],r=t(e[0],0,e),i=0;for(let a=1;a<e.length;a++){let o=t(e[a],a,e);o.key!==r.key&&(n.push({key:r.key,style:r.style,data:e.slice(i,a+1)}),i=a,r=o)}return e.length-i>=2&&n.push({key:r.key,style:r.style,data:e.slice(i)}),n}var R=new Set([`$$slots`,`$$events`,`$$legacy`,`Path`,`data`,`x`,`y`,`z`,`seriesKey`,`defined`,`curve`,`stroke`,`fill`,`opacity`,`class`,`motion`,`marker`,`markerStart`,`markerMid`,`markerEnd`,`startContent`,`endContent`]);function z(i,s){o(s,!0);let f=a(s,R),g=new I(()=>({data:s.data,x:s.x,y:s.y,z:s.z,seriesKey:s.seriesKey,defined:s.defined,curve:s.curve,stroke:s.stroke,fill:s.fill,opacity:s.opacity,class:s.class,motion:s.motion}));var _=h(),v=p(_),y=n=>{var i=h(),a=p(i);l(a,17,()=>g.segments,t,(t,n)=>{var i=h(),a=p(i);{let t=c(()=>e(n).opacity??(g.seriesOpacity===1?void 0:g.seriesOpacity)),r=c(()=>s.markerMid??s.marker),i=c(()=>e(n).lineStart?s.markerStart??s.marker:s.markerMid??s.marker),o=c(()=>e(n).lineEnd?s.markerEnd??s.marker:void 0),l=c(()=>e(n).lineStart?s.startContent:void 0),p=c(()=>e(n).lineEnd?s.endContent:void 0);u(a,()=>s.Path,(a,s)=>{s(a,d({get pathData(){return e(n).d},get stroke(){return e(n).stroke},get fill(){return e(n).fill},get opacity(){return e(t)},get class(){return e(n).class},get markerMid(){return e(r)},get markerStart(){return e(i)},get markerEnd(){return e(o)},get startContent(){return e(l)},get endContent(){return e(p)}},()=>g.series?.props,()=>f))})}r(t,i)}),r(n,i)},b=t=>{var n=h(),i=p(n);{let t=c(()=>g.isTweened?g.tweenedPath:g.d),n=c(()=>(typeof s.opacity==`number`?s.opacity:void 0)??(g.seriesOpacity===1?void 0:g.seriesOpacity));u(i,()=>s.Path,(r,i)=>{i(r,d({get pathData(){return e(t)},get stroke(){return g.resolvedStroke},get fill(){return g.resolvedFill},get opacity(){return e(n)},get class(){return g.resolvedClass},get marker(){return s.marker},get markerStart(){return s.markerStart},get markerMid(){return s.markerMid},get markerEnd(){return s.markerEnd},get startContent(){return s.startContent},get endContent(){return s.endContent}},()=>g.series?.props,()=>f))})}r(t,n)};n(v,e=>{g.segments?e(y):e(b,-1)}),r(i,_),m()}var B=new Set([`$$slots`,`$$events`,`$$legacy`]);function V(e,t){let n=a(t,B);z(e,d({get Path(){return D}},()=>n))}var H=new Set([`$$slots`,`$$events`,`$$legacy`]);function U(e,t){let n=a(t,H);z(e,d({get Path(){return k}},()=>n))}var W=new Set([`$$slots`,`$$events`,`$$legacy`]);function G(e,t){o(t,!0);let i=v(),s=a(t,W);var c=h(),l=p(c),u=e=>{V(e,d(()=>s))},f=e=>{U(e,d(()=>s))};n(l,e=>{i===`svg`?e(u):i===`canvas`&&e(f,1)}),r(e,c),m()}export{G as default};
|
|
1
|
+
import{J as e,M as t,P as n,R as r,Z as i,a,bt as o,ft as s,ht as c,j as l,k as u,o as d,rt as f,st as p,yt as m,z as h}from"./pqiPC7Y8.js";import"./xihTtKlq.js";import{t as g}from"./CyncJW0D.js";import{C as _,D as v,E as y,g as b,x,y as S}from"./BAynhd7i.js";import{t as C}from"./Y5urAfNy.js";import{t as w}from"./Db0q5_zr.js";import{t as T}from"./snfmbqby.js";import{i as E}from"./DU0OQtdJ.js";import{n as D,r as O,t as k}from"./CG6rRxUy.js";import{n as A,t as j}from"./CZIk93qi.js";import{a as M,o as N,r as P}from"./B5q6rkQ-.js";import{A as F}from"./BGmgUZMc.js";var I=class{#e=()=>({});#t=c(()=>this.#e());ctx=g();markData=S();geo=b();#n;#r=null;constructor(t){this.#e=t;let n=t();this.ctx.registerComponent({name:`Spline`,kind:`mark`,markInfo:()=>{let t=e(this.#t);return{data:t.data,x:t.x,y:t.y,seriesKey:t.seriesKey,color:typeof t.stroke==`string`?t.stroke:void 0}}});let r=N(e(this.#t).motion);if(this.#n=P(this.#T(),()=>this.d,r?{type:`tween`,interpolate:O,...r.options}:void 0),this.#r=M(n.motion,O),this.#r){let t=this.#r,n=new Set;f(()=>{let r=e(this.#v);if(!r)return;let a=new Set,o=new Set;for(let e of r){if(e.key===void 0)continue;a.add(e.key),e.lineKey!==void 0&&o.add(e.lineKey);let r=e.lineKey!==void 0&&n.has(e.lineKey);i(()=>t.update(e.key,e.d,()=>r?this.#E(e.data):this.#T(e.data)))}n=o,i(()=>t.cleanup(a))})}}#i(e,t,n){let r=n(e);return Array.isArray(r)&&(r=w(r)),t.domain().length?t(r):r}#a=c(()=>this.ctx.series.series.find(t=>t.key===e(this.#t).seriesKey));get series(){return e(this.#a)}set series(e){s(this.#a,e)}#o=c(()=>this.series?.value??(this.series?.data?void 0:this.series?.key));get seriesAccessor(){return e(this.#o)}set seriesAccessor(e){s(this.#o,e)}#s=c(()=>T(e(this.#t).x??(this.ctx.valueAxis===`x`?this.seriesAccessor:void 0)??this.ctx.x));get xAccessor(){return e(this.#s)}set xAccessor(e){s(this.#s,e)}#c=c(()=>this.ctx.stackAccessorsFor({seriesKey:e(this.#t).seriesKey,ownData:e(this.#t).data!=null}));get stackAccessors(){return e(this.#c)}set stackAccessors(e){s(this.#c,e)}#l=c(()=>{let t=e(this.#t);if(t.y)return T(t.y);if(this.ctx.valueAxis===`y`){if(this.stackAccessors)return this.stackAccessors.y1;if(this.seriesAccessor)return T(this.seriesAccessor)}return T(this.ctx.y)});get yAccessor(){return e(this.#l)}set yAccessor(e){s(this.#l,e)}#u=c(()=>this.markData(e(this.#t).data??this.series?.data));get resolvedData(){return e(this.#u)}set resolvedData(e){s(this.#u,e)}#d=c(()=>{let t=e(this.#t),n=t.z??this.ctx.props.z;if(n!=null)return T(n);let r=this.resolvedData?.[0],i=x(t.stroke,r)??x(t.fill,r);return i==null?t.data!=null||this.series?.data!=null?null:r!=null&&this.ctx.cKey(r)!=null?this.ctx.cKey:null:T(i)});get zAccessor(){return e(this.#d)}set zAccessor(e){s(this.#d,e)}#f=c(()=>this.zAccessor?Array.from(F(this.resolvedData,this.zAccessor).values()).filter(e=>this.#w(e[0])):[this.resolvedData]);get lines(){return e(this.#f)}set lines(e){s(this.#f,e)}#p=c(()=>E(this.ctx.xScale)?this.ctx.xScale.bandwidth()/2:0);get xOffset(){return e(this.#p)}set xOffset(e){s(this.#p,e)}#m=c(()=>E(this.ctx.yScale)?this.ctx.yScale.bandwidth()/2:0);get yOffset(){return e(this.#m)}set yOffset(e){s(this.#m,e)}#h(t){let n=e(this.#t),r=this.ctx.radial?j().angle(e=>this.#i(e,this.ctx.xScale,this.xAccessor)+0).radius(e=>this.#i(e,this.ctx.yScale,this.yAccessor)+this.yOffset):A().x(e=>this.#i(e,this.ctx.xScale,this.xAccessor)+this.xOffset).y(e=>this.#i(e,this.ctx.yScale,this.yAccessor)+this.yOffset);return r.defined(n.defined??(e=>this.xAccessor(e)!=null&&this.yAccessor(e)!=null)),n.curve&&r.curve(n.curve),r(t)??``}#g=c(()=>{let t=e(this.#t);return typeof t.stroke==`function`||typeof t.fill==`function`||typeof t.opacity==`function`||typeof t.class==`function`});get hasAnyStyleFn(){return e(this.#g)}set hasAnyStyleFn(e){s(this.#g,e)}#_=c(()=>{let t=e(this.#t);if((this.hasAnyStyleFn||this.zAccessor)&&!this.geo.projection)return``;let n=this.resolvedData;if(this.geo.projection){let e={type:`LineString`,coordinates:n.filter(e=>t.defined?t.defined(e,0,n):this.xAccessor(e)!=null&&this.yAccessor(e)!=null).map(e=>[this.xAccessor(e),this.yAccessor(e)])};return C(this.geo.projection)(e)??``}return this.#h(n)});get d(){return e(this.#_)}set d(e){s(this.#_,e)}#v=c(()=>{if(!this.hasAnyStyleFn&&!this.zAccessor)return null;let t=e(this.#t);if(this.geo.projection)return null;let n=[];for(let e of this.lines){let r=this.#x(e);if(this.hasAnyStyleFn){let i=L(e,(e,n,r)=>{let i=_(t.stroke,e,this.ctx.cScale,n,r),a=_(t.fill,e,this.ctx.cScale,n,r),o=y(t.opacity,e,n,r),s=y(t.class,e,n,r);return{key:`${i}\0${a}\0${o}\0${s}`,style:{stroke:i,fill:a,opacity:o,class:s}}}),a=this.#b(e[0])??this.series?.color,o=this.zAccessor?this.zAccessor(e[0]):``,s=new Map;i.forEach((e,t)=>{let c=s.get(e.key)??0;s.set(e.key,c+1),n.push({...e.style,stroke:e.style.stroke??a,opacity:e.style.opacity??r,d:this.#h(e.data),data:e.data,key:`${o}\0${e.key}\0${c}`,lineKey:o,lineStart:t===0,lineEnd:t===i.length-1})})}else n.push({stroke:_(t.stroke,e[0],this.ctx.cScale)??this.#b(e[0])??this.series?.color,fill:_(t.fill,e[0],this.ctx.cScale),opacity:y(t.opacity,e[0])??r,class:y(t.class,e[0]),d:this.#h(e),data:e,key:this.zAccessor?this.zAccessor(e[0]):void 0,lineStart:!0,lineEnd:!0})}return n});#y=c(()=>{let t=e(this.#v),n=this.#r;return!t||!n?t:t.map(e=>e.key===void 0?e:{...e,d:n.get(e.key)??e.d})});get segments(){return e(this.#y)}set segments(e){s(this.#y,e)}#b(e){return e!=null&&this.ctx.cKey(e)!=null?this.ctx.cGet(e):void 0}#x(e){let t=this.#S(e[0]);if(t!=null)return this.ctx.series.isHighlighted(t,!0)?1:.1}#S(e){let t=this.ctx.cKey(e);if(t!=null)return t;if(!this.zAccessor||e==null)return null;let n=this.zAccessor(e);return this.#C(n)?n:null}#C(e){return e!=null&&this.ctx.series.series.some(t=>t.key===e)}#w(e){if(e==null||!this.zAccessor)return!0;let t=this.zAccessor(e);return!this.#C(t)||this.ctx.series.visibleSeries.some(e=>e.key===t)}#T(t){let n=e(this.#t);if(!N(n.motion))return``;if(this.ctx.config.x){let e=t??this.resolvedData,r=Math.min(this.ctx.yScale(0)??this.ctx.yRange[0],this.ctx.yRange[0]),i=this.ctx.radial?j().angle(e=>this.#i(e,this.ctx.xScale,this.xAccessor)+0).radius(()=>r):A().x(e=>this.#i(e,this.ctx.xScale,this.xAccessor)+this.xOffset).y(()=>r);return i.defined(n.defined??(e=>this.xAccessor(e)!=null&&this.yAccessor(e)!=null)),n.curve&&i.curve(n.curve),i(e)??``}return``}#E(t){let n=e(this.#t);if(!N(n.motion)||t[0]==null)return``;let r=this.#i(t[0],this.ctx.xScale,this.xAccessor),i=this.#i(t[0],this.ctx.yScale,this.yAccessor);if(!Number.isFinite(r)||!Number.isFinite(i))return``;let a=this.ctx.radial?j().angle(()=>r).radius(()=>i+this.yOffset):A().x(()=>r+this.xOffset).y(()=>i+this.yOffset);return a.defined(n.defined??(e=>this.xAccessor(e)!=null&&this.yAccessor(e)!=null)),n.curve&&a.curve(n.curve),a(t)??``}#D=c(()=>_(e(this.#t).stroke,this.lines[0]?.[0],this.ctx.cScale)??this.#b(this.lines[0]?.[0])??this.series?.color);get resolvedStroke(){return e(this.#D)}set resolvedStroke(e){s(this.#D,e)}#O=c(()=>_(e(this.#t).fill,this.lines[0]?.[0],this.ctx.cScale));get resolvedFill(){return e(this.#O)}set resolvedFill(e){s(this.#O,e)}#k=c(()=>y(e(this.#t).class,this.lines[0]?.[0]));get resolvedClass(){return e(this.#k)}set resolvedClass(e){s(this.#k,e)}#A=c(()=>N(e(this.#t).motion)!=null);get isTweened(){return e(this.#A)}set isTweened(e){s(this.#A,e)}get tweenedPath(){return this.#n.current}#j=c(()=>this.series?.key==null||this.ctx.series.visibleSeries.length<=1||this.ctx.series.isHighlighted(this.series.key,!0)?1:.1);get seriesOpacity(){return e(this.#j)}set seriesOpacity(e){s(this.#j,e)}};function L(e,t){if(e.length<2)return[];let n=[],r=t(e[0],0,e),i=0;for(let a=1;a<e.length;a++){let o=t(e[a],a,e);o.key!==r.key&&(n.push({key:r.key,style:r.style,data:e.slice(i,a+1)}),i=a,r=o)}return e.length-i>=2&&n.push({key:r.key,style:r.style,data:e.slice(i)}),n}var R=new Set([`$$slots`,`$$events`,`$$legacy`,`Path`,`data`,`x`,`y`,`z`,`seriesKey`,`defined`,`curve`,`stroke`,`fill`,`opacity`,`class`,`motion`,`marker`,`markerStart`,`markerMid`,`markerEnd`,`startContent`,`endContent`]);function z(i,s){o(s,!0);let f=a(s,R),g=new I(()=>({data:s.data,x:s.x,y:s.y,z:s.z,seriesKey:s.seriesKey,defined:s.defined,curve:s.curve,stroke:s.stroke,fill:s.fill,opacity:s.opacity,class:s.class,motion:s.motion}));var _=h(),v=p(_),y=n=>{var i=h(),a=p(i);l(a,17,()=>g.segments,t,(t,n)=>{var i=h(),a=p(i);{let t=c(()=>e(n).opacity??(g.seriesOpacity===1?void 0:g.seriesOpacity)),r=c(()=>s.markerMid??s.marker),i=c(()=>e(n).lineStart?s.markerStart??s.marker:s.markerMid??s.marker),o=c(()=>e(n).lineEnd?s.markerEnd??s.marker:void 0),l=c(()=>e(n).lineStart?s.startContent:void 0),p=c(()=>e(n).lineEnd?s.endContent:void 0);u(a,()=>s.Path,(a,s)=>{s(a,d({get pathData(){return e(n).d},get stroke(){return e(n).stroke},get fill(){return e(n).fill},get opacity(){return e(t)},get class(){return e(n).class},get markerMid(){return e(r)},get markerStart(){return e(i)},get markerEnd(){return e(o)},get startContent(){return e(l)},get endContent(){return e(p)}},()=>g.series?.props,()=>f))})}r(t,i)}),r(n,i)},b=t=>{var n=h(),i=p(n);{let t=c(()=>g.isTweened?g.tweenedPath:g.d),n=c(()=>(typeof s.opacity==`number`?s.opacity:void 0)??(g.seriesOpacity===1?void 0:g.seriesOpacity));u(i,()=>s.Path,(r,i)=>{i(r,d({get pathData(){return e(t)},get stroke(){return g.resolvedStroke},get fill(){return g.resolvedFill},get opacity(){return e(n)},get class(){return g.resolvedClass},get marker(){return s.marker},get markerStart(){return s.markerStart},get markerMid(){return s.markerMid},get markerEnd(){return s.markerEnd},get startContent(){return s.startContent},get endContent(){return s.endContent}},()=>g.series?.props,()=>f))})}r(t,n)};n(v,e=>{g.segments?e(y):e(b,-1)}),r(i,_),m()}var B=new Set([`$$slots`,`$$events`,`$$legacy`]);function V(e,t){let n=a(t,B);z(e,d({get Path(){return D}},()=>n))}var H=new Set([`$$slots`,`$$events`,`$$legacy`]);function U(e,t){let n=a(t,H);z(e,d({get Path(){return k}},()=>n))}var W=new Set([`$$slots`,`$$events`,`$$legacy`]);function G(e,t){o(t,!0);let i=v(),s=a(t,W);var c=h(),l=p(c),u=e=>{V(e,d(()=>s))},f=e=>{U(e,d(()=>s))};n(l,e=>{i===`svg`?e(u):i===`canvas`&&e(f,1)}),r(e,c),m()}export{G as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as e}from"./CJFHBop_.js";function t(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function n(n){let i,a,o;n.length===2?(i=n===e||n===t?n:r,a=n,o=n):(i=e,a=(t,r)=>e(n(t),r),o=(e,t)=>n(e)-t);function s(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<0?n=i+1:r=i}while(n<r)}return n}function c(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<=0?n=i+1:r=i}while(n<r)}return n}function l(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i}return{left:s,center:l,right:c}}function r(){return 0}function i(e){return e===null?NaN:+e}function*a(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var o=n(e),s=o.right;o.left,n(i).center;var c=Math.sqrt(50),l=Math.sqrt(10),u=Math.sqrt(2);function d(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=c?10:a>=l?5:a>=u?2:1,s,f,p;return i<0?(p=10**-i/o,s=Math.round(e*p),f=Math.round(t*p),s/p<e&&++s,f/p>t&&--f,p=-p):(p=10**i*o,s=Math.round(e/p),f=Math.round(t/p),s*p<e&&++s,f*p>t&&--f),f<s&&.5<=n&&n<2?d(e,t,n*2):[s,f,p]}function f(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?d(t,e,n):d(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function p(e,t,n){return t=+t,e=+e,n=+n,d(e,t,n)[2]}function m(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?p(t,e,n):p(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function h(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function g(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function v(){}var y=.7,b=1/y,x=`\\s*([+-]?\\d+)\\s*`,S=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,C=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,w=/^#([0-9a-f]{3,8})$/,T=RegExp(`^rgb\\(${x},${x},${x}\\)$`),E=RegExp(`^rgb\\(${C},${C},${C}\\)$`),ee=RegExp(`^rgba\\(${x},${x},${x},${S}\\)$`),te=RegExp(`^rgba\\(${C},${C},${C},${S}\\)$`),ne=RegExp(`^hsl\\(${S},${C},${C}\\)$`),re=RegExp(`^hsla\\(${S},${C},${C},${S}\\)$`),ie={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};g(v,O,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ae,formatHex:ae,formatHex8:oe,formatHsl:se,formatRgb:D,toString:D});function ae(){return this.rgb().formatHex()}function oe(){return this.rgb().formatHex8()}function se(){return pe(this).formatHsl()}function D(){return this.rgb().formatRgb()}function O(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=w.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?k(t):n===3?new M(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?A(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?A(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=T.exec(e))?new M(t[1],t[2],t[3],1):(t=E.exec(e))?new M(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ee.exec(e))?A(t[1],t[2],t[3],t[4]):(t=te.exec(e))?A(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ne.exec(e))?fe(t[1],t[2]/100,t[3]/100,1):(t=re.exec(e))?fe(t[1],t[2]/100,t[3]/100,t[4]):ie.hasOwnProperty(e)?k(ie[e]):e===`transparent`?new M(NaN,NaN,NaN,0):null}function k(e){return new M(e>>16&255,e>>8&255,e&255,1)}function A(e,t,n,r){return r<=0&&(e=t=n=NaN),new M(e,t,n,r)}function ce(e){return e instanceof v||(e=O(e)),e?(e=e.rgb(),new M(e.r,e.g,e.b,e.opacity)):new M}function j(e,t,n,r){return arguments.length===1?ce(e):new M(e,t,n,r??1)}function M(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}g(M,j,_(v,{brighter(e){return e=e==null?b:b**+e,new M(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?y:y**+e,new M(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new M(P(this.r),P(this.g),P(this.b),N(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:le,formatHex:le,formatHex8:ue,formatRgb:de,toString:de}));function le(){return`#${F(this.r)}${F(this.g)}${F(this.b)}`}function ue(){return`#${F(this.r)}${F(this.g)}${F(this.b)}${F((isNaN(this.opacity)?1:this.opacity)*255)}`}function de(){let e=N(this.opacity);return`${e===1?`rgb(`:`rgba(`}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${e===1?`)`:`, ${e})`}`}function N(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function F(e){return e=P(e),(e<16?`0`:``)+e.toString(16)}function fe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,n,r)}function pe(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof v||(e=O(e)),!e)return new I;if(e instanceof I)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new I(o,s,c,e.opacity)}function me(e,t,n,r){return arguments.length===1?pe(e):new I(e,t,n,r??1)}function I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}g(I,me,_(v,{brighter(e){return e=e==null?b:b**+e,new I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?y:y**+e,new I(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new M(z(e>=240?e-240:e+120,i,r),z(e,i,r),z(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new I(L(this.h),R(this.s),R(this.l),N(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=N(this.opacity);return`${e===1?`hsl(`:`hsla(`}${L(this.h)}, ${R(this.s)*100}%, ${R(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function L(e){return e=(e||0)%360,e<0?e+360:e}function R(e){return Math.max(0,Math.min(1,e||0))}function z(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var B=e=>()=>e;function he(e,t){return function(n){return e+n*t}}function ge(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function _e(e){return(e=+e)==1?ve:function(t,n){return n-t?ge(t,n,e):B(isNaN(t)?n:t)}}function ve(e,t){var n=t-e;return n?he(e,n):B(isNaN(e)?t:e)}var ye=(function e(t){var n=_e(t);function r(e,t){var r=n((e=j(e)).r,(t=j(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=ve(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function be(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function xe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Se(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=W(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function Ce(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function V(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function we(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=W(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var H=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,U=new RegExp(H.source,`g`);function Te(e){return function(){return e}}function Ee(e){return function(t){return e(t)+``}}function De(e,t){var n=H.lastIndex=U.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=H.exec(e))&&(i=U.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:V(r,i)})),n=U.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Ee(c[0].x):Te(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function W(e,t){var n=typeof t,r;return t==null||n===`boolean`?B(t):(n===`number`?V:n===`string`?(r=O(t))?(t=r,ye):De:t instanceof O?ye:t instanceof Date?Ce:xe(t)?be:Array.isArray(t)?Se:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?we:V)(e,t)}function Oe(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ke(e){return function(){return e}}function Ae(e){return+e}var je=[0,1];function G(e){return e}function K(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:ke(isNaN(t)?NaN:.5)}function Me(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Ne(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=K(i,r),a=n(o,a)):(r=K(r,i),a=n(a,o)),function(e){return a(r(e))}}function Pe(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=K(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=s(e,t,1,r)-1;return a[n](i[n](t))}}function Fe(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ie(){var e=je,t=je,n=W,r,i,a,o=G,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==G&&(o=Me(e[0],e[n-1])),s=n>2?Pe:Ne,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),V))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Ae),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Oe,u()},d.clamp=function(e){return arguments.length?(o=e?!0:G,u()):o!==G},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Le(){return Ie()(G,G)}function Re(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function q(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function J(e){return e=q(Math.abs(e)),e?e[1]:NaN}function ze(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Be(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Ve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Y(e){if(!(t=Ve.exec(e)))throw Error(`invalid format: `+e);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Y.prototype=X.prototype;function X(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function He(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var Z;function Ue(e,t){var n=q(e,t);if(!n)return Z=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Z=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+q(e,Math.max(0,t+a-1))[0]}function We(e,t){var n=q(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Ge={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Re,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>We(e*100,t),r:We,s:Ue,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Q(e){return e}var Ke=Array.prototype.map,qe=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Je(e){var t=e.grouping===void 0||e.thousands===void 0?Q:ze(Ke.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Q:Be(Ke.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Y(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Ge[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Ge[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=He(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&Z!==void 0?qe[8+Z/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(J(t)/3)))*3,r=10**-n,i=l((e=Y(e),e.type=`f`,e),{suffix:qe[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var $,Ye,Xe;Ze({thousands:`,`,grouping:[3],currency:[`$`,``]});function Ze(e){return $=Je(e),Ye=$.format,Xe=$.formatPrefix,$}function Qe(e){return Math.max(0,-J(Math.abs(e)))}function $e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(J(t)/3)))*3-J(Math.abs(e)))}function et(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,J(t)-J(e))+1}function tt(e,t,n,r){var i=m(e,t,n),a;switch(r=Y(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=$e(i,o))&&(r.precision=a),Xe(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=et(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Qe(i))&&(r.precision=a-(r.type===`%`)*2)}return Ye(r)}function nt(e){var t=e.domain;return e.ticks=function(e){var n=t();return f(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return tt(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=p(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function rt(){var e=Le();return e.copy=function(){return Fe(e,rt())},h.apply(e,arguments),nt(e)}export{G as a,W as c,m as d,a as f,Fe as i,j as l,nt as n,Ie as o,n as p,Le as r,Oe as s,rt as t,h as u};
|
|
1
|
+
import{R as e}from"./CyncJW0D.js";function t(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function n(n){let i,a,o;n.length===2?(i=n===e||n===t?n:r,a=n,o=n):(i=e,a=(t,r)=>e(n(t),r),o=(e,t)=>n(e)-t);function s(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<0?n=i+1:r=i}while(n<r)}return n}function c(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<=0?n=i+1:r=i}while(n<r)}return n}function l(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i}return{left:s,center:l,right:c}}function r(){return 0}function i(e){return e===null?NaN:+e}function*a(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var o=n(e),s=o.right;o.left,n(i).center;var c=Math.sqrt(50),l=Math.sqrt(10),u=Math.sqrt(2);function d(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=c?10:a>=l?5:a>=u?2:1,s,f,p;return i<0?(p=10**-i/o,s=Math.round(e*p),f=Math.round(t*p),s/p<e&&++s,f/p>t&&--f,p=-p):(p=10**i*o,s=Math.round(e/p),f=Math.round(t/p),s*p<e&&++s,f*p>t&&--f),f<s&&.5<=n&&n<2?d(e,t,n*2):[s,f,p]}function f(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?d(t,e,n):d(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function p(e,t,n){return t=+t,e=+e,n=+n,d(e,t,n)[2]}function m(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?p(t,e,n):p(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function h(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function g(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function v(){}var y=.7,b=1/y,x=`\\s*([+-]?\\d+)\\s*`,S=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,C=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,w=/^#([0-9a-f]{3,8})$/,T=RegExp(`^rgb\\(${x},${x},${x}\\)$`),E=RegExp(`^rgb\\(${C},${C},${C}\\)$`),ee=RegExp(`^rgba\\(${x},${x},${x},${S}\\)$`),te=RegExp(`^rgba\\(${C},${C},${C},${S}\\)$`),ne=RegExp(`^hsl\\(${S},${C},${C}\\)$`),re=RegExp(`^hsla\\(${S},${C},${C},${S}\\)$`),ie={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};g(v,O,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ae,formatHex:ae,formatHex8:oe,formatHsl:se,formatRgb:D,toString:D});function ae(){return this.rgb().formatHex()}function oe(){return this.rgb().formatHex8()}function se(){return pe(this).formatHsl()}function D(){return this.rgb().formatRgb()}function O(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=w.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?k(t):n===3?new M(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?A(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?A(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=T.exec(e))?new M(t[1],t[2],t[3],1):(t=E.exec(e))?new M(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ee.exec(e))?A(t[1],t[2],t[3],t[4]):(t=te.exec(e))?A(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ne.exec(e))?fe(t[1],t[2]/100,t[3]/100,1):(t=re.exec(e))?fe(t[1],t[2]/100,t[3]/100,t[4]):ie.hasOwnProperty(e)?k(ie[e]):e===`transparent`?new M(NaN,NaN,NaN,0):null}function k(e){return new M(e>>16&255,e>>8&255,e&255,1)}function A(e,t,n,r){return r<=0&&(e=t=n=NaN),new M(e,t,n,r)}function ce(e){return e instanceof v||(e=O(e)),e?(e=e.rgb(),new M(e.r,e.g,e.b,e.opacity)):new M}function j(e,t,n,r){return arguments.length===1?ce(e):new M(e,t,n,r??1)}function M(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}g(M,j,_(v,{brighter(e){return e=e==null?b:b**+e,new M(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?y:y**+e,new M(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new M(P(this.r),P(this.g),P(this.b),N(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:le,formatHex:le,formatHex8:ue,formatRgb:de,toString:de}));function le(){return`#${F(this.r)}${F(this.g)}${F(this.b)}`}function ue(){return`#${F(this.r)}${F(this.g)}${F(this.b)}${F((isNaN(this.opacity)?1:this.opacity)*255)}`}function de(){let e=N(this.opacity);return`${e===1?`rgb(`:`rgba(`}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${e===1?`)`:`, ${e})`}`}function N(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function F(e){return e=P(e),(e<16?`0`:``)+e.toString(16)}function fe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,n,r)}function pe(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof v||(e=O(e)),!e)return new I;if(e instanceof I)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new I(o,s,c,e.opacity)}function me(e,t,n,r){return arguments.length===1?pe(e):new I(e,t,n,r??1)}function I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}g(I,me,_(v,{brighter(e){return e=e==null?b:b**+e,new I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?y:y**+e,new I(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new M(z(e>=240?e-240:e+120,i,r),z(e,i,r),z(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new I(L(this.h),R(this.s),R(this.l),N(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=N(this.opacity);return`${e===1?`hsl(`:`hsla(`}${L(this.h)}, ${R(this.s)*100}%, ${R(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function L(e){return e=(e||0)%360,e<0?e+360:e}function R(e){return Math.max(0,Math.min(1,e||0))}function z(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var B=e=>()=>e;function he(e,t){return function(n){return e+n*t}}function ge(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function _e(e){return(e=+e)==1?ve:function(t,n){return n-t?ge(t,n,e):B(isNaN(t)?n:t)}}function ve(e,t){var n=t-e;return n?he(e,n):B(isNaN(e)?t:e)}var ye=(function e(t){var n=_e(t);function r(e,t){var r=n((e=j(e)).r,(t=j(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=ve(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function be(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function xe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Se(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=W(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function Ce(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function V(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function we(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=W(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var H=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,U=new RegExp(H.source,`g`);function Te(e){return function(){return e}}function Ee(e){return function(t){return e(t)+``}}function De(e,t){var n=H.lastIndex=U.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=H.exec(e))&&(i=U.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:V(r,i)})),n=U.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Ee(c[0].x):Te(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function W(e,t){var n=typeof t,r;return t==null||n===`boolean`?B(t):(n===`number`?V:n===`string`?(r=O(t))?(t=r,ye):De:t instanceof O?ye:t instanceof Date?Ce:xe(t)?be:Array.isArray(t)?Se:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?we:V)(e,t)}function Oe(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ke(e){return function(){return e}}function Ae(e){return+e}var je=[0,1];function G(e){return e}function K(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:ke(isNaN(t)?NaN:.5)}function Me(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Ne(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=K(i,r),a=n(o,a)):(r=K(r,i),a=n(a,o)),function(e){return a(r(e))}}function Pe(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=K(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=s(e,t,1,r)-1;return a[n](i[n](t))}}function Fe(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ie(){var e=je,t=je,n=W,r,i,a,o=G,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==G&&(o=Me(e[0],e[n-1])),s=n>2?Pe:Ne,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),V))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Ae),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Oe,u()},d.clamp=function(e){return arguments.length?(o=e?!0:G,u()):o!==G},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Le(){return Ie()(G,G)}function Re(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function q(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function J(e){return e=q(Math.abs(e)),e?e[1]:NaN}function ze(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Be(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Ve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Y(e){if(!(t=Ve.exec(e)))throw Error(`invalid format: `+e);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Y.prototype=X.prototype;function X(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function He(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var Z;function Ue(e,t){var n=q(e,t);if(!n)return Z=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Z=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+q(e,Math.max(0,t+a-1))[0]}function We(e,t){var n=q(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Ge={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Re,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>We(e*100,t),r:We,s:Ue,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Q(e){return e}var Ke=Array.prototype.map,qe=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Je(e){var t=e.grouping===void 0||e.thousands===void 0?Q:ze(Ke.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Q:Be(Ke.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Y(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Ge[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Ge[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=He(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&Z!==void 0?qe[8+Z/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(J(t)/3)))*3,r=10**-n,i=l((e=Y(e),e.type=`f`,e),{suffix:qe[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var $,Ye,Xe;Ze({thousands:`,`,grouping:[3],currency:[`$`,``]});function Ze(e){return $=Je(e),Ye=$.format,Xe=$.formatPrefix,$}function Qe(e){return Math.max(0,-J(Math.abs(e)))}function $e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(J(t)/3)))*3-J(Math.abs(e)))}function et(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,J(t)-J(e))+1}function tt(e,t,n,r){var i=m(e,t,n),a;switch(r=Y(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=$e(i,o))&&(r.precision=a),Xe(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=et(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Qe(i))&&(r.precision=a-(r.type===`%`)*2)}return Ye(r)}function nt(e){var t=e.domain;return e.ticks=function(e){var n=t();return f(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return tt(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=p(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function rt(){var e=Le();return e.copy=function(){return Fe(e,rt())},h.apply(e,arguments),nt(e)}export{G as a,W as c,m as d,a as f,Fe as i,j as l,nt as n,Ie as o,n as p,Le as r,Oe as s,rt as t,h as u};
|
|
Binary file
|