@chrisjowen/wheelhouse 0.8.0 → 0.9.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 +1 -1
- package/build/client/_app/immutable/chunks/{BNXbHZ4s.js → BEc8oFj4.js} +1 -1
- package/build/client/_app/immutable/chunks/BEc8oFj4.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEc8oFj4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{g4TsmxH1.js → BI6mOQIC.js} +1 -1
- package/build/client/_app/immutable/chunks/BI6mOQIC.js.br +0 -0
- package/build/client/_app/immutable/chunks/BI6mOQIC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BbaeceI1.js → BJLLbknR.js} +1 -1
- package/build/client/_app/immutable/chunks/BJLLbknR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJLLbknR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BNpuLzpy.js +2 -0
- package/build/client/_app/immutable/chunks/BNpuLzpy.js.br +0 -0
- package/build/client/_app/immutable/chunks/BNpuLzpy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DjY7ZMGz.js → BRfuAoq7.js} +1 -1
- package/build/client/_app/immutable/chunks/BRfuAoq7.js.br +0 -0
- package/build/client/_app/immutable/chunks/BRfuAoq7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D6cF08T_.js → BSRqsJCa.js} +4 -4
- package/build/client/_app/immutable/chunks/BSRqsJCa.js.br +0 -0
- package/build/client/_app/immutable/chunks/BSRqsJCa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CisWRQQd.js → BTTjxuqT.js} +1 -1
- package/build/client/_app/immutable/chunks/BTTjxuqT.js.br +0 -0
- package/build/client/_app/immutable/chunks/BTTjxuqT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B2lgXXfo.js → BveXuSek.js} +1 -1
- package/build/client/_app/immutable/chunks/BveXuSek.js.br +0 -0
- package/build/client/_app/immutable/chunks/BveXuSek.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0DPNoH0.js +5 -0
- package/build/client/_app/immutable/chunks/C0DPNoH0.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0DPNoH0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D_KEoseW.js → CNPFxlMK.js} +1 -1
- package/build/client/_app/immutable/chunks/CNPFxlMK.js.br +0 -0
- package/build/client/_app/immutable/chunks/CNPFxlMK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{ClPiDuuz.js → CTb_ccym.js} +1 -1
- package/build/client/_app/immutable/chunks/CTb_ccym.js.br +0 -0
- package/build/client/_app/immutable/chunks/CTb_ccym.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CCnNaKfv.js → CeCmrTGW.js} +1 -1
- package/build/client/_app/immutable/chunks/CeCmrTGW.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeCmrTGW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCmP9xcb.js +2 -0
- package/build/client/_app/immutable/chunks/DCmP9xcb.js.br +0 -0
- package/build/client/_app/immutable/chunks/DCmP9xcb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Go4g8RRQ.js → DHiN7982.js} +1 -1
- package/build/client/_app/immutable/chunks/DHiN7982.js.br +0 -0
- package/build/client/_app/immutable/chunks/DHiN7982.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DEvJ7EGc.js → DVPW54rN.js} +1 -1
- package/build/client/_app/immutable/chunks/DVPW54rN.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVPW54rN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C31k8QGL.js → Dby6Wn4J.js} +1 -1
- package/build/client/_app/immutable/chunks/Dby6Wn4J.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dby6Wn4J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{ff7mriJ8.js → Dzuse5SP.js} +1 -1
- package/build/client/_app/immutable/chunks/Dzuse5SP.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dzuse5SP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Lwq8jsO7.js +1 -0
- package/build/client/_app/immutable/chunks/Lwq8jsO7.js.br +0 -0
- package/build/client/_app/immutable/chunks/Lwq8jsO7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{AiTV8eMU.js → Mzyfuo21.js} +1 -1
- package/build/client/_app/immutable/chunks/Mzyfuo21.js.br +1 -0
- package/build/client/_app/immutable/chunks/Mzyfuo21.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BMTKBS3C.js → kdhJpKON.js} +1 -1
- package/build/client/_app/immutable/chunks/kdhJpKON.js.br +0 -0
- package/build/client/_app/immutable/chunks/kdhJpKON.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.gl-vT7jm.js → app.DqKfT2WZ.js} +2 -2
- package/build/client/_app/immutable/entry/app.DqKfT2WZ.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DqKfT2WZ.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DEmSMT5Q.js +1 -0
- package/build/client/_app/immutable/entry/start.DEmSMT5Q.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DEmSMT5Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.D7nx1zUv.js → 0.CszE2Pm2.js} +1 -1
- package/build/client/_app/immutable/nodes/0.CszE2Pm2.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CszE2Pm2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.GyxmcDpk.js → 1.DdeexMc3.js} +1 -1
- package/build/client/_app/immutable/nodes/1.DdeexMc3.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DdeexMc3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.Bu8ENATY.js → 10.C33nTvVg.js} +1 -1
- package/build/client/_app/immutable/nodes/10.C33nTvVg.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.C33nTvVg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.LfkwXgTW.js → 11.Bitd-Um8.js} +1 -1
- package/build/client/_app/immutable/nodes/11.Bitd-Um8.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Bitd-Um8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.BxPjEbD6.js → 12.DvJMt_BX.js} +1 -1
- package/build/client/_app/immutable/nodes/12.DvJMt_BX.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.DvJMt_BX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.BlAJ4Vfy.js → 13.CNcETgxx.js} +1 -1
- package/build/client/_app/immutable/nodes/13.CNcETgxx.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CNcETgxx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.D6gfCfYW.js → 14.D45aaeoF.js} +1 -1
- package/build/client/_app/immutable/nodes/14.D45aaeoF.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.D45aaeoF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.4lw2WKq9.js → 15.BeC_sH9Y.js} +1 -1
- package/build/client/_app/immutable/nodes/15.BeC_sH9Y.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.BeC_sH9Y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.BmzqQRka.js → 16.CzLyGYG9.js} +1 -1
- package/build/client/_app/immutable/nodes/16.CzLyGYG9.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.CzLyGYG9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.k-iDf2FK.js → 17.BHPNPH8i.js} +1 -1
- package/build/client/_app/immutable/nodes/17.BHPNPH8i.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BHPNPH8i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.Dp_e5Due.js → 19.D5AWgi46.js} +1 -1
- package/build/client/_app/immutable/nodes/19.D5AWgi46.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.D5AWgi46.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.D9LnprvD.js +25 -0
- package/build/client/_app/immutable/nodes/2.D9LnprvD.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.D9LnprvD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.Bz0SO3wK.js → 20.Ds8FV7bT.js} +1 -1
- package/build/client/_app/immutable/nodes/20.Ds8FV7bT.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.Ds8FV7bT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.DfM6w7Sq.js → 21.D-_n5D6I.js} +1 -1
- package/build/client/_app/immutable/nodes/21.D-_n5D6I.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.D-_n5D6I.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{22.CgDRkCuX.js → 22.Dvb0-l-Z.js} +1 -1
- package/build/client/_app/immutable/nodes/22.Dvb0-l-Z.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.Dvb0-l-Z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.Cqr07Z9o.js → 23.CkYg9r5_.js} +1 -1
- package/build/client/_app/immutable/nodes/23.CkYg9r5_.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.CkYg9r5_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.CRrpf_iS.js → 24.BhEQq-vG.js} +1 -1
- package/build/client/_app/immutable/nodes/24.BhEQq-vG.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.BhEQq-vG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{25.BA3kP5aP.js → 25.B8eeSi6k.js} +1 -1
- package/build/client/_app/immutable/nodes/25.B8eeSi6k.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.B8eeSi6k.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{26.CipAeCRP.js → 26.DOI4ga1U.js} +1 -1
- package/build/client/_app/immutable/nodes/26.DOI4ga1U.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.DOI4ga1U.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.BSk8udo-.js → 28.Be9xcVGE.js} +1 -1
- package/build/client/_app/immutable/nodes/28.Be9xcVGE.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.Be9xcVGE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.Bfp3WQon.js → 3.HO48O20f.js} +1 -1
- package/build/client/_app/immutable/nodes/3.HO48O20f.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.HO48O20f.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.F2NZin5q.js → 4.CviaWtQ7.js} +1 -1
- package/build/client/_app/immutable/nodes/4.CviaWtQ7.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CviaWtQ7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.CiTAJagN.js → 6.CaGWrOVU.js} +1 -1
- package/build/client/_app/immutable/nodes/6.CaGWrOVU.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CaGWrOVU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.CFAVd444.js → 7.Uonnco-V.js} +1 -1
- package/build/client/_app/immutable/nodes/7.Uonnco-V.js.br +0 -0
- package/build/client/_app/immutable/nodes/{7.CFAVd444.js.gz → 7.Uonnco-V.js.gz} +0 -0
- package/build/client/_app/immutable/nodes/{8.DgSB72Qx.js → 8.hwuLwhy_.js} +1 -1
- package/build/client/_app/immutable/nodes/8.hwuLwhy_.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.hwuLwhy_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.ClGaEjTD.js → 9.BsDB_kf_.js} +1 -1
- package/build/client/_app/immutable/nodes/9.BsDB_kf_.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BsDB_kf_.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-Dyj6ht_j.js → DecisionCard.js-DNJjQj6y.js} +16 -2
- package/build/server/chunks/chunks/{OpenDecision.js-0VvKUvGV.js → OpenDecision.js-evqpdz3O.js} +2 -2
- package/build/server/chunks/chunks/{SlotContent.js-CyN_Ifyi.js → SlotContent.js-Dfh5Tmlb.js} +25 -11
- package/build/server/chunks/chunks/{decisionform.js-BZIm6oAS.js → decisionform.js-Ds5LU9Wh.js} +7 -2
- package/build/server/chunks/chunks/{detail.js-C28uCfO4.js → detail.js-MTO7d0oZ.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-DbBFs_c7.js → feedback.js-BcVOtfsi.js} +2 -2
- package/build/server/chunks/chunks/{insights.svelte.js-DR4hOMAL.js → insights.svelte.js-BLHg5qc-.js} +4 -4
- package/build/server/chunks/chunks/{internal.js-BLKxcmnO.js → internal.js-B3jvxbpC.js} +3 -3
- package/build/server/chunks/chunks/{keychain.js-CLq9ZWSr.js → keychain.js-fsxzS7dh.js} +2 -2
- package/build/server/chunks/chunks/{marketplace-service.js-CiuqtVb8.js → marketplace-service.js-DIosJVMH.js} +2 -2
- package/build/server/chunks/chunks/{page.js-CGYLRa54.js → page.js-C30cD0Wp.js} +2 -2
- package/build/server/chunks/chunks/{previewhelper2.js-DvC-jUM7.js → previewhelper2.js-bodEg9Jj.js} +2 -2
- package/build/server/chunks/chunks/{repo.js-DVhaDnBj.js → repo.js-He5oSLdW.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-CdY5IpD-.js → runtime.js-CFXY9khN.js} +140 -29
- package/build/server/chunks/chunks/{service.js-DhlDVkLw.js → service.js-CMaRpVXw.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-Bt-81oiB.js → service2.js-DxTR_5ki.js} +3 -3
- package/build/server/chunks/chunks/{starter.js-8hCfFY7e.js → starter.js-BEeKej_N.js} +2 -2
- package/build/server/chunks/chunks/{vault.js-DZFWbeCU.js → vault.js-kx-rYEM0.js} +5 -2
- package/build/server/chunks/chunks/{view.js-Ch9WrYrC.js → view.js-BqciV_nu.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-BY_N9WqF.js → _server.ts.js-DYk_zGmD.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-Bs3squxw.js → _server.ts.js-BZ5xAnps.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-D7Hh_LA3.js → _server.ts.js-B1wMsqtV.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-CnkZHmPh.js → _server.ts.js-B6yJINJv.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-CFVR6_o4.js → _server.ts.js-XkHjWwFF.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-DN70VJQU.js → _server.ts.js-CSWXw2oP.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-BeRBlf5D.js → _server.ts.js-DjUmuNfh.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-ThZS58R-.js → _server.ts.js-fo49iwRo.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-BadTKi0S.js → _server.ts.js-Ugm4xiSu.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-DVJ4gMGj.js → _server.ts.js-qhSNM_-L.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-DUVZe4wn.js → _server.ts.js-BtpO3tEp.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-Bs1bymHZ.js → _server.ts.js-C-wEt7Gp.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-CKeFPXLR.js → _server.ts.js-gJ_-WFJW.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-Bt501lhC.js → _server.ts.js-5vfw0icS.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-BcHSC1TK.js → _server.ts.js-Dv0n3oCp.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-BH1fGFoq.js → _server.ts.js-D1tixfXq.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-gLB2SuJg.js → _server.ts.js-oViIkbvM.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-CjdGWvfb.js → _server.ts.js-C-QStpbo.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-C1A5OD4E.js → _server.ts.js-DhpVdO1p.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-TBvdVyc-.js → _server.ts.js-DmdgYa9p.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-CIttYBu6.js → _server.ts.js-Dz22C5Oc.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-D8oCGNZO.js → _server.ts.js-DFZimBsr.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-g1pY8An3.js → _server.ts.js-xQVDvaLL.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-D4TVO5R1.js → _server.ts.js-vSP17Umu.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-xLCMogeA.js → _server.ts.js-CRbLNZwV.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-CI-gKlsl.js → _server.ts.js-NnSaW2ui.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-CoM4JCaD.js → _server.ts.js-B_bNv5Rb.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-d03KFS_3.js → _server.ts.js-xDx3TswX.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DETako8r.js → _server.ts.js-DXQjVykz.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-Ca4RBqlr.js → _server.ts.js-mFTzbdMz.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-Bvl_HTXC.js → _server.ts.js-CQwT7ZXd.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-BIJzWvqi.js → _server.ts.js-BAO68cNk.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-DUDgt9UQ.js → _server.ts.js-CTJ1ub0U.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-B8EQR_Y9.js → _server.ts.js-WdB3REaP.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-DtU-nqAz.js → _server.ts.js-C9UD4jOU.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-BOxpnZI1.js → _server.ts.js-Dkij69tw.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-zD4NOGXM.js → _server.ts.js-CeTvV9nP.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-DojyOKEB.js → _server.ts.js-COx2XJO9.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-alp8EfXV.js → _server.ts.js-ftRSLVkK.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-BexKsKLn.js → _server.ts.js-Bsx4lHpp.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-Ml6j0WCs.js → _server.ts.js-BppnE5BC.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-DNnU2Kh1.js → _server.ts.js-Gqwhj3Jr.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-DWGEum0i.js → _server.ts.js-CbPpORog.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-CyCQh4xv.js → _server.ts.js-DVip_Q6n.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-D-Td7jnF.js → _server.ts.js-DnGmNxrE.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-cjltaY9-.js → _server.ts.js-zPPo2S2T.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-CUbj1mpd.js → _server.ts.js-Bx2c6dMt.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-BT1aeWsT.js → _server.ts.js-BarbsV9y.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-D3zqfuxP.js → _server.ts.js-D4DgKHLG.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-pWuSZcd6.js → _server.ts.js-I42PMQ4f.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-DRdrgqbU.js → _server.ts.js-Cpcb_-3s.js} +6 -9
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-OSwF25f9.js → _server.ts.js-Bt82w57y.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-D0ZPP3Hu.js → _server.ts.js-CBNLk0kR.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-pob8ZUA4.js → _server.ts.js-CAy-PnPf.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-Dnn1Ck5w.js → _server.ts.js-DJsxRu_J.js} +5 -5
- package/build/server/chunks/entries/{hooks.server.js-Ba5h-Ow1.js → hooks.server.js-DP6V3oGk.js} +5 -5
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-daNn9XCs.js → _layout.server.ts.js-bqdgxqy5.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.server.ts.js-Ca7VKy_t.js → _page.server.ts.js-DmT_6LZz.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.svelte.js-CdplbKoe.js → _page.svelte.js-DFWU8yJc.js} +8 -8
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-BmVbkNhh.js → _page.server.ts.js-BdI5Bl75.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-DM9Z4DjM.js → _page.server.ts.js-ZOYAnM_g.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.svelte.js-DfBCOF77.js → _page.svelte.js-BE2e7Hyi.js} +7 -7
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-V32EvhsD.js → _page.server.ts.js-CWf8RxOy.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-ByuPMNrs.js → _page.server.ts.js-BTfsZht8.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-D4hamuGQ.js → _page.server.ts.js-o_cuSwWH.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-CZ66oSeD.js → _page.server.ts.js-DPqNxi58.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-DNx_cf87.js → _page.svelte.js-BddxZY9X.js} +3 -3
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-B66YDJlz.js → _page.server.ts.js-NvhMRXin.js} +2 -2
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.svelte.js-IxIvs80b.js → _page.svelte.js-BYHP64gx.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-Dg6skd-i.js → _page.server.ts.js-ZNFvlLOS.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/{_page.svelte.js-CZuOnAvk.js → _page.svelte.js-B9P8UZOd.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-LCEiVdUu.js → _page.server.ts.js-CIFxbd8n.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.svelte.js-BiaWDy5c.js → _page.svelte.js-CcwDpwg7.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-Bx_qWCvz.js → _page.server.ts.js-CxzZpBL2.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-D8qPhcbQ.js → _page.server.ts.js-BIwdjBgl.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-BYMvJBgQ.js → _page.server.ts.js-C8KVdW_q.js} +2 -2
- package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-DTKHEBOM.js → _page.server.ts.js-Bdohjqlm.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-CXFxuG8I.js → _page.server.ts.js-Et20xA2U.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-B_pDK0q3.js → _page.server.ts.js-B8chH9Vi.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-8pc_xbfL.js → _page.server.ts.js-DzzCMiD4.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-CqOE_I-8.js → _page.server.ts.js-BfdXFrRT.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-D7Xv3cWu.js → _page.server.ts.js-DVlBLn5S.js} +2 -2
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DmJ-JBh7.js → _page.server.ts.js-D6jIgQJ4.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-DqCDx4eM.js → _page.server.ts.js-Ux_kUFGa.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-Dx2EX3aP.js → _page.svelte.js-016yK-eG.js} +6 -6
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-pBPhifMt.js → _page.server.ts.js-2jI6Wnm5.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-DAhkOhKH.js → _page.server.ts.js-Gz8g7Lxm.js} +2 -2
- package/build/server/chunks/{handler-DsF0-ycu.js → handler-BBfqHGlL.js} +3 -3
- package/build/server/chunks/{index.js-DtxhOtsl.js → index.js-otQ83TL7.js} +2 -2
- package/build/server/chunks/{manifest.js-B9fXERnp.js → manifest.js-CwfU9jR_.js} +85 -85
- package/build/server/chunks/nodes/{0.js-idvnpSGx.js → 0.js-DY-FCb4h.js} +7 -7
- package/build/server/chunks/nodes/{1.js-BbZVNmme.js → 1.js-C1gj4J7r.js} +2 -2
- package/build/server/chunks/nodes/{10.js-7xwnxTBd.js → 10.js-D8sF_M7G.js} +2 -2
- package/build/server/chunks/nodes/{11.js-CN7D7Wtv.js → 11.js-DGbnw6E-.js} +8 -8
- package/build/server/chunks/nodes/{12.js-D0a9JV9J.js → 12.js-yixeL-nb.js} +9 -9
- package/build/server/chunks/nodes/{13.js-Gyan1Es0.js → 13.js-CgHVwdU1.js} +9 -9
- package/build/server/chunks/nodes/{14.js-BN2FgqUX.js → 14.js-IMBVJfKF.js} +9 -9
- package/build/server/chunks/nodes/{15.js-iDbZKSJO.js → 15.js-Bn-Gtc7-.js} +8 -8
- package/build/server/chunks/nodes/{16.js-5G5kk7kt.js → 16.js-CaZFpcDh.js} +6 -6
- package/build/server/chunks/nodes/{17.js-nlIQGV44.js → 17.js-BR4Pwbjy.js} +2 -2
- package/build/server/chunks/nodes/{19.js-CGgokEZO.js → 19.js-DTnGR4UX.js} +6 -6
- package/build/server/chunks/nodes/{2.js-worFzw4y.js → 2.js-DuZD1_ae.js} +8 -8
- package/build/server/chunks/nodes/{20.js-D0I7U4C9.js → 20.js-c7-2nU-p.js} +7 -7
- package/build/server/chunks/nodes/{21.js-CvRY-52P.js → 21.js-Yv1PzkRI.js} +7 -7
- package/build/server/chunks/nodes/{22.js-DwK7gqoW.js → 22.js-B_RyHclK.js} +7 -7
- package/build/server/chunks/nodes/{23.js-CJjm9tcQ.js → 23.js-BlDPhnR6.js} +8 -8
- package/build/server/chunks/nodes/{24.js-CckNMPKn.js → 24.js-D7qarZq6.js} +4 -4
- package/build/server/chunks/nodes/{25.js-BBDACqTg.js → 25.js-BIbn9KYt.js} +8 -8
- package/build/server/chunks/nodes/{26.js-BWq3B0wW.js → 26.js-D0_dD3EO.js} +9 -9
- package/build/server/chunks/nodes/{27.js-MgKQWlAq.js → 27.js-B0p1due2.js} +7 -7
- package/build/server/chunks/nodes/{28.js-xpq2RBgo.js → 28.js-CRdgyvv_.js} +7 -7
- package/build/server/chunks/nodes/{3.js-DOJOLxlE.js → 3.js-DKrxSrj9.js} +7 -7
- package/build/server/chunks/nodes/{4.js-acwNoMWi.js → 4.js-BRXw-v-L.js} +8 -8
- package/build/server/chunks/nodes/{5.js-DYuaSV-G.js → 5.js-C3ug9NBN.js} +6 -6
- package/build/server/chunks/nodes/{6.js-DA40mCwd.js → 6.js-BuWS4Z2-.js} +7 -7
- package/build/server/chunks/nodes/{7.js-D9HXWm_c.js → 7.js-BaxSjbK8.js} +7 -7
- package/build/server/chunks/nodes/{8.js-Dsx-zrYi.js → 8.js-Cqzz53er.js} +8 -8
- package/build/server/chunks/nodes/{9.js-D5YifYpK.js → 9.js-BGvUqMX3.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/wh-vault.js +573 -205
- package/package.json +1 -1
- package/plugins/vault/.wheelhouse-plugin/plugin.json +1 -1
- package/build/client/_app/immutable/chunks/AiTV8eMU.js.br +0 -3
- package/build/client/_app/immutable/chunks/AiTV8eMU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B2lgXXfo.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2lgXXfo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BL5PiS2m.js +0 -5
- package/build/client/_app/immutable/chunks/BL5PiS2m.js.br +0 -0
- package/build/client/_app/immutable/chunks/BL5PiS2m.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BMTKBS3C.js.br +0 -0
- package/build/client/_app/immutable/chunks/BMTKBS3C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BNXbHZ4s.js.br +0 -0
- package/build/client/_app/immutable/chunks/BNXbHZ4s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BbaeceI1.js.br +0 -0
- package/build/client/_app/immutable/chunks/BbaeceI1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C31k8QGL.js.br +0 -0
- package/build/client/_app/immutable/chunks/C31k8QGL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCnNaKfv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCnNaKfv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLrvyXks.js +0 -3
- package/build/client/_app/immutable/chunks/CLrvyXks.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLrvyXks.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CisWRQQd.js.br +0 -0
- package/build/client/_app/immutable/chunks/CisWRQQd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClPiDuuz.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClPiDuuz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D6cF08T_.js.br +0 -0
- package/build/client/_app/immutable/chunks/D6cF08T_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D85QHpKq.js +0 -2
- package/build/client/_app/immutable/chunks/D85QHpKq.js.br +0 -0
- package/build/client/_app/immutable/chunks/D85QHpKq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DEvJ7EGc.js.br +0 -0
- package/build/client/_app/immutable/chunks/DEvJ7EGc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_KEoseW.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_KEoseW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjY7ZMGz.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjY7ZMGz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Go4g8RRQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Go4g8RRQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ff7mriJ8.js.br +0 -0
- package/build/client/_app/immutable/chunks/ff7mriJ8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/g4TsmxH1.js.br +0 -0
- package/build/client/_app/immutable/chunks/g4TsmxH1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/w66b3iDh.js +0 -1
- package/build/client/_app/immutable/chunks/w66b3iDh.js.br +0 -0
- package/build/client/_app/immutable/chunks/w66b3iDh.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.gl-vT7jm.js.br +0 -0
- package/build/client/_app/immutable/entry/app.gl-vT7jm.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BobUuVbD.js +0 -1
- package/build/client/_app/immutable/entry/start.BobUuVbD.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BobUuVbD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.D7nx1zUv.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.D7nx1zUv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.GyxmcDpk.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.GyxmcDpk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.Bu8ENATY.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Bu8ENATY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.LfkwXgTW.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.LfkwXgTW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BxPjEbD6.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BxPjEbD6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.BlAJ4Vfy.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BlAJ4Vfy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.D6gfCfYW.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.D6gfCfYW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.4lw2WKq9.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.4lw2WKq9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.BmzqQRka.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.BmzqQRka.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.k-iDf2FK.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.k-iDf2FK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.Dp_e5Due.js.br +0 -5
- package/build/client/_app/immutable/nodes/19.Dp_e5Due.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.tfxqjTNR.js +0 -25
- package/build/client/_app/immutable/nodes/2.tfxqjTNR.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.tfxqjTNR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.Bz0SO3wK.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.Bz0SO3wK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.DfM6w7Sq.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DfM6w7Sq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.CgDRkCuX.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.CgDRkCuX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.Cqr07Z9o.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.Cqr07Z9o.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.CRrpf_iS.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.CRrpf_iS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.BA3kP5aP.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.BA3kP5aP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.CipAeCRP.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.CipAeCRP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.BSk8udo-.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.BSk8udo-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.Bfp3WQon.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Bfp3WQon.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.F2NZin5q.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.F2NZin5q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CiTAJagN.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CiTAJagN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.CFAVd444.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DgSB72Qx.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DgSB72Qx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.ClGaEjTD.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.ClGaEjTD.js.gz +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as tr}from"./BNvTK-L4.js";import"./DsnmJJEf.js";import{l as De,p as Ee,u as Fe,g as e,f as he,s as n,a as i,b as Me,i as k,m as ar,h as m,r as v,v as ke,c as l,j as Le,n as Ce,y as me,t as z,d as E,q as nr,o as H}from"./DFFTcnMk.js";import{i as c}from"./fxwDaXQ6.js";import{c as or}from"./CTO6Jnxr.js";import{s as D,e as Oe,a as ge,f as we}from"./VI4uBLfk.js";import{s as Pe,r as Ue,p as fe}from"./DtxmqMMR.js";import{a as ir}from"./DKQe4Tss.js";import{p as ye,u as Re,P as sr,L as Ne,c as Se,M as We,d as dr,C as lr}from"./
|
|
1
|
+
import{i as tr}from"./BNvTK-L4.js";import"./DsnmJJEf.js";import{l as De,p as Ee,u as Fe,g as e,f as he,s as n,a as i,b as Me,i as k,m as ar,h as m,r as v,v as ke,c as l,j as Le,n as Ce,y as me,t as z,d as E,q as nr,o as H}from"./DFFTcnMk.js";import{i as c}from"./fxwDaXQ6.js";import{c as or}from"./CTO6Jnxr.js";import{s as D,e as Oe,a as ge,f as we}from"./VI4uBLfk.js";import{s as Pe,r as Ue,p as fe}from"./DtxmqMMR.js";import{a as ir}from"./DKQe4Tss.js";import{p as ye,u as Re,P as sr,L as Ne,c as Se,M as We,d as dr,C as lr}from"./kdhJpKON.js";import{f as cr,a as vr,g as ur,e as mr,i as fr}from"./C_4BzEag.js";import{L as _e}from"./DOKomeYI.js";import{F as ze,h as hr,m as pr}from"./DWWzLM9n.js";import{d as gr}from"./BVXUMEgB.js";import{I as Ge}from"./CDH1GGn5.js";import{E as Ae}from"./CDPChpWC.js";import{C as _r}from"./DiNK0cSx.js";import{G as Ke}from"./BZIE5Pwu.js";import{M as xr}from"./POTd6WHI.js";import{H as qe}from"./Dve7Csph.js";import{S as br}from"./QNY3mQIp.js";import{C as kr}from"./D1KdArBH.js";import{C as wr}from"./BxqvNU6L.js";import{X as yr}from"./szetP8fm.js";var Cr=new Set(["$$slots","$$events","$$legacy"]);function zr(t,r){let o=Ue(r,Cr);const a={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"}]]};Ge(t,Pe(()=>o,{get icon(){return a}}))}var Ar=new Set(["$$slots","$$events","$$legacy"]);function Tr(t,r){let o=Ue(r,Ar);const a={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01"}],["path",{d:"M12 8v4"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"}]],aliases:["alert-octagon"]};Ge(t,Pe(()=>o,{get icon(){return a}}))}const Dr=28,Er=300,Te=(t,r={})=>({choice:t,picks:null,decided:null,...r}),Mr={merge:[{label:"Merge",choice:"approve"},{label:"Not yet",choice:"skip"}],preview:[{label:"Sign it off",choice:"approve"},{label:"Request changes",choice:"fix"}],hold:[{label:"Go ahead",choice:"approve"},{label:"Not like this",choice:"fix"}],decision:[{label:"Go ahead",choice:"approve"},{label:"Change course",choice:"fix"}],blocked:[{label:"Go ahead",choice:"approve"},{label:"Try another way",choice:"fix"}],review:[{label:"Keep it as is",choice:"approve"},{label:"Fix it",choice:"fix"},{label:"Leave it for later",choice:"skip"}]},Ir=/^(?:which|what|how|where|who|when|why)\b/i;function Fr(t){const r=(t??"").match(/[^.?!]*\?/g),o=r?.[r.length-1]?.trim();return!!o&&Ir.test(o)}function Be(t){const r=t.choices;if(r){const[p]=r.calls;return r.calls.length===1&&p.options.length?{kind:"choice",prompt:p.prompt,from:"card",options:p.options.map(h=>({id:h.id,label:h.label,detail:h.detail,recommended:h.recommended,answer:Te("approve",{picks:{[p.id]:h.id}})}))}:{kind:"picks",prompt:null,choices:r,from:"card"}}if((t.kind==="hold"||t.kind==="decision")&&Fr(t.question))return{kind:"text",prompt:null,from:"card"};const o=t.recommendation?.choice??(t.kind==="merge"?"approve":null),a=Mr[t.kind],q=a.map(p=>({id:p.choice,label:p.label,detail:null,recommended:p.choice===o,answer:Te(p.choice)}));return{kind:a.length===2?"buttons":"choice",prompt:null,options:q,from:"card"}}const Xe=/```decision-form[^\n]*\n([\s\S]*?)(?:```|$)/g,He=/\s*\((?:recommended|rec)\)\s*/i,Lr=/^\(written(?: answer)?\)$/i,je=t=>t.replace(/\s+/g," ").trim();function na(t){const r=[...t.matchAll(Xe)],o=r[r.length-1]?.[1];if(o===void 0)return null;let a=null,q=!1;const p=[];for(const G of o.split(`
|
|
2
2
|
`)){const te=G.trim();if(!te)continue;const K=/^[-*•]\s+(.*)$/.exec(te)?.[1];if(K===void 0){a??=je(te);continue}if(Lr.test(K.trim())){q=!0;continue}const ae=He.test(K),$=je(K.replace(He," ")),j=$.search(/:\s|\s[–—]\s/),ie=(j>0?$.slice(0,j):$).trim().slice(0,Er),A=j>0&&$.slice(j).replace(/^[:–—]?\s*/,"").trim()||null;ie&&p.push({id:`o${p.length+1}`,label:ie,detail:A,recommended:ae,answer:Te("approve",{decided:ie})})}return p.length?{kind:p.length===2&&p.every(G=>!G.detail&&G.label.length<=Dr)?"buttons":"choice",prompt:a,options:p,from:"firstmate"}:q||a?{kind:"text",prompt:a,from:"firstmate"}:null}const oa=t=>t.replace(Xe,"").trim();function Or(t){if(!t.detail||t.label.length>3)return t.label;const r=t.detail.length>40?t.detail.slice(0,39).trimEnd()+"…":t.detail;return`${t.label} (${r})`}function Ye(t){return t.kind==="buttons"||t.kind==="choice"?t.options.find(r=>r.recommended)??null:null}function ia(t,r){if(r.picks)return r.picks;if(t&&(t.kind==="buttons"||t.kind==="choice")){const o=t.options.find(a=>a.answer.choice===r.choice&&!a.answer.decided);if(o)return o.label}return r.label}const Rr=(t,r,o,a)=>tr.answer(t,r.choice,o,a,r.picks,r.decided);async function sa(t,r){const o=Ye(Be(t));return o?Rr(t,o.answer,null,r):!1}var Nr=l('<div class="overflow-hidden rounded-t-md border-b"><!></div>'),Sr=l('<span class="inline-flex items-center gap-1 text-muted-foreground" data-where-preview="down"><!>Preview stopped</span>'),qr=l('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 text-muted-foreground hover:text-foreground hover:underline max-md:min-h-11"> <!></a>'),Hr=l('<button type="button" class="inline-flex cursor-pointer items-center gap-1 font-medium text-sea hover:underline max-md:min-h-11" aria-haspopup="dialog" data-where-preview=""><!>Open the preview</button> <!>',1),jr=l('<span class="inline-flex items-center gap-1 text-muted-foreground" data-where-board="down"><!>Board stopped</span>'),Pr=l('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 font-medium text-sea hover:underline max-md:min-h-11" data-where-board=""><!>Open the board<!></a>'),Ur=l('<div class="mt-2.5 rounded-md border bg-background/60 text-xs" data-decision-where=""><!> <div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-2"><span class="text-muted-foreground">Where it is</span> <!> <!></div></div>'),Wr=l("<!> <!>",1);function Gr(t,r){Ee(r,!0);const o=k(()=>r.card.evidence),a=k(()=>e(o).previewTask??(e(o).preview?Re(e(o).preview):null)),q=k(()=>e(o).board?Re(e(o).board):null);Fe(()=>{if(e(a))return ye.watch(e(a))}),Fe(()=>{if(e(q))return ye.watch(e(q))});const p=k(()=>e(a)?ye.checks[e(a)]:void 0),h=k(()=>e(q)?ye.checks[e(q)]:void 0),G=k(()=>e(p)?.state==="down"),te=k(()=>e(h)?.state==="down"),K=k(()=>e(p)?.url??e(o).preview),ae=w=>w?URL.parse(w)?.host??w:"",$=k(()=>r.card.kind==="preview"&&!!e(o).preview);let j=ar(null);const ie=w=>ke(j,{from:w.currentTarget.getBoundingClientRect()},!0);var A=Wr(),B=he(A);{var ee=w=>{var S=Ur(),M=m(S);{var g=_=>{var R=Nr(),oe=m(R);{var de=x=>{Ne(x,{get taskId(){return e(o).previewTask},compact:!0,toolbar:!1,onopen:()=>ke(j,{from:null},!0)})},le=x=>{Ne(x,{get url(){return e(o).preview},compact:!0,toolbar:!1,onopen:()=>ke(j,{from:null},!0)})};c(oe,x=>{e(o).previewTask?x(de):x(le,-1)})}v(R),i(_,R)};c(M,_=>{e($)&&e(a)&&_(g)})}var y=n(M,2),I=n(m(y),2);{var V=_=>{var R=Le(),oe=he(R);{var de=x=>{var u=Sr(),f=m(u);Se(f,{class:"size-3.5 shrink-0","aria-hidden":"true"}),Ce(),v(u),i(x,u)},le=x=>{var u=Hr(),f=he(u),T=m(f);We(T,{class:"size-3.5 shrink-0","aria-hidden":"true"}),Ce(),v(f);var F=n(f,2);{var J=P=>{var C=qr(),X=m(C,!0),U=n(X);Ae(U,{class:"size-3.5 shrink-0","aria-hidden":"true"}),v(C),z(Y=>{D(C,"href",e(K)),D(C,"title",e(K)),E(X,Y)},[()=>ae(e(o).preview)]),i(P,C)};c(F,P=>{e(K)&&P(J)})}me("click",f,ie),i(x,u)};c(oe,x=>{e(G)?x(de):x(le,-1)})}i(_,R)};c(I,_=>{e(o).preview&&_(V)})}var ne=n(I,2);{var O=_=>{var R=Le(),oe=he(R);{var de=x=>{var u=jr(),f=m(u);Se(f,{class:"size-3.5 shrink-0","aria-hidden":"true"}),Ce(),v(u),i(x,u)},le=x=>{var u=Pr(),f=m(u);zr(f,{class:"size-3.5 shrink-0","aria-hidden":"true"});var T=n(f,2);Ae(T,{class:"size-3.5 shrink-0","aria-hidden":"true"}),v(u),z(()=>{D(u,"href",e(o).board),D(u,"title",e(o).board)}),i(x,u)};c(oe,x=>{e(te)?x(de):x(le,-1)})}i(_,R)};c(ne,_=>{e(o).board&&_(O)})}v(y),v(S),i(w,S)};c(B,w=>{(e(o).preview||e(o).board)&&w(ee)})}var re=n(B,2);{var se=w=>{sr(w,{get taskId(){return e(o).previewTask},get title(){return r.card.taskTitle},get url(){return e(o).preview},get from(){return e(j).from},onclose:()=>ke(j,null)})};c(re,w=>{e(j)&&e(o).preview&&w(se)})}i(t,A),Me()}De(["click"]);var Kr=l('<button class="inline-flex cursor-pointer items-center gap-1 text-sea hover:underline"><!> <span class="ml-1 font-mono break-all text-muted-foreground"> </span></button> <a class="ml-2 text-sea underline-offset-2 hover:underline" data-doc-link="">Open in the reader</a>',1),Br=l('<span class="inline-flex items-center gap-1 text-muted-foreground"><!>Report <span class="font-mono break-all"> </span> (not found)</span>'),Xr=l('<p class="text-danger" role="alert"> </p>'),Yr=l('<p class="text-muted-foreground">Reading the report…</p>'),Qr=l('<div class="chat-md"></div>'),Vr=l('<div class="mt-2 max-h-[28rem] overflow-y-auto rounded-md border bg-background/60 px-3 py-2 text-sm"><!></div>'),Jr=l('<div class="mt-2 text-xs"><!> <!></div>'),Zr=l('<span class="font-normal"> </span>'),$r=l('<span class="mr-1.5 rounded bg-danger/10 px-1 text-xs font-medium text-danger">Serious</span>'),et=l('<p class="mt-0.5 font-mono text-xs text-muted-foreground"> </p>'),rt=l('<p class="mt-1 text-xs leading-relaxed text-muted-foreground"><!></p>'),tt=l('<li><p class="leading-snug"><!><!></p> <!> <!></li>'),at=l('<ol class="space-y-2.5"></ol>'),nt=l('<div><p class="text-xs font-medium text-muted-foreground">As Firstmate wrote it</p> <p class="mt-0.5 leading-relaxed text-muted-foreground"><!></p></div>'),ot=l('<p class="leading-relaxed whitespace-pre-line text-muted-foreground"><!></p>'),it=l('<span class="ml-1.5 text-muted-foreground"> </span>'),st=l('<li><a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 break-all text-sea hover:underline"><!> </a><!></li>'),dt=l('<li class="inline-flex items-center gap-1 text-muted-foreground"><!>Findings file <span class="font-mono break-all"> </span></li>'),lt=l('<ul class="flex flex-col gap-1 text-xs"><!> <!></ul>'),ct=l('<li><a target="_blank" rel="noreferrer" class="block"><img class="h-20 w-32 rounded border object-cover object-top" loading="lazy"/></a></li>'),vt=l('<ul class="flex flex-wrap gap-2"></ul>'),ut=l('<div class="mt-2 space-y-3 rounded-md border bg-background/60 p-3 text-sm"><!> <!> <!> <!> <!></div>'),mt=l('<button class="touch-target mt-3 flex cursor-pointer items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground">Evidence<!><!></button> <!>',1),ft=l("<!> <!> <!>",1);function ht(t,r){Ee(r,!0);let o=fe(r,"expanded",3,!1);const a=k(()=>r.card.evidence),q=k(()=>r.card.choices),p=k(()=>!!(e(a).text||e(a).findings.length||e(a).pr||e(a).screenshots.length||e(a).file||e(q)));let h=nr({open:!1,text:null,error:null});async function G(){h.open=!h.open;const A=e(a).report?.url;if(!(!h.open||h.text!==null||!A))try{const B=await fetch(A);if(!B.ok)throw new Error;h.text=await B.text(),h.error=null}catch{h.error="The report could not be read."}}var te=ft(),K=he(te);Gr(K,{get card(){return r.card}});var ae=n(K,2);{var $=A=>{var B=Jr(),ee=m(B);{var re=M=>{var g=Kr(),y=he(g),I=m(y);ze(I,{class:"size-3.5 shrink-0","aria-hidden":"true"});var V=n(I,1,!0),ne=n(V),O=H(ne,!0);v(y);var _=n(y,2);z(R=>{D(y,"aria-expanded",h.open),E(V,h.open?"Hide the report":"Read the report"),E(O,e(a).report.path),D(_,"href",R)},[()=>gr(e(a).report.path)]),me("click",y,G),i(M,g)},se=M=>{var g=Br(),y=m(g);ze(y,{class:"size-3.5 shrink-0","aria-hidden":"true"});var I=n(y,2),V=H(I,!0);Ce(),v(g),z(()=>E(V,e(a).report.path)),i(M,g)};c(ee,M=>{e(a).report.url?M(re):M(se,-1)})}var w=n(ee,2);{var S=M=>{var g=Vr(),y=m(g);{var I=O=>{var _=Xr(),R=H(_,!0);z(()=>E(R,h.error)),i(O,_)},V=O=>{var _=Yr();i(O,_)},ne=O=>{var _=Qr();hr(_,()=>pr(h.text),!0),v(_),i(O,_)};c(y,O=>{h.error?O(I):h.text===null?O(V,1):O(ne,-1)})}v(g),i(M,g)};c(w,M=>{h.open&&M(S)})}v(B),i(A,B)};c(ae,A=>{e(a).report&&A($)})}var j=n(ae,2);{var ie=A=>{var B=mt(),ee=he(B),re=n(m(ee));{let g=k(()=>o()?"rotate-180":"");_r(re,{get class(){return`size-3.5 transition-transform ${e(g)??""}`},"aria-hidden":"true"})}var se=n(re);{var w=g=>{var y=Zr(),I=H(y);z(()=>E(I,`${e(a).findings.length?` · ${e(a).findings.length} ${e(a).findings.length===1?"finding":"findings"}`:""}${e(a).pr?" · pull request":""}${e(a).screenshots.length?` · ${e(a).screenshots.length} ${e(a).screenshots.length===1?"screenshot":"screenshots"}`:""}`)),i(g,y)};c(se,g=>{o()||g(w)})}v(ee);var S=n(ee,2);{var M=g=>{var y=ut(),I=m(y);{var V=u=>{var f=at();Oe(f,21,()=>e(a).findings,T=>T.id,(T,F)=>{var J=tt(),P=m(J),C=m(P);{var X=N=>{var Z=$r();i(N,Z)};c(C,N=>{e(F).serious&&N(X)})}var U=n(C);_e(U,{get text(){return e(F).summary}}),v(P);var Y=n(P,2);{var ve=N=>{var Z=et(),ue=H(Z,!0);z(()=>E(ue,e(F).where)),i(N,Z)};c(Y,N=>{e(F).where&&N(ve)})}var xe=n(Y,2);{var be=N=>{var Z=rt(),ue=m(Z);_e(ue,{get text(){return e(F).detail}}),v(Z),i(N,Z)};c(xe,N=>{e(F).detail&&N(be)})}v(J),i(T,J)}),v(f),i(u,f)};c(I,u=>{e(a).findings.length&&u(V)})}var ne=n(I,2);{var O=u=>{var f=nt(),T=n(m(f),2),F=m(T);_e(F,{get text(){return r.card.question}}),v(T),v(f),i(u,f)};c(ne,u=>{e(q)&&u(O)})}var _=n(ne,2);{var R=u=>{var f=ot(),T=m(f);_e(T,{get text(){return e(a).text}}),v(f),i(u,f)};c(_,u=>{e(a).text&&u(R)})}var oe=n(_,2);{var de=u=>{var f=lt(),T=m(f);{var F=C=>{var X=st(),U=m(X),Y=m(U);Ke(Y,{class:"size-3.5 shrink-0","aria-hidden":"true"});var ve=n(Y,1,!0);v(U);var xe=n(U);{var be=N=>{var Z=it(),ue=H(Z);z(()=>E(ue,`· checks ${e(a).checks??""}`)),i(N,Z)};c(xe,N=>{e(a).checks&&N(be)})}v(X),z(()=>{D(U,"href",e(a).pr.url),E(ve,e(a).pr.url)}),i(C,X)};c(T,C=>{e(a).pr&&C(F)})}var J=n(T,2);{var P=C=>{var X=dt(),U=m(X);ze(U,{class:"size-3.5 shrink-0","aria-hidden":"true"});var Y=n(U,2),ve=H(Y,!0);v(X),z(()=>E(ve,e(a).file)),i(C,X)};c(J,C=>{e(a).file&&C(P)})}v(f),i(u,f)};c(oe,u=>{(e(a).pr||e(a).file)&&u(de)})}var le=n(oe,2);{var x=u=>{var f=vt();Oe(f,21,()=>e(a).screenshots,T=>T.url,(T,F)=>{var J=ct(),P=m(J),C=H(P);v(J),z(()=>{D(P,"href",e(F).url),D(C,"src",e(F).url),D(C,"alt",e(F).name)}),i(T,J)}),v(f),i(u,f)};c(le,u=>{e(a).screenshots.length&&u(x)})}v(y),i(g,y)};c(S,g=>{o()&&g(M)})}z(()=>D(ee,"aria-expanded",o())),me("click",ee,function(...g){r.onToggle?.apply(this,g)}),i(A,B)};c(j,A=>{e(p)&&A(ie)})}i(t,te),Me()}De(["click"]);const pt=7;function da(t,r,o){const a=t.filter(h=>!cr(h)&&vr(h)),q=o-pt*864e5,p=r.filter(h=>Date.parse(h.decidedAt)>=q).sort((h,G)=>Date.parse(G.decidedAt)-Date.parse(h.decidedAt));return{open:a,made:p,count:a.length+p.length}}const gt=t=>t.length>90?t.slice(0,87).trimEnd()+"…":t;function la(t){const r=t.calls[0],o=`I'd decide differently on "${gt(r?.question??t.taskTitle)}" (your call: ${r?.verdict??t.verdict}). `;return`/?chat=${encodeURIComponent(t.taskId)}&draft=${encodeURIComponent(o)}`}const _t=t=>`/?decision=${encodeURIComponent(t)}`;var xt=l('<span class="rounded-sm border px-1.5 text-[0.95rem] leading-[1.15rem] font-semibold tracking-[0.08em] text-muted-foreground [font-variant-caps:all-small-caps]"> </span>'),bt=l('<span class="rounded bg-muted px-1.5 text-xs leading-[1.15rem] font-medium text-foreground/80"> </span>'),kt=l('<span class="ml-auto text-xs text-muted-foreground tabular-nums"> </span>'),wt=l('<span class="text-muted-foreground">· <!></span>'),yt=l('<p class="mt-2.5 border-l-2 border-brass pl-2.5 text-sm leading-snug"><span class="font-medium"> </span><!></p>'),Ct=l('<p class="mt-3 text-sm text-danger" role="alert"> </p>'),zt=l("<kbd>Enter</kbd>"),At=l("<kbd>a</kbd>"),Tt=l('<button class="inline-flex min-h-11 cursor-pointer items-center gap-1.5 rounded-md border bg-background px-3 text-sm font-medium transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9" data-agree=""><!> <!></button>'),Dt=l('<a class="inline-flex min-h-11 items-center gap-1.5 rounded-md border bg-background px-3 text-sm font-medium transition-colors hover:bg-accent sm:min-h-9" title="Open the pull request to review it; this answers nothing" data-review-pr=""><!>Review<!></a>'),Et=l("<kbd>l</kbd>"),Mt=l('<button class="inline-flex min-h-11 cursor-pointer items-center gap-1.5 rounded-md px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground sm:min-h-9"><!>Ask me later<!></button>'),It=l("<kbd>c</kbd>"),Ft=l('<button class="inline-flex min-h-11 cursor-pointer items-center gap-1.5 rounded-md px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9" title="No answer needed: Firstmate records it closed."><!>Close<!></button>'),Lt=l('<p class="mt-2 text-sm text-danger" role="alert"> </p>'),Ot=l('<article><header class="flex flex-wrap items-center gap-x-2 gap-y-1"><!> <span><!> </span> <!> <span class="text-xs text-muted-foreground"> </span> <!></header> <h3 class="mt-2 font-sans text-base leading-snug font-medium text-foreground sm:text-[1.05rem]"><!></h3> <a class="touch-target mt-0.5 block text-xs text-muted-foreground hover:text-foreground hover:underline"> </a> <!> <!> <!> <div class="mt-3 flex flex-wrap items-center gap-1.5" role="group" aria-label="Answer"><a class="inline-flex min-h-11 items-center gap-1.5 rounded-md border border-sea bg-sea px-3 text-sm font-medium text-on-accent transition-colors hover:bg-sea/90 sm:min-h-9" title="Open it in the Firstmate chat, with the form that fits it and room to talk it through" data-chat-about=""><!>Chat about this<!></a> <!> <!> <!> <!></div> <!></article>');function ca(t,r){Ee(r,!0);let o=fe(r,"project",3,null),a=fe(r,"active",3,!1),q=fe(r,"expanded",3,!1),p=fe(r,"shortcuts",3,!1),h=fe(r,"canAnswer",3,!0),G=fe(r,"error",3,null);const te={review:{label:"Review question",icon:br},decision:{label:"Decision",icon:qe},blocked:{label:"Stuck",icon:Tr},hold:{label:"Your call",icon:qe},merge:{label:"Merge call",icon:Ke},preview:{label:"Preview sign-off",icon:We}},K=k(()=>te[r.card.kind]),ae=k(()=>r.card.owner==="captain"),$=k(()=>r.card.recommendation),j=k(()=>ur(r.card)),ie=k(()=>_t(r.card.id)),A=k(()=>r.card.evidence.pr?dr.review(r.card.projectId,r.card.evidence.pr):null),B=k(()=>!!r.onClose&&mr(r.card)),ee=k(()=>r.card.choices?.intro||r.card.question),re=k(()=>Ye(Be(r.card))),se=k(()=>e(re)?Or(e(re)):""),w="ml-0.5 hidden rounded border border-current/30 px-1 font-mono text-[0.7rem] leading-4 opacity-70 sm:inline";var S=Ot(),M=m(S),g=m(M);{var y=s=>{var d=xt(),b=H(d,!0);z(()=>E(b,o())),i(s,d)};c(g,s=>{o()&&s(y)})}var I=n(g,2),V=m(I);or(V,()=>e(K).icon,(s,d)=>{d(s,{class:"size-3","aria-hidden":"true"})});var ne=n(V,1,!0);v(I);var O=n(I,2);{var _=s=>{var d=bt(),b=H(d);z(()=>{D(d,"data-second-mate",r.card.secondMate.id),E(b,`From second mate ${r.card.secondMate.id??""}`)}),i(s,d)};c(O,s=>{r.card.secondMate&&s(_)})}var R=n(O,2),oe=H(R,!0),de=n(R,2);{var le=s=>{var d=kt(),b=H(d,!0);z(Q=>E(b,Q),[()=>ir(r.card.askedAt,r.now)]),i(s,d)};c(de,s=>{r.card.askedAt&&s(le)})}v(M);var x=n(M,2),u=m(x);_e(u,{get text(){return e(ee)}}),v(x);var f=n(x,2),T=H(f,!0),F=n(f,2);{var J=s=>{var d=yt(),b=m(d),Q=H(b),ce=n(b);{var L=W=>{var pe=wt(),rr=n(m(pe));_e(rr,{get text(){return e($).text}}),v(pe),i(W,pe)};c(ce,W=>{e($)&&W(L)})}v(d),z(()=>E(Q,`Firstmate recommends${e(re)?`: ${e(se)}`:""}`)),i(s,d)};c(F,s=>{(e($)||e(re))&&s(J)})}var P=n(F,2);ht(P,{get card(){return r.card},get expanded(){return q()},get onToggle(){return r.onToggle}});var C=n(P,2);{var X=s=>{var d=Ct(),b=H(d);z(Q=>E(b,`Not delivered to Firstmate: ${Q??""}. ${r.card.sent.detail??"Try again."??""}`),[()=>r.card.sent.picks??fr(r.card,r.card.sent.choice)]),i(s,d)};c(C,s=>{r.card.sent?.delivery==="failed"&&!G()&&s(X)})}var U=n(C,2),Y=m(U),ve=m(Y);xr(ve,{class:"size-3.5","aria-hidden":"true"});var xe=n(ve,2);{var be=s=>{var d=zt();ge(d,1,we(w)),i(s,d)};c(xe,s=>{p()&&s(be)})}v(Y);var N=n(Y,2);{var Z=s=>{var d=Tt(),b=m(d);kr(b,{class:"size-3.5","aria-hidden":"true"});var Q=n(b),ce=n(Q);{var L=W=>{var pe=At();ge(pe,1,we(w)),i(W,pe)};c(ce,W=>{p()&&W(L)})}v(d),z(()=>{d.disabled=!h(),D(d,"title",`Send Firstmate's recommendation: ${e(se)??""}`),E(Q,`Agree: ${e(se)??""}`)}),me("click",d,function(...W){r.onAgree?.apply(this,W)}),i(s,d)};c(N,s=>{e(re)&&s(Z)})}var ue=n(N,2);{var Qe=s=>{var d=Dt(),b=m(d);lr(b,{class:"size-3.5","aria-hidden":"true"});var Q=n(b,2);{var ce=L=>{Ae(L,{class:"size-3.5","aria-hidden":"true"})};c(Q,L=>{e(A).external&&L(ce)})}v(d),z(()=>{D(d,"href",e(A).href),D(d,"target",e(A).external?"_blank":void 0),D(d,"rel",e(A).external?"noreferrer":void 0)}),i(s,d)};c(ue,s=>{e(A)&&s(Qe)})}var Ie=n(ue,2);{var Ve=s=>{var d=Mt(),b=m(d);wr(b,{class:"size-3.5","aria-hidden":"true"});var Q=n(b,2);{var ce=L=>{var W=Et();ge(W,1,we(w)),i(L,W)};c(Q,L=>{p()&&L(ce)})}v(d),me("click",d,function(...L){r.onLater?.apply(this,L)}),i(s,d)};c(Ie,s=>{r.onLater&&s(Ve)})}var Je=n(Ie,2);{var Ze=s=>{var d=Ft(),b=m(d);yr(b,{class:"size-3.5","aria-hidden":"true"});var Q=n(b,2);{var ce=L=>{var W=It();ge(W,1,we(w)),i(L,W)};c(Q,L=>{p()&&L(ce)})}v(d),z(()=>d.disabled=!h()),me("click",d,function(...L){r.onClose?.apply(this,L)}),i(s,d)};c(Je,s=>{e(B)&&s(Ze)})}v(U);var $e=n(U,2);{var er=s=>{var d=Lt(),b=H(d,!0);z(()=>E(b,G())),i(s,d)};c($e,s=>{G()&&s(er)})}v(S),z(()=>{D(S,"id",`card-${r.card.id??""}`),ge(S,1,`scroll-mt-24 rounded-lg border border-l-[3px] bg-card text-card-foreground transition-shadow ${e(ae)?"border-l-sea":"border-l-brass"} ${a()?"shadow-[0_0_0_2px_var(--ring)]":""} px-4 pt-3.5 pb-3 sm:px-5`),D(S,"aria-current",a()?"true":void 0),D(S,"data-decision-card",r.card.owner),ge(I,1,`flex items-center gap-1 rounded px-1.5 text-xs leading-[1.15rem] font-medium ${e(ae)?"bg-sea/10 text-sea":"bg-muted text-foreground/80"}`),E(ne,e(K).label),E(oe,e(ae)?"Waiting on you":r.card.secondMate?"Its second mate is handling it; yours to take over if you want":"Firstmate is handling it; yours to take over if you want"),D(f,"href",e(j)),E(T,r.card.taskTitle),D(Y,"href",e(ie))}),me("focusin",S,function(...s){r.onFocus?.apply(this,s)}),me("pointerdown",S,function(...s){r.onFocus?.apply(this,s)}),i(t,S),Me()}De(["focusin","pointerdown","click"]);export{ca as D,zr as L,Tr as O,sa as a,Er as b,la as c,_t as d,Be as e,na as f,ht as g,da as h,Rr as i,ia as j,oa as 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"./DFFTcnMk.js";import{i as V}from"./fxwDaXQ6.js";import{c as _}from"./CTO6Jnxr.js";import{l as Qe,r as Ce,a as ze,f as Le}from"./VI4uBLfk.js";import{a as Te}from"./DJKfepuw.js";import{p as C,r as we,s as le}from"./DtxmqMMR.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"./DFFTcnMk.js";import{i as V}from"./fxwDaXQ6.js";import{c as _}from"./CTO6Jnxr.js";import{l as Qe,r as Ce,a as ze,f as Le}from"./VI4uBLfk.js";import{a as Te}from"./DJKfepuw.js";import{p as C,r as we,s as le}from"./DtxmqMMR.js";import{p as Xe}from"./Mzyfuo21.js";import{c as Ye,D as et,b as be,m as tt,a as rt}from"./BaVXUP2t.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"./BRfuAoq7.js";import{s as Fe}from"./B9PwX1FR.js";import{B as X}from"./I9e8Fl7s.js";import{C as vt,d as gt,b as ct,i as pt}from"./BveXuSek.js";import{P as mt}from"./CH2k9UCp.js";import{L as _t}from"./DLeaKE5r.js";import{T as ht}from"./CxBx2YtS.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
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as yt}from"./l_pUsC7d.js";import{H as B,N as Y,r as me,n as N,i as Ue,b as T,s as $,a as Se,f as tt,g as Ie,c as oe,d as be,S as Oe,P as rt,p as I,o as Ne,e as wt,h as vt,u as De,j as bt,w as Et,k as Xe,l as X,m as At,q as nt,t as kt,v as St,x as at}from"./Lwq8jsO7.js";import{G as se,a8 as It,A as Rt}from"./DFFTcnMk.js";class te{constructor(t,r){this.status=t,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class xe{constructor(t,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=r}}class Ce extends Error{constructor(t,r,n){super(n),this.status=t,this.text=r}}const Pt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,Lt=/^\/\((?:[^)]+)\)$/;function Tt(e){const t=[];return{pattern:e==="/"||Lt.test(e)?/^\/$/:new RegExp(`^${Ut(e).map(n=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(i)return t.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(a)return t.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const o=n.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Ee(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Ee(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const l=Pt.exec(c),[,d,p,u,h]=l;return t.push({name:u,matcher:h,optional:!!d,rest:!!p,chained:p?f===1&&o[0]==="":!1}),p?"([^]*?)":d?"([^/]*)?":"([^/]+?)"}return Ee(c)}).join("")}).join("")}/?$`),params:t}}function jt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Ut(e){return e.slice(1).split("/").filter(jt)}function Ot(e,t,r){const n={},i=e.slice(1),a=i.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let f=i[s-o];if(c.chained&&c.rest&&o&&(f=i.slice(s-o,s+1).filter(l=>l).join("/"),o=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||r[c.matcher](f)){n[c.name]=f;const l=t[s+1],d=i[s+1];l&&!l.rest&&l.optional&&d&&c.chained&&(o=0),!l&&!d&&Object.keys(n).length===a.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return n}function Ee(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Nt({nodes:e,server_loads:t,dictionary:r,matchers:n}){const i=new Set(t);return Object.entries(r).map(([s,[c,f,l]])=>{const{pattern:d,params:p}=Tt(s),u={id:s,exec:h=>{const w=d.exec(h);if(w)return Ot(w,p,n)},errors:[1,...l||[]].map(h=>e[h]),layouts:[0,...f||[]].map(o),leaf:a(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[i.has(s),e[s]]}}function ot(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ze(e,t,r=JSON.stringify){const n=r(t);try{sessionStorage[e]=n}catch{}}const Dt=-1,xt=-2,Ct=-3,Bt=-4,Mt=-5,$t=-6,Ft=-7,st=2**32-1,Re=st-1;function Vt(e){return!(!Number.isInteger(e)||e<0||e>Re)}function qt(e){return!(!Number.isInteger(e)||e<0||e>st)}function Ht(e){return Uint8Array.fromBase64(e).buffer}function Yt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function Kt(e){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}const Gt=typeof Uint8Array.fromBase64=="function",Xt=typeof process=="object"&&process.versions?.node!==void 0,zt=Gt?Ht:Xt?Yt:Kt;function Wt(e,t){return e}const Jt=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,We=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,Zt={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,r,n)=>{try{Jt.call(t)}catch(a){if(!We)throw a;We.call(t)}const i=globalThis[e];return r!==void 0?new i(t,r,n):new i(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[Re]=void 0,delete t[Re],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,r)=>{e[t]=r},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,r)=>{e.set(t,r)}},Qt=Object.freeze(Zt);function er(e,t,r){const n=Wt(Qt);if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const i=e,a=Array(i.length);let o=null;function s(c,f=!1){if(c===Dt)return n.fromPrimitive(void 0);if(c===Ct)return n.fromPrimitive(NaN);if(c===Bt)return n.fromPrimitive(1/0);if(c===Mt)return n.fromPrimitive(-1/0);if(c===$t)return n.fromPrimitive(-0);if(f||typeof c!="number")throw new Error("Invalid input");if(c in a)return a[c];if(c>=i.length)throw new Error("Invalid input");const l=i[c];if(!l||typeof l!="object")a[c]=n.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){const d=l[0],p=t&&Object.hasOwn(t,d)?t[d]:void 0;if(p){let u=l[1];if(typeof u!="number"&&(u=i.push(l[1])-1),Object.hasOwn(a,u))return a[c]=p(a[u]);if(o??=new Set,o.has(u))throw new Error("Invalid circular reference");return o.add(u),a[c]=p(s(u)),o.delete(u),a[c]}switch(d){case"Date":a[c]=n.fromISOString(l[1]);break;case"Set":const u=n.createSet();a[c]=u;for(let _=1;_<l.length;_+=1)n.addValue(u,s(l[_]));break;case"Map":const h=n.createMap();a[c]=h;for(let _=1;_<l.length;_+=2)n.addEntry(h,s(l[_]),s(l[_+1]));break;case"RegExp":a[c]=n.fromRegExpInfo(l[1],l[2]);break;case"Object":{const _=l[1];if(typeof i[_]=="object"&&i[_][0]!=="BigInt")throw new Error("Invalid input");a[c]=n.box(s(_));break}case"BigInt":a[c]=n.fromPrimitive(BigInt(l[1]));break;case"null":const w=n.createNullPrototypeObject();a[c]=w;for(let _=1;_<l.length;_+=2){const m=l[_];if(typeof m!="string")throw new Error("Cannot parse an object with a non-string key");if(m==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(w,m,s(l[_+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const _=s(l[1]);a[c]=n.fromViewInfo(d,_,l[2],l[3]);break}case"ArrayBuffer":{const _=l[1];if(typeof _!="string")throw new Error("Invalid ArrayBuffer encoding");a[c]=n.fromArrayBuffer(zt(_));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{a[c]=n.fromStringValue(d,l[1]);break}default:throw new Error(`Unknown type ${d}`)}}else if(l[0]===Ft){const d=l[1];if(!qt(d))throw new Error("Invalid input");const p=n.createSparseArray(d);a[c]=p;for(let u=2;u<l.length;u+=2){const h=l[u];if(!Vt(h)||h>=d)throw new Error("Invalid input");n.set(p,h,s(l[u+1]))}}else{const d=n.createArray(l.length);a[c]=d;for(let p=0;p<l.length;p+=1){const u=l[p];u!==xt&&n.set(d,p,s(u))}}else{const d=n.createObject();a[c]=d;for(const p of Object.keys(l)){if(p==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(d,p,s(l[p]))}}return a[c]}return s(0)}function tr(e){return e.filter(t=>t!=null)}const rr="x-sveltekit-invalidated",nr="x-sveltekit-trailing-slash";function F(e,t){return e+"/"+t}function ie(e){return e instanceof te||e instanceof Ce?e.status:500}function ar(e){return e instanceof Ce?e.text:"Internal Error"}const or="/__data.json",sr=".html__data.json";function ir(e){return e.endsWith(".html")?e.replace(/\.html$/,sr):e.replace(/\/$/,"")+or}async function*cr(e,t){let r=!1,n="";const i=new TextDecoder;for(;;){let a=n.indexOf(t);for(;a!==-1;)yield n.slice(0,a),n=n.slice(a+t.length),a=n.indexOf(t);if(r){n&&(yield n);return}const o=await e.read();r=o.done,o.value&&(n+=i.decode(o.value,{stream:!0})),r&&(n+=i.decode())}}async function*lr(e){for await(const t of cr(e,`
|
|
2
|
+
`)){const r=t.trim();r&&(yield JSON.parse(r))}}const{onMount:fr}=yt,ur=Rt??(e=>e()),dr=new Set(["icon","shortcut icon","apple-touch-icon"]);let z=null;const x=ot(at)??{},Z=ot(nt)??{},D={url:Xe({}),page:Xe({}),navigating:Et(null),updated:bt()};function Be(e){x[e]=$()}function hr(e,t){let r=e+1;for(;x[r];)delete x[r],r+=1;for(r=t+1;Z[r];)delete Z[r],r+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(N)}async function it(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}let Me,Pe,ce,O,Le,E;const le=[],fe=[];let L=null;function Q(){L?.fork?.then(e=>e?.discard()),L=null,V={element:void 0,href:void 0}}const ae=new Map,$e=new Set,ct=new Set,q=new Set;let g={branch:[],error:null,url:null,nav:null},Fe=!1,ue=!1,Je=!0,ee=!1,W=!1,lt=!1,re=!1,ge,k,R,j;const J=new Set;let Ae;const de=new Map,he=new Map;async function jr(e,t,r){if(globalThis.__sveltekit_34jhjs.data){const{q:a={},p:o={},l:s={},f:c={}}=globalThis.__sveltekit_34jhjs.data;for(const f in a)a[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in o)o[f]}document.URL!==location.href&&(location.href=location.href),E=e,await e.hooks.init?.(),Me=Nt(e),O=document.documentElement,Le=t,Pe=e.nodes[0],ce=e.nodes[1],Pe(),ce(),k=history.state?.[B],R=history.state?.[Y],k||(k=R=Date.now(),history.replaceState({...history.state,[B]:k,[Y]:R},""));const n=x[k];function i(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(i(),await kr(Le,r)):(await H({type:"enter",url:me(E.hash?Rr(new URL(location.href)):location.href),replace_state:!0}),i()),Ar()}async function pr(e=!0,t=!0){if(await(Ae||=Promise.resolve()),!Ae)return;Ae=null;const r=j={},n=await ne(g.url,!0);Q();const i=new Map;if(re){for(const o of de.values())for(const{resource:s}of o.values())s.refresh();for(const[o,s]of he)for(const[c,{resource:f}]of s){const l=F(o,c),d=f.reconnect();d.catch(N),i.set(l,d)}}if(e){const o=I.state,s=n&&await Ye(n);if(!s||r!==j)return;if(s.type==="redirect")return Ve(new URL(s.location,g.url).href,{replaceState:!0},1,r);t||(s.props.page.state=o),De(s.props.page),g={...s.state,nav:g.nav},Te(),ge.$set(s.props)}else Te();const a=[];for(const o of de.values())for(const{resource:s}of o.values())a.push(s);for(const[o,s]of he)for(const c of s.keys()){const f=F(o,c),l=i.get(f);l&&a.push(l)}await Promise.all(a).catch(N)}function Te(){le.length=0,re=!1}function ft(e){fe.some(t=>t?.snapshot)&&(Z[e]=fe.map(t=>t?.snapshot?.capture()))}function ut(e){Z[e]?.forEach((t,r)=>{fe[r]?.snapshot?.restore(t)})}function Ze(){Be(k),ze(at,x),ft(R),ze(nt,Z)}async function Ve(e,t,r,n){let i,a;t.invalidateAll&&Q(),await H({type:"goto",url:me(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{if(t.invalidateAll){re=!0,i=new Set;for(const[o,s]of de)for(const[c,f]of s)f.resource?.reset(),i.add(F(o,c));a=new Set;for(const[o,s]of he)for(const c of s.keys())a.add(F(o,c))}t.invalidate&&t.invalidate.forEach(Er)}}),t.invalidateAll&&se().then(se).then(()=>{for(const[o,s]of de)for(const[c,{resource:f}]of s)i?.has(F(o,c))&&f.start();for(const[o,s]of he)for(const[c,{resource:f}]of s)a?.has(F(o,c))&&f.reconnect()})}async function _r(e){if(e.id!==L?.id){Q();const t={};J.add(t),L={id:e.id,token:t,promise:Ye({...e,preload:t}).then(r=>(J.delete(t),r.type==="loaded"&&r.state.error&&Q(),r)),fork:null}}return L.promise}async function ke(e){const t=(await ne(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function dt(e,t,r){const n={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};if(g={...e.state,nav:n},De(e.props.page),ge=new E.root({target:t,props:{...e.props,stores:D,components:fe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const i={from:null,to:{...n,scroll:x[k]??$()},willUnload:!1,type:"enter",complete:Promise.resolve()};q.forEach(a=>a(i))}ut(R),ue=!0}async function pe({url:e,params:t,branch:r,errors:n,status:i,error:a,route:o,form:s}){let c="never";if(T&&(e.pathname===T||e.pathname===T+"/"))c="always";else for(const h of r)h?.slash!==void 0&&(c=h.slash);e.pathname=vt(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:r,error:a,route:o},props:{constructors:tr(r).map(h=>h.node.component),page:we(I)}};s!==void 0&&(f.props.form=s);let l={},d=!I,p=0;for(let h=0;h<Math.max(r.length,g.branch.length);h+=1){const w=r[h],_=g.branch[h];w?.data!==_?.data&&(d=!0),w&&(l={...l,...w.data},d&&(f.props[`data_${p}`]=l),p+=1)}return(!g.url||e.href!==g.url.href||g.error!==a||s!==void 0&&s!==I.form||d)&&(f.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?l:I.data}),f}async function qe({loader:e,parent:t,url:r,params:n,route:i,server_data_node:a}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:a,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??a?.data??null,slash:c.universal?.trailingSlash??a?.slash}}function mr(e,t,r){let n=e instanceof Request?e.url:e;const i=new URL(n,r);i.origin===r.origin&&(n=i.href.slice(r.origin.length));const a=ue?kt(n,i.href,t):St(n,t);return{resolved:i,promise:a}}function Qe(e,t,r,n,i,a){if(re)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&r)return!0;for(const o of i.search_params)if(n.has(o))return!0;for(const o of i.params)if(a[o]!==g.params[o])return!0;for(const o of i.dependencies)if(le.some(s=>s(new URL(o))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function gr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const i=e.searchParams.getAll(n),a=t.searchParams.getAll(n);i.every(o=>a.includes(o))&&a.every(o=>i.includes(o))&&r.delete(n)}return r}function et({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:we(I),constructors:[]}}}async function Ye({id:e,invalidating:t,url:r,params:n,route:i,preload:a}){if(L?.id===e)return J.delete(L.token),L.promise;const{errors:o,layouts:s,leaf:c}=i,f=[...s,c];o.forEach(y=>y?.().catch(N)),f.forEach(y=>y?.[1]().catch(N));let l=null;const d=g.url?e!==_e(g.url):!1,p=g.route?i.id!==g.route.id:!1,u=gr(g.url,r);let h=!1;{const y=f.map((v,A)=>{const S=g.branch[A],b=!!v?.[0]&&(S?.loader!==v[1]||Qe(h,p,d,u,S.server?.uses,n));return b&&(h=!0),b});if(y.some(Boolean)){try{l=await _t(r,y)}catch(v){const A=await M(v,{url:r,params:n,route:{id:e}});return a&&J.has(a)?et({error:A,url:r,params:n,route:i}):ye({status:ie(v),error:A,url:r,route:i})}if(l.type==="redirect")return l}}const w=l?.nodes;let _=!1;const m=f.map(async(y,v)=>{if(!y)return;const A=g.branch[v],S=w?.[v];if((!S||S.type==="skip")&&y[1]===A?.loader&&!Qe(_,p,d,u,A.universal?.uses,n))return A;if(_=!0,S?.type==="error")throw S;return qe({loader:y[1],url:r,params:n,route:i,parent:async()=>{const U={};for(let C=0;C<v;C+=1)Object.assign(U,(await m[C])?.data);return U},server_data_node:He(S===void 0&&y[0]?{type:"skip"}:S??null,y[0]?A?.server:void 0)})});for(const y of m)y.catch(N);const P=[];for(let y=0;y<f.length;y+=1)if(f[y])try{P.push(await m[y])}catch(v){if(v instanceof xe)return{type:"redirect",location:v.location};if(a&&J.has(a))return et({error:await M(v,{params:n,url:r,route:{id:i.id}}),url:r,params:n,route:i});let A=ie(v),S;if(w?.includes(v))A=v.status??A,S=v.error;else if(v instanceof te)S=v.body;else{if(await D.updated.check())return await it(),await K(r);S=await M(v,{params:n,url:r,route:{id:i.id}})}const b=await yr(y,P,o);return b?pe({url:r,params:n,branch:P.slice(0,b.idx).concat(b.node),errors:o,status:A,error:S,route:i}):await pt(r,{id:i.id},S,A)}else P.push(void 0);return pe({url:r,params:n,branch:P,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yr(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ye({status:e,error:t,url:r,route:n}){const i={};let a=null;if(E.server_loads[0]===0)try{const s=await _t(r,[!0]);if(s.type!=="data"||s.nodes[0]&&s.nodes[0].type!=="data")throw 0;a=s.nodes[0]??null}catch(s){if(!(s instanceof te&&s.status===404)&&(r.origin!==Ne||r.pathname!==location.pathname||Fe))return await K(r)}try{const o=await qe({loader:Pe,url:r,params:i,route:n,parent:()=>Promise.resolve({}),server_data_node:He(a)}),s={node:await ce(),loader:ce,universal:null,server:null,data:null};return pe({url:r,params:i,branch:[o,s],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof xe){await Ve(new URL(o.location,location.href),{},0);return}const s=await E.get_error_template(),c=await M(o,{url:r,params:i,route:n}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),l=s({status:e,message:f}),d=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(d.head),document.head),document.documentElement.replaceChild(document.adoptNode(d.body),document.body),o}}async function wr(e){const t=e.href;if(ae.has(t))return ae.get(t);let r;try{const n=(async()=>{let i=await E.hooks.reroute({url:new URL(e),fetch:async(a,o)=>mr(a,o,e).promise})??e;if(typeof i=="string"){const a=new URL(e);E.hash?a.hash=i:a.pathname=i,i=a}return i})();ae.set(t,n),r=await n}catch{ae.delete(t);return}return r}async function ne(e,t){if(e&&!Ue(e,T,E.hash)){const r=await wr(e);if(!r)return;const n=vr(r);for(const i of Me){const a=i.exec(n);if(a)return{id:_e(e),invalidating:t,route:i,params:wt(a),url:e}}}}function vr(e){return At(E.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(T.length))||"/"}function _e(e){return(E.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:r,delta:n,event:i,scroll:a}){let o=!1;const s=Ge(g,r,e,t,a??null);n!==void 0&&(s.navigation.delta=n),i!==void 0&&(s.navigation.event=i);const c={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return ee||$e.forEach(f=>f(c)),o?null:s}async function H({type:e,url:t,popped:r,keepfocus:n,noscroll:i,replace_state:a,state:o={},redirect_count:s=0,nav_token:c={},accept:f=N,block:l=N,event:d}){const p=j;j=c;const u=await ne(t,!1),h=e==="enter"?Ge(g,u,t,e):ht({url:t,type:e,delta:r?.delta,intent:u,scroll:r?.scroll,event:d});if(!h){l(),j===c&&(j=p);return}const w=k,_=R;f(),ee=!0,ue&&h.navigation.type!=="enter"&&D.navigating.set(Se.current=h.navigation);let m=u&&await Ye(u);if(!m){if(Ue(t,T,E.hash))return await K(t,a);m=await pt(t,{id:null},await M(new Ce(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,a)}if(t=u?.url||t,j!==c){h.reject(new Error("navigation aborted"));return}if(!m)return;if(m.type==="redirect"){if(s<20){await H({type:e,url:new URL(m.location,t),popped:r,keepfocus:n,noscroll:i,replace_state:a,state:o,redirect_count:s+1,nav_token:c}),h.fulfil(void 0);return}if(m=await ye({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!m)return}else if(m.props.page.status>=400&&await D.updated.check())return await it(),await K(t,a);if(Te(),Be(w),ft(_),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),o=r?r.state:o,!r){const b=a?0:1,U={[B]:k+=b,[Y]:R+=b,[Oe]:o};(a?history.replaceState:history.pushState).call(history,U,"",t),a||hr(k,R)}const P=u&&L?.id===u.id?L.fork:null;L?.fork&&!P?Q():(L=null,V={element:void 0,href:void 0}),m.props.page.state=o;let y;if(ue){const b=(await Promise.all(Array.from(ct,G=>G(h.navigation)))).filter(G=>typeof G=="function");if(b.length>0){let G=function(){b.forEach(ve=>{q.delete(ve)})};b.push(G),b.forEach(ve=>{q.add(ve)})}const U=h.navigation.to;g={...m.state,nav:{params:U.params,route:U.route,url:U.url}},m.props.page&&(m.props.page.url=t),!n&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const C=P&&await P;C?y=C.commit():(z=null,ge.$set(m.props),z&&Object.assign(m.props.page,z),De(m.props.page),y=It?.()),lt=!0}else await dt(m,Le,!1);const{activeElement:v}=document;if(await y,await se(),await se(),j!==c){h.reject(new Error("navigation aborted"));return}m.props.page&&z&&Object.assign(m.props.page,z);let A=null;if(Je){const b=r?r.scroll:i?$():null;b?scrollTo(b.x,b.y):(A=t.hash&&document.getElementById(gt(t)))?A.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==v&&document.activeElement!==document.body;!n&&!S&&Ir(t,!A),Je=!0,ee=!1,h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=$()),q.forEach(b=>b(h.navigation)),e==="popstate"&&ut(R),D.navigating.set(Se.current=null)}async function pt(e,t,r,n,i){return e.origin===Ne&&e.pathname===location.pathname&&!Fe?await ye({status:n,error:r,url:e,route:t}):await K(e,i)}let V={element:void 0,href:void 0};function br(){let e,t;O.addEventListener("mousemove",o=>{const s=o.target;clearTimeout(e),e=setTimeout(()=>{i(s,X.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],X.tap)}O.addEventListener("mousedown",r),O.addEventListener("touchstart",r,{passive:!0});const n=new IntersectionObserver(o=>{for(const s of o)s.isIntersecting&&(ke(new URL(s.target.href)),n.unobserve(s.target))},{threshold:0});async function i(o,s){const c=tt(o,O),f=c===V.element&&c?.href===V.href&&s>=t;if(!c||f)return;const{url:l,external:d,download:p}=Ie(c,T,E.hash);if(d||p)return;const u=oe(c),h=l&&_e(g.url)===_e(l);if(!(u.reload||h))if(s<=u.preload_data){V={element:c,href:c.href},t=X.tap;const w=await ne(l,!1);if(!w)return;_r(w)}else s<=u.preload_code&&(V={element:c,href:c.href},t=s,ke(l))}function a(){n.disconnect();for(const o of O.querySelectorAll("a")){const{url:s,external:c,download:f}=Ie(o,T,E.hash);if(c||f)continue;const l=oe(o);l.reload||(l.preload_code===X.viewport&&n.observe(o),l.preload_code===X.eager&&ke(s))}}q.add(a),a()}function M(e,t){if(e instanceof te)return e.body;const r=ie(e),n=ar(e);return E.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function Ke(e,t){fr(()=>(e.add(t),()=>{e.delete(t)}))}function Ur(e){Ke(q,e)}function Or(e){Ke($e,e)}function Nr(e){Ke(ct,e)}function Dr(e,t={}){return e=new URL(me(e)),e.origin!==Ne?Promise.reject(new Error("goto: invalid URL")):Ve(e,t,0)}function Er(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(r=>r.href===t)}}function xr(){return re=!0,pr()}function Cr(e,t){const r={[B]:k,[Y]:R,[rt]:I.url.href,[Oe]:t};history.replaceState(r,"",me(e)),I.state=t,ge.$set({page:ur(()=>we(I))})}function Ar(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ze(),!ee){const n=Ge(g,void 0,null,"leave"),i={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};$e.forEach(a=>a(i))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ze()}),navigator.connection?.saveData||br(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=tt(t.composedPath()[0],O);if(!r)return;const{url:n,external:i,target:a,download:o}=Ie(r,T,E.hash);if(!n)return;if(a==="_parent"||a==="_top"){if(window.parent!==window)return}else if(a&&a!=="_self")return;const s=oe(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||o)return;const[f,l]=(E.hash?n.hash.replace(/^#/,""):n.href).split("#"),d=f===be(location);if(i||s.reload&&(!d||!l)){ht({url:n,type:"link",event:t})?ee=!0:t.preventDefault();return}if(l!==void 0&&d){const[,p]=g.url.href.split("#");if(p===l){if(t.preventDefault(),l===""||l==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=r.ownerDocument.getElementById(decodeURIComponent(l));u&&(u.scrollIntoView(),u.focus())}return}if(W=!0,Be(k),e(n),!s.replace_state)return;W=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await H({type:"link",url:n,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??n.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const o=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(Ue(o,T,!1))return;const s=t.target,c=oe(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s,n);o.search=new URLSearchParams(f).toString(),H({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!je){if(t.state?.[B]){const r=t.state[B];if(j={},r===k)return;const n=x[r],i=t.state[Oe]??{},a=new URL(t.state[rt]??location.href),o=t.state[Y],s=g.url?be(location)===be(g.url):!1;if(o===R&&(lt||s)){i!==I.state&&(I.state=i),e(a),x[k]=$(),n&&scrollTo(n.x,n.y),k=r;return}const f=r-k;await H({type:"popstate",url:a,popped:{state:i,scroll:n,delta:f},accept:()=>{k=r,R=o},block:()=>{history.go(-f)},nav_token:j,event:t})}else if(!W){const r=new URL(location.href);e(r),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[B]:++k,[Y]:R},"",location.href))});for(const t of document.querySelectorAll("link"))dr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(Se.current=null)});function e(t){g.url=I.url=t,D.page.set(we(I)),D.page.notify()}}async function kr(e,{status:t=200,error:r,node_ids:n,params:i,route:a,server_route:o,data:s,form:c}){Fe=!0;const f=new URL(location.href);let l;({params:i={},route:a={id:null}}=await ne(f,!1)||{}),l=Me.find(({id:u})=>u===a.id);let d,p=!0;try{const u=n.map(async(w,_)=>{const m=s[_];return m?.uses&&(m.uses=mt(m.uses)),qe({loader:E.nodes[w],url:f,params:i,route:a,parent:async()=>{const P={};for(let y=0;y<_;y+=1)Object.assign(P,(await u[y]).data);return P},server_data_node:He(m)})}),h=await Promise.all(u);if(l){const w=l.layouts;for(let _=0;_<w.length;_++)w[_]||h.splice(_,0,void 0)}d=await pe({url:f,params:i,branch:h,status:t,error:r,errors:l?.errors,form:c,route:l??null})}catch(u){if(u instanceof xe)return await K(new URL(u.location,location.href));d=await ye({status:ie(u),error:await M(u,{url:f,params:i,route:a}),url:f,route:a}),e.textContent="",p=!1}d&&(d.props.page&&(d.props.page.state={}),await dt(d,e,p))}async function _t(e,t){const r=new URL(e);r.pathname=ir(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(nr,"1"),r.searchParams.append(rr,t.map(a=>a?"1":"0").join(""));const n=window.fetch,i=await n(r.href,{});if(!i.ok){let a;throw i.headers.get("content-type")?.includes("application/json")?a=await i.json():i.status===404?a="Not Found":i.status===500&&(a="Internal Error"),new te(i.status,a)}return new Promise((a,o)=>{Sr(a,i).catch(o)})}async function Sr(e,t){const r=t.body.getReader(),n=new Map;function i(a){return er(a,{...E.decoders,Promise:o=>new Promise((s,c)=>{n.set(o,{fulfil:s,reject:c})})})}for await(const a of lr(r)){if(a.type==="redirect")return e(a);if(a.type==="data")a.nodes?.forEach(o=>{o?.type==="data"&&(o.uses=mt(o.uses),o.data=i(o.data))}),e(a);else if(a.type==="chunk"){const{id:o,data:s,error:c}=a,f=n.get(o);n.delete(o),c?f.reject(i(c)):f.fulfil(i(s))}}}function mt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let je=!1;function Ir(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=gt(e);if(n&&document.getElementById(n)){const{x:a,y:o}=$();setTimeout(()=>{const s=history.state;je=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(a,o),je=!1})}else{const a=document.body,o=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),o!==null?a.setAttribute("tabindex",o):a.removeAttribute("tabindex")}const i=getSelection();if(i&&i.type!=="None"){const a=[];for(let o=0;o<i.rangeCount;o+=1)a.push(i.getRangeAt(o));setTimeout(()=>{if(i.rangeCount===a.length){for(let o=0;o<i.rangeCount;o+=1){const s=a[o],c=i.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}i.removeAllRanges()}})}}}function Ge(e,t,r,n,i=null){let a,o;const s=new Promise((f,l)=>{a=f,o=l});return s.catch(N),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:$()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:i},willUnload:!t,type:n,complete:s},fulfil:a,reject:o}}function we(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Rr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(E.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Ur as a,Or as b,Dr as g,xr as i,Nr as o,Cr as r,jr as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -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,aD 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,aE 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"./DFFTcnMk.js";import"./DsnmJJEf.js";import{s as Pt,r as vt,p as O}from"./DtxmqMMR.js";import{I as En}from"./CDH1GGn5.js";import{s as j}from"./B9PwX1FR.js";import{i as gt}from"./fxwDaXQ6.js";import{l as Ft}from"./VI4uBLfk.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"./BaVXUP2t.js";import{o as Qn}from"./l_pUsC7d.js";import{b as $n}from"./BL5PiS2m.js";import{e as je}from"./CLrvyXks.js";import{c as yt}from"./CTO6Jnxr.js";import{X as to}from"./szetP8fm.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,aD 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,aE 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"./DFFTcnMk.js";import"./DsnmJJEf.js";import{s as Pt,r as vt,p as O}from"./DtxmqMMR.js";import{I as En}from"./CDH1GGn5.js";import{s as j}from"./B9PwX1FR.js";import{i as gt}from"./fxwDaXQ6.js";import{l as Ft}from"./VI4uBLfk.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"./BaVXUP2t.js";import{o as Qn}from"./l_pUsC7d.js";import{b as $n}from"./C0DPNoH0.js";import{e as je}from"./BNpuLzpy.js";import{c as yt}from"./CTO6Jnxr.js";import{X as to}from"./szetP8fm.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
|