@chrisjowen/wheelhouse 0.22.8 → 0.22.10
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/build/client/_app/immutable/assets/0.CxgStULu.css +1 -0
- package/build/client/_app/immutable/assets/0.CxgStULu.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CxgStULu.css.gz +0 -0
- package/build/client/_app/immutable/chunks/-yf6aA9S.js +1 -0
- package/build/client/_app/immutable/chunks/-yf6aA9S.js.br +0 -0
- package/build/client/_app/immutable/chunks/-yf6aA9S.js.gz +0 -0
- package/build/client/_app/immutable/chunks/362kFTNq.js +1 -0
- package/build/client/_app/immutable/chunks/362kFTNq.js.br +0 -0
- package/build/client/_app/immutable/chunks/362kFTNq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/4Fb0jmD0.js +2 -0
- package/build/client/_app/immutable/chunks/4Fb0jmD0.js.br +0 -0
- package/build/client/_app/immutable/chunks/4Fb0jmD0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B6OgCkTR.js +1 -0
- package/build/client/_app/immutable/chunks/B6OgCkTR.js.br +0 -0
- package/build/client/_app/immutable/chunks/B6OgCkTR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BONFwLSn.js +1 -0
- package/build/client/_app/immutable/chunks/BONFwLSn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BONFwLSn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BcjiGAgD.js +1 -0
- package/build/client/_app/immutable/chunks/BcjiGAgD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BcjiGAgD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjVIrDHV.js +1 -0
- package/build/client/_app/immutable/chunks/BjVIrDHV.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjVIrDHV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bue5RrUO.js +7 -0
- package/build/client/_app/immutable/chunks/Bue5RrUO.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bue5RrUO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLuz13qg.js +1 -0
- package/build/client/_app/immutable/chunks/CLuz13qg.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLuz13qg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSzwlAcc.js +6 -0
- package/build/client/_app/immutable/chunks/CSzwlAcc.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSzwlAcc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CW42isxN.js +1 -0
- package/build/client/_app/immutable/chunks/CW42isxN.js.br +0 -0
- package/build/client/_app/immutable/chunks/CW42isxN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CWvJbYTn.js +7 -0
- package/build/client/_app/immutable/chunks/CWvJbYTn.js.br +0 -0
- package/build/client/_app/immutable/chunks/CWvJbYTn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cq0j50qC.js +1 -0
- package/build/client/_app/immutable/chunks/Cq0j50qC.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cq0j50qC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cu2GhZPA.js +8 -0
- package/build/client/_app/immutable/chunks/Cu2GhZPA.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cu2GhZPA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DC4avyk1.js +3 -0
- package/build/client/_app/immutable/chunks/DC4avyk1.js.br +0 -0
- package/build/client/_app/immutable/chunks/DC4avyk1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFoNnxZy.js +1 -0
- package/build/client/_app/immutable/chunks/DFoNnxZy.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFoNnxZy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLoaec-O.js +3 -0
- package/build/client/_app/immutable/chunks/DLoaec-O.js.br +0 -0
- package/build/client/_app/immutable/chunks/DLoaec-O.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMtBybVn.js +1 -0
- package/build/client/_app/immutable/chunks/DMtBybVn.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMtBybVn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DN7cEX4D.js +2 -0
- package/build/client/_app/immutable/chunks/DN7cEX4D.js.br +0 -0
- package/build/client/_app/immutable/chunks/DN7cEX4D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRK8ZUj2.js +1 -0
- package/build/client/_app/immutable/chunks/DRK8ZUj2.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRK8ZUj2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTmJMwRe.js +1 -0
- package/build/client/_app/immutable/chunks/DTmJMwRe.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTmJMwRe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dg5Iatf7.js +1 -0
- package/build/client/_app/immutable/chunks/Dg5Iatf7.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dg5Iatf7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dtd2m7HF.js +4 -0
- package/build/client/_app/immutable/chunks/Dtd2m7HF.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dtd2m7HF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/MoV8bfgL.js +1 -0
- package/build/client/_app/immutable/chunks/MoV8bfgL.js.br +0 -0
- package/build/client/_app/immutable/chunks/MoV8bfgL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Rgu8m09_.js +3 -0
- package/build/client/_app/immutable/chunks/Rgu8m09_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Rgu8m09_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/nqsqhzVw.js +5 -0
- package/build/client/_app/immutable/chunks/nqsqhzVw.js.br +0 -0
- package/build/client/_app/immutable/chunks/nqsqhzVw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pSy419OZ.js +1 -0
- package/build/client/_app/immutable/chunks/pSy419OZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/pSy419OZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tFbTlyod.js +2 -0
- package/build/client/_app/immutable/chunks/tFbTlyod.js.br +0 -0
- package/build/client/_app/immutable/chunks/tFbTlyod.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vbU2m5ZC.js +6 -0
- package/build/client/_app/immutable/chunks/vbU2m5ZC.js.br +0 -0
- package/build/client/_app/immutable/chunks/vbU2m5ZC.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DhcmqiiG.js +2 -0
- package/build/client/_app/immutable/entry/app.DhcmqiiG.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DhcmqiiG.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DO6oso7n.js +1 -0
- package/build/client/_app/immutable/entry/start.DO6oso7n.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DO6oso7n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CWyb_rXu.js +9 -0
- package/build/client/_app/immutable/nodes/0.CWyb_rXu.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CWyb_rXu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BOm1hKiV.js +1 -0
- package/build/client/_app/immutable/nodes/1.BOm1hKiV.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BOm1hKiV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DRMcyQfx.js +9 -0
- package/build/client/_app/immutable/nodes/10.DRMcyQfx.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DRMcyQfx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BkUr8JG0.js +3 -0
- package/build/client/_app/immutable/nodes/11.BkUr8JG0.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BkUr8JG0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.CJNr2i2i.js +6 -0
- package/build/client/_app/immutable/nodes/12.CJNr2i2i.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.CJNr2i2i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.BKw66cnj.js +1 -0
- package/build/client/_app/immutable/nodes/13.BKw66cnj.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BKw66cnj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.9qfv-EBi.js +10 -0
- package/build/client/_app/immutable/nodes/14.9qfv-EBi.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.9qfv-EBi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DSekLzW1.js +1 -0
- package/build/client/_app/immutable/nodes/15.DSekLzW1.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DSekLzW1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.BC7ezHaI.js +3 -0
- package/build/client/_app/immutable/nodes/16.BC7ezHaI.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.BC7ezHaI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.DXMknnxr.js +1 -0
- package/build/client/_app/immutable/nodes/17.DXMknnxr.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.DXMknnxr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.HjgpyMW-.js +14 -0
- package/build/client/_app/immutable/nodes/18.HjgpyMW-.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.HjgpyMW-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.BOB8CfuL.js +150 -0
- package/build/client/_app/immutable/nodes/19.BOB8CfuL.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BOB8CfuL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BHumjjdi.js +40 -0
- package/build/client/_app/immutable/nodes/2.BHumjjdi.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BHumjjdi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.JN5VOhqA.js +25 -0
- package/build/client/_app/immutable/nodes/20.JN5VOhqA.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.JN5VOhqA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.EqPwzUhF.js +5 -0
- package/build/client/_app/immutable/nodes/21.EqPwzUhF.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.EqPwzUhF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.DqyYdAf0.js +18 -0
- package/build/client/_app/immutable/nodes/22.DqyYdAf0.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.DqyYdAf0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.EzjiUP8y.js +4 -0
- package/build/client/_app/immutable/nodes/24.EzjiUP8y.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.EzjiUP8y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.BnZOICl5.js +6 -0
- package/build/client/_app/immutable/nodes/26.BnZOICl5.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.BnZOICl5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.CklcJ2eM.js +8 -0
- package/build/client/_app/immutable/nodes/27.CklcJ2eM.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.CklcJ2eM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js +2 -0
- package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.BOuFV2EF.js +5 -0
- package/build/client/_app/immutable/nodes/29.BOuFV2EF.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.BOuFV2EF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.JOOWrRc9.js +2 -0
- package/build/client/_app/immutable/nodes/3.JOOWrRc9.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.JOOWrRc9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.DDGOS4V1.js +4 -0
- package/build/client/_app/immutable/nodes/30.DDGOS4V1.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.DDGOS4V1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.DcXjxR7j.js +3 -0
- package/build/client/_app/immutable/nodes/31.DcXjxR7j.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.DcXjxR7j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.D8XciSJp.js +7 -0
- package/build/client/_app/immutable/nodes/32.D8XciSJp.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.D8XciSJp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.DinukFZg.js +2 -0
- package/build/client/_app/immutable/nodes/33.DinukFZg.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.DinukFZg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.DtDCIQmU.js +4 -0
- package/build/client/_app/immutable/nodes/34.DtDCIQmU.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.DtDCIQmU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.C3rbzZEh.js +7 -0
- package/build/client/_app/immutable/nodes/35.C3rbzZEh.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.C3rbzZEh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.S0MUGkao.js +6 -0
- package/build/client/_app/immutable/nodes/36.S0MUGkao.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.S0MUGkao.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js +23 -0
- package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js +1 -0
- package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js.br +1 -0
- package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Bem-C3SH.js +5 -0
- package/build/client/_app/immutable/nodes/4.Bem-C3SH.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Bem-C3SH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40._GGycC-b.js +6 -0
- package/build/client/_app/immutable/nodes/40._GGycC-b.js.br +0 -0
- package/build/client/_app/immutable/nodes/40._GGycC-b.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js +1 -0
- package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DydCsQuo.js +3 -0
- package/build/client/_app/immutable/nodes/8.DydCsQuo.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DydCsQuo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CroJqbmx.js +10 -0
- package/build/client/_app/immutable/nodes/9.CroJqbmx.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CroJqbmx.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/DecisionForm.js-xvsHzFol.js +246 -0
- package/build/server/chunks/chunks/DecisionsBadge.js-Ba3uHWZs.js +79 -0
- package/build/server/chunks/chunks/Discussion.js-Bdc6mCza.js +582 -0
- package/build/server/chunks/chunks/ResizableRail.js-CaXYsa14.js +864 -0
- package/build/server/chunks/chunks/TaskView.js-Ceg1VgsE.js +3015 -0
- package/build/server/chunks/chunks/bell.js-bn_lKpLG.js +194 -0
- package/build/server/chunks/chunks/chat.svelte.js-sTASVMGv.js +417 -0
- package/build/server/chunks/chunks/decisionhome.js-GDNgBJjF.js +319 -0
- package/build/server/chunks/chunks/detail.js-BiXsOr5e.js +149 -0
- package/build/server/chunks/chunks/features.js-C0RFlCU9.js +181 -0
- package/build/server/chunks/chunks/feedback.js-DqPCMKCB.js +67 -0
- package/build/server/chunks/chunks/handled.js-CSOW-IZA.js +20 -0
- package/build/server/chunks/chunks/inbox.js-Ci-STS86.js +229 -0
- package/build/server/chunks/chunks/insights.svelte.js-Bkr5JwNs.js +567 -0
- package/build/server/chunks/chunks/internal.js-BFZQ29Rw.js +151 -0
- package/build/server/chunks/chunks/marketplace-service.js-Dux8KDZW.js +557 -0
- package/build/server/chunks/chunks/ondeck.js-DqIA30QR.js +121 -0
- package/build/server/chunks/chunks/package.js-BddORhTc.js +160 -0
- package/build/server/chunks/chunks/page.js-BBQIXL1m.js +13 -0
- package/build/server/chunks/chunks/previewhelper2.js-BkkOMPpE.js +210 -0
- package/build/server/chunks/chunks/repo.js-zZjENX9B.js +33 -0
- package/build/server/chunks/chunks/runtime.js-D5CM1xFr.js +25696 -0
- package/build/server/chunks/chunks/scribe.js-DPteFaiJ.js +1376 -0
- package/build/server/chunks/chunks/service.js-Jsxdma_u.js +1339 -0
- package/build/server/chunks/chunks/service2.js-CNlAY9fC.js +835 -0
- package/build/server/chunks/chunks/service3.js-CJCzXm3j.js +234 -0
- package/build/server/chunks/chunks/sessions.js-DwnsAQAT.js +519 -0
- package/build/server/chunks/chunks/settings.js-B_K2GMso.js +379 -0
- package/build/server/chunks/chunks/starter.js-De6FnYRT.js +400 -0
- package/build/server/chunks/chunks/store.js-DHAfX_W5.js +334 -0
- package/build/server/chunks/chunks/tmux.js-8vQMGgvb.js +504 -0
- package/build/server/chunks/chunks/tools.js-BnmGImVp.js +156 -0
- package/build/server/chunks/chunks/uploads.js-B9xKVdU_.js +107 -0
- package/build/server/chunks/chunks/view.js-7t_fs4Ou.js +76 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-Y1d6GsCd.js +112 -0
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-CH-h3Pl7.js +111 -0
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CCMWIWlb.js +59 -0
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-DXIH_Tt_.js +75 -0
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-nWjmGzXO.js +79 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-SoyoQEs8.js +154 -0
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-Dd51OPkW.js +56 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BJxEyrRY.js +71 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-0lQ7d4ex.js +107 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-DLr0x0ZE.js +83 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-bScpFWhy.js +73 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-Dl_lCGny.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CMV9SuiA.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-j9aWA7Ox.js +67 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-mtr8O6IP.js +73 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DSTGdSa-.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-BAk_G9UZ.js +115 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-C_AWiFk_.js +76 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DVlzrd15.js +87 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-CfdiA9Rf.js +75 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Dr9UEEmG.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-SINb4OzG.js +32 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-DALaQV6B.js +40 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BKVOwD6Q.js +58 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-Bjr287a3.js +58 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-B_6DE6G6.js +85 -0
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CJzlOY_q.js +83 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-CiAgA4MB.js +76 -0
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-DPgUobdG.js +168 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-BMMFlj3H.js +58 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-psBYT9Pj.js +87 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-BkaMXW0d.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-BFVleJ7Y.js +27 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-53atYpc4.js +30 -0
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-CT3ITClO.js +96 -0
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DF2XQ3CU.js +74 -0
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-C2tqGck8.js +118 -0
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-BEzg-GdT.js +72 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-BtHG_jAo.js +93 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-CBMV7d_i.js +82 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DGiV-zDl.js +77 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-BmsdvL4P.js +74 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CKWaWFzi.js +27 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-sXcrpQCn.js +81 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-05bkKDCo.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-Dv2TIj2l.js +58 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BkaZp7ms.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-BlpQJKLF.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-B0D6HGVa.js +63 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-CoGEDP4T.js +72 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-CeH1E1-1.js +69 -0
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-BJAM9u1Z.js +73 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-B5919bIx.js +27 -0
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-fOS_n0Oo.js +81 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Dhy3UyX1.js +63 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C5yLhUK-.js +72 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-8vY4bNlN.js +84 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-xVKILY2S.js +71 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-FOib6B1u.js +94 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-B7PoKpP_.js +77 -0
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-DboClsC1.js +473 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-_t2JBTpH.js +88 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BQq9eUgO.js +67 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DV5Sv6hi.js +77 -0
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-BiBWqjSe.js +137 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-DxiG_OGk.js +66 -0
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-BGYEc37e.js +80 -0
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CTzyglnl.js +66 -0
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-rZFEYwUA.js +69 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-BbY3jmr8.js +63 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-rYs21Hmk.js +82 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-B_kTjBS5.js +109 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-ZkKoICXw.js +75 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-BGq0j-tp.js +104 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-COtlUErI.js +123 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-iofjMHUL.js +77 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-lh5ob5IU.js +80 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DibEHnqf.js +81 -0
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-BdjAbGdT.js +24 -0
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-CgI_ZLEj.js +31 -0
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-BUDwJeuz.js +33 -0
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-DtbdX65q.js +93 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BhPvfhR9.js +40 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-ytsnK_ZP.js +27 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CBcVn1mu.js +27 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-BEELTWRW.js +82 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-Eao6pczH.js +62 -0
- package/build/server/chunks/entries/hooks.server.js-CF4JNzUJ.js +104 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-TepwAVSL.js +54 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-CO0DVsYz.js +6028 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-Dhr60fyS.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-D35KG02R.js +5810 -0
- package/build/server/chunks/entries/pages/crew/_page.svelte.js-B1SJ4JXR.js +115 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Cuc-vbOM.js +14 -0
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-6jCtHLOX.js +16 -0
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-BFOofQDq.js +93 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-C0iJcT5-.js +17 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-DLTE5C5n.js +11 -0
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-BGngm7Na.js +16 -0
- package/build/server/chunks/entries/pages/health/_page.svelte.js-q1P9AuIv.js +517 -0
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DX9hQHEu.js +18 -0
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BOQ1XsWC.js +666 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-DBNfjd5P.js +16 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-B7Dmf30h.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DKEe2-Fq.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DQP_r_hz.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-B6DP_hXM.js +15 -0
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-0ZU6L4gV.js +11 -0
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CXlEidtY.js +13 -0
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DbVvZoJ2.js +12 -0
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B9y6kIJg.js +18 -0
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-D1bVoyS8.js +19 -0
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BlTW0hjJ.js +16 -0
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9mUpzeB.js +15 -0
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-tetctN1t.js +797 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-BSg0cHvQ.js +11 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DnuFc9-d.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-DVFgUMvV.js +17 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-B0HUsANb.js +11 -0
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-CHMmRvZ3.js +11 -0
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-Bn6Ntdtb.js +15 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-D2lE9oK6.js +18 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-D_08lJPM.js +36 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-vFkcChIQ.js +112 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-rpxoOqIW.js +24 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-Cu-V5UEB.js +11 -0
- package/build/server/chunks/handler-Dr03OdQ-.js +1474 -0
- package/build/server/chunks/index.js-BMxFQyjC.js +4296 -0
- package/build/server/chunks/manifest.js-C_Ui3kN5.js +969 -0
- package/build/server/chunks/nodes/0.js-BV8n1wnt.js +66 -0
- package/build/server/chunks/nodes/1.js-CYQdJgHA.js +9 -0
- package/build/server/chunks/nodes/10.js-BrDRWQQx.js +65 -0
- package/build/server/chunks/nodes/11.js-DdqofsD3.js +64 -0
- package/build/server/chunks/nodes/12.js-DLPGUsTC.js +12 -0
- package/build/server/chunks/nodes/13.js-BdokX4Tq.js +9 -0
- package/build/server/chunks/nodes/14.js-S81xczxH.js +9 -0
- package/build/server/chunks/nodes/15.js-DpvHCVGB.js +63 -0
- package/build/server/chunks/nodes/16.js-BWStEOBD.js +66 -0
- package/build/server/chunks/nodes/17.js-gvgV2hER.js +64 -0
- package/build/server/chunks/nodes/18.js-CT7k54Ej.js +65 -0
- package/build/server/chunks/nodes/19.js-B9UtpBBj.js +64 -0
- package/build/server/chunks/nodes/2.js-Dbm7TfZ5.js +63 -0
- package/build/server/chunks/nodes/20.js-vT3xrxjL.js +24 -0
- package/build/server/chunks/nodes/21.js-BbXio736.js +25 -0
- package/build/server/chunks/nodes/22.js-BMPIZV2w.js +9 -0
- package/build/server/chunks/nodes/23.js-DxLM-Z83.js +25 -0
- package/build/server/chunks/nodes/24.js-CHEjlfCe.js +63 -0
- package/build/server/chunks/nodes/26.js-D4F01T28.js +64 -0
- package/build/server/chunks/nodes/27.js-SDmmboPo.js +63 -0
- package/build/server/chunks/nodes/28.js-BfB0OsO7.js +25 -0
- package/build/server/chunks/nodes/29.js-DmoRXmbF.js +63 -0
- package/build/server/chunks/nodes/3.js-CILuDxnn.js +9 -0
- package/build/server/chunks/nodes/30.js-qL8fMPlb.js +24 -0
- package/build/server/chunks/nodes/31.js-D8hKIBnL.js +22 -0
- package/build/server/chunks/nodes/32.js-opcnFZYn.js +63 -0
- package/build/server/chunks/nodes/33.js-DTBnnQEr.js +66 -0
- package/build/server/chunks/nodes/34.js-CN-lXIx7.js +65 -0
- package/build/server/chunks/nodes/35.js-leP1Nmab.js +26 -0
- package/build/server/chunks/nodes/36.js-BXVNTEuJ.js +65 -0
- package/build/server/chunks/nodes/37.js-BL1cJNDE.js +67 -0
- package/build/server/chunks/nodes/38.js-Ds4te6eT.js +64 -0
- package/build/server/chunks/nodes/39.js-fqFUZvsO.js +64 -0
- package/build/server/chunks/nodes/4.js-BeT-z_5E.js +64 -0
- package/build/server/chunks/nodes/40.js-WIor0bYG.js +63 -0
- package/build/server/chunks/nodes/5.js-Ns9cI3B2.js +63 -0
- package/build/server/chunks/nodes/7.js-BU21SoSq.js +63 -0
- package/build/server/chunks/nodes/8.js-XnRzynxm.js +14 -0
- package/build/server/chunks/nodes/9.js-Dw79X6qg.js +63 -0
- package/dist/cli.js +82 -81
- package/dist/wh-vault.js +1 -1
- package/firstmate-extension/firstmate-extension.json +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/assets/0.Dqz7kCRB.css +0 -1
- package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.gz +0 -0
- package/build/client/_app/immutable/chunks/1THDSnwR.js +0 -1
- package/build/client/_app/immutable/chunks/1THDSnwR.js.br +0 -0
- package/build/client/_app/immutable/chunks/1THDSnwR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/5qx-E5hQ.js +0 -3
- package/build/client/_app/immutable/chunks/5qx-E5hQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/5qx-E5hQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/8cFWsiL5.js +0 -3
- package/build/client/_app/immutable/chunks/8cFWsiL5.js.br +0 -0
- package/build/client/_app/immutable/chunks/8cFWsiL5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B95vDHb4.js +0 -2
- package/build/client/_app/immutable/chunks/B95vDHb4.js.br +0 -0
- package/build/client/_app/immutable/chunks/B95vDHb4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUI64CqJ.js +0 -1
- package/build/client/_app/immutable/chunks/BUI64CqJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUI64CqJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bo0GBU1d.js +0 -1
- package/build/client/_app/immutable/chunks/Bo0GBU1d.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bo0GBU1d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BoLe_IyD.js +0 -1
- package/build/client/_app/immutable/chunks/BoLe_IyD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BoLe_IyD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqeJFOiq.js +0 -2
- package/build/client/_app/immutable/chunks/BqeJFOiq.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqeJFOiq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CC2m5e3H.js +0 -3
- package/build/client/_app/immutable/chunks/CC2m5e3H.js.br +0 -0
- package/build/client/_app/immutable/chunks/CC2m5e3H.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CHLlDrXz.js +0 -1
- package/build/client/_app/immutable/chunks/CHLlDrXz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CHLlDrXz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJh-lXlR.js +0 -1
- package/build/client/_app/immutable/chunks/CJh-lXlR.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJh-lXlR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPV8trsz.js +0 -1
- package/build/client/_app/immutable/chunks/CPV8trsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CPV8trsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQ0zKnku.js +0 -1
- package/build/client/_app/immutable/chunks/CQ0zKnku.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQ0zKnku.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cva9VpVb.js +0 -7
- package/build/client/_app/immutable/chunks/Cva9VpVb.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cva9VpVb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CxHJSJSb.js +0 -1
- package/build/client/_app/immutable/chunks/CxHJSJSb.js.br +0 -0
- package/build/client/_app/immutable/chunks/CxHJSJSb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DI6U75Wo.js +0 -1
- package/build/client/_app/immutable/chunks/DI6U75Wo.js.br +0 -0
- package/build/client/_app/immutable/chunks/DI6U75Wo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DREe4_Em.js +0 -1
- package/build/client/_app/immutable/chunks/DREe4_Em.js.br +0 -0
- package/build/client/_app/immutable/chunks/DREe4_Em.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTpgmq3M.js +0 -5
- package/build/client/_app/immutable/chunks/DTpgmq3M.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTpgmq3M.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Da2GOnuD.js +0 -2
- package/build/client/_app/immutable/chunks/Da2GOnuD.js.br +0 -0
- package/build/client/_app/immutable/chunks/Da2GOnuD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DlupK5OD.js +0 -6
- package/build/client/_app/immutable/chunks/DlupK5OD.js.br +0 -0
- package/build/client/_app/immutable/chunks/DlupK5OD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HFrgAbA7.js +0 -4
- package/build/client/_app/immutable/chunks/HFrgAbA7.js.br +0 -0
- package/build/client/_app/immutable/chunks/HFrgAbA7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Lb2eWaSE.js +0 -8
- package/build/client/_app/immutable/chunks/Lb2eWaSE.js.br +0 -0
- package/build/client/_app/immutable/chunks/Lb2eWaSE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/NueoU5q8.js +0 -1
- package/build/client/_app/immutable/chunks/NueoU5q8.js.br +0 -0
- package/build/client/_app/immutable/chunks/NueoU5q8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Sii3oNcc.js +0 -7
- package/build/client/_app/immutable/chunks/Sii3oNcc.js.br +0 -0
- package/build/client/_app/immutable/chunks/Sii3oNcc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/TvzfwAc_.js +0 -6
- package/build/client/_app/immutable/chunks/TvzfwAc_.js.br +0 -0
- package/build/client/_app/immutable/chunks/TvzfwAc_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Z_T9JZ0p.js +0 -1
- package/build/client/_app/immutable/chunks/Z_T9JZ0p.js.br +0 -0
- package/build/client/_app/immutable/chunks/Z_T9JZ0p.js.gz +0 -0
- package/build/client/_app/immutable/chunks/gKm-HWvG.js +0 -1
- package/build/client/_app/immutable/chunks/gKm-HWvG.js.br +0 -1
- package/build/client/_app/immutable/chunks/gKm-HWvG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/s7ZLiUKi.js +0 -1
- package/build/client/_app/immutable/chunks/s7ZLiUKi.js.br +0 -0
- package/build/client/_app/immutable/chunks/s7ZLiUKi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/uMlyB-ee.js +0 -1
- package/build/client/_app/immutable/chunks/uMlyB-ee.js.br +0 -0
- package/build/client/_app/immutable/chunks/uMlyB-ee.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BGGGVw8e.js +0 -2
- package/build/client/_app/immutable/entry/app.BGGGVw8e.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BGGGVw8e.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Cew8gpBz.js +0 -1
- package/build/client/_app/immutable/entry/start.Cew8gpBz.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Cew8gpBz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.Bg8-HE2q.js +0 -9
- package/build/client/_app/immutable/nodes/0.Bg8-HE2q.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Bg8-HE2q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CaqTGk5K.js +0 -1
- package/build/client/_app/immutable/nodes/1.CaqTGk5K.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CaqTGk5K.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.CDtUrk-c.js +0 -9
- package/build/client/_app/immutable/nodes/10.CDtUrk-c.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CDtUrk-c.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BgmRFAah.js +0 -2
- package/build/client/_app/immutable/nodes/11.BgmRFAah.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BgmRFAah.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.CkcVt4QK.js +0 -6
- package/build/client/_app/immutable/nodes/12.CkcVt4QK.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.CkcVt4QK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.Ce2-RKSA.js +0 -1
- package/build/client/_app/immutable/nodes/13.Ce2-RKSA.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.Ce2-RKSA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.ip6iLHgE.js +0 -10
- package/build/client/_app/immutable/nodes/14.ip6iLHgE.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.ip6iLHgE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DkPLCNpt.js +0 -1
- package/build/client/_app/immutable/nodes/15.DkPLCNpt.js.br +0 -3
- package/build/client/_app/immutable/nodes/15.DkPLCNpt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.Cvg_tC9Y.js +0 -3
- package/build/client/_app/immutable/nodes/16.Cvg_tC9Y.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.Cvg_tC9Y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.DYkILIFn.js +0 -1
- package/build/client/_app/immutable/nodes/17.DYkILIFn.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.DYkILIFn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.DPfadYmN.js +0 -14
- package/build/client/_app/immutable/nodes/18.DPfadYmN.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.DPfadYmN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.ClKxJRb4.js +0 -150
- package/build/client/_app/immutable/nodes/19.ClKxJRb4.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.ClKxJRb4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CluLiMMe.js +0 -40
- package/build/client/_app/immutable/nodes/2.CluLiMMe.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CluLiMMe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.Bif6P7ng.js +0 -25
- package/build/client/_app/immutable/nodes/20.Bif6P7ng.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.Bif6P7ng.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.x0ymlObW.js +0 -5
- package/build/client/_app/immutable/nodes/21.x0ymlObW.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.x0ymlObW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.RGldztsO.js +0 -18
- package/build/client/_app/immutable/nodes/22.RGldztsO.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.RGldztsO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.B_uEnuL5.js +0 -4
- package/build/client/_app/immutable/nodes/24.B_uEnuL5.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.B_uEnuL5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.Dky3Ah9G.js +0 -6
- package/build/client/_app/immutable/nodes/26.Dky3Ah9G.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Dky3Ah9G.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.DP_uSl0C.js +0 -8
- package/build/client/_app/immutable/nodes/27.DP_uSl0C.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.DP_uSl0C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.D2qdRGPd.js +0 -2
- package/build/client/_app/immutable/nodes/28.D2qdRGPd.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.D2qdRGPd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.Ddwaz1hp.js +0 -5
- package/build/client/_app/immutable/nodes/29.Ddwaz1hp.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.Ddwaz1hp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CVDrIOUx.js +0 -2
- package/build/client/_app/immutable/nodes/3.CVDrIOUx.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CVDrIOUx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.Z_dcq2gz.js +0 -4
- package/build/client/_app/immutable/nodes/30.Z_dcq2gz.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.Z_dcq2gz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.dyucR3g6.js +0 -3
- package/build/client/_app/immutable/nodes/31.dyucR3g6.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.dyucR3g6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.DX4PQvJR.js +0 -7
- package/build/client/_app/immutable/nodes/32.DX4PQvJR.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.DX4PQvJR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.0jPnz-fe.js +0 -2
- package/build/client/_app/immutable/nodes/33.0jPnz-fe.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.0jPnz-fe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.CvGd0cJb.js +0 -4
- package/build/client/_app/immutable/nodes/34.CvGd0cJb.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.CvGd0cJb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.5ZhQwroK.js +0 -7
- package/build/client/_app/immutable/nodes/35.5ZhQwroK.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.5ZhQwroK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.LzdZEn79.js +0 -6
- package/build/client/_app/immutable/nodes/36.LzdZEn79.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.LzdZEn79.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.C5-b0odW.js +0 -23
- package/build/client/_app/immutable/nodes/37.C5-b0odW.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.C5-b0odW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.CMgkqyxT.js +0 -1
- package/build/client/_app/immutable/nodes/38.CMgkqyxT.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.CMgkqyxT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CbNo2HC_.js +0 -5
- package/build/client/_app/immutable/nodes/4.CbNo2HC_.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CbNo2HC_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.CNQdbYqG.js +0 -6
- package/build/client/_app/immutable/nodes/40.CNQdbYqG.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.CNQdbYqG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.RsG0znmX.js +0 -1
- package/build/client/_app/immutable/nodes/5.RsG0znmX.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.RsG0znmX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DFmXg3_i.js +0 -3
- package/build/client/_app/immutable/nodes/8.DFmXg3_i.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DFmXg3_i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DhYSdoUO.js +0 -10
- package/build/client/_app/immutable/nodes/9.DhYSdoUO.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DhYSdoUO.js.gz +0 -0
- package/build/server/chunks/chunks/DecisionForm.js-BFfq6cr6.js +0 -246
- package/build/server/chunks/chunks/DecisionsBadge.js-CGVFdHf9.js +0 -78
- package/build/server/chunks/chunks/Discussion.js-D7IFpGpa.js +0 -581
- package/build/server/chunks/chunks/ResizableRail.js-DYHpZhCB.js +0 -864
- package/build/server/chunks/chunks/TaskView.js-CK9biTfX.js +0 -3015
- package/build/server/chunks/chunks/bell.js-M4cNe9Wo.js +0 -194
- package/build/server/chunks/chunks/chat.svelte.js-vT8qTWLG.js +0 -417
- package/build/server/chunks/chunks/decisionhome.js-CHke-Aet.js +0 -311
- package/build/server/chunks/chunks/detail.js-CQv9k56W.js +0 -149
- package/build/server/chunks/chunks/features.js-B2GRQeLG.js +0 -181
- package/build/server/chunks/chunks/feedback.js-KWaTRrc_.js +0 -67
- package/build/server/chunks/chunks/handled.js-m3RTMfxd.js +0 -20
- package/build/server/chunks/chunks/inbox.js-CxcuKYoV.js +0 -222
- package/build/server/chunks/chunks/insights.svelte.js-CcEJoKQH.js +0 -567
- package/build/server/chunks/chunks/internal.js-CyrN7YyP.js +0 -151
- package/build/server/chunks/chunks/marketplace-service.js-BQryRMpA.js +0 -557
- package/build/server/chunks/chunks/ondeck.js-BLhFZI2l.js +0 -119
- package/build/server/chunks/chunks/package.js-DCazdgiR.js +0 -160
- package/build/server/chunks/chunks/page.js-BEonrB4-.js +0 -13
- package/build/server/chunks/chunks/previewhelper2.js-BwNIdagj.js +0 -210
- package/build/server/chunks/chunks/repo.js-Du-fw6dp.js +0 -33
- package/build/server/chunks/chunks/runtime.js-C-66z9Q6.js +0 -25642
- package/build/server/chunks/chunks/scribe.js-OrtzU0Ox.js +0 -1376
- package/build/server/chunks/chunks/service.js-Cgn4nIWF.js +0 -1339
- package/build/server/chunks/chunks/service2.js-D6aGwDef.js +0 -835
- package/build/server/chunks/chunks/service3.js-Dxdu8beL.js +0 -234
- package/build/server/chunks/chunks/sessions.js-DGHSwMvs.js +0 -519
- package/build/server/chunks/chunks/settings.js-qVoB3gY6.js +0 -379
- package/build/server/chunks/chunks/starter.js-DGsazTxj.js +0 -400
- package/build/server/chunks/chunks/store.js-m6116Gee.js +0 -332
- package/build/server/chunks/chunks/tmux.js-iKfXN6X8.js +0 -450
- package/build/server/chunks/chunks/tools.js-B9Uzu0OB.js +0 -156
- package/build/server/chunks/chunks/uploads.js-Dj8oL0YP.js +0 -107
- package/build/server/chunks/chunks/view.js-BunAXITd.js +0 -76
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-kVPM8QiK.js +0 -112
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-D3yUm95J.js +0 -111
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-t7kJDKFo.js +0 -59
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-asKE3p3l.js +0 -75
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-CL96hFwe.js +0 -79
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DtH4ROLw.js +0 -154
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-CjMBduD9.js +0 -56
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-tSUMjrxM.js +0 -71
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-B46bSl60.js +0 -107
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-C2y7h-Co.js +0 -83
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-C5veyHrZ.js +0 -73
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-DtwDysQZ.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-Bnkzua_j.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-nFnKxdcG.js +0 -67
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js--Yr7q4X9.js +0 -73
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-Bvwd3v0d.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DqUrbhsF.js +0 -115
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BpAtHV7C.js +0 -76
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-BWYNvyCC.js +0 -87
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-BIaGX_Je.js +0 -75
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-CKGsdGBC.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-Csr4uwPB.js +0 -32
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-A7LEzpUQ.js +0 -40
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BIky5eUL.js +0 -58
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-QzznrMw6.js +0 -58
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-BhT-maiz.js +0 -85
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-DTDIeAua.js +0 -83
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-12ddKzFc.js +0 -76
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-Dy8Qr5Ob.js +0 -168
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Dm8emtZq.js +0 -58
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DxYAgGOs.js +0 -87
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-Dk_70OY8.js +0 -68
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-CMCc7usd.js +0 -23
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-BnIiNLLM.js +0 -26
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-DvqKFPx-.js +0 -96
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-ClesSc9w.js +0 -69
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-C3RuITes.js +0 -118
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-5QW9NUip.js +0 -72
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-DPZryu4Q.js +0 -93
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-BcXreDr7.js +0 -82
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-Cec1PqqW.js +0 -77
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-kqsIOpsA.js +0 -74
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-BJocN5Xm.js +0 -27
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BUpXqp6F.js +0 -81
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-BGOAdpGK.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DS3DbCgu.js +0 -58
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CuZogP4B.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-BkS35-hL.js +0 -42
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-ByS6w0ap.js +0 -63
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BmrVgIv5.js +0 -72
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-BLPKS89l.js +0 -69
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-CXH9OLs6.js +0 -73
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-NecYW7Fw.js +0 -27
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-BlUsDWOD.js +0 -81
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-CBrquITj.js +0 -63
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-CKI4wWxB.js +0 -72
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-CWPBrHrF.js +0 -84
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-CJSTZha6.js +0 -71
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CuIgfX_D.js +0 -94
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BsRnf2ce.js +0 -77
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-Cb9tcSDx.js +0 -473
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-CY33XrLN.js +0 -88
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BRAKX1m3.js +0 -67
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-yt0TqAcX.js +0 -77
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-CVa3CdZi.js +0 -137
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-Dy7tHXfQ.js +0 -66
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DWZ_aOjS.js +0 -80
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CT7Boaf4.js +0 -66
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-ocY6SwwL.js +0 -69
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CnXs9bJ0.js +0 -63
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-vDstks5V.js +0 -82
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-BkTBLTm_.js +0 -109
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-D3dlXTwq.js +0 -75
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-C2K3IFZh.js +0 -104
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-BQ-Pi5Kw.js +0 -123
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-RDdXwMiY.js +0 -77
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-BFwe4mnD.js +0 -80
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-Bh4F9hu_.js +0 -81
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-Dx9WOcQT.js +0 -24
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-B2qqL7As.js +0 -31
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-B8R-L43c.js +0 -33
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-D3bduhlo.js +0 -93
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BMPsSJdV.js +0 -40
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-D5UL7RMX.js +0 -27
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CvEX3NKJ.js +0 -27
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DtTwc4Gq.js +0 -82
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-CHQUpKh2.js +0 -62
- package/build/server/chunks/entries/hooks.server.js-BG_jlCcK.js +0 -104
- package/build/server/chunks/entries/pages/_layout.server.ts.js-CTliqS0t.js +0 -54
- package/build/server/chunks/entries/pages/_layout.svelte.js-Bnx1zQNz.js +0 -6028
- package/build/server/chunks/entries/pages/_page.server.ts.js-BsobM1Vs.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-CEPxPR_I.js +0 -5810
- package/build/server/chunks/entries/pages/crew/_page.svelte.js-sAcZ9qNG.js +0 -115
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Bc3cLNPh.js +0 -14
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-DZsxsScR.js +0 -16
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-u1WdGQom.js +0 -93
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-CrzB71Jp.js +0 -17
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-C7IlrK-z.js +0 -11
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-DLaP4pWA.js +0 -16
- package/build/server/chunks/entries/pages/health/_page.svelte.js-DA7MoO-y.js +0 -517
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-CgDtaaVM.js +0 -18
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js--GRUWFc_.js +0 -653
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-mo7xbJt3.js +0 -16
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BTVTYrL2.js +0 -23
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-CBuwJYf2.js +0 -21
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-CbnfsXhC.js +0 -27
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-CuhFDzPV.js +0 -15
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-CpnDSMiL.js +0 -11
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-DePfcsb_.js +0 -13
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-djAsookJ.js +0 -12
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-DriYtYJc.js +0 -18
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-NBwcUtec.js +0 -19
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-CfuxlVXC.js +0 -16
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9yV2bD6.js +0 -15
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-DAN-2Pxg.js +0 -797
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-tnGbTGGj.js +0 -11
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DuleEIYa.js +0 -19
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BxWoMmwC.js +0 -17
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BfeP4Gtl.js +0 -11
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-DQpRqceP.js +0 -11
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-c3S1VKhz.js +0 -15
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-DOLq2HfK.js +0 -18
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BJdoTfEx.js +0 -36
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dm62wxMH.js +0 -112
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DpwnwQCn.js +0 -24
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-CW6Titpm.js +0 -11
- package/build/server/chunks/handler-y94pKJeU.js +0 -1474
- package/build/server/chunks/index.js-DtEa3MAX.js +0 -4296
- package/build/server/chunks/manifest.js-YbFjUaWW.js +0 -969
- package/build/server/chunks/nodes/0.js-DZNO3FEd.js +0 -66
- package/build/server/chunks/nodes/1.js-DeEeQGnw.js +0 -9
- package/build/server/chunks/nodes/10.js-D1WLP-xF.js +0 -65
- package/build/server/chunks/nodes/11.js-Cj41sGC5.js +0 -64
- package/build/server/chunks/nodes/12.js-B-q9Ib1c.js +0 -12
- package/build/server/chunks/nodes/13.js-DsffUOsS.js +0 -9
- package/build/server/chunks/nodes/14.js-Dw1DFPiL.js +0 -9
- package/build/server/chunks/nodes/15.js-Bm993HDL.js +0 -63
- package/build/server/chunks/nodes/16.js-WZ4F89Mr.js +0 -66
- package/build/server/chunks/nodes/17.js-Baq9rNe0.js +0 -64
- package/build/server/chunks/nodes/18.js-C38z45xS.js +0 -65
- package/build/server/chunks/nodes/19.js-DyT8Zd0H.js +0 -64
- package/build/server/chunks/nodes/2.js-jQdD36qI.js +0 -63
- package/build/server/chunks/nodes/20.js-CQbfd52F.js +0 -24
- package/build/server/chunks/nodes/21.js-DW3kIO8q.js +0 -25
- package/build/server/chunks/nodes/22.js-ksQVgjBb.js +0 -9
- package/build/server/chunks/nodes/23.js-BFPu5J7m.js +0 -25
- package/build/server/chunks/nodes/24.js-BKj-MVrY.js +0 -63
- package/build/server/chunks/nodes/26.js-DxNHajUJ.js +0 -64
- package/build/server/chunks/nodes/27.js-mHDM5fgE.js +0 -63
- package/build/server/chunks/nodes/28.js-DTwh097W.js +0 -25
- package/build/server/chunks/nodes/29.js-CBmut8fC.js +0 -63
- package/build/server/chunks/nodes/3.js-DXVw6q6d.js +0 -9
- package/build/server/chunks/nodes/30.js-CbXBXcvy.js +0 -24
- package/build/server/chunks/nodes/31.js-WDuQi73D.js +0 -22
- package/build/server/chunks/nodes/32.js-T4n52_nY.js +0 -63
- package/build/server/chunks/nodes/33.js-BhdoH31z.js +0 -66
- package/build/server/chunks/nodes/34.js-BdxLdp7H.js +0 -65
- package/build/server/chunks/nodes/35.js-kSAwfGyD.js +0 -26
- package/build/server/chunks/nodes/36.js-DnyJGfb-.js +0 -65
- package/build/server/chunks/nodes/37.js-XUg9jSCl.js +0 -67
- package/build/server/chunks/nodes/38.js-BSf8dpSf.js +0 -64
- package/build/server/chunks/nodes/39.js-CzeMaVfA.js +0 -64
- package/build/server/chunks/nodes/4.js-DsmciaDg.js +0 -64
- package/build/server/chunks/nodes/40.js-BB-3VTMf.js +0 -63
- package/build/server/chunks/nodes/5.js-CQfxR-6j.js +0 -63
- package/build/server/chunks/nodes/7.js-VphzedHf.js +0 -63
- package/build/server/chunks/nodes/8.js-knfTDQmu.js +0 -14
- package/build/server/chunks/nodes/9.js-B_uu7boa.js +0 -63
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{h as C,g,u as rt,p as et,y as j,f as V,q as $,a as W,b as nt,i as N,j as It,m as E,s as Tt,c as Nt,ag as Ue,e as ft,r as ht,n as wn,A as vn,t as yn}from"./CEfkcOME.js";import{s as X}from"./s1S1BAXN.js";import{i as pt}from"./D4ikcNuh.js";import{j as Dt}from"./BMjXQSgN.js";import{p as O,s as kt,r as St}from"./D42BPZCD.js";import{i as xn,C as qt,s as it,j as bn,b as F,k as Mt,u as Xe,l as On,n as Pn,o as An,w as Bt,p as Sn,m as Ot,F as Cn,S as Fe,E as En,q as Fn,T as Tn,r as Dn,t as gt,v as Te,x as _n,y as Rt,z as In,A as Mn,B as qe,G as kn,H as Bn,I as Wn,J as Ln,c as Ze,K as yt,P as Nn,f as Hn,e as Rn,g as zn,a as Vn,h as Kn}from"./DRPGxn7H.js";import{o as jn}from"./B42VotjV.js";import{c as Yn,o as Ft,d as Un,s as Xn,a as ee,e as qn}from"./CPPNfCxh.js";import{P as Zn}from"./D8swcNrI.js";import{e as Je}from"./CWvJbYTn.js";import{a as Jn}from"./Cl68Rk3P.js";import{c as vt}from"./CGbw525c.js";import{X as Gn}from"./C6E-ekUK.js";function Qn(e){return typeof e=="function"}function De(e){return Qn(e)?e():e}class $n{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=C(()=>(g(this.#n)?.(),this.getSize().width));#a=C(()=>(g(this.#n)?.(),this.getSize().height));#n=C(()=>{const t=De(this.#r);if(t)return Yn(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,d)=>Math.max(l,d.inlineSize),0),this.#t.height=a.reduce((l,d)=>Math.max(l,d.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??xn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=De(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),d=n-i-a,h=o-s-l;return{width:d,height:h}}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 fe=new qt("Floating.Root"),he=new qt("Floating.Root");class zt{static create(t=!1){return t?he.set(new zt):fe.set(new zt)}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 Vt{static create(t,n=!1){return n?new Vt(t,he.get()):new Vt(t,fe.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=bn(t.virtualEl.current):n.triggerNode=t.ref}}function to(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);zt.create(n());var o=j(),r=V(o);X(r,()=>t.children??$),W(e,o),nt()}function ut(e){return typeof e=="function"?e():e}function Ge(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _e(e,t){const n=Ge(e);return Math.round(t*n)/n}function Ie(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 eo(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Vt.create({id:F(()=>t.id),virtualEl:F(()=>t.virtualEl),ref:t.ref},n());var o=j(),r=V(o);X(r,()=>t.children??$),W(e,o),nt()}const no=["top","right","bottom","left"],st=Math.min,G=Math.max,Kt=Math.round,Ht=Math.floor,Q=e=>({x:e,y:e}),oo={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e,t,n){return G(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function ge(e){return e==="x"?"y":"x"}function pe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function me(e){return ge(q(e))}function ro(e,t,n){n===void 0&&(n=!1);const o=Ct(e),r=me(e),i=pe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=jt(s)),[s,jt(s)]}function io(e){const t=jt(e);return[le(e),t,le(t)]}function le(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Me=["left","right"],ke=["right","left"],so=["top","bottom"],ao=["bottom","top"];function lo(e,t,n){switch(e){case"top":case"bottom":return n?t?ke:Me:t?Me:ke;case"left":case"right":return t?so:ao;default:return[]}}function co(e,t,n,o){const r=Ct(e);let i=lo(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(le)))),i}function jt(e){const t=at(e);return oo[t]+e.slice(t.length)}function uo(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 $e(e){return typeof e!="number"?uo(e):{top:e,right:e,bottom:e,left:e}}function Yt(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 Be(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=me(t),a=pe(s),l=at(t),d=i==="y",h=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,u=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:h,y:o.y-r.height};break;case"bottom":c={x:h,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:p};break;case"left":c={x:o.x-r.width,y:p};break;default:c={x:o.x,y:o.y}}const f=Ct(t);return f&&(c[s]+=u*(f==="end"?1:-1)*(n&&d?-1:1)),c}async function fo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:u=!1,padding:c=0}=tt(t,e),f=$e(c),w=a[u?p==="floating"?"reference":"floating":p],v=Yt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:l})),P=p==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},A=Yt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:x,strategy:l}):P);return{top:(v.top-A.top+f.top)/b.y,bottom:(A.bottom-v.bottom+f.bottom)/b.y,left:(v.left-A.left+f.left)/b.x,right:(A.right-v.right+f.right)/b.x}}const ho=50,go=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:fo},l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:p}=Be(d,o,l),u=o,c=0;const f={};for(let m=0;m<i.length;m++){const w=i[m];if(!w)continue;const{name:v,fn:P}=w,{x,y:b,data:A,reset:y}=await P({x:h,y:p,initialPlacement:o,placement:u,strategy:r,middlewareData:f,rects:d,platform:a,elements:{reference:e,floating:t}});h=x??h,p=b??p,f[v]={...f[v],...A},y&&c<ho&&(c++,typeof y=="object"&&(y.placement&&(u=y.placement),y.rects&&(d=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:h,y:p}=Be(d,u,l)),m=-1)}return{x:h,y:p,placement:u,strategy:r,middlewareData:f}},po=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:d,padding:h=0}=tt(e,t)||{};if(d==null)return{};const p=$e(h),u={x:n,y:o},c=me(r),f=pe(c),m=await s.getDimensions(d),w=c==="y",v=w?"top":"left",P=w?"bottom":"right",x=w?"clientHeight":"clientWidth",b=i.reference[f]+i.reference[c]-u[c]-i.floating[f],A=u[c]-i.reference[c],y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let S=y?y[x]:0;(!S||!await(s.isElement==null?void 0:s.isElement(y)))&&(S=a.floating[x]||i.floating[f]);const _=b/2-A/2,L=S/2-m[f]/2-1,I=st(p[v],L),R=st(p[P],L),H=S-m[f]-R,M=S/2-m[f]/2+_,D=Qe(I,M,H),K=!l.arrow&&Ct(r)!=null&&M!==D&&i.reference[f]/2-(M<I?I:R)-m[f]/2<0,z=K?M<I?M-I:M-H:0;return{[c]:u[c]+z,data:{[c]:D,centerOffset:M-D-z,...K&&{alignmentOffset:z}},reset:K}}}),mo=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:d}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:u,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...w}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=at(r),P=q(a),x=at(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=u||(x||!m?[jt(a)]:io(a)),y=f!=="none";!u&&y&&A.push(...co(a,m,f,b));const S=[a,...A],_=await l.detectOverflow(t,w),L=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&L.push(_[v]),p){const D=ro(r,s,b);L.push(_[D[0]],_[D[1]])}if(I=[...I,{placement:r,overflows:L}],!L.every(D=>D<=0)){var R,H;const D=(((R=i.flip)==null?void 0:R.index)||0)+1,K=S[D];if(K&&(!(p==="alignment"?P!==q(K):!1)||I.every(T=>q(T.placement)===P?T.overflows[0]>0:!0)))return{data:{index:D,overflows:I},reset:{placement:K}};let z=(H=I.filter(B=>B.overflows[0]<=0).sort((B,T)=>B.overflows[1]-T.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var M;const B=(M=I.filter(T=>{if(y){const k=q(T.placement);return k===P||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:M[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function We(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Le(e){return no.some(t=>e[t]>=0)}const wo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=We(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Le(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=We(s,n.floating);return{data:{escapedOffsets:a,escaped:Le(a)}}}default:return{}}}}},tn=new Set(["left","top"]);async function vo(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=Ct(n),l=q(n)==="y",d=tn.has(s)?-1:1,h=i&&l?-1:1,p=tt(t,e);let{mainAxis:u,crossAxis:c,alignmentAxis:f}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof f=="number"&&(c=a==="end"?f*-1:f),l?{x:c*h,y:u*d}:{x:u*d,y:c*h}}const yo=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 vo(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}}}}},xo=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:P=>{let{x,y:b}=P;return{x,y:b}}},...d}=tt(e,t),h={x:n,y:o},p=await i.detectOverflow(t,d),u=q(r),c=ge(u);let f=h[c],m=h[u];const w=(P,x)=>Qe(x+p[P==="y"?"top":"left"],x,x-p[P==="y"?"bottom":"right"]);s&&(f=w(c,f)),a&&(m=w(u,m));const v=l.fn({...t,[c]:f,[u]:m});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[c]:s,[u]:a}}}}}},bo=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:d=0,mainAxis:h=!0,crossAxis:p=!0}=tt(e,t),u={x:r,y:i},c=q(s),f=ge(c);let m=u[f],w=u[c];const v=tt(d,t),P=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(n=v.mainAxis)!=null?n:0,crossAxis:(o=v.crossAxis)!=null?o:0};if(h){const A=f==="y"?"height":"width",y=a.reference[f]-a.floating[A]+P.mainAxis,S=a.reference[f]+a.reference[A]-P.mainAxis;m<y?m=y:m>S&&(m=S)}if(p){var x,b;const A=f==="y"?"width":"height",y=tn.has(at(s)),S=a.reference[c]-a.floating[A]+(y&&((x=l.offset)==null?void 0:x[c])||0)+(y?0:P.crossAxis),_=a.reference[c]+a.reference[A]+(y?0:((b=l.offset)==null?void 0:b[c])||0)-(y?P.crossAxis:0);w<S?w=S:w>_&&(w=_)}return{[f]:m,[c]:w}}}},Oo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),d=at(n),h=Ct(n),p=q(n)==="y",{width:u,height:c}=o.floating;let f,m;d==="top"||d==="bottom"?(f=d,m=h===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=d,f=h==="end"?"top":"bottom");const w=c-l.top-l.bottom,v=u-l.left-l.right,P=st(c-l[f],w),x=st(u-l[m],v),b=t.middlewareData.shift,A=!b;let y=P,S=x;b!=null&&b.enabled.x&&(S=v),b!=null&&b.enabled.y&&(y=w),A&&!h&&(p?S=u-2*G(l.left,l.right):y=c-2*G(l.top,l.bottom)),await s({...t,availableWidth:S,availableHeight:y});const _=await r.getDimensions(i.floating);return u!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function Et(e){return en(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(en(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function en(e){return Zt()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Zt()?e instanceof Element||e instanceof U(e).Element:!1}function ct(e){return Zt()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Ne(e){return!Zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function Jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Po(e){return/^(table|td|th)$/.test(Et(e))}function Gt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ao=/transform|translate|scale|rotate|perspective|filter/,So=/paint|layout|strict|content/,dt=e=>!!e&&e!=="none";let ne;function we(e){const t=Z(e)?J(e):e;return dt(t.transform)||dt(t.translate)||dt(t.scale)||dt(t.rotate)||dt(t.perspective)||!ve()&&(dt(t.backdropFilter)||dt(t.filter))||Ao.test(t.willChange||"")||So.test(t.contain||"")}function Co(e){let t=mt(e);for(;ct(t)&&!Wt(t);){if(we(t))return t;if(Gt(t))return null;t=mt(t)}return null}function ve(){return ne==null&&(ne=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ne}function Wt(e){return/^(html|body|#document)$/.test(Et(e))}function J(e){return U(e).getComputedStyle(e)}function Qt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mt(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ne(e)&&e.host||ot(e);return Ne(t)?t.host:t}function nn(e){const t=mt(e);return Wt(t)?(e.ownerDocument||e).body:ct(t)&&Jt(t)?t:nn(t)}function Lt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=nn(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=ce(s);return t.concat(s,s.visualViewport||[],Jt(r)?r:[],a&&n?Lt(a):[])}else return t.concat(r,Lt(r,[],n))}function ce(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function on(e){const t=J(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ct(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=Kt(n)!==i||Kt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function ye(e){return Z(e)?e:e.contextElement}function Pt(e){const t=ye(e);if(!ct(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=on(t);let s=(i?Kt(n.width):n.width)/o,a=(i?Kt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Eo=Q(0);function rn(e){const t=U(e);return!ve()||!t.visualViewport?Eo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function wt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=ye(e);let s=Q(1);t&&(o?Z(o)&&(s=Pt(o)):s=Pt(e));const a=Fo(i,n,o)?rn(i):Q(0);let l=(r.left+a.x)/s.x,d=(r.top+a.y)/s.y,h=r.width/s.x,p=r.height/s.y;if(i&&o){const u=U(i),c=Z(o)?U(o):o;let f=u,m=ce(f);for(;m&&c!==f;){const w=Pt(m),v=m.getBoundingClientRect(),P=J(m),x=v.left+(m.clientLeft+parseFloat(P.paddingLeft))*w.x,b=v.top+(m.clientTop+parseFloat(P.paddingTop))*w.y;l*=w.x,d*=w.y,h*=w.x,p*=w.y,l+=x,d+=b,f=U(m),m=ce(f)}}return Yt({width:h,height:p,x:l,y:d})}function $t(e,t){const n=Qt(e).scrollLeft;return t?t.left+n:wt(ot(e)).left+n}function sn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-$t(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function To(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?Gt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},d=Q(1);const h=Q(0),p=ct(o);if((p||!i)&&((Et(o)!=="body"||Jt(s))&&(l=Qt(o)),p)){const c=wt(o);d=Pt(o),h.x=c.x+o.clientLeft,h.y=c.y+o.clientTop}const u=s&&!p&&!i?sn(s,l):Q(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+u.x,y:n.y*d.y-l.scrollTop*d.y+h.y+u.y}}function Do(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function _o(e){const t=Qt(e),n=e.ownerDocument.body,o=G(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=G(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+$t(e);const s=-t.scrollTop;return J(n).direction==="rtl"&&(i+=G(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Io=25;function Mo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,d=0,h=0;if(s){const u=!ve()||t==="fixed";o?u||(d=-s.offsetLeft,h=-s.offsetTop):(a=s.width,l=s.height,u&&(d=s.offsetLeft,h=s.offsetTop))}if($t(i)<=0){const u=i.ownerDocument,c=u.body,f=getComputedStyle(c),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,w=Math.abs(i.clientWidth-c.clientWidth-m),v=getComputedStyle(i).scrollbarGutter==="stable both-edges"?w/2:w;v<=Io&&(a-=v)}return{width:a,height:l,x:d,y:h}}function ko(e,t){const n=wt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Pt(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,d=o*i.y;return{width:s,height:a,x:l,y:d}}function He(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Mo(e,n,t);else if(t==="document")o=_o(ot(e));else if(Z(t))o=ko(t,n);else{const r=rn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Yt(o)}function Bo(e,t){const n=t.get(e);if(n)return n;let o=Lt(e,[],!1).filter(a=>Z(a)&&Et(a)!=="body"),r=null;const i=J(e).position==="fixed";let s=i?mt(e):e;for(;Z(s)&&!Wt(s);){const a=J(s),l=we(s),d=r?r.position:i?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?o=o.filter(p=>p!==s):r=a,s=mt(s)}return t.set(e,o),o}function Wo(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Gt(t)?[]:Bo(t,this._c):[].concat(n),o],a=He(t,s[0],r);let l=a.top,d=a.right,h=a.bottom,p=a.left;for(let u=1;u<s.length;u++){const c=He(t,s[u],r);l=G(c.top,l),d=st(c.right,d),h=st(c.bottom,h),p=G(c.left,p)}return{width:d-p,height:h-l,x:p,y:l}}function Lo(e){const{width:t,height:n}=on(e);return{width:t,height:n}}function No(e,t,n){const o=ct(t),r=ot(t),i=n==="fixed",s=wt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Et(t)!=="body"||Jt(r))&&(a=Qt(t)),o)){const u=wt(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}!o&&r&&(l.x=$t(r));const d=r&&!o&&!i?sn(r,a):Q(0),h=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function oe(e){return J(e).position==="static"}function Re(e,t){if(!ct(e)||J(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function an(e,t){const n=U(e);if(Gt(e))return n;if(!ct(e)){let r=mt(e);for(;r&&!Wt(r);){if(Z(r)&&!oe(r))return r;r=mt(r)}return n}let o=Re(e,t);for(;o&&Po(o)&&oe(o);)o=Re(o,t);return o&&Wt(o)&&oe(o)&&!we(o)?n:o||Co(e)||n}const Ho=async function(e){const t=this.getOffsetParent||an,n=this.getDimensions,o=await n(e.floating);return{reference:No(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ro(e){return J(e).direction==="rtl"}const zo={convertOffsetParentRelativeRectToViewportRelativeRect:To,getDocumentElement:ot,getClippingRect:Wo,getOffsetParent:an,getElementRects:Ho,getClientRects:Do,getDimensions:Lo,getScale:Pt,isElement:Z,isRTL:Ro};function ln(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vo(e,t,n){let o=null,r;const i=ot(e);function s(){var h;clearTimeout(r),(h=o)==null||h.disconnect(),o=null}function a(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),s();const u=e.getBoundingClientRect(),{left:c,top:f,width:m,height:w}=u;if(h||t(),!m||!w)return;const v=Ht(f),P=Ht(i.clientWidth-(c+m)),x=Ht(i.clientHeight-(f+w)),b=Ht(c),y={rootMargin:-v+"px "+-P+"px "+-x+"px "+-b+"px",threshold:G(0,st(1,p))||1};let S=!0;function _(L){const I=L[0].intersectionRatio;if(!ln(u,e.getBoundingClientRect()))return a();if(I!==p){if(!S)return a();I?a(!1,I):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S=!1}try{o=new IntersectionObserver(_,{...y,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,y)}o.observe(e)}const l=U(e),d=()=>a(n);return l.addEventListener("resize",d),a(!0),()=>{l.removeEventListener("resize",d),s()}}function Ko(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,d=ye(e),h=r||i?[...d?Lt(d):[],...t?Lt(t):[]]:[];h.forEach(v=>{r&&v.addEventListener("scroll",n),i&&v.addEventListener("resize",n)});const p=d&&a?Vo(d,n,i):null;let u=-1,c=null;s&&(c=new ResizeObserver(v=>{let[P]=v;P&&P.target===d&&c&&t&&(c.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var x;(x=c)==null||x.observe(t)})),n()}),d&&!l&&c.observe(d),t&&c.observe(t));let f,m=l?wt(e):null;l&&w();function w(){const v=wt(e);m&&!ln(m,v)&&n(),m=v,f=requestAnimationFrame(w)}return n(),()=>{var v;h.forEach(P=>{r&&P.removeEventListener("scroll",n),i&&P.removeEventListener("resize",n)}),p?.(),(v=c)==null||v.disconnect(),c=null,l&&cancelAnimationFrame(f)}}const jo=yo,Yo=xo,Uo=mo,Xo=Oo,qo=wo,Zo=po,Jo=bo,Go=(e,t,n)=>{const o=new Map,r=n??{},i={...zo,...r.platform,_c:o};return go(e,t,{...r,platform:i})};function Qo(e){const t=e.whileElementsMounted,n=C(()=>ut(e.open)??!0),o=C(()=>ut(e.middleware)),r=C(()=>ut(e.transform)??!0),i=C(()=>ut(e.placement)??"bottom"),s=C(()=>ut(e.strategy)??"absolute"),a=C(()=>ut(e.sideOffset)??0),l=C(()=>ut(e.alignOffset)??0),d=e.reference;let h=N(0),p=N(0);const u=it(null);let c=N(It(g(s))),f=N(It(g(i))),m=N(It({})),w=N(!1),v=!1,P=0,x=!1;const b=C(()=>{const R=u.current?_e(u.current,g(h)):g(h),H=u.current?_e(u.current,g(p)):g(p);return g(r)?{position:g(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...u.current&&Ge(u.current)>=1.5&&{willChange:"transform"}}:{position:g(c),left:`${R}px`,top:`${H}px`}});let A;function y(){if(x||d.current===null||u.current===null)return;const R=d.current,H=u.current,M=++P;Go(R,H,{middleware:g(o),placement:g(i),strategy:g(s)}).then(D=>{if(M!==P||d.current!==R||u.current!==H)return;if($o(R)){E(m,{...g(m),hide:{...g(m).hide,referenceHidden:!0}},!0);return}if(!g(n)&&g(h)!==0&&g(p)!==0){const z=Math.max(Math.abs(g(a)),Math.abs(g(l)),15);if(D.x<=z&&D.y<=z)return}E(h,D.x,!0),E(p,D.y,!0),E(c,D.strategy,!0),E(f,D.placement,!0),E(m,D.middlewareData,!0),E(w,!0)})}function S(){typeof A=="function"&&(A(),A=void 0),P++}function _(){if(S(),t===void 0){y();return}g(n)&&(d.current===null||u.current===null||(A=t(d.current,u.current,y)))}function L(){!g(n)&&u.current===null&&E(w,!1)}function I(){return[g(o),g(i),g(s),g(a),g(l),g(n)]}return rt(()=>{t===void 0&&g(n)&&y()}),rt(_),rt(()=>{if(t!==void 0){if(I(),!g(n)){v=!1;return}if(!g(w)){v=!1;return}if(!v){v=!0;return}y()}}),rt(L),rt(()=>()=>{x=!0,S()}),{floating:u,reference:d,get strategy(){return g(c)},get placement(){return g(f)},get middlewareData(){return g(m)},get isPositioned(){return g(w)},get floatingStyles(){return g(b)},get update(){return y}}}function $o(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const tr={top:"bottom",right:"left",bottom:"top",left:"right"},ue=new qt("Floating.Content");class Ut{static create(t,n=!1){return n?ue.set(new Ut(t,he.get())):ue.set(new Ut(t,fe.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Mt(this.contentRef);wrapperAttachment=Mt(this.wrapperRef);arrowAttachment=Mt(this.arrowRef);arrowId=it(Xe());#t=C(()=>{if(typeof this.opts.style=="string")return On(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new $n(()=>this.arrowRef.current??void 0);#r=C(()=>this.#i?.width??0);#e=C(()=>this.#i?.height??0);#s=C(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=C(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=C(()=>g(this.#a).length>0);get hasExplicitBoundaries(){return g(this.#n)}set hasExplicitBoundaries(t){E(this.#n,t)}#l=C(()=>({padding:this.opts.collisionPadding.current,boundary:g(this.#a).filter(Pn),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return g(this.#l)}set detectOverflowOptions(t){E(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=C(()=>[jo({mainAxis:this.opts.sideOffset.current+g(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Yo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Jo():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Uo({...this.detectOverflowOptions}),Xo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;E(this.#c,n,!0),E(this.#d,o,!0),E(this.#f,r,!0),E(this.#g,i,!0)}}),this.arrowRef.current&&Zo({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),er({arrowWidth:g(this.#r),arrowHeight:g(this.#e)}),this.opts.hideWhenDetached.current&&qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return g(this.#p)}set middleware(t){E(this.#p,t)}floating;#u=C(()=>nr(this.floating.placement));get placedSide(){return g(this.#u)}set placedSide(t){E(this.#u,t)}#h=C(()=>or(this.floating.placement));get placedAlign(){return g(this.#h)}set placedAlign(t){E(this.#h,t)}#m=C(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return g(this.#m)}set arrowX(t){E(this.#m,t)}#w=C(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return g(this.#w)}set arrowY(t){E(this.#w,t)}#v=C(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return g(this.#v)}set cannotCenterArrow(t){E(this.#v,t)}#y=N();get contentZIndex(){return g(this.#y)}set contentZIndex(t){E(this.#y,t,!0)}#x=C(()=>tr[this.placedSide]);get arrowBaseSide(){return g(this.#x)}set arrowBaseSide(t){E(this.#x,t)}#b=C(()=>({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){E(this.#b,t)}#O=C(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:An({...g(this.#t)}),...this.contentAttachment}));get props(){return g(this.#O)}set props(t){E(this.#O,t)}#P=C(()=>({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){E(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),Bt(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=Qo({strategy:()=>this.opts.strategy.current,placement:()=>g(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>Ko(...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()}),Bt(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=Sn(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 cn{static create(t){return new cn(t,ue.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=C(()=>({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){E(this.#t,t)}}function er(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,[d,h]=xe(n),p={start:"0%",center:"50%",end:"100%"}[h],u=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let f="",m="";return d==="bottom"?(f=s?p:`${u}px`,m=`${-l}px`):d==="top"?(f=s?p:`${u}px`,m=`${o.floating.height+l}px`):d==="right"?(f=`${-l}px`,m=s?p:`${c}px`):d==="left"&&(f=`${o.floating.width+l}px`,m=s?p:`${c}px`),{data:{x:f,y:m}}}}}function xe(e){const[t,n="center"]=e.split("-");return[t,n]}function nr(e){return xe(e)[0]}function or(e){return xe(e)[1]}function rr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),d=O(t,"collisionPadding",3,0),h=O(t,"hideWhenDetached",3,!1),p=O(t,"onPlaced",3,()=>{}),u=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),f=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),w=O(t,"style",19,()=>({})),v=O(t,"wrapperId",19,Xe),P=O(t,"customAnchor",3,null),x=O(t,"tooltip",3,!1);const b=Ut.create({side:F(()=>n()),sideOffset:F(()=>o()),align:F(()=>r()),alignOffset:F(()=>i()),id:F(()=>t.id),arrowPadding:F(()=>s()),avoidCollisions:F(()=>a()),collisionBoundary:F(()=>l()),collisionPadding:F(()=>d()),hideWhenDetached:F(()=>h()),onPlaced:F(()=>p()),sticky:F(()=>u()),updatePositionStrategy:F(()=>c()),strategy:F(()=>f()),dir:F(()=>m()),style:F(()=>w()),enabled:F(()=>t.enabled),wrapperId:F(()=>v()),customAnchor:F(()=>P())},x()),A=C(()=>Ot(b.wrapperProps,{style:{pointerEvents:"auto"}}));var y=j(),S=V(y);X(S,()=>t.content??$,()=>({props:b.props,wrapperProps:g(A)})),W(e,y),nt()}function ir(e,t){et(t,!0),jn(()=>{t.onPlaced?.()});var n=j(),o=V(n);X(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var sr=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function ar(e,t){let n=O(t,"isStatic",3,!1),o=St(t,sr);var r=j(),i=V(r);{var s=l=>{ir(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{rr(l,kt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};pt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var lr=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"]),cr=Nt("<!> <!>",1);function un(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),d=St(t,lr);const h=C(()=>t.preventScroll??!0),p=C(()=>t.strategy??(g(h)?"fixed":"absolute"));ar(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(p)},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,f)=>{let m=()=>(f?.()).props,w=()=>(f?.()).wrapperProps;var v=cr(),P=V(v);{var x=y=>{Fe(y,{get preventScroll(){return g(h)}})},b=y=>{Fe(y,{get preventScroll(){return g(h)}})};pt(P,y=>{t.forceMount&&t.enabled?y(x):t.forceMount||y(b,1)})}var A=Tt(P,2);Cn(A,{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:(S,_)=>{let L=()=>(_?.()).props;En(S,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,R)=>{Fn(I,{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:(M,D)=>{let K=()=>(D?.()).props;Tn(M,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var T=j(),k=V(T);{let Y=C(()=>({props:Ot(d,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:w()}));X(k,()=>t.popper??$,()=>g(Y))}W(z,T)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,v)},$$slots:{content:!0}}),nt()}var ur=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 dr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=St(t,ur);var l=j(),d=V(l);{var h=p=>{un(p,kt({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))};pt(d,p=>{t.shouldRender&&p(h)})}W(e,l)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function hr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=St(t,fr);un(e,kt({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 re(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,d]=t[s]??[0,0],[h,p]=t[a]??[0,0];d>=o!=p>=o&&n<=(h-l)*(o-d)/(p-d)+l&&(r=!r)}return r}function ie(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function ze(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 gr{#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,Bt([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=Dn(o),a=u=>{this.#p([u.clientX,u.clientY],o,r)},l=u=>{const c=u.relatedTarget;if(gt(c)&&r.contains(c))return;const f=this.#t.ignoredTargets?.()??[];gt(c)&&f.some(m=>m===c||m.contains(c))||(this.#s=gt(c)&&f.length>0?f.filter(m=>c.contains(m)):[],this.#r=[u.clientX,u.clientY],this.#e="content",this.#d())},d=()=>{this.#u()},h=()=>{this.#u()},p=u=>{const c=u.relatedTarget;gt(c)&&o.contains(c)||(this.#r=[u.clientX,u.clientY],this.#e="trigger",this.#d())};return[Ft(s,"pointermove",a),Ft(o,"pointerleave",l),Ft(o,"pointerenter",d),Ft(r,"pointerenter",h),Ft(r,"pointerleave",p)].reduce((u,c)=>()=>{u(),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"&&ie(t,i)){this.#u();return}if(this.#e==="trigger"&&ie(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const h of this.#s){const p=h.getBoundingClientRect();if(ie(t,p))return;const u=ze(r,p),c=this.#h(r,p,u);if(c&&re(t,c))return}const s=ze(r,i),a=this.#h(r,i,s);if(a&&re(t,a))return;const l=this.#e==="content"?i:r,d=this.#m(this.#r,l,s,this.#e);re(t,d)||(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 de=Ln({component:"popover",parts:["root","trigger","content","close","overlay"]}),be=new qt("Popover.Root");class Oe{static create(t){return be.set(new Oe(t))}opts;#t=N(null);get contentNode(){return g(this.#t)}set contentNode(t){E(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return g(this.#o)}set triggerNode(t){E(this.#o,t,!0)}#i=N(null);get overlayNode(){return g(this.#i)}set overlayNode(t){E(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return g(this.#r)}set openedViaHover(t){E(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return g(this.#e)}set hasInteractedWithContent(t){E(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return g(this.#s)}set hoverCooldown(t){E(this.#s,t,!0)}#a=N(0);get closeDelay(){return g(this.#a)}set closeDelay(t){E(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Te({ref:F(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Te({ref:F(()=>this.overlayNode),open:this.opts.open}),Bt(()=>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 Pe{static create(t){return new Pe(t,be.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Mt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new _n(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),Bt(()=>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||Rt(t)||(E(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&&(Rt(t)||(E(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===In||t.key===Mn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=C(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":kn(this.root.opts.open.current),"data-state":qe(this.root.opts.open.current),"aria-controls":this.#a(),[de.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){E(this.#n,t)}}class Ae{static create(t){return new Ae(t,be.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Mt(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 gr({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;gt(n)&&Bn(n)&&this.root.markInteraction()}onpointerenter(t){Rt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Rt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!gt(t.target))return;const n=t.target.closest(de.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(gt(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=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#t)}set snippetProps(t){E(this.#t,t)}#o=C(()=>({id:this.opts.id.current,tabindex:-1,"data-state":qe(this.root.opts.open.current),...Wn(this.root.contentPresence.transitionStatus),[de.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){E(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var pr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),Ve=Nt("<div><div><!></div></div>");function wi(e,t){const n=Ue();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ze(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,yt),a=O(t,"onCloseAutoFocus",3,yt),l=O(t,"onEscapeKeydown",3,yt),d=O(t,"onInteractOutside",3,yt),h=O(t,"trapFocus",3,!0),p=O(t,"preventScroll",3,!1),u=O(t,"customAnchor",3,null),c=St(t,pr);const f=Ae.create({id:F(()=>r()),ref:F(()=>o(),y=>o(y)),onInteractOutside:F(()=>d()),onEscapeKeydown:F(()=>l()),customAnchor:F(()=>u())}),m=C(()=>Ot(c,f.props)),w=C(()=>h()&&f.shouldTrapFocus);function v(y){f.shouldTrapFocus||y.preventDefault(),s()(y)}var P=j(),x=V(P);{var b=y=>{hr(y,kt(()=>g(m),()=>f.popperProps,{get ref(){return f.opts.ref},get enabled(){return f.root.opts.open.current},get id(){return r()},get trapFocus(){return g(w)},get preventScroll(){return p()},loop:!0,forceMount:!0,get customAnchor(){return u()},onOpenAutoFocus:v,get onCloseAutoFocus(){return a()},get shouldRender(){return f.shouldRender},popper:(_,L)=>{let I=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=C(()=>Ot(I(),{style:Ie("popover")},{style:t.style}));var M=j(),D=V(M);{var K=B=>{var T=j(),k=V(T);{let Y=C(()=>({props:g(H),wrapperProps:R(),...f.snippetProps}));X(k,()=>t.child,()=>g(Y))}W(B,T)},z=B=>{var T=Ve();Dt(T,()=>({...R()}));var k=ft(T);Dt(k,()=>({...g(H)}));var Y=ft(k);X(Y,()=>t.children??$),ht(k),ht(T),W(B,T)};pt(D,B=>{t.child?B(K):B(z,-1)})}W(_,M)},$$slots:{popper:!0}}))},A=y=>{dr(y,kt(()=>g(m),()=>f.popperProps,{get ref(){return f.opts.ref},get open(){return f.root.opts.open.current},get id(){return r()},get trapFocus(){return g(w)},get preventScroll(){return p()},loop:!0,forceMount:!1,get customAnchor(){return u()},onOpenAutoFocus:v,get onCloseAutoFocus(){return a()},get shouldRender(){return f.shouldRender},popper:(_,L)=>{let I=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=C(()=>Ot(I(),{style:Ie("popover")},{style:t.style}));var M=j(),D=V(M);{var K=B=>{var T=j(),k=V(T);{let Y=C(()=>({props:g(H),wrapperProps:R(),...f.snippetProps}));X(k,()=>t.child,()=>g(Y))}W(B,T)},z=B=>{var T=Ve();Dt(T,()=>({...R()}));var k=ft(T);Dt(k,()=>({...g(H)}));var Y=ft(k);X(Y,()=>t.children??$),ht(k),ht(T),W(B,T)};pt(D,B=>{t.child?B(K):B(z,-1)})}W(_,M)},$$slots:{popper:!0}}))};pt(x,y=>{i()?y(b):i()||y(A,1)})}W(e,P),nt()}var mr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),wr=Nt("<button><!></button>");function vi(e,t){const n=Ue();et(t,!0);let o=O(t,"id",19,()=>Ze(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),d=O(t,"closeDelay",3,300),h=St(t,mr);const p=Pe.create({id:F(()=>o()),ref:F(()=>r(),c=>r(c)),disabled:F(()=>!!s()),openOnHover:F(()=>a()),openDelay:F(()=>l()),closeDelay:F(()=>d())}),u=C(()=>Ot(h,p.props,{type:i()}));eo(e,{get id(){return o()},get ref(){return p.opts.ref},children:(c,f)=>{var m=j(),w=V(m);{var v=x=>{var b=j(),A=V(b);X(A,()=>t.child,()=>({props:g(u)})),W(x,b)},P=x=>{var b=wr();Dt(b,()=>({...g(u)}));var A=ft(b);X(A,()=>t.children??$),ht(b),W(x,b)};pt(w,x=>{t.child?x(v):x(P,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function yi(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,yt),r=O(t,"onOpenChangeComplete",3,yt);Oe.create({open:F(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:F(()=>r())}),to(e,{children:(i,s)=>{var a=j(),l=V(a);X(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}const vr=6;function yr(e,t){return t.needsYou-e.needsYou||t.underWay-e.underWay||(t.lastActivity??0)-(e.lastActivity??0)||t.queued-e.queued}function xi(e,t,n){const o=new Map(e.map(r=>[r.id,[]]));for(const r of t)o.get(r.projectId)?.push(r);return new Map(e.map(r=>[r.id,Jn(o.get(r.id)??[],n)]))}const Xt=(e,t)=>e.name.localeCompare(t.name,void 0,{sensitivity:"base"});function bi(e,t,n){const o=n.limit??vr,r=new Set(n.pinned),i=e.filter(u=>r.has(u.id)),s={underWay:0,needsYou:0,landed:0,queued:0,lastActivity:null},a=u=>t.get(u.id)??s,l=e.filter(u=>!r.has(u.id)).toSorted((u,c)=>yr(a(u),a(c))||Xt(u,c)),d=l.slice(0,Math.max(0,o-i.length)),h=n.current?l.find(u=>u.id===n.current):void 0;h&&!d.includes(h)&&d.push(h);const p=new Set(d.map(u=>u.id));return{pinned:i,top:d,rest:l.filter(u=>!p.has(u.id)).toSorted(Xt)}}function Oi(e,t,n=[],o={}){const r=t.trim().toLowerCase();if(!r)return e.toSorted(Xt);const i=new Set(n),s=a=>{const l=[a.name,o[a.id]].filter(Boolean).map(d=>d.toLowerCase());return l.some(d=>d.startsWith(r))?0:l.some(d=>d.split(/[\s\-_.:/]+/).some(h=>h.startsWith(r)))?1:l.some(d=>d.includes(r))||a.id.toLowerCase().includes(r)?2:-1};return e.map(a=>({p:a,r:s(a)})).filter(a=>a.r>=0).toSorted((a,l)=>a.r-l.r||Number(i.has(l.p.id))-Number(i.has(a.p.id))||Xt(a.p,l.p)).map(a=>a.p)}function xr(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?[...new Set(t.filter(n=>typeof n=="string"))]:[]}catch{return[]}}class br{#t=N(It([]));get rows(){return g(this.#t)}set rows(t){E(this.#t,t,!0)}}const Pi=new br,Ai="x-wheelhouse-filename",Si="x-wheelhouse-filetype",Ci=25*1024*1024;function Or(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Ei(e){return`[attached file ${e.path} — ${e.name}, ${Or(e.size)}, ${e.type||"unknown type"}]`}const Pr=/^\[attached file (\/[^\n]*?\/([^/\n]+)) — \2, ([\d.]+) (B|KB|MB), ([^\]\n,]+)\][ \t]*$/gm,Ar={B:1,KB:1024,MB:1024*1024};function Sr(e){const t=[],n=e.replace(Pr,(o,r,i,s,a,l)=>(t.push({path:r,name:i,size:Math.round(Number(s)*Ar[a]),type:l==="unknown type"?"":l}),""));return t.length?{text:n.trim(),files:t}:{text:e,files:t}}const Cr=e=>/^image\/(png|jpeg|gif|webp|avif)$/.test(e);function Fi(e){if(e.type==="application/pdf")return"PDF";if(e.type.startsWith("image/"))return"Image";const t=/\.([A-Za-z0-9]{1,6})$/.exec(e.name)?.[1];return t?t.toUpperCase():e.type.startsWith("text/")?"Text":"File"}function Ti(e){if(!Cr(e.type))return null;const t=/\/uploads\/(\d{4}-\d{2}-\d{2})\/([a-f0-9]{12})\/([^/]+)$/.exec(e.path);return t?`/api/firstmate/uploads/${t[1]}/${t[2]}/${encodeURIComponent(t[3])}`:null}function Di(e,t=new Date){const n=/^image\/(png|jpeg|gif|webp|avif)$/.exec(e)?.[1]?.replace("jpeg","jpg")??"png";return`Pasted image ${t.toISOString().slice(0,19).replace("T"," ").replace(/:/g,".")}.${n}`}const Er=/^\/session\/[A-Za-z0-9_-]+\/?$/;function dn(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&Zn.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Fr(e){return dn(e)&&Er.test(URL.parse(e).pathname)}function Tr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Dr(e,t=null){const n=[];for(const o of Je(Tr(e))){if(!dn(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function At(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ke=2*6e4,_r=3,fn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Se=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(At),Ir=(e,t)=>new RegExp(`${fn(t)}(?![\\w-])`).test(e),_t=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function hn(e,t){if(e.status!=="landed")return!0;const n=_t(e.mergedAt);return n!==null&&t!==null&&t<n}function gn(e,t){const n=Se(t);return Je(e).some(o=>n.includes(At(o)))}function pn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${fn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Ir(e,t.pr.url.replace(/\/+$/,""))}function Mr(e,t){return pn(e,t)||gn(e,t)}function _i(e,t){if(!URL.parse(e))return null;const n=At(e);return t.find(o=>{if(o.status==="landed"||!o.preview)return!1;const r=At(o.preview.url);return n===r||n.startsWith(`${r}/`)})??null}const kr=e=>e.preview?.url??e.board?.url??null;function Br(e,t,n){const o=At(e);return n.some(r=>hn(r,t)&&Se(r).includes(o))}function je(e,t,n){e.set(t,[...e.get(t)??[],n])}function Ii(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=kr(a),d=_t(a.preview?.reportedAt??a.board?.reportedAt),h=a.status==="landed",p=h?_t(a.mergedAt):null;let u=null,c=null,f=null;for(const w of e){if(w.kind!=="turn")continue;const v=_t(w.at);if(d!==null&&(v===null||v<d-Ke))continue;const P=b=>hn(a,v)&&gn(b,a),x=w.parts.find(b=>b.kind==="text"&&(pn(b.text,a)||P(b.text)));if(!(!x||x.kind!=="text")&&(u??=x.id,P(x.text)&&(c=x.id),h&&(p===null||v!==null&&v>=p-Ke))){f=x.id;break}}const m=f??c??u;m&&(je(o,m,{task:a,url:l,board:!a.preview,landed:h}),i.set(m,[...i.get(m)??[],...Se(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=_t(a.at);for(const d of a.parts){if(d.kind!=="text")continue;const h=new Set;let p=0;for(const u of Dr(d.text,n)){const c=URL.parse(u).origin,f=At(u);if(i.get(d.id)?.includes(f)){s.delete(f);continue}h.has(c)||Br(u,l,r)||p>=_r||(h.add(c),p++,s.delete(f),s.set(f,{anchor:d.id,url:u}))}}}for(const{anchor:a,url:l}of s.values())je(o,a,{task:null,url:l,board:Fr(l),landed:!1});return o}function Ye(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Wr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${Ye(e.id)}: ${e.title}]`:`[task ${Ye(e.id)}: ${e.title}]`}function Mi(e){return e.map(t=>typeof t=="string"?t:Wr(t)).join("").replace(/\u00a0/g," ").trim()}function Lr(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 Nr=/\[(?: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 Hr(e){const t=[];let n=0;for(const o of e.matchAll(Nr))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 Rr=140,zr={firstmate:"Firstmate",captain:"my message"};function Ce(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 Hr(t).map(n=>typeof n=="string"?n:Lr(n,60)).join("").replace(/\s+/g," ").trim()}function ki(e,t=Rr){const n=Ce(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 Bi(e,t){const n=t.trim();return n&&`> Replying to ${zr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
2
|
+
|
|
3
|
+
${n}`}const Vr=/^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;function Kr(e){const t=e.replace(/\r\n?/g,`
|
|
4
|
+
`).match(Vr);return!t||!t[3].trim()?{to:null,body:e}:{to:{who:t[1]==="Firstmate"?"firstmate":"captain",snippet:t[2]},body:t[3]}}function Wi(e,t){const n=Ce(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 lt="unsorted",xt=(e,t,n)=>n?{topic:e,task:n,source:t}:{topic:e,source:t},bt={topic:lt,source:null},jr=/^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i,Yr=/^\s{0,3}(`{3,}|~{3,})/;function Ur(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(Yr)?.[1];a&&(!r||a[0]===r[0])&&(r=r?null:a);const l=r?null:s.match(jr);l?(i(),n=l[1]):o.push(s)}return i(),!t.length&&!e.trim()?[]:t.length?t:[{slug:n,text:""}]}const Xr=/^\[project ([^\]\s]+)\][ \u00a0]?/;function Li(e,t,n){return!t||t===lt?e:`[project ${t}${n?`/${n}`:""}] ${e}`}function qr(e){const t=e.indexOf("/");return t>0&&t<e.length-1?{slug:e.slice(0,t),task:e.slice(t+1)}:{slug:e.replace(/\/$/,""),task:null}}function Zr(e){const t=e.match(Xr);return t?{topic:t[1],text:e.slice(t[0].length)}:{topic:null,text:e}}const se=e=>e.trim().toLowerCase().replace(/[^a-z0-9.]+/g,"-").replace(/^-+|-+$/g,"");function Jr(e,t){const n=e.trim().toLowerCase(),o=se(e),r=t.find(i=>i.id.toLowerCase()===n)??t.find(i=>i.name.toLowerCase()===n)??t.find(i=>se(i.id)===o||se(i.name)===o);return r?r.id:o||lt}function Ni(e){const t=e.replace(/[-_]+/g," ").trim();return t?t[0].toUpperCase()+t.slice(1):e}function Gr(e,t,n=null){let o=null,r=null,i=!1;for(const s of t)if(!(!s.projectId||s.projectId==="unassigned")&&!(n&&s.projectId!==n)&&Mr(e,s)){if(o&&o!==s.projectId)return null;o&&(i=!0),o=s.projectId,r=s.id}return o?{project:o,task:i?null:r}:null}function Qr(e,t){const n=Ce(t),o=e.snippet.endsWith("…")?e.snippet.slice(0,-1):e.snippet;return!!o&&!!n&&n.startsWith(o)}const $r=(e,t)=>e?t.find(n=>n.id.toLowerCase()===e.toLowerCase())?.id??e:null;function Hi(e,t,n,o={}){const r=new Map,i=new Map,s=new Map,a=(c,f=null)=>{const m=Gr(c,t,f);return m?xt(m.project,"guess",m.task):null},l=(c,f)=>{const{slug:m,task:w}=qr(c);return xt(Jr(m,n),f,$r(w,t))},d=(c,f)=>{const m=o[c];return m?m===lt?bt:m===f.topic?{...f,source:"you"}:{topic:m,source:"you"}:f},h=[],p=c=>{for(let f=h.length-1;f>=0;f--)if(h[f].who===c.who&&Qr(c,h[f].text))return h[f].tag;return null};let u=null;for(const c of e){if(c.kind==="user"){const{to:w,body:v}=Kr(c.text),P=Zr(v),x=w&&p(w),b=P.topic?l(P.topic,"thread"):x&&x.topic!==lt?xt(x.topic,"reply",x.task):a(P.text)??bt,A=d(c.id,b);r.set(c.id,A),h.push({who:"captain",text:Sr(P.text).text,tag:A}),u=A;continue}if(c.kind!=="turn")continue;let f=null;const m=c.trigger==="captain"&&u?.source?u:null;for(const w of c.parts){if(w.kind!=="text")continue;const v=Ur(w.text),x=v.map((A,y)=>{let S;A.slug?(S=l(A.slug,"marker"),S.task||(S=xt(S.topic,"marker",a(A.text,S.topic)?.task))):f?.source==="marker"?S=f:S=a(A.text)??f??(m&&{...m,source:"guess"})??bt,S.source&&(f=S);const _=y===0&&!A.slug&&v.length>1;return{key:y?`${w.id}#${y}`:w.id,text:A.text,tag:S,intro:_}}).map(A=>({...A,tag:d(A.key,A.tag)}));i.set(w.id,x);const b=x.find(A=>!A.intro);!s.has(c.id)&&b&&s.set(c.id,b.tag),b&&h.push({who:"firstmate",text:x.map(A=>A.text).join(`
|
|
7
|
+
|
|
8
|
+
`),tag:b.tag})}s.has(c.id)||s.set(c.id,d(`turn:${c.id}`,m?{...m,source:"guess"}:bt))}return{users:r,parts:i,turns:s}}function Ri(e,t,n,o={},r=null){const i=o[e];return i===lt?bt:i?i===t?xt(i,"you",r):{topic:i,source:"you"}:t&&t!=="unassigned"?xt(t,n,r):bt}function zi(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===lt)-+(r.topic===lt)||r.last-o.last||o.topic.localeCompare(r.topic))}function Vi(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}const ae="wheelhouse-pinned-projects";class ti{#t=N(It([]));get ids(){return g(this.#t)}set ids(t){E(this.#t,t,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0,this.read();try{window.addEventListener("storage",t=>{t.key===ae&&this.read()})}catch{}}}has(t){return this.ids.includes(t)}toggle(t){this.ids=this.has(t)?this.ids.filter(n=>n!==t):[...this.ids,t];try{localStorage.setItem(ae,JSON.stringify(this.ids))}catch{}}read(){try{this.ids=xr(localStorage.getItem(ae))}catch{this.ids=[]}}}const Ki=new ti;var ei=Nt('<div class="flex h-6 shrink-0 cursor-grab touch-none items-center justify-center" aria-hidden="true"><span class="h-1 w-10 rounded-full bg-muted-foreground/40"></span></div> <div class="flex shrink-0 items-center gap-2 pr-1.5 pl-5"><!> <!></div> <div class="min-h-0 flex-1 overflow-y-auto overscroll-contain"><!></div>',1),ni=Nt("<!> <!>",1);function ji(e,t){et(t,!0);let n=O(t,"open",15,!1),o=N(0),r=null;function i(h){r=h.clientY,h.currentTarget.setPointerCapture(h.pointerId)}function s(h){r!==null&&E(o,Math.max(0,h.clientY-r),!0)}function a(){r!==null&&(r=null,g(o)>80&&n(!1),E(o,0))}var l=j(),d=V(l);vt(d,()=>Kn,(h,p)=>{p(h,{get open(){return n()},set open(u){n(u)},children:(u,c)=>{var f=j(),m=V(f);vt(m,()=>Nn,(w,v)=>{v(w,{children:(P,x)=>{var b=ni(),A=V(b);vt(A,()=>Hn,(S,_)=>{_(S,{class:"fixed inset-0 z-50 bg-black/40 duration-200 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"})});var y=Tt(A,2);{let S=C(()=>g(o)?`transform: translateY(${g(o)}px)`:void 0);vt(y,()=>Rn,(_,L)=>{L(_,{class:"fixed inset-x-0 bottom-0 z-50 flex max-h-[85dvh] flex-col rounded-t-2xl border-t bg-popover pb-[env(safe-area-inset-bottom,0px)] text-popover-foreground shadow-2xl duration-200 outline-none data-open:animate-in data-open:slide-in-from-bottom data-closed:animate-out data-closed:slide-out-to-bottom",get style(){return g(S)},get onOpenAutoFocus(){return t.onOpenAutoFocus},"data-sheet":!0,children:(I,R)=>{var H=ei(),M=V(H),D=Tt(M,2),K=ft(D);vt(K,()=>zn,(k,Y)=>{Y(k,{class:"min-w-0 flex-1 truncate font-title text-2xl leading-tight",children:(te,mn)=>{wn();var Ee=vn();yn(()=>Xn(Ee,t.title)),W(te,Ee)},$$slots:{default:!0}})});var z=Tt(K,2);vt(z,()=>Vn,(k,Y)=>{Y(k,{class:"grid size-11 shrink-0 place-items-center rounded-full text-muted-foreground hover:bg-accent hover:text-foreground","aria-label":"Close",children:(te,mn)=>{Gn(te,{class:"size-5","aria-hidden":"true"})},$$slots:{default:!0}})}),ht(D);var B=Tt(D,2),T=ft(B);X(T,()=>t.children),ht(B),ee("pointerdown",M,i),ee("pointermove",M,s),ee("pointerup",M,a),qn("pointercancel",M,a),W(I,H)},$$slots:{default:!0}})})}W(P,b)},$$slots:{default:!0}})}),W(u,f)},$$slots:{default:!0}})}),W(e,l),nt()}Un(["pointerdown","pointermove","pointerup"]);export{Ri as A,Ur as B,Hi as C,Ii as D,_i as E,Wi as F,cn as G,to as H,hr as I,dr as J,Ie as K,eo as L,gr as M,Ai as N,bi as O,vi as P,Oi as Q,xi as R,ji as S,Si as T,Ci as U,Bi as a,se as b,Mi as c,Lr as d,Ei as e,Or as f,Wr as g,wi as h,Cr as i,yi as j,Fi as k,lt as l,Ki as m,Pi as n,Kr as o,Di as p,Sr as q,Zr as r,ki as s,Ti as t,zi as u,Ni as v,Li as w,Vi as x,Hr as y,bt as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{ag as Ue,p as be,y as Z,f as i,a as r,b as xe,g as e,e as se,q as Ve,r as oe,h as y,c as S,i as G,j as Ee,s as d,n as L,A as T,m as a,t as de,o as Be}from"./CEfkcOME.js";import{d as Je,s as ue,e as Ke,a as Me}from"./CPPNfCxh.js";import{i as H}from"./D4ikcNuh.js";import{c as h}from"./CGbw525c.js";import{j as Qe,r as Ce,d as Se,k as ze}from"./BMjXQSgN.js";import{b as Le}from"./B6yYMcjx.js";import{p as j,r as Re,s as fe}from"./D42BPZCD.js";import{p as Xe}from"./MoV8bfgL.js";import{D as Te}from"./Sv3hh1sg.js";import{D as Ye,a as et,b as tt,c as rt,d as he,e as at}from"./BxKmcvUJ.js";import{s as je}from"./s1S1BAXN.js";import{c as st,d as ot,b as $e,m as lt}from"./DRPGxn7H.js";import{B as Q}from"./D4Okmn3b.js";import{C as nt,e as it,b as dt,i as ut}from"./tFbTlyod.js";import{P as ft,i as pt,f as mt,m as vt}from"./4Fb0jmD0.js";import{P as gt}from"./B0iegdDx.js";import{L as ct}from"./BMEfZRmb.js";import{T as _t}from"./CiB1IASV.js";var ht=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),$t=S("<button><!></button>");function bt(X,o){const q=Ue();be(o,!0);let N=j(o,"id",19,()=>st(q)),U=j(o,"ref",15,null),O=j(o,"disabled",3,!1),t=Re(o,ht);const $=ot.create({id:$e(()=>N()),ref:$e(()=>U(),g=>U(g)),disabled:$e(()=>!!O())}),B=y(()=>lt(t,$.props));var u=Z(),f=i(u);{var R=g=>{var k=Z(),V=i(k);je(V,()=>o.child,()=>({props:e(B)})),r(g,k)},le=g=>{var k=$t();Qe(k,()=>({...e(B)}));var V=se(k);je(V,()=>o.children??Ve),oe(k),r(g,k)};H(f,g=>{o.child?g(R):g(le,-1)})}r(X,u),xe()}var xt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function wt(X,o){be(o,!0);let q=j(o,"ref",15,null),N=j(o,"type",3,"button"),U=Re(o,xt);var O=Z(),t=i(O);h(t,()=>bt,($,B)=>{B($,fe({"data-slot":"dialog-trigger",get type(){return N()}},()=>U,{get ref(){return q()},set ref(u){q(u)}}))}),r(X,O),xe()}var yt=S("<!> ",1),ae=S("<!> <!>",1),kt=S('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),Pt=S("<!>Fetching…",1),Dt=S('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),It=S('<p class="text-xs text-danger" role="alert"> </p>'),Oe=S("<!> <!> <!>",1),At=S("<p> </p>");function Kt(X,o){be(o,!0);let q=j(o,"busy",19,()=>[]),N=j(o,"suggested",3,null),U=j(o,"label",3,"Install plugin"),O=G(!1),t=G("form"),$=G(""),B=G(""),u=G(null),f=G(null),R=G(Ee({}));const le=y(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e($).trim())),g=y(()=>e(f)?vt(e(f),e(R)):null),k=()=>Xe.data.sessionToken,V="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function we(){a(t,"form"),a(u,null),a(f,null)}async function We(Y){if(Y.preventDefault(),!e(le)||e(t)==="looking")return;a(t,"looking"),a(u,null);const C=await it({repo:e($).trim(),ref:e(B).trim()||null},k());if(!C.ok){a(u,C.error,!0),a(t,"form");return}a(f,C.value,!0),a(R,pt(C.value),!0),a(t,"review")}async function Fe(){if(!e(f)||e(g))return;a(t,"saving"),a(u,null);const Y=dt(),C=await ut(e(f),mt(e(R)),k());if(!C.ok){a(u,C.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var ye=Z(),Ge=i(ye);h(Ge,()=>at,(Y,C)=>{C(Y,{onOpenChange:E=>{E&&(e(t)==="done"||e(t)==="slow")&&(a($,""),a(B,""),we()),E&&e(t)==="form"&&N()&&!e($)&&a($,N())},get open(){return e(O)},set open(E){a(O,E,!0)},children:(E,Bt)=>{var ke=ae(),Pe=i(ke);{const pe=(ee,te)=>{Q(ee,fe(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Ie,me)=>{var re=yt(),ne=i(re);gt(ne,{});var ve=d(ne,1,!0);de(()=>ue(ve,U())),r(Ie,re)},$$slots:{default:!0}}))};h(Pe,()=>wt,(ee,te)=>{te(ee,{child:pe,$$slots:{child:!0}})})}var He=d(Pe,2);{let pe=y(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");h(He,()=>Ye,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(pe)},children:(De,Ie)=>{var me=ae(),re=i(me);h(re,()=>et,(b,P)=>{P(b,{children:(c,D)=>{var x=ae(),I=i(x);h(I,()=>tt,(l,p)=>{p(l,{class:"font-display text-lg",children:(W,n)=>{L();var m=T("Install a plugin from GitHub");r(W,m)},$$slots:{default:!0}})});var s=d(I,2);h(s,()=>rt,(l,p)=>{p(l,{children:(W,n)=>{var m=Z(),A=i(m);{var _=v=>{var z=T("Check what it is and where it comes from before you install it.");r(v,z)},w=v=>{var z=T(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
|
|
2
|
+
Nothing runs until you install it.`);r(v,z)};H(A,v=>{e(t)==="review"?v(_):v(w,-1)})}r(W,m)},$$slots:{default:!0}})}),r(c,x)},$$slots:{default:!0}})});var ne=d(re,2);{var ve=b=>{var P=Dt(),c=i(P),D=se(c),x=d(se(D),2);Ce(x),Se(x,1,ze(V)),L(2),oe(D);var I=d(D,2),s=d(se(I),2);Ce(s),Se(s,1,ze(V)),L(2),oe(I);var l=d(I,2);{var p=n=>{var m=kt(),A=se(m);_t(A,{class:"mt-0.5 size-3.5 shrink-0"});var _=d(A,1,!0);oe(m),de(()=>ue(_,e(u))),r(n,m)};H(l,n=>{e(u)&&n(p)})}oe(c);var W=d(c,2);h(W,()=>he,(n,m)=>{m(n,{children:(A,_)=>{var w=ae(),v=i(w);{const F=(J,K)=>{Q(J,fe(()=>(K?.()).props,{variant:"ghost",children:(ce,Ae)=>{L();var _e=T("Cancel");r(ce,_e)},$$slots:{default:!0}}))};h(v,()=>Te,(J,K)=>{K(J,{child:F,$$slots:{child:!0}})})}var z=d(v,2);{let F=y(()=>!e(le)||e(t)==="looking");Q(z,{type:"submit",form:"install-plugin-form",get disabled(){return e(F)},children:(J,K)=>{var ge=Z(),ce=i(ge);{var Ae=M=>{var ie=Pt(),Ne=i(ie);ct(Ne,{class:"animate-spin"}),L(),r(M,ie)},_e=M=>{var ie=T("Look it up");r(M,ie)};H(ce,M=>{e(t)==="looking"?M(Ae):M(_e,-1)})}r(J,ge)},$$slots:{default:!0}})}r(A,w)},$$slots:{default:!0}})}),Ke("submit",c,We),Me("input",x,()=>a(u,null)),Le(x,()=>e($),n=>a($,n)),Le(s,()=>e(B),n=>a(B,n)),r(b,P)},Ze=b=>{var P=Oe(),c=i(P);ft(c,{get preview(){return e(f)},get busy(){return q()},get answers(){return e(R)},set answers(s){a(R,s,!0)}});var D=d(c,2);{var x=s=>{var l=It(),p=Be(l,!0);de(()=>ue(p,e(u))),r(s,l)};H(D,s=>{e(u)&&s(x)})}var I=d(D,2);h(I,()=>he,(s,l)=>{l(s,{children:(p,W)=>{var n=ae(),m=i(n);Q(m,{variant:"ghost",onclick:we,children:(_,w)=>{L();var v=T("Back");r(_,v)},$$slots:{default:!0}});var A=d(m,2);{let _=y(()=>!!e(g)),w=y(()=>e(g)?`${e(g).title} is needed`:void 0);Q(A,{onclick:Fe,get disabled(){return e(_)},get title(){return e(w)},children:(v,z)=>{L();var F=T("Install and restart");r(v,F)},$$slots:{default:!0}})}r(p,n)},$$slots:{default:!0}})}),r(b,P)},qe=b=>{var P=Oe(),c=i(P);{let s=y(()=>e(f).id),l=y(()=>e(f).commit.slice(0,7)),p=y(()=>e(t)==="saving"||e(t)==="restarting"||e(t)==="done"||e(t)==="slow"?e(t):"saving");nt(c,{get label(){return`Install ${e(s)??""} at ${e(l)??""}`},get phase(){return e(p)}})}var D=d(c,2);{var x=s=>{var l=At(),p=Be(l);de(()=>ue(p,`${e(f).name??""}
|
|
3
|
+
${e(f).version??""} is installed and Wheelhouse restarted. Its row shows whether it loaded.`)),r(s,l)};H(D,s=>{e(t)==="done"&&s(x)})}var I=d(D,2);h(I,()=>he,(s,l)=>{l(s,{children:(p,W)=>{var n=Z(),m=i(n);{const A=(_,w)=>{let v=()=>(w?.()).props;{let z=y(()=>e(t)==="saving"||e(t)==="restarting");Q(_,fe(v,{get disabled(){return e(z)},children:(F,J)=>{L();var K=T("Done");r(F,K)},$$slots:{default:!0}}))}};h(m,()=>Te,(_,w)=>{w(_,{child:A,$$slots:{child:!0}})})}r(p,n)},$$slots:{default:!0}})}),r(b,P)};H(ne,b=>{e(t)==="form"||e(t)==="looking"?b(ve):e(t)==="review"&&e(f)?b(Ze,1):e(f)&&b(qe,2)})}r(De,me)},$$slots:{default:!0}})})}r(E,ke)},$$slots:{default:!0}})}),r(X,ye),xe()}Je(["input"]);export{Kt as I};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as r,g as n,m as i,j as f}from"./CEfkcOME.js";import{p as d}from"./MoV8bfgL.js";import{w as g}from"./RYvdmj4W.js";const m="wheelhouse-live",w="wheelhouse-live-leader",y=2*6e4;class v{#e=r(null);get fleet(){return n(this.#e)}set fleet(e){i(this.#e,e)}#t=r(null);get eventsPaused(){return n(this.#t)}set eventsPaused(e){i(this.#t,e,!0)}#s=r(null);get health(){return n(this.#s)}set health(e){i(this.#s,e,!0)}#a=r(null);get messages(){return n(this.#a)}set messages(e){i(this.#a,e)}#r=r(null);get crew(){return n(this.#r)}set crew(e){i(this.#r,e,!0)}#n=r("connecting");get connection(){return n(this.#n)}set connection(e){i(this.#n,e,!0)}#i=r(f(Date.now()));get now(){return n(this.#i)}set now(e){i(this.#i,e,!0)}#l=r(0);get revision(){return n(this.#l)}set revision(e){i(this.#l,e,!0)}#h=r(!1);get leader(){return n(this.#h)}set leader(e){i(this.#h,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),l=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),l(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(m);this.channel=e,e.onmessage=h=>{const s=h.data;s.t==="hello"?this.leader&&this.replay():s.t==="connection"?this.leader||(this.connection=s.state):this.leader||this.apply(s.e)};const a=new AbortController;let l=()=>{};return navigator.locks.request(w,{signal:a.signal},()=>{const h=this.lead();return new Promise(s=>{l=()=>{h(),s()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),l(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=h=>{this.connection=h,this.post({t:"connection",state:h})},l=g("/api/events",h=>{const s=(t,o)=>h.addEventListener(t,p=>{const c=o(JSON.parse(p.data));this.remember(c),this.apply(c),this.post({t:"event",e:c}),c.type==="fleet"&&e("open")});s("server",t=>({type:"server",data:t})),s("events-status",t=>({type:"events-status",data:t})),s("fleet",t=>({type:"fleet",data:t})),s("health",t=>({type:"health",data:t})),s("messages",t=>({type:"messages",data:t})),s("crew",t=>({type:"crew",data:t})),s("alert",t=>({type:"alert",data:t,fresh:this.claim(t)})),s("settled",t=>({type:"settled",data:t})),s("alerts",t=>({type:"alerts",data:t.map(o=>{const p=this.claim(o);return{alert:o,fresh:p&&Date.now()-Date.parse(o.at)<=y}})}))},e);return()=>{l(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest["events-status"]&&this.post({t:"event",e:{type:"events-status",data:this.latest["events-status"]}}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.crew&&this.post({t:"event",e:{type:"crew",data:this.latest.crew}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"events-status":this.eventsPaused=e.data.paused;break;case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"crew":this.crew=e.data;break;case"server":{const a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const l of this.restartListeners)l();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const u=new v;function C(){return u.fleet??d.data.fleet??null}function I(){return u.health??d.data.health??null}function P(){return u.messages??d.data.messages??null}function S(){return u.crew??d.data.crew??null}export{S as a,I as b,C as c,P as d,u as l};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{l as U,k as F,a0 as _,E as q,b8 as N,i as l,g as c,m as u,j as v}from"./CEfkcOME.js";import"./DsnmJJEf.js";import{s as b,r as $}from"./D42BPZCD.js";import{I as S}from"./DBuj1e9B.js";import{p as P}from"./MoV8bfgL.js";import{a as R}from"./D8swcNrI.js";import{s as C}from"./B6OgCkTR.js";import{S as x}from"./BXN538J3.js";function lt(a,t,e){U(()=>{var s=F(()=>t(a,e?.())||{});if(e&&s?.update){var i=!1,n={};_(()=>{var r=e();q(r),i&&N(n,r)&&(n=r,s.update(r))}),i=!0}if(s?.destroy)return()=>s.destroy()})}var j=new Set(["$$slots","$$events","$$legacy"]);function ct(a,t){let e=$(t,j);const s={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"}]]};S(a,b(()=>e,{get icon(){return s}}))}var A=new Set(["$$slots","$$events","$$legacy"]);function ut(a,t){let e=$(t,A);const s={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"}]]};S(a,b(()=>e,{get icon(){return s}}))}var B=new Set(["$$slots","$$events","$$legacy"]);function pt(a,t){let e=$(t,B);const s={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"}]]};S(a,b(()=>e,{get icon(){return s}}))}var L=new Set(["$$slots","$$events","$$legacy"]);function dt(a,t){let e=$(t,L);const s={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"}]]};S(a,b(()=>e,{get icon(){return s}}))}const gt=["must","should","could","none"],W={must:"Must fix",should:"Should fix",could:"Could do",none:"Keep"},G=8e3,k=a=>a.replace(/\s+/g," ").trim();function m(a){const t=Math.max(0,Math.round(a/1e3));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const w=(a,t)=>`${a} ${t}${a===1?"":"s"}`,H=/\b(this|here|that one|these)\b/i;function Q(a,t,e,s,i){const n=a.filter(o=>(o.type==="click"||o.type==="input"||o.type==="choose"||o.type==="mark")&&o.t>=e-G&&o.t<=s).pop()??null,r=n?.type!=="mark"&&H.test(t)&&i&&n&&i.t>n.t+400&&i.selector!==n.el?.selector;return n&&!r?{ev:n}:{pointing:i??null}}function I(a,t){const e=s=>a.find(i=>i.id===s)?.label??"";return[...a.map(s=>({t:s.t,s:`${s.id} ${m(s.t)} ${s.label}${s.type!=="nav"&&s.page?` (on ${s.page})`:""}`})),...t.map(s=>({t:s.t0,s:`${s.id} ${m(s.t0)}–${m(s.t1)} captain said: “${s.text}”${s.anchor?` [about ${s.anchor}: ${e(s.anchor)}]`:""}${s.pointing?` [pointing at ${s.pointing.label}]`:""} (on ${s.page})`}))].sort((s,i)=>s.t-i.t).map(s=>s.s).slice(-160)}function z(a){const t=a.split(/[.(]|, (?:that|which|so|and)\b/)[0].trim();return t.length<=64?t:t.slice(0,64).replace(/\s+\S*$/,"")+"…"}function K(a,t,e){const s=t.text.toLowerCase(),i=/\b(love|like|nice|great|good|perfect)\b/.test(s)&&!/\bnot\b/.test(s)?"praise":/\?|\bwhy\b|\bnot sure\b/.test(s)?"question":/\b(broken|bug|error|doesn'?t|does not|can'?t|wrong|fails?|nothing happens|confus)/.test(s)?"problem":/\b(maybe|could|would be nice|idea|what if)\b/.test(s)?"idea":"change",n=t.text.charAt(0).toUpperCase()+t.text.slice(1);return{id:a,kind:i,severity:i==="praise"?"none":i==="problem"?"must":i==="idea"?"could":"should",text:`${n}${e?` (about ${e} on ${t.page})`:` (on ${t.page})`}`,quote:t.text,anchor:t.anchor??"",utterances:[t.id]}}const V=a=>/\?\s*$|^(what|how|why|where|when|can you|could you|is this|does|do i|which)\b/i.test(a.trim());function J(a,t){return{summary:a.length?`The captain reviewed ${t.title} for ${m(t.duration)} and raised ${w(a.length,"point")}.`:"Nothing was raised in this session, so there is nothing to pass on yet.",issues:a.map(e=>({title:z(e.text),detail:e.text,severity:e.severity,kind:e.kind,notes:[e.id],anchor:e.anchor,quote:e.quote})),openQuestions:[]}}function Y(a,t,e,s,i){const n=[`Preview feedback for ${a.id} (${k(a.title)}), sent together from the Preview tab (${t}):`,`Live review session: ${m(e.duration)}, ${w(e.remarks,"remark")}, ${w(e.clicks,"click")}, ${w(e.pages,"page")}. ${k(s.summary)}`,"The captain requests these changes: the preview is not approved yet."];return s.lines.forEach((r,o)=>{n.push(`${o+1}. [${W[r.severity]}] ${k(r.title)}. ${k(r.detail)}`),r.where&&n.push(` Points at: ${k(r.where)}`),r.quote&&n.push(` Captain said${r.at?` (${r.at})`:""}: “${k(r.quote)}”`),r.shot&&n.push(` Screenshot: ${r.shot}`)}),s.errors.length&&n.push("","Seen on the page during the session:",...s.errors.map(r=>`- ${r}`)),s.openQuestions.length&&n.push("","Open questions for the captain:",...s.openQuestions.map(r=>`- ${r}`)),i&&n.push("",`The whole session (every click, page, remark and screenshot): ${i}`),n.push("","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."),n.join(`
|
|
2
|
+
`)}function X(a,t,e){const s=[`Preview approved for ${a.id} (${k(a.title)}): the captain reviewed the preview (${t}) and approves it.`,"This is the captain’s go for its pull request: land it under this project’s rules."];return e.length&&s.push("","Notes the captain took (not blocking):",...e.map(i=>`- ${k(i)}`)),s.join(`
|
|
3
|
+
`)}const ft=()=>P.data.features?.livereview===!0&&!R.remote&&!R.hosted,kt=(a,t=location.pathname+location.search)=>`/tasks/${encodeURIComponent(a)}/live?back=${encodeURIComponent(t)}`,Z=260,tt=450;function O(){const a=globalThis;return a.SpeechRecognition??a.webkitSpeechRecognition??null}const y=a=>{const t=URL.parse(a??"");return t?t.pathname+t.hash||"/":a||"/"};class mt{taskId;title;token;previewUrl="";#t=l(null);get problem(){return c(this.#t)}set problem(t){u(this.#t,t,!0)}#e=l(!1);get on(){return c(this.#e)}set on(t){u(this.#e,t,!0)}#s=l(!1);get paused(){return c(this.#s)}set paused(t){u(this.#s,t,!0)}started=0;#i=l(0);get now(){return c(this.#i)}set now(t){u(this.#i,t,!0)}#n=l("talk");get mode(){return c(this.#n)}set mode(t){u(this.#n,t,!0)}#r=l(!0);get speak(){return c(this.#r)}set speak(t){u(this.#r,t,!0)}#o=l(!0);get mask(){return c(this.#o)}set mask(t){u(this.#o,t,!0)}#a=l(!0);get shootClicks(){return c(this.#a)}set shootClicks(t){u(this.#a,t,!0)}#h=l(v([]));get events(){return c(this.#h)}set events(t){u(this.#h,t,!0)}#l=l(v([]));get remarks(){return c(this.#l)}set remarks(t){u(this.#l,t,!0)}#c=l(v([]));get notes(){return c(this.#c)}set notes(t){u(this.#c,t,!0)}#u=l(v([]));get convo(){return c(this.#u)}set convo(t){u(this.#u,t,!0)}#p=l({});get shots(){return c(this.#p)}set shots(t){u(this.#p,t)}#d=l(v([]));get fresh(){return c(this.#d)}set fresh(t){u(this.#d,t,!0)}#g=l("");get heard(){return c(this.#g)}set heard(t){u(this.#g,t,!0)}#f=l("/");get page(){return c(this.#f)}set page(t){u(this.#f,t,!0)}#k=l(!1);get talking(){return c(this.#k)}set talking(t){u(this.#k,t,!0)}#m=l(!1);get locked(){return c(this.#m)}set locked(t){u(this.#m,t,!0)}#v=l(null);get hearing(){return c(this.#v)}set hearing(t){u(this.#v,t,!0)}#y=l(null);get scribeSays(){return c(this.#y)}set scribeSays(t){u(this.#y,t,!0)}#w=l(!1);get notesBusy(){return c(this.#w)}set notesBusy(t){u(this.#w,t,!0)}#b=l(!1);get replyBusy(){return c(this.#b)}set replyBusy(t){u(this.#b,t,!0)}#$=l(!1);get speaking(){return c(this.#$)}set speaking(t){u(this.#$,t,!0)}#S=l(null);get notice(){return c(this.#S)}set notice(t){u(this.#S,t,!0)}#x=l(null);get pack(){return c(this.#x)}set pack(t){u(this.#x,t,!0)}#I=l(!1);get marking(){return c(this.#I)}set marking(t){u(this.#I,t,!0)}#T=l(!1);get picking(){return c(this.#T)}set picking(t){u(this.#T,t,!0)}#D=l(null);get picked(){return c(this.#D)}set picked(t){u(this.#D,t,!0)}#E=l(null);get approved(){return c(this.#E)}set approved(t){u(this.#E,t,!0)}#M=l(!1);get approving(){return c(this.#M)}set approving(t){u(this.#M,t,!0)}canHear=O()!==null;peer=null;origin="";hover=null;pageText=null;ev=0;ut=0;sh=0;lastShotAt=0;rec=null;cur=null;pressAt=0;lastTap=0;chord=!1;quietEnd=!1;notesAgain=!1;replyNext=null;outlinedCache=new Map;clock=null;player=null;sayGen=0;constructor(t,e){this.taskId=t.id,this.title=t.title,this.token=e}async call(t){try{const e=await fetch(`/api/tasks/${encodeURIComponent(this.taskId)}/livereview`,{method:"POST",headers:{"content-type":"application/json",[x]:this.token},body:JSON.stringify(t)}),s=await e.json().catch(()=>null);return!e.ok||!s?{ok:!1,error:s?.message??`Wheelhouse answered ${e.status}.`}:{ok:!0,value:s}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}connect(t,e,s){this.peer=t,this.origin=e,this.previewUrl=s}toFrame(t){this.origin&&this.peer?.postMessage({__wh:1,...t},this.origin)}get elapsed(){return this.on?this.now-this.started:0}t(){return this.started?Date.now()-this.started:0}get canDone(){return!this.pack&&(this.on||this.remarks.length>0)}start(){this.on=!0,this.paused=!1,this.started=Date.now(),this.now=this.started,this.clock=setInterval(()=>this.now=Date.now(),1e3),this.addEvent({type:"start",label:`Started on ${this.page}`}),this.toFrame({type:"record",on:!0,mask:this.mask}),this.toFrame({type:"gettext"})}setPaused(t){!this.on||this.paused===t||(t&&this.stopTalking(),t&&this.marking&&this.mark(!1),this.paused=t,this.toFrame({type:"record",on:!t,mask:this.mask}),this.addEvent({type:"pause",label:t?"Paused the recording":"Carried on recording"}))}setMask(t){this.mask=t,this.on&&this.toFrame({type:"record",on:!this.paused,mask:t})}setMode(t){this.mode=t,t==="notes"&&this.hush()}close(){this.stopTalking(!0),this.marking&&this.mark(!1),this.hush(),this.toFrame({type:"record",on:!1}),this.on=!1,this.clock&&clearInterval(this.clock)}stopTalking(t=!1){this.locked&&(this.quietEnd=!0,this.locked=!1),this.talking&&this.release(t)}addEvent(t){const e={id:`e${++this.ev}`,t:this.t(),page:this.page,...t};return this.events.push(e),this.events[this.events.length-1]}receive(t){if(!this.peer||t.source!==this.peer||t.origin!==this.origin)return;const e=t.data;if(!(!e||e.__wh!==1)){if(e.type==="hello"){const s=this.on&&y(e.url)!==this.page;this.page=y(e.url),this.on&&(this.toFrame({type:"record",on:!this.paused,mask:this.mask}),s&&!this.paused&&this.addEvent({type:"nav",label:`Opened ${this.page}`}));return}if(e.type==="key")return this.frameKey(e);if(e.type==="marking"){this.marking=!!e.on;return}if(e.type==="picked"){this.picking=!1;const s=e.el??null;this.started||(this.started=Date.now()),this.picked=s?{el:s,shotId:this.shoot(s.selector,s.text)}:null;return}if(e.type==="text"){this.pageText={url:e.url??"",title:e.title??"",text:e.text??"",at:Date.now()};return}if(e.type==="shot"&&e.id){const s=this.shots[e.id];if(!s)return;this.shots={...this.shots,[e.id]:{...s,image:e.image??null,vw:e.vw??0,vh:e.vh??0,el:e.el??s.el,pending:!1}};return}if(!(!this.on||this.paused))switch(e.url&&(this.page=y(e.url)),e.type){case"click":{const s=this.addEvent({type:"click",label:`Clicked ${e.el?.label??"a spot on the page"}`,el:e.el??null});this.shootClicks&&Date.now()-this.lastShotAt>900&&(this.lastShotAt=Date.now(),setTimeout(()=>{s.shotId=this.shoot(e.el?.selector??null,e.el?.text??null,e.at?{...e.at,vw:e.vw??0}:null)},350));break}case"input":this.addEvent({type:"input",label:`Typed ${e.value?`“${e.value}”`:`${e.length??0} characters`} in ${e.el?.label??"a box"}`,el:e.el??null});break;case"choose":this.addEvent({type:"choose",label:`Set ${e.el?.label??"a choice"} to ${e.value}`,el:e.el??null});break;case"nav":this.addEvent({type:"nav",label:`Went to ${y(e.url)}`}),this.toFrame({type:"gettext"});break;case"scroll":{const s=this.events[this.events.length-1];s?.type==="scroll"&&this.t()-s.t<4e3?(s.label=`Scrolled to ${e.pct}%`,s.t=this.t()):this.addEvent({type:"scroll",label:`Scrolled to ${e.pct}%`});break}case"area":{if(!e.rect)break;const s={label:e.n?`marked area ${e.n}`:"the area you marked",text:"",tag:"area",selector:"",rect:e.rect},i=this.addEvent({type:"mark",label:`Marked ${s.label} on ${this.page}`,el:s});i.shotId=this.shoot(null,null,null,s);break}case"hover":this.hover=e.el?{...e.el,t:this.t()}:null;break;case"error":this.addEvent({type:"error",label:e.kind==="network"?`Request failed: ${e.message}`:`${e.kind==="console"?"Console error":"Error"}: ${e.message}`});break}}}shoot(t,e,s=null,i=null){const n=`s${++this.sh}`;return this.shots={...this.shots,[n]:{id:n,t:this.t(),image:null,vw:0,vh:0,el:i,point:s,pending:!0}},this.toFrame({type:"shoot",id:n,selector:t,text:e}),setTimeout(()=>{const r=this.shots[n];r?.pending&&(this.shots={...this.shots,[n]:{...r,pending:!1}})},8e3),n}outlined(t){const e=t?this.shots[t]:null;if(!e?.image)return Promise.resolve(null);const s=`${e.id}:${e.image.length}`,i=this.outlinedCache.get(s);if(i)return i;const n=new Promise(r=>{const o=new Image;o.onload=()=>{const p=document.createElement("canvas");p.width=o.width,p.height=o.height;const h=p.getContext("2d");if(!h)return r(e.image);h.drawImage(o,0,0);const d=o.width/(e.vw||o.width),f=e.el?.rect;if(f&&f.w>0){const g=6*d,[T,D,E,M]=[f.x*d-g,f.y*d-g,f.w*d+g*2,f.h*d+g*2];h.fillStyle="rgba(11,17,24,.38)",h.beginPath(),h.rect(0,0,p.width,p.height),h.roundRect(T,D,E,M,6*d),h.fill("evenodd"),h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*d),h.beginPath(),h.roundRect(T,D,E,M,6*d),h.stroke()}else if(e.point){const g=o.width/(e.point.vw||e.vw||o.width);h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*g),h.beginPath(),h.arc(e.point.x*g,e.point.y*g,16*g,0,Math.PI*2),h.stroke()}r(p.toDataURL("image/jpeg",.85))},o.onerror=()=>r(null),o.src=e.image});return this.outlinedCache.set(s,n),n}newHearing(){const t=this.hover&&this.t()-this.hover.t<2e4?{...this.hover}:null;return{t0:this.t(),t1:0,finals:"",interim:"",hover:t,shotId:this.shoot(t?.selector??null,t?.text??null),pointShot:null}}press(){!this.on||this.paused||this.talking||(this.talking=!0,this.pressAt=Date.now(),this.chord=!1,this.hush(),this.toFrame({type:"gettext"}),this.toFrame({type:"talking",on:!0}),this.cur=this.newHearing(),this.hearing={finals:"",interim:""},this.listen(this.cur))}pressHeld(){this.press(),this.pressAt=Date.now()-1e3}listen(t){const e=O();if(!e)return;const s=new e;s.lang=navigator.language||"en-GB",s.continuous=!0,s.interimResults=!0,this.rec=s;let i=t;s.onresult=n=>{let r="";for(let o=n.resultIndex;o<n.results.length;o++){const p=n.results[o];p.isFinal?(i.finals+=(i.finals?" ":"")+p[0].transcript.trim(),this.locked&&this.rec===s&&(i.interim="",i.t1=this.t(),this.finish(i),i=this.newHearing(),this.cur=i)):r+=p[0].transcript}i.interim=r,!i.pointShot&&this.hover&&/\b(this|here|that one|these)\b/i.test(`${i.finals} ${r}`)&&(i.hover={...this.hover},i.pointShot=this.shoot(this.hover.selector,this.hover.text)),this.talking&&this.cur===i&&(this.hearing={finals:i.finals,interim:i.interim})},s.onerror=n=>{n.error==="not-allowed"||n.error==="service-not-allowed"?this.notice="The microphone is blocked for this page. Type to the scribe instead.":n.error==="network"&&(this.notice="The browser’s speech service could not be reached. Type to the scribe instead.")},s.onend=()=>{if(this.talking&&this.locked&&this.rec===s){try{s.start()}catch{}return}this.rec===s&&(this.rec=null),this.finish(i)};try{s.start()}catch{this.notice="The browser would not start listening. Type to the scribe instead."}}release(t=!1){if(!this.talking||!this.cur)return;this.talking=!1,this.hearing=null,this.toFrame({type:"talking",on:!1});const e=this.rec,s=this.cur;this.rec=null,s.t1=this.t();const i=r=>{try{e?.[r]()}catch{}},n=Date.now()-this.pressAt;if(t||this.chord){s.dropped=!0,i("abort");return}if(!this.locked&&n<Z&&!s.finals&&!s.interim){s.dropped=!0,i("abort"),Date.now()-this.lastTap<tt?(this.lastTap=0,this.setLocked(!0)):this.lastTap=Date.now();return}e?(i("stop"),setTimeout(()=>this.finish(s),2500)):this.finish(s)}setLocked(t){this.locked=t,t&&!this.talking?this.pressHeld():!t&&this.talking&&(this.quietEnd=!0,this.release())}keyDown(){if(this.on){if(this.locked)return this.setLocked(!1);this.pressHeld()}}keyUp(){this.on&&!this.locked&&this.release()}chorded(){this.talking&&!this.locked&&(this.chord=!0,this.release())}frameKey(t){t.key==="talk"?t.down?this.keyDown():this.keyUp():t.key==="chord"?this.chorded():t.key==="mark"&&this.mark()}finish(t){if(t.done||t.dropped)return;t.done=!0;const e=`${t.finals} ${t.interim}`.replace(/\s+/g," ").trim(),s=this.quietEnd;if(this.quietEnd=!1,!e){!s&&!this.locked&&(this.notice="Didn’t catch anything. Keep talking a little longer before you let go.");return}this.addRemark(e,t.t0,t.t1||this.t(),t.hover,t.pointShot??t.shotId)}mark(t=!this.marking){t&&(!this.on||this.paused)||(this.marking=t,this.toFrame({type:"mark",on:t}))}pick(t=!0){this.picking=t,this.toFrame({type:"pick",on:t})}comment(t){const e=t.trim();if(!e)return;this.started||(this.started=Date.now());const s=this.t(),i=this.picked,n={id:`u${++this.ut}`,t0:s,t1:s+600,text:e,page:this.page,anchor:null,pointing:i?.el??null,shotId:i?.shotId??this.shoot(null,null)};this.remarks.push(n),this.convo.push({who:"captain",text:e,t:s,uid:n.id}),this.picked=null,this.on&&this.askNotes()}save(){const t=s=>JSON.stringify({v:1,on:this.on,paused:this.paused,started:this.started,mode:this.mode,speak:this.speak,mask:this.mask,shootClicks:this.shootClicks,page:this.page,events:this.events,remarks:this.remarks,notes:this.notes,convo:this.convo,shots:s?this.shots:Object.fromEntries(Object.entries(this.shots).map(([i,n])=>[i,{...n,image:null}])),pack:this.pack,picked:this.picked,approved:this.approved,counts:[this.ev,this.ut,this.sh]}),e=t(!0);return e.length<4e6?e:t(!1)}restore(t){let e=null;try{e=t?JSON.parse(t):null}catch{e=null}if(!e||e.v!==1)return;this.paused=!!e.paused,this.started=Number(e.started)||0,this.mode=e.mode==="notes"?"notes":"talk",this.speak=e.speak!==!1,this.mask=e.mask!==!1,this.shootClicks=e.shootClicks!==!1,this.page=typeof e.page=="string"?e.page:"/",this.events=e.events??[],this.remarks=e.remarks??[],this.notes=e.notes??[],this.convo=e.convo??[],this.shots=e.shots??{},this.pack=e.pack??null,this.pack&&(this.pack.sending=!1),this.picked=e.picked??null,this.approved=e.approved??null;const[s,i,n]=e.counts??[0,0,0];[this.ev,this.ut,this.sh]=[s||0,i||0,n||0],e.on&&(this.on=!0,this.now=Date.now(),this.clock=setInterval(()=>this.now=Date.now(),1e3))}type(t){const e=t.trim();if(!e||!this.on||this.paused)return;const s=this.t();this.toFrame({type:"gettext"});const i=this.hover;this.addRemark(e,s-1500,s,i,this.shoot(i?.selector??null,i?.text??null))}addRemark(t,e,s,i,n){const r=Q(this.events,t,e,s,i),o={id:`u${++this.ut}`,t0:e,t1:Math.max(s,e+600),text:t,page:this.page,anchor:"ev"in r?r.ev.id:null,pointing:"pointing"in r?r.pointing:null,shotId:"ev"in r&&r.ev.shotId?r.ev.shotId:n};this.remarks.push(o),this.convo.push({who:"captain",text:t,t:e,uid:o.id}),this.heard="",this.askNotes(),this.mode==="talk"&&this.askReply(o)}about(t){const e=this.remarks.find(i=>t.utterances.includes(i.id)),s=this.events.find(i=>i.id===(t.anchor||e?.anchor));return{el:s?.el??e?.pointing??null,shotId:s?.shotId??e?.shotId??null,page:s?.page??e?.page??"",t:e?.t0??s?.t??0,clicked:!!s}}highlight(t){t&&this.toFrame({type:"highlight",selector:t})}async askNotes(){if(this.notesBusy){this.notesAgain=!0;return}this.notesBusy=!0,this.notesAgain=!1;const t=await this.call({action:"notes",timeline:I(this.events,this.remarks),notes:this.notes});if(this.notesBusy=!1,!!this.on){if(t.ok){const e=new Map(this.notes.map(s=>[s.id,s.text]));this.notes=t.value.notes,this.fresh=t.value.notes.filter(s=>e.get(s.id)!==s.text).map(s=>s.id),this.heard=t.value.heard}else this.notice=`The scribe could not take notes just then (${t.error}). It will try again with your next remark.`;this.notesAgain&&this.askNotes()}}async askReply(t){if(this.replyBusy){this.replyNext=t;return}this.replyBusy=!0;for(let i=0;i<6&&!(this.pageText&&Date.now()-this.pageText.at<15e3);i++)await new Promise(n=>setTimeout(n,100));const e=await this.call({action:"reply",said:t.text,page:this.pageText,timeline:I(this.events,this.remarks),notes:this.notes.map(i=>i.text),convo:this.convo.filter(i=>i.uid!==t.id||i.who==="scribe").map(({who:i,text:n})=>({who:i,text:n}))});if(this.replyBusy=!1,!this.on)return;const s=this.replyNext;if(this.replyNext=null,s)return void this.askReply(s);e.ok&&e.value.reply?(this.convo.push({who:"scribe",text:e.value.reply,t:this.t(),uid:t.id}),this.say(e.value.reply)):e.ok||this.convo.push({who:"scribe",text:`I couldn’t answer just then (${e.error}) but I noted what you said.`,t:this.t(),uid:t.id,error:!0})}say(t){this.scribeSays=t,this.stopVoice();const e=globalThis.speechSynthesis;if(!this.speak){setTimeout(()=>{this.scribeSays===t&&(this.scribeSays=null)},Math.max(4e3,t.split(" ").length*380));return}const s=this.sayGen,i=()=>{this.speaking=!1,setTimeout(()=>{!this.speaking&&this.scribeSays===t&&(this.scribeSays=null)},1200)},n=()=>{if(s!==this.sayGen)return;if(!e)return i();const r=new SpeechSynthesisUtterance(t),o=e.getVoices().filter(p=>/^en/i.test(p.lang));r.voice=o.find(p=>/Google UK English Female|Daniel|Serena|Kate|Samantha|Google US English/.test(p.name))??o[0]??null,r.rate=1.04,r.onstart=()=>this.speaking=!0,r.onend=r.onerror=i,e.speak(r)};this.voiced(t).then(r=>{if(s!==this.sayGen)return;if(!r)return n();const o=new Audio(URL.createObjectURL(r));this.player=o,o.onplaying=()=>this.speaking=!0,o.onended=()=>{URL.revokeObjectURL(o.src),this.player===o&&(this.player=null),i()},o.onerror=()=>{this.player===o&&(this.player=null),n()},o.play().catch(()=>{this.player===o&&(this.player=null),n()})})}async voiced(t){try{const e=await fetch("/api/voice/speak",{method:"POST",headers:{"content-type":"application/json",[x]:this.token},body:JSON.stringify({text:t.slice(0,1200),speed:1})});return e.status===200?await e.blob():null}catch{return null}}stopVoice(){this.sayGen++,this.player?.pause(),this.player=null,globalThis.speechSynthesis?.cancel()}hush(){this.stopVoice(),this.speaking=!1,this.scribeSays=null}async approve(t){if(this.approving||this.approved)return!1;this.approving=!0;const e=[...this.remarks.map(r=>r.text),t.trim()].filter(Boolean),s=await this.openQuestion();let i="message",n=null;if(s){i="answer";try{const r=await fetch("/api/inbox",{method:"POST",headers:{"content-type":"application/json","idempotency-key":`review-${crypto.randomUUID()}`,[x]:this.token},body:JSON.stringify({cardId:s.id,choice:"approve",note:e.length?`From the live review: ${e.join(" · ")}`:null})}),o=await r.json().catch(()=>null);r.ok?typeof o?.message=="object"&&o.message.delivery==="failed"&&(n=o.message.deliveryDetail??"Firstmate did not take the approval."):n=(typeof o?.message=="string"?o.message:null)??`Wheelhouse answered ${r.status}.`}catch{n="Could not reach the Wheelhouse server."}}else{const r=await C(X({id:this.taskId,title:this.title},this.previewUrl,e),this.token,this.taskId);r.ok||(n=r.error)}return this.approving=!1,n?(this.notice=`The approval did not go: ${n}`,!1):(this.approved={how:i,at:Date.now()},!0)}async openQuestion(){try{const t=await fetch("/api/inbox");if(!t.ok)return null;const e=await t.json();if(!e.canAnswer)return null;const s=e.cards.filter(i=>i.taskId===this.taskId&&!i.secondMate);return s.find(i=>i.kind==="merge")??s.find(i=>i.kind==="preview")??null}catch{return null}}point(t,e){const s=this.notes.find(r=>t.notes.includes(r.id)),i=s?this.about(s):null,n=this.events.find(r=>r.id===t.anchor);return{...t,key:`p${e}`,include:!0,el:n?.el??i?.el??null,shotId:n?.shotId??i?.shotId??null,page:n?.page??i?.page??"",t:i?.t??n?.t??0}}view(t,e,s){const i={must:0,should:1,could:2,none:3};return{summary:t.summary,points:t.issues.map((n,r)=>this.point(n,r)).sort((n,r)=>i[n.severity]-i[r.severity]),openQuestions:t.openQuestions,errors:[...new Set(this.events.filter(n=>n.type==="error").map(n=>`${m(n.t)} on ${n.page}: ${n.label}`))],duration:s,from:e,tidying:!1,better:null,tidyFailed:null,edited:!1,sending:!1,sent:null,error:null}}async end(){this.stopTalking(),this.marking&&this.mark(!1),this.hush(),this.paused=!0,this.toFrame({type:"record",on:!1});const t=this.t(),e=new Set(this.notes.flatMap(h=>h.utterances)),s=new Set(this.convo.filter(h=>h.who==="scribe"&&!h.error).map(h=>h.uid)),i=this.remarks.filter(h=>!e.has(h.id)&&!(s.has(h.id)&&V(h.text))).map((h,d)=>K(`q${d+1}`,h,(h.anchor?this.events.find(f=>f.id===h.anchor)?.el?.label:h.pointing?.label)??null)),n=[...this.notes,...i];this.notes=n;const r=this.view(J(n,{title:this.title,duration:t}),"notes",t);if(r.tidying=this.remarks.length>0,this.pack=r,!r.tidying)return;const o=await this.call({action:"pack",timeline:I(this.events,this.remarks),notes:n}),p=this.pack;!p||p.sent||p.sending||(p.tidying=!1,o.ok&&o.value.issues?.length?p.edited?p.better=o.value:this.pack=this.view(o.value,"scribe",t):p.tidyFailed=o.ok?"no points":o.error)}useBetter(){this.pack?.better&&(this.pack=this.view(this.pack.better,"scribe",this.pack.duration))}resume(){this.pack=null,this.setPaused(!1)}stats(){return{remarks:this.remarks.length,clicks:this.events.filter(t=>t.type==="click").length,pages:new Set(this.events.map(t=>t.page).filter(Boolean)).size,shots:Object.values(this.shots).filter(t=>t.image).length}}message(t){const e=this.pack;if(!e)return"";const s=this.stats();return Y({id:this.taskId,title:this.title},this.previewUrl,{duration:e.duration,...s},{summary:e.summary,lines:e.points.filter(i=>i.include).map(i=>({severity:i.severity,title:i.title,detail:i.detail,where:i.el?`${i.el.label}${i.page?` on ${i.page}`:""}`:i.page?`the page ${i.page}`:null,quote:i.quote,at:m(i.t),shot:i.shotId?t?t.shots[i.shotId]??null:`(screenshot ${i.shotId})`:null})),errors:e.errors,openQuestions:e.openQuestions},t?.session??null)}async send(){const t=this.pack;if(!t||t.sending||t.sent)return!1;t.sending=!0,t.error=null;const e={};for(const n of t.points.filter(r=>r.include&&r.shotId)){const r=await this.outlined(n.shotId);r&&(e[n.shotId]=r)}const s=await this.call({action:"save",session:{task:{id:this.taskId,title:this.title},preview:this.previewUrl,startedAt:new Date(this.started).toISOString(),events:this.events,remarks:this.remarks,notes:this.notes,conversation:this.convo.map(({who:n,text:r,t:o})=>({who:n,text:r,at:m(o)}))},shots:e});if(!s.ok)return t.sending=!1,t.error=s.error,!1;const i=await C(this.message(s.value),this.token,this.taskId);return t.sending=!1,i.ok?(t.sent={dir:s.value.dir},!0):(t.error=i.error,!1)}}export{ct as C,mt as L,ut as M,gt as S,pt as a,dt as b,lt as c,kt as d,ft as l,m,w as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as F}from"./BUYzAikv.js";import"./DsnmJJEf.js";import{p as I,y as Q,f as S,g as t,a as P,b as W,h as c,e as p,r as f,s as m,o as k,t as Y,c as E}from"./CEfkcOME.js";import{s as h}from"./CPPNfCxh.js";import{i as G}from"./D4ikcNuh.js";import{s as C,d as v}from"./BMjXQSgN.js";import{p as J}from"./D42BPZCD.js";import{p as K}from"./MoV8bfgL.js";import{d as R,i as $,o as T,a as V,s as X}from"./CLuz13qg.js";import{l as Z}from"./DFoNnxZy.js";import{H as ee}from"./pY09PF5T.js";import{C as te}from"./iInrZOCY.js";function he(s){return s?.replace(/[\\/]+$/,"").split(/[\\/]/).pop()?.trim()||null}function ve(s){const e=s.split(/[^\p{L}\p{N}]+/u).filter(Boolean);return e.length?e.length===1?e[0].slice(0,2).toUpperCase():(e[0][0]+e[1][0]).toUpperCase():"?"}function be(s){let e=0;for(const i of s)e=e*31+i.codePointAt(0)>>>0;return e%6}const q=s=>s.status!=="queued"&&s.status!=="landed"&&s.status!=="closed",se=s=>s.status==="failed"||s.status==="blocked"||s.status==="lost"||s.pipeline?.outcome==="failed"||s.passage.steps.some(e=>e.failed);function xe(s){const e=s.filter(q),i=e.filter(se).length;return{percent:e.length?Math.round((e.length-i)/e.length*100):100,failing:i,inPlay:e.length}}function _e(s,e,i=4){return s.map(r=>{const a=e.filter(o=>o.projectId===r.id),n=a.some(F),l=a.some(o=>o.busy||q(o)&&o.status==="working");return{id:r.id,name:r.name,landed:a.length?Math.round(a.filter(o=>o.status==="landed").length/a.length*100):0,word:n?"Needs you":l?"Working":"Quiet",tone:n?"needs":l?"busy":"quiet",tasks:a.length}}).filter(r=>r.tasks>0).sort((r,a)=>a.tasks-r.tasks||r.name.localeCompare(a.name)).slice(0,i)}var ae=E('<a><span aria-hidden="true"><!></span> <span class="min-w-0 flex-1"><span class="flex items-baseline gap-1.5 text-sm"><span> </span> <span class="truncate text-muted-foreground"> </span></span> <span class="block truncate text-xs text-muted-foreground"> </span></span> <span> <!></span></a>');function we(s,e){I(e,!0);let i=J(e,"compact",3,!1);const r=c(()=>K.data.inbox),a=c(()=>$.view(t(r))?.available?T($.cards(t(r)),Z.now,e.filter):[]),n=c(()=>t(a).filter(d=>X(d)==="waiting").length),l=c(()=>t(a)[0]??null),o=c(()=>V(e.filter,t(a).length===1?t(a)[0].id:null));var z=Q(),A=S(z);{var B=d=>{var u=ae(),g=p(u),L=p(g);{let y=c(()=>i()?"size-3.5":"size-4");ee(L,{get class(){return t(y)}})}f(g);var b=m(g,2),x=p(b),_=p(x),M=k(_,!0),N=m(_,2),O=k(N,!0);f(x);var D=m(x,2),U=k(D,!0);f(b);var w=m(b,2),H=p(w,!0),j=m(H);te(j,{class:"size-4 transition-transform group-hover:translate-x-0.5","aria-hidden":"true"}),f(w),f(u),Y(y=>{C(u,"href",t(o)),v(u,1,`group flex w-full min-w-0 cursor-pointer items-center gap-3 rounded-lg border text-left transition-colors focus-visible:outline-2 focus-visible:outline-ring ${t(n)?"border-sea/40 bg-sea/[0.07] hover:bg-sea/[0.12]":"bg-card hover:bg-muted/60"} ${i()?"px-2.5 py-2":"px-3.5 py-2.5"}`),C(u,"data-decisions-badge",t(n)?"waiting":"open"),v(g,1,`grid shrink-0 place-items-center rounded-full ${t(n)?"bg-sea text-on-accent":"bg-muted text-foreground/70"} ${i()?"size-6":"size-7"}`),v(_,1,`shrink-0 font-semibold ${t(n)?"text-sea":""}`),h(M,y),h(O,t(n)?t(n)===t(a).length?t(a).length===1?"waiting on you":"all waiting on you":`${t(n)} waiting on you`:"Firstmate is handling"),C(D,"title",t(l).title),h(U,t(l).title),v(w,1,`flex shrink-0 items-center gap-0.5 text-sm font-medium ${t(n)?"text-sea":"text-muted-foreground"}`),h(H,t(n)?"Answer":"Open")},[()=>R(t(a).length)]),P(d,u)};G(A,d=>{t(l)&&d(B)})}P(s,z),W()}export{we as D,he as a,q as b,xe as c,_e as g,be as h,ve as i};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as vt}from"./B42VotjV.js";import{H as B,N as Y,r as me,n as O,i as Oe,b as T,s as $,a as Se,f as rt,g as Ie,c as oe,d as be,S as je,P as nt,p as I,e as bt,m as Et,h as kt,o as Ne,u as xe,j as At,w as St,k as Xe,l as X,q as It,t as at,v as Rt,x as Pt,y as ot}from"./DTmJMwRe.js";import{P as se,O as Lt,k as Tt}from"./CEfkcOME.js";class te{constructor(t,r){this.status=t,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class De{constructor(t,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=r}}class Ce extends Error{constructor(t,r,n){super(n),this.status=t,this.text=r}}const Ut=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,Ot=/^\/\((?:[^)]+)\)$/;function jt(e){const t=[];return{pattern:e==="/"||Ot.test(e)?/^\/$/:new RegExp(`^${xt(e).map(n=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(i)return t.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(a)return t.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const s=n.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Ee(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Ee(String.fromCharCode(...c.slice(2).split("-").map(y=>parseInt(y,16))));const l=Ut.exec(c),[,h,d,u,p]=l;return t.push({name:u,matcher:p,optional:!!h,rest:!!d,chained:d?f===1&&s[0]==="":!1}),d?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Ee(c)}).join("")}).join("")}/?$`),params:t}}function Nt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function xt(e){return e.slice(1).split("/").filter(Nt)}function Dt(e,t,r){const n={},i=e.slice(1),a=i.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const c=t[o];let f=i[o-s];if(c.chained&&c.rest&&s&&(f=i.slice(o-s,o+1).filter(l=>l).join("/"),s=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||r[c.matcher](f)){n[c.name]=f;const l=t[o+1],h=i[o+1];l&&!l.rest&&l.optional&&h&&c.chained&&(s=0),!l&&!h&&Object.keys(n).length===a.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return n}function Ee(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ct({nodes:e,server_loads:t,dictionary:r,matchers:n}){const i=new Set(t);return Object.entries(r).map(([o,[c,f,l]])=>{const{pattern:h,params:d}=jt(o),u={id:o,exec:p=>{const y=h.exec(p);if(y)return Dt(y,d,n)},errors:[1,...l||[]].map(p=>e[p]),layouts:[0,...f||[]].map(s),leaf:a(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function s(o){return o===void 0?o:[i.has(o),e[o]]}}function st(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ze(e,t,r=JSON.stringify){const n=r(t);try{sessionStorage[e]=n}catch{}}const Bt=-1,Mt=-2,$t=-3,Ft=-4,qt=-5,Vt=-6,Ht=-7,it=2**32-1,Re=it-1;function Yt(e){return!(!Number.isInteger(e)||e<0||e>Re)}function Kt(e){return!(!Number.isInteger(e)||e<0||e>it)}function Gt(e){return Uint8Array.fromBase64(e).buffer}function Xt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function zt(e){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}const Wt=typeof Uint8Array.fromBase64=="function",Jt=typeof process=="object"&&process.versions?.node!==void 0,Zt=Wt?Gt:Jt?Xt:zt;function Qt(e,t){return e}const er=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,We=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,tr={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,r,n)=>{try{er.call(t)}catch(a){if(!We)throw a;We.call(t)}const i=globalThis[e];return r!==void 0?new i(t,r,n):new i(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[Re]=void 0,delete t[Re],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,r)=>{e[t]=r},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,r)=>{e.set(t,r)}},rr=Object.freeze(tr);function nr(e,t,r){const n=Qt(rr);if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const i=e,a=Array(i.length);let s=null;function o(c,f=!1){if(c===Bt)return n.fromPrimitive(void 0);if(c===$t)return n.fromPrimitive(NaN);if(c===Ft)return n.fromPrimitive(1/0);if(c===qt)return n.fromPrimitive(-1/0);if(c===Vt)return n.fromPrimitive(-0);if(f||typeof c!="number")throw new Error("Invalid input");if(c in a)return a[c];if(c>=i.length)throw new Error("Invalid input");const l=i[c];if(!l||typeof l!="object")a[c]=n.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){const h=l[0],d=t&&Object.hasOwn(t,h)?t[h]:void 0;if(d){let u=l[1];if(typeof u!="number"&&(u=i.push(l[1])-1),Object.hasOwn(a,u))return a[c]=d(a[u]);if(s??=new Set,s.has(u))throw new Error("Invalid circular reference");return s.add(u),a[c]=d(o(u)),s.delete(u),a[c]}switch(h){case"Date":a[c]=n.fromISOString(l[1]);break;case"Set":const u=n.createSet();a[c]=u;for(let _=1;_<l.length;_+=1)n.addValue(u,o(l[_]));break;case"Map":const p=n.createMap();a[c]=p;for(let _=1;_<l.length;_+=2)n.addEntry(p,o(l[_]),o(l[_+1]));break;case"RegExp":a[c]=n.fromRegExpInfo(l[1],l[2]);break;case"Object":{const _=l[1];if(typeof i[_]=="object"&&i[_][0]!=="BigInt")throw new Error("Invalid input");a[c]=n.box(o(_));break}case"BigInt":a[c]=n.fromPrimitive(BigInt(l[1]));break;case"null":const y=n.createNullPrototypeObject();a[c]=y;for(let _=1;_<l.length;_+=2){const m=l[_];if(typeof m!="string")throw new Error("Cannot parse an object with a non-string key");if(m==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(y,m,o(l[_+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const _=o(l[1]);a[c]=n.fromViewInfo(h,_,l[2],l[3]);break}case"ArrayBuffer":{const _=l[1];if(typeof _!="string")throw new Error("Invalid ArrayBuffer encoding");a[c]=n.fromArrayBuffer(Zt(_));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{a[c]=n.fromStringValue(h,l[1]);break}default:throw new Error(`Unknown type ${h}`)}}else if(l[0]===Ht){const h=l[1];if(!Kt(h))throw new Error("Invalid input");const d=n.createSparseArray(h);a[c]=d;for(let u=2;u<l.length;u+=2){const p=l[u];if(!Yt(p)||p>=h)throw new Error("Invalid input");n.set(d,p,o(l[u+1]))}}else{const h=n.createArray(l.length);a[c]=h;for(let d=0;d<l.length;d+=1){const u=l[d];u!==Mt&&n.set(h,d,o(u))}}else{const h=n.createObject();a[c]=h;for(const d of Object.keys(l)){if(d==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(h,d,o(l[d]))}}return a[c]}return o(0)}function ar(e){return e.filter(t=>t!=null)}const or="x-sveltekit-invalidated",sr="x-sveltekit-trailing-slash";function F(e,t){return e+"/"+t}function ie(e){return e instanceof te||e instanceof Ce?e.status:500}function ir(e){return e instanceof Ce?e.text:"Internal Error"}const cr="/__data.json",lr=".html__data.json";function fr(e){return e.endsWith(".html")?e.replace(/\.html$/,lr):e.replace(/\/$/,"")+cr}const Je={spanContext(){return ur},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},ur={traceId:"",spanId:"",traceFlags:0};async function*dr(e,t){let r=!1,n="";const i=new TextDecoder;for(;;){let a=n.indexOf(t);for(;a!==-1;)yield n.slice(0,a),n=n.slice(a+t.length),a=n.indexOf(t);if(r){n&&(yield n);return}const s=await e.read();r=s.done,s.value&&(n+=i.decode(s.value,{stream:!0})),r&&(n+=i.decode())}}async function*hr(e){for await(const t of dr(e,`
|
|
2
|
+
`)){const r=t.trim();r&&(yield JSON.parse(r))}}const{onMount:pr}=vt,_r=Tt??(e=>e()),mr=new Set(["icon","shortcut icon","apple-touch-icon"]);let z=null;const D=st(ot)??{},Z=st(at)??{},x={url:Xe({}),page:Xe({}),navigating:St(null),updated:At()};function Be(e){D[e]=$()}function gr(e,t){let r=e+1;for(;D[r];)delete D[r],r+=1;for(r=t+1;Z[r];)delete Z[r],r+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(O)}async function ct(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}let Me,Pe,ce,N,Le,E;const le=[],fe=[];let L=null;function Q(){L?.fork?.then(e=>e?.discard()),L=null,q={element:void 0,href:void 0}}const ae=new Map,$e=new Set,lt=new Set,V=new Set;let g={branch:[],error:null,url:null,nav:null},Fe=!1,ue=!1,Ze=!0,ee=!1,W=!1,ft=!1,re=!1,ge,A,R,U;const J=new Set;let ke;const de=new Map,he=new Map;async function Nr(e,t,r){if(globalThis.__sveltekit_1mrca4f.data){const{q:a={},p:s={},l:o={},f:c={}}=globalThis.__sveltekit_1mrca4f.data;for(const f in a)a[f];for(const f in o)o[f];for(const f in c)c[f];for(const f in s)s[f]}document.URL!==location.href&&(location.href=location.href),E=e,await e.hooks.init?.(),Me=Ct(e),N=document.documentElement,Le=t,Pe=e.nodes[0],ce=e.nodes[1],Pe(),ce(),A=history.state?.[B],R=history.state?.[Y],A||(A=R=Date.now(),history.replaceState({...history.state,[B]:A,[Y]:R},""));const n=D[A];function i(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(i(),await Rr(Le,r)):(await H({type:"enter",url:me(E.hash?Tr(new URL(location.href)):location.href),replace_state:!0}),i()),Ir()}async function yr(e=!0,t=!0){if(await(ke||=Promise.resolve()),!ke)return;ke=null;const r=U={},n=await ne(g.url,!0);Q();const i=new Map;if(re){for(const s of de.values())for(const{resource:o}of s.values())o.refresh();for(const[s,o]of he)for(const[c,{resource:f}]of o){const l=F(s,c),h=f.reconnect();h.catch(O),i.set(l,h)}}if(e){const s=I.state,o=n&&await Ye(n);if(!o||r!==U)return;if(o.type==="redirect")return qe(new URL(o.location,g.url).href,{replaceState:!0},1,r);t||(o.props.page.state=s),xe(o.props.page),g={...o.state,nav:g.nav},Te(),ge.$set(o.props)}else Te();const a=[];for(const s of de.values())for(const{resource:o}of s.values())a.push(o);for(const[s,o]of he)for(const c of o.keys()){const f=F(s,c),l=i.get(f);l&&a.push(l)}await Promise.all(a).catch(O)}function Te(){le.length=0,re=!1}function ut(e){fe.some(t=>t?.snapshot)&&(Z[e]=fe.map(t=>t?.snapshot?.capture()))}function dt(e){Z[e]?.forEach((t,r)=>{fe[r]?.snapshot?.restore(t)})}function Qe(){Be(A),ze(ot,D),ut(R),ze(at,Z)}async function qe(e,t,r,n){let i,a;t.invalidateAll&&Q(),await H({type:"goto",url:me(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{if(t.invalidateAll){re=!0,i=new Set;for(const[s,o]of de)for(const[c,f]of o)f.resource?.reset(),i.add(F(s,c));a=new Set;for(const[s,o]of he)for(const c of o.keys())a.add(F(s,c))}t.invalidate&&t.invalidate.forEach(Sr)}}),t.invalidateAll&&se().then(se).then(()=>{for(const[s,o]of de)for(const[c,{resource:f}]of o)i?.has(F(s,c))&&f.start();for(const[s,o]of he)for(const[c,{resource:f}]of o)a?.has(F(s,c))&&f.reconnect()})}async function wr(e){if(e.id!==L?.id){Q();const t={};J.add(t),L={id:e.id,token:t,promise:Ye({...e,preload:t}).then(r=>(J.delete(t),r.type==="loaded"&&r.state.error&&Q(),r)),fork:null}}return L.promise}async function Ae(e){const t=(await ne(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function ht(e,t,r){const n={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};if(g={...e.state,nav:n},xe(e.props.page),ge=new E.root({target:t,props:{...e.props,stores:x,components:fe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const i={from:null,to:{...n,scroll:D[A]??$()},willUnload:!1,type:"enter",complete:Promise.resolve()};V.forEach(a=>a(i))}dt(R),ue=!0}async function pe({url:e,params:t,branch:r,errors:n,status:i,error:a,route:s,form:o}){let c="never";if(T&&(e.pathname===T||e.pathname===T+"/"))c="always";else for(const p of r)p?.slash!==void 0&&(c=p.slash);e.pathname=kt(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:r,error:a,route:s},props:{constructors:ar(r).map(p=>p.node.component),page:we(I)}};o!==void 0&&(f.props.form=o);let l={},h=!I,d=0;for(let p=0;p<Math.max(r.length,g.branch.length);p+=1){const y=r[p],_=g.branch[p];y?.data!==_?.data&&(h=!0),y&&(l={...l,...y.data},h&&(f.props[`data_${d}`]=l),d+=1)}return(!g.url||e.href!==g.url.href||g.error!==a||o!==void 0&&o!==I.form||h)&&(f.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:i,url:new URL(e),form:o??null,data:h?l:I.data}),f}async function Ve({loader:e,parent:t,url:r,params:n,route:i,server_data_node:a}){let s=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if(f.universal?.load){let l=function(...d){for(const u of d){const{href:p}=new URL(u,r);c.dependencies.add(p)}};const h={tracing:{enabled:!1,root:Je,current:Je},route:new Proxy(i,{get:(d,u)=>(o&&(c.route=!0),d[u])}),params:new Proxy(n,{get:(d,u)=>(o&&c.params.add(u),d[u])}),data:a?.data??null,url:Et(r,()=>{o&&(c.url=!0)},d=>{o&&c.search_params.add(d)},E.hash),async fetch(d,u){d instanceof Request&&(u={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length>0?d?.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...u});const{resolved:p,promise:y}=pt(d,u,r);return o&&l(p.href),y},setHeaders:O,depends:l,parent(){return o&&(c.parent=!0),t()},untrack(d){o=!1;try{return d()}finally{o=!0}}};s=await f.universal.load.call(null,h)??null}return{node:f,loader:e,server:a,universal:f.universal?.load?{type:"data",data:s,uses:c}:null,data:s??a?.data??null,slash:f.universal?.trailingSlash??a?.slash}}function pt(e,t,r){let n=e instanceof Request?e.url:e;const i=new URL(n,r);i.origin===r.origin&&(n=i.href.slice(r.origin.length));const a=ue?Rt(n,i.href,t):Pt(n,t);return{resolved:i,promise:a}}function et(e,t,r,n,i,a){if(re)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&r)return!0;for(const s of i.search_params)if(n.has(s))return!0;for(const s of i.params)if(a[s]!==g.params[s])return!0;for(const s of i.dependencies)if(le.some(o=>o(new URL(s))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function vr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const i=e.searchParams.getAll(n),a=t.searchParams.getAll(n);i.every(s=>a.includes(s))&&a.every(s=>i.includes(s))&&r.delete(n)}return r}function tt({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:we(I),constructors:[]}}}async function Ye({id:e,invalidating:t,url:r,params:n,route:i,preload:a}){if(L?.id===e)return J.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:c}=i,f=[...o,c];s.forEach(w=>w?.().catch(O)),f.forEach(w=>w?.[1]().catch(O));let l=null;const h=g.url?e!==_e(g.url):!1,d=g.route?i.id!==g.route.id:!1,u=vr(g.url,r);let p=!1;{const w=f.map((v,k)=>{const S=g.branch[k],b=!!v?.[0]&&(S?.loader!==v[1]||et(p,d,h,u,S.server?.uses,n));return b&&(p=!0),b});if(w.some(Boolean)){try{l=await gt(r,w)}catch(v){const k=await M(v,{url:r,params:n,route:{id:e}});return a&&J.has(a)?tt({error:k,url:r,params:n,route:i}):ye({status:ie(v),error:k,url:r,route:i})}if(l.type==="redirect")return l}}const y=l?.nodes;let _=!1;const m=f.map(async(w,v)=>{if(!w)return;const k=g.branch[v],S=y?.[v];if((!S||S.type==="skip")&&w[1]===k?.loader&&!et(_,d,h,u,k.universal?.uses,n))return k;if(_=!0,S?.type==="error")throw S;return Ve({loader:w[1],url:r,params:n,route:i,parent:async()=>{const j={};for(let C=0;C<v;C+=1)Object.assign(j,(await m[C])?.data);return j},server_data_node:He(S===void 0&&w[0]?{type:"skip"}:S??null,w[0]?k?.server:void 0)})});for(const w of m)w.catch(O);const P=[];for(let w=0;w<f.length;w+=1)if(f[w])try{P.push(await m[w])}catch(v){if(v instanceof De)return{type:"redirect",location:v.location};if(a&&J.has(a))return tt({error:await M(v,{params:n,url:r,route:{id:i.id}}),url:r,params:n,route:i});let k=ie(v),S;if(y?.includes(v))k=v.status??k,S=v.error;else if(v instanceof te)S=v.body;else{if(await x.updated.check())return await ct(),await K(r);S=await M(v,{params:n,url:r,route:{id:i.id}})}const b=await br(w,P,s);return b?pe({url:r,params:n,branch:P.slice(0,b.idx).concat(b.node),errors:s,status:k,error:S,route:i}):await mt(r,{id:i.id},S,k)}else P.push(void 0);return pe({url:r,params:n,branch:P,errors:s,status:200,error:null,route:i,form:t?void 0:null})}async function br(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ye({status:e,error:t,url:r,route:n}){const i={};let a=null;if(E.server_loads[0]===0)try{const o=await gt(r,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;a=o.nodes[0]??null}catch(o){if(!(o instanceof te&&o.status===404)&&(r.origin!==Ne||r.pathname!==location.pathname||Fe))return await K(r)}try{const s=await Ve({loader:Pe,url:r,params:i,route:n,parent:()=>Promise.resolve({}),server_data_node:He(a)}),o={node:await ce(),loader:ce,universal:null,server:null,data:null};return pe({url:r,params:i,branch:[s,o],status:e,error:t,errors:[],route:null})}catch(s){if(s instanceof De){await qe(new URL(s.location,location.href),{},0);return}const o=await E.get_error_template(),c=await M(s,{url:r,params:i,route:n}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),l=o({status:e,message:f}),h=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(h.head),document.head),document.documentElement.replaceChild(document.adoptNode(h.body),document.body),s}}async function Er(e){const t=e.href;if(ae.has(t))return ae.get(t);let r;try{const n=(async()=>{let i=await E.hooks.reroute({url:new URL(e),fetch:async(a,s)=>pt(a,s,e).promise})??e;if(typeof i=="string"){const a=new URL(e);E.hash?a.hash=i:a.pathname=i,i=a}return i})();ae.set(t,n),r=await n}catch{ae.delete(t);return}return r}async function ne(e,t){if(e&&!Oe(e,T,E.hash)){const r=await Er(e);if(!r)return;const n=kr(r);for(const i of Me){const a=i.exec(n);if(a)return{id:_e(e),invalidating:t,route:i,params:bt(a),url:e}}}}function kr(e){return It(E.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(T.length))||"/"}function _e(e){return(E.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function _t({url:e,type:t,intent:r,delta:n,event:i,scroll:a}){let s=!1;const o=Ge(g,r,e,t,a??null);n!==void 0&&(o.navigation.delta=n),i!==void 0&&(o.navigation.event=i);const c={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return ee||$e.forEach(f=>f(c)),s?null:o}async function H({type:e,url:t,popped:r,keepfocus:n,noscroll:i,replace_state:a,state:s={},redirect_count:o=0,nav_token:c={},accept:f=O,block:l=O,event:h}){const d=U;U=c;const u=await ne(t,!1),p=e==="enter"?Ge(g,u,t,e):_t({url:t,type:e,delta:r?.delta,intent:u,scroll:r?.scroll,event:h});if(!p){l(),U===c&&(U=d);return}const y=A,_=R;f(),ee=!0,ue&&p.navigation.type!=="enter"&&x.navigating.set(Se.current=p.navigation);let m=u&&await Ye(u);if(!m){if(Oe(t,T,E.hash))return await K(t,a);m=await mt(t,{id:null},await M(new Ce(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,a)}if(t=u?.url||t,U!==c){p.reject(new Error("navigation aborted"));return}if(!m)return;if(m.type==="redirect"){if(o<20){await H({type:e,url:new URL(m.location,t),popped:r,keepfocus:n,noscroll:i,replace_state:a,state:s,redirect_count:o+1,nav_token:c}),p.fulfil(void 0);return}if(m=await ye({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!m)return}else if(m.props.page.status>=400&&await x.updated.check())return await ct(),await K(t,a);if(Te(),Be(y),ut(_),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),s=r?r.state:s,!r){const b=a?0:1,j={[B]:A+=b,[Y]:R+=b,[je]:s};(a?history.replaceState:history.pushState).call(history,j,"",t),a||gr(A,R)}const P=u&&L?.id===u.id?L.fork:null;L?.fork&&!P?Q():(L=null,q={element:void 0,href:void 0}),m.props.page.state=s;let w;if(ue){const b=(await Promise.all(Array.from(lt,G=>G(p.navigation)))).filter(G=>typeof G=="function");if(b.length>0){let G=function(){b.forEach(ve=>{V.delete(ve)})};b.push(G),b.forEach(ve=>{V.add(ve)})}const j=p.navigation.to;g={...m.state,nav:{params:j.params,route:j.route,url:j.url}},m.props.page&&(m.props.page.url=t),!n&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const C=P&&await P;C?w=C.commit():(z=null,ge.$set(m.props),z&&Object.assign(m.props.page,z),xe(m.props.page),w=Lt?.()),ft=!0}else await ht(m,Le,!1);const{activeElement:v}=document;if(await w,await se(),await se(),U!==c){p.reject(new Error("navigation aborted"));return}m.props.page&&z&&Object.assign(m.props.page,z);let k=null;if(Ze){const b=r?r.scroll:i?$():null;b?scrollTo(b.x,b.y):(k=t.hash&&document.getElementById(wt(t)))?k.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==v&&document.activeElement!==document.body;!n&&!S&&Lr(t,!k),Ze=!0,ee=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=$()),V.forEach(b=>b(p.navigation)),e==="popstate"&&dt(R),x.navigating.set(Se.current=null)}async function mt(e,t,r,n,i){return e.origin===Ne&&e.pathname===location.pathname&&!Fe?await ye({status:n,error:r,url:e,route:t}):await K(e,i)}let q={element:void 0,href:void 0};function Ar(){let e,t;N.addEventListener("mousemove",s=>{const o=s.target;clearTimeout(e),e=setTimeout(()=>{i(o,X.hover)},20)});function r(s){s.defaultPrevented||i(s.composedPath()[0],X.tap)}N.addEventListener("mousedown",r),N.addEventListener("touchstart",r,{passive:!0});const n=new IntersectionObserver(s=>{for(const o of s)o.isIntersecting&&(Ae(new URL(o.target.href)),n.unobserve(o.target))},{threshold:0});async function i(s,o){const c=rt(s,N),f=c===q.element&&c?.href===q.href&&o>=t;if(!c||f)return;const{url:l,external:h,download:d}=Ie(c,T,E.hash);if(h||d)return;const u=oe(c),p=l&&_e(g.url)===_e(l);if(!(u.reload||p))if(o<=u.preload_data){q={element:c,href:c.href},t=X.tap;const y=await ne(l,!1);if(!y)return;wr(y)}else o<=u.preload_code&&(q={element:c,href:c.href},t=o,Ae(l))}function a(){n.disconnect();for(const s of N.querySelectorAll("a")){const{url:o,external:c,download:f}=Ie(s,T,E.hash);if(c||f)continue;const l=oe(s);l.reload||(l.preload_code===X.viewport&&n.observe(s),l.preload_code===X.eager&&Ae(o))}}V.add(a),a()}function M(e,t){if(e instanceof te)return e.body;const r=ie(e),n=ir(e);return E.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function Ke(e,t){pr(()=>(e.add(t),()=>{e.delete(t)}))}function xr(e){Ke(V,e)}function Dr(e){Ke($e,e)}function Cr(e){Ke(lt,e)}function Br(e,t={}){return e=new URL(me(e)),e.origin!==Ne?Promise.reject(new Error("goto: invalid URL")):qe(e,t,0)}function Sr(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(r=>r.href===t)}}function Mr(){return re=!0,yr()}function $r(e,t){const r={[B]:A,[Y]:R,[nt]:I.url.href,[je]:t};history.replaceState(r,"",me(e)),I.state=t,ge.$set({page:_r(()=>we(I))})}function Ir(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Qe(),!ee){const n=Ge(g,void 0,null,"leave"),i={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};$e.forEach(a=>a(i))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Qe()}),navigator.connection?.saveData||Ar(),N.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=rt(t.composedPath()[0],N);if(!r)return;const{url:n,external:i,target:a,download:s}=Ie(r,T,E.hash);if(!n)return;if(a==="_parent"||a==="_top"){if(window.parent!==window)return}else if(a&&a!=="_self")return;const o=oe(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||s)return;const[f,l]=(E.hash?n.hash.replace(/^#/,""):n.href).split("#"),h=f===be(location);if(i||o.reload&&(!h||!l)){_t({url:n,type:"link",event:t})?ee=!0:t.preventDefault();return}if(l!==void 0&&h){const[,d]=g.url.href.split("#");if(d===l){if(t.preventDefault(),l===""||l==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=r.ownerDocument.getElementById(decodeURIComponent(l));u&&(u.scrollIntoView(),u.focus())}return}if(W=!0,Be(A),e(n),!o.replace_state)return;W=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await H({type:"link",url:n,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??n.href===location.href,event:t})}),N.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const s=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(Oe(s,T,!1))return;const o=t.target,c=oe(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(o,n);s.search=new URLSearchParams(f).toString(),H({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[B]){const r=t.state[B];if(U={},r===A)return;const n=D[r],i=t.state[je]??{},a=new URL(t.state[nt]??location.href),s=t.state[Y],o=g.url?be(location)===be(g.url):!1;if(s===R&&(ft||o)){i!==I.state&&(I.state=i),e(a),D[A]=$(),n&&scrollTo(n.x,n.y),A=r;return}const f=r-A;await H({type:"popstate",url:a,popped:{state:i,scroll:n,delta:f},accept:()=>{A=r,R=s},block:()=>{history.go(-f)},nav_token:U,event:t})}else if(!W){const r=new URL(location.href);e(r),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[B]:++A,[Y]:R},"",location.href))});for(const t of document.querySelectorAll("link"))mr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&x.navigating.set(Se.current=null)});function e(t){g.url=I.url=t,x.page.set(we(I)),x.page.notify()}}async function Rr(e,{status:t=200,error:r,node_ids:n,params:i,route:a,server_route:s,data:o,form:c}){Fe=!0;const f=new URL(location.href);let l;({params:i={},route:a={id:null}}=await ne(f,!1)||{}),l=Me.find(({id:u})=>u===a.id);let h,d=!0;try{const u=n.map(async(y,_)=>{const m=o[_];return m?.uses&&(m.uses=yt(m.uses)),Ve({loader:E.nodes[y],url:f,params:i,route:a,parent:async()=>{const P={};for(let w=0;w<_;w+=1)Object.assign(P,(await u[w]).data);return P},server_data_node:He(m)})}),p=await Promise.all(u);if(l){const y=l.layouts;for(let _=0;_<y.length;_++)y[_]||p.splice(_,0,void 0)}h=await pe({url:f,params:i,branch:p,status:t,error:r,errors:l?.errors,form:c,route:l??null})}catch(u){if(u instanceof De)return await K(new URL(u.location,location.href));h=await ye({status:ie(u),error:await M(u,{url:f,params:i,route:a}),url:f,route:a}),e.textContent="",d=!1}h&&(h.props.page&&(h.props.page.state={}),await ht(h,e,d))}async function gt(e,t){const r=new URL(e);r.pathname=fr(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(sr,"1"),r.searchParams.append(or,t.map(a=>a?"1":"0").join(""));const n=window.fetch,i=await n(r.href,{});if(!i.ok){let a;throw i.headers.get("content-type")?.includes("application/json")?a=await i.json():i.status===404?a="Not Found":i.status===500&&(a="Internal Error"),new te(i.status,a)}return new Promise((a,s)=>{Pr(a,i).catch(s)})}async function Pr(e,t){const r=t.body.getReader(),n=new Map;function i(a){return nr(a,{...E.decoders,Promise:s=>new Promise((o,c)=>{n.set(s,{fulfil:o,reject:c})})})}for await(const a of hr(r)){if(a.type==="redirect")return e(a);if(a.type==="data")a.nodes?.forEach(s=>{s?.type==="data"&&(s.uses=yt(s.uses),s.data=i(s.data))}),e(a);else if(a.type==="chunk"){const{id:s,data:o,error:c}=a,f=n.get(s);n.delete(s),c?f.reject(i(c)):f.fulfil(i(o))}}}function yt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ue=!1;function Lr(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=wt(e);if(n&&document.getElementById(n)){const{x:a,y:s}=$();setTimeout(()=>{const o=history.state;Ue=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(a,s),Ue=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const i=getSelection();if(i&&i.type!=="None"){const a=[];for(let s=0;s<i.rangeCount;s+=1)a.push(i.getRangeAt(s));setTimeout(()=>{if(i.rangeCount===a.length){for(let s=0;s<i.rangeCount;s+=1){const o=a[s],c=i.getRangeAt(s);if(o.commonAncestorContainer!==c.commonAncestorContainer||o.startContainer!==c.startContainer||o.endContainer!==c.endContainer||o.startOffset!==c.startOffset||o.endOffset!==c.endOffset)return}i.removeAllRanges()}})}}}function Ge(e,t,r,n,i=null){let a,s;const o=new Promise((f,l)=>{a=f,s=l});return o.catch(O),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:$()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:i},willUnload:!t,type:n,complete:o},fulfil:a,reject:s}}function we(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Tr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function wt(e){let t;if(E.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{xr as a,Dr as b,Br as g,Mr as i,Cr as o,$r as r,Nr as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{p as G,e as q,t as l,a as d,g as o,r as b,s as z,b as I,h,o as x,c as g}from"./CEfkcOME.js";import{d as J,s as _,a as K}from"./CPPNfCxh.js";import{i as S}from"./D4ikcNuh.js";import{e as M,d as k,s as c,h as N}from"./BMjXQSgN.js";import{p as u}from"./D42BPZCD.js";import{l as O}from"./DFoNnxZy.js";import{a as P,c as Q}from"./CSzwlAcc.js";const R={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},j={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var U=g("<li></li>"),V=g("<span> </span>"),X=g('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),Y=g('<span class="text-foreground/80"> </span>'),Z=g('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function ie(F,a){G(a,!0);let H=u(a,"busy",3,!1),y=u(a,"lead",3,null),L=u(a,"leadClass",3,""),T=u(a,"size",3,"card"),n=u(a,"questions",3,null);const f=h(()=>a.pipeline.steps.map(e=>({s:e,tone:P(e,a.pipeline)}))),w=h(()=>Q(a.pipeline,O.now)),W=h(()=>`Checks: ${o(f).map(({s:e,tone:t})=>`${e.label} ${j[t]}`).join(", ")}`);var p=Z(),i=q(p);M(i,21,()=>o(f),({s:e,tone:t})=>e.key,(e,t)=>{let r=()=>o(t).s,s=()=>o(t).tone;var v=U();l(()=>{k(v,1,`h-1 rounded-full ${R[s()]??""} ${H()&&(s()==="active"||s()==="fixing")?"motion-safe:animate-pulse":""}`),c(v,"title",`${r().label??""}: ${j[s()]??""}`)}),d(e,v)}),b(i);var m=z(i,2),C=q(m);{var A=e=>{var t=V(),r=x(t);l(()=>{k(t,1,`font-medium ${L()??""}`),_(r,`${y()??""}.`)}),d(e,t)};S(C,e=>{y()&&e(A)})}var B=z(C,2);{var D=e=>{var t=X(),r=x(t,!0);l(()=>{c(t,"aria-expanded",n().expanded),c(t,"aria-controls",n().controls),c(t,"title",n().expanded?"Hide the questions":"Show the questions"),_(r,o(w))}),K("click",t,function(...s){n().toggle?.apply(this,s)}),d(e,t)},E=e=>{var t=Y(),r=x(t,!0);l(()=>_(r,o(w))),d(e,t)};S(B,e=>{n()?e(D):e(E,-1)})}b(m),b(p),l(()=>{N(i,`grid-template-columns: repeat(${o(f).length??""}, minmax(0, 1fr))`),c(i,"aria-label",o(W)),k(m,1,`tabular line-clamp-2 text-muted-foreground ${T()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),d(F,p),I()}J(["click"]);export{ie as C};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as y}from"./B42VotjV.js";import{q as b,b8 as I,i as u,g as f,m as d}from"./CEfkcOME.js";const h=[];function k(e,t=b){let n=null;const r=new Set;function s(o){if(I(e,o)&&(e=o,n)){const c=!h.length;for(const l of r)l[1](),h.push(l,e);if(c){for(let l=0;l<h.length;l+=2)h[l][0](h[l+1]);h.length=0}}}function i(o){s(o(e))}function a(o,c=b){const l=[o,c];return r.add(l),r.size===1&&(n=t(s,i)||b),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:a}}const L="1795000114361";new URL("sveltekit-internal://");function K(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function B(e){return e.split("%25").map(decodeURI).join("%25")}function D(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function J({href:e}){return e.split("#")[0]}function W(e,t,n,r=!1){const s=new URL(e);Object.defineProperty(s,"searchParams",{value:new Proxy(s.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return(l,...N)=>(n(l),a[o](l,...N));t();const c=Reflect.get(a,o);return typeof c=="function"?c.bind(a):c}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const a of i)Object.defineProperty(s,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return s}function x(){}function P(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let s=r.length;for(;s;)t=t*33^r[--s]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function $(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const q=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&p.delete(w(e)),q(e,t));const p=new Map;function X(e,t){const n=w(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:s,...i}=JSON.parse(r.textContent);r.getAttribute("data-b64")!==null&&(s=$(s));const o=r.getAttribute("data-ttl");return o&&p.set(n,{body:s,init:i,ttl:1e3*Number(o)}),Promise.resolve(new Response(s,i))}return window.fetch(e,t)}function M(e,t,n){if(p.size>0){const r=w(e,n),s=p.get(r);if(s){if(performance.now()<s.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(s.body,s.init);p.delete(r)}}return window.fetch(t,n)}function w(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const s=[];t.headers&&s.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&s.push(t.body),r+=`[data-hash="${P(...s)}"]`}return r}const C=globalThis.__sveltekit_1mrca4f?.base??"",V=globalThis.__sveltekit_1mrca4f?.assets??C??"",F="sveltekit:snapshot",Q="sveltekit:scroll",Z="sveltekit:states",ee="sveltekit:pageurl",te="sveltekit:history",ne="sveltekit:navigation",v={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},E=location.origin;function re(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function se(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const S={...v,"":v.hover};function T(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function oe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=T(e)}}function ae(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!s||j(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=r?.origin===E&&e.hasAttribute("download");return{url:r,external:i,target:s,download:a}}function ie(e){let t=null,n=null,r=null,s=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=g(o,"preload-code")),s===null&&(s=g(o,"preload-data")),t===null&&(t=g(o,"keepfocus")),n===null&&(n=g(o,"noscroll")),i===null&&(i=g(o,"reload")),a===null&&(a=g(o,"replacestate")),o=T(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:S[r??"off"],preload_data:S[s??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(a)}}function ce(e){const t=k(e);let n=!0;function r(){n=!0,t.update(a=>a)}function s(a){n=!1,t.set(a)}function i(a){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&a(o=c)})}return{notify:r,set:s,subscribe:i}}const U={v:x};function le(){const{set:e,subscribe:t}=k(!1);let n;async function r(){clearTimeout(n);try{const s=await fetch(`${V}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!s.ok)return!1;const a=(await s.json()).version!==L;return a&&(e(!0),U.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:r}}function j(e,t,n){return e.origin!==E||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function ue(e){}const O=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...O];const G=new Set([...O]);[...G];let m,R,_;const Y=y.toString().includes("$$")||/function \w+\(\) \{\}/.test(y.toString()),A="a:";Y?(m={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(A)},R={current:null},_={current:!1}):(m=new class{#e=u({});get data(){return f(this.#e)}set data(t){d(this.#e,t)}#t=u(null);get form(){return f(this.#t)}set form(t){d(this.#t,t)}#n=u(null);get error(){return f(this.#n)}set error(t){d(this.#n,t)}#r=u({});get params(){return f(this.#r)}set params(t){d(this.#r,t)}#s=u({id:null});get route(){return f(this.#s)}set route(t){d(this.#s,t)}#o=u({});get state(){return f(this.#o)}set state(t){d(this.#o,t)}#a=u(-1);get status(){return f(this.#a)}set status(t){d(this.#a,t)}#i=u(new URL(A));get url(){return f(this.#i)}set url(t){d(this.#i,t)}},R=new class{#e=u(null);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},_=new class{#e=u(!1);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},U.v=()=>_.current=!0);function ge(e){Object.assign(m,e)}export{te as H,ne as N,ee as P,Z as S,R as a,C as b,ie as c,J as d,D as e,oe as f,ae as g,K as h,j as i,le as j,ce as k,v as l,W as m,x as n,E as o,m as p,B as q,re as r,se as s,F as t,ge as u,M as v,k as w,X as x,Q as y,ue as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as r,b as l}from"./nqsqhzVw.js";const f=7;function h(e,t,o){const s=e.filter(n=>!r(n)&&l(n,o)),d=o-f*864e5,a=t.filter(n=>Date.parse(n.decidedAt)>=d).sort((n,i)=>Date.parse(i.decidedAt)-Date.parse(n.decidedAt));return{open:s,made:a,count:s.length+a.length}}const c=e=>e.length>90?e.slice(0,87).trimEnd()+"…":e;function k(e){const t=e.calls[0],o=`I'd decide differently on "${c(t?.question??e.taskTitle)}" (your call: ${t?.verdict??e.verdict}). `;return`/?chat=${encodeURIComponent(e.taskId)}&draft=${encodeURIComponent(o)}`}const p=e=>`/?decision=${encodeURIComponent(e)}`;function u(e){const t=e.secondMate?.taskId?`${e.secondMate.taskId}@${e.secondMate.id}`:e.taskId,s=`About decision ${e.kind==="hold"?e.key:`${e.taskId}, key ${e.key}`} (“${c(e.title)}”), not an answer yet: `;return`/?chat=${encodeURIComponent(t)}&draft=${encodeURIComponent(s)}`}export{k as a,u as c,p as d,h};
|
|
Binary file
|
|
Binary file
|