@chrisjowen/wheelhouse 0.11.0 → 0.12.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 +23 -1
- package/build/client/_app/immutable/assets/0.CS9-5c8D.css +1 -0
- package/build/client/_app/immutable/assets/0.CS9-5c8D.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CS9-5c8D.css.gz +0 -0
- package/build/client/_app/immutable/chunks/{B597Cbe1.js → 8JUY7TGF.js} +1 -1
- package/build/client/_app/immutable/chunks/8JUY7TGF.js.br +0 -0
- package/build/client/_app/immutable/chunks/8JUY7TGF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cbm0yS9E.js → B78SKOml.js} +1 -1
- package/build/client/_app/immutable/chunks/B78SKOml.js.br +0 -0
- package/build/client/_app/immutable/chunks/B78SKOml.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CPQbfMGI.js → BIJDRvOc.js} +1 -1
- package/build/client/_app/immutable/chunks/BIJDRvOc.js.br +0 -0
- package/build/client/_app/immutable/chunks/BIJDRvOc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DVeiiKip.js → BYUAxBPx.js} +1 -1
- package/build/client/_app/immutable/chunks/BYUAxBPx.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYUAxBPx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BezBg3rs.js +1 -0
- package/build/client/_app/immutable/chunks/BezBg3rs.js.br +0 -0
- package/build/client/_app/immutable/chunks/BezBg3rs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DnBZO8Il.js → BrlWJk4r.js} +1 -1
- package/build/client/_app/immutable/chunks/BrlWJk4r.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrlWJk4r.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BiiAyXOY.js → Bw22EWRR.js} +1 -1
- package/build/client/_app/immutable/chunks/Bw22EWRR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bw22EWRR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CC5Ts_xe.js → C6B0JAFe.js} +1 -1
- package/build/client/_app/immutable/chunks/C6B0JAFe.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6B0JAFe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BEKG1Stw.js → C8OIAOGW.js} +1 -1
- package/build/client/_app/immutable/chunks/C8OIAOGW.js.br +0 -0
- package/build/client/_app/immutable/chunks/C8OIAOGW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{60JlvdhQ.js → CEHCs8E4.js} +1 -1
- package/build/client/_app/immutable/chunks/CEHCs8E4.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEHCs8E4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{ChjkQemt.js → CL60_qsS.js} +1 -1
- package/build/client/_app/immutable/chunks/CL60_qsS.js.br +0 -0
- package/build/client/_app/immutable/chunks/CL60_qsS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C69eHrL5.js → CeuOu7QI.js} +1 -1
- package/build/client/_app/immutable/chunks/CeuOu7QI.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeuOu7QI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CSntU4ww.js → Cn9pLe1S.js} +1 -1
- package/build/client/_app/immutable/chunks/Cn9pLe1S.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cn9pLe1S.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CvZklcJq.js → D1QZsS_n.js} +1 -1
- package/build/client/_app/immutable/chunks/D1QZsS_n.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1QZsS_n.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{IKqZ9EUq.js → D3z87-GH.js} +5 -5
- package/build/client/_app/immutable/chunks/D3z87-GH.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3z87-GH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DSAFUgJn.js → D69HGG2e.js} +1 -1
- package/build/client/_app/immutable/chunks/D69HGG2e.js.br +0 -0
- package/build/client/_app/immutable/chunks/D69HGG2e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B-rYWQGG.js → DGZVZsEx.js} +1 -1
- package/build/client/_app/immutable/chunks/DGZVZsEx.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGZVZsEx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{rZ2-WaWD.js → Dbi_7cO_.js} +2 -2
- package/build/client/_app/immutable/chunks/Dbi_7cO_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dbi_7cO_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DjCsArDj.js → Dq4WC4aT.js} +1 -1
- package/build/client/_app/immutable/chunks/Dq4WC4aT.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dq4WC4aT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Gbvs-EZ4.js → QrHSSdjC.js} +1 -1
- package/build/client/_app/immutable/chunks/QrHSSdjC.js.br +2 -0
- package/build/client/_app/immutable/chunks/QrHSSdjC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BPAziDlG.js → bOtONP_M.js} +1 -1
- package/build/client/_app/immutable/chunks/bOtONP_M.js.br +0 -0
- package/build/client/_app/immutable/chunks/bOtONP_M.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.B0SozPUz.js +2 -0
- package/build/client/_app/immutable/entry/app.B0SozPUz.js.br +0 -0
- package/build/client/_app/immutable/entry/app.B0SozPUz.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BgyXy-5i.js +1 -0
- package/build/client/_app/immutable/entry/start.BgyXy-5i.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BgyXy-5i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.CPXJEdVC.js → 0.BH-p6KNP.js} +1 -1
- package/build/client/_app/immutable/nodes/0.BH-p6KNP.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BH-p6KNP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BsHjzKoN.js → 1.5bKMe7me.js} +1 -1
- package/build/client/_app/immutable/nodes/1.5bKMe7me.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.5bKMe7me.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.JvkeSj5x.js → 10.CuyB--Be.js} +1 -1
- package/build/client/_app/immutable/nodes/10.CuyB--Be.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CuyB--Be.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.C9viE404.js → 11.Cp96bYst.js} +1 -1
- package/build/client/_app/immutable/nodes/11.Cp96bYst.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Cp96bYst.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.BWVqITW1.js → 12.B9kS4-UK.js} +1 -1
- package/build/client/_app/immutable/nodes/12.B9kS4-UK.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.B9kS4-UK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.D0u53Jpp.js → 13.ie4sMrRi.js} +1 -1
- package/build/client/_app/immutable/nodes/13.ie4sMrRi.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.ie4sMrRi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.CNClDl2g.js → 14.CqfbcQC3.js} +1 -1
- package/build/client/_app/immutable/nodes/14.CqfbcQC3.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.CqfbcQC3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.BJShjxpx.js → 15.ClcEiTus.js} +1 -1
- package/build/client/_app/immutable/nodes/15.ClcEiTus.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.ClcEiTus.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.Bb3PPsch.js → 16.Lubye7rY.js} +1 -1
- package/build/client/_app/immutable/nodes/16.Lubye7rY.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.Lubye7rY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.COjMgZvi.js → 17.CZsgvMnU.js} +1 -1
- package/build/client/_app/immutable/nodes/17.CZsgvMnU.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CZsgvMnU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.BbeSGQyg.js → 19.nb4PEk6e.js} +1 -1
- package/build/client/_app/immutable/nodes/19.nb4PEk6e.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.nb4PEk6e.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DBpcacIW.js +26 -0
- package/build/client/_app/immutable/nodes/2.DBpcacIW.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DBpcacIW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.2D2FCLQq.js → 20.DKDJA76m.js} +1 -1
- package/build/client/_app/immutable/nodes/20.DKDJA76m.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.DKDJA76m.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.xQ_KUjAi.js → 21.DDSJrVwV.js} +1 -1
- package/build/client/_app/immutable/nodes/21.DDSJrVwV.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DDSJrVwV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{22.DuszjIrq.js → 22.Bf2Y4qtK.js} +1 -1
- package/build/client/_app/immutable/nodes/22.Bf2Y4qtK.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.Bf2Y4qtK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.CKoLeDhM.js → 23.CgSRzQDr.js} +1 -1
- package/build/client/_app/immutable/nodes/23.CgSRzQDr.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.CgSRzQDr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.CH1byq7o.js → 24.fKJczgYC.js} +1 -1
- package/build/client/_app/immutable/nodes/24.fKJczgYC.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.fKJczgYC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.BzI2N_Dl.js +14 -0
- package/build/client/_app/immutable/nodes/25.BzI2N_Dl.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.BzI2N_Dl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{26.CHB__H6C.js → 26.Bl7bQZez.js} +1 -1
- package/build/client/_app/immutable/nodes/26.Bl7bQZez.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Bl7bQZez.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.pI-7Vnsb.js → 28.B9EWyQv6.js} +1 -1
- package/build/client/_app/immutable/nodes/28.B9EWyQv6.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.B9EWyQv6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.6gLsJ5iP.js → 3.DMxCWZ16.js} +1 -1
- package/build/client/_app/immutable/nodes/3.DMxCWZ16.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DMxCWZ16.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.uKPQRIJV.js → 4.Bj_V5H0A.js} +1 -1
- package/build/client/_app/immutable/nodes/4.Bj_V5H0A.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Bj_V5H0A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.CmppqGHA.js → 6.BAzIGIXP.js} +1 -1
- package/build/client/_app/immutable/nodes/6.BAzIGIXP.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BAzIGIXP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.DDZOqRAy.js → 7.CpRItf5T.js} +1 -1
- package/build/client/_app/immutable/nodes/7.CpRItf5T.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CpRItf5T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.DH6CiiFf.js → 8.BRbaXe0L.js} +1 -1
- package/build/client/_app/immutable/nodes/8.BRbaXe0L.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BRbaXe0L.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.jlOFlXh8.js → 9.DpQmfi7O.js} +1 -1
- package/build/client/_app/immutable/nodes/9.DpQmfi7O.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DpQmfi7O.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/{DecisionCard.js-DQls79M-.js → DecisionCard.js-Cim80Nvw.js} +2 -2
- package/build/server/chunks/chunks/{OpenDecision.js-1bnVd2CO.js → OpenDecision.js-BVAXM8UF.js} +3 -3
- package/build/server/chunks/chunks/{chat.svelte.js-t_sykiqk.js → chat.svelte.js-BcKQjH6T.js} +5 -1
- package/build/server/chunks/chunks/{detail.js-BHgTIrxq.js → detail.js-BBCxJBpU.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-CNjq89nb.js → feedback.js-DHLUCzN_.js} +2 -2
- package/build/server/chunks/chunks/harness.js-DPojOlFJ.js +16 -0
- package/build/server/chunks/chunks/{insights.svelte.js-jvJ6zpkP.js → insights.svelte.js-CLCl4593.js} +4 -4
- package/build/server/chunks/chunks/{internal.js-DxO60Agy.js → internal.js-CedW099c.js} +3 -3
- package/build/server/chunks/chunks/{keychain.js-CTV5MMKd.js → keychain.js-CspIw1lK.js} +2 -2
- package/build/server/chunks/chunks/{marketplace-service.js-DZ7N3g7i.js → marketplace-service.js-O-2c34nr.js} +2 -2
- package/build/server/chunks/chunks/{page.js-slDjdKdN.js → page.js-BRRl6mg_.js} +2 -2
- package/build/server/chunks/chunks/{previewhelper2.js-D62yPZ3-.js → previewhelper2.js-CLYvgGeM.js} +2 -2
- package/build/server/chunks/chunks/{repo.js-CpMWC7Dl.js → repo.js-BQv7p3Qv.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-n2Nl0Kn0.js → runtime.js-ja9fpm3a.js} +2111 -788
- package/build/server/chunks/chunks/{service.js-BBKBSt-r.js → service.js-CHB5De_m.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-D8unm3Dr.js → service2.js-BSXaHqaf.js} +24 -10
- package/build/server/chunks/chunks/{starter.js-BJtAaz_v.js → starter.js-BL6kYdY7.js} +2 -2
- package/build/server/chunks/chunks/{terminal.js-BckfZrAP.js → terminal.js-s8yEF1TY.js} +3 -1
- package/build/server/chunks/chunks/{view.js-DY3ke6NQ.js → view.js-DvrTXTsb.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-DU337wCA.js → _server.ts.js-DJDX8mej.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-DUjwvbDq.js → _server.ts.js-ZpNBOdE6.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-fB_wI3kP.js → _server.ts.js-cLGgBi-L.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-HZjTDOIW.js → _server.ts.js-DyA-Ftti.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-vtgE6dmd.js → _server.ts.js-BRutjWld.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-CBUM_cHq.js → _server.ts.js-CSUsZ_Uy.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-gqNm0NgZ.js → _server.ts.js-CyMAbBop.js} +9 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-DVTt9exZ.js → _server.ts.js-C1QNh7Fv.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-DI8pSLdx.js → _server.ts.js-xAS3zgy6.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-DwNKcPAZ.js → _server.ts.js-C0ChpkPv.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-gn9Pb6xh.js → _server.ts.js-Dg8UqJYL.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-BsuIck0U.js → _server.ts.js-KtXAKUKl.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-Du1j3gY1.js → _server.ts.js-SfyGIsms.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-D5_z22cM.js → _server.ts.js-uKjVaQqO.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-CqUodLtV.js → _server.ts.js-Bh09YMSB.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-Bqvpqc3W.js → _server.ts.js-DiOWY9as.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-U1yy4XTd.js → _server.ts.js-BRjxK-9y.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-Bt1HEbxQ.js → _server.ts.js-CA3XQih9.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-B1QGwJJx.js → _server.ts.js-B5MRXVz2.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-4D31QJkx.js → _server.ts.js-Hj5j2VEd.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-BB9t2sPI.js → _server.ts.js-CG5hVtIr.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-C0lNGC_e.js → _server.ts.js-CbfYfN4W.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-BCucQ7kV.js → _server.ts.js-Cntqh4w-.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-K051c2NK.js → _server.ts.js-DbaYfmK8.js} +5 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-DXp7CBKJ.js → _server.ts.js-CMC6khtq.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-BZjRhE_E.js → _server.ts.js-DiCaOT3E.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-C6pSTIZl.js → _server.ts.js-DQZxZKa4.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CPTGODgJ.js → _server.ts.js-CaQ772k3.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-CYyhaWOu.js → _server.ts.js-DkjBSjdS.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-LOfrDPqm.js → _server.ts.js-BLEOrgEt.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-CqJSn65A.js → _server.ts.js-rrfRBhVX.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-vWLUvqe2.js → _server.ts.js-DEaeguu1.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-CIy3Yxnj.js → _server.ts.js-DGviOddp.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-BXKekEzg.js → _server.ts.js-BfwOLICk.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-DZnqmxa7.js → _server.ts.js-C3dZCo79.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-clRCP6Vz.js → _server.ts.js-QCxCUoaZ.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-C0v3Eifj.js → _server.ts.js-CIHZWmY6.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-B1P26NiL.js → _server.ts.js-9MZ6ZU7W.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-_BWFybXT.js → _server.ts.js-YJgYZpm2.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-DM_qs0_P.js → _server.ts.js-DRO0yFlG.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-Cp4DC5RF.js → _server.ts.js--78Nc6jj.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-CFQmNKZw.js → _server.ts.js-B92-w9Jt.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-C0Hp3ghu.js → _server.ts.js-BlgDs2xk.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-OI33JqAV.js → _server.ts.js-Cc70st9n.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-BOetbdrI.js → _server.ts.js-COmpO5sc.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-BE02dpgR.js → _server.ts.js-DcHNA_QH.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-eXiYz0dl.js → _server.ts.js-BIBAGkdF.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-BzPQmqhd.js → _server.ts.js-DXKDhcRn.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-DernPNNa.js → _server.ts.js-BgJD7i53.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-CIJerTYj.js → _server.ts.js-CxKGr5ok.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-wMw-B2LV.js → _server.ts.js-k2erXAMq.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-BQVOZ_2W.js → _server.ts.js-BUmsnNMT.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-CBdZ3Hvx.js → _server.ts.js-Dic1r8FA.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-BjmmYFHq.js → _server.ts.js-DCDFOP3H.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-DxsJBLJe.js → _server.ts.js-DyaR3iKq.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-DXYaC6o9.js → _server.ts.js-Ds9qnblb.js} +6 -5
- package/build/server/chunks/entries/{hooks.server.js-CN-DQ0lm.js → hooks.server.js-BLsrrww8.js} +6 -5
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-B3IyG3tO.js → _layout.server.ts.js-CWJXWFa8.js} +2 -2
- package/build/server/chunks/entries/pages/{_layout.svelte.js-ClwzCpuE.js → _layout.svelte.js-CuWnZ-US.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.server.ts.js-DF3mUKXU.js → _page.server.ts.js-DcIo1Fkt.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.svelte.js-DotNRhUC.js → _page.svelte.js-CGR2VowD.js} +33 -19
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-BPsRMW1m.js → _page.server.ts.js-Cumc04zT.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-CRoejRrt.js → _page.server.ts.js-BvnBsHnq.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.svelte.js-DK__ZtkS.js → _page.svelte.js-zqjb3tWK.js} +5 -5
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-CEQlok_v.js → _page.server.ts.js-DVzHoqMO.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-aNzCSnrW.js → _page.server.ts.js-BK7WgAXR.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-DYPjOXZ7.js → _page.server.ts.js-B_et4vbk.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-CvLRSeh7.js → _page.server.ts.js-DWY01zRh.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-aP2FP_cG.js → _page.svelte.js-DLpzhD2s.js} +3 -3
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-CF2qEBQz.js → _page.server.ts.js-Be_vf2s9.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-Drm6Ahc4.js → _page.server.ts.js-euICzR6h.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-DdJMUWNL.js → _page.server.ts.js-CO-iqBAD.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-1GII3zKY.js → _page.server.ts.js-DzQmyVut.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-CVsOhaVz.js → _page.server.ts.js-ByePQa4g.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-Cva09MAW.js → _page.server.ts.js-DRj_7nDd.js} +2 -2
- package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-CMMEHMa0.js → _page.server.ts.js-QWGL2-Cn.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-CaBLC48A.js → _page.server.ts.js-DAOkZ-fE.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-C80JIole.js → _page.server.ts.js-jeZvTAgT.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-GcEMXNzE.js → _page.server.ts.js-Bzo5Uals.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-fmudFG1R.js → _page.server.ts.js-1XiCbDhc.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-Ck0V4NqF.js → _page.server.ts.js-DwYnrxXG.js} +2 -2
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-BT2aSao4.js → _page.server.ts.js-DP--6Ko6.js} +3 -3
- package/build/server/chunks/entries/pages/setup/{_page.svelte.js-BvrzY0TN.js → _page.svelte.js-CB6DNUFE.js} +108 -85
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-DQ9XiVXC.js → _page.server.ts.js-Dl0z8pkQ.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-zRkAX1kt.js → _page.svelte.js-Cali_YuK.js} +4 -4
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-DYUzrHEd.js → _page.server.ts.js-CyPpYkuJ.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-PjptcjBY.js → _page.server.ts.js-DlcJgtrb.js} +2 -2
- package/build/server/chunks/{handler-DhhKWgIp.js → handler-pU2T6cxW.js} +3 -3
- package/build/server/chunks/{index.js-utiPQsQj.js → index.js-B3YyBD1_.js} +2 -2
- package/build/server/chunks/{manifest.js-1v5Twa8d.js → manifest.js-D3OqJAbv.js} +86 -86
- package/build/server/chunks/nodes/{0.js-t5p4uwR-.js → 0.js-DapnlcBu.js} +10 -9
- package/build/server/chunks/nodes/{1.js-B23tX379.js → 1.js-B2zVBiHu.js} +2 -2
- package/build/server/chunks/nodes/{10.js-BYgrUxes.js → 10.js-CwfaDBrN.js} +2 -2
- package/build/server/chunks/nodes/{11.js-D8KeSOxn.js → 11.js-BSKCzLBk.js} +8 -7
- package/build/server/chunks/nodes/{12.js-CSqzXf2C.js → 12.js-Cw0R3pzN.js} +9 -8
- package/build/server/chunks/nodes/{13.js-BucPbiJc.js → 13.js-1CllvmKU.js} +9 -8
- package/build/server/chunks/nodes/{14.js-D5KFW0LX.js → 14.js-Duo10iYX.js} +10 -9
- package/build/server/chunks/nodes/{15.js-DMi0cMxP.js → 15.js-yyKjbIPm.js} +9 -8
- package/build/server/chunks/nodes/{16.js-garu2VVL.js → 16.js-Bw3O413k.js} +6 -6
- package/build/server/chunks/nodes/{17.js-CIGvZ14P.js → 17.js-CKJWbBiG.js} +2 -2
- package/build/server/chunks/nodes/{19.js-D0EE2SJv.js → 19.js-gqmNp-1X.js} +6 -6
- package/build/server/chunks/nodes/{2.js-CGs6HugM.js → 2.js-DbAE0QSU.js} +9 -8
- package/build/server/chunks/nodes/{20.js-CVajTuJ7.js → 20.js-DyVwaMHk.js} +8 -7
- package/build/server/chunks/nodes/{21.js-C53DsYbm.js → 21.js-UWLpwye1.js} +8 -7
- package/build/server/chunks/nodes/{22.js-IhEljvpJ.js → 22.js-DjQqtx9a.js} +8 -7
- package/build/server/chunks/nodes/{23.js-xMwn6OS_.js → 23.js-BRxy911D.js} +9 -8
- package/build/server/chunks/nodes/{24.js-Bf2yyWwh.js → 24.js-QS0KOwss.js} +4 -4
- package/build/server/chunks/nodes/{25.js-B4yvgFEW.js → 25.js-PQ5YJuMR.js} +10 -9
- package/build/server/chunks/nodes/{26.js-BgrkaBRi.js → 26.js-CVgNTrxq.js} +10 -9
- package/build/server/chunks/nodes/{27.js-CmaLV07r.js → 27.js-D362fjZ7.js} +8 -7
- package/build/server/chunks/nodes/{28.js-D5cRvkTM.js → 28.js-CquKiHnq.js} +8 -7
- package/build/server/chunks/nodes/{3.js-Dm2pmcK2.js → 3.js-_ZrsIscU.js} +8 -7
- package/build/server/chunks/nodes/{4.js-C4ho5OJp.js → 4.js-CMBAdl6x.js} +9 -8
- package/build/server/chunks/nodes/{5.js-y4HoD1YR.js → 5.js-DRAnyeo0.js} +7 -6
- package/build/server/chunks/nodes/{6.js-CjlWBc3h.js → 6.js-CWsHGKdF.js} +8 -7
- package/build/server/chunks/nodes/{7.js-Bu-qbDJ5.js → 7.js-BzkPQGE-.js} +8 -7
- package/build/server/chunks/nodes/{8.js-qv_Z5rCa.js → 8.js-DppreJ1j.js} +9 -8
- package/build/server/chunks/nodes/{9.js-txPQIe_t.js → 9.js-CWCKh6Lz.js} +2 -2
- package/dist/cli.js +389 -241
- package/dist/wh-vault.js +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/assets/0.C7-9O7Er.css +0 -1
- package/build/client/_app/immutable/assets/0.C7-9O7Er.css.br +0 -0
- package/build/client/_app/immutable/assets/0.C7-9O7Er.css.gz +0 -0
- package/build/client/_app/immutable/chunks/60JlvdhQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/60JlvdhQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B-rYWQGG.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-rYWQGG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B597Cbe1.js.br +0 -0
- package/build/client/_app/immutable/chunks/B597Cbe1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEKG1Stw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEKG1Stw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPAziDlG.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPAziDlG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiiAyXOY.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiiAyXOY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C69eHrL5.js.br +0 -0
- package/build/client/_app/immutable/chunks/C69eHrL5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CC5Ts_xe.js.br +0 -0
- package/build/client/_app/immutable/chunks/CC5Ts_xe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPQbfMGI.js.br +0 -0
- package/build/client/_app/immutable/chunks/CPQbfMGI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSntU4ww.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSntU4ww.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cbm0yS9E.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cbm0yS9E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ChjkQemt.js.br +0 -0
- package/build/client/_app/immutable/chunks/ChjkQemt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CvZklcJq.js.br +0 -0
- package/build/client/_app/immutable/chunks/CvZklcJq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DSAFUgJn.js.br +0 -0
- package/build/client/_app/immutable/chunks/DSAFUgJn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVeiiKip.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVeiiKip.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjCsArDj.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjCsArDj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DnBZO8Il.js.br +0 -0
- package/build/client/_app/immutable/chunks/DnBZO8Il.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Gbvs-EZ4.js.br +0 -1
- package/build/client/_app/immutable/chunks/Gbvs-EZ4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/IKqZ9EUq.js.br +0 -0
- package/build/client/_app/immutable/chunks/IKqZ9EUq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/rZ2-WaWD.js.br +0 -0
- package/build/client/_app/immutable/chunks/rZ2-WaWD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wU4H_Xw3.js +0 -1
- package/build/client/_app/immutable/chunks/wU4H_Xw3.js.br +0 -0
- package/build/client/_app/immutable/chunks/wU4H_Xw3.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.ERrI8AQ5.js +0 -2
- package/build/client/_app/immutable/entry/app.ERrI8AQ5.js.br +0 -0
- package/build/client/_app/immutable/entry/app.ERrI8AQ5.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Dw33pepJ.js +0 -1
- package/build/client/_app/immutable/entry/start.Dw33pepJ.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Dw33pepJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CPXJEdVC.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CPXJEdVC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BsHjzKoN.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BsHjzKoN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.JvkeSj5x.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.JvkeSj5x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.C9viE404.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.C9viE404.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BWVqITW1.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BWVqITW1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.D0u53Jpp.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.D0u53Jpp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.CNClDl2g.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.CNClDl2g.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.BJShjxpx.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.BJShjxpx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.Bb3PPsch.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.Bb3PPsch.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.COjMgZvi.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.COjMgZvi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.BbeSGQyg.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BbeSGQyg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CBjl08IG.js +0 -25
- package/build/client/_app/immutable/nodes/2.CBjl08IG.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CBjl08IG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.2D2FCLQq.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.2D2FCLQq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.xQ_KUjAi.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.xQ_KUjAi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.DuszjIrq.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.DuszjIrq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.CKoLeDhM.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.CKoLeDhM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.CH1byq7o.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.CH1byq7o.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.BFrDgbR3.js +0 -12
- package/build/client/_app/immutable/nodes/25.BFrDgbR3.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.BFrDgbR3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.CHB__H6C.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.CHB__H6C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.pI-7Vnsb.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.pI-7Vnsb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.6gLsJ5iP.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.6gLsJ5iP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.uKPQRIJV.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.uKPQRIJV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CmppqGHA.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CmppqGHA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.DDZOqRAy.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DDZOqRAy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DH6CiiFf.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DH6CiiFf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.jlOFlXh8.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.jlOFlXh8.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as pn,A as mn,H as wn,ae as vn,bD as yn,i as A,g as p,aC as xn,u as rt,p as et,j as X,f as V,aa as $,a as W,b as nt,m as N,q as Wt,v as C,s as Et,c as kt,aD as St,aF as Ke,h as dt,r as ft,l as bn,n as On,w as Pn,t as An,d as Cn,y as $t,x as Sn}from"./D46tdsTs.js";import"./DsnmJJEf.js";import{s as Pt,r as vt,p as O}from"./z5Xef_-v.js";import{I as En}from"./B4gzexCn.js";import{s as j}from"./DTJjRJA0.js";import{i as gt}from"./DWAM9c1z.js";import{l as Ft}from"./BLivoCTk.js";import{i as Fn,C as Yt,s as it,j as Dn,b as E,k as Tt,u as Xe,l as Tn,n as _n,o as Mn,w as _t,p as In,m as bt,F as kn,S as Ae,E as Bn,q as Wn,T as Ln,r as Hn,t as ht,v as Ce,x as Nn,y as Ht,z as Rn,A as zn,B as Ye,G as Vn,H as Kn,I as Xn,J as Yn,c as Ue,K as xt,P as Un,f as jn,e as qn,g as Zn,a as Gn,h as Jn}from"./BnAtF53u.js";import{o as Qn}from"./D8OKqJm7.js";import{b as $n}from"./IKqZ9EUq.js";import{e as je}from"./CvZklcJq.js";import{c as yt}from"./DT69KRC9.js";import{X as to}from"./CSU-6kdN.js";function ai(e,t,n){pn(()=>{var o=mn(()=>t(e,n?.())||{});if(n&&o?.update){var r=!1,i={};wn(()=>{var s=n();vn(s),r&&yn(i,s)&&(i=s,o.update(s))}),r=!0}if(o?.destroy)return()=>o.destroy()})}var eo=new Set(["$$slots","$$events","$$legacy"]);function li(e,t){let n=vt(t,eo);const o={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]]};En(e,Pt(()=>n,{get icon(){return o}}))}function no(e){return typeof e=="function"}function Se(e){return no(e)?e():e}class oo{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=A(()=>(p(this.#n)?.(),this.getSize().width));#a=A(()=>(p(this.#n)?.(),this.getSize().height));#n=A(()=>{const t=Se(this.#r);if(t)return xn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,f)=>Math.max(l,f.inlineSize),0),this.#t.height=a.reduce((l,f)=>Math.max(l,f.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??Fn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Se(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),f=n-i-a,u=o-s-l;return{width:f,height:u}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return p(this.#n)?.(),this.getSize()}get width(){return p(this.#s)}get height(){return p(this.#a)}}const ce=new Yt("Floating.Root"),ue=new Yt("Floating.Root");class Nt{static create(t=!1){return t?ue.set(new Nt):ce.set(new Nt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Rt{static create(t,n=!1){return n?new Rt(t,ue.get()):new Rt(t,ce.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Dn(t.virtualEl.current):n.triggerNode=t.ref}}function ro(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Nt.create(n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}function ct(e){return typeof e=="function"?e():e}function qe(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ee(e,t){const n=qe(e);return Math.round(t*n)/n}function Fe(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function io(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Rt.create({id:E(()=>t.id),virtualEl:E(()=>t.virtualEl),ref:t.ref},n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}const so=["top","right","bottom","left"],st=Math.min,J=Math.max,zt=Math.round,Bt=Math.floor,Q=e=>({x:e,y:e}),ao={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,n){return J(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function de(e){return e==="x"?"y":"x"}function fe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function he(e){return de(q(e))}function lo(e,t,n){n===void 0&&(n=!1);const o=At(e),r=he(e),i=fe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vt(s)),[s,Vt(s)]}function co(e){const t=Vt(e);return[ie(e),t,ie(t)]}function ie(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const De=["left","right"],Te=["right","left"],uo=["top","bottom"],fo=["bottom","top"];function ho(e,t,n){switch(e){case"top":case"bottom":return n?t?Te:De:t?De:Te;case"left":case"right":return t?uo:fo;default:return[]}}function go(e,t,n,o){const r=At(e);let i=ho(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ie)))),i}function Vt(e){const t=at(e);return ao[t]+e.slice(t.length)}function po(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Ge(e){return typeof e!="number"?po(e):{top:e,right:e,bottom:e,left:e}}function Kt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function _e(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=he(t),a=fe(s),l=at(t),f=i==="y",u=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:u,y:o.y-r.height};break;case"bottom":c={x:u,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:h};break;case"left":c={x:o.x-r.width,y:h};break;default:c={x:o.x,y:o.y}}const g=At(t);return g&&(c[s]+=d*(g==="end"?1:-1)*(n&&f?-1:1)),c}async function mo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=tt(t,e),g=Ge(c),y=a[d?h==="floating"?"reference":"floating":h],w=Kt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:l})),v=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},S=Kt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:P,strategy:l}):v);return{top:(w.top-S.top+g.top)/x.y,bottom:(S.bottom-w.bottom+g.bottom)/x.y,left:(w.left-S.left+g.left)/x.x,right:(S.right-w.right+g.right)/x.x}}const wo=50,vo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:mo},l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:h}=_e(f,o,l),d=o,c=0;const g={};for(let m=0;m<i.length;m++){const y=i[m];if(!y)continue;const{name:w,fn:v}=y,{x:P,y:x,data:S,reset:b}=await v({x:u,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=P??u,h=x??h,g[w]={...g[w],...S},b&&c<wo&&(c++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:h}=_e(f,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:r,middlewareData:g}},yo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:f,padding:u=0}=tt(e,t)||{};if(f==null)return{};const h=Ge(u),d={x:n,y:o},c=he(r),g=fe(c),m=await s.getDimensions(f),y=c==="y",w=y?"top":"left",v=y?"bottom":"right",P=y?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[c]-d[c]-i.floating[g],S=d[c]-i.reference[c],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let F=b?b[P]:0;(!F||!await(s.isElement==null?void 0:s.isElement(b)))&&(F=a.floating[P]||i.floating[g]);const _=x/2-S/2,L=F/2-m[g]/2-1,M=st(h[w],L),R=st(h[v],L),H=F-m[g]-R,I=F/2-m[g]/2+_,T=Ze(M,I,H),K=!l.arrow&&At(r)!=null&&I!==T&&i.reference[g]/2-(I<M?M:R)-m[g]/2<0,z=K?I<M?I-M:I-H:0;return{[c]:d[c]+z,data:{[c]:T,centerOffset:I-T-z,...K&&{alignmentOffset:z}},reset:K}}}),xo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=at(r),v=q(a),P=at(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=d||(P||!m?[Vt(a)]:co(a)),b=g!=="none";!d&&b&&S.push(...go(a,m,g,x));const F=[a,...S],_=await l.detectOverflow(t,y),L=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&L.push(_[w]),h){const T=lo(r,s,x);L.push(_[T[0]],_[T[1]])}if(M=[...M,{placement:r,overflows:L}],!L.every(T=>T<=0)){var R,H;const T=(((R=i.flip)==null?void 0:R.index)||0)+1,K=F[T];if(K&&(!(h==="alignment"?v!==q(K):!1)||M.every(D=>q(D.placement)===v?D.overflows[0]>0:!0)))return{data:{index:T,overflows:M},reset:{placement:K}};let z=(H=M.filter(B=>B.overflows[0]<=0).sort((B,D)=>B.overflows[1]-D.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var I;const B=(I=M.filter(D=>{if(b){const k=q(D.placement);return k===v||k==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((D,k)=>D[1]-k[1])[0])==null?void 0:I[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Me(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return so.some(t=>e[t]>=0)}const bo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=Me(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ie(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=Me(s,n.floating);return{data:{escapedOffsets:a,escaped:Ie(a)}}}default:return{}}}}},Je=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=At(n),l=q(n)==="y",f=Je.has(s)?-1:1,u=i&&l?-1:1,h=tt(t,e);let{mainAxis:d,crossAxis:c,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(c=a==="end"?g*-1:g),l?{x:c*u,y:d*f}:{x:d*f,y:c*u}}const Po=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await Oo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ao=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:P,y:x}=v;return{x:P,y:x}}},...f}=tt(e,t),u={x:n,y:o},h=await i.detectOverflow(t,f),d=q(r),c=de(d);let g=u[c],m=u[d];const y=(v,P)=>Ze(P+h[v==="y"?"top":"left"],P,P-h[v==="y"?"bottom":"right"]);s&&(g=y(c,g)),a&&(m=y(d,m));const w=l.fn({...t,[c]:g,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[c]:s,[d]:a}}}}}},Co=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:f=0,mainAxis:u=!0,crossAxis:h=!0}=tt(e,t),d={x:r,y:i},c=q(s),g=de(c);let m=d[g],y=d[c];const w=tt(f,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(u){const S=g==="y"?"height":"width",b=a.reference[g]-a.floating[S]+v.mainAxis,F=a.reference[g]+a.reference[S]-v.mainAxis;m<b?m=b:m>F&&(m=F)}if(h){var P,x;const S=g==="y"?"width":"height",b=Je.has(at(s)),F=a.reference[c]-a.floating[S]+(b&&((P=l.offset)==null?void 0:P[c])||0)+(b?0:v.crossAxis),_=a.reference[c]+a.reference[S]+(b?0:((x=l.offset)==null?void 0:x[c])||0)-(b?v.crossAxis:0);y<F?y=F:y>_&&(y=_)}return{[g]:m,[c]:y}}}},So=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),f=at(n),u=At(n),h=q(n)==="y",{width:d,height:c}=o.floating;let g,m;f==="top"||f==="bottom"?(g=f,m=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=f,g=u==="end"?"top":"bottom");const y=c-l.top-l.bottom,w=d-l.left-l.right,v=st(c-l[g],y),P=st(d-l[m],w),x=t.middlewareData.shift,S=!x;let b=v,F=P;x!=null&&x.enabled.x&&(F=w),x!=null&&x.enabled.y&&(b=y),S&&!u&&(h?F=d-2*J(l.left,l.right):b=c-2*J(l.top,l.bottom)),await s({...t,availableWidth:F,availableHeight:b});const _=await r.getDimensions(i.floating);return d!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<"u"}function Ct(e){return Qe(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Qe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qe(e){return Ut()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Ut()?e instanceof Element||e instanceof U(e).Element:!1}function lt(e){return Ut()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function ke(e){return!Ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Eo(e){return/^(table|td|th)$/.test(Ct(e))}function qt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Fo=/transform|translate|scale|rotate|perspective|filter/,Do=/paint|layout|strict|content/,ut=e=>!!e&&e!=="none";let te;function ge(e){const t=Z(e)?G(e):e;return ut(t.transform)||ut(t.translate)||ut(t.scale)||ut(t.rotate)||ut(t.perspective)||!pe()&&(ut(t.backdropFilter)||ut(t.filter))||Fo.test(t.willChange||"")||Do.test(t.contain||"")}function To(e){let t=pt(e);for(;lt(t)&&!Mt(t);){if(ge(t))return t;if(qt(t))return null;t=pt(t)}return null}function pe(){return te==null&&(te=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),te}function Mt(e){return/^(html|body|#document)$/.test(Ct(e))}function G(e){return U(e).getComputedStyle(e)}function Zt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ke(e)&&e.host||ot(e);return ke(t)?t.host:t}function $e(e){const t=pt(e);return Mt(t)?(e.ownerDocument||e).body:lt(t)&&jt(t)?t:$e(t)}function It(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$e(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=se(s);return t.concat(s,s.visualViewport||[],jt(r)?r:[],a&&n?It(a):[])}else return t.concat(r,It(r,[],n))}function se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=lt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=zt(n)!==i||zt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function me(e){return Z(e)?e:e.contextElement}function Ot(e){const t=me(e);if(!lt(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=tn(t);let s=(i?zt(n.width):n.width)/o,a=(i?zt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _o=Q(0);function en(e){const t=U(e);return!pe()||!t.visualViewport?_o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function mt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=me(e);let s=Q(1);t&&(o?Z(o)&&(s=Ot(o)):s=Ot(e));const a=Mo(i,n,o)?en(i):Q(0);let l=(r.left+a.x)/s.x,f=(r.top+a.y)/s.y,u=r.width/s.x,h=r.height/s.y;if(i&&o){const d=U(i),c=Z(o)?U(o):o;let g=d,m=se(g);for(;m&&c!==g;){const y=Ot(m),w=m.getBoundingClientRect(),v=G(m),P=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,x=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,f*=y.y,u*=y.x,h*=y.y,l+=P,f+=x,g=U(m),m=se(g)}}return Kt({width:u,height:h,x:l,y:f})}function Gt(e,t){const n=Zt(e).scrollLeft;return t?t.left+n:mt(ot(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Gt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Io(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?qt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},f=Q(1);const u=Q(0),h=lt(o);if((h||!i)&&((Ct(o)!=="body"||jt(s))&&(l=Zt(o)),h)){const c=mt(o);f=Ot(o),u.x=c.x+o.clientLeft,u.y=c.y+o.clientTop}const d=s&&!h&&!i?nn(s,l):Q(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:n.y*f.y-l.scrollTop*f.y+u.y+d.y}}function ko(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Bo(e){const t=Zt(e),n=e.ownerDocument.body,o=J(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=J(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Gt(e);const s=-t.scrollTop;return G(n).direction==="rtl"&&(i+=J(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Wo=25;function Lo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,f=0,u=0;if(s){const d=!pe()||t==="fixed";o?d||(f=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,d&&(f=s.offsetLeft,u=s.offsetTop))}if(Gt(i)<=0){const d=i.ownerDocument,c=d.body,g=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(i.clientWidth-c.clientWidth-m),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?y/2:y;w<=Wo&&(a-=w)}return{width:a,height:l,x:f,y:u}}function Ho(e,t){const n=mt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ot(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,f=o*i.y;return{width:s,height:a,x:l,y:f}}function Be(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Lo(e,n,t);else if(t==="document")o=Bo(ot(e));else if(Z(t))o=Ho(t,n);else{const r=en(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function No(e,t){const n=t.get(e);if(n)return n;let o=It(e,[],!1).filter(a=>Z(a)&&Ct(a)!=="body"),r=null;const i=G(e).position==="fixed";let s=i?pt(e):e;for(;Z(s)&&!Mt(s);){const a=G(s),l=ge(s),f=r?r.position:i?"fixed":"";!l&&(f==="fixed"||f==="absolute"&&a.position==="static")?o=o.filter(h=>h!==s):r=a,s=pt(s)}return t.set(e,o),o}function Ro(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?qt(t)?[]:No(t,this._c):[].concat(n),o],a=Be(t,s[0],r);let l=a.top,f=a.right,u=a.bottom,h=a.left;for(let d=1;d<s.length;d++){const c=Be(t,s[d],r);l=J(c.top,l),f=st(c.right,f),u=st(c.bottom,u),h=J(c.left,h)}return{width:f-h,height:u-l,x:h,y:l}}function zo(e){const{width:t,height:n}=tn(e);return{width:t,height:n}}function Vo(e,t,n){const o=lt(t),r=ot(t),i=n==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Ct(t)!=="body"||jt(r))&&(a=Zt(t)),o)){const d=mt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}!o&&r&&(l.x=Gt(r));const f=r&&!o&&!i?nn(r,a):Q(0),u=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function ee(e){return G(e).position==="static"}function We(e,t){if(!lt(e)||G(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){const n=U(e);if(qt(e))return n;if(!lt(e)){let r=pt(e);for(;r&&!Mt(r);){if(Z(r)&&!ee(r))return r;r=pt(r)}return n}let o=We(e,t);for(;o&&Eo(o)&&ee(o);)o=We(o,t);return o&&Mt(o)&&ee(o)&&!ge(o)?n:o||To(e)||n}const Ko=async function(e){const t=this.getOffsetParent||on,n=this.getDimensions,o=await n(e.floating);return{reference:Vo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xo(e){return G(e).direction==="rtl"}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:ot,getClippingRect:Ro,getOffsetParent:on,getElementRects:Ko,getClientRects:ko,getDimensions:zo,getScale:Ot,isElement:Z,isRTL:Xo};function rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t,n){let o=null,r;const i=ot(e);function s(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:c,top:g,width:m,height:y}=d;if(u||t(),!m||!y)return;const w=Bt(g),v=Bt(i.clientWidth-(c+m)),P=Bt(i.clientHeight-(g+y)),x=Bt(c),b={rootMargin:-w+"px "+-v+"px "+-P+"px "+-x+"px",threshold:J(0,st(1,h))||1};let F=!0;function _(L){const M=L[0].intersectionRatio;if(!rn(d,e.getBoundingClientRect()))return a();if(M!==h){if(!F)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1}try{o=new IntersectionObserver(_,{...b,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,b)}o.observe(e)}const l=U(e),f=()=>a(n);return l.addEventListener("resize",f),a(!0),()=>{l.removeEventListener("resize",f),s()}}function jo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=me(e),u=r||i?[...f?It(f):[],...t?It(t):[]]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const h=f&&a?Uo(f,n,i):null;let d=-1,c=null;s&&(c=new ResizeObserver(w=>{let[v]=w;v&&v.target===f&&c&&t&&(c.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=c)==null||P.observe(t)})),n()}),f&&!l&&c.observe(f),t&&c.observe(t));let g,m=l?mt(e):null;l&&y();function y(){const w=mt(e);m&&!rn(m,w)&&n(),m=w,g=requestAnimationFrame(y)}return n(),()=>{var w;u.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h?.(),(w=c)==null||w.disconnect(),c=null,l&&cancelAnimationFrame(g)}}const qo=Po,Zo=Ao,Go=xo,Jo=So,Qo=bo,$o=yo,tr=Co,er=(e,t,n)=>{const o=new Map,r=n??{},i={...Yo,...r.platform,_c:o};return vo(e,t,{...r,platform:i})};function nr(e){const t=e.whileElementsMounted,n=A(()=>ct(e.open)??!0),o=A(()=>ct(e.middleware)),r=A(()=>ct(e.transform)??!0),i=A(()=>ct(e.placement)??"bottom"),s=A(()=>ct(e.strategy)??"absolute"),a=A(()=>ct(e.sideOffset)??0),l=A(()=>ct(e.alignOffset)??0),f=e.reference;let u=N(0),h=N(0);const d=it(null);let c=N(Wt(p(s))),g=N(Wt(p(i))),m=N(Wt({})),y=N(!1),w=!1,v=0,P=!1;const x=A(()=>{const R=d.current?Ee(d.current,p(u)):p(u),H=d.current?Ee(d.current,p(h)):p(h);return p(r)?{position:p(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...d.current&&qe(d.current)>=1.5&&{willChange:"transform"}}:{position:p(c),left:`${R}px`,top:`${H}px`}});let S;function b(){if(P||f.current===null||d.current===null)return;const R=f.current,H=d.current,I=++v;er(R,H,{middleware:p(o),placement:p(i),strategy:p(s)}).then(T=>{if(I!==v||f.current!==R||d.current!==H)return;if(or(R)){C(m,{...p(m),hide:{...p(m).hide,referenceHidden:!0}},!0);return}if(!p(n)&&p(u)!==0&&p(h)!==0){const z=Math.max(Math.abs(p(a)),Math.abs(p(l)),15);if(T.x<=z&&T.y<=z)return}C(u,T.x,!0),C(h,T.y,!0),C(c,T.strategy,!0),C(g,T.placement,!0),C(m,T.middlewareData,!0),C(y,!0)})}function F(){typeof S=="function"&&(S(),S=void 0),v++}function _(){if(F(),t===void 0){b();return}p(n)&&(f.current===null||d.current===null||(S=t(f.current,d.current,b)))}function L(){!p(n)&&d.current===null&&C(y,!1)}function M(){return[p(o),p(i),p(s),p(a),p(l),p(n)]}return rt(()=>{t===void 0&&p(n)&&b()}),rt(_),rt(()=>{if(t!==void 0){if(M(),!p(n)){w=!1;return}if(!p(y)){w=!1;return}if(!w){w=!0;return}b()}}),rt(L),rt(()=>()=>{P=!0,F()}),{floating:d,reference:f,get strategy(){return p(c)},get placement(){return p(g)},get middlewareData(){return p(m)},get isPositioned(){return p(y)},get floatingStyles(){return p(x)},get update(){return b}}}function or(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rr={top:"bottom",right:"left",bottom:"top",left:"right"},ae=new Yt("Floating.Content");class Xt{static create(t,n=!1){return n?ae.set(new Xt(t,ue.get())):ae.set(new Xt(t,ce.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Tt(this.contentRef);wrapperAttachment=Tt(this.wrapperRef);arrowAttachment=Tt(this.arrowRef);arrowId=it(Xe());#t=A(()=>{if(typeof this.opts.style=="string")return Tn(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new oo(()=>this.arrowRef.current??void 0);#r=A(()=>this.#i?.width??0);#e=A(()=>this.#i?.height??0);#s=A(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=A(()=>p(this.#a).length>0);get hasExplicitBoundaries(){return p(this.#n)}set hasExplicitBoundaries(t){C(this.#n,t)}#l=A(()=>({padding:this.opts.collisionPadding.current,boundary:p(this.#a).filter(_n),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return p(this.#l)}set detectOverflowOptions(t){C(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=A(()=>[qo({mainAxis:this.opts.sideOffset.current+p(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Zo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Go({...this.detectOverflowOptions}),Jo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;C(this.#c,n,!0),C(this.#d,o,!0),C(this.#f,r,!0),C(this.#g,i,!0)}}),this.arrowRef.current&&$o({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ir({arrowWidth:p(this.#r),arrowHeight:p(this.#e)}),this.opts.hideWhenDetached.current&&Qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return p(this.#p)}set middleware(t){C(this.#p,t)}floating;#u=A(()=>sr(this.floating.placement));get placedSide(){return p(this.#u)}set placedSide(t){C(this.#u,t)}#h=A(()=>ar(this.floating.placement));get placedAlign(){return p(this.#h)}set placedAlign(t){C(this.#h,t)}#m=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return p(this.#m)}set arrowX(t){C(this.#m,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return p(this.#w)}set arrowY(t){C(this.#w,t)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return p(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=N();get contentZIndex(){return p(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#x=A(()=>rr[this.placedSide]);get arrowBaseSide(){return p(this.#x)}set arrowBaseSide(t){C(this.#x,t)}#b=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${p(this.#c)}px`,"--bits-floating-available-height":`${p(this.#d)}px`,"--bits-floating-anchor-width":`${p(this.#f)}px`,"--bits-floating-anchor-height":`${p(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...p(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return p(this.#b)}set wrapperProps(t){C(this.#b,t)}#O=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Mn({...p(this.#t)}),...this.contentAttachment}));get props(){return p(this.#O)}set props(t){C(this.#O,t)}#P=A(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return p(this.#P)}set arrowStyle(t){C(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),_t(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=nr({strategy:()=>this.opts.strategy.current,placement:()=>p(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>jo(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),_t(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=In(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class sn{static create(t){return new sn(t,ae.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=A(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return p(this.#t)}set props(t){C(this.#t,t)}}function ir(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[f,u]=we(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let g="",m="";return f==="bottom"?(g=s?h:`${d}px`,m=`${-l}px`):f==="top"?(g=s?h:`${d}px`,m=`${o.floating.height+l}px`):f==="right"?(g=`${-l}px`,m=s?h:`${c}px`):f==="left"&&(g=`${o.floating.width+l}px`,m=s?h:`${c}px`),{data:{x:g,y:m}}}}}function we(e){const[t,n="center"]=e.split("-");return[t,n]}function sr(e){return we(e)[0]}function ar(e){return we(e)[1]}function lr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),f=O(t,"collisionPadding",3,0),u=O(t,"hideWhenDetached",3,!1),h=O(t,"onPlaced",3,()=>{}),d=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),g=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),y=O(t,"style",19,()=>({})),w=O(t,"wrapperId",19,Xe),v=O(t,"customAnchor",3,null),P=O(t,"tooltip",3,!1);const x=Xt.create({side:E(()=>n()),sideOffset:E(()=>o()),align:E(()=>r()),alignOffset:E(()=>i()),id:E(()=>t.id),arrowPadding:E(()=>s()),avoidCollisions:E(()=>a()),collisionBoundary:E(()=>l()),collisionPadding:E(()=>f()),hideWhenDetached:E(()=>u()),onPlaced:E(()=>h()),sticky:E(()=>d()),updatePositionStrategy:E(()=>c()),strategy:E(()=>g()),dir:E(()=>m()),style:E(()=>y()),enabled:E(()=>t.enabled),wrapperId:E(()=>w()),customAnchor:E(()=>v())},P()),S=A(()=>bt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var b=X(),F=V(b);j(F,()=>t.content??$,()=>({props:x.props,wrapperProps:p(S)})),W(e,b),nt()}function cr(e,t){et(t,!0),Qn(()=>{t.onPlaced?.()});var n=X(),o=V(n);j(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var ur=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function dr(e,t){let n=O(t,"isStatic",3,!1),o=vt(t,ur);var r=X(),i=V(r);{var s=l=>{cr(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{lr(l,Pt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};gt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),hr=kt("<!> <!>",1);function an(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),f=vt(t,fr);const u=A(()=>t.preventScroll??!0),h=A(()=>t.strategy??(p(u)?"fixed":"absolute"));dr(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return p(h)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,g)=>{let m=()=>(g?.()).props,y=()=>(g?.()).wrapperProps;var w=hr(),v=V(w);{var P=b=>{Ae(b,{get preventScroll(){return p(u)}})},x=b=>{Ae(b,{get preventScroll(){return p(u)}})};gt(v,b=>{t.forceMount&&t.enabled?b(P):t.forceMount||b(x,1)})}var S=Et(v,2);kn(S,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(F,_)=>{let L=()=>(_?.()).props;Bn(F,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,R)=>{Wn(M,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,T)=>{let K=()=>(T?.()).props;Ln(I,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var D=X(),k=V(D);{let Y=A(()=>({props:bt(f,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:y()}));j(k,()=>t.popper??$,()=>p(Y))}W(z,D)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,w)},$$slots:{content:!0}}),nt()}var gr=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function pr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,gr);var l=X(),f=V(l);{var u=h=>{an(h,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};gt(f,h=>{t.shouldRender&&h(u)})}W(e,l)}var mr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function wr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,mr);an(e,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function ne(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,f]=t[s]??[0,0],[u,h]=t[a]??[0,0];f>=o!=h>=o&&n<=(u-l)*(o-f)/(h-f)+l&&(r=!r)}return r}function oe(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Le(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class vr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,_t([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Hn(o),a=d=>{this.#p([d.clientX,d.clientY],o,r)},l=d=>{const c=d.relatedTarget;if(ht(c)&&r.contains(c))return;const g=this.#t.ignoredTargets?.()??[];ht(c)&&g.some(m=>m===c||m.contains(c))||(this.#s=ht(c)&&g.length>0?g.filter(m=>c.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#e="content",this.#d())},f=()=>{this.#u()},u=()=>{this.#u()},h=d=>{const c=d.relatedTarget;ht(c)&&o.contains(c)||(this.#r=[d.clientX,d.clientY],this.#e="trigger",this.#d())};return[St(s,"pointermove",a),St(o,"pointerleave",l),St(o,"pointerenter",f),St(r,"pointerenter",u),St(r,"pointerleave",h)].reduce((d,c)=>()=>{d(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&oe(t,i)){this.#u();return}if(this.#e==="trigger"&&oe(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const u of this.#s){const h=u.getBoundingClientRect();if(oe(t,h))return;const d=Le(r,h),c=this.#h(r,h,d);if(c&&ne(t,c))return}const s=Le(r,i),a=this.#h(r,i,s);if(a&&ne(t,a))return;const l=this.#e==="content"?i:r,f=this.#m(this.#r,l,s,this.#e);ne(t,f)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const le=Yn({component:"popover",parts:["root","trigger","content","close","overlay"]}),ve=new Yt("Popover.Root");class ye{static create(t){return ve.set(new ye(t))}opts;#t=N(null);get contentNode(){return p(this.#t)}set contentNode(t){C(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return p(this.#o)}set triggerNode(t){C(this.#o,t,!0)}#i=N(null);get overlayNode(){return p(this.#i)}set overlayNode(t){C(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return p(this.#r)}set openedViaHover(t){C(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return p(this.#e)}set hasInteractedWithContent(t){C(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return p(this.#s)}set hoverCooldown(t){C(this.#s,t,!0)}#a=N(0);get closeDelay(){return p(this.#a)}set closeDelay(t){C(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Ce({ref:E(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ce({ref:E(()=>this.overlayNode),open:this.opts.open}),_t(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class xe{static create(t){return new xe(t,ve.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Tt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new Nn(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),_t(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ht(t)||(C(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Ht(t)||(C(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),p(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}p(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Rn||t.key===zn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=A(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Vn(this.root.opts.open.current),"data-state":Ye(this.root.opts.open.current),"aria-controls":this.#a(),[le.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#n)}set props(t){C(this.#n,t)}}class be{static create(t){return new be(t,ve.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Tt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new vr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ht(n)&&Kn(n)&&this.root.markInteraction()}onpointerenter(t){Ht(t)||this.root.cancelDelayedClose()}onpointerleave(t){Ht(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ht(t.target))return;const n=t.target.closest(le.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ht(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return p(this.#t)}set snippetProps(t){C(this.#t,t)}#o=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ye(this.root.opts.open.current),...Xn(this.root.contentPresence.transitionStatus),[le.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#o)}set props(t){C(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var yr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),He=kt("<div><div><!></div></div>");function ci(e,t){const n=Ke();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ue(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,xt),a=O(t,"onCloseAutoFocus",3,xt),l=O(t,"onEscapeKeydown",3,xt),f=O(t,"onInteractOutside",3,xt),u=O(t,"trapFocus",3,!0),h=O(t,"preventScroll",3,!1),d=O(t,"customAnchor",3,null),c=vt(t,yr);const g=be.create({id:E(()=>r()),ref:E(()=>o(),b=>o(b)),onInteractOutside:E(()=>f()),onEscapeKeydown:E(()=>l()),customAnchor:E(()=>d())}),m=A(()=>bt(c,g.props)),y=A(()=>u()&&g.shouldTrapFocus);function w(b){g.shouldTrapFocus||b.preventDefault(),s()(b)}var v=X(),P=V(v);{var x=b=>{wr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),T=V(I);{var K=B=>{var D=X(),k=V(D);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,D)},z=B=>{var D=He();Ft(D,()=>({...R()}));var k=dt(D);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(D),W(B,D)};gt(T,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))},S=b=>{pr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),T=V(I);{var K=B=>{var D=X(),k=V(D);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,D)},z=B=>{var D=He();Ft(D,()=>({...R()}));var k=dt(D);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(D),W(B,D)};gt(T,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))};gt(P,b=>{i()?b(x):i()||b(S,1)})}W(e,v),nt()}var xr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),br=kt("<button><!></button>");function ui(e,t){const n=Ke();et(t,!0);let o=O(t,"id",19,()=>Ue(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),f=O(t,"closeDelay",3,300),u=vt(t,xr);const h=xe.create({id:E(()=>o()),ref:E(()=>r(),c=>r(c)),disabled:E(()=>!!s()),openOnHover:E(()=>a()),openDelay:E(()=>l()),closeDelay:E(()=>f())}),d=A(()=>bt(u,h.props,{type:i()}));io(e,{get id(){return o()},get ref(){return h.opts.ref},children:(c,g)=>{var m=X(),y=V(m);{var w=P=>{var x=X(),S=V(x);j(S,()=>t.child,()=>({props:p(d)})),W(P,x)},v=P=>{var x=br();Ft(x,()=>({...p(d)}));var S=dt(x);j(S,()=>t.children??$),ft(x),W(P,x)};gt(y,P=>{t.child?P(w):P(v,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function di(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,xt),r=O(t,"onOpenChangeComplete",3,xt);ye.create({open:E(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:E(()=>r())}),ro(e,{children:(i,s)=>{var a=X(),l=V(a);j(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}class Or{#t=N(Wt([]));get rows(){return p(this.#t)}set rows(t){C(this.#t,t,!0)}}const fi=new Or,Pr=/^\/session\/[A-Za-z0-9_-]+\/?$/;function ln(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&$n.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Ar(e){return ln(e)&&Pr.test(URL.parse(e).pathname)}function Cr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Sr(e,t=null){const n=[];for(const o of je(Cr(e))){if(!ln(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function Jt(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ne=2*6e4,Er=3,cn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(Jt),Fr=(e,t)=>new RegExp(`${cn(t)}(?![\\w-])`).test(e),Dt=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function un(e,t){if(e.status!=="landed")return!0;const n=Dt(e.mergedAt);return n!==null&&t!==null&&t<n}function dn(e,t){const n=Oe(t);return je(e).some(o=>n.includes(Jt(o)))}function fn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${cn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Fr(e,t.pr.url.replace(/\/+$/,""))}function Dr(e,t){return fn(e,t)||dn(e,t)}const Tr=e=>e.preview?.url??e.board?.url??null;function _r(e,t,n){const o=Jt(e);return n.some(r=>un(r,t)&&Oe(r).includes(o))}function Re(e,t,n){e.set(t,[...e.get(t)??[],n])}function hi(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=Tr(a),f=Dt(a.preview?.reportedAt??a.board?.reportedAt),u=a.status==="landed",h=u?Dt(a.mergedAt):null;let d=null,c=null,g=null;for(const y of e){if(y.kind!=="turn")continue;const w=Dt(y.at);if(f!==null&&(w===null||w<f-Ne))continue;const v=x=>un(a,w)&&dn(x,a),P=y.parts.find(x=>x.kind==="text"&&(fn(x.text,a)||v(x.text)));if(!(!P||P.kind!=="text")&&(d??=P.id,v(P.text)&&(c=P.id),u&&(h===null||w!==null&&w>=h-Ne))){g=P.id;break}}const m=g??c??d;m&&(Re(o,m,{task:a,url:l,board:!a.preview,landed:u}),i.set(m,[...i.get(m)??[],...Oe(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=Dt(a.at);for(const f of a.parts){if(f.kind!=="text")continue;const u=new Set;let h=0;for(const d of Sr(f.text,n)){const c=URL.parse(d).origin,g=Jt(d);if(i.get(f.id)?.includes(g)){s.delete(g);continue}u.has(c)||_r(d,l,r)||h>=Er||(u.add(c),h++,s.delete(g),s.set(g,{anchor:f.id,url:d}))}}}for(const{anchor:a,url:l}of s.values())Re(o,a,{task:null,url:l,board:Ar(l),landed:!1});return o}function ze(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Mr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${ze(e.id)}: ${e.title}]`:`[task ${ze(e.id)}: ${e.title}]`}function gi(e){return e.map(t=>typeof t=="string"?t:Mr(t)).join("").replace(/\u00a0/g," ").trim()}function Ir(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const kr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Br(e){const t=[];let n=0;for(const o of e.matchAll(kr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Wr=140,Lr={firstmate:"Firstmate",captain:"my message"};function hn(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Br(t).map(n=>typeof n=="string"?n:Ir(n,60)).join("").replace(/\s+/g," ").trim()}function pi(e,t=Wr){const n=hn(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function mi(e,t){const n=t.trim();return n&&`> Replying to ${Lr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
1
|
+
import{k as pn,A as mn,H as wn,ae as vn,bD as yn,i as A,g as p,aC as xn,u as rt,p as et,j as X,f as V,aa as $,a as W,b as nt,m as N,q as Wt,v as C,s as Et,c as kt,aD as St,aF as Ke,h as dt,r as ft,l as bn,n as On,w as Pn,t as An,d as Cn,y as $t,x as Sn}from"./D46tdsTs.js";import"./DsnmJJEf.js";import{s as Pt,r as vt,p as O}from"./z5Xef_-v.js";import{I as En}from"./B4gzexCn.js";import{s as j}from"./DTJjRJA0.js";import{i as gt}from"./DWAM9c1z.js";import{l as Ft}from"./BLivoCTk.js";import{i as Fn,C as Yt,s as it,j as Dn,b as E,k as Tt,u as Xe,l as Tn,n as _n,o as Mn,w as _t,p as In,m as bt,F as kn,S as Ae,E as Bn,q as Wn,T as Ln,r as Hn,t as ht,v as Ce,x as Nn,y as Ht,z as Rn,A as zn,B as Ye,G as Vn,H as Kn,I as Xn,J as Yn,c as Ue,K as xt,P as Un,f as jn,e as qn,g as Zn,a as Gn,h as Jn}from"./BnAtF53u.js";import{o as Qn}from"./D8OKqJm7.js";import{b as $n}from"./D3z87-GH.js";import{e as je}from"./D1QZsS_n.js";import{c as yt}from"./DT69KRC9.js";import{X as to}from"./CSU-6kdN.js";function ai(e,t,n){pn(()=>{var o=mn(()=>t(e,n?.())||{});if(n&&o?.update){var r=!1,i={};wn(()=>{var s=n();vn(s),r&&yn(i,s)&&(i=s,o.update(s))}),r=!0}if(o?.destroy)return()=>o.destroy()})}var eo=new Set(["$$slots","$$events","$$legacy"]);function li(e,t){let n=vt(t,eo);const o={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]]};En(e,Pt(()=>n,{get icon(){return o}}))}function no(e){return typeof e=="function"}function Se(e){return no(e)?e():e}class oo{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=A(()=>(p(this.#n)?.(),this.getSize().width));#a=A(()=>(p(this.#n)?.(),this.getSize().height));#n=A(()=>{const t=Se(this.#r);if(t)return xn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,f)=>Math.max(l,f.inlineSize),0),this.#t.height=a.reduce((l,f)=>Math.max(l,f.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??Fn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Se(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),f=n-i-a,u=o-s-l;return{width:f,height:u}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return p(this.#n)?.(),this.getSize()}get width(){return p(this.#s)}get height(){return p(this.#a)}}const ce=new Yt("Floating.Root"),ue=new Yt("Floating.Root");class Nt{static create(t=!1){return t?ue.set(new Nt):ce.set(new Nt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Rt{static create(t,n=!1){return n?new Rt(t,ue.get()):new Rt(t,ce.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Dn(t.virtualEl.current):n.triggerNode=t.ref}}function ro(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Nt.create(n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}function ct(e){return typeof e=="function"?e():e}function qe(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ee(e,t){const n=qe(e);return Math.round(t*n)/n}function Fe(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function io(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Rt.create({id:E(()=>t.id),virtualEl:E(()=>t.virtualEl),ref:t.ref},n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}const so=["top","right","bottom","left"],st=Math.min,J=Math.max,zt=Math.round,Bt=Math.floor,Q=e=>({x:e,y:e}),ao={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,n){return J(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function de(e){return e==="x"?"y":"x"}function fe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function he(e){return de(q(e))}function lo(e,t,n){n===void 0&&(n=!1);const o=At(e),r=he(e),i=fe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vt(s)),[s,Vt(s)]}function co(e){const t=Vt(e);return[ie(e),t,ie(t)]}function ie(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const De=["left","right"],Te=["right","left"],uo=["top","bottom"],fo=["bottom","top"];function ho(e,t,n){switch(e){case"top":case"bottom":return n?t?Te:De:t?De:Te;case"left":case"right":return t?uo:fo;default:return[]}}function go(e,t,n,o){const r=At(e);let i=ho(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ie)))),i}function Vt(e){const t=at(e);return ao[t]+e.slice(t.length)}function po(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Ge(e){return typeof e!="number"?po(e):{top:e,right:e,bottom:e,left:e}}function Kt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function _e(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=he(t),a=fe(s),l=at(t),f=i==="y",u=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:u,y:o.y-r.height};break;case"bottom":c={x:u,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:h};break;case"left":c={x:o.x-r.width,y:h};break;default:c={x:o.x,y:o.y}}const g=At(t);return g&&(c[s]+=d*(g==="end"?1:-1)*(n&&f?-1:1)),c}async function mo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=tt(t,e),g=Ge(c),y=a[d?h==="floating"?"reference":"floating":h],w=Kt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:l})),v=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},S=Kt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:P,strategy:l}):v);return{top:(w.top-S.top+g.top)/x.y,bottom:(S.bottom-w.bottom+g.bottom)/x.y,left:(w.left-S.left+g.left)/x.x,right:(S.right-w.right+g.right)/x.x}}const wo=50,vo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:mo},l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:h}=_e(f,o,l),d=o,c=0;const g={};for(let m=0;m<i.length;m++){const y=i[m];if(!y)continue;const{name:w,fn:v}=y,{x:P,y:x,data:S,reset:b}=await v({x:u,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=P??u,h=x??h,g[w]={...g[w],...S},b&&c<wo&&(c++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:h}=_e(f,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:r,middlewareData:g}},yo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:f,padding:u=0}=tt(e,t)||{};if(f==null)return{};const h=Ge(u),d={x:n,y:o},c=he(r),g=fe(c),m=await s.getDimensions(f),y=c==="y",w=y?"top":"left",v=y?"bottom":"right",P=y?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[c]-d[c]-i.floating[g],S=d[c]-i.reference[c],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let F=b?b[P]:0;(!F||!await(s.isElement==null?void 0:s.isElement(b)))&&(F=a.floating[P]||i.floating[g]);const _=x/2-S/2,L=F/2-m[g]/2-1,M=st(h[w],L),R=st(h[v],L),H=F-m[g]-R,I=F/2-m[g]/2+_,T=Ze(M,I,H),K=!l.arrow&&At(r)!=null&&I!==T&&i.reference[g]/2-(I<M?M:R)-m[g]/2<0,z=K?I<M?I-M:I-H:0;return{[c]:d[c]+z,data:{[c]:T,centerOffset:I-T-z,...K&&{alignmentOffset:z}},reset:K}}}),xo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=at(r),v=q(a),P=at(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=d||(P||!m?[Vt(a)]:co(a)),b=g!=="none";!d&&b&&S.push(...go(a,m,g,x));const F=[a,...S],_=await l.detectOverflow(t,y),L=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&L.push(_[w]),h){const T=lo(r,s,x);L.push(_[T[0]],_[T[1]])}if(M=[...M,{placement:r,overflows:L}],!L.every(T=>T<=0)){var R,H;const T=(((R=i.flip)==null?void 0:R.index)||0)+1,K=F[T];if(K&&(!(h==="alignment"?v!==q(K):!1)||M.every(D=>q(D.placement)===v?D.overflows[0]>0:!0)))return{data:{index:T,overflows:M},reset:{placement:K}};let z=(H=M.filter(B=>B.overflows[0]<=0).sort((B,D)=>B.overflows[1]-D.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var I;const B=(I=M.filter(D=>{if(b){const k=q(D.placement);return k===v||k==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((D,k)=>D[1]-k[1])[0])==null?void 0:I[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Me(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return so.some(t=>e[t]>=0)}const bo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=Me(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ie(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=Me(s,n.floating);return{data:{escapedOffsets:a,escaped:Ie(a)}}}default:return{}}}}},Je=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=At(n),l=q(n)==="y",f=Je.has(s)?-1:1,u=i&&l?-1:1,h=tt(t,e);let{mainAxis:d,crossAxis:c,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(c=a==="end"?g*-1:g),l?{x:c*u,y:d*f}:{x:d*f,y:c*u}}const Po=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await Oo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ao=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:P,y:x}=v;return{x:P,y:x}}},...f}=tt(e,t),u={x:n,y:o},h=await i.detectOverflow(t,f),d=q(r),c=de(d);let g=u[c],m=u[d];const y=(v,P)=>Ze(P+h[v==="y"?"top":"left"],P,P-h[v==="y"?"bottom":"right"]);s&&(g=y(c,g)),a&&(m=y(d,m));const w=l.fn({...t,[c]:g,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[c]:s,[d]:a}}}}}},Co=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:f=0,mainAxis:u=!0,crossAxis:h=!0}=tt(e,t),d={x:r,y:i},c=q(s),g=de(c);let m=d[g],y=d[c];const w=tt(f,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(u){const S=g==="y"?"height":"width",b=a.reference[g]-a.floating[S]+v.mainAxis,F=a.reference[g]+a.reference[S]-v.mainAxis;m<b?m=b:m>F&&(m=F)}if(h){var P,x;const S=g==="y"?"width":"height",b=Je.has(at(s)),F=a.reference[c]-a.floating[S]+(b&&((P=l.offset)==null?void 0:P[c])||0)+(b?0:v.crossAxis),_=a.reference[c]+a.reference[S]+(b?0:((x=l.offset)==null?void 0:x[c])||0)-(b?v.crossAxis:0);y<F?y=F:y>_&&(y=_)}return{[g]:m,[c]:y}}}},So=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),f=at(n),u=At(n),h=q(n)==="y",{width:d,height:c}=o.floating;let g,m;f==="top"||f==="bottom"?(g=f,m=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=f,g=u==="end"?"top":"bottom");const y=c-l.top-l.bottom,w=d-l.left-l.right,v=st(c-l[g],y),P=st(d-l[m],w),x=t.middlewareData.shift,S=!x;let b=v,F=P;x!=null&&x.enabled.x&&(F=w),x!=null&&x.enabled.y&&(b=y),S&&!u&&(h?F=d-2*J(l.left,l.right):b=c-2*J(l.top,l.bottom)),await s({...t,availableWidth:F,availableHeight:b});const _=await r.getDimensions(i.floating);return d!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<"u"}function Ct(e){return Qe(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Qe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qe(e){return Ut()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Ut()?e instanceof Element||e instanceof U(e).Element:!1}function lt(e){return Ut()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function ke(e){return!Ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Eo(e){return/^(table|td|th)$/.test(Ct(e))}function qt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Fo=/transform|translate|scale|rotate|perspective|filter/,Do=/paint|layout|strict|content/,ut=e=>!!e&&e!=="none";let te;function ge(e){const t=Z(e)?G(e):e;return ut(t.transform)||ut(t.translate)||ut(t.scale)||ut(t.rotate)||ut(t.perspective)||!pe()&&(ut(t.backdropFilter)||ut(t.filter))||Fo.test(t.willChange||"")||Do.test(t.contain||"")}function To(e){let t=pt(e);for(;lt(t)&&!Mt(t);){if(ge(t))return t;if(qt(t))return null;t=pt(t)}return null}function pe(){return te==null&&(te=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),te}function Mt(e){return/^(html|body|#document)$/.test(Ct(e))}function G(e){return U(e).getComputedStyle(e)}function Zt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ke(e)&&e.host||ot(e);return ke(t)?t.host:t}function $e(e){const t=pt(e);return Mt(t)?(e.ownerDocument||e).body:lt(t)&&jt(t)?t:$e(t)}function It(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$e(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=se(s);return t.concat(s,s.visualViewport||[],jt(r)?r:[],a&&n?It(a):[])}else return t.concat(r,It(r,[],n))}function se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=lt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=zt(n)!==i||zt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function me(e){return Z(e)?e:e.contextElement}function Ot(e){const t=me(e);if(!lt(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=tn(t);let s=(i?zt(n.width):n.width)/o,a=(i?zt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _o=Q(0);function en(e){const t=U(e);return!pe()||!t.visualViewport?_o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function mt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=me(e);let s=Q(1);t&&(o?Z(o)&&(s=Ot(o)):s=Ot(e));const a=Mo(i,n,o)?en(i):Q(0);let l=(r.left+a.x)/s.x,f=(r.top+a.y)/s.y,u=r.width/s.x,h=r.height/s.y;if(i&&o){const d=U(i),c=Z(o)?U(o):o;let g=d,m=se(g);for(;m&&c!==g;){const y=Ot(m),w=m.getBoundingClientRect(),v=G(m),P=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,x=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,f*=y.y,u*=y.x,h*=y.y,l+=P,f+=x,g=U(m),m=se(g)}}return Kt({width:u,height:h,x:l,y:f})}function Gt(e,t){const n=Zt(e).scrollLeft;return t?t.left+n:mt(ot(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Gt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Io(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?qt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},f=Q(1);const u=Q(0),h=lt(o);if((h||!i)&&((Ct(o)!=="body"||jt(s))&&(l=Zt(o)),h)){const c=mt(o);f=Ot(o),u.x=c.x+o.clientLeft,u.y=c.y+o.clientTop}const d=s&&!h&&!i?nn(s,l):Q(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:n.y*f.y-l.scrollTop*f.y+u.y+d.y}}function ko(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Bo(e){const t=Zt(e),n=e.ownerDocument.body,o=J(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=J(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Gt(e);const s=-t.scrollTop;return G(n).direction==="rtl"&&(i+=J(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Wo=25;function Lo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,f=0,u=0;if(s){const d=!pe()||t==="fixed";o?d||(f=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,d&&(f=s.offsetLeft,u=s.offsetTop))}if(Gt(i)<=0){const d=i.ownerDocument,c=d.body,g=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(i.clientWidth-c.clientWidth-m),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?y/2:y;w<=Wo&&(a-=w)}return{width:a,height:l,x:f,y:u}}function Ho(e,t){const n=mt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ot(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,f=o*i.y;return{width:s,height:a,x:l,y:f}}function Be(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Lo(e,n,t);else if(t==="document")o=Bo(ot(e));else if(Z(t))o=Ho(t,n);else{const r=en(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function No(e,t){const n=t.get(e);if(n)return n;let o=It(e,[],!1).filter(a=>Z(a)&&Ct(a)!=="body"),r=null;const i=G(e).position==="fixed";let s=i?pt(e):e;for(;Z(s)&&!Mt(s);){const a=G(s),l=ge(s),f=r?r.position:i?"fixed":"";!l&&(f==="fixed"||f==="absolute"&&a.position==="static")?o=o.filter(h=>h!==s):r=a,s=pt(s)}return t.set(e,o),o}function Ro(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?qt(t)?[]:No(t,this._c):[].concat(n),o],a=Be(t,s[0],r);let l=a.top,f=a.right,u=a.bottom,h=a.left;for(let d=1;d<s.length;d++){const c=Be(t,s[d],r);l=J(c.top,l),f=st(c.right,f),u=st(c.bottom,u),h=J(c.left,h)}return{width:f-h,height:u-l,x:h,y:l}}function zo(e){const{width:t,height:n}=tn(e);return{width:t,height:n}}function Vo(e,t,n){const o=lt(t),r=ot(t),i=n==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Ct(t)!=="body"||jt(r))&&(a=Zt(t)),o)){const d=mt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}!o&&r&&(l.x=Gt(r));const f=r&&!o&&!i?nn(r,a):Q(0),u=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function ee(e){return G(e).position==="static"}function We(e,t){if(!lt(e)||G(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){const n=U(e);if(qt(e))return n;if(!lt(e)){let r=pt(e);for(;r&&!Mt(r);){if(Z(r)&&!ee(r))return r;r=pt(r)}return n}let o=We(e,t);for(;o&&Eo(o)&&ee(o);)o=We(o,t);return o&&Mt(o)&&ee(o)&&!ge(o)?n:o||To(e)||n}const Ko=async function(e){const t=this.getOffsetParent||on,n=this.getDimensions,o=await n(e.floating);return{reference:Vo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xo(e){return G(e).direction==="rtl"}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:ot,getClippingRect:Ro,getOffsetParent:on,getElementRects:Ko,getClientRects:ko,getDimensions:zo,getScale:Ot,isElement:Z,isRTL:Xo};function rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t,n){let o=null,r;const i=ot(e);function s(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:c,top:g,width:m,height:y}=d;if(u||t(),!m||!y)return;const w=Bt(g),v=Bt(i.clientWidth-(c+m)),P=Bt(i.clientHeight-(g+y)),x=Bt(c),b={rootMargin:-w+"px "+-v+"px "+-P+"px "+-x+"px",threshold:J(0,st(1,h))||1};let F=!0;function _(L){const M=L[0].intersectionRatio;if(!rn(d,e.getBoundingClientRect()))return a();if(M!==h){if(!F)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1}try{o=new IntersectionObserver(_,{...b,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,b)}o.observe(e)}const l=U(e),f=()=>a(n);return l.addEventListener("resize",f),a(!0),()=>{l.removeEventListener("resize",f),s()}}function jo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=me(e),u=r||i?[...f?It(f):[],...t?It(t):[]]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const h=f&&a?Uo(f,n,i):null;let d=-1,c=null;s&&(c=new ResizeObserver(w=>{let[v]=w;v&&v.target===f&&c&&t&&(c.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=c)==null||P.observe(t)})),n()}),f&&!l&&c.observe(f),t&&c.observe(t));let g,m=l?mt(e):null;l&&y();function y(){const w=mt(e);m&&!rn(m,w)&&n(),m=w,g=requestAnimationFrame(y)}return n(),()=>{var w;u.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h?.(),(w=c)==null||w.disconnect(),c=null,l&&cancelAnimationFrame(g)}}const qo=Po,Zo=Ao,Go=xo,Jo=So,Qo=bo,$o=yo,tr=Co,er=(e,t,n)=>{const o=new Map,r=n??{},i={...Yo,...r.platform,_c:o};return vo(e,t,{...r,platform:i})};function nr(e){const t=e.whileElementsMounted,n=A(()=>ct(e.open)??!0),o=A(()=>ct(e.middleware)),r=A(()=>ct(e.transform)??!0),i=A(()=>ct(e.placement)??"bottom"),s=A(()=>ct(e.strategy)??"absolute"),a=A(()=>ct(e.sideOffset)??0),l=A(()=>ct(e.alignOffset)??0),f=e.reference;let u=N(0),h=N(0);const d=it(null);let c=N(Wt(p(s))),g=N(Wt(p(i))),m=N(Wt({})),y=N(!1),w=!1,v=0,P=!1;const x=A(()=>{const R=d.current?Ee(d.current,p(u)):p(u),H=d.current?Ee(d.current,p(h)):p(h);return p(r)?{position:p(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...d.current&&qe(d.current)>=1.5&&{willChange:"transform"}}:{position:p(c),left:`${R}px`,top:`${H}px`}});let S;function b(){if(P||f.current===null||d.current===null)return;const R=f.current,H=d.current,I=++v;er(R,H,{middleware:p(o),placement:p(i),strategy:p(s)}).then(T=>{if(I!==v||f.current!==R||d.current!==H)return;if(or(R)){C(m,{...p(m),hide:{...p(m).hide,referenceHidden:!0}},!0);return}if(!p(n)&&p(u)!==0&&p(h)!==0){const z=Math.max(Math.abs(p(a)),Math.abs(p(l)),15);if(T.x<=z&&T.y<=z)return}C(u,T.x,!0),C(h,T.y,!0),C(c,T.strategy,!0),C(g,T.placement,!0),C(m,T.middlewareData,!0),C(y,!0)})}function F(){typeof S=="function"&&(S(),S=void 0),v++}function _(){if(F(),t===void 0){b();return}p(n)&&(f.current===null||d.current===null||(S=t(f.current,d.current,b)))}function L(){!p(n)&&d.current===null&&C(y,!1)}function M(){return[p(o),p(i),p(s),p(a),p(l),p(n)]}return rt(()=>{t===void 0&&p(n)&&b()}),rt(_),rt(()=>{if(t!==void 0){if(M(),!p(n)){w=!1;return}if(!p(y)){w=!1;return}if(!w){w=!0;return}b()}}),rt(L),rt(()=>()=>{P=!0,F()}),{floating:d,reference:f,get strategy(){return p(c)},get placement(){return p(g)},get middlewareData(){return p(m)},get isPositioned(){return p(y)},get floatingStyles(){return p(x)},get update(){return b}}}function or(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rr={top:"bottom",right:"left",bottom:"top",left:"right"},ae=new Yt("Floating.Content");class Xt{static create(t,n=!1){return n?ae.set(new Xt(t,ue.get())):ae.set(new Xt(t,ce.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Tt(this.contentRef);wrapperAttachment=Tt(this.wrapperRef);arrowAttachment=Tt(this.arrowRef);arrowId=it(Xe());#t=A(()=>{if(typeof this.opts.style=="string")return Tn(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new oo(()=>this.arrowRef.current??void 0);#r=A(()=>this.#i?.width??0);#e=A(()=>this.#i?.height??0);#s=A(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=A(()=>p(this.#a).length>0);get hasExplicitBoundaries(){return p(this.#n)}set hasExplicitBoundaries(t){C(this.#n,t)}#l=A(()=>({padding:this.opts.collisionPadding.current,boundary:p(this.#a).filter(_n),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return p(this.#l)}set detectOverflowOptions(t){C(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=A(()=>[qo({mainAxis:this.opts.sideOffset.current+p(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Zo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Go({...this.detectOverflowOptions}),Jo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;C(this.#c,n,!0),C(this.#d,o,!0),C(this.#f,r,!0),C(this.#g,i,!0)}}),this.arrowRef.current&&$o({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ir({arrowWidth:p(this.#r),arrowHeight:p(this.#e)}),this.opts.hideWhenDetached.current&&Qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return p(this.#p)}set middleware(t){C(this.#p,t)}floating;#u=A(()=>sr(this.floating.placement));get placedSide(){return p(this.#u)}set placedSide(t){C(this.#u,t)}#h=A(()=>ar(this.floating.placement));get placedAlign(){return p(this.#h)}set placedAlign(t){C(this.#h,t)}#m=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return p(this.#m)}set arrowX(t){C(this.#m,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return p(this.#w)}set arrowY(t){C(this.#w,t)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return p(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=N();get contentZIndex(){return p(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#x=A(()=>rr[this.placedSide]);get arrowBaseSide(){return p(this.#x)}set arrowBaseSide(t){C(this.#x,t)}#b=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${p(this.#c)}px`,"--bits-floating-available-height":`${p(this.#d)}px`,"--bits-floating-anchor-width":`${p(this.#f)}px`,"--bits-floating-anchor-height":`${p(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...p(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return p(this.#b)}set wrapperProps(t){C(this.#b,t)}#O=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Mn({...p(this.#t)}),...this.contentAttachment}));get props(){return p(this.#O)}set props(t){C(this.#O,t)}#P=A(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return p(this.#P)}set arrowStyle(t){C(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),_t(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=nr({strategy:()=>this.opts.strategy.current,placement:()=>p(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>jo(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),_t(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=In(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class sn{static create(t){return new sn(t,ae.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=A(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return p(this.#t)}set props(t){C(this.#t,t)}}function ir(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[f,u]=we(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let g="",m="";return f==="bottom"?(g=s?h:`${d}px`,m=`${-l}px`):f==="top"?(g=s?h:`${d}px`,m=`${o.floating.height+l}px`):f==="right"?(g=`${-l}px`,m=s?h:`${c}px`):f==="left"&&(g=`${o.floating.width+l}px`,m=s?h:`${c}px`),{data:{x:g,y:m}}}}}function we(e){const[t,n="center"]=e.split("-");return[t,n]}function sr(e){return we(e)[0]}function ar(e){return we(e)[1]}function lr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),f=O(t,"collisionPadding",3,0),u=O(t,"hideWhenDetached",3,!1),h=O(t,"onPlaced",3,()=>{}),d=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),g=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),y=O(t,"style",19,()=>({})),w=O(t,"wrapperId",19,Xe),v=O(t,"customAnchor",3,null),P=O(t,"tooltip",3,!1);const x=Xt.create({side:E(()=>n()),sideOffset:E(()=>o()),align:E(()=>r()),alignOffset:E(()=>i()),id:E(()=>t.id),arrowPadding:E(()=>s()),avoidCollisions:E(()=>a()),collisionBoundary:E(()=>l()),collisionPadding:E(()=>f()),hideWhenDetached:E(()=>u()),onPlaced:E(()=>h()),sticky:E(()=>d()),updatePositionStrategy:E(()=>c()),strategy:E(()=>g()),dir:E(()=>m()),style:E(()=>y()),enabled:E(()=>t.enabled),wrapperId:E(()=>w()),customAnchor:E(()=>v())},P()),S=A(()=>bt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var b=X(),F=V(b);j(F,()=>t.content??$,()=>({props:x.props,wrapperProps:p(S)})),W(e,b),nt()}function cr(e,t){et(t,!0),Qn(()=>{t.onPlaced?.()});var n=X(),o=V(n);j(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var ur=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function dr(e,t){let n=O(t,"isStatic",3,!1),o=vt(t,ur);var r=X(),i=V(r);{var s=l=>{cr(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{lr(l,Pt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};gt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),hr=kt("<!> <!>",1);function an(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),f=vt(t,fr);const u=A(()=>t.preventScroll??!0),h=A(()=>t.strategy??(p(u)?"fixed":"absolute"));dr(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return p(h)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,g)=>{let m=()=>(g?.()).props,y=()=>(g?.()).wrapperProps;var w=hr(),v=V(w);{var P=b=>{Ae(b,{get preventScroll(){return p(u)}})},x=b=>{Ae(b,{get preventScroll(){return p(u)}})};gt(v,b=>{t.forceMount&&t.enabled?b(P):t.forceMount||b(x,1)})}var S=Et(v,2);kn(S,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(F,_)=>{let L=()=>(_?.()).props;Bn(F,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,R)=>{Wn(M,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,T)=>{let K=()=>(T?.()).props;Ln(I,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var D=X(),k=V(D);{let Y=A(()=>({props:bt(f,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:y()}));j(k,()=>t.popper??$,()=>p(Y))}W(z,D)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,w)},$$slots:{content:!0}}),nt()}var gr=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function pr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,gr);var l=X(),f=V(l);{var u=h=>{an(h,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};gt(f,h=>{t.shouldRender&&h(u)})}W(e,l)}var mr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function wr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,mr);an(e,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function ne(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,f]=t[s]??[0,0],[u,h]=t[a]??[0,0];f>=o!=h>=o&&n<=(u-l)*(o-f)/(h-f)+l&&(r=!r)}return r}function oe(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Le(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class vr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,_t([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Hn(o),a=d=>{this.#p([d.clientX,d.clientY],o,r)},l=d=>{const c=d.relatedTarget;if(ht(c)&&r.contains(c))return;const g=this.#t.ignoredTargets?.()??[];ht(c)&&g.some(m=>m===c||m.contains(c))||(this.#s=ht(c)&&g.length>0?g.filter(m=>c.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#e="content",this.#d())},f=()=>{this.#u()},u=()=>{this.#u()},h=d=>{const c=d.relatedTarget;ht(c)&&o.contains(c)||(this.#r=[d.clientX,d.clientY],this.#e="trigger",this.#d())};return[St(s,"pointermove",a),St(o,"pointerleave",l),St(o,"pointerenter",f),St(r,"pointerenter",u),St(r,"pointerleave",h)].reduce((d,c)=>()=>{d(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&oe(t,i)){this.#u();return}if(this.#e==="trigger"&&oe(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const u of this.#s){const h=u.getBoundingClientRect();if(oe(t,h))return;const d=Le(r,h),c=this.#h(r,h,d);if(c&&ne(t,c))return}const s=Le(r,i),a=this.#h(r,i,s);if(a&&ne(t,a))return;const l=this.#e==="content"?i:r,f=this.#m(this.#r,l,s,this.#e);ne(t,f)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const le=Yn({component:"popover",parts:["root","trigger","content","close","overlay"]}),ve=new Yt("Popover.Root");class ye{static create(t){return ve.set(new ye(t))}opts;#t=N(null);get contentNode(){return p(this.#t)}set contentNode(t){C(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return p(this.#o)}set triggerNode(t){C(this.#o,t,!0)}#i=N(null);get overlayNode(){return p(this.#i)}set overlayNode(t){C(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return p(this.#r)}set openedViaHover(t){C(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return p(this.#e)}set hasInteractedWithContent(t){C(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return p(this.#s)}set hoverCooldown(t){C(this.#s,t,!0)}#a=N(0);get closeDelay(){return p(this.#a)}set closeDelay(t){C(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Ce({ref:E(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ce({ref:E(()=>this.overlayNode),open:this.opts.open}),_t(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class xe{static create(t){return new xe(t,ve.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Tt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new Nn(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),_t(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ht(t)||(C(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Ht(t)||(C(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),p(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}p(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Rn||t.key===zn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=A(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Vn(this.root.opts.open.current),"data-state":Ye(this.root.opts.open.current),"aria-controls":this.#a(),[le.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#n)}set props(t){C(this.#n,t)}}class be{static create(t){return new be(t,ve.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Tt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new vr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ht(n)&&Kn(n)&&this.root.markInteraction()}onpointerenter(t){Ht(t)||this.root.cancelDelayedClose()}onpointerleave(t){Ht(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ht(t.target))return;const n=t.target.closest(le.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ht(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return p(this.#t)}set snippetProps(t){C(this.#t,t)}#o=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ye(this.root.opts.open.current),...Xn(this.root.contentPresence.transitionStatus),[le.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#o)}set props(t){C(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var yr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),He=kt("<div><div><!></div></div>");function ci(e,t){const n=Ke();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ue(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,xt),a=O(t,"onCloseAutoFocus",3,xt),l=O(t,"onEscapeKeydown",3,xt),f=O(t,"onInteractOutside",3,xt),u=O(t,"trapFocus",3,!0),h=O(t,"preventScroll",3,!1),d=O(t,"customAnchor",3,null),c=vt(t,yr);const g=be.create({id:E(()=>r()),ref:E(()=>o(),b=>o(b)),onInteractOutside:E(()=>f()),onEscapeKeydown:E(()=>l()),customAnchor:E(()=>d())}),m=A(()=>bt(c,g.props)),y=A(()=>u()&&g.shouldTrapFocus);function w(b){g.shouldTrapFocus||b.preventDefault(),s()(b)}var v=X(),P=V(v);{var x=b=>{wr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),T=V(I);{var K=B=>{var D=X(),k=V(D);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,D)},z=B=>{var D=He();Ft(D,()=>({...R()}));var k=dt(D);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(D),W(B,D)};gt(T,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))},S=b=>{pr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),T=V(I);{var K=B=>{var D=X(),k=V(D);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,D)},z=B=>{var D=He();Ft(D,()=>({...R()}));var k=dt(D);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(D),W(B,D)};gt(T,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))};gt(P,b=>{i()?b(x):i()||b(S,1)})}W(e,v),nt()}var xr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),br=kt("<button><!></button>");function ui(e,t){const n=Ke();et(t,!0);let o=O(t,"id",19,()=>Ue(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),f=O(t,"closeDelay",3,300),u=vt(t,xr);const h=xe.create({id:E(()=>o()),ref:E(()=>r(),c=>r(c)),disabled:E(()=>!!s()),openOnHover:E(()=>a()),openDelay:E(()=>l()),closeDelay:E(()=>f())}),d=A(()=>bt(u,h.props,{type:i()}));io(e,{get id(){return o()},get ref(){return h.opts.ref},children:(c,g)=>{var m=X(),y=V(m);{var w=P=>{var x=X(),S=V(x);j(S,()=>t.child,()=>({props:p(d)})),W(P,x)},v=P=>{var x=br();Ft(x,()=>({...p(d)}));var S=dt(x);j(S,()=>t.children??$),ft(x),W(P,x)};gt(y,P=>{t.child?P(w):P(v,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function di(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,xt),r=O(t,"onOpenChangeComplete",3,xt);ye.create({open:E(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:E(()=>r())}),ro(e,{children:(i,s)=>{var a=X(),l=V(a);j(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}class Or{#t=N(Wt([]));get rows(){return p(this.#t)}set rows(t){C(this.#t,t,!0)}}const fi=new Or,Pr=/^\/session\/[A-Za-z0-9_-]+\/?$/;function ln(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&$n.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Ar(e){return ln(e)&&Pr.test(URL.parse(e).pathname)}function Cr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Sr(e,t=null){const n=[];for(const o of je(Cr(e))){if(!ln(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function Jt(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ne=2*6e4,Er=3,cn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(Jt),Fr=(e,t)=>new RegExp(`${cn(t)}(?![\\w-])`).test(e),Dt=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function un(e,t){if(e.status!=="landed")return!0;const n=Dt(e.mergedAt);return n!==null&&t!==null&&t<n}function dn(e,t){const n=Oe(t);return je(e).some(o=>n.includes(Jt(o)))}function fn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${cn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Fr(e,t.pr.url.replace(/\/+$/,""))}function Dr(e,t){return fn(e,t)||dn(e,t)}const Tr=e=>e.preview?.url??e.board?.url??null;function _r(e,t,n){const o=Jt(e);return n.some(r=>un(r,t)&&Oe(r).includes(o))}function Re(e,t,n){e.set(t,[...e.get(t)??[],n])}function hi(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=Tr(a),f=Dt(a.preview?.reportedAt??a.board?.reportedAt),u=a.status==="landed",h=u?Dt(a.mergedAt):null;let d=null,c=null,g=null;for(const y of e){if(y.kind!=="turn")continue;const w=Dt(y.at);if(f!==null&&(w===null||w<f-Ne))continue;const v=x=>un(a,w)&&dn(x,a),P=y.parts.find(x=>x.kind==="text"&&(fn(x.text,a)||v(x.text)));if(!(!P||P.kind!=="text")&&(d??=P.id,v(P.text)&&(c=P.id),u&&(h===null||w!==null&&w>=h-Ne))){g=P.id;break}}const m=g??c??d;m&&(Re(o,m,{task:a,url:l,board:!a.preview,landed:u}),i.set(m,[...i.get(m)??[],...Oe(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=Dt(a.at);for(const f of a.parts){if(f.kind!=="text")continue;const u=new Set;let h=0;for(const d of Sr(f.text,n)){const c=URL.parse(d).origin,g=Jt(d);if(i.get(f.id)?.includes(g)){s.delete(g);continue}u.has(c)||_r(d,l,r)||h>=Er||(u.add(c),h++,s.delete(g),s.set(g,{anchor:f.id,url:d}))}}}for(const{anchor:a,url:l}of s.values())Re(o,a,{task:null,url:l,board:Ar(l),landed:!1});return o}function ze(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Mr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${ze(e.id)}: ${e.title}]`:`[task ${ze(e.id)}: ${e.title}]`}function gi(e){return e.map(t=>typeof t=="string"?t:Mr(t)).join("").replace(/\u00a0/g," ").trim()}function Ir(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const kr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Br(e){const t=[];let n=0;for(const o of e.matchAll(kr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Wr=140,Lr={firstmate:"Firstmate",captain:"my message"};function hn(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Br(t).map(n=>typeof n=="string"?n:Ir(n,60)).join("").replace(/\s+/g," ").trim()}function pi(e,t=Wr){const n=hn(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function mi(e,t){const n=t.trim();return n&&`> Replying to ${Lr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
2
2
|
|
|
3
3
|
${n}`}const Hr=/^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;function Nr(e){const t=e.replace(/\r\n?/g,`
|
|
4
4
|
`).match(Hr);return!t||!t[3].trim()?{to:null,body:e}:{to:{who:t[1]==="Firstmate"?"firstmate":"captain",snippet:t[2]},body:t[3]}}function wi(e,t){const n=hn(t);if(!n)return!1;const o=e.snippet.endsWith("…")?e.snippet.slice(0,-1):e.snippet;return e.snippet.endsWith("…")?n.startsWith(o):n===o}const wt="unsorted",Lt={topic:wt,source:null},Rr=/^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i,zr=/^\s{0,3}(`{3,}|~{3,})/;function Vr(e){const t=[];let n=null,o=[],r=null;const i=()=>{const s=o.join(`
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as ee}from"./
|
|
1
|
+
import{l as ee}from"./CeuOu7QI.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{h,s as f,r as b,n as te,t as k,d as z,a as l,c as u,p as se,j as L,f as W,g as o,o as D,b as re}from"./D46tdsTs.js";import{i as g}from"./DWAM9c1z.js";import{a as A,e as H,f as J,j as oe,k as ie,r as ne,s as le}from"./BLivoCTk.js";import{L as Y}from"./BXPZKlNj.js";import{C as B}from"./DSINNCaW.js";import{a as pe}from"./Cqz3pSYE.js";import{p as G}from"./z5Xef_-v.js";async function v(e,a,i){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(i??{})}),d=await p.json().catch(()=>null);return p.ok&&d?{ok:!0,value:d}:{ok:!1,error:d?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ee=()=>v("/api/plugins/updates",null),Ne=e=>v("/api/plugins/updates",e),Oe=(e=!1)=>v(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),Te=(e,a)=>v("/api/plugins/marketplace/registries",a,{add:e}),We=(e,a)=>v("/api/plugins/marketplace/registries",a,{remove:e}),Ae=(e,a)=>v("/api/plugins/inspect",a,e),Fe=(e,a,i)=>v("/api/plugins/install",i,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),Le=(e,a,i)=>v(`/api/plugins/${encodeURIComponent(e.id)}/update`,i,{ref:e.ref,commit:e.commit,settings:a});function De(e=6e4){return new Promise(a=>{const i=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(i),p(),a(!0)})})}const He=(e,a,i)=>v(`/api/plugins/${encodeURIComponent(e)}/config`,i,a),Je=(e,a)=>v(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
|
|
2
2
|
change is kept.</p>`),de=u('<div aria-live="polite"><ol class="grid gap-1.5"><li class="flex items-center gap-2"><!> </li> <li><!>Restart Wheelhouse to load it</li></ol> <!></div>');function Ye(e,a){var i=de(),p=h(i),d=h(p),w=h(d);{var I=s=>{Y(s,{class:"size-4 animate-spin text-sea"})},S=s=>{B(s,{class:"size-4 text-success"})};g(w,s=>{a.phase==="saving"?s(I):s(S,-1)})}var r=f(w,1,!0);b(d);var _=f(d,2),R=h(_);{var C=s=>{Y(s,{class:"size-4 animate-spin text-sea"})},E=s=>{B(s,{class:"size-4 text-success"})},N=s=>{var P=ce();l(s,P)};g(R,s=>{a.phase==="restarting"||a.phase==="slow"?s(C):a.phase==="done"?s(E,1):s(N,-1)})}te(),b(_),b(p);var O=f(p,2);{var q=s=>{var P=ue();l(s,P)};g(O,s=>{a.phase==="slow"&&s(q)})}b(i),k(()=>{z(r,a.label),A(_,1,`flex items-center gap-2 ${a.phase==="saving"?"text-muted-foreground":""}`)}),l(e,i)}const ve=e=>e===void 0?"":e===!0?"yes":e===!1?"no":Array.isArray(e)?e.join(", "):String(e),Be=e=>Object.fromEntries(e.map(a=>[a.key,ve(a.current??a.default)]));var me=u('<span class="text-danger" aria-hidden="true"> *</span>'),fe=u('<span class="text-muted-foreground"> (optional)</span>'),ge=u("<option>Not set</option>"),_e=u("<option> </option>"),he=u("<option>Yes</option> <option>No</option>",1),be=u("<select><!><!></select>"),xe=u('<input type="text" autocomplete="off" spellcheck="false"/>'),ye=u('<span class="text-xs text-muted-foreground"> </span>'),ke=u('<label class="grid gap-1"><span class="text-xs"> <!></span> <!> <!></label>');function Ge(e,a){se(a,!0);let i=G(a,"answers",15),p=G(a,"disabled",3,!1);const d="h-9 rounded-md border border-input bg-background px-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60";var w=L(),I=W(w);H(I,17,()=>a.settings,S=>S.key,(S,r)=>{var _=ke(),R=h(_),C=h(R,!0),E=f(C);{var N=n=>{var t=me();l(n,t)},O=n=>{var t=fe();l(n,t)};g(E,n=>{o(r).required?n(N):n(O,-1)})}b(R);var q=f(R,2);{var s=n=>{var t=be();A(t,1,J(d));var x=h(t);{var Q=c=>{var m=ge();m.value=m.__value="",l(c,m)};g(x,c=>{o(r).required||c(Q)})}var V=f(x);{var X=c=>{var m=L(),j=W(m);H(j,17,()=>o(r).options,y=>y.value,(y,F)=>{var U=_e(),$=D(U,!0),T={};k(()=>{z($,o(F).label),T!==(T=o(F).value)&&(U.value=(U.__value=T)??"")}),l(y,U)}),l(c,m)},Z=c=>{var m=he(),j=W(m);j.value=j.__value="yes";var y=f(j,2);y.value=y.__value="no",l(c,m)};g(V,c=>{o(r).options?c(X):c(Z,-1)})}b(t),oe(t),k(()=>{t.required=o(r).required,t.disabled=p()}),ie(t,()=>i()[o(r).key],c=>i(i()[o(r).key]=c,!0)),l(n,t)},P=n=>{var t=xe();ne(t),A(t,1,J(d)),k(()=>{le(t,"inputmode",o(r).type==="number"?"decimal":void 0),t.required=o(r).required,t.disabled=p()}),pe(t,()=>i()[o(r).key],x=>i(i()[o(r).key]=x,!0)),l(n,t)};g(q,n=>{o(r).type==="boolean"||o(r).options?n(s):n(P,-1)})}var K=f(q,2);{var M=n=>{var t=ye(),x=D(t);k(()=>z(x,`${o(r).description??""??""}${o(r).type==="list"?`${o(r).description?" ":""}Separate them with commas.`:""}`)),l(n,t)};g(K,n=>{(o(r).description||o(r).type==="list")&&n(M)})}b(_),k(()=>z(C,o(r).title)),l(S,_)}),l(e,w),re()}export{Ye as C,Ge as S,Be as a,De as b,He as c,Ae as d,Ne as e,Te as f,ve as g,Fe as i,Je as l,Oe as m,Ee as p,We as r,Le as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as h,g as c,v as d,q as g}from"./D46tdsTs.js";import{p}from"./
|
|
1
|
+
import{m as h,g as c,v as d,q as g}from"./D46tdsTs.js";import{p}from"./QrHSSdjC.js";const y=5e3,v=3e3;function w(m,e,a){let r="connecting",n=null,t=null,s=null;const l=i=>{r=i,a(i)},u=()=>{t&&clearTimeout(t),t=null,l("lost")},o=()=>{s=null;const i=new EventSource(m);n=i,i.addEventListener("open",()=>{t&&clearTimeout(t),t=null,l("open")}),i.addEventListener("error",()=>{if(i.readyState===EventSource.CLOSED){i.close(),u(),s??=setTimeout(o,v);return}r!=="lost"&&l("connecting"),t??=setTimeout(u,y)}),e(i)};return o(),()=>{t&&clearTimeout(t),s&&clearTimeout(s),n?.close(),n=null}}const L="wheelhouse-live",S="wheelhouse-live-leader",A=2*6e4;class T{#e=h(null);get fleet(){return c(this.#e)}set fleet(e){d(this.#e,e,!0)}#t=h(null);get health(){return c(this.#t)}set health(e){d(this.#t,e,!0)}#s=h(null);get messages(){return c(this.#s)}set messages(e){d(this.#s,e,!0)}#a=h("connecting");get connection(){return c(this.#a)}set connection(e){d(this.#a,e,!0)}#n=h(g(Date.now()));get now(){return c(this.#n)}set now(e){d(this.#n,e,!0)}#r=h(0);get revision(){return c(this.#r)}set revision(e){d(this.#r,e,!0)}#l=h(!1);get leader(){return c(this.#l)}set leader(e){d(this.#l,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),r=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),r(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(L);this.channel=e,e.onmessage=n=>{const t=n.data;t.t==="hello"?this.leader&&this.replay():t.t==="connection"?this.leader||(this.connection=t.state):this.leader||this.apply(t.e)};const a=new AbortController;let r=()=>{};return navigator.locks.request(S,{signal:a.signal},()=>{const n=this.lead();return new Promise(t=>{r=()=>{n(),t()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),r(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=n=>{this.connection=n,this.post({t:"connection",state:n})},r=w("/api/events",n=>{const t=(s,l)=>n.addEventListener(s,u=>{const o=l(JSON.parse(u.data));this.remember(o),this.apply(o),this.post({t:"event",e:o}),o.type==="fleet"&&e("open")});t("server",s=>({type:"server",data:s})),t("fleet",s=>({type:"fleet",data:s})),t("health",s=>({type:"health",data:s})),t("messages",s=>({type:"messages",data:s})),t("alert",s=>({type:"alert",data:s,fresh:this.claim(s)})),t("settled",s=>({type:"settled",data:s})),t("alerts",s=>({type:"alerts",data:s.map(l=>{const u=this.claim(l);return{alert:l,fresh:u&&Date.now()-Date.parse(l.at)<=A}})}))},e);return()=>{r(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"server":{const a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const r of this.restartListeners)r();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const f=new T;function k(){return f.fleet??p.data.fleet??null}function C(){return f.health??p.data.health??null}function M(){return f.messages??p.data.messages??null}export{M as a,C as b,k as c,f as l,w};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{aF as Ue,p as ve,j as G,f as l,a as r,b as ge,g as e,h as se,aa as Ve,r as oe,i as P,c as T,l as Ee,m as U,q as Je,s as u,n as W,w as j,v as a,t as ue,d as fe,x as Ke,y as Me,o as Be}from"./D46tdsTs.js";import{i as V}from"./DWAM9c1z.js";import{c as _}from"./DT69KRC9.js";import{l as Qe,r as Ce,a as ze,f as Le}from"./BLivoCTk.js";import{a as Te}from"./Cqz3pSYE.js";import{p as C,r as we,s as le}from"./z5Xef_-v.js";import{p as Xe}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{aF as Ue,p as ve,j as G,f as l,a as r,b as ge,g as e,h as se,aa as Ve,r as oe,i as P,c as T,l as Ee,m as U,q as Je,s as u,n as W,w as j,v as a,t as ue,d as fe,x as Ke,y as Me,o as Be}from"./D46tdsTs.js";import{i as V}from"./DWAM9c1z.js";import{c as _}from"./DT69KRC9.js";import{l as Qe,r as Ce,a as ze,f as Le}from"./BLivoCTk.js";import{a as Te}from"./Cqz3pSYE.js";import{p as C,r as we,s as le}from"./z5Xef_-v.js";import{p as Xe}from"./QrHSSdjC.js";import{c as Ye,D as et,b as be,m as tt,a as rt}from"./BnAtF53u.js";import{D as at,a as st,b as ot,c as lt,d as xe,P as nt,e as it,i as dt,f as ut,m as ft}from"./bOtONP_M.js";import{s as Fe}from"./DTJjRJA0.js";import{B as X}from"./oiLSZkWa.js";import{C as vt,d as gt,b as ct,i as pt}from"./CL60_qsS.js";import{P as mt}from"./CmMBsPrQ.js";import{L as _t}from"./BXPZKlNj.js";import{T as ht}from"./DDbzEejx.js";var $t=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),bt=T("<button><!></button>");function xt(H,s){const z=Ue();ve(s,!0);let F=C(s,"id",19,()=>Ye(z)),O=C(s,"ref",15,null),k=C(s,"disabled",3,!1),t=we(s,$t);const p=et.create({id:be(()=>F()),ref:be(()=>O(),m=>O(m)),disabled:be(()=>!!k())}),b=P(()=>tt(t,p.props));var n=G(),f=l(n);{var Z=m=>{var D=G(),E=l(D);Fe(E,()=>s.child,()=>({props:e(b)})),r(m,D)},ne=m=>{var D=bt();Qe(D,()=>({...e(b)}));var E=se(D);Fe(E,()=>s.children??Ve),oe(D),r(m,D)};V(f,m=>{s.child?m(Z):m(ne,-1)})}r(H,n),ge()}var wt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Oe(H,s){ve(s,!0);let z=C(s,"ref",15,null),F=C(s,"type",3,"button"),O=we(s,wt);var k=G(),t=l(k);_(t,()=>rt,(p,b)=>{b(p,le({"data-slot":"dialog-close",get type(){return F()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var yt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Pt(H,s){ve(s,!0);let z=C(s,"ref",15,null),F=C(s,"type",3,"button"),O=we(s,yt);var k=G(),t=l(k);_(t,()=>xt,(p,b)=>{b(p,le({"data-slot":"dialog-trigger",get type(){return F()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var kt=T("<!> ",1),ae=T("<!> <!>",1),Dt=T('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),It=T("<!>Fetching…",1),St=T('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),At=T('<p class="text-xs text-danger" role="alert"> </p>'),Re=T("<!> <!> <!>",1),Bt=T("<p> </p>");function Jt(H,s){ve(s,!0);let z=C(s,"busy",19,()=>[]),F=C(s,"suggested",3,null),O=C(s,"label",3,"Install plugin"),k=U(!1),t=U("form"),p=U(""),b=U(""),n=U(null),f=U(null),Z=U(Je({}));const ne=P(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e(p).trim())),m=P(()=>e(f)?ft(e(f),e(Z)):null),D=()=>Xe.data.sessionToken,E="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function ye(){a(t,"form"),a(n,null),a(f,null)}async function We(Y){if(Y.preventDefault(),!e(ne)||e(t)==="looking")return;a(t,"looking"),a(n,null);const L=await gt({repo:e(p).trim(),ref:e(b).trim()||null},D());if(!L.ok){a(n,L.error,!0),a(t,"form");return}a(f,L.value,!0),a(Z,dt(L.value),!0),a(t,"review")}async function je(){if(!e(f)||e(m))return;a(t,"saving"),a(n,null);const Y=ct(),L=await pt(e(f),ut(e(Z)),D());if(!L.ok){a(n,L.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var Pe=G(),Ge=l(Pe);_(Ge,()=>it,(Y,L)=>{L(Y,{onOpenChange:J=>{J&&(e(t)==="done"||e(t)==="slow")&&(a(p,""),a(b,""),ye()),J&&e(t)==="form"&&F()&&!e(p)&&a(p,F())},get open(){return e(k)},set open(J){a(k,J,!0)},children:(J,Ct)=>{var ke=ae(),De=l(ke);{const ce=(ee,te)=>{X(ee,le(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Se,pe)=>{var re=kt(),ie=l(re);mt(ie,{});var me=u(ie,1,!0);ue(()=>fe(me,O())),r(Se,re)},$$slots:{default:!0}}))};_(De,()=>Pt,(ee,te)=>{te(ee,{child:ce,$$slots:{child:!0}})})}var He=u(De,2);{let ce=P(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");_(He,()=>at,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(ce)},children:(Ie,Se)=>{var pe=ae(),re=l(pe);_(re,()=>st,(x,I)=>{I(x,{children:(h,S)=>{var w=ae(),A=l(w);_(A,()=>ot,(i,v)=>{v(i,{class:"font-display text-lg",children:(q,d)=>{W();var g=j("Install a plugin from GitHub");r(q,g)},$$slots:{default:!0}})});var o=u(A,2);_(o,()=>lt,(i,v)=>{v(i,{children:(q,d)=>{var g=G(),B=l(g);{var $=c=>{var R=j("Check what it is and where it comes from before you install it.");r(c,R)},y=c=>{var R=j(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
|
|
2
2
|
Nothing runs until you install it.`);r(c,R)};V(B,c=>{e(t)==="review"?c($):c(y,-1)})}r(q,g)},$$slots:{default:!0}})}),r(h,w)},$$slots:{default:!0}})});var ie=u(re,2);{var me=x=>{var I=St(),h=l(I),S=se(h),w=u(se(S),2);Ce(w),ze(w,1,Le(E)),W(2),oe(S);var A=u(S,2),o=u(se(A),2);Ce(o),ze(o,1,Le(E)),W(2),oe(A);var i=u(A,2);{var v=d=>{var g=Dt(),B=se(g);ht(B,{class:"mt-0.5 size-3.5 shrink-0"});var $=u(B,1,!0);oe(g),ue(()=>fe($,e(n))),r(d,g)};V(i,d=>{e(n)&&d(v)})}oe(h);var q=u(h,2);_(q,()=>xe,(d,g)=>{g(d,{children:(B,$)=>{var y=ae(),c=l(y);{const N=(K,M)=>{X(K,le(()=>(M?.()).props,{variant:"ghost",children:(he,Ae)=>{W();var $e=j("Cancel");r(he,$e)},$$slots:{default:!0}}))};_(c,()=>Oe,(K,M)=>{M(K,{child:N,$$slots:{child:!0}})})}var R=u(c,2);{let N=P(()=>!e(ne)||e(t)==="looking");X(R,{type:"submit",form:"install-plugin-form",get disabled(){return e(N)},children:(K,M)=>{var _e=G(),he=l(_e);{var Ae=Q=>{var de=It(),Ne=l(de);_t(Ne,{class:"animate-spin"}),W(),r(Q,de)},$e=Q=>{var de=j("Look it up");r(Q,de)};V(he,Q=>{e(t)==="looking"?Q(Ae):Q($e,-1)})}r(K,_e)},$$slots:{default:!0}})}r(B,y)},$$slots:{default:!0}})}),Ke("submit",h,We),Me("input",w,()=>a(n,null)),Te(w,()=>e(p),d=>a(p,d)),Te(o,()=>e(b),d=>a(b,d)),r(x,I)},Ze=x=>{var I=Re(),h=l(I);nt(h,{get preview(){return e(f)},get busy(){return z()},get answers(){return e(Z)},set answers(o){a(Z,o,!0)}});var S=u(h,2);{var w=o=>{var i=At(),v=Be(i,!0);ue(()=>fe(v,e(n))),r(o,i)};V(S,o=>{e(n)&&o(w)})}var A=u(S,2);_(A,()=>xe,(o,i)=>{i(o,{children:(v,q)=>{var d=ae(),g=l(d);X(g,{variant:"ghost",onclick:ye,children:($,y)=>{W();var c=j("Back");r($,c)},$$slots:{default:!0}});var B=u(g,2);{let $=P(()=>!!e(m)),y=P(()=>e(m)?`${e(m).title} is needed`:void 0);X(B,{onclick:je,get disabled(){return e($)},get title(){return e(y)},children:(c,R)=>{W();var N=j("Install and restart");r(c,N)},$$slots:{default:!0}})}r(v,d)},$$slots:{default:!0}})}),r(x,I)},qe=x=>{var I=Re(),h=l(I);{let o=P(()=>e(f).id),i=P(()=>e(f).commit.slice(0,7)),v=P(()=>e(t)==="saving"||e(t)==="restarting"||e(t)==="done"||e(t)==="slow"?e(t):"saving");vt(h,{get label(){return`Install ${e(o)??""} at ${e(i)??""}`},get phase(){return e(v)}})}var S=u(h,2);{var w=o=>{var i=Bt(),v=Be(i);ue(()=>fe(v,`${e(f).name??""}
|
|
3
3
|
${e(f).version??""} is installed and Wheelhouse restarted. Its row shows whether it loaded.`)),r(o,i)};V(S,o=>{e(t)==="done"&&o(w)})}var A=u(S,2);_(A,()=>xe,(o,i)=>{i(o,{children:(v,q)=>{var d=G(),g=l(d);{const B=($,y)=>{let c=()=>(y?.()).props;{let R=P(()=>e(t)==="saving"||e(t)==="restarting");X($,le(c,{get disabled(){return e(R)},children:(N,K)=>{W();var M=j("Done");r(N,M)},$$slots:{default:!0}}))}};_(g,()=>Oe,($,y)=>{y($,{child:B,$$slots:{child:!0}})})}r(v,d)},$$slots:{default:!0}})}),r(x,I)};V(ie,x=>{e(t)==="form"||e(t)==="looking"?x(me):e(t)==="review"&&e(f)?x(Ze,1):e(f)&&x(qe,2)})}r(Ie,pe)},$$slots:{default:!0}})})}r(J,ke)},$$slots:{default:!0}})}),r(H,Pe),ge()}Ee(["input"]);export{Oe as D,Jt as I};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{l as vt,p as pt,m as j,q as mt,u as ft,f as we,h as d,o as b,s,g as e,r as i,t as y,d as g,a as l,b as _t,i as O,v as n,n as W,w as L,x as Ue,y as _e,c as p,aa as ue,j as gt}from"./D46tdsTs.js";import{i as P}from"./DWAM9c1z.js";import{r as Ee,s as K,e as ke,i as xt,b as ht,c as bt}from"./BLivoCTk.js";import{a as yt}from"./Cqz3pSYE.js";import{p as Ze}from"./Gbvs-EZ4.js";import{S as $t}from"./BXN538J3.js";import{B as U}from"./oiLSZkWa.js";import{L as wt,K as He}from"./BE305dTg.js";import{C as kt}from"./CrXwYZhk.js";import{s as jt,r as St}from"./z5Xef_-v.js";import{I as zt}from"./B4gzexCn.js";import{E as At}from"./Cfp1M-Wz.js";const Pt=/https?:\/\/[^\s<>"'`]+/g,Et=/[.,;:!?)\]}'"*]+$/;function ha(C){return[...C.matchAll(Pt)].map(B=>B[0].replace(Et,""))}var Nt=new Set(["$$slots","$$events","$$legacy"]);function Rt(C,B){let ge=St(B,Nt);const xe={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]]};zt(C,jt(()=>ge,{get icon(){return xe}}))}const Tt=/^[A-Za-z_][A-Za-z0-9_]{0,127}$/,ba=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;function Ne(C){return C?.where??"the vault"}function Ct(C){return C.length<=1?C.join(""):`${C.slice(0,-1).join(", ")} and ${C.at(-1)}`}var Dt=p('<div class="relative"><input autocomplete="off" autocapitalize="off" spellcheck="false" data-1p-ignore="" data-lpignore="true" class="h-10 w-full rounded-md border border-input bg-background px-3 pr-10 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"/> <button type="button" class="absolute inset-y-0 right-0 flex w-10 items-center justify-center rounded-r-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"><!></button></div>'),Lt=p('<label class="flex min-w-0 items-center gap-2 text-sm"><input type="checkbox" class="size-4 shrink-0 accent-[var(--sea)]"/> <span class="truncate"> </span></label>'),It=p('<div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group"></div>'),Vt=p('<p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),Mt=p('<p class="mt-5 rounded-md border border-warning/40 bg-warning/5 px-4 py-2.5 text-sm" role="alert" data-vault-unavailable=""> </p>'),Ot=p('<p class="mt-5 rounded-md border border-success/40 bg-success/5 px-4 py-2.5 text-sm" role="status"> </p>'),Wt=p('<p class="mt-5 rounded-md border border-danger/40 bg-danger/5 px-4 py-2.5 text-sm" role="alert"> </p>'),Kt=p('<p class="mt-5 text-sm text-muted-foreground"> </p>'),Ut=p('<p id="vault-name-help" class="text-sm text-danger" role="alert"> </p>'),Zt=p('<p id="vault-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as: letters, digits and underscores.</p>'),Ht=p('<section class="mt-6 rounded-lg border border-hair bg-background/60 px-5 py-5" aria-labelledby="vault-add"><h2 id="vault-add" class="font-display text-lg">Add a secret</h2> <p class="mt-0.5 mb-5 text-xs text-muted-foreground">Storing a name that already exists replaces its value.</p> <form class="grid gap-5"><div class="grid max-w-md gap-1.5"><label for="vault-name" class="text-sm font-medium">Name</label> <input id="vault-name" autocomplete="off" autocapitalize="characters" spellcheck="false" placeholder="VERCEL_TOKEN" aria-describedby="vault-name-help" class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm outline-none placeholder:text-muted-foreground/60 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 aria-invalid:border-danger"/> <!></div> <div class="grid max-w-md gap-1.5"><label for="vault-value" class="text-sm font-medium">Value</label> <!> <p class="flex items-start gap-1.5 text-xs text-muted-foreground"><!> </p></div> <div class="grid gap-2"><p class="text-sm font-medium">Projects that may use it</p> <p class="-mt-1 mb-1 text-xs text-muted-foreground">Optional. You can change this any time.</p> <!></div> <div class="flex flex-wrap gap-2"><!> <!></div></form></section>'),Bt=p('<div class="mt-6 rounded-lg border border-dashed px-6 py-10"><!> <p class="mt-3 font-display text-lg">The vault is empty</p> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Add the tokens and keys your projects need. The crew uses them by name and never sees a value.</p> <!></div>'),Ft=p('<span class="rounded border border-hair px-1.5 py-0.5 text-xs"> </span>'),Gt=p('<span class="text-xs text-muted-foreground">No project yet</span>'),Jt=p('<form class="grid gap-2"><label for="vault-replace" class="text-xs font-medium">New value</label> <!> <div class="flex flex-wrap gap-2"><!> <!></div></form>'),Yt=p('<p>Remove <span class="font-mono"> </span> </p> <div class="flex flex-wrap gap-2"><!> <!></div>',1),qt=p('<div class="flex flex-wrap gap-2"><!> <!></div>'),Qt=p('<div class="grid gap-6 px-1 pt-1 pb-5 sm:grid-cols-[minmax(0,1fr)_minmax(0,18rem)] sm:pl-9"><div><p class="mb-2 text-sm font-medium">Projects that may use it</p> <!> <p class="mt-3 text-xs text-muted-foreground"> </p></div> <div class="grid content-start gap-3 text-sm"><p class="tabular text-xs text-muted-foreground"> <br/> </p> <!></div></div>'),Xt=p('<li><button class="flex min-h-12 w-full items-center gap-4 px-1 py-3 text-left outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring"><!> <span class="min-w-0 flex-1 truncate font-mono text-sm font-medium"> </span> <span class="hidden min-w-0 flex-wrap justify-end gap-1.5 sm:flex"></span> <!></button> <!></li>'),ea=p('<ul class="mt-6 divide-y divide-hair border-y border-hair" aria-label="Secrets"></ul>'),ta=p('<a class="text-sea hover:underline"> </a>'),aa=p('<tr><td class="tabular py-2 pr-4 whitespace-nowrap"> </td><td class="py-2 pr-4"><!></td><td class="py-2 pr-4"> </td><td class="py-2 pr-4 font-mono text-xs"> </td><td class="py-2 pr-4"> </td><td class="py-2"> </td></tr>'),ra=p('<h2 class="section-label mt-10">Recent use</h2> <div class="mt-3 no-scrollbar overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs text-muted-foreground"><tr class="border-b border-hair"><th class="py-2 pr-4 font-medium">When</th><th class="py-2 pr-4 font-medium">Task</th><th class="py-2 pr-4 font-medium">Project</th><th class="py-2 pr-4 font-medium">Secrets</th><th class="py-2 pr-4 font-medium">Command</th><th class="py-2 font-medium">Result</th></tr></thead><tbody class="divide-y divide-hair"></tbody></table></div>',1),sa=p('<div class="flex flex-wrap items-start justify-between gap-4"><p class="max-w-prose text-sm text-muted-foreground"> </p> <!></div> <!> <!> <!> <!> <!> <!> <!>',1);function na(C,B){pt(B,!0);const ge=(t,a=ue,r=ue,o=ue)=>{var u=Dt(),_=d(u);Ee(_);var c=s(_,2),S=d(c);{var x=m=>{Rt(m,{class:"size-4"})},h=m=>{At(m,{class:"size-4"})};P(S,m=>{e(Z)?m(x):m(h,-1)})}i(c),i(u),y(m=>{K(_,"id",a()),K(_,"type",e(Z)?"text":"password"),ht(_,m),_.disabled=e($),K(c,"aria-label",e(Z)?"Hide what you typed":"Show what you typed"),K(c,"aria-pressed",e(Z))},[()=>r()()]),_e("input",_,m=>o()(m.currentTarget.value)),_e("click",c,()=>n(Z,!e(Z))),l(t,u)},xe=(t,a=ue,r=ue,o=ue)=>{var u=gt(),_=we(u);{var c=x=>{var h=It();ke(h,20,()=>e(Re),m=>m,(m,I)=>{var H=Lt(),f=d(H);Ee(f);var w=s(f,2),E=b(w,!0);i(H),y(z=>{bt(f,z),f.disabled=e($),g(E,I)},[()=>r().includes(I)]),_e("change",f,z=>{const F=z.currentTarget;o()(I,F.checked,F)}),l(m,H)}),i(h),y(()=>K(h,"aria-label",a())),l(x,h)},S=x=>{var h=Vt();l(x,h)};P(_,x=>{e(Re).length?x(c):x(S,-1)})}l(t,u)},ce=O(()=>B.data);let he=j(null);const ve=O(()=>{const t=B.entry.content.available?Date.parse(B.entry.content.observedAt??""):NaN;return e(he)&&!(t>e(he).at)?e(he).secrets:e(ce).secrets}),Re=O(()=>{const t=(Ze.data.fleet?.projects??[]).map(r=>r.id),a=e(ve).flatMap(r=>r.projects).filter(r=>!t.includes(r));return[...t,...[...new Set(a)].sort()]});let J=j(null),ae=j(!1),pe=j(null),me=j(null),$=j(!1),re=j(null),se=j(null),Y=j(""),q=j(""),ne=j(mt([])),Z=j(!1),oe=j(""),Q=j(""),le=j(null);const fe=O(()=>e(le)?.canStore===!1);function Te(){fetch("/api/vault").then(t=>t.ok?t.json():null).then(t=>{t&&n(le,t,!0)}).catch(()=>{})}ft(Te);function je(t){if(!t)return"Never";const a=new Date(t);if(Number.isNaN(a.getTime()))return t;const r=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${r(a.getMonth()+1)}-${r(a.getDate())} ${r(a.getHours())}:${r(a.getMinutes())}`}function be(){n(q,""),n(Q,""),n(Z,!1)}function Ce(){n(Y,""),n(ne,[],!0),n(oe,""),n(re,null),n(se,null),be(),n(ae,!0)}function Be(){n(ae,!1),be()}async function ye(t){n($,!0),n(se,null),n(re,null);try{const a=await fetch("/api/vault",{method:"POST",headers:{"content-type":"application/json",[$t]:Ze.data.sessionToken},body:JSON.stringify(t)}),r=await a.json().catch(()=>null);return a.ok?(r?.secrets&&n(he,{secrets:r.secrets,at:Date.parse(r.observedAt??"")||Date.now()},!0),n(re,r?.message??"Done.",!0),!0):(n(se,r?.message??`Wheelhouse could not do that (${a.status}).`,!0),a.status===503&&Te(),!1)}catch{return n(se,"Wheelhouse could not be reached. Try again."),!1}finally{n($,!1)}}async function Fe(t){if(t.preventDefault(),!Tt.test(e(Y))){n(oe,"Use letters, digits and underscores, not starting with a digit, like VERCEL_TOKEN.");return}if(!e(q))return;const a={action:"set",name:e(Y),value:e(q),projects:e(ne)};n(q,""),n(Z,!1),await ye(a)&&(n(ae,!1),n(J,e(Y),!0))}async function Ge(t,a){if(t.preventDefault(),!e(Q))return;const r={action:"set",name:a.name,value:e(Q),projects:[]};n(Q,""),n(Z,!1),await ye(r)&&n(pe,null)}async function Je(t,a,r,o){await ye({action:r?"grant":"revoke",name:t.name,projects:[a]})||(o.checked=!r)}async function Ye(t){await ye({action:"remove",name:t.name})&&(n(me,null),n(J,null))}function qe(t){n(J,e(J)===t?null:t,!0),n(me,null),n(pe,null),be()}var De=sa(),Se=we(De),Le=d(Se),Qe=b(Le),Xe=s(Le,2);{var et=t=>{{let a=O(()=>e($)||e(fe));U(t,{onclick:Ce,get disabled(){return e(a)},children:(r,o)=>{W();var u=L("Add a secret");l(r,u)},$$slots:{default:!0}})}};P(Xe,t=>{e(ve).length&&!e(ae)&&t(et)})}i(Se);var Ie=s(Se,2);{var tt=t=>{var a=Mt(),r=b(a,!0);y(()=>g(r,e(le)?.reason??"The vault cannot store a secret on this computer.")),l(t,a)};P(Ie,t=>{e(fe)&&t(tt)})}var Ve=s(Ie,2);{var at=t=>{var a=Ot(),r=b(a,!0);y(()=>g(r,e(re))),l(t,a)};P(Ve,t=>{e(re)&&t(at)})}var Me=s(Ve,2);{var rt=t=>{var a=Wt(),r=b(a,!0);y(()=>g(r,e(se))),l(t,a)};P(Me,t=>{e(se)&&t(rt)})}var Oe=s(Me,2);{var st=t=>{var a=Kt(),r=b(a,!0);y(()=>g(r,e(ce).problem)),l(t,a)};P(Oe,t=>{e(ce).problem&&t(st)})}var We=s(Oe,2);{var nt=t=>{var a=Ht(),r=s(d(a),4),o=d(r),u=s(d(o),2);Ee(u);var _=s(u,2);{var c=v=>{var A=Ut(),D=b(A,!0);y(()=>g(D,e(oe))),l(v,A)},S=v=>{var A=Zt();l(v,A)};P(_,v=>{e(oe)?v(c):v(S,-1)})}i(o);var x=s(o,2),h=s(d(x),2);ge(h,()=>"vault-value",()=>()=>e(q),()=>v=>n(q,v,!0));var m=s(h,2),I=d(m);wt(I,{class:"mt-px size-3.5 shrink-0"});var H=s(I);i(m),i(x);var f=s(x,2),w=s(d(f),4);xe(w,()=>"Projects that may use it",()=>e(ne),()=>(v,A)=>{n(ne,A?[...e(ne),v]:e(ne).filter(D=>D!==v),!0)}),i(f);var E=s(f,2),z=d(E);{let v=O(()=>e($)||!e(Y)||!e(q)||e(fe));U(z,{type:"submit",get disabled(){return e(v)},children:(A,D)=>{W();var ie=L("Store secret");l(A,ie)},$$slots:{default:!0}})}var F=s(z,2);U(F,{type:"button",variant:"outline",get disabled(){return e($)},onclick:Be,children:(v,A)=>{W();var D=L("Cancel");l(v,D)},$$slots:{default:!0}}),i(E),i(r),i(a),y(v=>{u.disabled=e($),K(u,"aria-invalid",e(oe)?"true":void 0),g(H,` Goes straight into ${v??""}. Wheelhouse cannot show it again.`)},[()=>Ne(e(le))]),Ue("submit",r,Fe),_e("input",u,()=>n(oe,"")),yt(u,()=>e(Y),v=>n(Y,v)),l(t,a)};P(We,t=>{e(ae)&&t(nt)})}var Ke=s(We,2);{var ot=t=>{var a=Bt(),r=d(a);He(r,{class:"size-6 text-brass","aria-hidden":"true"});var o=s(r,6);{let u=O(()=>e($)||e(fe));U(o,{class:"mt-5",onclick:Ce,get disabled(){return e(u)},children:(_,c)=>{W();var S=L("Add a secret");l(_,S)},$$slots:{default:!0}})}i(a),l(t,a)},lt=t=>{var a=ea();ke(a,21,()=>e(ve),r=>r.name,(r,o)=>{var u=Xt(),_=d(u),c=d(_);He(c,{class:"size-4 shrink-0 text-brass","aria-hidden":"true"});var S=s(c,2),x=b(S,!0),h=s(S,2);ke(h,20,()=>e(o).projects,f=>f,(f,w)=>{var E=Ft(),z=b(E,!0);y(()=>g(z,w)),l(f,E)},f=>{var w=Gt();l(f,w)}),i(h);var m=s(h,2);{let f=O(()=>e(J)===e(o).name?"rotate-90":"");kt(m,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${e(f)??""}`},"aria-hidden":"true"})}i(_);var I=s(_,2);{var H=f=>{var w=Qt(),E=d(w),z=s(d(E),2);xe(z,()=>`Projects that may use ${e(o).name}`,()=>e(o).projects,()=>(N,k,R)=>Je(e(o),N,k,R));var F=s(z,2),v=b(F,!0);i(E);var A=s(E,2),D=d(A),ie=d(D),V=s(ie,2);i(D);var M=s(D,2);{var ze=N=>{var k=Jt(),R=s(d(k),2);ge(R,()=>"vault-replace",()=>()=>e(Q),()=>T=>n(Q,T,!0));var X=s(R,2),G=d(X);{let T=O(()=>e($)||!e(Q));U(G,{type:"submit",size:"sm",get disabled(){return e(T)},children:(ee,$e)=>{W();var te=L("Replace");l(ee,te)},$$slots:{default:!0}})}var de=s(G,2);U(de,{type:"button",size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>{n(pe,null),be()},children:(T,ee)=>{W();var $e=L("Cancel");l(T,$e)},$$slots:{default:!0}}),i(X),i(k),Ue("submit",k,T=>Ge(T,e(o))),l(N,k)},Ae=N=>{var k=Yt(),R=we(k),X=s(d(R)),G=b(X,!0),de=s(X);i(R);var T=s(R,2),ee=d(T);U(ee,{size:"sm",variant:"destructive",get disabled(){return e($)},onclick:()=>Ye(e(o)),children:(te,ct)=>{W();var Pe=L("Remove");l(te,Pe)},$$slots:{default:!0}});var $e=s(ee,2);U($e,{size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>n(me,null),children:(te,ct)=>{W();var Pe=L("Keep it");l(te,Pe)},$$slots:{default:!0}}),i(T),y(te=>{g(G,e(o).name),g(de,`? Its value is deleted from ${te??""} and every project loses it. This cannot be undone.`)},[()=>Ne(e(le))]),l(N,k)},ut=N=>{var k=qt(),R=d(k);{let G=O(()=>e($)||e(fe));U(R,{size:"sm",variant:"outline",get disabled(){return e(G)},onclick:()=>{n(pe,e(o).name,!0),n(re,null)},children:(de,T)=>{W();var ee=L("Replace value");l(de,ee)},$$slots:{default:!0}})}var X=s(R,2);U(X,{size:"sm",variant:"ghost",class:"text-danger hover:text-danger",get disabled(){return e($)},onclick:()=>n(me,e(o).name,!0),children:(G,de)=>{W();var T=L("Remove…");l(G,T)},$$slots:{default:!0}}),i(k),l(N,k)};P(M,N=>{e(pe)===e(o).name?N(ze):e(me)===e(o).name?N(Ae,1):N(ut,-1)})}i(A),i(w),y((N,k,R)=>{K(w,"id",`vault-${e(o).name??""}`),g(v,N),g(ie,`Value set ${k??""}`),g(V,`Last used ${R??""}`)},[()=>e(o).projects.length?`A command ${Ct(e(o).projects)} ${e(o).projects.length===1?"runs":"run"} through the vault gets it in its environment, that command only.`:"No project can use it until you tick one.",()=>je(e(o).updatedAt),()=>je(e(o).lastUsedAt)]),l(f,w)};P(I,f=>{e(J)===e(o).name&&f(H)})}i(u),y(()=>{K(_,"aria-expanded",e(J)===e(o).name),K(_,"aria-controls",`vault-${e(o).name??""}`),g(x,e(o).name)}),_e("click",_,()=>qe(e(o).name)),l(r,u)}),i(a),l(t,a)};P(Ke,t=>{!e(ve).length&&!e(ae)?t(ot):e(ve).length&&t(lt,1)})}var it=s(Ke,2);{var dt=t=>{var a=ra(),r=s(we(a),2),o=d(r),u=s(d(o));ke(u,21,()=>e(ce).used,xt,(_,c)=>{var S=aa(),x=d(S),h=b(x,!0),m=s(x),I=d(m);{var H=V=>{var M=ta(),ze=b(M,!0);y(Ae=>{K(M,"href",`/tasks/${Ae??""}`),g(ze,e(c).task)},[()=>encodeURIComponent(e(c).task)]),l(V,M)},f=V=>{var M=L();y(()=>g(M,e(c).task??"—")),l(V,M)};P(I,V=>{e(c).task&&e(c).taskKnown?V(H):V(f,-1)})}i(m);var w=s(m),E=b(w,!0),z=s(w),F=b(z,!0),v=s(z),A=b(v,!0),D=s(v),ie=b(D,!0);i(S),y((V,M)=>{g(h,V),g(E,e(c).project??"—"),g(F,M),g(A,e(c).program??"—"),g(ie,e(c).result)},[()=>je(e(c).at),()=>e(c).names.join(", ")||"—"]),l(_,S)}),i(u),i(o),i(r),l(t,a)};P(it,t=>{e(ce).used.length&&t(dt)})}y(t=>g(Qe,`Secrets your projects can use by name. Values stay in ${t??""}; Wheelhouse never
|
|
1
|
+
import"./DsnmJJEf.js";import{l as vt,p as pt,m as j,q as mt,u as ft,f as we,h as d,o as b,s,g as e,r as i,t as y,d as g,a as l,b as _t,i as O,v as n,n as W,w as L,x as Ue,y as _e,c as p,aa as ue,j as gt}from"./D46tdsTs.js";import{i as P}from"./DWAM9c1z.js";import{r as Ee,s as K,e as ke,i as xt,b as ht,c as bt}from"./BLivoCTk.js";import{a as yt}from"./Cqz3pSYE.js";import{p as Ze}from"./QrHSSdjC.js";import{S as $t}from"./BXN538J3.js";import{B as U}from"./oiLSZkWa.js";import{L as wt,K as He}from"./BE305dTg.js";import{C as kt}from"./CrXwYZhk.js";import{s as jt,r as St}from"./z5Xef_-v.js";import{I as zt}from"./B4gzexCn.js";import{E as At}from"./Cfp1M-Wz.js";const Pt=/https?:\/\/[^\s<>"'`]+/g,Et=/[.,;:!?)\]}'"*]+$/;function ha(C){return[...C.matchAll(Pt)].map(B=>B[0].replace(Et,""))}var Nt=new Set(["$$slots","$$events","$$legacy"]);function Rt(C,B){let ge=St(B,Nt);const xe={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]]};zt(C,jt(()=>ge,{get icon(){return xe}}))}const Tt=/^[A-Za-z_][A-Za-z0-9_]{0,127}$/,ba=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;function Ne(C){return C?.where??"the vault"}function Ct(C){return C.length<=1?C.join(""):`${C.slice(0,-1).join(", ")} and ${C.at(-1)}`}var Dt=p('<div class="relative"><input autocomplete="off" autocapitalize="off" spellcheck="false" data-1p-ignore="" data-lpignore="true" class="h-10 w-full rounded-md border border-input bg-background px-3 pr-10 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"/> <button type="button" class="absolute inset-y-0 right-0 flex w-10 items-center justify-center rounded-r-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"><!></button></div>'),Lt=p('<label class="flex min-w-0 items-center gap-2 text-sm"><input type="checkbox" class="size-4 shrink-0 accent-[var(--sea)]"/> <span class="truncate"> </span></label>'),It=p('<div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group"></div>'),Vt=p('<p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),Mt=p('<p class="mt-5 rounded-md border border-warning/40 bg-warning/5 px-4 py-2.5 text-sm" role="alert" data-vault-unavailable=""> </p>'),Ot=p('<p class="mt-5 rounded-md border border-success/40 bg-success/5 px-4 py-2.5 text-sm" role="status"> </p>'),Wt=p('<p class="mt-5 rounded-md border border-danger/40 bg-danger/5 px-4 py-2.5 text-sm" role="alert"> </p>'),Kt=p('<p class="mt-5 text-sm text-muted-foreground"> </p>'),Ut=p('<p id="vault-name-help" class="text-sm text-danger" role="alert"> </p>'),Zt=p('<p id="vault-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as: letters, digits and underscores.</p>'),Ht=p('<section class="mt-6 rounded-lg border border-hair bg-background/60 px-5 py-5" aria-labelledby="vault-add"><h2 id="vault-add" class="font-display text-lg">Add a secret</h2> <p class="mt-0.5 mb-5 text-xs text-muted-foreground">Storing a name that already exists replaces its value.</p> <form class="grid gap-5"><div class="grid max-w-md gap-1.5"><label for="vault-name" class="text-sm font-medium">Name</label> <input id="vault-name" autocomplete="off" autocapitalize="characters" spellcheck="false" placeholder="VERCEL_TOKEN" aria-describedby="vault-name-help" class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm outline-none placeholder:text-muted-foreground/60 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 aria-invalid:border-danger"/> <!></div> <div class="grid max-w-md gap-1.5"><label for="vault-value" class="text-sm font-medium">Value</label> <!> <p class="flex items-start gap-1.5 text-xs text-muted-foreground"><!> </p></div> <div class="grid gap-2"><p class="text-sm font-medium">Projects that may use it</p> <p class="-mt-1 mb-1 text-xs text-muted-foreground">Optional. You can change this any time.</p> <!></div> <div class="flex flex-wrap gap-2"><!> <!></div></form></section>'),Bt=p('<div class="mt-6 rounded-lg border border-dashed px-6 py-10"><!> <p class="mt-3 font-display text-lg">The vault is empty</p> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Add the tokens and keys your projects need. The crew uses them by name and never sees a value.</p> <!></div>'),Ft=p('<span class="rounded border border-hair px-1.5 py-0.5 text-xs"> </span>'),Gt=p('<span class="text-xs text-muted-foreground">No project yet</span>'),Jt=p('<form class="grid gap-2"><label for="vault-replace" class="text-xs font-medium">New value</label> <!> <div class="flex flex-wrap gap-2"><!> <!></div></form>'),Yt=p('<p>Remove <span class="font-mono"> </span> </p> <div class="flex flex-wrap gap-2"><!> <!></div>',1),qt=p('<div class="flex flex-wrap gap-2"><!> <!></div>'),Qt=p('<div class="grid gap-6 px-1 pt-1 pb-5 sm:grid-cols-[minmax(0,1fr)_minmax(0,18rem)] sm:pl-9"><div><p class="mb-2 text-sm font-medium">Projects that may use it</p> <!> <p class="mt-3 text-xs text-muted-foreground"> </p></div> <div class="grid content-start gap-3 text-sm"><p class="tabular text-xs text-muted-foreground"> <br/> </p> <!></div></div>'),Xt=p('<li><button class="flex min-h-12 w-full items-center gap-4 px-1 py-3 text-left outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring"><!> <span class="min-w-0 flex-1 truncate font-mono text-sm font-medium"> </span> <span class="hidden min-w-0 flex-wrap justify-end gap-1.5 sm:flex"></span> <!></button> <!></li>'),ea=p('<ul class="mt-6 divide-y divide-hair border-y border-hair" aria-label="Secrets"></ul>'),ta=p('<a class="text-sea hover:underline"> </a>'),aa=p('<tr><td class="tabular py-2 pr-4 whitespace-nowrap"> </td><td class="py-2 pr-4"><!></td><td class="py-2 pr-4"> </td><td class="py-2 pr-4 font-mono text-xs"> </td><td class="py-2 pr-4"> </td><td class="py-2"> </td></tr>'),ra=p('<h2 class="section-label mt-10">Recent use</h2> <div class="mt-3 no-scrollbar overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs text-muted-foreground"><tr class="border-b border-hair"><th class="py-2 pr-4 font-medium">When</th><th class="py-2 pr-4 font-medium">Task</th><th class="py-2 pr-4 font-medium">Project</th><th class="py-2 pr-4 font-medium">Secrets</th><th class="py-2 pr-4 font-medium">Command</th><th class="py-2 font-medium">Result</th></tr></thead><tbody class="divide-y divide-hair"></tbody></table></div>',1),sa=p('<div class="flex flex-wrap items-start justify-between gap-4"><p class="max-w-prose text-sm text-muted-foreground"> </p> <!></div> <!> <!> <!> <!> <!> <!> <!>',1);function na(C,B){pt(B,!0);const ge=(t,a=ue,r=ue,o=ue)=>{var u=Dt(),_=d(u);Ee(_);var c=s(_,2),S=d(c);{var x=m=>{Rt(m,{class:"size-4"})},h=m=>{At(m,{class:"size-4"})};P(S,m=>{e(Z)?m(x):m(h,-1)})}i(c),i(u),y(m=>{K(_,"id",a()),K(_,"type",e(Z)?"text":"password"),ht(_,m),_.disabled=e($),K(c,"aria-label",e(Z)?"Hide what you typed":"Show what you typed"),K(c,"aria-pressed",e(Z))},[()=>r()()]),_e("input",_,m=>o()(m.currentTarget.value)),_e("click",c,()=>n(Z,!e(Z))),l(t,u)},xe=(t,a=ue,r=ue,o=ue)=>{var u=gt(),_=we(u);{var c=x=>{var h=It();ke(h,20,()=>e(Re),m=>m,(m,I)=>{var H=Lt(),f=d(H);Ee(f);var w=s(f,2),E=b(w,!0);i(H),y(z=>{bt(f,z),f.disabled=e($),g(E,I)},[()=>r().includes(I)]),_e("change",f,z=>{const F=z.currentTarget;o()(I,F.checked,F)}),l(m,H)}),i(h),y(()=>K(h,"aria-label",a())),l(x,h)},S=x=>{var h=Vt();l(x,h)};P(_,x=>{e(Re).length?x(c):x(S,-1)})}l(t,u)},ce=O(()=>B.data);let he=j(null);const ve=O(()=>{const t=B.entry.content.available?Date.parse(B.entry.content.observedAt??""):NaN;return e(he)&&!(t>e(he).at)?e(he).secrets:e(ce).secrets}),Re=O(()=>{const t=(Ze.data.fleet?.projects??[]).map(r=>r.id),a=e(ve).flatMap(r=>r.projects).filter(r=>!t.includes(r));return[...t,...[...new Set(a)].sort()]});let J=j(null),ae=j(!1),pe=j(null),me=j(null),$=j(!1),re=j(null),se=j(null),Y=j(""),q=j(""),ne=j(mt([])),Z=j(!1),oe=j(""),Q=j(""),le=j(null);const fe=O(()=>e(le)?.canStore===!1);function Te(){fetch("/api/vault").then(t=>t.ok?t.json():null).then(t=>{t&&n(le,t,!0)}).catch(()=>{})}ft(Te);function je(t){if(!t)return"Never";const a=new Date(t);if(Number.isNaN(a.getTime()))return t;const r=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${r(a.getMonth()+1)}-${r(a.getDate())} ${r(a.getHours())}:${r(a.getMinutes())}`}function be(){n(q,""),n(Q,""),n(Z,!1)}function Ce(){n(Y,""),n(ne,[],!0),n(oe,""),n(re,null),n(se,null),be(),n(ae,!0)}function Be(){n(ae,!1),be()}async function ye(t){n($,!0),n(se,null),n(re,null);try{const a=await fetch("/api/vault",{method:"POST",headers:{"content-type":"application/json",[$t]:Ze.data.sessionToken},body:JSON.stringify(t)}),r=await a.json().catch(()=>null);return a.ok?(r?.secrets&&n(he,{secrets:r.secrets,at:Date.parse(r.observedAt??"")||Date.now()},!0),n(re,r?.message??"Done.",!0),!0):(n(se,r?.message??`Wheelhouse could not do that (${a.status}).`,!0),a.status===503&&Te(),!1)}catch{return n(se,"Wheelhouse could not be reached. Try again."),!1}finally{n($,!1)}}async function Fe(t){if(t.preventDefault(),!Tt.test(e(Y))){n(oe,"Use letters, digits and underscores, not starting with a digit, like VERCEL_TOKEN.");return}if(!e(q))return;const a={action:"set",name:e(Y),value:e(q),projects:e(ne)};n(q,""),n(Z,!1),await ye(a)&&(n(ae,!1),n(J,e(Y),!0))}async function Ge(t,a){if(t.preventDefault(),!e(Q))return;const r={action:"set",name:a.name,value:e(Q),projects:[]};n(Q,""),n(Z,!1),await ye(r)&&n(pe,null)}async function Je(t,a,r,o){await ye({action:r?"grant":"revoke",name:t.name,projects:[a]})||(o.checked=!r)}async function Ye(t){await ye({action:"remove",name:t.name})&&(n(me,null),n(J,null))}function qe(t){n(J,e(J)===t?null:t,!0),n(me,null),n(pe,null),be()}var De=sa(),Se=we(De),Le=d(Se),Qe=b(Le),Xe=s(Le,2);{var et=t=>{{let a=O(()=>e($)||e(fe));U(t,{onclick:Ce,get disabled(){return e(a)},children:(r,o)=>{W();var u=L("Add a secret");l(r,u)},$$slots:{default:!0}})}};P(Xe,t=>{e(ve).length&&!e(ae)&&t(et)})}i(Se);var Ie=s(Se,2);{var tt=t=>{var a=Mt(),r=b(a,!0);y(()=>g(r,e(le)?.reason??"The vault cannot store a secret on this computer.")),l(t,a)};P(Ie,t=>{e(fe)&&t(tt)})}var Ve=s(Ie,2);{var at=t=>{var a=Ot(),r=b(a,!0);y(()=>g(r,e(re))),l(t,a)};P(Ve,t=>{e(re)&&t(at)})}var Me=s(Ve,2);{var rt=t=>{var a=Wt(),r=b(a,!0);y(()=>g(r,e(se))),l(t,a)};P(Me,t=>{e(se)&&t(rt)})}var Oe=s(Me,2);{var st=t=>{var a=Kt(),r=b(a,!0);y(()=>g(r,e(ce).problem)),l(t,a)};P(Oe,t=>{e(ce).problem&&t(st)})}var We=s(Oe,2);{var nt=t=>{var a=Ht(),r=s(d(a),4),o=d(r),u=s(d(o),2);Ee(u);var _=s(u,2);{var c=v=>{var A=Ut(),D=b(A,!0);y(()=>g(D,e(oe))),l(v,A)},S=v=>{var A=Zt();l(v,A)};P(_,v=>{e(oe)?v(c):v(S,-1)})}i(o);var x=s(o,2),h=s(d(x),2);ge(h,()=>"vault-value",()=>()=>e(q),()=>v=>n(q,v,!0));var m=s(h,2),I=d(m);wt(I,{class:"mt-px size-3.5 shrink-0"});var H=s(I);i(m),i(x);var f=s(x,2),w=s(d(f),4);xe(w,()=>"Projects that may use it",()=>e(ne),()=>(v,A)=>{n(ne,A?[...e(ne),v]:e(ne).filter(D=>D!==v),!0)}),i(f);var E=s(f,2),z=d(E);{let v=O(()=>e($)||!e(Y)||!e(q)||e(fe));U(z,{type:"submit",get disabled(){return e(v)},children:(A,D)=>{W();var ie=L("Store secret");l(A,ie)},$$slots:{default:!0}})}var F=s(z,2);U(F,{type:"button",variant:"outline",get disabled(){return e($)},onclick:Be,children:(v,A)=>{W();var D=L("Cancel");l(v,D)},$$slots:{default:!0}}),i(E),i(r),i(a),y(v=>{u.disabled=e($),K(u,"aria-invalid",e(oe)?"true":void 0),g(H,` Goes straight into ${v??""}. Wheelhouse cannot show it again.`)},[()=>Ne(e(le))]),Ue("submit",r,Fe),_e("input",u,()=>n(oe,"")),yt(u,()=>e(Y),v=>n(Y,v)),l(t,a)};P(We,t=>{e(ae)&&t(nt)})}var Ke=s(We,2);{var ot=t=>{var a=Bt(),r=d(a);He(r,{class:"size-6 text-brass","aria-hidden":"true"});var o=s(r,6);{let u=O(()=>e($)||e(fe));U(o,{class:"mt-5",onclick:Ce,get disabled(){return e(u)},children:(_,c)=>{W();var S=L("Add a secret");l(_,S)},$$slots:{default:!0}})}i(a),l(t,a)},lt=t=>{var a=ea();ke(a,21,()=>e(ve),r=>r.name,(r,o)=>{var u=Xt(),_=d(u),c=d(_);He(c,{class:"size-4 shrink-0 text-brass","aria-hidden":"true"});var S=s(c,2),x=b(S,!0),h=s(S,2);ke(h,20,()=>e(o).projects,f=>f,(f,w)=>{var E=Ft(),z=b(E,!0);y(()=>g(z,w)),l(f,E)},f=>{var w=Gt();l(f,w)}),i(h);var m=s(h,2);{let f=O(()=>e(J)===e(o).name?"rotate-90":"");kt(m,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${e(f)??""}`},"aria-hidden":"true"})}i(_);var I=s(_,2);{var H=f=>{var w=Qt(),E=d(w),z=s(d(E),2);xe(z,()=>`Projects that may use ${e(o).name}`,()=>e(o).projects,()=>(N,k,R)=>Je(e(o),N,k,R));var F=s(z,2),v=b(F,!0);i(E);var A=s(E,2),D=d(A),ie=d(D),V=s(ie,2);i(D);var M=s(D,2);{var ze=N=>{var k=Jt(),R=s(d(k),2);ge(R,()=>"vault-replace",()=>()=>e(Q),()=>T=>n(Q,T,!0));var X=s(R,2),G=d(X);{let T=O(()=>e($)||!e(Q));U(G,{type:"submit",size:"sm",get disabled(){return e(T)},children:(ee,$e)=>{W();var te=L("Replace");l(ee,te)},$$slots:{default:!0}})}var de=s(G,2);U(de,{type:"button",size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>{n(pe,null),be()},children:(T,ee)=>{W();var $e=L("Cancel");l(T,$e)},$$slots:{default:!0}}),i(X),i(k),Ue("submit",k,T=>Ge(T,e(o))),l(N,k)},Ae=N=>{var k=Yt(),R=we(k),X=s(d(R)),G=b(X,!0),de=s(X);i(R);var T=s(R,2),ee=d(T);U(ee,{size:"sm",variant:"destructive",get disabled(){return e($)},onclick:()=>Ye(e(o)),children:(te,ct)=>{W();var Pe=L("Remove");l(te,Pe)},$$slots:{default:!0}});var $e=s(ee,2);U($e,{size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>n(me,null),children:(te,ct)=>{W();var Pe=L("Keep it");l(te,Pe)},$$slots:{default:!0}}),i(T),y(te=>{g(G,e(o).name),g(de,`? Its value is deleted from ${te??""} and every project loses it. This cannot be undone.`)},[()=>Ne(e(le))]),l(N,k)},ut=N=>{var k=qt(),R=d(k);{let G=O(()=>e($)||e(fe));U(R,{size:"sm",variant:"outline",get disabled(){return e(G)},onclick:()=>{n(pe,e(o).name,!0),n(re,null)},children:(de,T)=>{W();var ee=L("Replace value");l(de,ee)},$$slots:{default:!0}})}var X=s(R,2);U(X,{size:"sm",variant:"ghost",class:"text-danger hover:text-danger",get disabled(){return e($)},onclick:()=>n(me,e(o).name,!0),children:(G,de)=>{W();var T=L("Remove…");l(G,T)},$$slots:{default:!0}}),i(k),l(N,k)};P(M,N=>{e(pe)===e(o).name?N(ze):e(me)===e(o).name?N(Ae,1):N(ut,-1)})}i(A),i(w),y((N,k,R)=>{K(w,"id",`vault-${e(o).name??""}`),g(v,N),g(ie,`Value set ${k??""}`),g(V,`Last used ${R??""}`)},[()=>e(o).projects.length?`A command ${Ct(e(o).projects)} ${e(o).projects.length===1?"runs":"run"} through the vault gets it in its environment, that command only.`:"No project can use it until you tick one.",()=>je(e(o).updatedAt),()=>je(e(o).lastUsedAt)]),l(f,w)};P(I,f=>{e(J)===e(o).name&&f(H)})}i(u),y(()=>{K(_,"aria-expanded",e(J)===e(o).name),K(_,"aria-controls",`vault-${e(o).name??""}`),g(x,e(o).name)}),_e("click",_,()=>qe(e(o).name)),l(r,u)}),i(a),l(t,a)};P(Ke,t=>{!e(ve).length&&!e(ae)?t(ot):e(ve).length&&t(lt,1)})}var it=s(Ke,2);{var dt=t=>{var a=ra(),r=s(we(a),2),o=d(r),u=s(d(o));ke(u,21,()=>e(ce).used,xt,(_,c)=>{var S=aa(),x=d(S),h=b(x,!0),m=s(x),I=d(m);{var H=V=>{var M=ta(),ze=b(M,!0);y(Ae=>{K(M,"href",`/tasks/${Ae??""}`),g(ze,e(c).task)},[()=>encodeURIComponent(e(c).task)]),l(V,M)},f=V=>{var M=L();y(()=>g(M,e(c).task??"—")),l(V,M)};P(I,V=>{e(c).task&&e(c).taskKnown?V(H):V(f,-1)})}i(m);var w=s(m),E=b(w,!0),z=s(w),F=b(z,!0),v=s(z),A=b(v,!0),D=s(v),ie=b(D,!0);i(S),y((V,M)=>{g(h,V),g(E,e(c).project??"—"),g(F,M),g(A,e(c).program??"—"),g(ie,e(c).result)},[()=>je(e(c).at),()=>e(c).names.join(", ")||"—"]),l(_,S)}),i(u),i(o),i(r),l(t,a)};P(it,t=>{e(ce).used.length&&t(dt)})}y(t=>g(Qe,`Secrets your projects can use by name. Values stay in ${t??""}; Wheelhouse never
|
|
2
2
|
shows one.`),[()=>Ne(e(le))]),l(C,De),_t()}vt(["input","click","change"]);const ya={"vault/overview":na};export{ya as P,Tt as S,Ct as a,ba as b,ha as e,Ne as s};
|
|
Binary file
|
|
Binary file
|