@chrisjowen/wheelhouse 0.3.0 → 0.4.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 +3 -3
- package/build/client/_app/immutable/assets/0.CxNAeXUL.css +1 -0
- package/build/client/_app/immutable/assets/0.CxNAeXUL.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CxNAeXUL.css.gz +0 -0
- package/build/client/_app/immutable/assets/{DocSheet.CaO2v_qh.css → DocSheet.CgzYidp-.css} +1 -1
- package/build/client/_app/immutable/assets/{DocSheet.CaO2v_qh.css.br → DocSheet.CgzYidp-.css.br} +0 -0
- package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css.gz +0 -0
- package/build/client/_app/immutable/assets/dm-sans-latin-ext-wght-italic.DUE6_iCb.woff2 +0 -0
- package/build/client/_app/immutable/assets/dm-sans-latin-ext-wght-normal.BOFOeGcA.woff2 +0 -0
- package/build/client/_app/immutable/assets/dm-sans-latin-wght-italic.Cz4n9dED.woff2 +0 -0
- package/build/client/_app/immutable/assets/dm-sans-latin-wght-normal.Xz1IZZA0.woff2 +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-400-italic.DKMiL14s.woff2 +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-400-italic.u__WvvIK.woff +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-400-normal.BVbkICAY.woff +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-400-normal.DnYpCC2O.woff2 +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-italic.C9HzH3YL.woff2 +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-italic.D7-lnxEk.woff +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-normal.C2je3j2s.woff2 +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-normal.CFCUzsTy.woff +0 -0
- package/build/client/_app/immutable/chunks/{DXt4vIK0.js → B2ctrXx5.js} +1 -1
- package/build/client/_app/immutable/chunks/B2ctrXx5.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2ctrXx5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D5M74L1e.js → BBLx2oxZ.js} +2 -2
- package/build/client/_app/immutable/chunks/BBLx2oxZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBLx2oxZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{8WOVm7DO.js → BHVTrNhR.js} +1 -1
- package/build/client/_app/immutable/chunks/BHVTrNhR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHVTrNhR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Byamhp7O.js → Bl1tMgf8.js} +1 -1
- package/build/client/_app/immutable/chunks/Bl1tMgf8.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bl1tMgf8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{8xWr9jxY.js → Cbmz3nkf.js} +1 -1
- package/build/client/_app/immutable/chunks/Cbmz3nkf.js.br +2 -0
- package/build/client/_app/immutable/chunks/Cbmz3nkf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C6yJKLJE.js → Cio5-ROX.js} +1 -1
- package/build/client/_app/immutable/chunks/Cio5-ROX.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cio5-ROX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BqqZcEbm.js → DQEmyAe4.js} +1 -1
- package/build/client/_app/immutable/chunks/DQEmyAe4.js.br +2 -0
- package/build/client/_app/immutable/chunks/DQEmyAe4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DB2Frr3y.js → DdB79emW.js} +1 -1
- package/build/client/_app/immutable/chunks/DdB79emW.js.br +0 -0
- package/build/client/_app/immutable/chunks/DdB79emW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BW_FwdyU.js → Dj3Af0xC.js} +1 -1
- package/build/client/_app/immutable/chunks/Dj3Af0xC.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dj3Af0xC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D_nVtLM5.js → DpSftVJo.js} +1 -1
- package/build/client/_app/immutable/chunks/DpSftVJo.js.br +0 -0
- package/build/client/_app/immutable/chunks/DpSftVJo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{IQRNVWsw.js → M3zsQDnS.js} +1 -1
- package/build/client/_app/immutable/chunks/M3zsQDnS.js.br +0 -0
- package/build/client/_app/immutable/chunks/M3zsQDnS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{OermLIIb.js → QzT8bZ-S.js} +2 -2
- package/build/client/_app/immutable/chunks/QzT8bZ-S.js.br +0 -0
- package/build/client/_app/immutable/chunks/QzT8bZ-S.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DHMHvrUA.js → Y3i_x_Ja.js} +1 -1
- package/build/client/_app/immutable/chunks/Y3i_x_Ja.js.br +0 -0
- package/build/client/_app/immutable/chunks/Y3i_x_Ja.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dKB0cWc2.js +6 -0
- package/build/client/_app/immutable/chunks/dKB0cWc2.js.br +0 -0
- package/build/client/_app/immutable/chunks/dKB0cWc2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dPAGVN7v.js +6 -0
- package/build/client/_app/immutable/chunks/dPAGVN7v.js.br +0 -0
- package/build/client/_app/immutable/chunks/dPAGVN7v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BunvDGPC.js → dxi_erj0.js} +1 -1
- package/build/client/_app/immutable/chunks/dxi_erj0.js.br +0 -0
- package/build/client/_app/immutable/chunks/dxi_erj0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ohZIF1HO.js +5 -0
- package/build/client/_app/immutable/chunks/ohZIF1HO.js.br +0 -0
- package/build/client/_app/immutable/chunks/ohZIF1HO.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.CL8a8HZ0.js → app.BLMRuJuW.js} +2 -2
- package/build/client/_app/immutable/entry/app.BLMRuJuW.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BLMRuJuW.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C5t0JfpX.js +1 -0
- package/build/client/_app/immutable/entry/start.C5t0JfpX.js.br +0 -0
- package/build/client/_app/immutable/entry/start.C5t0JfpX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.x0mKzYMw.js +8 -0
- package/build/client/_app/immutable/nodes/0.x0mKzYMw.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.x0mKzYMw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BRLMR7fm.js → 1.DQwKSgDw.js} +1 -1
- package/build/client/_app/immutable/nodes/1.DQwKSgDw.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DQwKSgDw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.Ctk2N--v.js → 10.Bmz2aEu9.js} +1 -1
- package/build/client/_app/immutable/nodes/10.Bmz2aEu9.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Bmz2aEu9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.DzDPmeKc.js → 11.Dsw17idi.js} +1 -1
- package/build/client/_app/immutable/nodes/11.Dsw17idi.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Dsw17idi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.BUO7L3_c.js → 12.BCfbyZHF.js} +1 -1
- package/build/client/_app/immutable/nodes/12.BCfbyZHF.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BCfbyZHF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.sQe1BX9E.js → 13.BF70RcBN.js} +1 -1
- package/build/client/_app/immutable/nodes/13.BF70RcBN.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BF70RcBN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.C6lWut9y.js → 14.DUa-e6bC.js} +1 -1
- package/build/client/_app/immutable/nodes/14.DUa-e6bC.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DUa-e6bC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.B9dAe-zO.js → 16.DV4CIsXI.js} +1 -1
- package/build/client/_app/immutable/nodes/16.DV4CIsXI.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.DV4CIsXI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.BjYq-nHX.js → 17.BFAervXe.js} +1 -1
- package/build/client/_app/immutable/nodes/17.BFAervXe.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BFAervXe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{18.C7MQG7kY.js → 18.cqwxGV--.js} +1 -1
- package/build/client/_app/immutable/nodes/18.cqwxGV--.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.cqwxGV--.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.CGPxCxa4.js → 19.W4wKGIwz.js} +3 -3
- package/build/client/_app/immutable/nodes/19.W4wKGIwz.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.W4wKGIwz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DNWuY54S.js +27 -0
- package/build/client/_app/immutable/nodes/2.DNWuY54S.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DNWuY54S.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.UmQnK0mP.js → 20.Bw-IUju8.js} +1 -1
- package/build/client/_app/immutable/nodes/20.Bw-IUju8.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.Bw-IUju8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.kMxNjh5n.js → 21.DNFvLLcD.js} +1 -1
- package/build/client/_app/immutable/nodes/21.DNFvLLcD.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DNFvLLcD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.HvyFWmuR.js → 3.COF537Bh.js} +1 -1
- package/build/client/_app/immutable/nodes/3.COF537Bh.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.COF537Bh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.cOsP7AQT.js → 4.C69OFBsR.js} +1 -1
- package/build/client/_app/immutable/nodes/4.C69OFBsR.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.C69OFBsR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.WTA0USqX.js → 5.BAZlH_fP.js} +1 -1
- package/build/client/_app/immutable/nodes/5.BAZlH_fP.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BAZlH_fP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.DVgxxTkD.js → 6.BsosOtvd.js} +1 -1
- package/build/client/_app/immutable/nodes/6.BsosOtvd.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BsosOtvd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.Djk2ljG8.js → 7.DnZ-8ovs.js} +1 -1
- package/build/client/_app/immutable/nodes/7.DnZ-8ovs.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DnZ-8ovs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.C0za5N1P.js → 9.BzSWG3R8.js} +1 -1
- package/build/client/_app/immutable/nodes/9.BzSWG3R8.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BzSWG3R8.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-CXR2Tqq9.js → DecisionCard.js-DaA8DYYg.js} +2 -2
- package/build/server/chunks/chunks/{OpenDecision.js-ogSBclda.js → OpenDecision.js-CYba2eq3.js} +24 -6
- package/build/server/chunks/chunks/{TaskOverview.js-BLbSjSGh.js → TaskOverview.js-sfLDib9-.js} +3 -3
- package/build/server/chunks/chunks/{topics.js-CPoxwdi2.js → bridge.js-Cm-aK0Fl.js} +44 -2
- package/build/server/chunks/chunks/{detail.js-DmSONkJE.js → detail.js-B8abhi3a.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-yXFmBh67.js → feedback.js-Jpl8v6Mu.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-wAeB3IT1.js → internal.js-bN02E8b0.js} +3 -3
- package/build/server/chunks/chunks/{previewhelper2.js-DH3wSLnQ.js → previewhelper2.js-Fr7JXr0X.js} +2 -2
- package/build/server/chunks/chunks/{repo.js-CeNEGGXM.js → repo.js-D4m77kW0.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-CpuENBbt.js → runtime.js-BGOuM-Hy.js} +2 -2
- package/build/server/chunks/chunks/{service.js-CxgO_lGX.js → service.js-CzSbBjc3.js} +2 -2
- package/build/server/chunks/chunks/{view.js-I8j3JaZ5.js → view.js-CeInAMHW.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-tV5UVoX_.js → _server.ts.js-smS4TCrQ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-Bqe7aUbi.js → _server.ts.js-Bqh9AFl3.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-DfpyY_Bq.js → _server.ts.js-BM0ps5lk.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-CN8b5ccO.js → _server.ts.js-Cm2ckYW2.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-CqcpAXMO.js → _server.ts.js-DZCnbYId.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-BMv_VOat.js → _server.ts.js-B5fpHEKR.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-DX45ccQL.js → _server.ts.js-eq3GdIy6.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-DPfYkpxV.js → _server.ts.js-CvXW4Pgj.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-DwrpzrvE.js → _server.ts.js-Ck9lsiPW.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-BLyU7Xmy.js → _server.ts.js-S2cNDAv_.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-CwCkNQH1.js → _server.ts.js-Dp5sUKpf.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-QgfVKhEv.js → _server.ts.js-BRyx-SLk.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-Dluitk4S.js → _server.ts.js-DbOj2r3G.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-DBrzK7aF.js → _server.ts.js-CqNT7hdk.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BPOs6Ua5.js → _server.ts.js-s9ct1YaL.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-CXR8ln41.js → _server.ts.js-CCbenPIy.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-fMts5LEq.js → _server.ts.js-YkdQuW03.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-CgoR3ZaT.js → _server.ts.js-jMIRKXVy.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-DN0zHwSr.js → _server.ts.js-CRz5ap0Z.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-DawD1VtO.js → _server.ts.js-BUreXPtQ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-C8jp0FUx.js → _server.ts.js-aLsUJ-HL.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-jSPhFhMn.js → _server.ts.js-BQxGrtDq.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-CDslqmcw.js → _server.ts.js-DVwdrfyP.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-BJawocE3.js → _server.ts.js-fWXa1T6O.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-Be2NAmCy.js → _server.ts.js-GzkA-eH4.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-C-avUWCg.js → _server.ts.js-Du31g-KO.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DKAa2Uxw.js → _server.ts.js-CQYj1ZuS.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-CotqjP2F.js → _server.ts.js-D6Nprf6i.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-DCvVjqLZ.js → _server.ts.js-DjQvcvOx.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-CpZ1W-A7.js → _server.ts.js-DcwsTmlB.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-Cp8plIYs.js → _server.ts.js-CGPbXNqf.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-Dak56Rg1.js → _server.ts.js-CawLRyKI.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-WZe9B5X3.js → _server.ts.js-Cl8Xr77g.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-U5nJ9f0g.js → _server.ts.js-B3vEVTxZ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-30yUhJz3.js → _server.ts.js-iToq6YEa.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-tg4vTM3A.js → _server.ts.js-CwWCiOV_.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-BsJnf3m0.js → _server.ts.js-DW8K_vnR.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-D-Wnq4C0.js → _server.ts.js-jQeee3c3.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-De9Q8wd8.js → _server.ts.js-DjmH3APN.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-BqscYuWP.js → _server.ts.js-BKBTwHdx.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-Do8o7_-0.js → _server.ts.js-Dps2HZrT.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-gaLKbuL7.js → _server.ts.js-CLrEK2JB.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-wcXCXMkT.js → _server.ts.js-Dajmg1QT.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-kzTN6YxA.js → _server.ts.js-DzbKvWf4.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-DJiB_mf7.js → _server.ts.js-lrCSZ8vJ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-BjJU6JWj.js → _server.ts.js--J2luqpT.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-l3foNNok.js → _server.ts.js-D6jJ1Rr_.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-DsxJ0us4.js → _server.ts.js-DFiNNdmX.js} +2 -2
- package/build/server/chunks/entries/{hooks.server.js-B6m3Dpkx.js → hooks.server.js-BbTmH2JU.js} +2 -2
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-CrW4p_Q2.js → _layout.server.ts.js-DTaBhixQ.js} +2 -2
- package/build/server/chunks/entries/pages/{_layout.svelte.js-LKAACh49.js → _layout.svelte.js-BNA76gGJ.js} +100 -24
- package/build/server/chunks/entries/pages/{_page.server.ts.js-CF_c0nNn.js → _page.server.ts.js-BjKksIBz.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.svelte.js-DhcYaGNL.js → _page.svelte.js-Bgw0FiJG.js} +112 -82
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-B7uZVbX4.js → _page.server.ts.js-Cr6eZ4p-.js} +2 -2
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-C9YB1gJL.js → _page.server.ts.js-CA3bfaLe.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-BfPMxhei.js → _page.server.ts.js-CGhoI6xu.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-D1wZDsVf.js → _page.server.ts.js-BRadjeWP.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-woHdHibC.js → _page.server.ts.js-CB7PXBV1.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-BffukCNo.js → _page.svelte.js-BLRcCY5u.js} +2 -2
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-XcXW0Uve.js → _page.server.ts.js-C9J9SfdQ.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-wLr_tgjL.js → _page.server.ts.js-nOOV1sAH.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-DMOW6iPG.js → _page.server.ts.js-BpSFvmgx.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-BJZyFsqL.js → _page.server.ts.js-08qgrWt_.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-DB_UVBbI.js → _page.server.ts.js-Waknjiof.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-DfWW-CQh.js → _page.server.ts.js-D_-2Bk-X.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-CshPvaAs.js → _page.server.ts.js-Hls8GEh4.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-9JK7K_z9.js → _page.server.ts.js-jKmK8VbO.js} +2 -2
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-Cvp9xMG4.js → _page.server.ts.js-BZMRfS-l.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-ChQv02MF.js → _page.svelte.js-BYcqWFD7.js} +8 -8
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-C1DtiAVs.js → _page.server.ts.js-CGiroJqZ.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-DlJqn5ve.js → _page.server.ts.js-exp39MHH.js} +2 -2
- package/build/server/chunks/{handler-Bs_CCC30.js → handler-CwbFN6sE.js} +3 -3
- package/build/server/chunks/{index.js-Cs5HOQvf.js → index.js-CqvbtJcl.js} +2 -2
- package/build/server/chunks/{manifest.js-BDRywlKi.js → manifest.js-DBKpxwtf.js} +70 -70
- package/build/server/chunks/nodes/{0.js-CsWq-jPD.js → 0.js-CzHBL2FE.js} +7 -7
- package/build/server/chunks/nodes/{1.js-CTC_MshV.js → 1.js-DttsMtH5.js} +2 -2
- package/build/server/chunks/nodes/{10.js-CZq28G3f.js → 10.js-DS6-8M5v.js} +5 -5
- package/build/server/chunks/nodes/{11.js-BtlSUZdl.js → 11.js-UkJPwg90.js} +5 -5
- package/build/server/chunks/nodes/{12.js-D0o_nkGH.js → 12.js-Bttwc2Gj.js} +6 -6
- package/build/server/chunks/nodes/{13.js-BIIG5wG0.js → 13.js-DN0IvWCs.js} +5 -5
- package/build/server/chunks/nodes/{14.js-B3MoJ0Ck.js → 14.js-BPrf4PxP.js} +2 -2
- package/build/server/chunks/nodes/{16.js-DL5dm8m7.js → 16.js-MQWaFHIA.js} +4 -4
- package/build/server/chunks/nodes/{17.js-BItMe09V.js → 17.js-BqQwHV4F.js} +4 -4
- package/build/server/chunks/nodes/{18.js-BqNFJ6VI.js → 18.js-CpKFgiup.js} +4 -4
- package/build/server/chunks/nodes/{19.js-DWlhtpN2.js → 19.js-CCrOg127.js} +6 -6
- package/build/server/chunks/nodes/{2.js-Biys3XVB.js → 2.js-FPoIQ4QE.js} +5 -5
- package/build/server/chunks/nodes/{20.js-tYMJBMgr.js → 20.js-B5Fv-_hl.js} +6 -6
- package/build/server/chunks/nodes/{21.js-DB94vZQt.js → 21.js-DIqkKAtP.js} +4 -4
- package/build/server/chunks/nodes/{3.js-CsnKNLDN.js → 3.js-BBLaot9F.js} +4 -4
- package/build/server/chunks/nodes/{4.js-l8re1d64.js → 4.js-cmSXc6Wt.js} +5 -5
- package/build/server/chunks/nodes/{5.js-B0eRP6zR.js → 5.js-CxQRjV9G.js} +4 -4
- package/build/server/chunks/nodes/{6.js-BWv2xVyz.js → 6.js-4fNyzqc9.js} +4 -4
- package/build/server/chunks/nodes/{7.js-C4YSw2xL.js → 7.js-D_kCF7ql.js} +5 -5
- package/build/server/chunks/nodes/{9.js-CWW789qH.js → 9.js-Dl3MVT1-.js} +4 -4
- package/dist/cli.js +1 -1
- package/dist/wh-vault.js +1 -1
- package/package.json +3 -2
- package/build/client/_app/immutable/assets/0.BUKP25sU.css +0 -1
- package/build/client/_app/immutable/assets/0.BUKP25sU.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BUKP25sU.css.gz +0 -0
- package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.gz +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-italic.B5xAaiFk.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-wght-italic.DzZdc28x.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-ext-wght-italic.DcOpz6Lw.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-wght-italic.CILZdfAp.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-ext-wght-italic.0pjOp8NU.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-wght-italic.DpCbqKDY.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-vietnamese-wght-italic.K3WlGtc8.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
- package/build/client/_app/immutable/chunks/8WOVm7DO.js.br +0 -0
- package/build/client/_app/immutable/chunks/8WOVm7DO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/8xWr9jxY.js.br +0 -0
- package/build/client/_app/immutable/chunks/8xWr9jxY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BW_FwdyU.js.br +0 -0
- package/build/client/_app/immutable/chunks/BW_FwdyU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BXk5dy03.js +0 -5
- package/build/client/_app/immutable/chunks/BXk5dy03.js.br +0 -0
- package/build/client/_app/immutable/chunks/BXk5dy03.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqqZcEbm.js.br +0 -2
- package/build/client/_app/immutable/chunks/BqqZcEbm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BunvDGPC.js.br +0 -0
- package/build/client/_app/immutable/chunks/BunvDGPC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Byamhp7O.js.br +0 -0
- package/build/client/_app/immutable/chunks/Byamhp7O.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6yJKLJE.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6yJKLJE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CMFVi0Kq.js +0 -6
- package/build/client/_app/immutable/chunks/CMFVi0Kq.js.br +0 -0
- package/build/client/_app/immutable/chunks/CMFVi0Kq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5M74L1e.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5M74L1e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DB2Frr3y.js.br +0 -0
- package/build/client/_app/immutable/chunks/DB2Frr3y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DHMHvrUA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DHMHvrUA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DXt4vIK0.js.br +0 -0
- package/build/client/_app/immutable/chunks/DXt4vIK0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_nVtLM5.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_nVtLM5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/IQRNVWsw.js.br +0 -0
- package/build/client/_app/immutable/chunks/IQRNVWsw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/KWgz7qtz.js +0 -6
- package/build/client/_app/immutable/chunks/KWgz7qtz.js.br +0 -0
- package/build/client/_app/immutable/chunks/KWgz7qtz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OermLIIb.js.br +0 -0
- package/build/client/_app/immutable/chunks/OermLIIb.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CL8a8HZ0.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CL8a8HZ0.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DY5Zh3I7.js +0 -1
- package/build/client/_app/immutable/entry/start.DY5Zh3I7.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DY5Zh3I7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.Bmtc68EX.js +0 -8
- package/build/client/_app/immutable/nodes/0.Bmtc68EX.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Bmtc68EX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BRLMR7fm.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BRLMR7fm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.Ctk2N--v.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Ctk2N--v.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.DzDPmeKc.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.DzDPmeKc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BUO7L3_c.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BUO7L3_c.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.sQe1BX9E.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.sQe1BX9E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.C6lWut9y.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.C6lWut9y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.B9dAe-zO.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.B9dAe-zO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.BjYq-nHX.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BjYq-nHX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.C7MQG7kY.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.C7MQG7kY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.CGPxCxa4.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.CGPxCxa4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DSEV6dyX.js +0 -27
- package/build/client/_app/immutable/nodes/2.DSEV6dyX.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DSEV6dyX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.UmQnK0mP.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.UmQnK0mP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.kMxNjh5n.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.kMxNjh5n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.HvyFWmuR.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.HvyFWmuR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.cOsP7AQT.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.cOsP7AQT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.WTA0USqX.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.WTA0USqX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DVgxxTkD.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DVgxxTkD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.Djk2ljG8.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Djk2ljG8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.C0za5N1P.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.C0za5N1P.js.gz +0 -0
- /package/build/client/_app/immutable/chunks/{BsFN-acf.js → Bxza7kFR.js} +0 -0
- /package/build/client/_app/immutable/chunks/{BsFN-acf.js.br → Bxza7kFR.js.br} +0 -0
- /package/build/client/_app/immutable/chunks/{BsFN-acf.js.gz → Bxza7kFR.js.gz} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{q as on,H as rn,I as sn,ab as an,bz as ln,h as A,g,bD as cn,u as rt,p as lt,j as K,f as V,a7 as tt,a as H,b as ct,l as N,m as It,v as C,s as un,c as re,bE as Pt,bA as Ne,i as At,r as Ct}from"./BOY9WARo.js";import"./DsnmJJEf.js";import{s as et,r as Q,p as x,i as gt}from"./DnDesMxN.js";import{I as zt}from"./BbU5AsRD.js";import{s as j}from"./TcIaLKEO.js";import{g as St}from"./BRuDnHyc.js";import{l as dn,C as Vt,s as it,p as fn,d as E,a as Et,u as Le,q as hn,r as gn,t as pn,w as Ft,v as mn,m as yt,F as wn,j as ve,i as vn,D as yn,T as xn,x as bn,y as ht,P as ye,z as On,A as kt,E as Pn,S as An,e as He,b as Cn,B as Sn,g as En,f as Fn,h as Re,n as vt}from"./DybGBkO1.js";import{o as Dn}from"./Blj84s6L.js";import{n as Tn}from"./WKkbnawS.js";function Sr(e,t,n){on(()=>{var o=rn(()=>t(e,n?.())||{});if(n&&o?.update){var r=!1,i={};sn(()=>{var s=n();an(s),r&&ln(i,s)&&(i=s,o.update(s))}),r=!0}if(o?.destroy)return()=>o.destroy()})}var Mn=new Set(["$$slots","$$events","$$legacy"]);function Er(e,t){let n=Q(t,Mn);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"}]]};zt(e,et(()=>n,{get icon(){return o}}))}var In=new Set(["$$slots","$$events","$$legacy"]);function Fr(e,t){let n=Q(t,In);const o={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]]};zt(e,et(()=>n,{get icon(){return o}}))}var _n=new Set(["$$slots","$$events","$$legacy"]);function Dr(e,t){let n=Q(t,_n);const o={name:"puzzle",size:24,node:[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"}]]};zt(e,et(()=>n,{get icon(){return o}}))}var kn=new Set(["$$slots","$$events","$$legacy"]);function Tr(e,t){let n=Q(t,kn);const o={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]]};zt(e,et(()=>n,{get icon(){return o}}))}function Bn(e){return typeof e=="function"}function xe(e){return Bn(e)?e():e}class Wn{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=A(()=>(g(this.#n)?.(),this.getSize().width));#a=A(()=>(g(this.#n)?.(),this.getSize().height));#n=A(()=>{const t=xe(this.#r);if(t)return cn(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,u)=>Math.max(l,u.inlineSize),0),this.#t.height=a.reduce((l,u)=>Math.max(l,u.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??dn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=xe(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),u=n-i-a,f=o-s-l;return{width:u,height:f}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return g(this.#n)?.(),this.getSize()}get width(){return g(this.#s)}get height(){return g(this.#a)}}const ie=new Vt("Floating.Root"),se=new Vt("Floating.Root");class Bt{static create(t=!1){return t?se.set(new Bt):ie.set(new Bt)}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 Wt{static create(t,n=!1){return n?new Wt(t,se.get()):new Wt(t,ie.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=fn(t.virtualEl.current):n.triggerNode=t.ref}}function Nn(e,t){lt(t,!0);let n=x(t,"tooltip",3,!1);Bt.create(n());var o=K(),r=V(o);j(r,()=>t.children??tt),H(e,o),ct()}function dt(e){return typeof e=="function"?e():e}function ze(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function be(e,t){const n=ze(e);return Math.round(t*n)/n}function Oe(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 Ln(e,t){lt(t,!0);let n=x(t,"tooltip",3,!1);Wt.create({id:E(()=>t.id),virtualEl:E(()=>t.virtualEl),ref:t.ref},n());var o=K(),r=V(o);j(r,()=>t.children??tt),H(e,o),ct()}const Hn=["top","right","bottom","left"],st=Math.min,J=Math.max,Nt=Math.round,Mt=Math.floor,$=e=>({x:e,y:e}),Rn={left:"right",right:"left",bottom:"top",top:"bottom"};function Ve(e,t,n){return J(e,st(t,n))}function nt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function bt(e){return e.split("-")[1]}function ae(e){return e==="x"?"y":"x"}function le(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ce(e){return ae(q(e))}function zn(e,t,n){n===void 0&&(n=!1);const o=bt(e),r=ce(e),i=le(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Lt(s)),[s,Lt(s)]}function Vn(e){const t=Lt(e);return[te(e),t,te(t)]}function te(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Pe=["left","right"],Ae=["right","left"],Kn=["top","bottom"],Xn=["bottom","top"];function Yn(e,t,n){switch(e){case"top":case"bottom":return n?t?Ae:Pe:t?Pe:Ae;case"left":case"right":return t?Kn:Xn;default:return[]}}function jn(e,t,n,o){const r=bt(e);let i=Yn(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(te)))),i}function Lt(e){const t=at(e);return Rn[t]+e.slice(t.length)}function Un(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 Ke(e){return typeof e!="number"?Un(e):{top:e,right:e,bottom:e,left:e}}function Ht(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 Ce(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=ce(t),a=le(s),l=at(t),u=i==="y",f=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:f,y:o.y-r.height};break;case"bottom":c={x:f,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 p=bt(t);return p&&(c[s]+=d*(p==="end"?1:-1)*(n&&u?-1:1)),c}async function qn(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=nt(t,e),p=Ke(c),b=a[d?h==="floating"?"reference":"floating":h],w=Ht(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,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)),O=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},S=Ht(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:P,strategy:l}):v);return{top:(w.top-S.top+p.top)/O.y,bottom:(S.bottom-w.bottom+p.bottom)/O.y,left:(w.left-S.left+p.left)/O.x,right:(S.right-w.right+p.right)/O.x}}const Zn=50,Gn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:qn},l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:h}=Ce(u,o,l),d=o,c=0;const p={};for(let m=0;m<i.length;m++){const b=i[m];if(!b)continue;const{name:w,fn:v}=b,{x:P,y:O,data:S,reset:y}=await v({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});f=P??f,h=O??h,p[w]={...p[w],...S},y&&c<Zn&&(c++,typeof y=="object"&&(y.placement&&(d=y.placement),y.rects&&(u=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:f,y:h}=Ce(u,d,l)),m=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:p}},Qn=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:u,padding:f=0}=nt(e,t)||{};if(u==null)return{};const h=Ke(f),d={x:n,y:o},c=ce(r),p=le(c),m=await s.getDimensions(u),b=c==="y",w=b?"top":"left",v=b?"bottom":"right",P=b?"clientHeight":"clientWidth",O=i.reference[p]+i.reference[c]-d[c]-i.floating[p],S=d[c]-i.reference[c],y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let D=y?y[P]:0;(!D||!await(s.isElement==null?void 0:s.isElement(y)))&&(D=a.floating[P]||i.floating[p]);const I=O/2-S/2,B=D/2-m[p]/2-1,M=st(h[w],B),L=st(h[v],B),R=D-m[p]-L,W=D/2-m[p]/2+I,T=Ve(M,W,R),X=!l.arrow&&bt(r)!=null&&W!==T&&i.reference[p]/2-(W<M?M:L)-m[p]/2<0,z=X?W<M?W-M:W-R:0;return{[c]:d[c]+z,data:{[c]:T,centerOffset:W-T-z,...X&&{alignmentOffset:z}},reset:X}}}),Jn=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:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...b}=nt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=at(r),v=q(a),P=at(a)===a,O=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=d||(P||!m?[Lt(a)]:Vn(a)),y=p!=="none";!d&&y&&S.push(...jn(a,m,p,O));const D=[a,...S],I=await l.detectOverflow(t,b),B=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&B.push(I[w]),h){const T=zn(r,s,O);B.push(I[T[0]],I[T[1]])}if(M=[...M,{placement:r,overflows:B}],!B.every(T=>T<=0)){var L,R;const T=(((L=i.flip)==null?void 0:L.index)||0)+1,X=D[T];if(X&&(!(h==="alignment"?v!==q(X):!1)||M.every(F=>q(F.placement)===v?F.overflows[0]>0:!0)))return{data:{index:T,overflows:M},reset:{placement:X}};let z=(R=M.filter(_=>_.overflows[0]<=0).sort((_,F)=>_.overflows[1]-F.overflows[1])[0])==null?void 0:R.placement;if(!z)switch(c){case"bestFit":{var W;const _=(W=M.filter(F=>{if(y){const k=q(F.placement);return k===v||k==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(k=>k>0).reduce((k,U)=>k+U,0)]).sort((F,k)=>F[1]-k[1])[0])==null?void 0:W[0];_&&(z=_);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Se(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ee(e){return Hn.some(t=>e[t]>=0)}const $n=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=nt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=Se(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ee(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=Se(s,n.floating);return{data:{escapedOffsets:a,escaped:Ee(a)}}}default:return{}}}}},Xe=new Set(["left","top"]);async function to(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=bt(n),l=q(n)==="y",u=Xe.has(s)?-1:1,f=i&&l?-1:1,h=nt(t,e);let{mainAxis:d,crossAxis:c,alignmentAxis:p}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof p=="number"&&(c=a==="end"?p*-1:p),l?{x:c*f,y:d*u}:{x:d*u,y:c*f}}const eo=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 to(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}}}}},no=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:O}=v;return{x:P,y:O}}},...u}=nt(e,t),f={x:n,y:o},h=await i.detectOverflow(t,u),d=q(r),c=ae(d);let p=f[c],m=f[d];const b=(v,P)=>Ve(P+h[v==="y"?"top":"left"],P,P-h[v==="y"?"bottom":"right"]);s&&(p=b(c,p)),a&&(m=b(d,m));const w=l.fn({...t,[c]:p,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[c]:s,[d]:a}}}}}},oo=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:u=0,mainAxis:f=!0,crossAxis:h=!0}=nt(e,t),d={x:r,y:i},c=q(s),p=ae(c);let m=d[p],b=d[c];const w=nt(u,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(f){const S=p==="y"?"height":"width",y=a.reference[p]-a.floating[S]+v.mainAxis,D=a.reference[p]+a.reference[S]-v.mainAxis;m<y?m=y:m>D&&(m=D)}if(h){var P,O;const S=p==="y"?"width":"height",y=Xe.has(at(s)),D=a.reference[c]-a.floating[S]+(y&&((P=l.offset)==null?void 0:P[c])||0)+(y?0:v.crossAxis),I=a.reference[c]+a.reference[S]+(y?0:((O=l.offset)==null?void 0:O[c])||0)-(y?v.crossAxis:0);b<D?b=D:b>I&&(b=I)}return{[p]:m,[c]:b}}}},ro=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}=nt(e,t),l=await r.detectOverflow(t,a),u=at(n),f=bt(n),h=q(n)==="y",{width:d,height:c}=o.floating;let p,m;u==="top"||u==="bottom"?(p=u,m=f===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,p=f==="end"?"top":"bottom");const b=c-l.top-l.bottom,w=d-l.left-l.right,v=st(c-l[p],b),P=st(d-l[m],w),O=t.middlewareData.shift,S=!O;let y=v,D=P;O!=null&&O.enabled.x&&(D=w),O!=null&&O.enabled.y&&(y=b),S&&!f&&(h?D=d-2*J(l.left,l.right):y=c-2*J(l.top,l.bottom)),await s({...t,availableWidth:D,availableHeight:y});const I=await r.getDimensions(i.floating);return d!==I.width||c!==I.height?{reset:{rects:!0}}:{}}}};function Kt(){return typeof window<"u"}function Ot(e){return Ye(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Ye(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ye(e){return Kt()?e instanceof Node||e instanceof Y(e).Node:!1}function Z(e){return Kt()?e instanceof Element||e instanceof Y(e).Element:!1}function ut(e){return Kt()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function Fe(e){return!Kt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}function Xt(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 io(e){return/^(table|td|th)$/.test(Ot(e))}function Yt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const so=/transform|translate|scale|rotate|perspective|filter/,ao=/paint|layout|strict|content/,ft=e=>!!e&&e!=="none";let qt;function ue(e){const t=Z(e)?G(e):e;return ft(t.transform)||ft(t.translate)||ft(t.scale)||ft(t.rotate)||ft(t.perspective)||!de()&&(ft(t.backdropFilter)||ft(t.filter))||so.test(t.willChange||"")||ao.test(t.contain||"")}function lo(e){let t=pt(e);for(;ut(t)&&!Dt(t);){if(ue(t))return t;if(Yt(t))return null;t=pt(t)}return null}function de(){return qt==null&&(qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qt}function Dt(e){return/^(html|body|#document)$/.test(Ot(e))}function G(e){return Y(e).getComputedStyle(e)}function jt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ot(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fe(e)&&e.host||ot(e);return Fe(t)?t.host:t}function je(e){const t=pt(e);return Dt(t)?(e.ownerDocument||e).body:ut(t)&&Xt(t)?t:je(t)}function Tt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=je(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=Y(r);if(i){const a=ee(s);return t.concat(s,s.visualViewport||[],Xt(r)?r:[],a&&n?Tt(a):[])}else return t.concat(r,Tt(r,[],n))}function ee(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ue(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ut(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=Nt(n)!==i||Nt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function fe(e){return Z(e)?e:e.contextElement}function xt(e){const t=fe(e);if(!ut(t))return $(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Ue(t);let s=(i?Nt(n.width):n.width)/o,a=(i?Nt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const co=$(0);function qe(e){const t=Y(e);return!de()||!t.visualViewport?co:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Y(e)}function mt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=fe(e);let s=$(1);t&&(o?Z(o)&&(s=xt(o)):s=xt(e));const a=uo(i,n,o)?qe(i):$(0);let l=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(i&&o){const d=Y(i),c=Z(o)?Y(o):o;let p=d,m=ee(p);for(;m&&c!==p;){const b=xt(m),w=m.getBoundingClientRect(),v=G(m),P=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,O=w.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,h*=b.y,l+=P,u+=O,p=Y(m),m=ee(p)}}return Ht({width:f,height:h,x:l,y:u})}function Ut(e,t){const n=jt(e).scrollLeft;return t?t.left+n:mt(ot(e)).left+n}function Ze(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Ut(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function fo(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?Yt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=$(1);const f=$(0),h=ut(o);if((h||!i)&&((Ot(o)!=="body"||Xt(s))&&(l=jt(o)),h)){const c=mt(o);u=xt(o),f.x=c.x+o.clientLeft,f.y=c.y+o.clientTop}const d=s&&!h&&!i?Ze(s,l):$(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-l.scrollTop*u.y+f.y+d.y}}function ho(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function go(e){const t=jt(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+Ut(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 po=25;function mo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=Y(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,u=0,f=0;if(s){const d=!de()||t==="fixed";o?d||(u=-s.offsetLeft,f=-s.offsetTop):(a=s.width,l=s.height,d&&(u=s.offsetLeft,f=s.offsetTop))}if(Ut(i)<=0){const d=i.ownerDocument,c=d.body,p=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(i.clientWidth-c.clientWidth-m),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?b/2:b;w<=po&&(a-=w)}return{width:a,height:l,x:u,y:f}}function wo(e,t){const n=mt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=xt(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,u=o*i.y;return{width:s,height:a,x:l,y:u}}function De(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=mo(e,n,t);else if(t==="document")o=go(ot(e));else if(Z(t))o=wo(t,n);else{const r=qe(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ht(o)}function vo(e,t){const n=t.get(e);if(n)return n;let o=Tt(e,[],!1).filter(a=>Z(a)&&Ot(a)!=="body"),r=null;const i=G(e).position==="fixed";let s=i?pt(e):e;for(;Z(s)&&!Dt(s);){const a=G(s),l=ue(s),u=r?r.position:i?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?o=o.filter(h=>h!==s):r=a,s=pt(s)}return t.set(e,o),o}function yo(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Yt(t)?[]:vo(t,this._c):[].concat(n),o],a=De(t,s[0],r);let l=a.top,u=a.right,f=a.bottom,h=a.left;for(let d=1;d<s.length;d++){const c=De(t,s[d],r);l=J(c.top,l),u=st(c.right,u),f=st(c.bottom,f),h=J(c.left,h)}return{width:u-h,height:f-l,x:h,y:l}}function xo(e){const{width:t,height:n}=Ue(e);return{width:t,height:n}}function bo(e,t,n){const o=ut(t),r=ot(t),i=n==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=$(0);if((o||!i)&&((Ot(t)!=="body"||Xt(r))&&(a=jt(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=Ut(r));const u=r&&!o&&!i?Ze(r,a):$(0),f=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:f,y:h,width:s.width,height:s.height}}function Zt(e){return G(e).position==="static"}function Te(e,t){if(!ut(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 Ge(e,t){const n=Y(e);if(Yt(e))return n;if(!ut(e)){let r=pt(e);for(;r&&!Dt(r);){if(Z(r)&&!Zt(r))return r;r=pt(r)}return n}let o=Te(e,t);for(;o&&io(o)&&Zt(o);)o=Te(o,t);return o&&Dt(o)&&Zt(o)&&!ue(o)?n:o||lo(e)||n}const Oo=async function(e){const t=this.getOffsetParent||Ge,n=this.getDimensions,o=await n(e.floating);return{reference:bo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Po(e){return G(e).direction==="rtl"}const Ao={convertOffsetParentRelativeRectToViewportRelativeRect:fo,getDocumentElement:ot,getClippingRect:yo,getOffsetParent:Ge,getElementRects:Oo,getClientRects:ho,getDimensions:xo,getScale:xt,isElement:Z,isRTL:Po};function Qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Co(e,t,n){let o=null,r;const i=ot(e);function s(){var f;clearTimeout(r),(f=o)==null||f.disconnect(),o=null}function a(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:c,top:p,width:m,height:b}=d;if(f||t(),!m||!b)return;const w=Mt(p),v=Mt(i.clientWidth-(c+m)),P=Mt(i.clientHeight-(p+b)),O=Mt(c),y={rootMargin:-w+"px "+-v+"px "+-P+"px "+-O+"px",threshold:J(0,st(1,h))||1};let D=!0;function I(B){const M=B[0].intersectionRatio;if(!Qe(d,e.getBoundingClientRect()))return a();if(M!==h){if(!D)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}D=!1}try{o=new IntersectionObserver(I,{...y,root:i.ownerDocument})}catch{o=new IntersectionObserver(I,y)}o.observe(e)}const l=Y(e),u=()=>a(n);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),s()}}function So(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,u=fe(e),f=r||i?[...u?Tt(u):[],...t?Tt(t):[]]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const h=u&&a?Co(u,n,i):null;let d=-1,c=null;s&&(c=new ResizeObserver(w=>{let[v]=w;v&&v.target===u&&c&&t&&(c.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=c)==null||P.observe(t)})),n()}),u&&!l&&c.observe(u),t&&c.observe(t));let p,m=l?mt(e):null;l&&b();function b(){const w=mt(e);m&&!Qe(m,w)&&n(),m=w,p=requestAnimationFrame(b)}return n(),()=>{var w;f.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h?.(),(w=c)==null||w.disconnect(),c=null,l&&cancelAnimationFrame(p)}}const Eo=eo,Fo=no,Do=Jn,To=ro,Mo=$n,Io=Qn,_o=oo,ko=(e,t,n)=>{const o=new Map,r=n??{},i={...Ao,...r.platform,_c:o};return Gn(e,t,{...r,platform:i})};function Bo(e){const t=e.whileElementsMounted,n=A(()=>dt(e.open)??!0),o=A(()=>dt(e.middleware)),r=A(()=>dt(e.transform)??!0),i=A(()=>dt(e.placement)??"bottom"),s=A(()=>dt(e.strategy)??"absolute"),a=A(()=>dt(e.sideOffset)??0),l=A(()=>dt(e.alignOffset)??0),u=e.reference;let f=N(0),h=N(0);const d=it(null);let c=N(It(g(s))),p=N(It(g(i))),m=N(It({})),b=N(!1),w=!1,v=0,P=!1;const O=A(()=>{const L=d.current?be(d.current,g(f)):g(f),R=d.current?be(d.current,g(h)):g(h);return g(r)?{position:g(c),left:"0",top:"0",transform:`translate(${L}px, ${R}px)`,...d.current&&ze(d.current)>=1.5&&{willChange:"transform"}}:{position:g(c),left:`${L}px`,top:`${R}px`}});let S;function y(){if(P||u.current===null||d.current===null)return;const L=u.current,R=d.current,W=++v;ko(L,R,{middleware:g(o),placement:g(i),strategy:g(s)}).then(T=>{if(W!==v||u.current!==L||d.current!==R)return;if(Wo(L)){C(m,{...g(m),hide:{...g(m).hide,referenceHidden:!0}},!0);return}if(!g(n)&&g(f)!==0&&g(h)!==0){const z=Math.max(Math.abs(g(a)),Math.abs(g(l)),15);if(T.x<=z&&T.y<=z)return}C(f,T.x,!0),C(h,T.y,!0),C(c,T.strategy,!0),C(p,T.placement,!0),C(m,T.middlewareData,!0),C(b,!0)})}function D(){typeof S=="function"&&(S(),S=void 0),v++}function I(){if(D(),t===void 0){y();return}g(n)&&(u.current===null||d.current===null||(S=t(u.current,d.current,y)))}function B(){!g(n)&&d.current===null&&C(b,!1)}function M(){return[g(o),g(i),g(s),g(a),g(l),g(n)]}return rt(()=>{t===void 0&&g(n)&&y()}),rt(I),rt(()=>{if(t!==void 0){if(M(),!g(n)){w=!1;return}if(!g(b)){w=!1;return}if(!w){w=!0;return}y()}}),rt(B),rt(()=>()=>{P=!0,D()}),{floating:d,reference:u,get strategy(){return g(c)},get placement(){return g(p)},get middlewareData(){return g(m)},get isPositioned(){return g(b)},get floatingStyles(){return g(O)},get update(){return y}}}function Wo(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const No={top:"bottom",right:"left",bottom:"top",left:"right"},ne=new Vt("Floating.Content");class Rt{static create(t,n=!1){return n?ne.set(new Rt(t,se.get())):ne.set(new Rt(t,ie.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Et(this.contentRef);wrapperAttachment=Et(this.wrapperRef);arrowAttachment=Et(this.arrowRef);arrowId=it(Le());#t=A(()=>{if(typeof this.opts.style=="string")return hn(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new Wn(()=>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(()=>g(this.#a).length>0);get hasExplicitBoundaries(){return g(this.#n)}set hasExplicitBoundaries(t){C(this.#n,t)}#l=A(()=>({padding:this.opts.collisionPadding.current,boundary:g(this.#a).filter(gn),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return g(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(()=>[Eo({mainAxis:this.opts.sideOffset.current+g(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Fo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?_o():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Do({...this.detectOverflowOptions}),To({...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&&Io({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Lo({arrowWidth:g(this.#r),arrowHeight:g(this.#e)}),this.opts.hideWhenDetached.current&&Mo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return g(this.#p)}set middleware(t){C(this.#p,t)}floating;#u=A(()=>Ho(this.floating.placement));get placedSide(){return g(this.#u)}set placedSide(t){C(this.#u,t)}#h=A(()=>Ro(this.floating.placement));get placedAlign(){return g(this.#h)}set placedAlign(t){C(this.#h,t)}#m=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return g(this.#m)}set arrowX(t){C(this.#m,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return g(this.#w)}set arrowY(t){C(this.#w,t)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return g(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=N();get contentZIndex(){return g(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#x=A(()=>No[this.placedSide]);get arrowBaseSide(){return g(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":`${g(this.#c)}px`,"--bits-floating-available-height":`${g(this.#d)}px`,"--bits-floating-anchor-width":`${g(this.#f)}px`,"--bits-floating-anchor-height":`${g(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...g(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return g(this.#b)}set wrapperProps(t){C(this.#b,t)}#O=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:pn({...g(this.#t)}),...this.contentAttachment}));get props(){return g(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 g(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),Ft(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=Bo({strategy:()=>this.opts.strategy.current,placement:()=>g(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>So(...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()}),Ft(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=mn(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 Je{static create(t){return new Je(t,ne.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 g(this.#t)}set props(t){C(this.#t,t)}}function Lo(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,[u,f]=he(n),h={start:"0%",center:"50%",end:"100%"}[f],d=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let p="",m="";return u==="bottom"?(p=s?h:`${d}px`,m=`${-l}px`):u==="top"?(p=s?h:`${d}px`,m=`${o.floating.height+l}px`):u==="right"?(p=`${-l}px`,m=s?h:`${c}px`):u==="left"&&(p=`${o.floating.width+l}px`,m=s?h:`${c}px`),{data:{x:p,y:m}}}}}function he(e){const[t,n="center"]=e.split("-");return[t,n]}function Ho(e){return he(e)[0]}function Ro(e){return he(e)[1]}function zo(e,t){lt(t,!0);let n=x(t,"side",3,"bottom"),o=x(t,"sideOffset",3,0),r=x(t,"align",3,"center"),i=x(t,"alignOffset",3,0),s=x(t,"arrowPadding",3,0),a=x(t,"avoidCollisions",3,!0),l=x(t,"collisionBoundary",19,()=>[]),u=x(t,"collisionPadding",3,0),f=x(t,"hideWhenDetached",3,!1),h=x(t,"onPlaced",3,()=>{}),d=x(t,"sticky",3,"partial"),c=x(t,"updatePositionStrategy",3,"optimized"),p=x(t,"strategy",3,"fixed"),m=x(t,"dir",3,"ltr"),b=x(t,"style",19,()=>({})),w=x(t,"wrapperId",19,Le),v=x(t,"customAnchor",3,null),P=x(t,"tooltip",3,!1);const O=Rt.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(()=>u()),hideWhenDetached:E(()=>f()),onPlaced:E(()=>h()),sticky:E(()=>d()),updatePositionStrategy:E(()=>c()),strategy:E(()=>p()),dir:E(()=>m()),style:E(()=>b()),enabled:E(()=>t.enabled),wrapperId:E(()=>w()),customAnchor:E(()=>v())},P()),S=A(()=>yt(O.wrapperProps,{style:{pointerEvents:"auto"}}));var y=K(),D=V(y);j(D,()=>t.content??tt,()=>({props:O.props,wrapperProps:g(S)})),H(e,y),ct()}function Vo(e,t){lt(t,!0),Dn(()=>{t.onPlaced?.()});var n=K(),o=V(n);j(o,()=>t.content??tt,()=>({props:{},wrapperProps:{}})),H(e,n),ct()}var Ko=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function Xo(e,t){let n=x(t,"isStatic",3,!1),o=Q(t,Ko);var r=K(),i=V(r);{var s=l=>{Vo(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{zo(l,et({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};gt(i,l=>{n()?l(s):l(a,-1)})}H(e,r)}var Yo=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"]),jo=re("<!> <!>",1);function $e(e,t){lt(t,!0);let n=x(t,"interactOutsideBehavior",3,"close"),o=x(t,"trapFocus",3,!0),r=x(t,"isValidEvent",3,()=>!1),i=x(t,"customAnchor",3,null),s=x(t,"isStatic",3,!1),a=x(t,"tooltip",3,!1),l=x(t,"contentPointerEvents",3,"auto"),u=Q(t,Yo);const f=A(()=>t.preventScroll??!0),h=A(()=>t.strategy??(g(f)?"fixed":"absolute"));Xo(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 g(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,p)=>{let m=()=>(p?.()).props,b=()=>(p?.()).wrapperProps;var w=jo(),v=V(w);{var P=y=>{ve(y,{get preventScroll(){return g(f)}})},O=y=>{ve(y,{get preventScroll(){return g(f)}})};gt(v,y=>{t.forceMount&&t.enabled?y(P):t.forceMount||y(O,1)})}var S=un(v,2);wn(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:(D,I)=>{let B=()=>(I?.()).props;vn(D,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,L)=>{yn(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:(W,T)=>{let X=()=>(T?.()).props;xn(W,{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,_)=>{var F=K(),k=V(F);{let U=A(()=>({props:yt(u,m(),X(),B(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:b()}));j(k,()=>t.popper??tt,()=>g(U))}H(z,F)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),H(c,w)},$$slots:{content:!0}}),ct()}var Uo=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 qo(e,t){let n=x(t,"interactOutsideBehavior",3,"close"),o=x(t,"trapFocus",3,!0),r=x(t,"isValidEvent",3,()=>!1),i=x(t,"customAnchor",3,null),s=x(t,"isStatic",3,!1),a=Q(t,Uo);var l=K(),u=V(l);{var f=h=>{$e(h,et({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(u,h=>{t.shouldRender&&h(f)})}H(e,l)}var Zo=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 Go(e,t){let n=x(t,"interactOutsideBehavior",3,"close"),o=x(t,"trapFocus",3,!0),r=x(t,"isValidEvent",3,()=>!1),i=x(t,"customAnchor",3,null),s=x(t,"isStatic",3,!1),a=Q(t,Zo);$e(e,et({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 Gt(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,u]=t[s]??[0,0],[f,h]=t[a]??[0,0];u>=o!=h>=o&&n<=(f-l)*(o-u)/(h-u)+l&&(r=!r)}return r}function Qt(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Me(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 Qo{#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,Ft([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=bn(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 p=this.#t.ignoredTargets?.()??[];ht(c)&&p.some(m=>m===c||m.contains(c))||(this.#s=ht(c)&&p.length>0?p.filter(m=>c.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#e="content",this.#d())},u=()=>{this.#u()},f=()=>{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[Pt(s,"pointermove",a),Pt(o,"pointerleave",l),Pt(o,"pointerenter",u),Pt(r,"pointerenter",f),Pt(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"&&Qt(t,i)){this.#u();return}if(this.#e==="trigger"&&Qt(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const f of this.#s){const h=f.getBoundingClientRect();if(Qt(t,h))return;const d=Me(r,h),c=this.#h(r,h,d);if(c&&Gt(t,c))return}const s=Me(r,i),a=this.#h(r,i,s);if(a&&Gt(t,a))return;const l=this.#e==="content"?i:r,u=this.#m(this.#r,l,s,this.#e);Gt(t,u)||(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 oe=Fn({component:"popover",parts:["root","trigger","content","close","overlay"]}),ge=new Vt("Popover.Root");class pe{static create(t){return ge.set(new pe(t))}opts;#t=N(null);get contentNode(){return g(this.#t)}set contentNode(t){C(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return g(this.#o)}set triggerNode(t){C(this.#o,t,!0)}#i=N(null);get overlayNode(){return g(this.#i)}set overlayNode(t){C(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return g(this.#r)}set openedViaHover(t){C(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return g(this.#e)}set hasInteractedWithContent(t){C(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return g(this.#s)}set hoverCooldown(t){C(this.#s,t,!0)}#a=N(0);get closeDelay(){return g(this.#a)}set closeDelay(t){C(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new ye({ref:E(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ye({ref:E(()=>this.overlayNode),open:this.opts.open}),Ft(()=>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 me{static create(t){return new me(t,ge.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Et(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new On(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),Ft(()=>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||kt(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&&(kt(t)||(C(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),g(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}g(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===Pn||t.key===An)&&(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":Cn(this.root.opts.open.current),"data-state":He(this.root.opts.open.current),"aria-controls":this.#a(),[oe.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return g(this.#n)}set props(t){C(this.#n,t)}}class we{static create(t){return new we(t,ge.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Et(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 Qo({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)&&Sn(n)&&this.root.markInteraction()}onpointerenter(t){kt(t)||this.root.cancelDelayedClose()}onpointerleave(t){kt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ht(t.target))return;const n=t.target.closest(oe.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 g(this.#t)}set snippetProps(t){C(this.#t,t)}#o=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":He(this.root.opts.open.current),...En(this.root.contentPresence.transitionStatus),[oe.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return g(this.#o)}set props(t){C(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Jo=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),Ie=re("<div><div><!></div></div>");function Mr(e,t){const n=Ne();lt(t,!0);let o=x(t,"ref",15,null),r=x(t,"id",19,()=>Re(n)),i=x(t,"forceMount",3,!1),s=x(t,"onOpenAutoFocus",3,vt),a=x(t,"onCloseAutoFocus",3,vt),l=x(t,"onEscapeKeydown",3,vt),u=x(t,"onInteractOutside",3,vt),f=x(t,"trapFocus",3,!0),h=x(t,"preventScroll",3,!1),d=x(t,"customAnchor",3,null),c=Q(t,Jo);const p=we.create({id:E(()=>r()),ref:E(()=>o(),y=>o(y)),onInteractOutside:E(()=>u()),onEscapeKeydown:E(()=>l()),customAnchor:E(()=>d())}),m=A(()=>yt(c,p.props)),b=A(()=>f()&&p.shouldTrapFocus);function w(y){p.shouldTrapFocus||y.preventDefault(),s()(y)}var v=K(),P=V(v);{var O=y=>{Go(y,et(()=>g(m),()=>p.popperProps,{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},get id(){return r()},get trapFocus(){return g(b)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return p.shouldRender},popper:(I,B)=>{let M=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const R=A(()=>yt(M(),{style:Oe("popover")},{style:t.style}));var W=K(),T=V(W);{var X=_=>{var F=K(),k=V(F);{let U=A(()=>({props:g(R),wrapperProps:L(),...p.snippetProps}));j(k,()=>t.child,()=>g(U))}H(_,F)},z=_=>{var F=Ie();St(F,()=>({...L()}));var k=At(F);St(k,()=>({...g(R)}));var U=At(k);j(U,()=>t.children??tt),Ct(k),Ct(F),H(_,F)};gt(T,_=>{t.child?_(X):_(z,-1)})}H(I,W)},$$slots:{popper:!0}}))},S=y=>{qo(y,et(()=>g(m),()=>p.popperProps,{get ref(){return p.opts.ref},get open(){return p.root.opts.open.current},get id(){return r()},get trapFocus(){return g(b)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return p.shouldRender},popper:(I,B)=>{let M=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const R=A(()=>yt(M(),{style:Oe("popover")},{style:t.style}));var W=K(),T=V(W);{var X=_=>{var F=K(),k=V(F);{let U=A(()=>({props:g(R),wrapperProps:L(),...p.snippetProps}));j(k,()=>t.child,()=>g(U))}H(_,F)},z=_=>{var F=Ie();St(F,()=>({...L()}));var k=At(F);St(k,()=>({...g(R)}));var U=At(k);j(U,()=>t.children??tt),Ct(k),Ct(F),H(_,F)};gt(T,_=>{t.child?_(X):_(z,-1)})}H(I,W)},$$slots:{popper:!0}}))};gt(P,y=>{i()?y(O):i()||y(S,1)})}H(e,v),ct()}var $o=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),tr=re("<button><!></button>");function Ir(e,t){const n=Ne();lt(t,!0);let o=x(t,"id",19,()=>Re(n)),r=x(t,"ref",15,null),i=x(t,"type",3,"button"),s=x(t,"disabled",3,!1),a=x(t,"openOnHover",3,!1),l=x(t,"openDelay",3,700),u=x(t,"closeDelay",3,300),f=Q(t,$o);const h=me.create({id:E(()=>o()),ref:E(()=>r(),c=>r(c)),disabled:E(()=>!!s()),openOnHover:E(()=>a()),openDelay:E(()=>l()),closeDelay:E(()=>u())}),d=A(()=>yt(f,h.props,{type:i()}));Ln(e,{get id(){return o()},get ref(){return h.opts.ref},children:(c,p)=>{var m=K(),b=V(m);{var w=P=>{var O=K(),S=V(O);j(S,()=>t.child,()=>({props:g(d)})),H(P,O)},v=P=>{var O=tr();St(O,()=>({...g(d)}));var S=At(O);j(S,()=>t.children??tt),Ct(O),H(P,O)};gt(b,P=>{t.child?P(w):P(v,-1)})}H(c,m)},$$slots:{default:!0}}),ct()}function _r(e,t){lt(t,!0);let n=x(t,"open",15,!1),o=x(t,"onOpenChange",3,vt),r=x(t,"onOpenChangeComplete",3,vt);pe.create({open:E(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:E(()=>r())}),Nn(e,{children:(i,s)=>{var a=K(),l=V(a);j(l,()=>t.children??tt),H(i,a)},$$slots:{default:!0}}),ct()}class er{#t=N(It([]));get rows(){return g(this.#t)}set rows(t){C(this.#t,t,!0)}}const kr=new er,_e=2*6e4,ke=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function tn(e,t){return new RegExp(`(?<![\\w-])${ke(t.id)}(?![\\w-])`).test(e)?!0:[t.pr?.url,t.preview?.url].filter(o=>!!o).map(o=>o.replace(/\/+$/,"")).some(o=>new RegExp(`${ke(o)}(?![\\w-])`).test(e))}const Jt=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function Br(e,t){const n=new Map;for(const o of t){if(!o.preview)continue;const r=Jt(o.preview.reportedAt),i=o.status==="landed",s=i?Jt(o.mergedAt):null;let a=null,l=null;for(const f of e){if(f.kind!=="turn")continue;const h=Jt(f.at);if(r!==null&&(h===null||h<r-_e))continue;const d=f.parts.find(c=>c.kind==="text"&&tn(c.text,o));if(d&&(a??=d.id,i&&(s===null||h!==null&&h>=s-_e))){l=d.id;break}}const u=l??a;u&&n.set(u,[...n.get(u)??[],{task:o,landed:i}])}return n}function Be(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function nr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${Be(e.id)}: ${e.title}]`:`[task ${Be(e.id)}: ${e.title}]`}function Wr(e){return e.map(t=>typeof t=="string"?t:nr(t)).join("").replace(/\u00a0/g," ").trim()}function or(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 rr=/\[(?: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 ir(e){const t=[];let n=0;for(const o of e.matchAll(rr))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 sr=140,ar={firstmate:"Firstmate",captain:"my message"};function en(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 ir(t).map(n=>typeof n=="string"?n:or(n,60)).join("").replace(/\s+/g," ").trim()}function Nr(e,t=sr){const n=en(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 Lr(e,t){const n=t.trim();return n&&`> Replying to ${ar[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
2
|
+
|
|
3
|
+
${n}`}const lr=/^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;function cr(e){const t=e.replace(/\r\n?/g,`
|
|
4
|
+
`).match(lr);return!t||!t[3].trim()?{to:null,body:e}:{to:{who:t[1]==="Firstmate"?"firstmate":"captain",snippet:t[2]},body:t[3]}}function Hr(e,t){const n=en(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",_t={topic:wt,source:null},ur=/^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i,dr=/^\s{0,3}(`{3,}|~{3,})/;function fr(e){const t=[];let n=null,o=[],r=null;const i=()=>{const s=o.join(`
|
|
5
|
+
`).trim();s&&t.push({slug:n,text:s}),o=[]};for(const s of e.split(`
|
|
6
|
+
`)){const a=s.match(dr)?.[1];a&&(!r||a[0]===r[0])&&(r=r?null:a);const l=r?null:s.match(ur);l?(i(),n=l[1]):o.push(s)}return i(),!t.length&&!e.trim()?[]:t.length?t:[{slug:n,text:""}]}const hr=/^\[project ([^\]\s]+)\][ \u00a0]?/;function Rr(e,t){return t&&t!==wt?`[project ${t}] ${e}`:e}function gr(e){const t=e.match(hr);return t?{topic:t[1],text:e.slice(t[0].length)}:{topic:null,text:e}}const $t=e=>e.trim().toLowerCase().replace(/[^a-z0-9.]+/g,"-").replace(/^-+|-+$/g,"");function We(e,t){const n=e.trim().toLowerCase(),o=$t(e),r=t.find(i=>i.id.toLowerCase()===n)??t.find(i=>i.name.toLowerCase()===n)??t.find(i=>$t(i.id)===o||$t(i.name)===o);return r?r.id:o||wt}function zr(e){const t=e.replace(/[-_]+/g," ").trim();return t?t[0].toUpperCase()+t.slice(1):e}function pr(e,t){let n=null;for(const o of t)if(!(!o.projectId||o.projectId==="unassigned"||o.projectId===n)&&tn(e,o)){if(n)return null;n=o.projectId}return n}function Vr(e,t,n,o={}){const r=new Map,i=new Map,s=new Map,a=f=>{const h=pr(f,t);return h?{topic:h,source:"guess"}:null},l=(f,h)=>o[f]?{topic:o[f],source:o[f]===wt?null:"you"}:h;let u=null;for(const f of e){if(f.kind==="user"){const c=gr(cr(f.text).body),p=c.topic?{topic:We(c.topic,n),source:"thread"}:a(c.text)??_t,m=l(f.id,p);r.set(f.id,m),u=m;continue}if(f.kind!=="turn")continue;let h=null;const d=f.trigger==="captain"&&u?.source?u:null;for(const c of f.parts){if(c.kind!=="text")continue;const p=fr(c.text),b=p.map((v,P)=>{let O;v.slug?O={topic:We(v.slug,n),source:"marker"}:h?.source==="marker"?O=h:O=a(v.text)??h??(d&&{...d,source:"guess"})??_t,O.source&&(h=O);const S=P===0&&!v.slug&&p.length>1;return{key:P?`${c.id}#${P}`:c.id,text:v.text,tag:O,intro:S}}).map(v=>({...v,tag:l(v.key,v.tag)}));i.set(c.id,b);const w=b.find(v=>!v.intro);!s.has(f.id)&&w&&s.set(f.id,w.tag)}s.has(f.id)||s.set(f.id,l(`turn:${f.id}`,d?{...d,source:"guess"}:_t))}return{users:r,parts:i,turns:s}}function Kr(e,t,n,o={}){const r=o[e];return r?{topic:r,source:r===wt?null:"you"}:t&&t!=="unassigned"?{topic:t,source:n}:_t}function Xr(e,t=null){const n=new Map;for(const o of e){const r=o.at?Date.parse(o.at):NaN;for(const i of new Set(o.topics)){const s=n.get(i)??{topic:i,count:0,needs:0,last:0};s.count++,o.needs&&s.needs++,Number.isNaN(r)||(s.last=Math.max(s.last,r)),n.set(i,s)}}return t&&!n.has(t)&&n.set(t,{topic:t,count:0,needs:0,last:0}),[...n.values()].sort((o,r)=>+(o.topic===wt)-+(r.topic===wt)||r.last-o.last||o.topic.localeCompare(r.topic))}function Yr(e,t){const n=new Map;let o=null;for(const r of e){if(r.topics.includes(t)){o=null;continue}o||(o={first:r.key,count:0,topics:[],from:r.at,to:r.at}),o.count++,o.to=r.at??o.to;for(const i of r.topics)o.topics.includes(i)||o.topics.push(i);n.set(r.key,o)}return n}function jr(e){return e?.replace(/[\\/]+$/,"").split(/[\\/]/).pop()?.trim()||null}function Ur(e){const t=e.split(/[^\p{L}\p{N}]+/u).filter(Boolean);return t.length?t.length===1?t[0].slice(0,2).toUpperCase():(t[0][0]+t[1][0]).toUpperCase():"?"}function qr(e){let t=0;for(const n of e)t=t*31+n.codePointAt(0)>>>0;return t%6}const nn=e=>e.status!=="queued"&&e.status!=="landed"&&e.status!=="closed",mr=e=>e.status==="failed"||e.status==="blocked"||e.status==="lost"||e.pipeline?.outcome==="failed"||e.passage.steps.some(t=>t.failed);function Zr(e){const t=e.filter(nn),n=t.filter(mr).length;return{percent:t.length?Math.round((t.length-n)/t.length*100):100,failing:n,inPlay:t.length}}function Gr(e,t,n=4){return e.map(o=>{const r=t.filter(a=>a.projectId===o.id),i=r.some(Tn),s=r.some(a=>a.busy||nn(a)&&a.status==="working");return{id:o.id,name:o.name,landed:r.length?Math.round(r.filter(a=>a.status==="landed").length/r.length*100):0,word:i?"Needs you":s?"Working":"Quiet",tone:i?"needs":s?"busy":"quiet",tasks:r.length}}).filter(o=>o.tasks>0).sort((o,r)=>r.tasks-o.tasks||o.name.localeCompare(r.name)).slice(0,n)}export{Nn as A,Er as B,Go as C,qo as D,Oe as E,Je as F,Fr as G,Ln as H,Qo as I,jr as J,qr as K,Ur as L,nn as M,Dr as P,Tr as S,wt as U,Wr as a,Lr as b,or as c,$t as d,nr as e,Ir as f,Mr as g,_r as h,kr as i,gr as j,zr as k,Yr as l,ir as m,fr as n,_t as o,cr as p,Kr as q,Vr as r,Nr as s,Xr as t,Br as u,Sr as v,Rr as w,Hr as x,Zr as y,Gr as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{s as ve,r as de,p as X,i as $}from"./DnDesMxN.js";import{I as fe,t as Mt}from"./BbU5AsRD.js";import{a as Dt,o as bt}from"./Blj84s6L.js";import{q as Pt,H as At,l as A,m as Qe,g as t,v as x,k as et,p as Oe,u as Pe,i as c,s as v,r as d,t as P,a as h,b as Ne,h as R,o as K,d as q,j as Xe,f as De,c as p,x as I,bB as Rt,n as se,bC as wt,y as Lt,F as ct,z as _t,af as Ot}from"./BOY9WARo.js";import{a as Ae,s as F,d as ut,g as Nt,e as nt,i as qt,r as Ht,l as jt}from"./BRuDnHyc.js";import{b as Ke}from"./4VJeJzd5.js";import{z as It}from"./CNcEb8rI.js";import{k as Wt,X as Ze}from"./BBWR4qW2.js";import{a as Ft,f as Kt,s as Ut}from"./ohZIF1HO.js";import{R as Bt}from"./BzYzevxb.js";import{E as Yt}from"./He17Vv5l.js";import{h as Gt,m as Jt}from"./DnQR8b1d.js";import{b as yt}from"./CrPP6AgN.js";import{p as kt}from"./DQEmyAe4.js";import{S as Vt,c as zt}from"./D8Hr8rhb.js";import{M as St}from"./CDGwSysF.js";import{A as Xt}from"./DRK9oYED.js";import{a as Qt}from"./DWlSINHC.js";import{C as Zt}from"./CaaP7Cfy.js";import{P as vt}from"./6x5fl0iw.js";class ot{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,a){var n=this.#e.get(e)||new Set;return n.add(a),this.#e.set(e,n),this.#s().observe(e,this.#n),()=>{var s=this.#e.get(e);s.delete(a),s.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#s(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var a of e){ot.entries.set(a.target,a);for(var n of this.#e.get(a.target)||[])n(a)}}))}}var ea=new ot({box:"border-box"});function ta(r,e,a){var n=ea.observe(r,()=>a(r[e]));Pt(()=>(At(()=>a(r[e])),n))}var aa=new Set(["$$slots","$$events","$$legacy"]);function dr(r,e){let a=de(e,aa);const n={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]]};fe(r,ve(()=>a,{get icon(){return n}}))}var na=new Set(["$$slots","$$events","$$legacy"]);function rt(r,e){let a=de(e,na);const n={name:"crosshair",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]]};fe(r,ve(()=>a,{get icon(){return n}}))}var ra=new Set(["$$slots","$$events","$$legacy"]);function ht(r,e){let a=de(e,ra);const n={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6"}],["path",{d:"m21 3-7 7"}],["path",{d:"m3 21 7-7"}],["path",{d:"M9 21H3v-6"}]]};fe(r,ve(()=>a,{get icon(){return n}}))}var sa=new Set(["$$slots","$$events","$$legacy"]);function ia(r,e){let a=de(e,sa);const n={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};fe(r,ve(()=>a,{get icon(){return n}}))}var oa=new Set(["$$slots","$$events","$$legacy"]);function pt(r,e){let a=de(e,oa);const n={name:"monitor-off",size:24,node:[["path",{d:"M12 17v4"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8 21h8"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042"}]]};fe(r,ve(()=>a,{get icon(){return n}}))}var la=new Set(["$$slots","$$events","$$legacy"]);function ft(r,e){let a=de(e,la);const n={name:"monitor-play",size:24,node:[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z"}],["path",{d:"M12 17v4"}],["path",{d:"M8 21h8"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}]]};fe(r,ve(()=>a,{get icon(){return n}}))}var da=new Set(["$$slots","$$events","$$legacy"]);function ca(r,e){let a=de(e,da);const n={name:"mouse-pointer-click",size:24,node:[["path",{d:"M14 4.1 12 6"}],["path",{d:"m5.1 8-2.9-.8"}],["path",{d:"m6 12-1.9 2"}],["path",{d:"M7.2 2.2 8 5.1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"}]]};fe(r,ve(()=>a,{get icon(){return n}}))}var ua=new Set(["$$slots","$$events","$$legacy"]);function va(r,e){let a=de(e,ua);const n={name:"panel-right-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m8 9 3 3-3 3"}]]};fe(r,ve(()=>a,{get icon(){return n}}))}var ha=new Set(["$$slots","$$events","$$legacy"]);function pa(r,e){let a=de(e,ha);const n={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]]};fe(r,ve(()=>a,{get icon(){return n}}))}var fa=new Set(["$$slots","$$events","$$legacy"]);function ga(r,e){let a=de(e,fa);const n={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};fe(r,ve(()=>a,{get icon(){return n}}))}const ma=15e3,xa=5e3;class ba{#e=A(Qe({}));get checks(){return t(this.#e)}set checks(e){x(this.#e,e,!0)}#t=A(Qe({}));get failed(){return t(this.#t)}set failed(e){x(this.#t,e,!0)}watching=new Map;running=new Map;unlisten=null;stopped(e){return this.checks[e]?.state==="down"}watch(e){const a=this.watching.get(e);a?a.count++:(this.watching.set(e,{count:1,timer:null}),this.refresh(e)),this.listen();let n=!1;return()=>{if(n)return;n=!0;const s=this.watching.get(e);!s||--s.count>0||(s.timer&&clearTimeout(s.timer),this.watching.delete(e),this.watching.size||(this.unlisten?.(),this.unlisten=null))}}refresh(e){const a=this.running.get(e);if(a)return a;const n=this.load(e).finally(()=>{this.running.delete(e),this.schedule(e)});return this.running.set(e,n),n}clear(){for(const e of this.watching.values())e.timer&&clearTimeout(e.timer);this.watching.clear(),this.unlisten?.(),this.unlisten=null,this.checks={},this.failed={}}async load(e){try{const a=await fetch(`/api/tasks/${encodeURIComponent(e)}/preview`);if(!a.ok)throw new Error(String(a.status));this.checks[e]=await a.json(),this.failed[e]=!1}catch{this.failed[e]=!0}}schedule(e){const a=this.watching.get(e);if(!a)return;a.timer&&clearTimeout(a.timer);const n=this.checks[e]?.state==="live"?ma:xa;a.timer=setTimeout(()=>{a.timer=null,document.visibilityState!=="hidden"&&this.refresh(e)},n)}listen(){if(this.unlisten)return;const e=()=>{if(document.visibilityState!=="hidden")for(const a of this.watching.keys())this.refresh(a)};window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),this.unlisten=()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}}}const Ve=new ba,gt=500,Fe=r=>r.replace(/\s+/g," ").trim(),wa=(r,e)=>r.length>e?r.slice(0,e-1).trimEnd()+"…":r;function st(r){const e=r.y<.3333333333333333?"top":r.y<.6666666666666666?"middle":"bottom",a=r.x<1/3?"left":r.x<2/3?"":"right";return e==="middle"&&!a?"the middle":`the ${e}${a?` ${a}`:""}`}const _a={button:"button",a:"link",input:"box",textarea:"box",select:"menu",img:"picture",h1:"heading",h2:"heading",h3:"heading",h4:"heading",label:"label",li:"item"};function ya(r,e,a){const n=r?.closest('button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, [role="button"]')??r;if(n&&n.tagName!=="HTML"&&n.tagName!=="BODY"){const s=n.tagName.toLowerCase(),i=n.getAttribute("role")==="button"?"button":_a[s]??"part of the page",o=wa(Fe(n.value||n.getAttribute("aria-label")||n.getAttribute("alt")||n.textContent||""),60);return{kind:"element",label:o?`the “${o}” ${i}`:`a ${i} near ${st(e)}`,detail:`<${s}>${o?` “${o}”`:""}, near ${st(e)} of the page`}}return{kind:"spot",label:`a spot near ${st(e)} of the page`,detail:`${Math.round(e.x*100)}% across and ${Math.round(e.y*100)}% down the part of the page in view (${a.w}×${a.h})`}}const ka=/^Preview feedback for (\S+) \((.+)\), sent together from the Preview tab \(([^)\n]*)\):$/,za=/^Feedback for (\S+) \((.+)\), sent together from the “([^“”\n]+)” plugin \(([a-z][a-z0-9-]*)\)(?:, about (.+))?:$/,Sa="Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours.",Ta=r=>r.flatMap((e,a)=>[`${a+1}. ${Fe(e.text)}`,...e.points&&Fe(e.points)?[` Points at: ${Fe(e.points)}`]:[]]);function $a(r,e,a){return[`Preview feedback for ${r.id} (${Fe(r.title)}), sent together from the Preview tab (${e}):`,...Ta(a.map(n=>({text:n.text,points:n.points?.label??null}))),"",Sa].join(`
|
|
2
|
+
`)}function cr(r){const e=r.replace(/\r\n?/g,`
|
|
3
|
+
`).split(`
|
|
4
|
+
`),a=ka.exec(e[0]??""),n=a?null:za.exec(e[0]??""),s=a??n;if(!s)return null;const i=[];for(const o of e.slice(1)){const l=/^\d+\. (.+)$/.exec(o);if(l){i.push({text:l[1],points:null});continue}const u=/^ {3}Points at: (.+)$/.exec(o);u&&i.length&&(i[i.length-1].points=u[1])}return i.length?{taskId:s[1],title:s[2],url:a?a[3]:null,plugin:n?{id:n[4],name:n[3],subject:n[5]??null}:null,items:i}:null}var Ea=p('<button type="button" class="rounded p-1 hover:bg-accent hover:text-foreground"><!></button>'),Ca=p('<a target="_blank" rel="noreferrer" class="inline-flex shrink-0 items-center gap-1 rounded px-1 py-0.5 text-sea hover:underline">Open in new tab<!></a>'),Ma=p('<button type="button" class="inline-flex shrink-0 items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-accent" data-preview-fullscreen=""><!>Full screen</button>'),Da=p('<div class="flex items-center gap-2 text-xs text-muted-foreground"><span class="min-w-0 flex-1 truncate font-mono"> </span> <!> <!> <!></div>'),Pa=p('<iframe referrerpolicy="no-referrer" loading="lazy"></iframe>'),Aa=p('<button type="button" class="absolute inset-0 cursor-zoom-in" aria-label="Open the preview full size" data-preview-open=""><span class="absolute right-2.5 bottom-2.5 flex items-center gap-1.5 rounded-md border border-hair bg-card/95 px-2 py-1 text-xs font-medium text-foreground opacity-0 shadow-sm transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"><!>Open full size</span></button>'),Ra=p("<!> <!>",1),La=p('<button type="button" class="absolute inset-0 cursor-crosshair bg-sea/5 ring-2 ring-sea ring-inset" aria-label="Point at part of the page" data-preview-pointing=""><span class="pointer-events-none absolute top-3 left-1/2 flex -translate-x-1/2 items-center gap-2 rounded-full bg-sea px-3.5 py-1.5 text-sm text-on-accent shadow-lg"><!>Click the part you mean</span></button>'),Oa=p('<span class="pointer-events-none absolute size-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-sea shadow-md ring-2 ring-sea/40" aria-hidden="true" data-preview-pin=""></span>'),Na=p('<iframe referrerpolicy="no-referrer" class="size-full border-0 bg-white"></iframe> <!>',1),qa=p('<span class="block text-xs"> </span>'),Ha=p('<div class="flex items-start gap-2.5 px-4 py-3 text-muted-foreground" data-preview-notice=""><!> <p class="min-w-0 text-sm"><span> </span> <!></p></div>'),ja=p('<p class="text-sm"> </p>'),Ia=p('<!> <p class="mt-2 text-sm font-medium"> </p> <p class="mt-1 text-xs"> </p>',1),Wa=p('<div class="grid size-full place-items-center p-4 text-center text-muted-foreground" data-preview-notice=""><div><!></div></div>'),Fa=p("<div><!> <div><!></div></div>");function Ka(r,e){Oe(e,!0);let a=X(e,"compact",3,!1),n=X(e,"fill",3,!1),s=X(e,"toolbar",3,!0),i=X(e,"pointing",3,!1),o=X(e,"pin",3,null),l=A(null);function u(S){const T=S.currentTarget.getBoundingClientRect(),N=S.clientX-T.left,W=S.clientY-T.top;let G=null;try{G=t(l)?.contentDocument?.elementFromPoint(N,W)??null}catch{G=null}const g={x:T.width?N/T.width:0,y:T.height?W/T.height:0};e.onpoint?.(ya(G,g,{w:Math.round(T.width),h:Math.round(T.height)}),g)}const f={w:1280,h:800};let L=A(0),H=A(0);Pe(()=>Ve.watch(e.taskId));const O=R(()=>Ve.checks[e.taskId]??null),he=R(()=>!!Ve.failed[e.taskId]),Y=R(()=>t(O)?.state==="live"),Q=R(()=>t(O)?.url??null),Z=R(()=>t(Q)&&t(O)?Ft.view(t(Q)):null),we=R(()=>t(Z)?Kt(t(Z),location.origin):""),ie=R(()=>t(H)?t(H)/f.w:0);var ee=Fa(),ce=c(ee);{var _e=S=>{var T=Da(),N=c(T),W=K(N,!0),G=v(N,2);{var g=b=>{var _=Ea(),U=c(_);Bt(U,{class:"size-3.5"}),d(_),P(()=>{F(_,"aria-label",t(Y)?"Reload the preview":"Check the preview again"),F(_,"title",t(Y)?"Reload":"Check again")}),I("click",_,()=>{Rt(L),Ve.refresh(e.taskId)}),h(b,_)};$(G,b=>{(t(Y)||t(O)?.state==="blocked"||t(O)?.state==="down")&&b(g)})}var E=v(G,2);{var te=b=>{var _=Ca(),U=v(c(_));Yt(U,{class:"size-3.5","aria-hidden":"true"}),d(_),P(()=>F(_,"href",t(Z))),h(b,_)};$(E,b=>{(t(Y)||t(O)?.state==="blocked")&&b(te)})}var M=v(E,2);{var D=b=>{var _=Ma(),U=c(_);ht(U,{class:"size-3.5","aria-hidden":"true"}),se(),d(_),I("click",_,function(...ae){e.onfullscreen?.apply(this,ae)}),h(b,_)};$(M,b=>{e.onfullscreen&&t(Y)&&b(D)})}d(T),P(()=>{F(N,"title",t(Q)??void 0),q(W,t(Q)??"Live preview")}),h(S,T)};$(ce,S=>{s()&&S(_e)})}var j=v(ce,2),ye=c(j);{var z=S=>{var T=Xe(),N=De(T);Wt(N,()=>`${t(Z)} ${t(L)}`,W=>{var G=Xe(),g=De(G);{var E=M=>{var D=Ra(),b=De(D);{var _=y=>{var k=Pa();P(()=>{F(k,"src",t(Z)),F(k,"title",`Live preview of ${t(Q)??""}`),F(k,"sandbox",t(we)),k.inert=!!e.onopen,Ae(k,1,`absolute top-0 left-0 origin-top-left border-0 bg-white ${e.onopen?"pointer-events-none":""}`),ut(k,`width:${f.w}px;height:${f.h}px;transform:scale(${t(ie)??""})`)}),h(y,k)};$(b,y=>{t(ie)&&y(_)})}var U=v(b,2);{var ae=y=>{var k=Aa(),ne=c(k),J=c(ne);ht(J,{class:"size-3.5","aria-hidden":"true"}),se(),d(ne),d(k),I("click",k,function(...ke){e.onopen?.apply(this,ke)}),h(y,k)};$(U,y=>{e.onopen&&y(ae)})}h(M,D)},te=M=>{var D=Na(),b=De(D);Ke(b,y=>x(l,y),()=>t(l));var _=v(b,2);{var U=y=>{var k=La(),ne=c(k),J=c(ne);ca(J,{class:"size-4","aria-hidden":"true"}),se(),d(ne),d(k),I("click",k,u),h(y,k)},ae=y=>{var k=Oa();P(()=>ut(k,`left:${o().x*100}%;top:${o().y*100}%`)),h(y,k)};$(_,y=>{i()?y(U):o()&&y(ae,1)})}P(()=>{F(b,"src",t(Z)),F(b,"title",`Live preview of ${t(Q)??""}`),F(b,"sandbox",t(we))}),h(M,D)};$(g,M=>{a()?M(E):M(te,-1)})}h(W,G)}),h(S,T)},C=S=>{const T=R(()=>!t(O)&&!t(he)),N=R(()=>t(T)?"Checking the preview…":t(he)?"Could not check the preview":t(O)?.state==="down"?"Preview stopped":t(O)?.state==="blocked"?"Preview cannot be embedded":t(O)?.state==="refused"?"Preview not shown here":"No live preview reported"),W=R(()=>t(T)?"":t(he)?"Wheelhouse did not answer; it will try again.":t(O)?.state==="blocked"?`${t(O).reason} Open it in a new tab instead.`:t(O)?.reason??"");var G=Xe(),g=De(G);{var E=M=>{var D=Ha(),b=c(D);{var _=J=>{pt(J,{class:"mt-0.5 size-4 shrink-0","aria-hidden":"true"})};$(b,J=>{t(T)||J(_)})}var U=v(b,2),ae=c(U),y=K(ae,!0),k=v(ae,2);{var ne=J=>{var ke=qa(),qe=K(ke,!0);P(()=>q(qe,t(W))),h(J,ke)};$(k,J=>{t(W)&&J(ne)})}d(U),d(D),P(()=>{Ae(ae,1,`font-medium ${t(T)?"":"text-foreground"}`),q(y,t(N))}),h(M,D)},te=M=>{var D=Wa(),b=c(D),_=c(b);{var U=y=>{var k=ja(),ne=K(k,!0);P(()=>q(ne,t(N))),h(y,k)},ae=y=>{var k=Ia(),ne=De(k);pt(ne,{class:"mx-auto size-6","aria-hidden":"true"});var J=v(ne,2),ke=K(J,!0),qe=v(J,2),Ue=K(qe,!0);P(()=>{q(ke,t(N)),q(Ue,t(W))}),h(y,k)};$(_,y=>{t(T)?y(U):y(ae,-1)})}d(b),d(D),h(M,D)};$(g,M=>{a()?M(E):M(te,-1)})}h(S,G)};$(ye,S=>{t(Y)&&t(Z)?S(z):S(C,-1)})}d(j),d(ee),P(()=>{Ae(ee,1,`min-w-0 ${n()?"flex h-full flex-col":""}`),F(ee,"data-live-preview",t(O)?.state??"checking"),Ae(j,1,`group relative w-full overflow-hidden bg-muted/40 ${s()?"mt-1.5 rounded-lg border":""} ${a()?t(Y)?"aspect-[16/10]":"":n()?"min-h-0 flex-1":t(Y)?"h-[70vh] min-h-80":"h-40"}`)}),ta(j,"clientWidth",S=>x(H,S)),h(r,ee),Ne()}et(["click"]);const mt="wheelhouse-preview-helper",Tt=()=>({said:[],list:[],asking:!1,error:null,sent:null}),Ua=Object.freeze(Tt()),We=()=>crypto.randomUUID();class Ba{#e=A(Qe({}));get byTask(){return t(this.#e)}set byTask(e){x(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0;try{const e=JSON.parse(localStorage.getItem(mt)??"{}");if(e&&typeof e=="object"){for(const a of Object.values(e))a.asking=!1;this.byTask=e}}catch{this.byTask={}}}}save(){try{localStorage.setItem(mt,JSON.stringify(this.byTask))}catch{}}view(e){return this.byTask[e]??Ua}of(e){return this.load(),this.byTask[e]||(this.byTask[e]=Tt()),this.byTask[e]}async ask(e,a,n,s){const i=this.of(e),o=a.trim();if(!o&&!n||i.asking)return;i.said.push({id:We(),who:"captain",text:o||"What about this?",points:n}),i.asking=!0,i.error=null,this.save();const l=i.said.filter(u=>!u.notice).map(u=>({who:u.who,text:u.text,points:u.points??null}));try{const u=await fetch(`/api/tasks/${encodeURIComponent(e)}/preview/helper`,{method:"POST",headers:{"content-type":"application/json",[Vt]:s},body:JSON.stringify({turns:l,list:i.list.map(L=>L.text)})}),f=await u.json().catch(()=>null);!u.ok||!f?.reply?i.error=f?.message??`The helper could not answer (${u.status}).`:i.said.push({id:We(),who:"helper",text:f.reply,suggest:f.suggest.map(L=>({text:L,added:!1}))})}catch{i.error="Wheelhouse could not be reached. Try again."}finally{i.asking=!1,this.save()}}accept(e,a,n){const s=this.of(e),i=s.said.findIndex(u=>u.id===a),o=s.said[i]?.suggest?.[n];if(!o||o.added)return;o.added=!0;const l=s.said.slice(0,i).reverse().find(u=>u.who==="captain");s.list.push({id:We(),text:o.text,points:l?.points??null}),s.sent=null,this.save()}addOwn(e,a,n=null){const s=a.trim().slice(0,gt);if(!s)return;const i=this.of(e);i.list.push({id:We(),text:s,points:n}),i.sent=null,this.save()}edit(e,a,n){const s=this.of(e).list.find(i=>i.id===a);s&&(s.text=n.slice(0,gt),this.save())}remove(e,a){const n=this.of(e),s=n.list.find(i=>i.id===a);n.list=n.list.filter(i=>i.id!==a);for(const i of n.said)for(const o of i.suggest??[])s&&o.text===s.text&&(o.added=!1);this.save()}async send(e,a,n){const s=this.of(e.id),i=s.list.filter(f=>f.text.trim());if(!i.length)return!1;s.error=null;const o=await Ut($a(e,a,i),n,e.id);if(!o.ok)return s.error=o.error,this.save(),!1;s.sent={at:new Date().toISOString(),count:i.length};const l=e.id.lastIndexOf("@"),u=l>0?`second mate ${e.id.slice(l+1)}`:"Firstmate";return s.list=[],s.said.push({id:We(),who:"helper",notice:!0,text:`Sent to ${u}: ${i.length} ${i.length===1?"note":"notes"}, which it passes to this task. Keep going if you spot more; they make a new list.`}),this.save(),!0}clear(e){const a=this.of(e);a.said=[],a.error=null,this.save()}}const Te=new Ba;var Ya=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),Ga=p("<textarea></textarea>");function Ja(r,e){Oe(e,!0);let a=X(e,"ref",15,null),n=X(e,"value",15),s=X(e,"data-slot",3,"textarea"),i=de(e,Ya);var o=Ga();wt(o),Nt(o,l=>({"data-slot":s(),class:l,...i}),[()=>zt("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e.class)]),Ke(o,l=>a(l),()=>a()),yt(o,n),h(r,o),Ne()}const Va={unsupported:"This browser cannot turn speech into text. Chrome and Edge can; you can still type.",blocked:"The microphone is blocked for Wheelhouse. Allow it from the icon in the address bar, then try again.","no-microphone":"No microphone was found. Connect one, then try again.","no-speech":"Nothing was heard. Try again a little closer to the microphone.",network:"The browser’s speech service could not be reached. Check the connection and try again.",failed:"Dictation stopped unexpectedly. Try again, or type instead."};function xt(){if(typeof window>"u")return null;const r=window;return r.SpeechRecognition??r.webkitSpeechRecognition??null}const Xa={"not-allowed":"blocked","service-not-allowed":"blocked","audio-capture":"no-microphone","no-speech":"no-speech",network:"network","language-not-supported":"unsupported"},Qa={privacyNote:"Dictation uses your browser’s speech service. In Chrome that sends what you say to Google to turn it into text, only while the microphone is on.",supported:()=>xt()!==null,start(r,e){const a=xt();if(!a)return e.problem("unsupported"),e.end(),{stop(){},abort(){}};const n=new a;n.lang=r,n.continuous=!0,n.interimResults=!0,n.onresult=s=>{let i="",o="";for(let l=0;l<s.results.length;l++){const u=s.results[l];u.isFinal?i+=u[0].transcript:o+=u[0].transcript}e.text(i,o)},n.onerror=s=>{s.error!=="aborted"&&e.problem(Xa[s.error]??"failed")},n.onend=()=>e.end();try{n.start()}catch{e.problem("failed"),e.end()}return{stop:()=>n.stop(),abort:()=>n.abort()}}};let Za=Qa;const it=()=>Za,en=2e3;class tn{#e=A(null);get owner(){return t(this.#e)}set owner(e){x(this.#e,e)}#t=A("idle");get phase(){return t(this.#t)}set phase(e){x(this.#t,e,!0)}#n=A(0);get startedAt(){return t(this.#n)}set startedAt(e){x(this.#n,e,!0)}#s=A(null);get problem(){return t(this.#s)}set problem(e){x(this.#s,e,!0)}#r=null;#a=null;#i=null;active(e){return this.owner===e&&this.phase!=="idle"}start(e,a,n=an()){this.phase!=="idle"&&this.commit();const s=it();if(this.owner=e,this.problem=null,!s.supported()){this.problem="unsupported";return}this.#a=a,a.begin(),this.phase="listening",this.startedAt=Date.now();let i=null;const o=()=>i===null||this.#r===i;i=s.start(n,{text:(l,u)=>{o()&&this.#a===a&&a.show(...nn(l,u))},problem:l=>{o()&&(this.problem=l)},end:()=>{o()&&this.#a===a&&this.#o("finish")}}),this.#a===a&&(this.#r=i)}stop(){this.phase==="listening"&&(this.phase="stopping",this.#r?.stop(),this.#i=setTimeout(()=>this.#o("finish"),en))}commit(){this.phase!=="idle"&&this.#o("finish")}cancel(){this.phase!=="idle"&&this.#o("revert")}dismiss(){this.problem=null}#o(e){const a=this.#r,n=this.#a;this.#r=null,this.#a=null,this.#i&&clearTimeout(this.#i),this.#i=null,this.phase="idle",a?.abort(),n?.[e]()}}const B=new tn;function an(){return typeof navigator<"u"&&navigator.language?navigator.language:"en-US"}function nn(r,e){const a=r.replace(/\s+/g," ").trim(),n=e.replace(/\s+/g," ").trim();return[a,a&&n?` ${n}`:n]}const $t=r=>r&&!/\s$/.test(r)?" ":"",rn=r=>/^[\p{L}\p{N}]/u.test(r)?" ":"";function sn(r){let e="",a="",n="",s=!1;const i=(o,l)=>{r.value=o;try{r.setSelectionRange(l,l)}catch{}r.dispatchEvent(new Event("input",{bubbles:!0}))};return{begin(){e=r.value;const o=r.selectionStart??e.length,l=r.selectionEnd??o;a=e.slice(0,o),n=e.slice(l),s=!1},show(o,l){const u=o+l;if(!u)return;const f=a+$t(a)+u;i(f+rn(n)+n,f.length),s=!0},finish(){},revert(){s&&i(e,a.length),s=!1}}}function ur(r,e){let a=null,n=null,s="";const i=o=>{const l=document.createRange();l.setStartAfter(o),l.collapse(!0);const u=window.getSelection();u?.removeAllRanges(),u?.addRange(l)};return{begin(){const o=window.getSelection();let l;o?.rangeCount&&r.contains(o.getRangeAt(0).startContainer)?(l=o.getRangeAt(0),n=l.extractContents()):(l=document.createRange(),l.selectNodeContents(r),l.collapse(!1),n=null);const u=document.createRange();u.setStart(r,0),u.setEnd(l.startContainer,l.startOffset),s=$t(u.toString().replace(/\u00a0/g," ")),a=document.createElement("span"),a.dataset.dictation="",l.insertNode(a)},show(o,l){if(!a)return;const u=document.createTextNode(o||l?s+o:""),f=document.createElement("span");f.className="dictation-forming",f.textContent=l,a.replaceChildren(u,...l?[f]:[]),e()},finish(){if(!a)return;const o=a.textContent??"";if(o){const l=document.createTextNode(o);a.replaceWith(l),(r.contains(document.activeElement)||document.activeElement===r)&&i(l)}else a.replaceWith(n??"");a=null,n=null,e()},revert(){a?.replaceWith(n??""),a=null,n=null,e()}}}const on=r=>r.code==="Space"&&r.shiftKey&&(r.metaKey||r.ctrlKey)&&!r.altKey,ln=450;function dn(r,e,a){let n=0;const s=o=>{if(on(o)){if(o.preventDefault(),o.repeat)return;B.active(e)?(n=0,B.stop()):(n=Date.now(),a());return}B.active(e)&&(o.key==="Escape"?(o.preventDefault(),o.stopPropagation(),n=0,B.cancel()):["Shift","Control","Meta","Alt","CapsLock"].includes(o.key)||(n=0,B.commit()))},i=o=>{if(!n||!(o.code==="Space"||["Shift","Meta","Control"].includes(o.key)))return;const l=Date.now()-n;n=0,l>=ln&&B.active(e)&&B.stop()};return r.addEventListener("keydown",s),r.addEventListener("keyup",i),()=>{r.removeEventListener("keydown",s),r.removeEventListener("keyup",i)}}var cn=p('<span class="tabular text-xs text-muted-foreground svelte-1uxx7q9" data-dictation-time=""> </span>'),un=p('<div class="absolute right-0 bottom-full z-30 mb-2 w-72 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="dialog" aria-label="Before you dictate" data-dictation-note=""><p class="svelte-1uxx7q9"> </p> <p class="mt-1.5 text-muted-foreground svelte-1uxx7q9">Words appear in the box for you to check; nothing is sent until you send it.</p> <div class="mt-2.5 flex justify-end gap-2 svelte-1uxx7q9"><button type="button" class="rounded-md px-2 py-1 text-muted-foreground hover:bg-muted hover:text-foreground svelte-1uxx7q9">Not now</button> <button type="button" class="rounded-md bg-primary px-2.5 py-1 font-medium text-primary-foreground svelte-1uxx7q9">Start dictating</button></div></div>'),vn=p('<div class="absolute right-0 bottom-full z-30 mb-2 flex w-72 items-start gap-2 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="alert" data-dictation-problem=""><p class="min-w-0 flex-1 svelte-1uxx7q9"> </p> <button type="button" class="-m-1 rounded-sm p-1 text-muted-foreground hover:text-foreground svelte-1uxx7q9" aria-label="Dismiss"><!></button></div>'),hn=p('<span class="relative inline-flex shrink-0 items-center gap-1.5 svelte-1uxx7q9"><!> <button type="button"><!></button> <span class="sr-only svelte-1uxx7q9" aria-live="polite"> </span> <!></span>');function pn(r,e){Oe(e,!0);let a=X(e,"label",3,"Dictate"),n=X(e,"size",3,"md"),s=X(e,"disabled",3,!1),i=X(e,"listening",15,!1);const o={};Lt(()=>{i(B.active(o))});const l=R(()=>i()&&B.phase==="stopping"),u=R(()=>B.owner===o?B.problem:null);let f=A(!1),L=A(Qe(Date.now())),H=A("Ctrl+Shift+Space");const O="wheelhouse.voice.noted";let he=!1;function Y(){if(he)return!0;try{return localStorage.getItem(O)==="1"}catch{return!1}}function Q(){if(s())return;const g=it();if(g.supported()&&g.privacyNote&&!Y()){x(f,!0);return}B.start(o,e.target()),e.field?.focus()}function Z(){he=!0;try{localStorage.setItem(O,"1")}catch{}x(f,!1),Q()}function we(){i()?B.stop():t(f)?x(f,!1):Q()}const ie=R(()=>{const g=Math.max(0,Math.floor((t(L)-B.startedAt)/1e3));return`${Math.floor(g/60)}:${String(g%60).padStart(2,"0")}`});Pe(()=>{/Mac|iPhone|iPad/.test(navigator.platform)&&x(H,"⌘⇧Space")}),Pe(()=>{if(!i())return;x(L,Date.now(),!0);const g=setInterval(()=>x(L,Date.now(),!0),250);return()=>clearInterval(g)}),Pe(()=>{if(e.field)return dn(e.field,o,Q)}),Pe(()=>{if(!i()&&!t(f))return;const g=E=>{E.key!=="Escape"||E.defaultPrevented||(E.preventDefault(),i()&&B.cancel(),x(f,!1))};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)}),Dt(()=>{B.active(o)&&B.commit()});var ee=hn(),ce=c(ee);{var _e=g=>{var E=cn(),te=K(E,!0);P(()=>q(te,t(l)?"Finishing…":t(ie))),h(g,E)};$(ce,g=>{i()&&g(_e)})}var j=v(ce,2),ye=c(j);{var z=g=>{{let E=R(()=>n()==="md"?"size-3.5 fill-current":"size-3 fill-current");ga(g,{get class(){return t(E)}})}},C=g=>{{let E=R(()=>n()==="md"?"size-4.5":"size-4");ia(g,{get class(){return t(E)}})}};$(ye,g=>{i()?g(z):g(C,-1)})}d(j);var S=v(j,2),T=K(S,!0),N=v(S,2);{var W=g=>{var E=un(),te=c(E),M=K(te,!0),D=v(te,4),b=c(D),_=v(b,2);d(D),d(E),P(U=>q(M,U),[()=>it().privacyNote]),I("click",b,()=>x(f,!1)),I("click",_,Z),h(g,E)},G=g=>{var E=vn(),te=c(E),M=K(te,!0),D=v(te,2),b=c(D);Ze(b,{class:"size-3.5"}),d(D),d(E),P(()=>q(M,Va[t(u)])),I("click",D,()=>B.dismiss()),h(g,E)};$(N,g=>{t(f)?g(W):t(u)&&g(G,1)})}d(ee),P(()=>{F(j,"aria-label",i()?"Stop dictating":a()),F(j,"aria-pressed",i()),F(j,"title",i()?"Stop dictating · Esc cancels":`${a()} (${t(H)}; hold for push-to-talk)`),j.disabled=s(),F(j,"data-dictating",i()?"":void 0),Ae(j,1,`mic flex shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-30 ${n()==="md"?"size-9":"size-7"} ${i()?"bg-danger/10 text-danger":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,"svelte-1uxx7q9"),q(T,i()?"Listening":"")}),I("mousedown",j,g=>g.preventDefault()),I("click",j,we),h(r,ee),Ne()}et(["mousedown","click"]);var fn=new Set(["$$slots","$$events","$$legacy","value","class"]),gn=p('<div class="relative w-full min-w-0"><!> <div class="absolute right-1.5 bottom-1.5"><!></div></div>');function mn(r,e){Oe(e,!0);let a=X(e,"value",15),n=de(e,fn),s=A(null),i=A(!1);var o=gn(),l=c(o);{let L=R(()=>zt(e.class,t(i)?"pr-24":"pr-10"));Ja(l,ve({get class(){return t(L)}},()=>n,{get ref(){return t(s)},set ref(H){x(s,H,!0)},get value(){return a()},set value(H){a(H)}}))}var u=v(l,2),f=c(u);{let L=R(()=>!!e.disabled);pn(f,{get field(){return t(s)},target:()=>sn(t(s)),size:"sm",get disabled(){return t(L)},get listening(){return t(i)},set listening(H){x(i,H,!0)}})}d(u),d(o),h(r,o),Ne()}var xn=p('<span class="inline-flex max-w-[85%] items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea"><!><span class="truncate"> </span></span>'),bn=p('<li class="flex flex-col items-end gap-1" data-said="captain"><!> <p class="max-w-[85%] rounded-xl rounded-br-sm border border-[var(--bubble-captain-border)] bg-[var(--bubble-captain)] px-3 py-2 text-sm leading-relaxed whitespace-pre-wrap"> </p></li>'),wn=p('<a href="/" class="text-xs text-sea hover:underline">See it in the chat</a>'),_n=p('<span class="inline-flex items-center gap-1 text-xs text-success"><!>On your list</span>'),yn=p('<button class="inline-flex cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 py-1 text-xs font-medium text-on-accent hover:bg-sea/90" data-add-to-list=""><!>Add to the list</button>'),kn=p('<div class="mt-2 rounded-md border bg-card px-3 py-2" data-suggestion=""><p class="text-sm leading-snug"> </p> <div class="mt-1.5"><!></div></div>'),zn=p('<li class="flex gap-2.5" data-said="helper"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <div class="min-w-0 flex-1"><div></div> <!> <!></div></li>'),Sn=p('<li class="flex gap-1 py-1 pl-9" role="status" aria-label="The helper is answering"><span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.3s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.15s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground"></span></li>'),Tn=p('<li class="text-sm text-danger" role="alert"> </li>'),$n=p('<div class="flex items-center gap-1.5 px-2.5 pt-2"><span class="inline-flex min-w-0 items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea" data-attached=""><!><span class="truncate"> </span></span> <button class="flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground hover:bg-muted" aria-label="Not about this part"><!></button></div>'),En=p('<span class="text-xs text-muted-foreground">· not sent yet</span>'),Cn=p('<p class="text-xs text-muted-foreground"> </p>'),Mn=p('<li class="group flex items-start gap-2 rounded-md border bg-background px-2 py-1"><span class="mt-0.5 w-4 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span> <div class="min-w-0 flex-1"><textarea rows="1" maxlength="500" class="no-scrollbar block field-sizing-content w-full resize-none rounded bg-transparent text-sm leading-snug outline-none focus:bg-accent/40"></textarea> <!></div> <button class="flex size-6 shrink-0 cursor-pointer items-center justify-center rounded text-muted-foreground opacity-60 group-hover:opacity-100 hover:bg-muted hover:text-foreground" aria-label="Remove from the list"><!></button></li>'),Dn=p('<ol class="flex flex-col gap-1.5"></ol>'),Pn=p('<p class="text-xs text-muted-foreground">Empty so far. Add what the helper suggests, or write your own below.</p>'),An=p('<div class="no-scrollbar max-h-48 overflow-y-auto px-4"><!> <form class="mt-1.5 flex items-center gap-1"><!> <input maxlength="500" placeholder="Add your own" aria-label="Add your own feedback" class="h-7 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground"/></form></div>'),Rn=p(`<section class="flex min-h-0 flex-col rounded-lg border bg-panel" aria-label="Talk about this preview" data-preview-helper=""><header class="border-b px-4 py-3"><h2 class="flex items-center gap-2 text-base"><!>Talk it through</h2> <p class="mt-0.5 text-xs text-muted-foreground">A helper that sees only this preview. Nothing goes to Firstmate until you send.</p></header> <div class="no-scrollbar min-h-40 flex-1 overflow-y-auto px-4 py-4"><ol class="flex flex-col gap-4"><li class="flex gap-2.5"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <p class="min-w-0 flex-1 text-sm leading-relaxed">I can see this preview, its screenshots, the task’s instructions and what the worker has
|
|
5
|
+
done so far. Point at anything, or just say what you think; I will turn it into a list for
|
|
6
|
+
the worker. <strong>Nothing goes to Firstmate until you send it.</strong></p></li> <!> <!> <!></ol></div> <div class="px-3 pb-3"><div class="rounded-lg border border-input bg-card shadow-sm focus-within:ring-2 focus-within:ring-ring/30"><!> <!> <div class="flex items-center gap-1 px-1.5 pb-1.5"><button title="Click a part of the page to say which part you mean" data-point=""><!> </button> <button aria-label="Say it" class="ml-auto flex size-8 cursor-pointer items-center justify-center rounded-full bg-foreground text-background disabled:cursor-not-allowed disabled:opacity-30"><!></button></div></div></div> <section class="border-t bg-card/60" aria-label="Your feedback" data-feedback-list=""><button class="flex w-full cursor-pointer items-center gap-2 px-4 py-2.5 text-left"><h3 class="font-sans text-sm font-medium">Your feedback</h3> <span class="rounded-full bg-muted px-1.5 text-xs text-muted-foreground tabular-nums"> </span> <!> <!></button> <!> <div class="flex items-center gap-3 px-4 pt-2 pb-3"><button class="inline-flex h-9 shrink-0 cursor-pointer items-center gap-1.5 rounded-md bg-sea px-3.5 text-sm font-medium whitespace-nowrap text-on-accent hover:bg-sea/90 disabled:cursor-not-allowed disabled:opacity-40" data-send-batch=""><!> </button> <span class="text-xs leading-snug text-muted-foreground">One message, for this same task</span></div></section></section>`);function Ln(r,e){Oe(e,!0);let a=X(e,"pointing",15,!1),n=X(e,"attached",15,null);const s=R(()=>Te.view(e.task.id)),i=R(()=>kt.data.sessionToken??"");let o=A(""),l=A(""),u=A(!0),f=A(!1),L=A(null),H=A(null);bt(()=>Te.load()),Pe(()=>{t(s).said.length,t(s).asking,ct().then(()=>t(L)?.scrollTo({top:t(L).scrollHeight,behavior:"smooth"}))}),Pe(()=>{n()&&ct().then(()=>t(H)?.querySelector("textarea")?.focus())});function O(){const m=t(o).trim();if(!m&&!n()||t(s).asking)return;const w=n()?.pointer??null;x(o,""),n(null),Te.ask(e.task.id,m,w,t(i))}async function he(){!t(s).list.length||t(f)||(x(f,!0),await Te.send({id:e.task.id,title:e.task.shortTitle},e.url,t(i)),x(f,!1))}var Y=Rn(),Q=c(Y),Z=c(Q),we=c(Z);St(we,{class:"size-4 text-muted-foreground","aria-hidden":"true"}),se(),d(Z),se(2),d(Q);var ie=v(Q,2),ee=c(ie),ce=c(ee),_e=c(ce),j=c(_e);ft(j,{class:"size-3.5"}),d(_e),se(2),d(ce);var ye=v(ce,2);nt(ye,17,()=>t(s).said,m=>m.id,(m,w)=>{var ue=Xe(),Re=De(ue);{var He=re=>{var oe=bn(),V=c(oe);{var ge=me=>{var xe=xn(),Ee=c(xe);rt(Ee,{class:"size-3 shrink-0","aria-hidden":"true"});var be=v(Ee),pe=K(be,!0);d(xe),P(()=>q(pe,t(w).points.label)),h(me,xe)};$(V,me=>{t(w).points&&me(ge)})}var ze=v(V,2),le=K(ze,!0);d(oe),P(()=>q(le,t(w).text)),h(re,oe)},$e=re=>{var oe=zn(),V=c(oe),ge=c(V);ft(ge,{class:"size-3.5"}),d(V);var ze=v(V,2),le=c(ze);Gt(le,()=>Jt(t(w).text),!0),d(le);var me=v(le,2);{var xe=be=>{var pe=wn();h(be,pe)};$(me,be=>{t(w).notice&&t(s).sent&&be(xe)})}var Ee=v(me,2);nt(Ee,17,()=>t(w).suggest??[],qt,(be,pe,Ce)=>{var je=kn(),Ye=c(je),Ie=K(Ye,!0),Ge=v(Ye,2),Me=c(Ge);{var Je=Le=>{var Se=_n(),at=c(Se);Zt(at,{class:"size-3.5","aria-hidden":"true"}),se(),d(Se),h(Le,Se)},tt=Le=>{var Se=yn(),at=c(Se);vt(at,{class:"size-3.5","aria-hidden":"true"}),se(),d(Se),I("click",Se,()=>Te.accept(e.task.id,t(w).id,Ce)),h(Le,Se)};$(Me,Le=>{t(pe).added?Le(Je):Le(tt,-1)})}d(Ge),d(je),P(()=>q(Ie,t(pe).text)),h(be,je)}),d(ze),d(oe),P(()=>Ae(le,1,`chat-md text-sm ${t(w).notice?"text-muted-foreground":""}`)),h(re,oe)};$(Re,re=>{t(w).who==="captain"?re(He):re($e,-1)})}h(m,ue)});var z=v(ye,2);{var C=m=>{var w=Sn();h(m,w)};$(z,m=>{t(s).asking&&m(C)})}var S=v(z,2);{var T=m=>{var w=Tn(),ue=K(w,!0);P(()=>q(ue,t(s).error)),h(m,w)};$(S,m=>{t(s).error&&m(T)})}d(ee),d(ie),Ke(ie,m=>x(L,m),()=>t(L));var N=v(ie,2),W=c(N),G=c(W);{var g=m=>{var w=$n(),ue=c(w),Re=c(ue);rt(Re,{class:"size-3 shrink-0","aria-hidden":"true"});var He=v(Re),$e=K(He,!0);d(ue);var re=v(ue,2),oe=c(re);Ze(oe,{class:"size-3"}),d(re),d(w),P(()=>q($e,n().pointer.label)),I("click",re,()=>n(null)),h(m,w)};$(G,m=>{n()&&m(g)})}var E=v(G,2);{let m=R(()=>n()?"What about it?":"What do you think? Ask anything about it");mn(E,{rows:2,maxlength:4e3,get placeholder(){return t(m)},"aria-label":"Talk about this preview",class:"no-scrollbar min-h-12 border-0 bg-transparent text-sm shadow-none focus-visible:ring-0",onkeydown:w=>{w.key==="Enter"&&!w.shiftKey&&!w.isComposing&&(w.preventDefault(),O())},get value(){return t(o)},set value(w){x(o,w,!0)}})}var te=v(E,2),M=c(te),D=c(M);rt(D,{class:"size-3.5","aria-hidden":"true"});var b=v(D,1,!0);d(M);var _=v(M,2),U=c(_);Xt(U,{class:"size-4"}),d(_),d(te),d(W),d(N),Ke(N,m=>x(H,m),()=>t(H));var ae=v(N,2),y=c(ae),k=v(c(y),2),ne=K(k,!0),J=v(k,2);{var ke=m=>{var w=En();h(m,w)};$(J,m=>{t(s).list.length&&m(ke)})}var qe=v(J,2);{let m=R(()=>t(u)?"rotate-180":"");Qt(qe,{get class(){return`ml-auto size-4 text-muted-foreground transition-transform ${t(m)??""}`},"aria-hidden":"true"})}d(y);var Ue=v(y,2);{var Et=m=>{var w=An(),ue=c(w);{var Re=V=>{var ge=Dn();nt(ge,23,()=>t(s).list,ze=>ze.id,(ze,le,me)=>{var xe=Mn(),Ee=c(xe),be=K(Ee),pe=v(Ee,2),Ce=c(pe);wt(Ce);var je=v(Ce,2);{var Ye=Me=>{var Je=Cn(),tt=K(Je);P(()=>q(tt,`Points at ${t(le).points.label??""}`)),h(Me,Je)};$(je,Me=>{t(le).points&&Me(Ye)})}d(pe);var Ie=v(pe,2),Ge=c(Ie);Ze(Ge,{class:"size-3.5"}),d(Ie),d(xe),P(()=>{q(be,`${t(me)+1}.`),jt(Ce,t(le).text),F(Ce,"aria-label",`Feedback ${t(me)+1}`)}),I("input",Ce,Me=>Te.edit(e.task.id,t(le).id,Me.currentTarget.value)),I("click",Ie,()=>Te.remove(e.task.id,t(le).id)),h(ze,xe)}),d(ge),h(V,ge)},He=V=>{var ge=Pn();h(V,ge)};$(ue,V=>{t(s).list.length?V(Re):V(He,-1)})}var $e=v(ue,2),re=c($e);vt(re,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var oe=v(re,2);Ht(oe),d($e),d(w),_t("submit",$e,V=>{V.preventDefault(),Te.addOwn(e.task.id,t(l)),x(l,"")}),yt(oe,()=>t(l),V=>x(l,V)),h(m,w)};$(Ue,m=>{t(u)&&m(Et)})}var lt=v(Ue,2),Be=c(lt),dt=c(Be);pa(dt,{class:"size-3.5","aria-hidden":"true"});var Ct=v(dt,1,!0);d(Be),se(2),d(lt),d(ae),d(Y),P(m=>{Ae(M,1,`inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-md px-2 text-xs font-medium transition-colors ${a()?"bg-sea text-on-accent":"text-muted-foreground hover:bg-muted hover:text-foreground"}`),F(M,"aria-pressed",a()),q(b,a()?"Pointing…":"Point"),_.disabled=m,F(y,"aria-expanded",t(u)),q(ne,t(s).list.length),Be.disabled=!t(s).list.length||t(f),q(Ct,t(f)?"Sending…":`Send to Firstmate${t(s).list.length?` (${t(s).list.length})`:""}`)},[()=>!t(o).trim()&&!n()||t(s).asking]),I("click",M,()=>a(!a())),I("click",_,O),I("click",y,()=>x(u,!t(u))),I("click",Be,he),h(r,Y),Ne()}et(["click","input"]);var On=p('<button type="button" class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"><!>Hide the helper</button>'),Nn=p('<aside class="flex min-h-0 w-[24rem] shrink-0 border-l bg-panel p-3 xl:w-[26rem]"><div class="flex min-h-0 w-full flex-col"><!></div></aside>'),qn=p('<button type="button" class="absolute right-5 bottom-5 inline-flex items-center gap-2 rounded-full border bg-background px-4 py-2 text-sm font-medium shadow-lg hover:bg-accent"><!>Talk it through</button>'),Hn=p('<div class="fixed inset-0 z-50 flex flex-col bg-background outline-none" role="dialog" aria-modal="true" tabindex="-1" data-preview-studio=""><div class="flex h-12 shrink-0 items-center gap-3 border-b px-3 sm:px-4"><p class="min-w-0 flex-1 truncate text-sm"><span class="font-medium"> </span> <span class="text-muted-foreground">· Live preview</span></p> <!> <button type="button" class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs hover:bg-accent" aria-label="Close full screen (Esc)" title="Close (Esc)"><!>Close</button></div> <div class="relative flex min-h-0 flex-1"><div class="min-w-0 flex-1 p-3"><!></div> <!></div></div>');function vr(r,e){Oe(e,!0);let a=X(e,"talk",3,!0),n=X(e,"from",3,null),s=A(!0),i=A(!1),o=A(null),l=A(null);bt(()=>{const z=document.activeElement,C=document.body.style.overflow;return document.body.style.overflow="hidden",t(l)?.focus(),()=>{document.body.style.overflow=C,z?.focus?.()}});function u(z){if(z.key!=="Escape")return;if(t(i)){z.preventDefault(),x(i,!1);return}const C=z.target;if(C instanceof HTMLTextAreaElement&&C.value.trim()){C.blur();return}z.preventDefault(),e.onclose()}var f=Hn();_t("keydown",Ot,u);var L=c(f),H=c(L),O=c(H),he=K(O,!0);se(2),d(H);var Y=v(H,2);{var Q=z=>{var C=On(),S=c(C);va(S,{class:"size-4","aria-hidden":"true"}),se(),d(C),I("click",C,()=>x(s,!1)),h(z,C)};$(Y,z=>{a()&&t(s)&&z(Q)})}var Z=v(Y,2),we=c(Z);Ze(we,{class:"size-4","aria-hidden":"true"}),se(),d(Z),d(L);var ie=v(L,2),ee=c(ie),ce=c(ee);{let z=R(()=>a()&&t(s)&&t(i)),C=R(()=>a()&&t(s)?t(o)?.at??null:null);Ka(ce,{get taskId(){return e.taskId},fill:!0,get pointing(){return t(z)},get pin(){return t(C)},onpoint:(S,T)=>{x(o,{pointer:S,at:T},!0),x(i,!1)}})}d(ee);var _e=v(ee,2);{var j=z=>{var C=Nn(),S=c(C),T=c(S);{let N=R(()=>({id:e.taskId,shortTitle:e.title}));Ln(T,{get task(){return t(N)},get url(){return e.url},get pointing(){return t(i)},set pointing(W){x(i,W,!0)},get attached(){return t(o)},set attached(W){x(o,W,!0)}})}d(S),d(C),h(z,C)},ye=z=>{var C=qn(),S=c(C);St(S,{class:"size-4","aria-hidden":"true"}),se(),d(C),I("click",C,()=>x(s,!0)),h(z,C)};$(_e,z=>{a()&&t(s)?z(j):a()&&z(ye,1)})}d(ie),d(f),Ke(f,z=>x(l,z),()=>t(l)),P(()=>{F(f,"aria-label",`Live preview of ${e.title??""}, full screen`),q(he,e.title)}),I("click",Z,function(...z){e.onclose?.apply(this,z)}),Mt(3,f,()=>It,()=>({from:n()})),h(r,f),Ne()}et(["click"]);const jn="{url}";function In(r,e,a){const n=e&&Object.hasOwn(r,e)?r[e]:null;return typeof n!="string"?{href:a.url,external:!0}:{href:n.replace(jn,encodeURIComponent(a.url)),external:!1}}const hr={review(r,e){const a=kt.data?.pullRequestTabs??{};return In(a,r,e)}};export{dr as C,Ka as L,ft as M,vr as P,ga as S,ht as a,ta as b,pt as c,hr as d,Ln as e,cr as f,pn as g,ur as h,B as i,Ve as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{k as se,p as ie,u as S,g as e,H as ne,v,i as C,r as M,t as A,z as le,a as m,b as ce,l as g,h as ae,s as O,o as V,d as I,x as ue,c as W,w as z,f as be}from"./BOY9WARo.js";import{p as ee,i as D}from"./DnDesMxN.js";import{s as X,d as we,a as ke}from"./BRuDnHyc.js";import{b as te}from"./4VJeJzd5.js";import{c as de,m as Ee}from"./BXF1nDhR.js";import{e as Te,l as $,c as re}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{k as se,p as ie,u as S,g as e,H as ne,v,i as C,r as M,t as A,z as le,a as m,b as ce,l as g,h as ae,s as O,o as V,d as I,x as ue,c as W,w as z,f as be}from"./BOY9WARo.js";import{p as ee,i as D}from"./DnDesMxN.js";import{s as X,d as we,a as ke}from"./BRuDnHyc.js";import{b as te}from"./4VJeJzd5.js";import{c as de,m as Ee}from"./BXF1nDhR.js";import{e as Te,l as $,c as re}from"./BHVTrNhR.js";import{b as oe,a as ye}from"./dPAGVN7v.js";import{S as fe}from"./C03wrLr6.js";import{X as Ce}from"./BBWR4qW2.js";const ve={full:1e3,window:2e3},Me=80,me=1.45,Oe=11,Ne=32;function Le(t){let r=0;for(const a of t)r=Math.max(r,[...a.trimEnd()].length);return Math.max(Me,r)}function Se(t){const r=t.lineHeight??me,a=Math.max(1,Math.floor(t.cols)),p=t.width/(a*(t.charWidth>0?t.charWidth:.6)),u=Number.isFinite(p)?Math.min(Ne,Math.max(Oe,p)):13,o=Math.floor(u*10)/10,l=Math.max(1,Math.floor(Math.max(0,t.height)/(o*r)));return{fontSize:o,cols:a,rows:l}}function ze({load:t,intervalMs:r,onresult:a,onerror:p,doc:u}){let o=!1,l=!1,n;const w=()=>{clearTimeout(n),o||(n=setTimeout(k,r))},k=async()=>{if(!(o||l)){if(u.hidden)return w();l=!0;try{const d=await t();o||a(d)}catch(d){o||p(d instanceof Error?d:new Error(String(d)))}finally{l=!1}w()}},N=()=>{!u.hidden&&!l&&(clearTimeout(n),k())};return u.addEventListener("visibilitychange",N),k(),()=>{o=!0,clearTimeout(n),u.removeEventListener("visibilitychange",N)}}function he(t,r,a,p,u=document){const o=`/api/tasks/${encodeURIComponent(t)}/output?lines=${r}`;return ze({load:async()=>{const l=await fetch(o);if(!l.ok)throw new Error(`HTTP ${l.status}`);return await l.json()},intervalMs:a,doc:u,...p})}var He=W('<pre class="mt-auto whitespace-pre" aria-label="The worker’s terminal"> </pre>'),Pe=W('<p class="grid flex-1 place-items-center px-4 text-center font-sans text-sm text-terminal-foreground/60"><!></p>'),Re=W('<div class="flex h-full flex-col"><div class="flex shrink-0 items-center gap-2 border-b border-terminal-foreground/15 px-4 py-2.5 text-sm sm:px-6"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="hidden text-terminal-foreground/60 sm:inline"> </span> <span class="ml-auto hidden text-xs text-terminal-foreground/60 sm:inline">Esc to close</span> <button type="button" class="-mr-2 flex size-8 items-center justify-center rounded-md text-terminal-foreground/80 hover:bg-terminal-foreground/10 hover:text-terminal-foreground sm:ml-2" aria-label="Close the full-screen console"><!></button></div> <div class="flex min-h-0 flex-1 flex-col overflow-auto font-mono"><!></div></div>'),Ae=W('<dialog class="m-0 h-dvh max-h-none w-dvw max-w-none overflow-hidden bg-terminal p-0 text-terminal-foreground backdrop:bg-black/70"><!></dialog>');function Ie(t,r){ie(r,!0);let a=ee(r,"open",15,!1);const p=200,u=16;let o=g(null),l=g(null),n=g(null),w=g(!1),k=g(0),N=g(0),d=g(.6),H=!0;S(()=>{if(e(o))if(a()&&!e(o).open){H=!0;const c=e(o);Te(document.documentElement).then(()=>{!a()||!c.isConnected?$(document.documentElement):c.open||c.showModal()})}else!a()&&e(o).open&&e(o).close()}),S(()=>{if(!a())return;const c=document.documentElement;let f=!1;const _=()=>{document.fullscreenElement===c?f=!0:f&&(f=!1,a(!1))};return document.addEventListener("fullscreenchange",_),()=>{document.removeEventListener("fullscreenchange",_),$(c)}}),S(()=>{if(!a())return;ne(()=>re.open++);const c=he(r.task.id,p,ve.full,{onresult:f=>{v(n,f,!0),v(w,!1)},onerror:()=>v(w,!0)});return()=>{c(),ne(()=>re.open--)}}),S(()=>{if(!e(l))return;const c=getComputedStyle(e(l)).fontFamily,f=document.createElement("canvas").getContext("2d");if(!f)return;f.font=`100px ${c}`;const _=f.measureText("M".repeat(10)).width/1e3;_>0&&v(d,_)});const P=ae(()=>e(n)?.available?e(n).lines:[]),R=ae(()=>Se({width:e(k)-2*u,height:e(N)-2*u,cols:Le(e(P)),charWidth:e(d)}));S(()=>{e(n),e(R),e(l)&&H&&(e(l).scrollTop=e(l).scrollHeight)});const G=()=>{e(l)&&(H=e(l).scrollHeight-e(l).scrollTop-e(l).clientHeight<24)};var T=Ae(),B=C(T);{var J=c=>{var f=Re(),_=C(f),s=C(_);fe(s,{class:"size-4 text-terminal-foreground/70","aria-hidden":"true"});var b=O(s,2),j=V(b,!0),F=O(b,2),K=V(F),q=O(F,4),Q=C(q);Ce(Q,{class:"size-4"}),M(q),M(_);var i=O(_,2),E=C(i);{var pe=h=>{var y=He();let U;var Y=V(y,!0);A(Z=>{X(y,"data-cols",e(R).cols),X(y,"data-rows",e(R).rows),U=we(y,"",U,{padding:"16px","font-size":`${e(R).fontSize??""}px`,"line-height":me}),I(Y,Z)},[()=>e(P).join(`
|
|
2
2
|
`)]),m(h,y)},xe=h=>{var y=Pe(),U=C(y);{var Y=x=>{var L=z("Could not reach the Wheelhouse server.");m(x,L)},Z=x=>{var L=z("Reading the worker’s terminal…");m(x,L)},ge=x=>{var L=z();A(()=>I(L,e(n).reason)),m(x,L)},_e=x=>{var L=z("The terminal is empty.");m(x,L)};D(U,x=>{e(w)?x(Y):e(n)?e(n).available?x(_e,-1):x(ge,2):x(Z,1)})}M(y),m(h,y)};D(E,h=>{e(P).length?h(pe):h(xe,-1)})}M(i),te(i,h=>v(l,h),()=>e(l)),M(f),A(h=>{I(j,r.task.shortTitle),I(K,`· live console, read-only${h??""}`)},[()=>e(n)?.capturedAt?` · ${de(e(n).capturedAt)}`:""]),ue("click",q,()=>a(!1)),le("scroll",i,G),oe(i,"clientWidth",h=>v(k,h)),oe(i,"clientHeight",h=>v(N,h)),m(c,f)};D(B,c=>{a()&&c(J)})}M(T),te(T,c=>v(o,c),()=>e(o)),A(()=>{X(T,"aria-label",`${r.task.shortTitle??""}: live console`),X(T,"data-console-fullscreen",r.task.id)}),le("close",T,()=>{$(document.documentElement),a(!1)}),m(t,T),ce()}se(["click"]);var We=W('<pre class="flex min-h-0 flex-1 flex-col justify-end overflow-hidden px-3 py-2 font-mono text-xs leading-[1.45] whitespace-pre" aria-label="Latest lines of the worker’s terminal"> </pre>'),Fe=W('<p class="grid flex-1 place-items-center px-4 text-center text-xs text-terminal-foreground/60"><!></p>'),Xe=W('<div><button type="button" class="absolute inset-0 z-10 rounded-[inherit] focus-visible:ring-3 focus-visible:ring-ring/60 focus-visible:outline-none" title="Open full screen"></button> <div class="flex items-center gap-1.5 border-b border-terminal-foreground/10 px-3 py-1.5 text-xs text-terminal-foreground/60"><!> <span>Live console</span> <span class="ml-auto"> </span> <!></div> <!></div> <!>',1);function tt(t,r){ie(r,!0);let a=ee(r,"lines",3,12),p=ee(r,"class",3,"");const u=24;let o=g(null),l=g(!1),n=g(null),w=g(!1),k=g(!1);S(()=>{if(!e(o))return;const s=new IntersectionObserver(([b])=>v(l,b.isIntersecting,!0),{rootMargin:"100px"});return s.observe(e(o)),()=>s.disconnect()}),S(()=>{if(!(!e(l)||re.open>0))return he(r.task.id,a()+u,ve.window,{onresult:s=>{v(n,s,!0),v(w,!1)},onerror:()=>v(w,!0)})}),S(()=>{r.onsample?.(e(n)?.available&&e(n).lines.length?{line:Ee(e(n).lines),capturedAt:e(n).capturedAt}:null)});var N=Xe(),d=be(N),H=C(d),P=O(H,2),R=C(P);fe(R,{class:"size-3","aria-hidden":"true"});var G=O(R,4),T=V(G),B=O(G,2);ye(B,{class:"size-3.5 text-terminal-foreground/60 transition-colors group-hover/console:text-terminal-foreground","aria-hidden":"true"}),M(P);var J=O(P,2);{var c=s=>{var b=We(),j=V(b,!0);A(F=>I(j,F),[()=>e(n).lines.slice(-a()).join(`
|
|
3
3
|
`)]),m(s,b)},f=s=>{var b=Fe(),j=C(b);{var F=i=>{var E=z("Could not reach the Wheelhouse server.");m(i,E)},K=i=>{var E=z("Reading the worker’s terminal…");m(i,E)},q=i=>{var E=z();A(()=>I(E,e(n).reason)),m(i,E)},Q=i=>{var E=z("The terminal is empty.");m(i,E)};D(j,i=>{e(w)?i(F):e(n)?e(n).available?i(Q,-1):i(q,2):i(K,1)})}M(b),m(s,b)};D(J,s=>{e(n)?.available&&e(n).lines.length?s(c):s(f,-1)})}M(d),te(d,s=>v(o,s),()=>e(o));var _=O(d,2);Ie(_,{get task(){return r.task},get open(){return e(k)},set open(s){v(k,s,!0)}}),A(s=>{ke(d,1,`group/console relative z-10 flex aspect-[16/10] flex-col overflow-hidden rounded-sm border bg-terminal text-terminal-foreground ${p()??""}`),X(d,"data-console",r.task.id),X(H,"aria-label",`Open ${r.task.shortTitle??""}’s live console full screen`),I(T,`read-only${s??""}`)},[()=>e(n)?.capturedAt?` · ${de(e(n).capturedAt)}`:""]),ue("click",H,()=>v(k,!0)),m(t,N),ce()}se(["click"]);const je="No screenshots saved",qe="No live preview reported",Ve="No pull request recorded",rt=t=>t.attention?.owner==="captain"&&t.attention.kind==="review";function De(t){return t<=0?je:`${t} ${t===1?"screenshot":"screenshots"}`}function nt(t,r=null){const a=r??[],p=r?a.length:t.screenshots,u=t.preview?.url??t.passage.link?.url??null;return{shots:a,shotsText:De(p),preview:u?{url:u}:null,previewText:u?"Live preview":qe,pr:t.pr?{url:t.pr.url,label:t.pr.number?`PR #${t.pr.number}`:"Pull request"}:null,prText:t.pr?t.pr.number?`PR #${t.pr.number}`:"Pull request":Ve}}export{tt as C,rt as a,nt as r};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{l as g,g as m,v as f,m as L,h as S}from"./BOY9WARo.js";import{S as O}from"./D8Hr8rhb.js";import{w as P}from"./Bl1tMgf8.js";const D=new Set(["127.0.0.1","localhost"]);function ht(s,t){const e="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let o=!0;try{o=new URL(s).origin===t}catch{}return o?e:`${e} allow-same-origin`}const F=s=>Number.isInteger(s)&&s>=1&&s<=65535;function J(s){const t=URL.parse(s);if(!t||t.protocol!=="http:"||t.username||t.password||!D.has(t.hostname.toLowerCase()))return null;const e=t.port?Number(t.port):80;return F(e)?e:null}function B(s,t,e){const o=t?J(s):null;if(o===null||!t)return s;const i=e.port||(e.protocol==="https:"?"443":"80");if(D.has(e.hostname.toLowerCase())&&String(o)===i)return s;const u=new URL(s),c=t.replace("{port}",String(o));return`${e.protocol}//${c}${e.port?`:${e.port}`:""}${u.pathname}${u.search}${u.hash}`}class H{#t=g(null);get to(){return m(this.#t)}set to(t){f(this.#t,t,!0)}view(t){return this.to?B(t,this.to,location):t}}const R=new H;function mt(s){const t=o=>{if(!R.to)return;const i=o.composedPath().find(c=>c instanceof HTMLAnchorElement&&c.hasAttribute("href"));if(!i)return;const u=R.view(i.href);u!==i.href&&(i.href=u)},e=["click","auxclick","contextmenu","dragstart"];for(const o of e)s.addEventListener(o,t,!0);return()=>{for(const o of e)s.removeEventListener(o,t,!0)}}const Q=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,q=/^\[Request interrupted by user/,G=/\u001b\[[0-9;?]*[A-Za-z]/g,T=s=>String(s??"").split("/").filter(Boolean).pop()??"",A=s=>String(s??"").split(`
|
|
2
|
+
`)[0].trim(),z=s=>{try{return new URL(String(s)).host}catch{return String(s??"")}};function K(s,t){switch(s){case"Bash":return{verb:"Ran",summary:t.description||A(t.command),noun:["command","commands"]};case"Read":return{verb:"Read",summary:T(t.file_path),noun:["file read","files read"]};case"Edit":case"MultiEdit":return{verb:"Edited",summary:T(t.file_path),noun:["edit","edits"]};case"Write":return{verb:"Wrote",summary:T(t.file_path),noun:["file written","files written"]};case"Grep":return{verb:"Searched code for",summary:String(t.pattern??""),noun:["code search","code searches"]};case"Glob":return{verb:"Listed files",summary:String(t.pattern??""),noun:["file listing","file listings"]};case"WebSearch":return{verb:"Searched the web for",summary:String(t.query??""),noun:["web search","web searches"]};case"WebFetch":return{verb:"Read page",summary:z(t.url),noun:["page read","pages read"]};case"Skill":return{verb:"Used skill",summary:String(t.skill??""),noun:["skill","skills"]};case"ToolSearch":return{verb:"Loaded tools",summary:A(t.query),noun:["tool lookup","tool lookups"]};case"Agent":case"Task":return{verb:"Asked a helper",summary:t.description||A(t.prompt),noun:["helper","helpers"]};case"TodoWrite":return{verb:"Updated the plan",summary:"",noun:["plan update","plan updates"]};case"SendMessage":return{verb:"Messaged",summary:String(t.to??""),noun:["message","messages"]};default:{const e=s.match(/^mcp__(.+?)__(.+)$/);return e?{verb:"Used",summary:`${e[2].replace(/_/g," ")} (${e[1]})`,noun:["tool call","tool calls"]}:{verb:"Used",summary:s,noun:["tool call","tool calls"]}}}}function V(s){return typeof s=="string"?s:Array.isArray(s)?s.map(t=>t?.type==="text"?String(t.text??""):t?.type==="image"?"[image]":t?.type==="tool_reference"?`[tool: ${t.tool_name??""}]`:`[${t?.type??"item"}]`).join(`
|
|
3
|
+
`):""}const x=s=>s.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g,"").replace(/<\/?pasted_content(?:\s+id="[^"]*")?\s*>\n?/g,"").trim(),X=/<system-reminder>\s*The user sent a new message while you were working:\n([\s\S]*?)(?:\n\nThis is how Claude Code (?:(?!\n\n)[\s\S])*)?\s*<\/system-reminder>/,U=s=>{const t=s.match(X);return t&&x(t[1])||null};function v(s,t){const e=s.match(new RegExp(`<${t}>([\\s\\S]*?)</${t}>`));return e?e[1].trim():null}function W(s){const t=v(s,"command-name");if(!t)return null;const e=v(s,"command-args");return e?`${t} ${e}`:t}function Y(s){return(Array.isArray(s?.questions)?s.questions:[]).map(e=>({header:String(e?.header??""),question:String(e?.question??""),multiSelect:e?.multiSelect===!0,options:(Array.isArray(e?.options)?e.options:[]).map(o=>({label:String(o?.label??""),description:String(o?.description??"")}))}))}function Z(s,t){const e=s.toolUseResult?.answers;if(e&&typeof e=="object")return Object.fromEntries(Object.entries(e).map(([i,u])=>[i,String(u)]));const o={};for(const i of t.matchAll(/"([^"]+)"="([^"]*)"/g))o[i[1]]=i[2];return o}function tt(s){const t=[],e=new Map,o=new Map;let i=null,u=null,c=null,b=null,w=!1;const p=()=>{u=null},$=n=>(u||(u={kind:"turn",id:n.uuid,parts:[],at:n.timestamp,durationMs:null,done:!1,interrupted:!1,trigger:w?"background":"captain"},w=!1,t.push(u),c=u),u),_=n=>{const h=$(n),r=h.parts[h.parts.length-1];if(r?.kind==="activity")return r;const a={kind:"activity",id:`${n.uuid}-a`,steps:[]};return h.parts.push(a),a},y=(n,h,r={})=>{p(),w=!1,t.push({kind:"user",id:n.uuid,text:h,at:n.timestamp,queued:!!r.queued,command:!!r.command})},E=(n,h,r,a=n.uuid)=>{u&&_(n).steps.push({kind:"context",id:a,label:h,detail:r})};for(const n of s){if(!n||typeof n!="object"||n.isSidechain)continue;const h=n.timestamp??null;switch(n.type){case"ai-title":i=n.aiTitle??i;break;case"user":{const r=n.message?.content;if(typeof r=="string")if(n.origin?.kind==="task-notification"||r.trimStart().startsWith("<task-notification>"))p(),w=!0;else if(n.isMeta){const a=U(r);a?y(n,a,{queued:!0}):E(n,"Context added",r)}else if(q.test(r.trim()))c&&(c.interrupted=!0);else{const a=W(r);if(a)y(n,a,{command:!0});else if(!r.includes("<local-command-stdout>")){const l=x(r);l&&y(n,l)}}else if(Array.isArray(r))for(const a of r)if(a?.type==="tool_result"){const l=V(a.content),d=e.get(a.tool_use_id);d&&(d.result=l,d.isError=!!a.is_error);const k=o.get(a.tool_use_id);k&&(k.answers=a.is_error?{}:Z(n,l))}else if(a?.type==="text"){const l=String(a.text??""),d=U(l);if(q.test(l.trim()))c&&(c.interrupted=!0);else if(d)y(n,d,{queued:!0});else if(n.isMeta||n.sourceToolUseID){const k=l.startsWith("Base directory for this skill")?"Skill instructions loaded":"Context added";E(n,k,l,`${n.uuid}-${k}`)}else{const k=x(l);k&&y(n,k)}}else a?.type==="image"&&y(n,"[image]");break}case"assistant":{for(const r of n.message?.content??[])if(r?.type==="thinking"||r?.type==="redacted_thinking"){const a=b&&h?Date.parse(h)-Date.parse(b):null;_(n).steps.push({kind:"thinking",id:`${n.uuid}-th`,ms:a})}else if(r?.type==="tool_use"&&r.name==="AskUserQuestion"){const a={kind:"question",id:r.id,questions:Y(r.input),answers:null};o.set(r.id,a),$(n).parts.push(a)}else if(r?.type==="tool_use"){const a=K(String(r.name),r.input??{}),l={kind:"tool",id:r.id,name:String(r.name),...a,input:r.input,result:null,isError:!1};e.set(r.id,l),_(n).steps.push(l)}else if(r?.type==="text"){if(!String(r.text??"").trim())continue;$(n).parts.push({kind:"text",id:`${n.uuid}-t`,text:r.text})}break}case"attachment":{const r=n.attachment??{};if(r.type==="queued_command"&&typeof r.prompt=="string"&&(r.commandMode??"prompt")==="prompt"){const a=x(r.prompt);a&&y(n,a,{queued:!0})}else if(r.type==="hook_additional_context"){const a=Array.isArray(r.content)?r.content.join(`
|
|
4
|
+
`):String(r.content??"");E(n,`Hook added context${r.hookEvent?` (${r.hookEvent})`:""}`,a)}break}case"system":{if(n.subtype==="turn_duration")c&&(c.durationMs=n.durationMs??null,c.done=!0),p();else if(n.subtype==="away_summary")p(),t.push({kind:"notice",id:n.uuid,title:"While you were away",detail:String(n.content??""),at:n.timestamp});else if(n.subtype==="local_command"){const r=String(n.content??""),a=v(r,"local-command-stdout")??v(r,"local-command-stderr"),l=W(r);if(l)y(n,l,{command:!0});else if(a!==null){const d=a.replace(G,"").trim();d&&t.push({kind:"output",id:n.uuid,text:d,at:n.timestamp})}}break}}h&&(b=h)}const M=[];return{items:t.filter((n,h)=>{if(n.kind!=="turn"||n.trigger!=="background")return!0;const r=n.parts.filter(d=>d.kind==="text").map(d=>d.text).join(`
|
|
5
|
+
`).trim(),l=!n.parts.some(d=>d.kind==="question")&&(!r||Q.test(r));return M.push({id:n.id,at:n.at,durationMs:n.durationMs,done:n.done||h<t.length-1,outcome:l?"quiet":"reported"}),!l}),title:i,checks:M}}function ft(s){const t=new Map;let e=!1,o=0;for(const u of s){if(u.kind==="thinking"&&(e=!0,o+=u.ms??0),u.kind!=="tool")continue;const c=t.get(u.noun[0])??{n:0,noun:u.noun};c.n++,t.set(u.noun[0],c)}const i=[...t.values()].map(u=>`${u.n} ${u.n===1?u.noun[0]:u.noun[1]}`);return i.length?i.join(", "):e?o>=1e3?`Thought for ${et(o)}`:"Thought briefly":"Read some context"}function et(s){if(s==null||s<0)return"";const t=Math.round(s/1e3);if(t<60)return`${t}s`;const e=Math.floor(t/60);return e<60?`${e}m ${t%60}s`:`${Math.floor(e/60)}h ${e%60}m`}function pt(s){const t=[];for(const e of s)if(e.kind==="turn"){for(const o of e.parts)if(o.kind==="activity")for(const i of o.steps)i.kind==="tool"&&i.result!==null&&i.name.startsWith("mcp__")&&t.push(i.id)}return t}const st=2,C=s=>` ${s.replace(/\s+/g," ").trim()} `,I=s=>s[s.length-1]?.id??null,nt=(s,t)=>t===null?-1:s.findIndex(e=>e.id===t),j=s=>s?.kind==="turn";function rt(s,t){const e=new Map;return s.filter(o=>{if(o.state==="sending"||o.state==="failed")return!0;const i=nt(t,o.after),u=t.slice(i+1);if(o.via==="inbox")return!u.some(j);const c=C(o.text),b=e.get(c)??0;return u.filter(p=>p.kind==="user"&&C(p.text).includes(c)).length>b?(e.set(c,b+1),!1):u.filter(p=>j(p)&&p.done).length<st})}function gt(s){switch(s.state){case"sending":return"Sending…";case"queued":return"Queued · Firstmate is busy and will read it next";case"failed":return s.error?`Not sent · ${s.error}`:"Not sent";default:return s.via==="inbox"?"In Firstmate’s inbox":"Delivered · waiting for Firstmate"}}const N=6e3;class ot{#t=g(null);get session(){return m(this.#t)}set session(t){f(this.#t,t,!0)}#e=g(null);get source(){return m(this.#e)}set source(t){f(this.#e,t,!0)}#s=g([]);get records(){return m(this.#s)}set records(t){f(this.#s,t)}#n=g("connecting");get connection(){return m(this.#n)}set connection(t){f(this.#n,t,!0)}#r=g(0);get resets(){return m(this.#r)}set resets(t){f(this.#r,t,!0)}#o=g(!1);get synced(){return m(this.#o)}set synced(t){f(this.#o,t,!0)}#i=g(L([]));get commands(){return m(this.#i)}set commands(t){f(this.#i,t,!0)}#a=S(()=>tt(this.records));get chat(){return m(this.#a)}set chat(t){f(this.#a,t)}#u=S(()=>{const t=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||t?.kind==="turn"&&!t.done&&!t.interrupted});get working(){return m(this.#u)}set working(t){f(this.#u,t)}#c=S(()=>this.connection==="open"&&this.session?.state==="ours"&&!this.session.picker&&!this.session.menu&&this.working);get atWork(){return m(this.#c)}set atWork(t){f(this.#c,t)}#l=g(L([]));get outbox(){return m(this.#l)}set outbox(t){f(this.#l,t,!0)}#d=S(()=>rt(this.outbox,this.chat.items));get pending(){return m(this.#d)}set pending(t){f(this.#d,t)}close=null;connect(){if(this.close)return()=>{};this.synced=!1;const t=e=>{e.addEventListener("session",o=>{this.session=JSON.parse(o.data),this.connection="open"}),e.addEventListener("reset",o=>{this.source=JSON.parse(o.data),this.records=[],this.resets++}),e.addEventListener("records",o=>{const i=[...this.records,...JSON.parse(o.data)];this.records=i.length>N?i.slice(-N):i}),e.addEventListener("synced",()=>this.synced=!0)};return this.close=P("/api/firstmate/chat",t,e=>this.connection=e),this.loadCommands(),()=>{this.close?.(),this.close=null,this.connection="connecting"}}async send(t,e,o,i){return this.prune(),this.outbox.push({id:crypto.randomUUID(),text:t,via:e,state:"sending",error:null,after:I(this.chat.items)}),this.deliver(this.outbox[this.outbox.length-1],o,i)}retry(t,e,o){const i=this.outbox.find(u=>u.id===t);!i||i.state!=="failed"||(i.after=I(this.chat.items),this.deliver(i,e,o))}dismiss(t){this.outbox=this.outbox.filter(e=>e.id!==t)}async deliver(t,e,o){t.state="sending",t.error=null;const i=t.via==="inbox"?await at(t.text,e):await it("/api/firstmate/input",e,{text:t.text});return i.ok?t.state=o&&t.via==="session"?"queued":"delivered":(t.state="failed",t.error=i.error),i}prune(){const t=new Set(this.pending.map(e=>e.id));this.outbox=this.outbox.filter(e=>t.has(e.id))}async loadCommands(){try{const t=await fetch("/api/firstmate/commands");t.ok&&(this.commands=(await t.json()).commands)}catch{}}}const yt=new ot;async function it(s,t,e){try{const o=await fetch(s,{method:"POST",headers:{"content-type":"application/json",[O]:t},body:JSON.stringify(e??{})});return o.ok?{ok:!0}:{ok:!1,error:(await o.json().catch(()=>null))?.message??`Wheelhouse answered ${o.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function at(s,t,e=null,o=`wh-${crypto.randomUUID()}`){try{const i=await fetch("/api/firstmate/messages",{method:"POST",headers:{"content-type":"application/json","idempotency-key":o,[O]:t},body:JSON.stringify({text:s,taskId:e})});return i.ok?{ok:!0,pending:i.status===202}:{ok:!1,error:(await i.json().catch(()=>null))?.message??`Wheelhouse answered ${i.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}export{R as a,ft as b,yt as c,et as d,it as e,ht as f,pt as g,gt as p,mt as r,at as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{_ as e}from"../chunks/CZPeboo-.js";import{v as h,ax as Y,g as u,a2 as Z,a3 as q,Z as B,az as H,a6 as J,aA as K,p as N,y as Q,u as U,F as W,f as E,s as X,a as p,b as $,l as P,j as O,i as tt,r as et,c as y,h as R,w as rt,t as at,d as ot}from"../chunks/BOY9WARo.js";import"../chunks/DsnmJJEf.js";import{o as st}from"../chunks/Blj84s6L.js";import{p as A,i as L}from"../chunks/DnDesMxN.js";import{c as b}from"../chunks/BV-FSL0u.js";import{b as D}from"../chunks/4VJeJzd5.js";const Pt={};function it(o){return class extends _t{constructor(t){super({component:o,...t})}}}class _t{#e;#t;constructor(t){var s=new Map,_=(r,a)=>{var m=K(a,!1,!1);return s.set(r,m),m};const n=new Proxy({...t.props||{},$$events:{}},{get(r,a){return u(s.get(a)??_(a,Reflect.get(r,a)))},has(r,a){return a===Y?!0:(u(s.get(a)??_(a,Reflect.get(r,a))),Reflect.has(r,a))},set(r,a,m){return h(s.get(a)??_(a,m),m),Reflect.set(r,a,m)}});this.#t=(t.hydrate?Z:q)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&B(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||H(this,r,{get(){return this.#t[r]},set(a){this.#t[r]=a},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{J(this.#t)}}$set(t){this.#t.$set(t)}$on(t,s){this.#e[t]=this.#e[t]||[];const _=(...n)=>s.call(this,...n);return this.#e[t].push(_),()=>{this.#e[t]=this.#e[t].filter(n=>n!==_)}}$destroy(){this.#t.$destroy()}}var nt=y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),mt=y("<!> <!>",1);function ut(o,t){N(t,!0);let s=A(t,"components",23,()=>[]),_=A(t,"data_0",3,null),n=A(t,"data_1",3,null);Q(()=>t.stores.page.set(t.page)),U(()=>{t.stores,t.page,t.constructors,s(),t.form,_(),n(),t.stores.page.notify()});let r=P(!1),a=P(!1),m=P(null);st(()=>{const i=t.stores.page.subscribe(()=>{u(r)&&(h(a,!0),W().then(()=>{h(m,document.title||"untitled page",!0)}))});return h(r,!0),i});const j=R(()=>t.constructors[1]);var I=mt(),T=E(I);{var w=i=>{const c=R(()=>t.constructors[0]);var d=O(),v=E(d);b(v,()=>u(c),(l,f)=>{D(f(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params},children:(g,dt)=>{var V=O(),M=E(V);b(M,()=>u(j),(z,F)=>{D(F(z,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),G=>s()[1]=G,()=>s()?.[1])}),p(g,V)},$$slots:{default:!0}}),g=>s()[0]=g,()=>s()?.[0])}),p(i,d)},k=i=>{const c=R(()=>t.constructors[0]);var d=O(),v=E(d);b(v,()=>u(c),(l,f)=>{D(f(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params}}),g=>s()[0]=g,()=>s()?.[0])}),p(i,d)};L(T,i=>{t.constructors[1]?i(w):i(k,-1)})}var C=X(T,2);{var S=i=>{var c=nt(),d=tt(c);{var v=l=>{var f=rt();at(()=>ot(f,u(m))),p(l,f)};L(d,l=>{u(a)&&l(v)})}et(c),p(i,c)};L(C,i=>{u(r)&&i(S)})}p(o,I),$()}const Ot=it(ut),Rt=[()=>e(()=>import("../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.x0mKzYMw.js","../chunks/DsnmJJEf.js","../chunks/Blj84s6L.js","../chunks/BOY9WARo.js","../chunks/TcIaLKEO.js","../chunks/DnDesMxN.js","../chunks/BV-FSL0u.js","../chunks/BRuDnHyc.js","../chunks/BBLx2oxZ.js","../chunks/DdB79emW.js","../chunks/DQEmyAe4.js","../chunks/Bl1tMgf8.js","../chunks/QzT8bZ-S.js","../chunks/kE4zxzFD.js","../chunks/D8Hr8rhb.js","../chunks/BXF1nDhR.js","../chunks/dPAGVN7v.js","../chunks/BbU5AsRD.js","../chunks/4VJeJzd5.js","../chunks/CNcEb8rI.js","../chunks/BBWR4qW2.js","../chunks/ohZIF1HO.js","../chunks/BzYzevxb.js","../chunks/He17Vv5l.js","../chunks/DnQR8b1d.js","../chunks/BVXUMEgB.js","../chunks/CrPP6AgN.js","../chunks/CDGwSysF.js","../chunks/DRK9oYED.js","../chunks/DWlSINHC.js","../chunks/CaaP7Cfy.js","../chunks/6x5fl0iw.js","../assets/pullrequests.Dga9zAug.css","../chunks/Bxc9WZZR.js","../chunks/D1pI6A8q.js","../chunks/BQle5rwK.js","../chunks/D8s8J8Og.js","../chunks/BudxWdUe.js","../chunks/CWq2437p.js","../chunks/BHVTrNhR.js","../chunks/DqZ9Wm2M.js","../chunks/DdRufa9N.js","../chunks/CyhrvZ9i.js","../chunks/WKkbnawS.js","../chunks/CLubIfWE.js","../chunks/dKB0cWc2.js","../chunks/DybGBkO1.js","../chunks/BkoErw_r.js","../chunks/-8jzdSzV.js","../chunks/DkG1ReNq.js","../chunks/1WRcPxqg.js","../chunks/DgOhqfdF.js","../chunks/DU2mz-vL.js","../chunks/DZJnY8Nx.js","../chunks/Dj3Af0xC.js","../chunks/CR7y1ULG.js","../chunks/dxi_erj0.js","../chunks/C03wrLr6.js","../chunks/DMefFkCx.js","../chunks/BHu5PcTV.js","../chunks/DpSftVJo.js","../chunks/BH_GqTtA.js","../chunks/B-JNrTge.js","../chunks/DCbu051o.js","../chunks/Z8zDEyti.js","../assets/0.CxNAeXUL.css","../nodes/1.DQwKSgDw.js","../nodes/2.DNWuY54S.js","../chunks/Cio5-ROX.js","../chunks/DlcOqcbg.js","../chunks/D6hXuNzR.js","../chunks/Ce7qVCDI.js","../chunks/DEIc6x-v.js","../chunks/CLsVEPfB.js","../chunks/CdUf0vBw.js","../chunks/CLeVtrv1.js","../chunks/CZPeboo-.js","../chunks/BwLAIydi.js","../chunks/CEbzGOE-.js","../chunks/BBk8ftHo.js","../chunks/Dhv6iBq8.js","../chunks/BSMH3sl_.js","../chunks/Y3i_x_Ja.js","../chunks/BKSx-wDn.js","../assets/2.DvyEOdRq.css","../nodes/3.COF537Bh.js","../chunks/Cbmz3nkf.js","../nodes/4.C69OFBsR.js","../chunks/Bxza7kFR.js","../assets/DocSheet.CgzYidp-.css","../chunks/CbGZd9iT.js","../nodes/5.BAZlH_fP.js","../chunks/C0nIjZ3F.js","../chunks/2u5U2sv5.js","../assets/5.5dJKCkOT.css","../nodes/6.BsosOtvd.js","../nodes/7.DnZ-8ovs.js","../nodes/9.BzSWG3R8.js","../chunks/BvCDG8Dd.js","../nodes/10.Bmz2aEu9.js","../chunks/DDUWrtWf.js","../chunks/6x9f8OOX.js","../chunks/B3j8X7eP.js","../nodes/11.Dsw17idi.js","../nodes/12.BCfbyZHF.js","../chunks/D7IP_ZEm.js","../chunks/kWmJZSyZ.js","../nodes/13.BF70RcBN.js","../nodes/14.DUa-e6bC.js","../nodes/16.DV4CIsXI.js","../chunks/B2ctrXx5.js","../nodes/17.BFAervXe.js","../chunks/M3zsQDnS.js","../nodes/18.cqwxGV--.js","../nodes/19.W4wKGIwz.js","../chunks/Bo1SMwPt.js","../nodes/20.Bw-IUju8.js","../nodes/21.DNFvLLcD.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as e}from"../chunks/CZPeboo-.js";import{v as h,ax as Y,g as u,a2 as Z,a3 as q,Z as B,az as H,a6 as J,aA as K,p as N,y as Q,u as U,F as W,f as E,s as X,a as p,b as $,l as P,j as O,i as tt,r as et,c as y,h as R,w as rt,t as at,d as ot}from"../chunks/BOY9WARo.js";import"../chunks/DsnmJJEf.js";import{o as st}from"../chunks/Blj84s6L.js";import{p as A,i as L}from"../chunks/DnDesMxN.js";import{c as b}from"../chunks/BV-FSL0u.js";import{b as D}from"../chunks/4VJeJzd5.js";const Pt={};function it(o){return class extends _t{constructor(t){super({component:o,...t})}}}class _t{#e;#t;constructor(t){var s=new Map,_=(r,a)=>{var m=K(a,!1,!1);return s.set(r,m),m};const n=new Proxy({...t.props||{},$$events:{}},{get(r,a){return u(s.get(a)??_(a,Reflect.get(r,a)))},has(r,a){return a===Y?!0:(u(s.get(a)??_(a,Reflect.get(r,a))),Reflect.has(r,a))},set(r,a,m){return h(s.get(a)??_(a,m),m),Reflect.set(r,a,m)}});this.#t=(t.hydrate?Z:q)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&B(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||H(this,r,{get(){return this.#t[r]},set(a){this.#t[r]=a},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{J(this.#t)}}$set(t){this.#t.$set(t)}$on(t,s){this.#e[t]=this.#e[t]||[];const _=(...n)=>s.call(this,...n);return this.#e[t].push(_),()=>{this.#e[t]=this.#e[t].filter(n=>n!==_)}}$destroy(){this.#t.$destroy()}}var nt=y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),mt=y("<!> <!>",1);function ut(o,t){N(t,!0);let s=A(t,"components",23,()=>[]),_=A(t,"data_0",3,null),n=A(t,"data_1",3,null);Q(()=>t.stores.page.set(t.page)),U(()=>{t.stores,t.page,t.constructors,s(),t.form,_(),n(),t.stores.page.notify()});let r=P(!1),a=P(!1),m=P(null);st(()=>{const i=t.stores.page.subscribe(()=>{u(r)&&(h(a,!0),W().then(()=>{h(m,document.title||"untitled page",!0)}))});return h(r,!0),i});const j=R(()=>t.constructors[1]);var I=mt(),T=E(I);{var w=i=>{const c=R(()=>t.constructors[0]);var d=O(),v=E(d);b(v,()=>u(c),(l,f)=>{D(f(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params},children:(g,dt)=>{var V=O(),M=E(V);b(M,()=>u(j),(z,F)=>{D(F(z,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),G=>s()[1]=G,()=>s()?.[1])}),p(g,V)},$$slots:{default:!0}}),g=>s()[0]=g,()=>s()?.[0])}),p(i,d)},k=i=>{const c=R(()=>t.constructors[0]);var d=O(),v=E(d);b(v,()=>u(c),(l,f)=>{D(f(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params}}),g=>s()[0]=g,()=>s()?.[0])}),p(i,d)};L(T,i=>{t.constructors[1]?i(w):i(k,-1)})}var C=X(T,2);{var S=i=>{var c=nt(),d=tt(c);{var v=l=>{var f=rt();at(()=>ot(f,u(m))),p(l,f)};L(d,l=>{u(a)&&l(v)})}et(c),p(i,c)};L(C,i=>{u(r)&&i(S)})}p(o,I),$()}const Ot=it(ut),Rt=[()=>e(()=>import("../nodes/0.x0mKzYMw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65]),import.meta.url),()=>e(()=>import("../nodes/1.DQwKSgDw.js"),__vite__mapDeps([66,1,3,10,9,2]),import.meta.url),()=>e(()=>import("../nodes/2.DNWuY54S.js"),__vite__mapDeps([67,1,2,3,5,7,10,9,11,21,14,37,43,17,4,24,25,6,45,46,20,18,58,59,41,15,19,49,13,12,16,22,23,26,27,28,29,30,31,32,33,34,35,36,39,40,42,68,50,69,70,71,72,73,57,74,61,52,75,76,51,77,78,55,79,80,81,82,60,64,83,8,84]),import.meta.url),()=>e(()=>import("../nodes/3.COF537Bh.js"),__vite__mapDeps([85,1,3,5,7,6,10,9,2,15,55,86,75,38,33,25,29,17,4,27,36]),import.meta.url),()=>e(()=>import("../nodes/4.C69OFBsR.js"),__vite__mapDeps([87,1,3,5,7,24,17,4,25,88,18,89,90]),import.meta.url),()=>e(()=>import("../nodes/5.BAZlH_fP.js"),__vite__mapDeps([91,1,3,5,7,6,17,4,10,9,2,43,11,92,15,44,93,73,51,35,63,19,49,81,30,83,18,62,41,94]),import.meta.url),()=>e(()=>import("../nodes/6.BsosOtvd.js"),__vite__mapDeps([95,1,3,5,7,15,55,86,75,10,9,2,38,71,17,4,51,27]),import.meta.url),()=>e(()=>import("../nodes/7.DnZ-8ovs.js"),__vite__mapDeps([96,1,2,3,5,7,17,4,8,9,10,11,12,13,14,6,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url),()=>e(()=>import("../chunks/CZPeboo-.js").then(o=>o.a),[],import.meta.url),()=>e(()=>import("../nodes/9.BzSWG3R8.js"),__vite__mapDeps([97,1,3,5,7,10,9,2,11,37,98,30,17,4,68,20,6,15,39,26,14,40,18,41,42,21,50,69,70,23]),import.meta.url),()=>e(()=>import("../nodes/10.Bmz2aEu9.js"),__vite__mapDeps([99,1,3,5,7,10,9,2,11,37,43,17,4,100,92,6,15,44,93,73,51,35,59,23,58,18,20,41,19,49,40,14,56,39,26,42,21,16,22,24,25,27,28,29,30,31,32,57,101,82,79,55,34,61,68,50,69,70,102,77,63]),import.meta.url),()=>e(()=>import("../nodes/11.Dsw17idi.js"),__vite__mapDeps([103,1,3,5,7,10,9,2,11,37,100,43,17,4,92,6,15,44,93,73,51,35,59,23,68,20,39,26,14,40,18,41,42,21,50,69,30,70]),import.meta.url),()=>e(()=>import("../nodes/12.BCfbyZHF.js"),__vite__mapDeps([104,1,3,5,7,10,9,2,8,11,37,100,43,17,4,92,6,15,44,93,73,51,35,59,23,14,40,18,105,70,106,57]),import.meta.url),()=>e(()=>import("../nodes/13.BF70RcBN.js"),__vite__mapDeps([107,1,3,5,20,17,4,7,8,2,9,10,11,26,78,40,14,18,105,90,57,31,28,77,69,70,30,93,47,74]),import.meta.url),()=>e(()=>import("../nodes/14.DUa-e6bC.js"),__vite__mapDeps([108,1,3,5,7,11,10,9,2,15,81,35,17,4,64,34,52,42]),import.meta.url),()=>e(()=>import("../chunks/CZPeboo-.js").then(o=>o.b),[],import.meta.url),()=>e(()=>import("../nodes/16.DV4CIsXI.js"),__vite__mapDeps([109,1,3,5,7,10,9,2,48,13,14,15,40,4,18,110,75]),import.meta.url),()=>e(()=>import("../nodes/17.BFAervXe.js"),__vite__mapDeps([111,1,2,3,5,7,8,9,10,110,75,98,30,17,4,6,26,46,20,40,14,18,112,11,50,51,31,53,15,52,41]),import.meta.url),()=>e(()=>import("../nodes/18.cqwxGV--.js"),__vite__mapDeps([113,1,2,3,5,7,8,9,10,110,75,112,11,14,50,17,4,30,26,51,40,18,22]),import.meta.url),()=>e(()=>import("../nodes/19.W4wKGIwz.js"),__vite__mapDeps([114,1,3,4,5,7,18,10,9,2,15,72,17,8,11,37,68,20,6,39,26,14,40,41,42,21,50,69,30,70,23,79,56,16,19,22,24,25,27,28,29,31,32,57,58,59,49,54,12,13,33,34,35,36,55,60,38,106,47,101,74,102,73,80,115,90,77]),import.meta.url),()=>e(()=>import("../nodes/20.Bw-IUju8.js"),__vite__mapDeps([116,1,3,5,7,24,17,4,25,101,15,88,18,89,90,23,36]),import.meta.url),()=>e(()=>import("../nodes/21.DNFvLLcD.js"),__vite__mapDeps([117,1,3,5,7,55,86,75,10,9,2,38,80,115]),import.meta.url)],At=[0],Lt={"/":[-3],"/decisions":[-4],"/files":[-5],"/harbour":[-6],"/headroom":[-7],"/inbox":[-8],"/plugins":[-9],"/plugins/[plugin]/[page]":[-10],"/projects/[id]":[-11],"/projects/[id]/passage":[-13],"/projects/[id]/passage/edit":[-14],"/projects/[id]/[plugin]/[tab]":[-12],"/second-mates":[14],"/settings":[-16],"/settings/gateway":[-17],"/settings/plugins":[-18],"/settings/plugins/[plugin]":[-19],"/tasks/[id]":[-20],"/tasks/[id]/doc":[-21],"/time":[-22]},x={handleError:(({error:o})=>{console.error(o)}),reroute:(()=>{}),transport:{}},ct=Object.fromEntries(Object.entries(x.transport).map(([o,t])=>[o,t.decode])),bt=Object.fromEntries(Object.entries(x.transport).map(([o,t])=>[o,t.encode])),Dt=!1,It=(o,t)=>ct[o](t),Tt=()=>e(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(o=>o.default);export{It as decode,ct as decoders,Lt as dictionary,bt as encoders,Tt as get_error_template,Dt as hash,x as hooks,Pt as matchers,Rt as nodes,Ot as root,At as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as r}from"../chunks/BBLx2oxZ.js";import{y as t}from"../chunks/DdB79emW.js";export{t as load_css,r as start};
|
|
Binary file
|
|
Binary file
|