@madarco/agentbox 0.33.0 → 0.33.1
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/CHANGELOG.md +39 -0
- package/dist/_cloud-attach-KEFEQ2YH.js +32 -0
- package/dist/{chunk-L55DASHB.js → chunk-2SKTXZGX.js} +8 -8
- package/dist/{chunk-YZZKWZO2.js → chunk-3PTSPFR6.js} +7 -1
- package/dist/chunk-3PTSPFR6.js.map +1 -0
- package/dist/{chunk-BKOKMZNK.js → chunk-3QTWB66F.js} +6 -6
- package/dist/{chunk-VSWIJHCH.js → chunk-5ZBNVZSU.js} +3 -3
- package/dist/{chunk-IX7S6NJR.js → chunk-72LKKHPI.js} +4 -4
- package/dist/{chunk-AXAMPAP3.js → chunk-7ELRQNNH.js} +3 -3
- package/dist/chunk-7ELRQNNH.js.map +1 -0
- package/dist/{chunk-WJ4MZESJ.js → chunk-7RDDR6BW.js} +27 -8
- package/dist/chunk-7RDDR6BW.js.map +1 -0
- package/dist/{chunk-7TPGIQOP.js → chunk-BORN6FJK.js} +10 -10
- package/dist/{chunk-OVLM2EZV.js → chunk-CUMSI7N3.js} +97 -83
- package/dist/chunk-CUMSI7N3.js.map +1 -0
- package/dist/{chunk-Z6LK4P54.js → chunk-EUE6F7HL.js} +40 -12
- package/dist/chunk-EUE6F7HL.js.map +1 -0
- package/dist/{chunk-7AMMBUEW.js → chunk-F2CNFPIA.js} +67 -33
- package/dist/chunk-F2CNFPIA.js.map +1 -0
- package/dist/{chunk-77IAHAQY.js → chunk-FBQC6TKM.js} +6 -6
- package/dist/{chunk-IJFP7N34.js → chunk-FPYYDMCR.js} +26 -9
- package/dist/chunk-FPYYDMCR.js.map +1 -0
- package/dist/{chunk-U7J7JT6R.js → chunk-G35FJ4KT.js} +108 -43
- package/dist/chunk-G35FJ4KT.js.map +1 -0
- package/dist/{chunk-JUTAYI2N.js → chunk-GCUJUUNE.js} +5 -5
- package/dist/{chunk-S77B5POZ.js → chunk-GKBAEX2P.js} +6 -6
- package/dist/{chunk-XKUF67M6.js → chunk-GT7VDGNV.js} +4 -4
- package/dist/{chunk-52OXHGKQ.js → chunk-HNPYVRX7.js} +35 -16
- package/dist/chunk-HNPYVRX7.js.map +1 -0
- package/dist/{chunk-AGHR7XOJ.js → chunk-HOJKUVH6.js} +3 -3
- package/dist/{chunk-PENAXZMR.js → chunk-INJIW6PP.js} +7 -7
- package/dist/{chunk-OYWP4SII.js → chunk-IZPNDZXI.js} +5 -5
- package/dist/{chunk-U3BCLGTH.js → chunk-JHS4ROJH.js} +11 -11
- package/dist/{chunk-CWN4DJYI.js → chunk-JVZZPJ2C.js} +3 -3
- package/dist/{chunk-KOGQNHV3.js → chunk-KA67IGEG.js} +4 -4
- package/dist/{chunk-OTAYAFYF.js → chunk-KRF2JODE.js} +3 -3
- package/dist/{chunk-SDWKZLGP.js → chunk-LFMJXQDL.js} +5 -5
- package/dist/{chunk-FM7PHYBD.js → chunk-NEU5B2VO.js} +162 -8
- package/dist/chunk-NEU5B2VO.js.map +1 -0
- package/dist/{chunk-2U4HKKM7.js → chunk-NSYCXUN5.js} +6 -6
- package/dist/{chunk-U4Z5OOOD.js → chunk-NZN3BME7.js} +32 -12
- package/dist/chunk-NZN3BME7.js.map +1 -0
- package/dist/{chunk-KWDFEQO6.js → chunk-PI4A3TGV.js} +24 -71
- package/dist/chunk-PI4A3TGV.js.map +1 -0
- package/dist/{chunk-HS6B3CE4.js → chunk-PJCIZLIX.js} +472 -138
- package/dist/chunk-PJCIZLIX.js.map +1 -0
- package/dist/{chunk-GERRSRQZ.js → chunk-PZK5KRFB.js} +12 -10
- package/dist/{chunk-GERRSRQZ.js.map → chunk-PZK5KRFB.js.map} +1 -1
- package/dist/{chunk-5JDGKHWH.js → chunk-QALBGVPR.js} +2 -2
- package/dist/{chunk-JCDC5S32.js → chunk-QDBDDJKT.js} +4 -4
- package/dist/{chunk-R7J7WFM5.js → chunk-QUBP3AZD.js} +220 -49
- package/dist/chunk-QUBP3AZD.js.map +1 -0
- package/dist/{chunk-YVIC7TNH.js → chunk-QZW3WXBW.js} +43 -23
- package/dist/{chunk-YVIC7TNH.js.map → chunk-QZW3WXBW.js.map} +1 -1
- package/dist/{chunk-ZPFTFIKP.js → chunk-S5WFZHC5.js} +5 -5
- package/dist/{chunk-UFOUBCPW.js → chunk-UDSNFS67.js} +34 -36
- package/dist/{chunk-UFOUBCPW.js.map → chunk-UDSNFS67.js.map} +1 -1
- package/dist/{chunk-PVZUQTLW.js → chunk-VUTEVIYG.js} +5 -5
- package/dist/{chunk-3HJQZQ76.js → chunk-WNFUSPZR.js} +25 -72
- package/dist/chunk-WNFUSPZR.js.map +1 -0
- package/dist/{chunk-OWCTDO67.js → chunk-WVBTRK6R.js} +13 -13
- package/dist/{chunk-4IQGL4KD.js → chunk-ZMKRUD6J.js} +6 -6
- package/dist/{chunk-J2AD7MLR.js → chunk-ZQWOZ5BL.js} +3 -3
- package/dist/{cli-6IPZVUXF.js → cli-B4VVKKYV.js} +10 -10
- package/dist/{cli-QIBPY2HQ.js → cli-ENMWXMKO.js} +10 -10
- package/dist/{cli-QSV6K33P.js → cli-F2UBHH7H.js} +11 -11
- package/dist/{cli-E2ZC5S4U.js → cli-JKSQBGRO.js} +11 -11
- package/dist/{cli-3WZP5JHA.js → cli-MIIWRJDK.js} +11 -11
- package/dist/cloud-backends.js +6 -6
- package/dist/{control-plane-I2QKMHPK.js → control-plane-R4ELXZHL.js} +22 -22
- package/dist/{cp-hub-upload-GW566DGZ.js → cp-hub-upload-IUQVJGOW.js} +10 -10
- package/dist/custody-client-PVDBOT7Y.js +18 -0
- package/dist/{deploy-hetzner-IIAXES7B.js → deploy-hetzner-KY6KWN4M.js} +11 -11
- package/dist/{dist-4K66F4UR.js → dist-2QGMP2UI.js} +10 -10
- package/dist/{dist-SZTW3RMB.js → dist-5MCQFGLX.js} +28 -8
- package/dist/{dist-XZXZSTTA.js → dist-7EKSUISW.js} +33 -18
- package/dist/dist-7EKSUISW.js.map +1 -0
- package/dist/{dist-5RMJLMYG.js → dist-EIVYC2MR.js} +3 -3
- package/dist/{dist-VKKHIHCZ.js → dist-JWXPKGPZ.js} +10 -10
- package/dist/{dist-HIQCE4H2.js → dist-ONAAPVBD.js} +21 -11
- package/dist/{dist-WR2HYACA.js → dist-OXLTCVA2.js} +10 -10
- package/dist/{dist-WTPYXNRH.js → dist-PBO4UHJK.js} +2 -2
- package/dist/{dist-YED5YJQN.js → dist-RCBMUPVR.js} +12 -4
- package/dist/{dist-IXPKVU3R.js → dist-TD74GXLP.js} +6 -6
- package/dist/{dist-44RSFOGQ.js → dist-VCZ3LZPJ.js} +22 -12
- package/dist/{dist-3EZQDIOD.js → dist-WGV7LRDC.js} +11 -9
- package/dist/{host-reach-drainer-A4ZO6UKT.js → host-reach-drainer-AZYC6UIB.js} +2 -2
- package/dist/{host-session-POJP4WO6.js → host-session-EGUDGE4R.js} +12 -12
- package/dist/hub-76RHPA7X.js +40 -0
- package/dist/{hub-adopt-YR7S5TNB.js → hub-adopt-5G7SKI2E.js} +9 -9
- package/dist/{hub-api-client-BUQDTSQ3.js → hub-api-client-WPZTG5AT.js} +5 -5
- package/dist/{hub-docker-target-XA5U2ZU5.js → hub-docker-target-CNJHYH4B.js} +16 -16
- package/dist/index.js +299 -224
- package/dist/index.js.map +1 -1
- package/dist/{manager-pty-XCGH6AUC-EZML75UO.js → manager-pty-XCGH6AUC-O3UNISN2.js} +5 -5
- package/dist/{plugin-update-BIPJZA24.js → plugin-update-UZYPWL4N.js} +6 -6
- package/dist/prepare-4GOTJXQL.js +48 -0
- package/dist/prepared-custody-4YJ4ZT7J.js +40 -0
- package/dist/{prepared-state-FO74QUCP-4WLAYPEO.js → prepared-state-FO74QUCP-GUIPQORN.js} +5 -5
- package/dist/pty-host.js +4 -4
- package/dist/{publish-credentials-N2JD2D3A.js → publish-credentials-RLRLNL33.js} +12 -12
- package/dist/registry-QMHCNR5X.js +18 -0
- package/dist/relay-VBWFCWKK.js +23 -0
- package/dist/{remote-docker-share-GIH6JNKY.js → remote-docker-share-TKG7SXHX.js} +13 -13
- package/dist/{tool-grant-push-7K765QKW.js → tool-grant-push-V7E3Y2W6.js} +3 -3
- package/package.json +2 -1
- package/runtime/_shared/ctl.cjs +138 -40
- package/runtime/digitalocean/ctl.cjs +138 -40
- package/runtime/docker/packages/ctl/dist/bin.cjs +138 -40
- package/runtime/e2b/ctl.cjs +138 -40
- package/runtime/hetzner/ctl.cjs +138 -40
- package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
- package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/prerender-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach-box/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/heartbeat/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/pin/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/register/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/events/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/server-reference-manifest.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +12 -12
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -12
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +8 -8
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-5e8ze._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-di9rg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__008zqfx._.js → [root-of-the-server]__0-ovzfw._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-r5e8q._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__007hogi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0-kl55b._.js → [root-of-the-server]__00bh9gb._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00dc6yl._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00zpt4k._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__017tfb_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01dlun3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01mhbng._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03jx5m5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03l4evb._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0126167._.js → [root-of-the-server]__03uelft._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03wt33b._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03z-u4h._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__02s5f9s._.js → [root-of-the-server]__048c4u3._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04glef0._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04za-91._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05cnibm._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06e_no_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06g2ncr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06vmwu8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06wzlsi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07f11r9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07mtcs1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__084o93l._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__085_re5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08kj50f._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08txtdi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__092u79y._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09j-kzo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09umuy8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09wu-6r._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_60dmv._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_f5r-w._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ahciyb._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ajp0a3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ao_4th._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0aqoqhn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0b3_azq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cjjwg7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1wl4f._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d2ce-o._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dfklvw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dgkz7l._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dlg6e7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dq5edp._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0drzmcj._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dvyt4d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dyqk31._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eliqqa._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eluwey._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f5v0j5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f7g_na._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fn2qow._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0frnoss._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0g0e1x-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gdwl-b._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gfhbl7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gsie0d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hg36y7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hz77cq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i501ph._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j5jaq9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j7_6c5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jm5dx1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0k-t2mr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ktkk27._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kxp4k8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l-mqzk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l7rw-n._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lb45m6._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lvczy2._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0m9zj9m._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mg-juc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mriv1n._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0n4gqir._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0new-8d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nuc9du._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nxnhun._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o42jfc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o7zz8d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0omb75h._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0p4ta6t._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0p5_ap9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pan9yi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pr6h1j._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pz23t_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qcvt0o._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qn4mea._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qp0txx._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qsn9xm._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qx8qwu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r6p-ql._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r6tfw8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sgdrnp._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ssn3y9._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0te8u6u._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ukg6s1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0up7ls4._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0uvnrnf._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v2xw5s._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v5qu_p._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__12p0ia1._.js → [root-of-the-server]__0vku_ep._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vuhl78._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w52bth._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wq5ukd._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wx561s._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wxo4bk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xfcui-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xm7z28._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xqz1om._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xur24w._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xw3pee._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xwht7v._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y20q9b._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zfq7yk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zi_qda._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zpm7wg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zxlzp1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-a4wnf._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-fpw4q._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-iro6m._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-o35-u._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1043gy8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10kehs5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10s1755._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11d3dgq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__126lrtu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12n9728._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13hluml._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13hzwlv._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14c4h72._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14oho-o._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14zr9zt._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__153axa9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1582-3i._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15v83nk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16e-k-w._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16m0mie._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16ta_9y._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17a3r0z._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17kg43w._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18g18yc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18m4f3-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__190vthx._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19vezsz._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19vgyci._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_ulp2r._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1a6hiz5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1apqdye._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1avjial._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cicer7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1crkcf8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dra_qf._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1eearvr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1eewe3-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fd1yxa._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fyknn9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g24h4v._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1goi44d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hf8-7y._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hn7h11._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i9e2ly._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1j6cxj7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jwn6xy._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kw00ov._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1l0xu4g._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1laa5r-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lo6_vz._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lzumk3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m1qnsg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m26y4h._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m5qi0d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m7oktq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mq0v7p._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n29-mo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n5aq-l._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1nhwizo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1o2vpkc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1o9euia._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1otvs-z._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1p3nshl._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pbl8am._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9a118._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9klny._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qf5sar._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qjpnlw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qpcmfu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1r8kqe3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ra-lry._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rousb3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rvwwj8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rwfadw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sj1ox_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sq9444._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sqteyf._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1th4k80._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1umt_5v._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ux-zjb._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v5fjky._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vspjdn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1w02nxp._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1winv-x._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wj9na5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1x-8rww._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ybyads._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1yzs5_p._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1z3bc6x._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zh-p_4._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zj2l_d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zqt33m._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zr57k3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zxsjfn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ga3fy._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20gp3bg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20k17-b._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20o508x._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20zx91s._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__219zam7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_03slv7y._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_03u-l9s._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_048yy7t._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_05_hmgg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_08cr70o._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0907rw0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_09bu8dh._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0_2z437._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0_s1tx9._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0_ue2iy._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0b6vmhh._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0bxg62j._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0cc3kcz._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ccgezr._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0e50cwx._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ek1dkx._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0g94rtj._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0hwl0oy._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ihch2c._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0jal0nm._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0jvwv07._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0mpj2yt._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0n22m88._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ndtf84._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0o1r-if._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0opn03l._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0p-2n50._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0qf4357._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0tbb47v._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ubchhn._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ul-64a._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0v--tpg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0v3xwi-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0vg6gvw._.js +42 -40
- package/runtime/hub/apps/hub/.next/server/chunks/_0y497n2._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0zvfiwd._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_100tsj5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_11-rqgb._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_113fejt._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_12juepz._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_12w22u2._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_134-gub._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_14kba0u._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_16ec74_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_17ntgn8._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1c27mjg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1c4zrlu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1cmknl6._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1g8ctu7._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1grz1bu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1itx6m_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1jaoh3w._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1ktt212._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1ldaou_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1n3e-p-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1onbxt8._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1pudgbl._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1qmsz02._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1r3ah1o._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1t24c_5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1vv20kp._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1whgbe7._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1wj2dpr._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1wsllw4._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1yk56nw._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1yumxg7._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1zlfubf._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_204rqiz._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_2056rpg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_2056tby._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1ze3mqq.js +13 -13
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0515n2f._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0h3qrm-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0o-fklw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/{[root-of-the-server]__0m1akem._.js → [root-of-the-server]__1jkmxi2._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kpdmm-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kzd494._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r2xlss._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_14-qzbg._.js +33 -31
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1hrzkwr._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0j5-o0f._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_17myqp5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_approvals_page_actions_1mi0bpn.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_page_tsx_0o2z21l._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_0z476w4.js +1 -1
- package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
- package/runtime/hub/apps/hub/.next/server/next-font-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/next-font-manifest.json +27 -27
- package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
- package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +19 -19
- package/runtime/hub/apps/hub/.next/static/chunks/{2hxatwkh8fha9.js → 02sqxeus8w0s0.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{0tmbn9jje8ulx.js → 03ceb0qh4s52a.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{03_fxfc3849ms.css → 0ofk3im5p6gn-.css} +2 -2
- package/runtime/hub/apps/hub/.next/static/chunks/{38dg0m6sbz8hx.js → 0qhuf1a_7byq-.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{05dzzanyo20wx.js → 0u50pq99k9z_4.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{27t0b0mja1zpt.js → 0x0l4io4rdmuq.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{1ct_kocalf1mw.js → 22rj-g4qe8jny.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{22fqc0ktzjo6x.js → 23kzsoacq647n.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.1iu7q7yw-zhgt.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.26axk51fv0nvx.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.17c61zbdzi3u-.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.1at6z4kbofh3w.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1h7k3aqd68qji.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.0g4pmka8j2u20.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.07-q_h5lq3omo.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/77ce6907447ba740-s.1thpl3j71vtxe.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.30xqm3yldpj47.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.13qpbrx2rg1iz.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.42z9vm7u0i9n-.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/bfc9b7e66b1caeca-s.3hdclex1x_th1.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.1v7x_qdpnbwoz.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.27korwsf9c79u.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/f7cb89c1bcef4d27-s.3ajilh452uwtx.woff2 +0 -0
- package/runtime/hub/apps/hub/{auth-3K7Z7LVZ.js → auth-475LXXJA.js} +2 -2
- package/runtime/hub/apps/hub/{auth-config-G23WLTGN.js → auth-config-SPDXLHDX.js} +2 -2
- package/runtime/hub/apps/hub/{chunk-GGYNXEOD.js → chunk-3WRZVFOY.js} +521 -189
- package/runtime/hub/apps/hub/{chunk-RNUUXV2X.js → chunk-67LASBXO.js} +107 -42
- package/runtime/hub/apps/hub/{chunk-VQUZQ5MH.js → chunk-6ND54VG2.js} +161 -7
- package/runtime/hub/apps/hub/{chunk-7B4VZTUH.js → chunk-7XCRB6GS.js} +96 -82
- package/runtime/hub/apps/hub/{chunk-BEK5SYX5.js → chunk-DAMV47HM.js} +6 -0
- package/runtime/hub/apps/hub/{chunk-RAIBV7TH.js → chunk-FPLCH64R.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-64GCEGJK.js → chunk-KJHUOHQ5.js} +4 -4
- package/runtime/hub/apps/hub/{chunk-OWAJTG3G.js → chunk-XGNMYL3X.js} +11 -11
- package/runtime/hub/apps/hub/{chunk-FWMBOJTZ.js → chunk-YBYUNY5P.js} +7 -7
- package/runtime/hub/apps/hub/{chunk-L5XPW2AU.js → chunk-ZVLJG772.js} +24 -71
- package/runtime/hub/apps/hub/{dist-QXOLLT4Y.js → dist-2KUVFXS3.js} +19 -9
- package/runtime/hub/apps/hub/{dist-D4JO7PAL.js → dist-2PUSTW2W.js} +1 -1
- package/runtime/hub/apps/hub/{dist-I5V4YM32.js → dist-67P6KLUY.js} +2 -2
- package/runtime/hub/apps/hub/dist-7PN6FTJV.js +26176 -0
- package/runtime/hub/apps/hub/{dist-BX2OAELL.js → dist-O53WU2K6.js} +11 -3
- package/runtime/hub/apps/hub/{dist-4GYSUKN3.js → dist-ODKJZJI2.js} +7 -7
- package/runtime/hub/apps/hub/{dist-R7ZY7ZTV.js → dist-SUHXQDYN.js} +26 -6
- package/runtime/hub/apps/hub/{dist-IHHRC4JW.js → dist-UMA73Z3V.js} +7 -7
- package/runtime/hub/apps/hub/{dist-LZWGXCOQ.js → dist-VHXEBJX5.js} +9 -7
- package/runtime/hub/apps/hub/{dist-TWRKOELH.js → dist-XOMGXTMI.js} +26 -71
- package/runtime/hub/apps/hub/{dist-33UWJJFG.js → dist-ZSRBJAWL.js} +27 -10
- package/runtime/hub/apps/hub/{hub-token-EIS7FVL2.js → hub-token-VMKQH4IY.js} +2 -2
- package/runtime/hub/apps/hub/{hub-worker-2LVMIS5H.js → hub-worker-5WDNMFCP.js} +9 -9
- package/runtime/hub/apps/hub/{manager-pty-XCGH6AUC-VJSNM3A6.js → manager-pty-XCGH6AUC-ZYM2ENVR.js} +4 -4
- package/runtime/hub/apps/hub/package.json +2 -1
- package/runtime/hub/apps/hub/{prepared-state-FO74QUCP-LZNKUFC7.js → prepared-state-FO74QUCP-L5OKEU42.js} +4 -4
- package/runtime/hub/apps/hub/server.js +296 -123
- package/runtime/relay/bin.cjs +131 -33
- package/runtime/vercel/ctl.cjs +138 -40
- package/dist/_cloud-attach-F25HDXWB.js +0 -32
- package/dist/chunk-3HJQZQ76.js.map +0 -1
- package/dist/chunk-52OXHGKQ.js.map +0 -1
- package/dist/chunk-7AMMBUEW.js.map +0 -1
- package/dist/chunk-AXAMPAP3.js.map +0 -1
- package/dist/chunk-FM7PHYBD.js.map +0 -1
- package/dist/chunk-HS6B3CE4.js.map +0 -1
- package/dist/chunk-IJFP7N34.js.map +0 -1
- package/dist/chunk-KWDFEQO6.js.map +0 -1
- package/dist/chunk-OVLM2EZV.js.map +0 -1
- package/dist/chunk-R7J7WFM5.js.map +0 -1
- package/dist/chunk-U4Z5OOOD.js.map +0 -1
- package/dist/chunk-U7J7JT6R.js.map +0 -1
- package/dist/chunk-WJ4MZESJ.js.map +0 -1
- package/dist/chunk-YZZKWZO2.js.map +0 -1
- package/dist/chunk-Z6LK4P54.js.map +0 -1
- package/dist/custody-client-F3OAOAC7.js +0 -18
- package/dist/dist-XZXZSTTA.js.map +0 -1
- package/dist/hub-GHFEW3K2.js +0 -40
- package/dist/prepare-O4BUJIOQ.js +0 -48
- package/dist/prepared-custody-UTSSUTXF.js +0 -40
- package/dist/registry-IPDCZDNW.js +0 -18
- package/dist/relay-P5CXEGAZ.js +0 -23
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-0scfb._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00a4c3f._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00tx9tm._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02-rdq0._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02kc2og._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02sueng._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02ywgcg._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03_xi2c._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03fxkqp._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04-i6rm._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04b75a4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04d3pe5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05_wgfq._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__071c-t4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07fobp5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__081d104._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08h5jgt._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09grt_m._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09jbqbh._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09y4pdw._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_t5f3m._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_xcmfv._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a6e0vs._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a8ere2._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0azx8z8._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bok80z._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bv_k0d._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c1o4qr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c5mzbr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cc5lpl._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ce13qa._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cyy9az._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d34880._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dfvo5-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dtq9pr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dw7c0k._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e6_t-d._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0edd68z._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0engd-e._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eua3wn._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ewh0df._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f_4fiu._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fkjz20._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fknr6k._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fxx69a._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0g7gynv._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gl-4ha._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gr6v_i._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0h181r5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0h668tm._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i65ptk._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0iyr5bm._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j0vl7q._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jvk7x8._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jz3x26._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0k_7aj_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lc-j_n._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mid58_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mq5e3o._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0n5hh_2._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0neufba._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nqggrc._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nx6w0m._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o4rocd._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0olhyt4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pe9g30._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pik2ie._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qkpqk7._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qt_r6a._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qudrhk._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r0v_c_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r4qvs6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0rf4g7g._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s4vdow._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s5ck78._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0scmgnp._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sn7av8._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0soiiqi._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sz5p6g._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tl6p7k._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tv5sah._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0usxinp._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v5krdd._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vgxotx._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vsn71u._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0x5eodh._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0x_rx1f._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xo5ak-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xt0w30._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y-rry-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y3snn7._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ygnbei._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yio_n7._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yxeq50._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0z2lkh_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zd42wf._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zi14f-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zxv1ul._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zyutsi._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-90xgw._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__106reiu._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__112hqrh._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__113ijth._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11qbpq8._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11xey3v._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__121vdp5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12b40mo._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12i61td._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12tjfss._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__139ha9-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13dk6en._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13j6tof._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13nfpq5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14opl53._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14pxg1e._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15gc6-s._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15k2wx5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15umca-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__162e1zj._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__166_uek._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16pmnr6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__174fgjv._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17df14g._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17jzikc._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17y9pmx._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18pwzaw._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__192ppv6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__198-esg._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19al998._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19m88da._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19nlcuf._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_4v0mh._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_dmv53._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_xgm2e._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_zs8b5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1abclgc._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1aboxh4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bh1dxz._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cb0_wq._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cbn_et._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cggpv7._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cnhbta._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cpqqag._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cs6d52._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d-v8kt._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d-yop_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d60scp._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dhzd1_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1diw0ei._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dogvkr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ectuq4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ehcanu._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1em476i._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f9l4qz._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h4akof._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i9bs12._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jbtokr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jelopi._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jnfrsy._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1k934r7._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kt9_sy._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kv_jgw._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1l_uof1._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lareew._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lgn5_b._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lnherq._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lyqerb._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1me3irq._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mh1-lh._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mk_lpu._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1muxcy9._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mx0_-f._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1no5aw3._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1noanyg._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ntihlm._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ob9yn9._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1odu62n._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1oy_ypa._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1p6khix._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pg2kzv._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pk410t._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pta31u._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pz2967._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9ds80._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qt1i63._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rr4obb._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rzg628._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sdw2ls._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1szemyb._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1t88a94._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1tfkm3m._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1txvsbk._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1uhiv-4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1utvnlp._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vc_bp9._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1w25h0t._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wc9zwl._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ws4ucz._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wx5ltv._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xi8hyy._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xl-uhz._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xlddup._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1y3gko6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1y9wbb2._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ypmy86._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ysubik._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1yzmh_p._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1z7mgd6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ztoaz1._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__2019yzl._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20opvks._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ygien._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0bv8m80._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1ay9-4x._.js +0 -3
- package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.29yke99gs9qpn.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.0o-3_g79811ob.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.226pwps5o-gq_.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.15orukf5wyxb5.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1u30mmyq6lnsd.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.2vemzm0itqzfy.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.1i-sca43-qwng.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.40sczeszzbjw1.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.0ngr-xkgqz1kf.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.1qc6dx89jd2qv.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.3cb5lpr2l6xud.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.0oace-s_gkfks.woff2 +0 -0
- package/runtime/hub/apps/hub/dist-25JLZKGB.js +0 -1278
- /package/dist/{_cloud-attach-F25HDXWB.js.map → _cloud-attach-KEFEQ2YH.js.map} +0 -0
- /package/dist/{chunk-L55DASHB.js.map → chunk-2SKTXZGX.js.map} +0 -0
- /package/dist/{chunk-BKOKMZNK.js.map → chunk-3QTWB66F.js.map} +0 -0
- /package/dist/{chunk-VSWIJHCH.js.map → chunk-5ZBNVZSU.js.map} +0 -0
- /package/dist/{chunk-IX7S6NJR.js.map → chunk-72LKKHPI.js.map} +0 -0
- /package/dist/{chunk-7TPGIQOP.js.map → chunk-BORN6FJK.js.map} +0 -0
- /package/dist/{chunk-77IAHAQY.js.map → chunk-FBQC6TKM.js.map} +0 -0
- /package/dist/{chunk-JUTAYI2N.js.map → chunk-GCUJUUNE.js.map} +0 -0
- /package/dist/{chunk-S77B5POZ.js.map → chunk-GKBAEX2P.js.map} +0 -0
- /package/dist/{chunk-XKUF67M6.js.map → chunk-GT7VDGNV.js.map} +0 -0
- /package/dist/{chunk-AGHR7XOJ.js.map → chunk-HOJKUVH6.js.map} +0 -0
- /package/dist/{chunk-PENAXZMR.js.map → chunk-INJIW6PP.js.map} +0 -0
- /package/dist/{chunk-OYWP4SII.js.map → chunk-IZPNDZXI.js.map} +0 -0
- /package/dist/{chunk-U3BCLGTH.js.map → chunk-JHS4ROJH.js.map} +0 -0
- /package/dist/{chunk-CWN4DJYI.js.map → chunk-JVZZPJ2C.js.map} +0 -0
- /package/dist/{chunk-KOGQNHV3.js.map → chunk-KA67IGEG.js.map} +0 -0
- /package/dist/{chunk-OTAYAFYF.js.map → chunk-KRF2JODE.js.map} +0 -0
- /package/dist/{chunk-SDWKZLGP.js.map → chunk-LFMJXQDL.js.map} +0 -0
- /package/dist/{chunk-2U4HKKM7.js.map → chunk-NSYCXUN5.js.map} +0 -0
- /package/dist/{chunk-5JDGKHWH.js.map → chunk-QALBGVPR.js.map} +0 -0
- /package/dist/{chunk-JCDC5S32.js.map → chunk-QDBDDJKT.js.map} +0 -0
- /package/dist/{chunk-ZPFTFIKP.js.map → chunk-S5WFZHC5.js.map} +0 -0
- /package/dist/{chunk-PVZUQTLW.js.map → chunk-VUTEVIYG.js.map} +0 -0
- /package/dist/{chunk-OWCTDO67.js.map → chunk-WVBTRK6R.js.map} +0 -0
- /package/dist/{chunk-4IQGL4KD.js.map → chunk-ZMKRUD6J.js.map} +0 -0
- /package/dist/{chunk-J2AD7MLR.js.map → chunk-ZQWOZ5BL.js.map} +0 -0
- /package/dist/{cli-3WZP5JHA.js.map → cli-B4VVKKYV.js.map} +0 -0
- /package/dist/{cli-6IPZVUXF.js.map → cli-ENMWXMKO.js.map} +0 -0
- /package/dist/{cli-E2ZC5S4U.js.map → cli-F2UBHH7H.js.map} +0 -0
- /package/dist/{cli-QIBPY2HQ.js.map → cli-JKSQBGRO.js.map} +0 -0
- /package/dist/{cli-QSV6K33P.js.map → cli-MIIWRJDK.js.map} +0 -0
- /package/dist/{control-plane-I2QKMHPK.js.map → control-plane-R4ELXZHL.js.map} +0 -0
- /package/dist/{cp-hub-upload-GW566DGZ.js.map → cp-hub-upload-IUQVJGOW.js.map} +0 -0
- /package/dist/{custody-client-F3OAOAC7.js.map → custody-client-PVDBOT7Y.js.map} +0 -0
- /package/dist/{deploy-hetzner-IIAXES7B.js.map → deploy-hetzner-KY6KWN4M.js.map} +0 -0
- /package/dist/{dist-3EZQDIOD.js.map → dist-2QGMP2UI.js.map} +0 -0
- /package/dist/{dist-44RSFOGQ.js.map → dist-5MCQFGLX.js.map} +0 -0
- /package/dist/{dist-4K66F4UR.js.map → dist-EIVYC2MR.js.map} +0 -0
- /package/dist/{dist-VKKHIHCZ.js.map → dist-JWXPKGPZ.js.map} +0 -0
- /package/dist/{dist-5RMJLMYG.js.map → dist-ONAAPVBD.js.map} +0 -0
- /package/dist/{dist-HIQCE4H2.js.map → dist-OXLTCVA2.js.map} +0 -0
- /package/dist/{dist-IXPKVU3R.js.map → dist-PBO4UHJK.js.map} +0 -0
- /package/dist/{dist-SZTW3RMB.js.map → dist-RCBMUPVR.js.map} +0 -0
- /package/dist/{dist-WR2HYACA.js.map → dist-TD74GXLP.js.map} +0 -0
- /package/dist/{dist-WTPYXNRH.js.map → dist-VCZ3LZPJ.js.map} +0 -0
- /package/dist/{dist-YED5YJQN.js.map → dist-WGV7LRDC.js.map} +0 -0
- /package/dist/{host-reach-drainer-A4ZO6UKT.js.map → host-reach-drainer-AZYC6UIB.js.map} +0 -0
- /package/dist/{host-session-POJP4WO6.js.map → host-session-EGUDGE4R.js.map} +0 -0
- /package/dist/{hub-GHFEW3K2.js.map → hub-76RHPA7X.js.map} +0 -0
- /package/dist/{hub-adopt-YR7S5TNB.js.map → hub-adopt-5G7SKI2E.js.map} +0 -0
- /package/dist/{hub-api-client-BUQDTSQ3.js.map → hub-api-client-WPZTG5AT.js.map} +0 -0
- /package/dist/{hub-docker-target-XA5U2ZU5.js.map → hub-docker-target-CNJHYH4B.js.map} +0 -0
- /package/dist/{manager-pty-XCGH6AUC-EZML75UO.js.map → manager-pty-XCGH6AUC-O3UNISN2.js.map} +0 -0
- /package/dist/{plugin-update-BIPJZA24.js.map → plugin-update-UZYPWL4N.js.map} +0 -0
- /package/dist/{prepare-O4BUJIOQ.js.map → prepare-4GOTJXQL.js.map} +0 -0
- /package/dist/{prepared-custody-UTSSUTXF.js.map → prepared-custody-4YJ4ZT7J.js.map} +0 -0
- /package/dist/{prepared-state-FO74QUCP-4WLAYPEO.js.map → prepared-state-FO74QUCP-GUIPQORN.js.map} +0 -0
- /package/dist/{publish-credentials-N2JD2D3A.js.map → publish-credentials-RLRLNL33.js.map} +0 -0
- /package/dist/{registry-IPDCZDNW.js.map → registry-QMHCNR5X.js.map} +0 -0
- /package/dist/{relay-P5CXEGAZ.js.map → relay-VBWFCWKK.js.map} +0 -0
- /package/dist/{remote-docker-share-GIH6JNKY.js.map → remote-docker-share-TKG7SXHX.js.map} +0 -0
- /package/dist/{tool-grant-push-7K765QKW.js.map → tool-grant-push-V7E3Y2W6.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77084,e=>{"use strict";let t,n;var r,i=e.i(1262),o=e.i(45971),a=e.i(33789),l=e.i(44344),s=e.i(77869),c=e.i(86892),d=e.i(65232);function u({className:e,icon:t,title:n,children:r}){return(0,i.jsxs)("div",{className:(0,d.cn)("relative flex w-full items-start gap-3 rounded-xl border p-4",e),children:[t?(0,i.jsx)(t,{className:"mt-0.5 size-4 flex-none"}):null,(0,i.jsxs)("div",{className:"min-w-0",children:[n?(0,i.jsx)("div",{className:"mb-0.5 text-[13.5px] font-semibold leading-tight",children:n}):null,(0,i.jsx)("div",{className:"text-[12.5px] leading-normal",children:r})]})]})}var f=e.i(8536),p=e.i(96621),m=e.i(88451);function x({boxId:e}){let{state:t}=(0,p.useStore)(),n=t.approvals.filter(t=>t.boxId===e).sort((e,t)=>e.createdAt-t.createdAt);return 0===n.length?null:(0,i.jsxs)("div",{className:"mt-4 overflow-hidden rounded-xl border border-[var(--amber-line)] bg-[var(--amber-soft)]",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2 border-b border-[var(--amber-line)] px-4 py-2.5",children:[(0,i.jsx)(l.Icons.shield,{className:"size-4 flex-none text-[var(--amber)]"}),(0,i.jsxs)("span",{className:"text-[13.5px] font-semibold",children:[n.length," pending approval",1===n.length?"":"s"]}),(0,i.jsx)("span",{className:"text-[12.5px] text-muted-foreground",children:"— this box is waiting on you."})]}),(0,i.jsx)("div",{className:"divide-y divide-[var(--amber-line)]",children:n.map(e=>(0,i.jsxs)("div",{className:"flex items-start gap-3 px-4 py-3",children:[(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsx)("div",{className:"truncate font-mono text-[13px] text-secondary-foreground",children:e.command??e.message}),e.detail?(0,i.jsx)("div",{className:"mt-0.5 truncate text-[11.5px] text-muted-foreground",children:e.detail}):null,e.cwd?(0,i.jsx)("div",{className:"mt-0.5 truncate font-mono text-[11px] text-[#a4a9b0]",children:e.cwd}):null,(0,i.jsx)("div",{className:"mt-0.5 font-mono text-[11px] text-[#a4a9b0]",children:(0,i.jsx)(a.Ago,{ms:e.createdAt})})]}),(0,i.jsx)("div",{className:"flex-none pt-0.5",children:(0,i.jsx)(m.ApprovalActions,{id:e.id,url:e.url})})]},e.id))})]})}var h=e.i(54129),g=e.i(69377);function v(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}function b(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function y(...e){return h.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=b(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():b(e[t],null)}}}}(...e),e)}function w(e,t=[]){let n=[],r=()=>{let t=n.map(e=>h.createContext(e));return function(n){let r=n?.[e]||t;return h.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=h.createContext(r);o.displayName=t+"Context";let a=n.length;n=[...n,r];let l=t=>{let{scope:n,children:r,...l}=t,s=n?.[e]?.[a]||o,c=h.useMemo(()=>l,Object.values(l));return(0,i.jsx)(s.Provider,{value:c,children:r})};return l.displayName=t+"Provider",[l,function(n,i,l={}){let{optional:s=!1}=l,c=i?.[e]?.[a]||o,d=h.useContext(c);if(d)return d;if(void 0!==r)return r;if(!s)throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}"u">typeof window&&window.document&&window.document.createElement;var j=e.i(94766),C=Symbol.for("radix.slottable"),N=Symbol.for("react.lazy");function S(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===N&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var E=h[" use ".trim().toString()],k=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n;let r,o=(n=`Primitive.${t}`,(r=h.forwardRef((e,t)=>{var r;let i,o,{children:a,...l}=e,s=null,c=!1,d=[];S(a)&&"function"==typeof E&&(a=E(a._payload)),h.Children.forEach(a,e=>{var t;if(t=e,h.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===C){c=!0;let t="child"in e.props?e.props.child:e.props.children;S(t)&&"function"==typeof E&&(t=E(t._payload)),s=((e,t)=>{if("child"in e.props){let t=e.props.child;return h.isValidElement(t)?h.cloneElement(t,void 0,e.props.children(t.props.children)):null}return h.isValidElement(t)?t:null})(e,t),d.push(s?.props?.children)}else d.push(e)}),s?s=h.cloneElement(s,void 0,d):!c&&1===h.Children.count(a)&&h.isValidElement(a)&&(s=a);let u=s?(r=s,(o=(i=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?r.ref:(o=(i=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,f=y(t,u);if(!s){if(a||0===a){let e,t;throw Error(c?(e=n,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=n,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return a}let p=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(l,s.props??{});return s.type!==h.Fragment&&(p.ref=t?f:u),h.cloneElement(s,p)})).displayName=`${n}.Slot`,r),a=h.forwardRef((e,n)=>{let{asChild:r,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(r?o:t,{...a,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function R(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...e)=>t.current?.(...e),[])}var T="dismissableLayer.update",L=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),A=h.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:c,onDismiss:d,...u}=e,f=h.useContext(L),[p,m]=h.useState(null),x=p?.ownerDocument??globalThis?.document,[,g]=h.useState({}),b=y(t,m),w=Array.from(f.layers),[j]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),C=j?w.indexOf(j):-1,N=p?w.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,E=N>=C,A=h.useRef(!1),I=function(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:o,shouldHandlePointerDownOutside:a=O}=t,l=R(e),s=h.useRef(!1),c=h.useRef(!1),d=h.useRef(new Map),u=h.useRef(()=>{});return h.useEffect(()=>{function e(){c.current=!1,i.current=!1,d.current.clear()}function t(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&u.current()},0)}function f(e){c.current&&d.current.set(e.type,!1)}let p=t=>{if(t.target&&!s.current){let o=function(){n.removeEventListener("click",u.current);let t=Array.from(d.current.values()).some(Boolean);e(),t||D("dismissableLayer.pointerDownOutside",l,f,{discrete:!0})};if(!a(t.target)){n.removeEventListener("click",u.current),e(),s.current=!1;return}let f={originalEvent:t};c.current=!0,i.current=r&&0===t.button,d.current.clear(),r&&0===t.button?(n.removeEventListener("click",u.current),u.current=o,n.addEventListener("click",u.current,{once:!0})):o()}else n.removeEventListener("click",u.current),e();s.current=!1},m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of m)n.addEventListener(e,t,!0),n.addEventListener(e,f);let x=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{for(let e of(window.clearTimeout(x),n.removeEventListener("pointerdown",p),n.removeEventListener("click",u.current),m))n.removeEventListener(e,t,!0),n.removeEventListener(e,f)}},[n,l,r,i,o,a]),{onPointerDownCapture:()=>s.current=!0}}(e=>{l?.(e),c?.(e),e.defaultPrevented||d?.()},{ownerDocument:x,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:A,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:h.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return E&&!t},[f.branches,E])}),B=function(e,t=globalThis?.document){let n=R(e),r=h.useRef(!1);return h.useEffect(()=>{let e=e=>{e.target&&!r.current&&D("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{if(o&&A.current)return;let t=e.target;![...f.branches].some(e=>e.contains(t))&&(s?.(e),c?.(e),e.defaultPrevented||d?.())},x),$=!!p&&N===w.length-1,M=R(e=>{"Escape"===e.key&&(a?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))});return h.useEffect(()=>{if($)return x.addEventListener("keydown",M,{capture:!0}),()=>x.removeEventListener("keydown",M,{capture:!0})},[x,$,M]),h.useEffect(()=>{if(p)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),P(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),0===f.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r))}},[p,x,n,f]),h.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),P())},[p,f]),h.useEffect(()=>{let e=()=>g({});return document.addEventListener(T,e),()=>document.removeEventListener(T,e)},[]),(0,i.jsx)(k.div,{...u,ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:v(e.onFocusCapture,B.onFocusCapture),onBlurCapture:v(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:v(e.onPointerDownCapture,I.onPointerDownCapture)})});A.displayName="DismissableLayer",h.forwardRef((e,t)=>{let n=h.useContext(L),r=h.useRef(null),o=y(t,r);return h.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,i.jsx)(k.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var O=()=>!0;function P(){let e=new CustomEvent(T);document.dispatchEvent(e)}function D(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),r)i&&j.flushSync(()=>i.dispatchEvent(o));else i.dispatchEvent(o)}var I=globalThis?.document?h.useLayoutEffect:()=>{},B=h[" useId ".trim().toString()]||(()=>void 0),$=0;let M=["top","right","bottom","left"],_=Math.min,F=Math.max,z=Math.round,H=Math.floor,W=e=>({x:e,y:e}),U={left:"right",right:"left",bottom:"top",top:"bottom"};function V(e,t){return"function"==typeof e?e(t):e}function Y(e){return e.split("-")[0]}function X(e){return e.split("-")[1]}function G(e){return"x"===e?"y":"x"}function J(e){return"y"===e?"height":"width"}function K(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function q(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let Z=["left","right"],Q=["right","left"],ee=["top","bottom"],et=["bottom","top"];function en(e){let t=Y(e);return U[t]+e.slice(t.length)}function er(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function ei(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function eo(e,t,n){let r,{reference:i,floating:o}=e,a=K(t),l=G(K(t)),s=J(l),c=Y(t),d="y"===a,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,p=i[s]/2-o[s]/2;switch(c){case"top":r={x:u,y:i.y-o.height};break;case"bottom":r={x:u,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}switch(X(t)){case"start":r[l]-=p*(n&&d?-1:1);break;case"end":r[l]+=p*(n&&d?-1:1)}return r}async function ea(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=V(t,e),m=er(p),x=l[f?"floating"===u?"reference":"floating":u],h=ei(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(x)))||n?x:x.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),g="floating"===u?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),b=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},y=ei(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:v,strategy:s}):g);return{top:(h.top-y.top+m.top)/b.y,bottom:(y.bottom-h.bottom+m.bottom)/b.y,left:(h.left-y.left+m.left)/b.x,right:(y.right-h.right+m.right)/b.x}}let el=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:ea},s=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=eo(c,r,s),f=r,p=0,m={};for(let n=0;n<o.length;n++){let x=o[n];if(!x)continue;let{name:h,fn:g}=x,{x:v,y:b,data:y,reset:w}=await g({x:d,y:u,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=v?v:d,u=null!=b?b:u,m[h]={...m[h],...y},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:u}=eo(c,f,s)),n=-1)}return{x:d,y:u,placement:f,strategy:i,middlewareData:m}};function es(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ec(e){return M.some(t=>e[t]>=0)}let ed=new Set(["left","top"]);async function eu(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=Y(n),l=X(n),s="y"===K(n),c=ed.has(a)?-1:1,d=o&&s?-1:1,u=V(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*d,y:f*c}:{x:f*c,y:p*d}}function ef(){return"u">typeof window}function ep(e){return eh(e)?(e.nodeName||"").toLowerCase():"#document"}function em(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ex(e){var t;return null==(t=(eh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eh(e){return!!ef()&&(e instanceof Node||e instanceof em(e).Node)}function eg(e){return!!ef()&&(e instanceof Element||e instanceof em(e).Element)}function ev(e){return!!ef()&&(e instanceof HTMLElement||e instanceof em(e).HTMLElement)}function eb(e){return!(!ef()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof em(e).ShadowRoot)}function ey(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=eR(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function ew(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ej=/transform|translate|scale|rotate|perspective|filter/,eC=/paint|layout|strict|content/,eN=e=>!!e&&"none"!==e;function eS(e){let t=eg(e)?eR(e):e;return eN(t.transform)||eN(t.translate)||eN(t.scale)||eN(t.rotate)||eN(t.perspective)||!eE()&&(eN(t.backdropFilter)||eN(t.filter))||ej.test(t.willChange||"")||eC.test(t.contain||"")}function eE(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function ek(e){return/^(html|body|#document)$/.test(ep(e))}function eR(e){return em(e).getComputedStyle(e)}function eT(e){return eg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eL(e){if("html"===ep(e))return e;let t=e.assignedSlot||e.parentNode||eb(e)&&e.host||ex(e);return eb(t)?t.host:t}function eA(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=eL(t);return ek(n)?t.ownerDocument?t.ownerDocument.body:t.body:ev(n)&&ey(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=em(i);if(!o)return t.concat(i,eA(i,[],n));{let e=eO(a);return t.concat(a,a.visualViewport||[],ey(i)?i:[],e&&n?eA(e):[])}}function eO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eP(e){let t=eR(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ev(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=z(n)!==o||z(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function eD(e){return eg(e)?e:e.contextElement}function eI(e){let t=eD(e);if(!ev(t))return W(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=eP(t),a=(o?z(n.width):n.width)/r,l=(o?z(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let eB=W(0);function e$(e){let t=em(e);return eE()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eB}function eM(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=eD(e),l=W(1);t&&(r?eg(r)&&(l=eI(r)):l=eI(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===em(a))&&i)?e$(a):W(0),c=(o.left+s.x)/l.x,d=(o.top+s.y)/l.y,u=o.width/l.x,f=o.height/l.y;if(a){let e=em(a),t=r&&eg(r)?em(r):r,n=e,i=eO(n);for(;i&&r&&t!==n;){let e=eI(i),t=i.getBoundingClientRect(),r=eR(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,u*=e.x,f*=e.y,c+=o,d+=a,i=eO(n=em(i))}}return ei({width:u,height:f,x:c,y:d})}function e_(e,t){let n=eT(e).scrollLeft;return t?t.left+n:eM(ex(e)).left+n}function eF(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-e_(e,n),y:n.top+t.scrollTop}}function ez(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=em(e),r=ex(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;let e=eE();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}let c=e_(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else c<=25&&(o+=c);return{width:o,height:a,x:l,y:s}}(e,n);else if("document"===t){let t,n,o,a,l,s,c;r=ex(e),t=ex(r),n=eT(r),o=r.ownerDocument.body,a=F(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=F(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+e_(r),c=-n.scrollTop,"rtl"===eR(o).direction&&(s+=F(t.clientWidth,o.clientWidth)-a),i={width:a,height:l,x:s,y:c}}else if(eg(t)){let e,r,o,a,l,s;r=(e=eM(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,a=ev(t)?eI(t):W(1),l=t.clientWidth*a.x,s=t.clientHeight*a.y,i={width:l,height:s,x:o*a.x,y:r*a.y}}else{let n=e$(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ei(i)}function eH(e){return"static"===eR(e).position}function eW(e,t){if(!ev(e)||"fixed"===eR(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ex(e)===n&&(n=n.ownerDocument.body),n}function eU(e,t){var n;let r=em(e);if(ew(e))return r;if(!ev(e)){let t=eL(e);for(;t&&!ek(t);){if(eg(t)&&!eH(t))return t;t=eL(t)}return r}let i=eW(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(ep(n)))&&eH(i);)i=eW(i,t);return i&&ek(i)&&eH(i)&&!eS(i)?r:i||function(e){let t=eL(e);for(;ev(t)&&!ek(t);){if(eS(t))return t;if(ew(t))break;t=eL(t)}return null}(e)||r}let eV=async function(e){let t=this.getOffsetParent||eU,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ev(t),i=ex(t),o="fixed"===n,a=eM(e,!0,o,t),l={scrollLeft:0,scrollTop:0},s=W(0);if(r||!r&&!o)if(("body"!==ep(t)||ey(i))&&(l=eT(t)),r){let e=eM(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=e_(i));o&&!r&&i&&(s.x=e_(i));let c=!i||r||o?W(0):eF(i,l);return{x:a.left+l.scrollLeft-s.x-c.x,y:a.top+l.scrollTop-s.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eY={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=ex(r),l=!!t&&ew(t.floating);if(r===a||l&&o)return n;let s={scrollLeft:0,scrollTop:0},c=W(1),d=W(0),u=ev(r);if((u||!u&&!o)&&(("body"!==ep(r)||ey(a))&&(s=eT(r)),u)){let e=eM(r);c=eI(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!a||u||o?W(0):eF(a,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-s.scrollTop*c.y+d.y+f.y}},getDocumentElement:ex,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?ew(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eA(e,[],!1).filter(e=>eg(e)&&"body"!==ep(e)),i=null,o="fixed"===eR(e).position,a=o?eL(e):e;for(;eg(a)&&!ek(a);){let t=eR(a),n=eS(a);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||ey(a)&&!n&&function e(t,n){let r=eL(t);return!(r===n||!eg(r)||ek(r))&&("fixed"===eR(r).position||e(r,n))}(e,a)))?i=t:r=r.filter(e=>e!==a),a=eL(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=ez(t,o[0],i),l=a.top,s=a.right,c=a.bottom,d=a.left;for(let e=1;e<o.length;e++){let n=ez(t,o[e],i);l=F(n.top,l),s=_(n.right,s),c=_(n.bottom,c),d=F(n.left,d)}return{width:s-d,height:c-l,x:d,y:l}},getOffsetParent:eU,getElementRects:eV,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eP(e);return{width:t,height:n}},getScale:eI,isElement:eg,isRTL:function(e){return"rtl"===eR(e).direction}};function eX(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eG=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:d=0}=V(e,t)||{};if(null==c)return{};let u=er(d),f={x:n,y:r},p=G(K(i)),m=J(p),x=await a.getDimensions(c),h="y"===p,g=h?"clientHeight":"clientWidth",v=o.reference[m]+o.reference[p]-f[p]-o.floating[m],b=f[p]-o.reference[p],y=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),w=y?y[g]:0;w&&await (null==a.isElement?void 0:a.isElement(y))||(w=l.floating[g]||o.floating[m]);let j=w/2-x[m]/2-1,C=_(u[h?"top":"left"],j),N=_(u[h?"bottom":"right"],j),S=w-x[m]-N,E=w/2-x[m]/2+(v/2-b/2),k=F(C,_(E,S)),R=!s.arrow&&null!=X(i)&&E!==k&&o.reference[m]/2-(E<C?C:N)-x[m]/2<0,T=R?E<C?E-C:E-S:0;return{[p]:f[p]+T,data:{[p]:k,centerOffset:E-k-T,...R&&{alignmentOffset:T}},reset:R}}});var eJ="u">typeof document?h.useLayoutEffect:function(){};function eK(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eK(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eK(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eq(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eZ(e,t){let n=eq(e);return Math.round(t*n)/n}function eQ(e){let t=h.useRef(e);return eJ(()=>{t.current=e}),t}var e0=h.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,i.jsx)(k.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,i.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e0.displayName="Arrow";var e1="Popper",[e5,e2]=w(e1),[e3,e4]=e5(e1),e6=e=>{let{__scopePopper:t,children:n}=e,[r,o]=h.useState(null),[a,l]=h.useState(void 0);return(0,i.jsx)(e3,{scope:t,anchor:r,onAnchorChange:o,placementState:a,setPlacementState:l,children:n})};e6.displayName=e1;var e8="PopperAnchor",e9=h.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,a=e4(e8,n),l=h.useRef(null),s=a.onAnchorChange,c=y(t,h.useCallback(e=>{l.current=e,e&&s(e)},[s])),d=h.useRef(null);h.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&s(d.current)});let u=a.placementState&&ts(a.placementState),f=u?.[0],p=u?.[1];return r?null:(0,i.jsx)(k.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...o,ref:c})});e9.displayName=e8;var e7="PopperContent",[te,tt]=e5(e7),tn=h.forwardRef((e,t)=>{var n,r,o,a,l,s,c,d,u,f,p,m,x;let g,v,b,w,C,N,{__scopePopper:S,side:E="bottom",sideOffset:T=0,align:L="center",alignOffset:A=0,arrowPadding:O=0,avoidCollisions:P=!0,collisionBoundary:D=[],collisionPadding:B=0,sticky:$="partial",hideWhenDetached:M=!1,updatePositionStrategy:z="optimized",onPlaced:W,...U}=e,er=e4(e7,S),[ei,eo]=h.useState(null),ea=y(t,eo),[ef,ep]=h.useState(null),em=function(e){let[t,n]=h.useState(void 0);return I(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(ef),eh=em?.width??0,eg=em?.height??0,ev="number"==typeof B?B:{top:0,right:0,bottom:0,left:0,...B},eb=Array.isArray(D)?D:[D],ey=eb.length>0,ew={padding:ev,boundary:eb.filter(ta),altBoundary:ey},{refs:ej,floatingStyles:eC,placement:eN,isPositioned:eS,middlewareData:eE}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[d,u]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=h.useState(r);eK(f,r)||p(r);let[m,x]=h.useState(null),[g,v]=h.useState(null),b=h.useCallback(e=>{e!==N.current&&(N.current=e,x(e))},[]),y=h.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),w=o||m,C=a||g,N=h.useRef(null),S=h.useRef(null),E=h.useRef(d),k=null!=s,R=eQ(s),T=eQ(i),L=eQ(c),A=h.useCallback(()=>{var e,r;let i,o,a;if(!N.current||!S.current)return;let l={placement:t,strategy:n,middleware:f};T.current&&(l.platform=T.current),(e=N.current,r=S.current,i=new Map,a={...(o={platform:eY,...l}).platform,_c:i},el(e,r,{...o,platform:a})).then(e=>{let t={...e,isPositioned:!1!==L.current};O.current&&!eK(E.current,t)&&(E.current=t,j.flushSync(()=>{u(t)}))})},[f,t,n,T,L]);eJ(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[c]);let O=h.useRef(!1);eJ(()=>(O.current=!0,()=>{O.current=!1}),[]),eJ(()=>{if(w&&(N.current=w),C&&(S.current=C),w&&C){if(R.current)return R.current(w,C,A);A()}},[w,C,A,R,k]);let P=h.useMemo(()=>({reference:N,floating:S,setReference:b,setFloating:y}),[b,y]),D=h.useMemo(()=>({reference:w,floating:C}),[w,C]),I=h.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eZ(D.floating,d.x),r=eZ(D.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eq(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,D.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:A,refs:P,elements:D,floatingStyles:I}),[d,A,P,D,I])}({strategy:"fixed",placement:E+("center"!==L?"-"+L:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,d=eD(e),u=o||a?[...d?eA(d):[],...t?eA(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=d&&s?function(e,t){let n,r=null,i=ex(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),o();let c=e.getBoundingClientRect(),{left:d,top:u,width:f,height:p}=c;if(l||t(),!f||!p)return;let m={rootMargin:-H(u)+"px "+-H(i.clientWidth-(d+f))+"px "+-H(i.clientHeight-(u+p))+"px "+-H(d)+"px",threshold:F(0,_(1,s))||1},x=!0;function h(t){let r=t[0].intersectionRatio;if(r!==s){if(!x)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||eX(c,e.getBoundingClientRect())||a(),x=!1}try{r=new IntersectionObserver(h,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),o}(d,n):null,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),d&&!c&&m.observe(d),t&&m.observe(t));let x=c?eM(e):null;return c&&function t(){let r=eM(e);x&&!eX(x,r)&&n(),x=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===z}),elements:{reference:er.anchor},middleware:[{name:(g={name:"offset",options:r=n={mainAxis:T+eg,alignmentAxis:A},async fn(e){var t,n;let{x:i,y:o,placement:a,middlewareData:l}=e,s=await eu(e,r);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:a}}}}).name,fn:g.fn,options:[n,void 0]},P&&{name:(v={name:"shift",options:l=a={mainAxis:!0,crossAxis:!1,limiter:"partial"===$?{fn:(o=void 0,{options:o={},fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=V(o,e),d={x:t,y:n},u=K(r),f=G(u),p=d[f],m=d[u],x=V(l,e),h="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+h.mainAxis,n=i.reference[f]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,v;let e="y"===f?"width":"height",t=ed.has(Y(r)),n=i.reference[u]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[u])||0)+(t?0:h.crossAxis),o=i.reference[u]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[u])||0)-(t?h.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[f]:p,[u]:m}}}).fn,options:[void 0,void 0]}:void 0,...ew},async fn(e){let{x:t,y:n,placement:r,platform:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=V(l,e),d={x:t,y:n},u=await i.detectOverflow(e,c),f=K(Y(r)),p=G(f),m=d[p],x=d[f];if(o){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=m+u[e],r=m-u[t];m=F(n,_(m,r))}if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=x+u[e],r=x-u[t];x=F(n,_(x,r))}let h=s.fn({...e,[p]:m,[f]:x});return{...h,data:{x:h.x-t,y:h.y-n,enabled:{[p]:o,[f]:a}}}}}).name,fn:v.fn,options:[a,void 0]},P&&{name:(b={name:"flip",options:c=s={...ew},async fn(e){var t,n,r,i,o,a,l,s;let d,u,f,{placement:p,middlewareData:m,rects:x,initialPlacement:h,platform:g,elements:v}=e,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:N=!0,...S}=V(c,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let E=Y(p),k=K(h),R=Y(h)===h,T=await (null==g.isRTL?void 0:g.isRTL(v.floating)),L=w||(R||!N?[en(h)]:(d=en(h),[q(h),d,q(d)])),A="none"!==C;!w&&A&&L.push(...(u=X(h),f=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?Q:Z;return t?Z:Q;case"left":case"right":return t?ee:et;default:return[]}}(Y(h),"start"===C,T),u&&(f=f.map(e=>e+"-"+u),N&&(f=f.concat(f.map(q)))),f));let O=[h,...L],P=await g.detectOverflow(e,S),D=[],I=(null==(n=m.flip)?void 0:n.overflows)||[];if(b&&D.push(P[E]),y){let e,t,n,r,i=(a=p,l=x,void 0===(s=T)&&(s=!1),e=X(a),n=J(t=G(K(a))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[n]>l.floating[n]&&(r=en(r)),[r,en(r)]);D.push(P[i[0]],P[i[1]])}if(I=[...I,{placement:p,overflows:D}],!D.every(e=>e<=0)){let e=((null==(r=m.flip)?void 0:r.index)||0)+1,t=O[e];if(t&&("alignment"!==y||k===K(t)||I.every(e=>K(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(j){case"bestFit":{let e=null==(o=I.filter(e=>{if(A){let t=K(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=h}if(p!==n)return{reset:{placement:n}}}return{}}}).name,fn:b.fn,options:[s,void 0]},{name:(w={name:"size",options:u=d={...ew,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,n;let r,i,{placement:o,rects:a,platform:l,elements:s}=e,{apply:c=()=>{},...d}=V(u,e),f=await l.detectOverflow(e,d),p=Y(o),m=X(o),x="y"===K(o),{width:h,height:g}=a.floating;"top"===p||"bottom"===p?(r=p,i=m===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(i=p,r="end"===m?"top":"bottom");let v=g-f.top-f.bottom,b=h-f.left-f.right,y=_(g-f[r],v),w=_(h-f[i],b),j=!e.middlewareData.shift,C=y,N=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(N=b),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(C=v),j&&!m){let e=F(f.left,0),t=F(f.right,0),n=F(f.top,0),r=F(f.bottom,0);x?N=h-2*(0!==e||0!==t?e+t:F(f.left,f.right)):C=g-2*(0!==n||0!==r?n+r:F(f.top,f.bottom))}await c({...e,availableWidth:N,availableHeight:C});let S=await l.getDimensions(s.floating);return h!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}).name,fn:w.fn,options:[d,void 0]},ef&&{name:(C={name:"arrow",options:p=f={element:ef,padding:O},fn(e){let{element:t,padding:n}="function"==typeof p?p(e):p;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eG({element:t.current,padding:n}).fn(e):{}:t?eG({element:t,padding:n}).fn(e):{}}}).name,fn:C.fn,options:[f,void 0]},tl({arrowWidth:eh,arrowHeight:eg}),M&&{name:(N={name:"hide",options:x=m={strategy:"referenceHidden",...ew,boundary:ey?ew.boundary:void 0},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...i}=V(x,e);switch(r){case"referenceHidden":{let r=es(await n.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:ec(r)}}}case"escaped":{let r=es(await n.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:ec(r)}}}default:return{}}}}).name,fn:N.fn,options:[m,void 0]}]}),ek=er.setPlacementState;I(()=>(ek(eN),()=>{ek(void 0)}),[eN,ek]);let[eR,eT]=ts(eN),eL=R(W);I(()=>{eS&&eL?.()},[eS,eL]);let eO=eE.arrow?.x,eP=eE.arrow?.y,eI=eE.arrow?.centerOffset!==0,[eB,e$]=h.useState();return I(()=>{ei&&e$(window.getComputedStyle(ei).zIndex)},[ei]),(0,i.jsx)("div",{ref:ej.setFloating,"data-radix-popper-content-wrapper":"",style:{...eC,transform:eS?eC.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eB,"--radix-popper-transform-origin":[eE.transformOrigin?.x,eE.transformOrigin?.y].join(" "),...eE.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,i.jsx)(te,{scope:S,placedSide:eR,placedAlign:eT,onArrowChange:ep,arrowX:eO,arrowY:eP,shouldHideArrow:eI,children:(0,i.jsx)(k.div,{"data-side":eR,"data-align":eT,...U,ref:ea,style:{...U.style,animation:eS?void 0:"none"}})})})});tn.displayName=e7;var tr="PopperArrow",ti={top:"bottom",right:"left",bottom:"top",left:"right"},to=h.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=tt(tr,n),a=ti[o.placedSide];return(0,i.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,i.jsx)(e0,{...r,ref:t,style:{...r.style,display:"block"}})})});function ta(e){return null!==e}to.displayName=tr;var tl=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[s,c]=ts(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+l/2,p="",m="";return"bottom"===s?(p=o?d:`${u}px`,m=`${-l}px`):"top"===s?(p=o?d:`${u}px`,m=`${r.floating.height+l}px`):"right"===s?(p=`${-l}px`,m=o?d:`${f}px`):"left"===s&&(p=`${r.floating.width+l}px`,m=o?d:`${f}px`),{data:{x:p,y:m}}}});function ts(e){let[t,n="center"]=e.split("-");return[t,n]}var tc=h.forwardRef((e,t)=>{let{container:n,...r}=e,[o,a]=h.useState(!1);I(()=>a(!0),[]);let l=n||o&&globalThis?.document?.body;return l?j.createPortal((0,i.jsx)(k.div,{...r,ref:t}),l):null});tc.displayName="Portal";var td=e=>{var t;let n,r,{present:i,children:o}=e,a=function(e){var t,n;let[r,i]=h.useState(),o=h.useRef(null),a=h.useRef(e),l=h.useRef("none"),s=h.useRef(void 0),[c,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},h.useReducer((e,t)=>n[e][t]??e,t));return h.useEffect(()=>{"mounted"===c?(l.current=s.current??tf(o.current),s.current=void 0):l.current="none"},[c]),I(()=>{let t=o.current,n=a.current;if(n!==e){let r=l.current,i=tf(t);e?(s.current=i,d("MOUNT")):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),a.current=e}},[e,d]),I(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let i=tf(o.current).includes(CSS.escape(n.animationName));if(n.target===r&&i&&(d("ANIMATION_END"),!a.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},i=e=>{e.target===r&&(l.current=tf(o.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:h.useCallback(e=>{if(e){let t=getComputedStyle(e);o.current=t,s.current=tf(t)}else o.current=null;i(e)},[])}}(i),l="function"==typeof o?o({present:a.isPresent}):h.Children.only(o),s=function(...e){let t=h.useRef(e);return t.current=e,h.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=tu(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];"function"==typeof t?t():tu(n[e],null)}}},[])}(a.ref,(t=l,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof o||a.isPresent?h.cloneElement(l,{ref:s}):null};function tu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function tf(e){return e?.animationName||"none"}td.displayName="Presence",h[" useEffectEvent ".trim().toString()],h[" useInsertionEffect ".trim().toString()];var tp=h[" useInsertionEffect ".trim().toString()]||I;Symbol("RADIX:SYNC_STATE");var tm=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tx=h.forwardRef((e,t)=>(0,i.jsx)(k.span,{...e,ref:t,style:{...tm,...e.style}}));tx.displayName="VisuallyHidden";var[th,tg]=w("Tooltip",[e2]),tv=e2(),tb="TooltipProvider",ty="tooltip.open",[tw,tj]=th(tb),tC=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,l=h.useRef(!0),s=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,i.jsx)(tw,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:h.useCallback(()=>{r<=0||(window.clearTimeout(c.current),l.current=!1)},[r]),onClose:h.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:h.useCallback(e=>{s.current=e},[]),disableHoverableContent:o,children:a})};tC.displayName=tb;var tN="Tooltip",[tS,tE]=th(tN),tk=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:l,delayDuration:s}=e,c=tj(tN,e.__scopeTooltip),d=tv(t),[u,f]=h.useState(null),p=function(){let[e,t]=h.useState(B());return I(()=>{t(e=>e??String($++))},[void 0]),e?`radix-${e}`:""}(),m=h.useRef(0),x=l??c.disableHoverableContent,g=s??c.delayDuration,v=h.useRef(!1),[b,y]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,o,a]=function({defaultProp:e,onChange:t}){let[n,r]=h.useState(e),i=h.useRef(n),o=h.useRef(t);return tp(()=>{o.current=t},[t]),h.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:i;{let t=h.useRef(void 0!==e);h.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[s,h.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else o(t)},[l,e,o,a])]}({prop:r,defaultProp:o??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(ty))):c.onClose(),a?.(e)},caller:tN}),w=h.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),j=h.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,y(!0)},[y]),C=h.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),N=h.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,y(!0),m.current=0},g)},[g,y]);return h.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,i.jsx)(e6,{...d,children:(0,i.jsx)(tS,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:u,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{c.isOpenDelayedRef.current?N():j()},[c.isOpenDelayedRef,N,j]),onTriggerLeave:h.useCallback(()=>{x?C():(window.clearTimeout(m.current),m.current=0)},[C,x]),onOpen:j,onClose:C,disableHoverableContent:x,children:n})})};tk.displayName=tN;var tR="TooltipTrigger",tT=h.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=tE(tR,n),a=tj(tR,n),l=tv(n),s=y(t,h.useRef(null),o.onTriggerChange),c=h.useRef(!1),d=h.useRef(!1),u=h.useCallback(()=>c.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),(0,i.jsx)(e9,{asChild:!0,...l,children:(0,i.jsx)(k.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:s,onPointerMove:v(e.onPointerMove,e=>{"touch"!==e.pointerType&&(d.current||a.isPointerInTransitRef.current||(o.onTriggerEnter(),d.current=!0))}),onPointerLeave:v(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:v(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:v(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:v(e.onBlur,o.onClose),onClick:v(e.onClick,o.onClose)})})});tT.displayName=tR;var tL="TooltipPortal",[tA,tO]=th(tL,{forceMount:void 0}),tP=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=tE(tL,t);return(0,i.jsx)(tA,{scope:t,forceMount:n,children:(0,i.jsx)(td,{present:n||a.open,children:(0,i.jsx)(tc,{asChild:!0,container:o,children:r})})})};tP.displayName=tL;var tD="TooltipContent",tI=h.forwardRef((e,t)=>{let n=tO(tD,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,l=tE(tD,e.__scopeTooltip);return(0,i.jsx)(td,{present:r||l.open,children:l.disableHoverableContent?(0,i.jsx)(tF,{side:o,...a,ref:t}):(0,i.jsx)(tB,{side:o,...a,ref:t})})}),tB=h.forwardRef((e,t)=>{let n=tE(tD,e.__scopeTooltip),r=tj(tD,e.__scopeTooltip),o=h.useRef(null),a=y(t,o),[l,s]=h.useState(null),{trigger:c,onClose:d}=n,u=o.current,{onPointerInTransitChange:f}=r,p=h.useCallback(()=>{s(null),f(!1)},[f]),m=h.useCallback((e,t)=>{let n,r=e.currentTarget,i={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(i,r.getBoundingClientRect());s(((n=[...function(e,t,n=5){let r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(i,o),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(n))),f(!0)},[f]);return h.useEffect(()=>()=>p(),[p]),h.useEffect(()=>{if(c&&u){let e=e=>m(e,u),t=e=>m(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}},[c,u,m,p]),h.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],l=t[o],s=a.x,c=a.y,d=l.x,u=l.y;c>r!=u>r&&n<(d-s)*(r-c)/(u-c)+s&&(i=!i)}return i}(n,l);r?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,u,l,d,p]),(0,i.jsx)(tF,{...e,ref:a})}),[t$,tM]=th(tN,{isInside:!1}),t_=((n=e=>"child"in e?e.children(e.child):e.children).displayName="TooltipContent.Slottable",n.__radixId=C,n),tF=h.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:l,...s}=e,c=tE(tD,n),d=tv(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(ty,u),()=>document.removeEventListener(ty,u)),[u]),h.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,u]),(0,i.jsx)(A,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,i.jsxs)(tn,{"data-state":c.stateAttribute,...d,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,i.jsx)(t_,{children:r}),(0,i.jsx)(t$,{scope:n,isInside:!0,children:(0,i.jsx)(tx,{id:c.contentId,role:"tooltip",children:o||r})})]})})});tI.displayName=tD;var tz="TooltipArrow",tH=h.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=tv(n);return tM(tz,n).isInside?null:(0,i.jsx)(to,{...o,...r,ref:t})});function tW({delayDuration:e=0,...t}){return(0,i.jsx)(tC,{delayDuration:e,...t})}function tU(e){return(0,i.jsx)(tW,{children:(0,i.jsx)(tk,{...e})})}function tV(e){return(0,i.jsx)(tT,{...e})}function tY({className:e,sideOffset:t=4,children:n,...r}){return(0,i.jsx)(tP,{children:(0,i.jsxs)(tI,{sideOffset:t,className:(0,d.cn)("z-50 w-fit max-w-64 origin-(--radix-tooltip-content-transform-origin) rounded-md bg-primary px-3 py-1.5 text-xs text-balance text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r,children:[n,(0,i.jsx)(tH,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] fill-primary"})]})})}function tX(e){let t=e.state??e.status;return"paused"===t?"Box is paused — resume to access":"stopped"===t?"Box is stopped — start to access":"missing"===t?"Box has no sandbox left":null}tH.displayName=tz;var tG=e.i(1485);let tJ=[{app:"claude",label:"Claude",icon:"claude"},{app:"codex",label:"Codex",icon:"codex"},{app:"vscode",label:"VS Code",icon:"ext"},{app:"cmux",label:"cmux",icon:"terminal"},{app:"herdr",label:"Herdr",icon:"terminal"},{app:"iterm2",label:"iTerm2",icon:"terminal"},{app:"finder",label:"Finder",icon:"folder"}];function tK({url:e}){let[t,n]=(0,h.useState)(!1),r=(0,h.useRef)(null);(0,h.useEffect)(()=>()=>{r.current&&clearTimeout(r.current)},[]);let o=(0,h.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),n(!0),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>n(!1),1500)}catch{}},[e]);return(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",onClick:o,children:[t?(0,i.jsx)(l.Icons.check,{}):(0,i.jsx)(l.Icons.copy,{}),t?"Copied":"Copy URL"]})}function tq({reason:e,children:t}){return e?(0,i.jsxs)(tU,{children:[(0,i.jsx)(tV,{asChild:!0,children:(0,i.jsx)("span",{className:"cursor-not-allowed",children:t})}),(0,i.jsx)(tY,{children:e})]}):(0,i.jsx)(i.Fragment,{children:t})}function tZ({box:e}){let t,{webUrl:n,vncUrl:r}=e,{apps:o,supported:a,pending:s,launch:c}=function(e){let[t,n]=(0,h.useState)(null),[r,i]=(0,h.useState)(null);(0,h.useEffect)(()=>{let e=!0;return(async()=>{try{let t=await fetch("/api/v1/open-targets",{credentials:"same-origin"});e&&n(t.ok?await t.json():null)}catch{e&&n(null)}})(),()=>{e=!1}},[]);let o=(0,h.useCallback)(async t=>{i(t);try{let n=await fetch(`/api/v1/boxes/${encodeURIComponent(e.id)}/open`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({app:t})});if(!n.ok){let e=await n.json().catch(()=>null);window.alert(`Open in ${t} failed: ${e?.error?.message??`HTTP ${n.status}`}`)}}catch(e){window.alert(`Open in ${t} failed: ${e instanceof Error?e.message:String(e)}`)}finally{i(null)}},[e.id]),a=t?.supported?t.targets:null;return{apps:a?tJ.map(({app:t,label:n,icon:r})=>{let i=a[t],o=i.available?i.providers&&!i.providers.includes(e.provider)?`Not available for ${e.provider} boxes`:null:i.reason??`${n} is not installed`;return{app:t,label:n,icon:r,disabledReason:o}}):[],supported:null!==a,pending:r,launch:o}}(e),d="paused"===e.status?"Box is paused — resume to access":"stopped"===e.status?"Box is stopped — start to access":null,{href:u,reason:p}=(t=e.state?"running"===e.state:"running"===e.status,e.webUrl?t?{href:`/boxes/${encodeURIComponent(e.id)}/web`,reason:null}:{href:null,reason:tX(e)??"Box is not running"}:{href:null,reason:tX(e)??"No web service exposed"}),m=r??(e.vncEnabled&&"running"===e.status?`/boxes/${encodeURIComponent(e.id)}/vnc`:null),x=m?null:!1===e.vncEnabled?"VNC is not enabled for this box":d??"VNC is not available";return a||n||m?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tG.SectionLabel,{children:"Access"}),(0,i.jsxs)(f.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,i.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,i.jsx)("div",{className:"text-[13.5px] font-medium",children:n||!m?"Web":"VNC"}),(0,i.jsx)("div",{className:"mt-0.5 break-all font-mono text-[11.5px] text-muted-foreground",children:n??(m?"Remote desktop":p)})]}),(0,i.jsxs)("div",{className:"flex flex-none flex-wrap gap-1.5",children:[u?(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",href:u,target:"_blank",rel:"noreferrer",children:[(0,i.jsx)(l.Icons.ext,{}),"Open web"]}):(0,i.jsx)(tq,{reason:p,children:(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:!0,children:[(0,i.jsx)(l.Icons.ext,{}),"Open web"]})}),n?(0,i.jsx)(tK,{url:n}):null,m?(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",href:m,target:"_blank",rel:"noreferrer",onClick:()=>{r&&fetch(`/api/v1/boxes/${encodeURIComponent(e.id)}/screen`,{method:"POST",credentials:"same-origin"}).catch(()=>{})},children:[(0,i.jsx)(l.Icons.ext,{}),"Open VNC"]}):(0,i.jsx)(tq,{reason:x,children:(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:!0,children:[(0,i.jsx)(l.Icons.ext,{}),"Open VNC"]})})]})]}),a?(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,i.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,i.jsx)("div",{className:"text-[13.5px] font-medium",children:"Apps"}),(0,i.jsx)("div",{className:"mt-0.5 text-[11.5px] text-muted-foreground",children:"Open the box project from the host"})]}),(0,i.jsx)("div",{className:"flex flex-none flex-wrap justify-end gap-1.5",children:o.map(({app:e,label:t,icon:n,disabledReason:r})=>{let o=l.Icons[n];return(0,i.jsx)(tq,{reason:r,children:(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:null!==r||null!==s,onClick:()=>void c(e),children:[(0,i.jsx)(o,{}),t]})},e)})})]}):null]})]}):null}var tQ=e.i(80922),t0=e.i(95141),t1=e.i(3060),t5=e.i(16200),t2=e.i(99869),t3=e.i(86184);let t4=0;function t6(){let[e,t]=(0,h.useState)([]),n=(0,h.useCallback)(e=>t(t=>t.filter(t=>t.id!==e)),[]);return{toasts:e,push:(0,h.useCallback)(e=>{let r=++t4;t(t=>[...t,{id:r,...e}]),setTimeout(()=>n(r),4200)},[n]),dismiss:n}}function t8({toasts:e,dismiss:t}){return(0,i.jsx)("div",{className:"pointer-events-none fixed bottom-5 right-5 z-[60] flex w-[340px] max-w-[calc(100vw-40px)] flex-col gap-2",children:e.map(e=>(0,i.jsxs)("div",{className:"anim-pop pointer-events-auto relative flex items-start gap-3 rounded-xl border border-border bg-card p-3.5 pr-9 shadow-[0_16px_40px_-18px_rgba(20,24,30,.35)]",children:[(0,i.jsx)("span",{className:(0,d.cn)("mt-0.5 grid h-6 w-6 flex-none place-items-center rounded-md border","error"===e.variant?"border-[var(--red-line)] bg-[var(--red-soft)] text-[var(--red)]":"border-[var(--green-line)] bg-accent text-primary"),children:"error"===e.variant?(0,i.jsx)(l.Icons.warn,{className:"size-3.5"}):(0,i.jsx)(l.Icons.check,{className:"size-3.5"})}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("div",{className:"text-[13px] font-semibold leading-tight",children:e.title}),e.detail?(0,i.jsx)("div",{className:"mt-0.5 break-words font-mono text-[11.5px] leading-normal text-muted-foreground",children:e.detail}):null]}),(0,i.jsx)("button",{className:"absolute right-2.5 top-2.5 grid h-5 w-5 cursor-pointer place-items-center rounded border-0 bg-transparent text-[#a4a9b0] hover:text-foreground",onClick:()=>t(e.id),"aria-label":"Dismiss",children:(0,i.jsx)(l.Icons.x,{className:"size-3"})})]},e.id))})}async function t9(e){try{let t=await e.json();return t.error?.message??`HTTP ${String(e.status)}`}catch{return`HTTP ${String(e.status)}`}}function t7({label:e,desc:t,children:n}){return(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,i.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,i.jsx)("div",{className:"text-[13.5px] font-medium",children:e}),(0,i.jsx)("div",{className:"mt-0.5 text-[11.5px] leading-normal text-muted-foreground",children:t})]}),(0,i.jsx)("div",{className:"flex flex-none flex-wrap gap-1.5",children:n})]})}function ne({icon:e,disabled:t,onRun:n,children:r}){let[o,a]=(0,h.useState)(!1);return(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:t||o,onClick:()=>{a(!0),n().finally(()=>a(!1))},children:[o?(0,i.jsx)("span",{className:"spin",style:{width:12,height:12}}):(0,i.jsx)(e,{}),r]})}function nt({box:e}){let t=(0,o.useRouter)(),{toasts:n,push:r,dismiss:a}=t6(),[s,c]=(0,h.useState)(!1),[d,u]=(0,h.useState)(null),p=e.id.startsWith("job:"),m="running"!==e.status,x=!0===e.supportsBackup&&!p,v=(0,h.useCallback)(async()=>{if(x)try{let t=await fetch(`/api/v1/projects/${encodeURIComponent(e.projectId)}/bots`,{credentials:"same-origin"});if(!t.ok)return;let{bots:n}=await t.json(),r=n.find(t=>t.bot===(e.name??"")),i=r?(0,t2.preferredBackup)(r)??r.backups[0]:void 0;u(i?{stamp:i.stamp,state:i.state}:null)}catch{u(null)}},[e.projectId,e.name,x]);if((0,h.useEffect)(()=>{v()},[v]),p)return null;let b=async()=>{let n;try{n=await fetch(`/api/v1/boxes/${encodeURIComponent(e.id)}/backup`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:"{}"})}catch(e){r({variant:"error",title:"Backup failed",detail:e instanceof Error?e.message:String(e)});return}if(!n.ok)return void r({variant:"error",title:"Backup failed",detail:await t9(n)});let i=await n.json();r({title:`Backed up ${i.bot}`,detail:i.state?`${i.stamp} — ${String(i.files)} file(s) + identity`:`${i.stamp} — ${String(i.files)} file(s), NO identity captured`,...i.state?{}:{variant:"error"}}),v(),t.refresh()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tG.SectionLabel,{children:"Bot"}),(0,i.jsxs)(f.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[m?(0,i.jsxs)("div",{className:"flex items-center gap-2.5 bg-[var(--amber-soft)] px-4.5 p-2.5 text-[12.5px] text-[var(--amber)]",children:[(0,i.jsx)(l.Icons.warn,{className:"size-3.5 flex-none"}),"Box is ",e.status," — backing up and cloning both read the live box."]}):null,x?(0,i.jsx)(t7,{label:"Backup",desc:d?(0,i.jsxs)(i.Fragment,{children:["Last backup ",(0,t2.readableStamp)(d.stamp),d.state?"":" (workspace only)"]}):"Workspace + this bot’s identity: auth token, pairings, history.",children:(0,i.jsx)(ne,{icon:l.Icons.shield,disabled:m,onRun:b,children:"Back up now"})}):null,(0,i.jsx)(t7,{label:"Clone",desc:"A second box from these files, with a fresh identity of its own. Not a backup.",children:(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:m,onClick:()=>c(!0),children:[(0,i.jsx)(l.Icons.copy,{}),"Clone…"]})})]}),s?(0,i.jsx)(nn,{box:e,onClose:()=>c(!1),onDone:r}):null,(0,i.jsx)(t8,{toasts:n,dismiss:a})]})}function nn({box:e,onClose:t,onDone:n}){let r=(0,o.useRouter)(),[a,s]=(0,h.useState)(`${e.name??e.task}-clone`),[c,u]=(0,h.useState)(!1),[f,p]=(0,h.useState)(null),[m,x]=(0,h.useState)(null),v=async()=>{u(!0),p(null);try{let t=await fetch(`/api/v1/boxes/${encodeURIComponent(e.id)}/clone`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({name:a.trim()||void 0})});if(!t.ok)return p(await t9(t)),!1;let n=await t.json();return x(n.jobId),r.refresh(),!0}catch(e){return p(e instanceof Error?e.message:String(e)),!1}finally{u(!1)}};return(0,i.jsxs)(t0.Dialog,{onClose:t,children:[(0,i.jsxs)(t0.DialogHeader,{children:[(0,i.jsx)(t0.DialogIcon,{children:(0,i.jsx)(l.Icons.copy,{className:"size-4"})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)(t0.DialogTitle,{children:["Clone ",e.task]}),(0,i.jsxs)(t0.DialogDescription,{children:["A new box from this one’s workspace files and its ",(0,i.jsx)("code",{children:"agentbox.yaml"}),", with a ",(0,i.jsx)("strong",{children:"fresh identity"}),"— it onboards from scratch and generates its own token. To keep this box’s identity instead, back it up and restore it."]})]})]}),(0,i.jsx)(t0.DialogBody,{children:m?(0,i.jsx)(t3.JobLogStream,{jobId:m,endpoint:`/api/v1/jobs/${m}/logs`}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t5.Label,{htmlFor:"clone-name",children:"New box name"}),(0,i.jsx)(t1.Input,{id:"clone-name",value:a,onChange:e=>s(e.target.value),placeholder:"my-bot-clone"}),f?(0,i.jsx)("div",{className:(0,d.cn)("mt-3 rounded-lg border border-[var(--red-line)] bg-[var(--red-soft)] p-3","text-[12.5px] leading-relaxed text-[var(--red)]"),children:f}):null]})}),(0,i.jsxs)(t0.DialogFooter,{children:[(0,i.jsx)(g.Button,{variant:"outline",size:"sm",onClick:t,children:m?"Close":"Cancel"}),m?null:(0,i.jsxs)(g.Button,{size:"sm",disabled:c||0===a.trim().length,onClick:()=>{v().then(e=>{e&&n({title:"Clone started"})})},children:[c?(0,i.jsx)("span",{className:"spin",style:{width:12,height:12}}):(0,i.jsx)(l.Icons.copy,{}),"Clone"]})]})]})}var nr=e.i(30544),ni=e.i(51096);function no({k:e,v:t,mono:n,link:r}){return(0,i.jsxs)("div",{className:"grid grid-cols-[156px_1fr] items-baseline gap-4 px-4.5 p-3 max-sm:grid-cols-1 max-sm:gap-1",children:[(0,i.jsx)("div",{className:"font-mono text-xs text-muted-foreground",children:e}),(0,i.jsx)("div",{className:(0,d.cn)("min-w-0 text-[13.5px]",n?"font-mono text-[13px]":""),children:r?(0,i.jsx)(ni.default,{className:"cursor-pointer text-primary",href:r,children:t}):t})]})}var na=e.i(31758),nl=e.i(49604),ns=e.i(9383);let nc=(0,ns.createServerReference)("70aa4e7ad793775cd9d218cb2581d5063e5c41e19e",ns.callServer,void 0,ns.findSourceMapURL,"gitBranchAction"),nd=(0,ns.createServerReference)("601e3dfce4a4ab2a05da305b17b9a2b1a0deff17ac",ns.callServer,void 0,ns.findSourceMapURL,"gitCheckoutAction"),nu=(0,ns.createServerReference)("6082cd78a335a4443f8c036a77f52ed6a3083bdcdf",ns.callServer,void 0,ns.findSourceMapURL,"gitPullAction"),nf=(0,ns.createServerReference)("601f2c3e0321a08383085ec5e3a5fbb8716ea76294",ns.callServer,void 0,ns.findSourceMapURL,"gitPushAction"),np=(0,ns.createServerReference)("60e0680d8810c30312023715663c6f70d4167b0579",ns.callServer,void 0,ns.findSourceMapURL,"gitPushHostAction");function nm({label:e,desc:t,children:n}){return(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,i.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,i.jsx)("div",{className:"text-[13.5px] font-medium",children:e}),(0,i.jsx)("div",{className:"mt-0.5 font-mono text-[11.5px] text-muted-foreground",children:t})]}),(0,i.jsx)("div",{className:"flex flex-none flex-wrap gap-1.5",children:n})]})}function nx({icon:e,disabled:t,onRun:n,children:r}){let[o,a]=(0,h.useState)(!1),l=async()=>{a(!0);try{await n()}finally{a(!1)}};return(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:t||o,onClick:l,children:[o?(0,i.jsx)("span",{className:"spin",style:{width:12,height:12}}):(0,i.jsx)(e,{}),r]})}function nh(e,t){let n=(e??"").trim()||(t??"").trim();return n?n.split("\n")[0]:void 0}function ng({box:e}){let t=(0,o.useRouter)(),{toasts:n,push:r,dismiss:a}=t6(),[s,c]=(0,h.useState)(null),[u,p]=(0,h.useState)(null),m="running"!==e.status,x=(0,h.useCallback)(async()=>{try{let t=await fetch(`/api/v1/boxes/${encodeURIComponent(e.id)}/git`,{credentials:"same-origin"});c(t.ok?await t.json():null)}catch{c(null)}},[e.id]);(0,h.useEffect)(()=>{x()},[x]);let v=s?.ok&&s.branch?s.branch:e.branch||"—",b=()=>{x(),t.refresh()},y=async(e,t)=>{let n=await t();n.ok?(r({title:e,detail:nh(n.stdout,n.stderr)}),b()):r({variant:"error",title:`${e} failed`,detail:n.error})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(f.Card,{className:(0,d.cn)("divide-y divide-border/60 overflow-hidden",m?"opacity-90":""),children:[m?(0,i.jsxs)("div",{className:"flex items-center gap-2.5 bg-[var(--amber-soft)] px-4.5 p-2.5 text-[12.5px] text-[var(--amber)]",children:[(0,i.jsx)(l.Icons.warn,{className:"size-3.5 flex-none"}),"Box is ",e.status," — git operations need a running box."]}):null,(0,i.jsxs)(nm,{label:"Sync",desc:`origin ↔ ${v}`,children:[(0,i.jsx)(nx,{icon:l.Icons.arrowL,disabled:m,onRun:()=>y("Pulled from origin",()=>nu(e.id)),children:"Pull"}),(0,i.jsx)(nx,{icon:l.Icons.ext,disabled:m,onRun:()=>y("Pushed to origin",()=>nf(e.id)),children:"Push"}),(0,i.jsx)(nx,{icon:l.Icons.host,disabled:m,onRun:()=>y("Pushed to host",()=>np(e.id)),children:"Push to host"})]}),(0,i.jsxs)(nm,{label:"Branch",desc:`currently on ${v}`,children:[(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:m,onClick:()=>p("change"),children:[(0,i.jsx)(l.Icons.branch,{}),"Change branch"]}),(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:m,onClick:()=>p("new"),children:[(0,i.jsx)(l.Icons.plus,{}),"New branch"]})]})]}),"change"===u?(0,i.jsx)(ny,{box:e,branch:v,onClose:()=>p(null),onDone:r,onRefresh:b}):null,"new"===u?(0,i.jsx)(nw,{box:e,onClose:()=>p(null),onDone:r,onRefresh:b}):null,(0,i.jsx)(t8,{toasts:n,dismiss:a})]})}let nv="__manual__";function nb({boxId:e,value:t,onChange:n,id:r,headLabel:o,currentBranch:a}){let[l,s]=(0,h.useState)(null),[c,d]=(0,h.useState)(a??null),[u,f]=(0,h.useState)(!1);return((0,h.useEffect)(()=>{let t=!1;return(async()=>{try{let n=await fetch(`/api/v1/boxes/${encodeURIComponent(e)}/branches`,{credentials:"same-origin"}),r=n.ok?await n.json():null;if(t)return;r&&Array.isArray(r.branches)&&r.branches.length>0?(s(r.branches),a||"string"!=typeof r.current||d(r.current)):(s([]),f(!0))}catch{t||(s([]),f(!0))}})(),()=>{t=!0}},[e,a]),null===l)?(0,i.jsx)(nl.Select,{id:r,value:"",disabled:!0,wrapperClassName:"w-full",children:(0,i.jsx)("option",{value:"",children:"Loading branches…"})}):u?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t1.Input,{id:r,className:"font-mono text-[13px]",autoFocus:!0,value:t,onChange:e=>n(e.target.value),placeholder:o?"HEAD":"feature-x"}),l.length>0?(0,i.jsx)("button",{type:"button",onClick:()=>{f(!1),n("")},className:"mt-1.5 cursor-pointer text-xs text-secondary-foreground underline-offset-2 hover:underline",children:"← Back to branch list"}):null]}):(0,i.jsxs)(nl.Select,{id:r,value:t,wrapperClassName:"w-full",onChange:e=>{if(e.target.value===nv){f(!0),n("");return}n(e.target.value)},children:[o?(0,i.jsx)("option",{value:"",children:o}):(0,i.jsx)("option",{value:"",disabled:!0,children:"Select a branch…"}),(0,i.jsx)("option",{value:nv,children:"Other / type manually…"}),(0,i.jsx)("option",{disabled:!0,children:"────────────"}),l.map(e=>(0,i.jsxs)("option",{value:e,children:[e,e===c?" (current)":""]},e))]})}function ny({box:e,branch:t,onClose:n,onDone:r,onRefresh:o}){let[a,s]=(0,h.useState)(""),[c,d]=(0,h.useState)(!1),[u,f]=(0,h.useState)(null),p=a.trim().length>0;return(0,i.jsxs)(t0.Dialog,{onClose:n,className:"max-w-[440px]",children:[(0,i.jsxs)(t0.DialogHeader,{children:[(0,i.jsx)(t0.DialogIcon,{children:(0,i.jsx)(l.Icons.branch,{})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(t0.DialogTitle,{children:"Change branch"}),(0,i.jsxs)(t0.DialogDescription,{children:[e.id," · currently on ",t]})]})]}),(0,i.jsxs)(t0.DialogBody,{children:[(0,i.jsx)(t5.Label,{htmlFor:"gb-branch",children:"Branch"}),(0,i.jsx)(nb,{boxId:e.id,id:"gb-branch",value:a,onChange:s,currentBranch:t}),(0,i.jsx)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:"The branch must exist and not be checked out in another worktree."}),u?(0,i.jsx)("p",{className:"mt-2 break-words font-mono text-xs text-destructive",children:u}):null]}),(0,i.jsxs)(t0.DialogFooter,{children:[(0,i.jsx)(g.Button,{variant:"outline",onClick:n,disabled:c,children:"Cancel"}),(0,i.jsxs)(g.Button,{onClick:()=>{p&&!c&&(d(!0),f(null),(async()=>{let t=await nd(e.id,a.trim());t.ok?(r({title:"Branch changed",detail:nh(t.stdout,t.stderr)}),n(),o()):(f(t.error),d(!1))})())},disabled:!p||c,children:[c?(0,i.jsx)("span",{className:"spin"}):(0,i.jsx)(l.Icons.check,{}),c?"Checking out…":"Change branch"]})]})]})}function nw({box:e,onClose:t,onDone:n,onRefresh:r}){let[o,a]=(0,h.useState)(""),[s,c]=(0,h.useState)(""),[d,u]=(0,h.useState)(!1),[f,p]=(0,h.useState)(null),m=o.trim().length>0,x=()=>{m&&!d&&(u(!0),p(null),(async()=>{let i=await nc(e.id,o.trim(),s.trim()||void 0);i.ok?(n({title:"Branch created",detail:nh(i.stdout,i.stderr)}),t(),r()):(p(i.error),u(!1))})())};return(0,i.jsxs)(t0.Dialog,{onClose:t,className:"max-w-[440px]",children:[(0,i.jsxs)(t0.DialogHeader,{children:[(0,i.jsx)(t0.DialogIcon,{children:(0,i.jsx)(l.Icons.branch,{})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(t0.DialogTitle,{children:"New branch"}),(0,i.jsxs)(t0.DialogDescription,{children:[e.id," · branching in the box workspace"]})]})]}),(0,i.jsxs)(t0.DialogBody,{children:[(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(t5.Label,{htmlFor:"nb-name",children:"Name"}),(0,i.jsx)(t1.Input,{id:"nb-name",className:"font-mono text-[13px]",autoFocus:!0,value:o,onChange:e=>a(e.target.value),onKeyDown:e=>{"Enter"===e.key&&x()},placeholder:"my-branch"}),(0,i.jsxs)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:["An ",(0,i.jsx)("span",{className:"font-mono",children:"agentbox/"})," prefix is added when missing."]})]}),(0,i.jsxs)(t5.Label,{htmlFor:"nb-from",children:["Base ref ",(0,i.jsx)("span",{className:"font-normal text-[#a4a9b0]",children:"(optional)"})]}),(0,i.jsx)(nb,{boxId:e.id,id:"nb-from",value:s,onChange:c,headLabel:"Current HEAD (default)"}),(0,i.jsx)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:"Defaults to the box's current HEAD."}),f?(0,i.jsx)("p",{className:"mt-2 break-words font-mono text-xs text-destructive",children:f}):null]}),(0,i.jsxs)(t0.DialogFooter,{children:[(0,i.jsx)(g.Button,{variant:"outline",onClick:t,disabled:d,children:"Cancel"}),(0,i.jsxs)(g.Button,{onClick:x,disabled:!m||d,children:[d?(0,i.jsx)("span",{className:"spin"}):(0,i.jsx)(l.Icons.plus,{}),d?"Creating…":"Create branch"]})]})]})}let nj=(0,ns.createServerReference)("60da82486c45cc898a820bef37096ef3789b315977",ns.callServer,void 0,ns.findSourceMapURL,"restartServiceAction"),nC=new Set(["ready","running","done"]),nN=new Set(["crashed","unhealthy","backoff","failed"]),nS={up:"bg-[var(--green)]",bad:"bg-[var(--red)]",idle:"bg-[var(--amber)]"},nE={up:"text-[var(--green-ink)]",bad:"text-[var(--red)]",idle:"text-[var(--amber)]"};function nk({svc:e,disabled:t,onRestart:n}){var r;let o=(r=e.state,nC.has(r)?"up":nN.has(r)?"bad":"idle");return(0,i.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[(0,i.jsx)("span",{className:(0,d.cn)("badge-dot",nS[o]),"aria-hidden":!0}),(0,i.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[13px] text-secondary-foreground",children:e.name}),(0,i.jsx)("span",{className:(0,d.cn)("font-mono text-xs",nE[o]),children:e.state}),e.restarts>0?(0,i.jsxs)("span",{className:"font-mono text-[11px] text-muted-foreground",children:["↻",e.restarts]}):null,(0,i.jsx)(g.Button,{variant:"outline",size:"icon-sm",title:`Restart ${e.name}`,disabled:t,onClick:()=>n(e.name),children:(0,i.jsx)(l.Icons.refresh,{})})]})}function nR({id:e,running:t}){let[n,r]=(0,h.useState)(null),[o,a]=(0,h.useState)(null),[s,c]=(0,h.useTransition)(),d=(0,h.useCallback)(async()=>{try{let t=await fetch(`/api/v1/boxes/${encodeURIComponent(e)}/services`,{credentials:"same-origin"});if(!t.ok)return void a(`status ${String(t.status)}`);r(await t.json()),a(null)}catch(e){a(e instanceof Error?e.message:String(e))}},[e]);(0,h.useEffect)(()=>{if(d(),!t)return;let e=setInterval(()=>void d(),4e3);return()=>clearInterval(e)},[d,t]);let u=t=>{c(async()=>{let n=await nj(e,t);n.ok||window.alert(`Restart failed: ${n.error}`),await d()})},p=n?.services??[],m=p.length>0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tG.SectionLabel,{right:m?(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:!t||s,onClick:()=>u(void 0),children:[(0,i.jsx)(l.Icons.refresh,{}),"Restart all"]}):null,children:"Services"}),(0,i.jsx)(f.Card,{className:"divide-y divide-border/60 overflow-hidden",children:n||o?o?(0,i.jsxs)("div",{className:"px-4 py-3 text-sm text-muted-foreground",children:["Could not load services (",o,")."]}):m?(0,i.jsxs)(i.Fragment,{children:[n?.source==="persisted"?(0,i.jsx)("div",{className:"bg-muted/30 px-4 py-1.5 font-mono text-[11px] text-muted-foreground",children:"persisted snapshot — box not running"}):null,p.map(e=>(0,i.jsx)(nk,{svc:e,disabled:!t||s,onRestart:e=>u(e)},e.name))]}):(0,i.jsx)("div",{className:"px-4 py-3 text-sm text-muted-foreground",children:n?.source==="unavailable"?"No service status (box not running or no snapshot yet).":"No services declared in agentbox.yaml."}):(0,i.jsx)("div",{className:"px-4 py-3 text-sm text-muted-foreground",children:"Loading…"})})]})}var nT=e.i(35594);e.s(["default",0,function(){let{id:e}=(0,o.useParams)(),{box:t,project:n}=(0,p.useStore)(),r=t(e);if(!r)return(0,i.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8",children:[(0,i.jsx)(tQ.BackLink,{to:"/",children:"All boxes"}),(0,i.jsx)(na.EmptyBox,{children:"This box no longer exists — it may have been destroyed."})]});let d=n(r.projectId);return(0,i.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,i.jsx)(tQ.BackLink,{to:"/projects/"+r.projectId,children:d?d.name:"Project"}),(0,i.jsxs)("div",{className:"flex items-start gap-4 max-md:flex-col",children:[(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsxs)("h1",{className:"flex flex-wrap items-center gap-3 text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:[r.task,r.persistent?(0,i.jsx)(s.PersistentMark,{className:"size-4"}):null,(0,i.jsx)(c.StatusBadge,{status:r.status})]}),(0,i.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:[(0,i.jsx)("span",{className:"font-mono text-secondary-foreground",children:r.id})," ·"," ",(0,i.jsx)("span",{className:"font-mono text-secondary-foreground",children:r.repo})," · ",r.host]})]}),(0,i.jsx)("div",{className:"ml-auto flex-none max-md:ml-0",children:(0,i.jsx)(nr.BoxActions,{box:r,size:"lg"})})]}),r.error?(0,i.jsx)(u,{className:"mt-4 border-[var(--red-line)] bg-[var(--red-soft)] text-[var(--red)]",icon:l.Icons.warn,title:"Box errored",children:(0,i.jsx)("span",{className:"font-mono text-secondary-foreground",children:r.error})}):null,(0,i.jsx)(x,{boxId:r.id}),(0,i.jsx)(tG.SectionLabel,{children:"Overview"}),(0,i.jsxs)(nT.StatGrid,{children:[(0,i.jsx)(nT.Stat,{k:"Status",v:(0,i.jsx)(c.StatusBadge,{status:r.status})}),(0,i.jsx)(nT.Stat,{k:"Agent CLI",v:r.agent,mono:!0}),(0,i.jsx)(nT.Stat,{k:"Commits",v:r.commits??"—",icon:l.Icons.commit}),(0,i.jsx)(nT.Stat,{k:"Files touched",v:r.filesTouched??"—",icon:l.Icons.file}),(0,i.jsx)(nT.Stat,{k:"Last activity",v:(0,i.jsx)(a.Ago,{ms:r.lastActivity}),mono:!0})]}),(0,i.jsx)(tZ,{box:r}),(0,i.jsx)(nt,{box:r}),!1===r.hasGit?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tG.SectionLabel,{children:"Git operations"}),(0,i.jsx)(ng,{box:r})]}),(0,i.jsx)(nR,{id:r.id,running:"running"===r.status}),(0,i.jsx)(tG.SectionLabel,{children:"Details"}),(0,i.jsxs)(f.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[(0,i.jsx)(no,{k:"Box ID",v:r.id,mono:!0}),(0,i.jsx)(no,{k:"Project",v:d?d.name:"—",link:d?"/projects/"+r.projectId:null}),(0,i.jsx)(no,{k:"Repository",v:r.repo,mono:!0}),!1===r.hasGit?null:(0,i.jsx)(no,{k:"Branch",v:r.branch,mono:!0}),(0,i.jsx)(no,{k:"Host",v:r.host,mono:!0}),(0,i.jsx)(no,{k:"Created",v:new Date(r.createdAt).toLocaleString(),mono:!0})]})]})}],77084)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77084,e=>{"use strict";let t,n;var r,i=e.i(1262),o=e.i(45971),l=e.i(33789),s=e.i(44344),a=e.i(77869),c=e.i(86892),d=e.i(65232);function u({className:e,icon:t,title:n,children:r}){return(0,i.jsxs)("div",{className:(0,d.cn)("relative flex w-full items-start gap-3 rounded-xl border p-4",e),children:[t?(0,i.jsx)(t,{className:"mt-0.5 size-4 flex-none"}):null,(0,i.jsxs)("div",{className:"min-w-0",children:[n?(0,i.jsx)("div",{className:"mb-0.5 text-[13.5px] font-semibold leading-tight",children:n}):null,(0,i.jsx)("div",{className:"text-[12.5px] leading-normal",children:r})]})]})}var f=e.i(8536),p=e.i(96621),m=e.i(88451);function x({boxId:e}){let{state:t}=(0,p.useStore)(),n=t.approvals.filter(t=>t.boxId===e).sort((e,t)=>e.createdAt-t.createdAt);return 0===n.length?null:(0,i.jsxs)("div",{className:"mt-4 overflow-hidden rounded-xl border border-[var(--amber-line)] bg-[var(--amber-soft)]",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2 border-b border-[var(--amber-line)] px-4 py-2.5",children:[(0,i.jsx)(s.Icons.shield,{className:"size-4 flex-none text-[var(--amber)]"}),(0,i.jsxs)("span",{className:"text-[13.5px] font-semibold",children:[n.length," pending approval",1===n.length?"":"s"]}),(0,i.jsx)("span",{className:"text-[12.5px] text-muted-foreground",children:"— this box is waiting on you."})]}),(0,i.jsx)("div",{className:"divide-y divide-[var(--amber-line)]",children:n.map(e=>(0,i.jsxs)("div",{className:"flex items-start gap-3 px-4 py-3",children:[(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsx)("div",{className:"truncate font-mono text-[13px] text-secondary-foreground",children:e.command??e.message}),e.detail?(0,i.jsx)("div",{className:"mt-0.5 truncate text-[11.5px] text-muted-foreground",children:e.detail}):null,e.cwd?(0,i.jsx)("div",{className:"mt-0.5 truncate font-mono text-[11px] text-[#a4a9b0]",children:e.cwd}):null,(0,i.jsx)("div",{className:"mt-0.5 font-mono text-[11px] text-[#a4a9b0]",children:(0,i.jsx)(l.Ago,{ms:e.createdAt})})]}),(0,i.jsx)("div",{className:"flex-none pt-0.5",children:(0,i.jsx)(m.ApprovalActions,{id:e.id,url:e.url})})]},e.id))})]})}var h=e.i(54129),g=e.i(69377);function v(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}function b(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function y(...e){return h.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=b(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():b(e[t],null)}}}}(...e),e)}function w(e,t=[]){let n=[],r=()=>{let t=n.map(e=>h.createContext(e));return function(n){let r=n?.[e]||t;return h.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=h.createContext(r);o.displayName=t+"Context";let l=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,a=n?.[e]?.[l]||o,c=h.useMemo(()=>s,Object.values(s));return(0,i.jsx)(a.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,i,s={}){let{optional:a=!1}=s,c=i?.[e]?.[l]||o,d=h.useContext(c);if(d)return d;if(void 0!==r)return r;if(!a)throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}"u">typeof window&&window.document&&window.document.createElement;var j=e.i(94766),C=Symbol.for("radix.slottable"),N=Symbol.for("react.lazy");function S(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===N&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var E=h[" use ".trim().toString()],k=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n;let r,o=(n=`Primitive.${t}`,(r=h.forwardRef((e,t)=>{var r;let i,o,{children:l,...s}=e,a=null,c=!1,d=[];S(l)&&"function"==typeof E&&(l=E(l._payload)),h.Children.forEach(l,e=>{var t;if(t=e,h.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===C){c=!0;let t="child"in e.props?e.props.child:e.props.children;S(t)&&"function"==typeof E&&(t=E(t._payload)),a=((e,t)=>{if("child"in e.props){let t=e.props.child;return h.isValidElement(t)?h.cloneElement(t,void 0,e.props.children(t.props.children)):null}return h.isValidElement(t)?t:null})(e,t),d.push(a?.props?.children)}else d.push(e)}),a?a=h.cloneElement(a,void 0,d):!c&&1===h.Children.count(l)&&h.isValidElement(l)&&(a=l);let u=a?(r=a,(o=(i=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?r.ref:(o=(i=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,f=y(t,u);if(!a){if(l||0===l){let e,t;throw Error(c?(e=n,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=n,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return l}let p=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(s,a.props??{});return a.type!==h.Fragment&&(p.ref=t?f:u),h.cloneElement(a,p)})).displayName=`${n}.Slot`,r),l=h.forwardRef((e,n)=>{let{asChild:r,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(r?o:t,{...l,ref:n})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{});function R(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...e)=>t.current?.(...e),[])}var T="dismissableLayer.update",L=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),A=h.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:c,onDismiss:d,...u}=e,f=h.useContext(L),[p,m]=h.useState(null),x=p?.ownerDocument??globalThis?.document,[,g]=h.useState({}),b=y(t,m),w=Array.from(f.layers),[j]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),C=j?w.indexOf(j):-1,N=p?w.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,E=N>=C,A=h.useRef(!1),I=function(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:o,shouldHandlePointerDownOutside:l=O}=t,s=R(e),a=h.useRef(!1),c=h.useRef(!1),d=h.useRef(new Map),u=h.useRef(()=>{});return h.useEffect(()=>{function e(){c.current=!1,i.current=!1,d.current.clear()}function t(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&u.current()},0)}function f(e){c.current&&d.current.set(e.type,!1)}let p=t=>{if(t.target&&!a.current){let o=function(){n.removeEventListener("click",u.current);let t=Array.from(d.current.values()).some(Boolean);e(),t||D("dismissableLayer.pointerDownOutside",s,f,{discrete:!0})};if(!l(t.target)){n.removeEventListener("click",u.current),e(),a.current=!1;return}let f={originalEvent:t};c.current=!0,i.current=r&&0===t.button,d.current.clear(),r&&0===t.button?(n.removeEventListener("click",u.current),u.current=o,n.addEventListener("click",u.current,{once:!0})):o()}else n.removeEventListener("click",u.current),e();a.current=!1},m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of m)n.addEventListener(e,t,!0),n.addEventListener(e,f);let x=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{for(let e of(window.clearTimeout(x),n.removeEventListener("pointerdown",p),n.removeEventListener("click",u.current),m))n.removeEventListener(e,t,!0),n.removeEventListener(e,f)}},[n,s,r,i,o,l]),{onPointerDownCapture:()=>a.current=!0}}(e=>{s?.(e),c?.(e),e.defaultPrevented||d?.()},{ownerDocument:x,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:A,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:h.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return E&&!t},[f.branches,E])}),B=function(e,t=globalThis?.document){let n=R(e),r=h.useRef(!1);return h.useEffect(()=>{let e=e=>{e.target&&!r.current&&D("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{if(o&&A.current)return;let t=e.target;![...f.branches].some(e=>e.contains(t))&&(a?.(e),c?.(e),e.defaultPrevented||d?.())},x),$=!!p&&N===w.length-1,M=R(e=>{"Escape"===e.key&&(l?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))});return h.useEffect(()=>{if($)return x.addEventListener("keydown",M,{capture:!0}),()=>x.removeEventListener("keydown",M,{capture:!0})},[x,$,M]),h.useEffect(()=>{if(p)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),P(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),0===f.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r))}},[p,x,n,f]),h.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),P())},[p,f]),h.useEffect(()=>{let e=()=>g({});return document.addEventListener(T,e),()=>document.removeEventListener(T,e)},[]),(0,i.jsx)(k.div,{...u,ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:v(e.onFocusCapture,B.onFocusCapture),onBlurCapture:v(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:v(e.onPointerDownCapture,I.onPointerDownCapture)})});A.displayName="DismissableLayer",h.forwardRef((e,t)=>{let n=h.useContext(L),r=h.useRef(null),o=y(t,r);return h.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,i.jsx)(k.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var O=()=>!0;function P(){let e=new CustomEvent(T);document.dispatchEvent(e)}function D(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),r)i&&j.flushSync(()=>i.dispatchEvent(o));else i.dispatchEvent(o)}var I=globalThis?.document?h.useLayoutEffect:()=>{},B=h[" useId ".trim().toString()]||(()=>void 0),$=0;let M=["top","right","bottom","left"],_=Math.min,F=Math.max,z=Math.round,H=Math.floor,W=e=>({x:e,y:e}),U={left:"right",right:"left",bottom:"top",top:"bottom"};function V(e,t){return"function"==typeof e?e(t):e}function Y(e){return e.split("-")[0]}function X(e){return e.split("-")[1]}function G(e){return"x"===e?"y":"x"}function J(e){return"y"===e?"height":"width"}function K(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function q(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let Z=["left","right"],Q=["right","left"],ee=["top","bottom"],et=["bottom","top"];function en(e){let t=Y(e);return U[t]+e.slice(t.length)}function er(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function ei(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function eo(e,t,n){let r,{reference:i,floating:o}=e,l=K(t),s=G(K(t)),a=J(s),c=Y(t),d="y"===l,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,p=i[a]/2-o[a]/2;switch(c){case"top":r={x:u,y:i.y-o.height};break;case"bottom":r={x:u,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}switch(X(t)){case"start":r[s]-=p*(n&&d?-1:1);break;case"end":r[s]+=p*(n&&d?-1:1)}return r}async function el(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=V(t,e),m=er(p),x=s[f?"floating"===u?"reference":"floating":u],h=ei(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(x)))||n?x:x.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:a})),g="floating"===u?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},y=ei(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:a}):g);return{top:(h.top-y.top+m.top)/b.y,bottom:(y.bottom-h.bottom+m.bottom)/b.y,left:(h.left-y.left+m.left)/b.x,right:(y.right-h.right+m.right)/b.x}}let es=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:el},a=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=eo(c,r,a),f=r,p=0,m={};for(let n=0;n<o.length;n++){let x=o[n];if(!x)continue;let{name:h,fn:g}=x,{x:v,y:b,data:y,reset:w}=await g({x:d,y:u,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,u=null!=b?b:u,m[h]={...m[h],...y},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:u}=eo(c,f,a)),n=-1)}return{x:d,y:u,placement:f,strategy:i,middlewareData:m}};function ea(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ec(e){return M.some(t=>e[t]>=0)}let ed=new Set(["left","top"]);async function eu(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=Y(n),s=X(n),a="y"===K(n),c=ed.has(l)?-1:1,d=o&&a?-1:1,u=V(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),a?{x:p*d,y:f*c}:{x:f*c,y:p*d}}function ef(){return"u">typeof window}function ep(e){return eh(e)?(e.nodeName||"").toLowerCase():"#document"}function em(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ex(e){var t;return null==(t=(eh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eh(e){return!!ef()&&(e instanceof Node||e instanceof em(e).Node)}function eg(e){return!!ef()&&(e instanceof Element||e instanceof em(e).Element)}function ev(e){return!!ef()&&(e instanceof HTMLElement||e instanceof em(e).HTMLElement)}function eb(e){return!(!ef()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof em(e).ShadowRoot)}function ey(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=eR(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function ew(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ej=/transform|translate|scale|rotate|perspective|filter/,eC=/paint|layout|strict|content/,eN=e=>!!e&&"none"!==e;function eS(e){let t=eg(e)?eR(e):e;return eN(t.transform)||eN(t.translate)||eN(t.scale)||eN(t.rotate)||eN(t.perspective)||!eE()&&(eN(t.backdropFilter)||eN(t.filter))||ej.test(t.willChange||"")||eC.test(t.contain||"")}function eE(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function ek(e){return/^(html|body|#document)$/.test(ep(e))}function eR(e){return em(e).getComputedStyle(e)}function eT(e){return eg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eL(e){if("html"===ep(e))return e;let t=e.assignedSlot||e.parentNode||eb(e)&&e.host||ex(e);return eb(t)?t.host:t}function eA(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=eL(t);return ek(n)?t.ownerDocument?t.ownerDocument.body:t.body:ev(n)&&ey(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=em(i);if(!o)return t.concat(i,eA(i,[],n));{let e=eO(l);return t.concat(l,l.visualViewport||[],ey(i)?i:[],e&&n?eA(e):[])}}function eO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eP(e){let t=eR(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ev(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,s=z(n)!==o||z(r)!==l;return s&&(n=o,r=l),{width:n,height:r,$:s}}function eD(e){return eg(e)?e:e.contextElement}function eI(e){let t=eD(e);if(!ev(t))return W(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=eP(t),l=(o?z(n.width):n.width)/r,s=(o?z(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}let eB=W(0);function e$(e){let t=em(e);return eE()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eB}function eM(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=eD(e),s=W(1);t&&(r?eg(r)&&(s=eI(r)):s=eI(e));let a=(void 0===(i=n)&&(i=!1),r&&(!i||r===em(l))&&i)?e$(l):W(0),c=(o.left+a.x)/s.x,d=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(l){let e=em(l),t=r&&eg(r)?em(r):r,n=e,i=eO(n);for(;i&&r&&t!==n;){let e=eI(i),t=i.getBoundingClientRect(),r=eR(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,u*=e.x,f*=e.y,c+=o,d+=l,i=eO(n=em(i))}}return ei({width:u,height:f,x:c,y:d})}function e_(e,t){let n=eT(e).scrollLeft;return t?t.left+n:eM(ex(e)).left+n}function eF(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-e_(e,n),y:n.top+t.scrollTop}}function ez(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=em(e),r=ex(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,s=0,a=0;if(i){o=i.width,l=i.height;let e=eE();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,a=i.offsetTop)}let c=e_(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else c<=25&&(o+=c);return{width:o,height:l,x:s,y:a}}(e,n);else if("document"===t){let t,n,o,l,s,a,c;r=ex(e),t=ex(r),n=eT(r),o=r.ownerDocument.body,l=F(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=F(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+e_(r),c=-n.scrollTop,"rtl"===eR(o).direction&&(a+=F(t.clientWidth,o.clientWidth)-l),i={width:l,height:s,x:a,y:c}}else if(eg(t)){let e,r,o,l,s,a;r=(e=eM(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,l=ev(t)?eI(t):W(1),s=t.clientWidth*l.x,a=t.clientHeight*l.y,i={width:s,height:a,x:o*l.x,y:r*l.y}}else{let n=e$(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ei(i)}function eH(e){return"static"===eR(e).position}function eW(e,t){if(!ev(e)||"fixed"===eR(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ex(e)===n&&(n=n.ownerDocument.body),n}function eU(e,t){var n;let r=em(e);if(ew(e))return r;if(!ev(e)){let t=eL(e);for(;t&&!ek(t);){if(eg(t)&&!eH(t))return t;t=eL(t)}return r}let i=eW(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(ep(n)))&&eH(i);)i=eW(i,t);return i&&ek(i)&&eH(i)&&!eS(i)?r:i||function(e){let t=eL(e);for(;ev(t)&&!ek(t);){if(eS(t))return t;if(ew(t))break;t=eL(t)}return null}(e)||r}let eV=async function(e){let t=this.getOffsetParent||eU,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ev(t),i=ex(t),o="fixed"===n,l=eM(e,!0,o,t),s={scrollLeft:0,scrollTop:0},a=W(0);if(r||!r&&!o)if(("body"!==ep(t)||ey(i))&&(s=eT(t)),r){let e=eM(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else i&&(a.x=e_(i));o&&!r&&i&&(a.x=e_(i));let c=!i||r||o?W(0):eF(i,s);return{x:l.left+s.scrollLeft-a.x-c.x,y:l.top+s.scrollTop-a.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eY={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=ex(r),s=!!t&&ew(t.floating);if(r===l||s&&o)return n;let a={scrollLeft:0,scrollTop:0},c=W(1),d=W(0),u=ev(r);if((u||!u&&!o)&&(("body"!==ep(r)||ey(l))&&(a=eT(r)),u)){let e=eM(r);c=eI(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!l||u||o?W(0):eF(l,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-a.scrollTop*c.y+d.y+f.y}},getDocumentElement:ex,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?ew(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eA(e,[],!1).filter(e=>eg(e)&&"body"!==ep(e)),i=null,o="fixed"===eR(e).position,l=o?eL(e):e;for(;eg(l)&&!ek(l);){let t=eR(l),n=eS(l);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||ey(l)&&!n&&function e(t,n){let r=eL(t);return!(r===n||!eg(r)||ek(r))&&("fixed"===eR(r).position||e(r,n))}(e,l)))?i=t:r=r.filter(e=>e!==l),l=eL(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=ez(t,o[0],i),s=l.top,a=l.right,c=l.bottom,d=l.left;for(let e=1;e<o.length;e++){let n=ez(t,o[e],i);s=F(n.top,s),a=_(n.right,a),c=_(n.bottom,c),d=F(n.left,d)}return{width:a-d,height:c-s,x:d,y:s}},getOffsetParent:eU,getElementRects:eV,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eP(e);return{width:t,height:n}},getScale:eI,isElement:eg,isRTL:function(e){return"rtl"===eR(e).direction}};function eX(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eG=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:l,elements:s,middlewareData:a}=t,{element:c,padding:d=0}=V(e,t)||{};if(null==c)return{};let u=er(d),f={x:n,y:r},p=G(K(i)),m=J(p),x=await l.getDimensions(c),h="y"===p,g=h?"clientHeight":"clientWidth",v=o.reference[m]+o.reference[p]-f[p]-o.floating[m],b=f[p]-o.reference[p],y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),w=y?y[g]:0;w&&await (null==l.isElement?void 0:l.isElement(y))||(w=s.floating[g]||o.floating[m]);let j=w/2-x[m]/2-1,C=_(u[h?"top":"left"],j),N=_(u[h?"bottom":"right"],j),S=w-x[m]-N,E=w/2-x[m]/2+(v/2-b/2),k=F(C,_(E,S)),R=!a.arrow&&null!=X(i)&&E!==k&&o.reference[m]/2-(E<C?C:N)-x[m]/2<0,T=R?E<C?E-C:E-S:0;return{[p]:f[p]+T,data:{[p]:k,centerOffset:E-k-T,...R&&{alignmentOffset:T}},reset:R}}});var eJ="u">typeof document?h.useLayoutEffect:function(){};function eK(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eK(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eK(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eq(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eZ(e,t){let n=eq(e);return Math.round(t*n)/n}function eQ(e){let t=h.useRef(e);return eJ(()=>{t.current=e}),t}var e0=h.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...l}=e;return(0,i.jsx)(k.svg,{...l,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,i.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e0.displayName="Arrow";var e1="Popper",[e5,e2]=w(e1),[e3,e4]=e5(e1),e6=e=>{let{__scopePopper:t,children:n}=e,[r,o]=h.useState(null),[l,s]=h.useState(void 0);return(0,i.jsx)(e3,{scope:t,anchor:r,onAnchorChange:o,placementState:l,setPlacementState:s,children:n})};e6.displayName=e1;var e8="PopperAnchor",e9=h.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=e4(e8,n),s=h.useRef(null),a=l.onAnchorChange,c=y(t,h.useCallback(e=>{s.current=e,e&&a(e)},[a])),d=h.useRef(null);h.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&a(d.current)});let u=l.placementState&&ta(l.placementState),f=u?.[0],p=u?.[1];return r?null:(0,i.jsx)(k.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...o,ref:c})});e9.displayName=e8;var e7="PopperContent",[te,tt]=e5(e7),tn=h.forwardRef((e,t)=>{var n,r,o,l,s,a,c,d,u,f,p,m,x;let g,v,b,w,C,N,{__scopePopper:S,side:E="bottom",sideOffset:T=0,align:L="center",alignOffset:A=0,arrowPadding:O=0,avoidCollisions:P=!0,collisionBoundary:D=[],collisionPadding:B=0,sticky:$="partial",hideWhenDetached:M=!1,updatePositionStrategy:z="optimized",onPlaced:W,...U}=e,er=e4(e7,S),[ei,eo]=h.useState(null),el=y(t,eo),[ef,ep]=h.useState(null),em=function(e){let[t,n]=h.useState(void 0);return I(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(ef),eh=em?.width??0,eg=em?.height??0,ev="number"==typeof B?B:{top:0,right:0,bottom:0,left:0,...B},eb=Array.isArray(D)?D:[D],ey=eb.length>0,ew={padding:ev,boundary:eb.filter(tl),altBoundary:ey},{refs:ej,floatingStyles:eC,placement:eN,isPositioned:eS,middlewareData:eE}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:s=!0,whileElementsMounted:a,open:c}=e,[d,u]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=h.useState(r);eK(f,r)||p(r);let[m,x]=h.useState(null),[g,v]=h.useState(null),b=h.useCallback(e=>{e!==N.current&&(N.current=e,x(e))},[]),y=h.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),w=o||m,C=l||g,N=h.useRef(null),S=h.useRef(null),E=h.useRef(d),k=null!=a,R=eQ(a),T=eQ(i),L=eQ(c),A=h.useCallback(()=>{var e,r;let i,o,l;if(!N.current||!S.current)return;let s={placement:t,strategy:n,middleware:f};T.current&&(s.platform=T.current),(e=N.current,r=S.current,i=new Map,l={...(o={platform:eY,...s}).platform,_c:i},es(e,r,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==L.current};O.current&&!eK(E.current,t)&&(E.current=t,j.flushSync(()=>{u(t)}))})},[f,t,n,T,L]);eJ(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[c]);let O=h.useRef(!1);eJ(()=>(O.current=!0,()=>{O.current=!1}),[]),eJ(()=>{if(w&&(N.current=w),C&&(S.current=C),w&&C){if(R.current)return R.current(w,C,A);A()}},[w,C,A,R,k]);let P=h.useMemo(()=>({reference:N,floating:S,setReference:b,setFloating:y}),[b,y]),D=h.useMemo(()=>({reference:w,floating:C}),[w,C]),I=h.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eZ(D.floating,d.x),r=eZ(D.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eq(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,D.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:A,refs:P,elements:D,floatingStyles:I}),[d,A,P,D,I])}({strategy:"fixed",placement:E+("center"!==L?"-"+L:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,d=eD(e),u=o||l?[...d?eA(d):[],...t?eA(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=d&&a?function(e,t){let n,r=null,i=ex(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),o();let c=e.getBoundingClientRect(),{left:d,top:u,width:f,height:p}=c;if(s||t(),!f||!p)return;let m={rootMargin:-H(u)+"px "+-H(i.clientWidth-(d+f))+"px "+-H(i.clientHeight-(u+p))+"px "+-H(d)+"px",threshold:F(0,_(1,a))||1},x=!0;function h(t){let r=t[0].intersectionRatio;if(r!==a){if(!x)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eX(c,e.getBoundingClientRect())||l(),x=!1}try{r=new IntersectionObserver(h,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),o}(d,n):null,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),d&&!c&&m.observe(d),t&&m.observe(t));let x=c?eM(e):null;return c&&function t(){let r=eM(e);x&&!eX(x,r)&&n(),x=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===z}),elements:{reference:er.anchor},middleware:[{name:(g={name:"offset",options:r=n={mainAxis:T+eg,alignmentAxis:A},async fn(e){var t,n;let{x:i,y:o,placement:l,middlewareData:s}=e,a=await eu(e,r);return l===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:l}}}}).name,fn:g.fn,options:[n,void 0]},P&&{name:(v={name:"shift",options:s=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===$?{fn:(o=void 0,{options:o={},fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:l}=e,{offset:s=0,mainAxis:a=!0,crossAxis:c=!0}=V(o,e),d={x:t,y:n},u=K(r),f=G(u),p=d[f],m=d[u],x=V(s,e),h="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(a){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+h.mainAxis,n=i.reference[f]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,v;let e="y"===f?"width":"height",t=ed.has(Y(r)),n=i.reference[u]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[u])||0)+(t?0:h.crossAxis),o=i.reference[u]+i.reference[e]+(t?0:(null==(v=l.offset)?void 0:v[u])||0)-(t?h.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[f]:p,[u]:m}}}).fn,options:[void 0,void 0]}:void 0,...ew},async fn(e){let{x:t,y:n,placement:r,platform:i}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=V(s,e),d={x:t,y:n},u=await i.detectOverflow(e,c),f=K(Y(r)),p=G(f),m=d[p],x=d[f];if(o){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=m+u[e],r=m-u[t];m=F(n,_(m,r))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=x+u[e],r=x-u[t];x=F(n,_(x,r))}let h=a.fn({...e,[p]:m,[f]:x});return{...h,data:{x:h.x-t,y:h.y-n,enabled:{[p]:o,[f]:l}}}}}).name,fn:v.fn,options:[l,void 0]},P&&{name:(b={name:"flip",options:c=a={...ew},async fn(e){var t,n,r,i,o,l,s,a;let d,u,f,{placement:p,middlewareData:m,rects:x,initialPlacement:h,platform:g,elements:v}=e,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:N=!0,...S}=V(c,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let E=Y(p),k=K(h),R=Y(h)===h,T=await (null==g.isRTL?void 0:g.isRTL(v.floating)),L=w||(R||!N?[en(h)]:(d=en(h),[q(h),d,q(d)])),A="none"!==C;!w&&A&&L.push(...(u=X(h),f=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?Q:Z;return t?Z:Q;case"left":case"right":return t?ee:et;default:return[]}}(Y(h),"start"===C,T),u&&(f=f.map(e=>e+"-"+u),N&&(f=f.concat(f.map(q)))),f));let O=[h,...L],P=await g.detectOverflow(e,S),D=[],I=(null==(n=m.flip)?void 0:n.overflows)||[];if(b&&D.push(P[E]),y){let e,t,n,r,i=(l=p,s=x,void 0===(a=T)&&(a=!1),e=X(l),n=J(t=G(K(l))),r="x"===t?e===(a?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[n]>s.floating[n]&&(r=en(r)),[r,en(r)]);D.push(P[i[0]],P[i[1]])}if(I=[...I,{placement:p,overflows:D}],!D.every(e=>e<=0)){let e=((null==(r=m.flip)?void 0:r.index)||0)+1,t=O[e];if(t&&("alignment"!==y||k===K(t)||I.every(e=>K(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(j){case"bestFit":{let e=null==(o=I.filter(e=>{if(A){let t=K(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=h}if(p!==n)return{reset:{placement:n}}}return{}}}).name,fn:b.fn,options:[a,void 0]},{name:(w={name:"size",options:u=d={...ew,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,n;let r,i,{placement:o,rects:l,platform:s,elements:a}=e,{apply:c=()=>{},...d}=V(u,e),f=await s.detectOverflow(e,d),p=Y(o),m=X(o),x="y"===K(o),{width:h,height:g}=l.floating;"top"===p||"bottom"===p?(r=p,i=m===(await (null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(i=p,r="end"===m?"top":"bottom");let v=g-f.top-f.bottom,b=h-f.left-f.right,y=_(g-f[r],v),w=_(h-f[i],b),j=!e.middlewareData.shift,C=y,N=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(N=b),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(C=v),j&&!m){let e=F(f.left,0),t=F(f.right,0),n=F(f.top,0),r=F(f.bottom,0);x?N=h-2*(0!==e||0!==t?e+t:F(f.left,f.right)):C=g-2*(0!==n||0!==r?n+r:F(f.top,f.bottom))}await c({...e,availableWidth:N,availableHeight:C});let S=await s.getDimensions(a.floating);return h!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}).name,fn:w.fn,options:[d,void 0]},ef&&{name:(C={name:"arrow",options:p=f={element:ef,padding:O},fn(e){let{element:t,padding:n}="function"==typeof p?p(e):p;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eG({element:t.current,padding:n}).fn(e):{}:t?eG({element:t,padding:n}).fn(e):{}}}).name,fn:C.fn,options:[f,void 0]},ts({arrowWidth:eh,arrowHeight:eg}),M&&{name:(N={name:"hide",options:x=m={strategy:"referenceHidden",...ew,boundary:ey?ew.boundary:void 0},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...i}=V(x,e);switch(r){case"referenceHidden":{let r=ea(await n.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:ec(r)}}}case"escaped":{let r=ea(await n.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:ec(r)}}}default:return{}}}}).name,fn:N.fn,options:[m,void 0]}]}),ek=er.setPlacementState;I(()=>(ek(eN),()=>{ek(void 0)}),[eN,ek]);let[eR,eT]=ta(eN),eL=R(W);I(()=>{eS&&eL?.()},[eS,eL]);let eO=eE.arrow?.x,eP=eE.arrow?.y,eI=eE.arrow?.centerOffset!==0,[eB,e$]=h.useState();return I(()=>{ei&&e$(window.getComputedStyle(ei).zIndex)},[ei]),(0,i.jsx)("div",{ref:ej.setFloating,"data-radix-popper-content-wrapper":"",style:{...eC,transform:eS?eC.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eB,"--radix-popper-transform-origin":[eE.transformOrigin?.x,eE.transformOrigin?.y].join(" "),...eE.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,i.jsx)(te,{scope:S,placedSide:eR,placedAlign:eT,onArrowChange:ep,arrowX:eO,arrowY:eP,shouldHideArrow:eI,children:(0,i.jsx)(k.div,{"data-side":eR,"data-align":eT,...U,ref:el,style:{...U.style,animation:eS?void 0:"none"}})})})});tn.displayName=e7;var tr="PopperArrow",ti={top:"bottom",right:"left",bottom:"top",left:"right"},to=h.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=tt(tr,n),l=ti[o.placedSide];return(0,i.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,i.jsx)(e0,{...r,ref:t,style:{...r.style,display:"block"}})})});function tl(e){return null!==e}to.displayName=tr;var ts=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[a,c]=ta(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(i.arrow?.x??0)+l/2,f=(i.arrow?.y??0)+s/2,p="",m="";return"bottom"===a?(p=o?d:`${u}px`,m=`${-s}px`):"top"===a?(p=o?d:`${u}px`,m=`${r.floating.height+s}px`):"right"===a?(p=`${-s}px`,m=o?d:`${f}px`):"left"===a&&(p=`${r.floating.width+s}px`,m=o?d:`${f}px`),{data:{x:p,y:m}}}});function ta(e){let[t,n="center"]=e.split("-");return[t,n]}var tc=h.forwardRef((e,t)=>{let{container:n,...r}=e,[o,l]=h.useState(!1);I(()=>l(!0),[]);let s=n||o&&globalThis?.document?.body;return s?j.createPortal((0,i.jsx)(k.div,{...r,ref:t}),s):null});tc.displayName="Portal";var td=e=>{var t;let n,r,{present:i,children:o}=e,l=function(e){var t,n;let[r,i]=h.useState(),o=h.useRef(null),l=h.useRef(e),s=h.useRef("none"),a=h.useRef(void 0),[c,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},h.useReducer((e,t)=>n[e][t]??e,t));return h.useEffect(()=>{"mounted"===c?(s.current=a.current??tf(o.current),a.current=void 0):s.current="none"},[c]),I(()=>{let t=o.current,n=l.current;if(n!==e){let r=s.current,i=tf(t);e?(a.current=i,d("MOUNT")):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),I(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let i=tf(o.current).includes(CSS.escape(n.animationName));if(n.target===r&&i&&(d("ANIMATION_END"),!l.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},i=e=>{e.target===r&&(s.current=tf(o.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:h.useCallback(e=>{if(e){let t=getComputedStyle(e);o.current=t,a.current=tf(t)}else o.current=null;i(e)},[])}}(i),s="function"==typeof o?o({present:l.isPresent}):h.Children.only(o),a=function(...e){let t=h.useRef(e);return t.current=e,h.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=tu(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];"function"==typeof t?t():tu(n[e],null)}}},[])}(l.ref,(t=s,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof o||l.isPresent?h.cloneElement(s,{ref:a}):null};function tu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function tf(e){return e?.animationName||"none"}td.displayName="Presence",h[" useEffectEvent ".trim().toString()],h[" useInsertionEffect ".trim().toString()];var tp=h[" useInsertionEffect ".trim().toString()]||I;Symbol("RADIX:SYNC_STATE");var tm=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tx=h.forwardRef((e,t)=>(0,i.jsx)(k.span,{...e,ref:t,style:{...tm,...e.style}}));tx.displayName="VisuallyHidden";var[th,tg]=w("Tooltip",[e2]),tv=e2(),tb="TooltipProvider",ty="tooltip.open",[tw,tj]=th(tb),tC=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:l}=e,s=h.useRef(!0),a=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,i.jsx)(tw,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:h.useCallback(()=>{r<=0||(window.clearTimeout(c.current),s.current=!1)},[r]),onClose:h.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r))},[r]),isPointerInTransitRef:a,onPointerInTransitChange:h.useCallback(e=>{a.current=e},[]),disableHoverableContent:o,children:l})};tC.displayName=tb;var tN="Tooltip",[tS,tE]=th(tN),tk=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:l,disableHoverableContent:s,delayDuration:a}=e,c=tj(tN,e.__scopeTooltip),d=tv(t),[u,f]=h.useState(null),p=function(){let[e,t]=h.useState(B());return I(()=>{t(e=>e??String($++))},[void 0]),e?`radix-${e}`:""}(),m=h.useRef(0),x=s??c.disableHoverableContent,g=a??c.delayDuration,v=h.useRef(!1),[b,y]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,o,l]=function({defaultProp:e,onChange:t}){let[n,r]=h.useState(e),i=h.useRef(n),o=h.useRef(t);return tp(()=>{o.current=t},[t]),h.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}({defaultProp:t,onChange:n}),s=void 0!==e,a=s?e:i;{let t=h.useRef(void 0!==e);h.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}return[a,h.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else o(t)},[s,e,o,l])]}({prop:r,defaultProp:o??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(ty))):c.onClose(),l?.(e)},caller:tN}),w=h.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),j=h.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,y(!0)},[y]),C=h.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),N=h.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,y(!0),m.current=0},g)},[g,y]);return h.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,i.jsx)(e6,{...d,children:(0,i.jsx)(tS,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:u,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{c.isOpenDelayedRef.current?N():j()},[c.isOpenDelayedRef,N,j]),onTriggerLeave:h.useCallback(()=>{x?C():(window.clearTimeout(m.current),m.current=0)},[C,x]),onOpen:j,onClose:C,disableHoverableContent:x,children:n})})};tk.displayName=tN;var tR="TooltipTrigger",tT=h.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=tE(tR,n),l=tj(tR,n),s=tv(n),a=y(t,h.useRef(null),o.onTriggerChange),c=h.useRef(!1),d=h.useRef(!1),u=h.useCallback(()=>c.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),(0,i.jsx)(e9,{asChild:!0,...s,children:(0,i.jsx)(k.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:v(e.onPointerMove,e=>{"touch"!==e.pointerType&&(d.current||l.isPointerInTransitRef.current||(o.onTriggerEnter(),d.current=!0))}),onPointerLeave:v(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:v(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:v(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:v(e.onBlur,o.onClose),onClick:v(e.onClick,o.onClose)})})});tT.displayName=tR;var tL="TooltipPortal",[tA,tO]=th(tL,{forceMount:void 0}),tP=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,l=tE(tL,t);return(0,i.jsx)(tA,{scope:t,forceMount:n,children:(0,i.jsx)(td,{present:n||l.open,children:(0,i.jsx)(tc,{asChild:!0,container:o,children:r})})})};tP.displayName=tL;var tD="TooltipContent",tI=h.forwardRef((e,t)=>{let n=tO(tD,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...l}=e,s=tE(tD,e.__scopeTooltip);return(0,i.jsx)(td,{present:r||s.open,children:s.disableHoverableContent?(0,i.jsx)(tF,{side:o,...l,ref:t}):(0,i.jsx)(tB,{side:o,...l,ref:t})})}),tB=h.forwardRef((e,t)=>{let n=tE(tD,e.__scopeTooltip),r=tj(tD,e.__scopeTooltip),o=h.useRef(null),l=y(t,o),[s,a]=h.useState(null),{trigger:c,onClose:d}=n,u=o.current,{onPointerInTransitChange:f}=r,p=h.useCallback(()=>{a(null),f(!1)},[f]),m=h.useCallback((e,t)=>{let n,r=e.currentTarget,i={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(i,r.getBoundingClientRect());a(((n=[...function(e,t,n=5){let r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(i,o),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(n))),f(!0)},[f]);return h.useEffect(()=>()=>p(),[p]),h.useEffect(()=>{if(c&&u){let e=e=>m(e,u),t=e=>m(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}},[c,u,m,p]),h.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let l=t[e],s=t[o],a=l.x,c=l.y,d=s.x,u=s.y;c>r!=u>r&&n<(d-a)*(r-c)/(u-c)+a&&(i=!i)}return i}(n,s);r?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,u,s,d,p]),(0,i.jsx)(tF,{...e,ref:l})}),[t$,tM]=th(tN,{isInside:!1}),t_=((n=e=>"child"in e?e.children(e.child):e.children).displayName="TooltipContent.Slottable",n.__radixId=C,n),tF=h.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:s,...a}=e,c=tE(tD,n),d=tv(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(ty,u),()=>document.removeEventListener(ty,u)),[u]),h.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,u]),(0,i.jsx)(A,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,i.jsxs)(tn,{"data-state":c.stateAttribute,...d,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,i.jsx)(t_,{children:r}),(0,i.jsx)(t$,{scope:n,isInside:!0,children:(0,i.jsx)(tx,{id:c.contentId,role:"tooltip",children:o||r})})]})})});tI.displayName=tD;var tz="TooltipArrow",tH=h.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=tv(n);return tM(tz,n).isInside?null:(0,i.jsx)(to,{...o,...r,ref:t})});function tW({delayDuration:e=0,...t}){return(0,i.jsx)(tC,{delayDuration:e,...t})}function tU(e){return(0,i.jsx)(tW,{children:(0,i.jsx)(tk,{...e})})}function tV(e){return(0,i.jsx)(tT,{...e})}function tY({className:e,sideOffset:t=4,children:n,...r}){return(0,i.jsx)(tP,{children:(0,i.jsxs)(tI,{sideOffset:t,className:(0,d.cn)("z-50 w-fit max-w-64 origin-(--radix-tooltip-content-transform-origin) rounded-md bg-primary px-3 py-1.5 text-xs text-balance text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r,children:[n,(0,i.jsx)(tH,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] fill-primary"})]})})}function tX(e){let t=e.state??e.status;return"paused"===t?"Box is paused — resume to access":"stopped"===t?"Box is stopped — start to access":"missing"===t?"Box has no sandbox left":null}tH.displayName=tz;var tG=e.i(1485);let tJ=[{app:"claude",label:"Claude",icon:"claude"},{app:"codex",label:"Codex",icon:"codex"},{app:"vscode",label:"VS Code",icon:"ext"},{app:"cmux",label:"cmux",icon:"terminal"},{app:"herdr",label:"Herdr",icon:"terminal"},{app:"iterm2",label:"iTerm2",icon:"terminal"},{app:"finder",label:"Finder",icon:"folder"}];function tK({url:e}){let[t,n]=(0,h.useState)(!1),r=(0,h.useRef)(null);(0,h.useEffect)(()=>()=>{r.current&&clearTimeout(r.current)},[]);let o=(0,h.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),n(!0),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>n(!1),1500)}catch{}},[e]);return(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",onClick:o,children:[t?(0,i.jsx)(s.Icons.check,{}):(0,i.jsx)(s.Icons.copy,{}),t?"Copied":"Copy URL"]})}function tq({reason:e,children:t}){return e?(0,i.jsxs)(tU,{children:[(0,i.jsx)(tV,{asChild:!0,children:(0,i.jsx)("span",{className:"cursor-not-allowed",children:t})}),(0,i.jsx)(tY,{children:e})]}):(0,i.jsx)(i.Fragment,{children:t})}function tZ({box:e}){let t,{webUrl:n,vncUrl:r}=e,{apps:o,supported:l,pending:a,launch:c}=function(e){let[t,n]=(0,h.useState)(null),[r,i]=(0,h.useState)(null);(0,h.useEffect)(()=>{let e=!0;return(async()=>{try{let t=await fetch("/api/v1/open-targets",{credentials:"same-origin"});e&&n(t.ok?await t.json():null)}catch{e&&n(null)}})(),()=>{e=!1}},[]);let o=(0,h.useCallback)(async t=>{i(t);try{let n=await fetch(`/api/v1/boxes/${encodeURIComponent(e.id)}/open`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({app:t})});if(!n.ok){let e=await n.json().catch(()=>null);window.alert(`Open in ${t} failed: ${e?.error?.message??`HTTP ${n.status}`}`)}}catch(e){window.alert(`Open in ${t} failed: ${e instanceof Error?e.message:String(e)}`)}finally{i(null)}},[e.id]),l=t?.supported?t.targets:null;return{apps:l?tJ.map(({app:t,label:n,icon:r})=>{let i=l[t],o=i.available?i.providers&&!i.providers.includes(e.provider)?`Not available for ${e.provider} boxes`:null:i.reason??`${n} is not installed`;return{app:t,label:n,icon:r,disabledReason:o}}):[],supported:null!==l,pending:r,launch:o}}(e),d="paused"===e.status?"Box is paused — resume to access":"stopped"===e.status?"Box is stopped — start to access":null,{href:u,reason:p}=(t=e.state?"running"===e.state:"running"===e.status,e.webUrl?t?{href:`/boxes/${encodeURIComponent(e.id)}/web`,reason:null}:{href:null,reason:tX(e)??"Box is not running"}:{href:null,reason:tX(e)??"No web service exposed"}),m=r??(e.vncEnabled&&"running"===e.status?`/boxes/${encodeURIComponent(e.id)}/vnc`:null),x=m?null:!1===e.vncEnabled?"VNC is not enabled for this box":d??"VNC is not available";return l||n||m?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tG.SectionLabel,{children:"Access"}),(0,i.jsxs)(f.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,i.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,i.jsx)("div",{className:"text-[13.5px] font-medium",children:n||!m?"Web":"VNC"}),(0,i.jsx)("div",{className:"mt-0.5 break-all font-mono text-[11.5px] text-muted-foreground",children:n??(m?"Remote desktop":p)})]}),(0,i.jsxs)("div",{className:"flex flex-none flex-wrap gap-1.5",children:[u?(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",href:u,target:"_blank",rel:"noreferrer",children:[(0,i.jsx)(s.Icons.ext,{}),"Open web"]}):(0,i.jsx)(tq,{reason:p,children:(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:!0,children:[(0,i.jsx)(s.Icons.ext,{}),"Open web"]})}),n?(0,i.jsx)(tK,{url:n}):null,m?(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",href:m,target:"_blank",rel:"noreferrer",onClick:()=>{r&&fetch(`/api/v1/boxes/${encodeURIComponent(e.id)}/screen`,{method:"POST",credentials:"same-origin"}).catch(()=>{})},children:[(0,i.jsx)(s.Icons.ext,{}),"Open VNC"]}):(0,i.jsx)(tq,{reason:x,children:(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:!0,children:[(0,i.jsx)(s.Icons.ext,{}),"Open VNC"]})})]})]}),l?(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,i.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,i.jsx)("div",{className:"text-[13.5px] font-medium",children:"Apps"}),(0,i.jsx)("div",{className:"mt-0.5 text-[11.5px] text-muted-foreground",children:"Open the box project from the host"})]}),(0,i.jsx)("div",{className:"flex flex-none flex-wrap justify-end gap-1.5",children:o.map(({app:e,label:t,icon:n,disabledReason:r})=>{let o=s.Icons[n];return(0,i.jsx)(tq,{reason:r,children:(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:null!==r||null!==a,onClick:()=>void c(e),children:[(0,i.jsx)(o,{}),t]})},e)})})]}):null]})]}):null}var tQ=e.i(80922),t0=e.i(95141),t1=e.i(3060),t5=e.i(16200),t2=e.i(99869),t3=e.i(86184);let t4=0;function t6(){let[e,t]=(0,h.useState)([]),n=(0,h.useCallback)(e=>t(t=>t.filter(t=>t.id!==e)),[]);return{toasts:e,push:(0,h.useCallback)(e=>{let r=++t4;t(t=>[...t,{id:r,...e}]),setTimeout(()=>n(r),4200)},[n]),dismiss:n}}function t8({toasts:e,dismiss:t}){return(0,i.jsx)("div",{className:"pointer-events-none fixed bottom-5 right-5 z-[60] flex w-[340px] max-w-[calc(100vw-40px)] flex-col gap-2",children:e.map(e=>(0,i.jsxs)("div",{className:"anim-pop pointer-events-auto relative flex items-start gap-3 rounded-xl border border-border bg-card p-3.5 pr-9 shadow-[0_16px_40px_-18px_rgba(20,24,30,.35)]",children:[(0,i.jsx)("span",{className:(0,d.cn)("mt-0.5 grid h-6 w-6 flex-none place-items-center rounded-md border","error"===e.variant?"border-[var(--red-line)] bg-[var(--red-soft)] text-[var(--red)]":"border-[var(--green-line)] bg-accent text-primary"),children:"error"===e.variant?(0,i.jsx)(s.Icons.warn,{className:"size-3.5"}):(0,i.jsx)(s.Icons.check,{className:"size-3.5"})}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("div",{className:"text-[13px] font-semibold leading-tight",children:e.title}),e.detail?(0,i.jsx)("div",{className:"mt-0.5 break-words font-mono text-[11.5px] leading-normal text-muted-foreground",children:e.detail}):null]}),(0,i.jsx)("button",{className:"absolute right-2.5 top-2.5 grid h-5 w-5 cursor-pointer place-items-center rounded border-0 bg-transparent text-[#a4a9b0] hover:text-foreground",onClick:()=>t(e.id),"aria-label":"Dismiss",children:(0,i.jsx)(s.Icons.x,{className:"size-3"})})]},e.id))})}async function t9(e){try{let t=await e.json();return t.error?.message??`HTTP ${String(e.status)}`}catch{return`HTTP ${String(e.status)}`}}function t7({label:e,desc:t,children:n}){return(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,i.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,i.jsx)("div",{className:"text-[13.5px] font-medium",children:e}),(0,i.jsx)("div",{className:"mt-0.5 text-[11.5px] leading-normal text-muted-foreground",children:t})]}),(0,i.jsx)("div",{className:"flex flex-none flex-wrap gap-1.5",children:n})]})}function ne({icon:e,disabled:t,onRun:n,children:r}){let[o,l]=(0,h.useState)(!1);return(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:t||o,onClick:()=>{l(!0),n().finally(()=>l(!1))},children:[o?(0,i.jsx)("span",{className:"spin",style:{width:12,height:12}}):(0,i.jsx)(e,{}),r]})}function nt({box:e}){let t=(0,o.useRouter)(),{toasts:n,push:r,dismiss:l}=t6(),[a,c]=(0,h.useState)(!1),[d,u]=(0,h.useState)(null),p=e.id.startsWith("job:"),m="running"!==e.status,x=!0===e.supportsBackup&&!p,v=(0,h.useCallback)(async()=>{if(x)try{let t=await fetch(`/api/v1/projects/${encodeURIComponent(e.projectId)}/bots`,{credentials:"same-origin"});if(!t.ok)return;let{bots:n}=await t.json(),r=n.find(t=>t.bot===(e.name??"")),i=r?(0,t2.preferredBackup)(r)??r.backups[0]:void 0;u(i?{stamp:i.stamp,state:i.state}:null)}catch{u(null)}},[e.projectId,e.name,x]);if((0,h.useEffect)(()=>{v()},[v]),p)return null;let b=async()=>{let n;try{n=await fetch(`/api/v1/boxes/${encodeURIComponent(e.id)}/backup`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:"{}"})}catch(e){r({variant:"error",title:"Backup failed",detail:e instanceof Error?e.message:String(e)});return}if(!n.ok)return void r({variant:"error",title:"Backup failed",detail:await t9(n)});let i=await n.json();r({title:`Backed up ${i.bot}`,detail:i.state?`${i.stamp} — ${String(i.files)} file(s) + identity`:`${i.stamp} — ${String(i.files)} file(s), NO identity captured`,...i.state?{}:{variant:"error"}}),v(),t.refresh()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tG.SectionLabel,{children:"Bot"}),(0,i.jsxs)(f.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[m?(0,i.jsxs)("div",{className:"flex items-center gap-2.5 bg-[var(--amber-soft)] px-4.5 p-2.5 text-[12.5px] text-[var(--amber)]",children:[(0,i.jsx)(s.Icons.warn,{className:"size-3.5 flex-none"}),"Box is ",e.status," — backing up and cloning both read the live box."]}):null,x?(0,i.jsx)(t7,{label:"Backup",desc:d?(0,i.jsxs)(i.Fragment,{children:["Last backup ",(0,t2.readableStamp)(d.stamp),d.state?"":" (workspace only)"]}):"Workspace + this bot’s identity: auth token, pairings, history.",children:(0,i.jsx)(ne,{icon:s.Icons.shield,disabled:m,onRun:b,children:"Back up now"})}):null,(0,i.jsx)(t7,{label:"Clone",desc:"A second box from these files, with a fresh identity of its own. Not a backup.",children:(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:m,onClick:()=>c(!0),children:[(0,i.jsx)(s.Icons.copy,{}),"Clone…"]})})]}),a?(0,i.jsx)(nn,{box:e,onClose:()=>c(!1),onDone:r}):null,(0,i.jsx)(t8,{toasts:n,dismiss:l})]})}function nn({box:e,onClose:t,onDone:n}){let r=(0,o.useRouter)(),[l,a]=(0,h.useState)(`${e.name??e.task}-clone`),[c,u]=(0,h.useState)(!1),[f,p]=(0,h.useState)(null),[m,x]=(0,h.useState)(null),v=async()=>{u(!0),p(null);try{let t=await fetch(`/api/v1/boxes/${encodeURIComponent(e.id)}/clone`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({name:l.trim()||void 0})});if(!t.ok)return p(await t9(t)),!1;let n=await t.json();return x(n.jobId),r.refresh(),!0}catch(e){return p(e instanceof Error?e.message:String(e)),!1}finally{u(!1)}};return(0,i.jsxs)(t0.Dialog,{onClose:t,children:[(0,i.jsxs)(t0.DialogHeader,{children:[(0,i.jsx)(t0.DialogIcon,{children:(0,i.jsx)(s.Icons.copy,{className:"size-4"})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)(t0.DialogTitle,{children:["Clone ",e.task]}),(0,i.jsxs)(t0.DialogDescription,{children:["A new box from this one’s workspace files and its ",(0,i.jsx)("code",{children:"agentbox.yaml"}),", with a ",(0,i.jsx)("strong",{children:"fresh identity"}),"— it onboards from scratch and generates its own token. To keep this box’s identity instead, back it up and restore it."]})]})]}),(0,i.jsx)(t0.DialogBody,{children:m?(0,i.jsx)(t3.JobLogStream,{jobId:m,endpoint:`/api/v1/jobs/${m}/logs`}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t5.Label,{htmlFor:"clone-name",children:"New box name"}),(0,i.jsx)(t1.Input,{id:"clone-name",value:l,onChange:e=>a(e.target.value),placeholder:"my-bot-clone"}),f?(0,i.jsx)("div",{className:(0,d.cn)("mt-3 rounded-lg border border-[var(--red-line)] bg-[var(--red-soft)] p-3","text-[12.5px] leading-relaxed text-[var(--red)]"),children:f}):null]})}),(0,i.jsxs)(t0.DialogFooter,{children:[(0,i.jsx)(g.Button,{variant:"outline",size:"sm",onClick:t,children:m?"Close":"Cancel"}),m?null:(0,i.jsxs)(g.Button,{size:"sm",disabled:c||0===l.trim().length,onClick:()=>{v().then(e=>{e&&n({title:"Clone started"})})},children:[c?(0,i.jsx)("span",{className:"spin",style:{width:12,height:12}}):(0,i.jsx)(s.Icons.copy,{}),"Clone"]})]})]})}var nr=e.i(30544),ni=e.i(51096);function no({k:e,v:t,mono:n,link:r}){return(0,i.jsxs)("div",{className:"grid grid-cols-[156px_1fr] items-baseline gap-4 px-4.5 p-3 max-sm:grid-cols-1 max-sm:gap-1",children:[(0,i.jsx)("div",{className:"font-mono text-xs text-muted-foreground",children:e}),(0,i.jsx)("div",{className:(0,d.cn)("min-w-0 text-[13.5px]",n?"font-mono text-[13px]":""),children:r?(0,i.jsx)(ni.default,{className:"cursor-pointer text-primary",href:r,children:t}):t})]})}var nl=e.i(31758),ns=e.i(49604),na=e.i(9383);let nc=(0,na.createServerReference)("70bb070ee245b7a5dda854f1850e477addb5cb278b",na.callServer,void 0,na.findSourceMapURL,"gitBranchAction"),nd=(0,na.createServerReference)("60fbc7f4cb8f5db76c9a9436d05015511a2d72fe58",na.callServer,void 0,na.findSourceMapURL,"gitCheckoutAction"),nu=(0,na.createServerReference)("60ac3242cc67f2d1492f1acf98e1abe466e3c31fc1",na.callServer,void 0,na.findSourceMapURL,"gitPullAction"),nf=(0,na.createServerReference)("60284483bd39735bd399017bfb6dee3e30e3626896",na.callServer,void 0,na.findSourceMapURL,"gitPushAction"),np=(0,na.createServerReference)("600fdadabb33482338f48ac0324e63860e81c04420",na.callServer,void 0,na.findSourceMapURL,"gitPushHostAction");function nm({label:e,desc:t,children:n}){return(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,i.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,i.jsx)("div",{className:"text-[13.5px] font-medium",children:e}),(0,i.jsx)("div",{className:"mt-0.5 font-mono text-[11.5px] text-muted-foreground",children:t})]}),(0,i.jsx)("div",{className:"flex flex-none flex-wrap gap-1.5",children:n})]})}function nx({icon:e,disabled:t,onRun:n,children:r}){let[o,l]=(0,h.useState)(!1),s=async()=>{l(!0);try{await n()}finally{l(!1)}};return(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:t||o,onClick:s,children:[o?(0,i.jsx)("span",{className:"spin",style:{width:12,height:12}}):(0,i.jsx)(e,{}),r]})}function nh(e,t){let n=(e??"").trim()||(t??"").trim();return n?n.split("\n")[0]:void 0}function ng({box:e}){let t=(0,o.useRouter)(),{toasts:n,push:r,dismiss:l}=t6(),[a,c]=(0,h.useState)(null),[u,p]=(0,h.useState)(null),m="running"!==e.status,x=(0,h.useCallback)(async()=>{try{let t=await fetch(`/api/v1/boxes/${encodeURIComponent(e.id)}/git`,{credentials:"same-origin"});c(t.ok?await t.json():null)}catch{c(null)}},[e.id]);(0,h.useEffect)(()=>{x()},[x]);let v=a?.ok&&a.branch?a.branch:e.branch||"—",b=()=>{x(),t.refresh()},y=async(e,t)=>{let n=await t();n.ok?(r({title:e,detail:nh(n.stdout,n.stderr)}),b()):r({variant:"error",title:`${e} failed`,detail:n.error})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(f.Card,{className:(0,d.cn)("divide-y divide-border/60 overflow-hidden",m?"opacity-90":""),children:[m?(0,i.jsxs)("div",{className:"flex items-center gap-2.5 bg-[var(--amber-soft)] px-4.5 p-2.5 text-[12.5px] text-[var(--amber)]",children:[(0,i.jsx)(s.Icons.warn,{className:"size-3.5 flex-none"}),"Box is ",e.status," — git operations need a running box."]}):null,(0,i.jsxs)(nm,{label:"Sync",desc:`origin ↔ ${v}`,children:[(0,i.jsx)(nx,{icon:s.Icons.arrowL,disabled:m,onRun:()=>y("Pulled from origin",()=>nu(e.id)),children:"Pull"}),(0,i.jsx)(nx,{icon:s.Icons.ext,disabled:m,onRun:()=>y("Pushed to origin",()=>nf(e.id)),children:"Push"}),(0,i.jsx)(nx,{icon:s.Icons.host,disabled:m,onRun:()=>y("Pushed to host",()=>np(e.id)),children:"Push to host"})]}),(0,i.jsxs)(nm,{label:"Branch",desc:`currently on ${v}`,children:[(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:m,onClick:()=>p("change"),children:[(0,i.jsx)(s.Icons.branch,{}),"Change branch"]}),(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:m,onClick:()=>p("new"),children:[(0,i.jsx)(s.Icons.plus,{}),"New branch"]})]})]}),"change"===u?(0,i.jsx)(ny,{box:e,branch:v,onClose:()=>p(null),onDone:r,onRefresh:b}):null,"new"===u?(0,i.jsx)(nw,{box:e,onClose:()=>p(null),onDone:r,onRefresh:b}):null,(0,i.jsx)(t8,{toasts:n,dismiss:l})]})}let nv="__manual__";function nb({boxId:e,value:t,onChange:n,id:r,headLabel:o,currentBranch:l}){let[s,a]=(0,h.useState)(null),[c,d]=(0,h.useState)(l??null),[u,f]=(0,h.useState)(!1);return((0,h.useEffect)(()=>{let t=!1;return(async()=>{try{let n=await fetch(`/api/v1/boxes/${encodeURIComponent(e)}/branches`,{credentials:"same-origin"}),r=n.ok?await n.json():null;if(t)return;r&&Array.isArray(r.branches)&&r.branches.length>0?(a(r.branches),l||"string"!=typeof r.current||d(r.current)):(a([]),f(!0))}catch{t||(a([]),f(!0))}})(),()=>{t=!0}},[e,l]),null===s)?(0,i.jsx)(ns.Select,{id:r,value:"",disabled:!0,wrapperClassName:"w-full",children:(0,i.jsx)("option",{value:"",children:"Loading branches…"})}):u?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t1.Input,{id:r,className:"font-mono text-[13px]",autoFocus:!0,value:t,onChange:e=>n(e.target.value),placeholder:o?"HEAD":"feature-x"}),s.length>0?(0,i.jsx)("button",{type:"button",onClick:()=>{f(!1),n("")},className:"mt-1.5 cursor-pointer text-xs text-secondary-foreground underline-offset-2 hover:underline",children:"← Back to branch list"}):null]}):(0,i.jsxs)(ns.Select,{id:r,value:t,wrapperClassName:"w-full",onChange:e=>{if(e.target.value===nv){f(!0),n("");return}n(e.target.value)},children:[o?(0,i.jsx)("option",{value:"",children:o}):(0,i.jsx)("option",{value:"",disabled:!0,children:"Select a branch…"}),(0,i.jsx)("option",{value:nv,children:"Other / type manually…"}),(0,i.jsx)("option",{disabled:!0,children:"────────────"}),s.map(e=>(0,i.jsxs)("option",{value:e,children:[e,e===c?" (current)":""]},e))]})}function ny({box:e,branch:t,onClose:n,onDone:r,onRefresh:o}){let[l,a]=(0,h.useState)(""),[c,d]=(0,h.useState)(!1),[u,f]=(0,h.useState)(null),p=l.trim().length>0;return(0,i.jsxs)(t0.Dialog,{onClose:n,className:"max-w-[440px]",children:[(0,i.jsxs)(t0.DialogHeader,{children:[(0,i.jsx)(t0.DialogIcon,{children:(0,i.jsx)(s.Icons.branch,{})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(t0.DialogTitle,{children:"Change branch"}),(0,i.jsxs)(t0.DialogDescription,{children:[e.id," · currently on ",t]})]})]}),(0,i.jsxs)(t0.DialogBody,{children:[(0,i.jsx)(t5.Label,{htmlFor:"gb-branch",children:"Branch"}),(0,i.jsx)(nb,{boxId:e.id,id:"gb-branch",value:l,onChange:a,currentBranch:t}),(0,i.jsx)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:"The branch must exist and not be checked out in another worktree."}),u?(0,i.jsx)("p",{className:"mt-2 break-words font-mono text-xs text-destructive",children:u}):null]}),(0,i.jsxs)(t0.DialogFooter,{children:[(0,i.jsx)(g.Button,{variant:"outline",onClick:n,disabled:c,children:"Cancel"}),(0,i.jsxs)(g.Button,{onClick:()=>{p&&!c&&(d(!0),f(null),(async()=>{let t=await nd(e.id,l.trim());t.ok?(r({title:"Branch changed",detail:nh(t.stdout,t.stderr)}),n(),o()):(f(t.error),d(!1))})())},disabled:!p||c,children:[c?(0,i.jsx)("span",{className:"spin"}):(0,i.jsx)(s.Icons.check,{}),c?"Checking out…":"Change branch"]})]})]})}function nw({box:e,onClose:t,onDone:n,onRefresh:r}){let[o,l]=(0,h.useState)(""),[a,c]=(0,h.useState)(""),[d,u]=(0,h.useState)(!1),[f,p]=(0,h.useState)(null),m=o.trim().length>0,x=()=>{m&&!d&&(u(!0),p(null),(async()=>{let i=await nc(e.id,o.trim(),a.trim()||void 0);i.ok?(n({title:"Branch created",detail:nh(i.stdout,i.stderr)}),t(),r()):(p(i.error),u(!1))})())};return(0,i.jsxs)(t0.Dialog,{onClose:t,className:"max-w-[440px]",children:[(0,i.jsxs)(t0.DialogHeader,{children:[(0,i.jsx)(t0.DialogIcon,{children:(0,i.jsx)(s.Icons.branch,{})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(t0.DialogTitle,{children:"New branch"}),(0,i.jsxs)(t0.DialogDescription,{children:[e.id," · branching in the box workspace"]})]})]}),(0,i.jsxs)(t0.DialogBody,{children:[(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(t5.Label,{htmlFor:"nb-name",children:"Name"}),(0,i.jsx)(t1.Input,{id:"nb-name",className:"font-mono text-[13px]",autoFocus:!0,value:o,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key&&x()},placeholder:"my-branch"}),(0,i.jsxs)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:["An ",(0,i.jsx)("span",{className:"font-mono",children:"agentbox/"})," prefix is added when missing."]})]}),(0,i.jsxs)(t5.Label,{htmlFor:"nb-from",children:["Base ref ",(0,i.jsx)("span",{className:"font-normal text-[#a4a9b0]",children:"(optional)"})]}),(0,i.jsx)(nb,{boxId:e.id,id:"nb-from",value:a,onChange:c,headLabel:"Current HEAD (default)"}),(0,i.jsx)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:"Defaults to the box's current HEAD."}),f?(0,i.jsx)("p",{className:"mt-2 break-words font-mono text-xs text-destructive",children:f}):null]}),(0,i.jsxs)(t0.DialogFooter,{children:[(0,i.jsx)(g.Button,{variant:"outline",onClick:t,disabled:d,children:"Cancel"}),(0,i.jsxs)(g.Button,{onClick:x,disabled:!m||d,children:[d?(0,i.jsx)("span",{className:"spin"}):(0,i.jsx)(s.Icons.plus,{}),d?"Creating…":"Create branch"]})]})]})}let nj=(0,na.createServerReference)("60156f5969a88012b6dc949c007c7041fbe3e87de2",na.callServer,void 0,na.findSourceMapURL,"restartServiceAction"),nC=new Set(["ready","running","done"]),nN=new Set(["crashed","unhealthy","backoff","failed"]),nS={up:"bg-[var(--green)]",bad:"bg-[var(--red)]",idle:"bg-[var(--amber)]"},nE={up:"text-[var(--green-ink)]",bad:"text-[var(--red)]",idle:"text-[var(--amber)]"};function nk({svc:e,disabled:t,onRestart:n}){var r;let o=(r=e.state,nC.has(r)?"up":nN.has(r)?"bad":"idle");return(0,i.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[(0,i.jsx)("span",{className:(0,d.cn)("badge-dot",nS[o]),"aria-hidden":!0}),(0,i.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[13px] text-secondary-foreground",children:e.name}),(0,i.jsx)("span",{className:(0,d.cn)("font-mono text-xs",nE[o]),children:e.state}),e.restarts>0?(0,i.jsxs)("span",{className:"font-mono text-[11px] text-muted-foreground",children:["↻",e.restarts]}):null,(0,i.jsx)(g.Button,{variant:"outline",size:"icon-sm",title:`Restart ${e.name}`,disabled:t,onClick:()=>n(e.name),children:(0,i.jsx)(s.Icons.refresh,{})})]})}function nR({id:e,running:t}){let[n,r]=(0,h.useState)(null),[o,l]=(0,h.useState)(null),[a,c]=(0,h.useTransition)(),d=(0,h.useCallback)(async()=>{try{let t=await fetch(`/api/v1/boxes/${encodeURIComponent(e)}/services`,{credentials:"same-origin"});if(!t.ok)return void l(`status ${String(t.status)}`);r(await t.json()),l(null)}catch(e){l(e instanceof Error?e.message:String(e))}},[e]);(0,h.useEffect)(()=>{if(d(),!t)return;let e=setInterval(()=>void d(),4e3);return()=>clearInterval(e)},[d,t]);let u=t=>{c(async()=>{let n=await nj(e,t);n.ok||window.alert(`Restart failed: ${n.error}`),await d()})},p=n?.services??[],m=p.length>0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tG.SectionLabel,{right:m?(0,i.jsxs)(g.Button,{variant:"outline",size:"sm",disabled:!t||a,onClick:()=>u(void 0),children:[(0,i.jsx)(s.Icons.refresh,{}),"Restart all"]}):null,children:"Services"}),(0,i.jsx)(f.Card,{className:"divide-y divide-border/60 overflow-hidden",children:n||o?o?(0,i.jsxs)("div",{className:"px-4 py-3 text-sm text-muted-foreground",children:["Could not load services (",o,")."]}):m?(0,i.jsxs)(i.Fragment,{children:[n?.source==="persisted"?(0,i.jsx)("div",{className:"bg-muted/30 px-4 py-1.5 font-mono text-[11px] text-muted-foreground",children:"persisted snapshot — box not running"}):null,p.map(e=>(0,i.jsx)(nk,{svc:e,disabled:!t||a,onRestart:e=>u(e)},e.name))]}):(0,i.jsx)("div",{className:"px-4 py-3 text-sm text-muted-foreground",children:n?.source==="unavailable"?"No service status (box not running or no snapshot yet).":"No services declared in agentbox.yaml."}):(0,i.jsx)("div",{className:"px-4 py-3 text-sm text-muted-foreground",children:"Loading…"})})]})}var nT=e.i(35594);e.s(["default",0,function(){let{id:e}=(0,o.useParams)(),{box:t,project:n}=(0,p.useStore)(),r=t(e);if(!r)return(0,i.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8",children:[(0,i.jsx)(tQ.BackLink,{to:"/",children:"All boxes"}),(0,i.jsx)(nl.EmptyBox,{children:"This box no longer exists — it may have been destroyed."})]});let d=n(r.projectId);return(0,i.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,i.jsx)(tQ.BackLink,{to:"/projects/"+r.projectId,children:d?d.name:"Project"}),(0,i.jsxs)("div",{className:"flex items-start gap-4 max-md:flex-col",children:[(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsxs)("h1",{className:"flex flex-wrap items-center gap-3 text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:[r.task,r.persistent?(0,i.jsx)(a.PersistentMark,{className:"size-4"}):null,(0,i.jsx)(c.StatusBadge,{status:r.status})]}),(0,i.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:[(0,i.jsx)("span",{className:"font-mono text-secondary-foreground",children:r.id})," ·"," ",(0,i.jsx)("span",{className:"font-mono text-secondary-foreground",children:r.repo})," · ",r.host]})]}),(0,i.jsx)("div",{className:"ml-auto flex-none max-md:ml-0",children:(0,i.jsx)(nr.BoxActions,{box:r,size:"lg"})})]}),r.error?(0,i.jsx)(u,{className:"mt-4 border-[var(--red-line)] bg-[var(--red-soft)] text-[var(--red)]",icon:s.Icons.warn,title:"Box errored",children:(0,i.jsx)("span",{className:"font-mono text-secondary-foreground",children:r.error})}):null,(0,i.jsx)(x,{boxId:r.id}),(0,i.jsx)(tG.SectionLabel,{children:"Overview"}),(0,i.jsxs)(nT.StatGrid,{children:[(0,i.jsx)(nT.Stat,{k:"Status",v:(0,i.jsx)(c.StatusBadge,{status:r.status})}),(0,i.jsx)(nT.Stat,{k:"Agent CLI",v:r.agent,mono:!0}),(0,i.jsx)(nT.Stat,{k:"Commits",v:r.commits??"—",icon:s.Icons.commit}),(0,i.jsx)(nT.Stat,{k:"Files touched",v:r.filesTouched??"—",icon:s.Icons.file}),(0,i.jsx)(nT.Stat,{k:"Last activity",v:(0,i.jsx)(l.Ago,{ms:r.lastActivity}),mono:!0})]}),(0,i.jsx)(tZ,{box:r}),(0,i.jsx)(nt,{box:r}),!1===r.hasGit?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tG.SectionLabel,{children:"Git operations"}),(0,i.jsx)(ng,{box:r})]}),(0,i.jsx)(nR,{id:r.id,running:"running"===r.status}),(0,i.jsx)(tG.SectionLabel,{children:"Details"}),(0,i.jsxs)(f.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[(0,i.jsx)(no,{k:"Box ID",v:r.id,mono:!0}),(0,i.jsx)(no,{k:"Project",v:d?d.name:"—",link:d?"/projects/"+r.projectId:null}),(0,i.jsx)(no,{k:"Repository",v:r.repo,mono:!0}),!1===r.hasGit?null:(0,i.jsx)(no,{k:"Branch",v:r.branch,mono:!0}),(0,i.jsx)(no,{k:"Host",v:r.host,mono:!0}),(0,i.jsx)(no,{k:"Created",v:new Date(r.createdAt).toLocaleString(),mono:!0})]})]})}],77084)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35594,e=>{"use strict";var t=e.i(1262),r=e.i(65232),s=e.i(8536);e.s(["Stat",0,function({k:e,v:s,mono:n,icon:a}){return(0,t.jsxs)("div",{className:"px-4.5 p-4",children:[(0,t.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:e}),(0,t.jsxs)("div",{className:(0,r.cn)("flex items-center gap-2 font-semibold tracking-[-0.01em]",n?"font-mono text-sm font-medium":"text-base"),children:[a?(0,t.jsx)(a,{className:"size-[15px] text-muted-foreground"}):null,s]})]})},"StatGrid",0,function({children:e}){return(0,t.jsx)(s.Card,{className:"grid grid-cols-[repeat(auto-fit,minmax(140px,1fr))] divide-x divide-border/60 overflow-hidden",children:e})}])},8536,e=>{"use strict";var t=e.i(1262),r=e.i(65232);e.s(["Card",0,function({className:e,...s}){return(0,t.jsx)("div",{className:(0,r.cn)("rounded-xl border border-border bg-card text-card-foreground",e),...s})},"CardContent",0,function({className:e,...s}){return(0,t.jsx)("div",{className:(0,r.cn)("p-5 pt-0",e),...s})},"CardDescription",0,function({className:e,...s}){return(0,t.jsx)("div",{className:(0,r.cn)("text-[12.5px] text-muted-foreground",e),...s})},"CardHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-1 p-5",e),...s})},"CardTitle",0,function({className:e,...s}){return(0,t.jsx)("div",{className:(0,r.cn)("text-[15px] font-semibold leading-none tracking-tight",e),...s})}])},33789,51497,1485,e=>{"use strict";var t=e.i(1262),r=e.i(54129);function s(e){let t=Math.floor((Date.now()-e)/1e3);if(t<60)return t+"s ago";let r=Math.floor(t/60);if(r<60)return r+"m ago";let s=Math.floor(r/60);return s<24?s+"h ago":Math.floor(s/24)+"d ago"}e.s(["fmtAgo",0,s,"fmtBytes",0,function(e){return e<1024?e+"B":e<1048576?(e/1024).toFixed(1)+"KB":(e/1048576).toFixed(1)+"MB"}],51497),e.s(["Ago",0,function({ms:e}){let[n,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>a(!0),[]),(0,t.jsx)("span",{suppressHydrationWarning:!0,children:n?s(e):new Date(e).toLocaleDateString()})}],33789),e.s(["SectionLabel",0,function({children:e,right:r}){return(0,t.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[e,(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),r??null]})}],1485)},31758,e=>{"use strict";var t=e.i(1262),r=e.i(44344);e.s(["EmptyBox",0,function({children:e}){return(0,t.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,t.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,t.jsx)(r.Icons.box,{className:"size-5"})}),e]})}])},9383,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={callServer:function(){return a.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let a=e.r(57855),o=e.r(61414),i=e.r(97615)},23878,e=>{"use strict";var t=e.i(1262),r=e.i(65232);e.s(["Table",0,function({className:e,...s}){return(0,t.jsx)("table",{className:(0,r.cn)("w-full caption-bottom text-sm",e),...s})},"TableBody",0,function({className:e,...s}){return(0,t.jsx)("tbody",{className:(0,r.cn)("[&_tr:last-child]:border-0",e),...s})},"TableCell",0,function({className:e,...s}){return(0,t.jsx)("td",{className:(0,r.cn)("px-4 py-3 align-middle",e),...s})},"TableHead",0,function({className:e,...s}){return(0,t.jsx)("th",{className:(0,r.cn)("h-9 px-4 text-left align-middle font-mono text-[10.5px] font-normal uppercase tracking-[.08em] text-muted-foreground/90",e),...s})},"TableHeader",0,function({className:e,...s}){return(0,t.jsx)("thead",{className:(0,r.cn)("bg-background [&_tr]:border-b [&_tr]:border-border",e),...s})},"TableRow",0,function({className:e,...s}){return(0,t.jsx)("tr",{className:(0,r.cn)("border-b border-border/60 transition-colors hover:bg-[#fcfcfb] data-[state=selected]:bg-accent",e),...s})}])},3060,e=>{"use strict";var t=e.i(1262),r=e.i(65232);e.s(["Input",0,function({className:e,...s}){return(0,t.jsx)("input",{className:(0,r.cn)("flex h-10 w-full rounded-lg border border-input bg-card px-3 py-1 text-sm shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",e),...s})}])},95141,e=>{"use strict";var t=e.i(1262),r=e.i(54129),s=e.i(65232),n=e.i(44344);e.s(["Dialog",0,function({onClose:e,className:a,children:o}){return(0,r.useEffect)(()=>{let t=t=>{"Escape"===t.key&&e()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e]),(0,t.jsx)("div",{className:"anim-fade fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-[rgba(20,24,30,.42)] p-6 backdrop-blur-[2px]",onClick:e,children:(0,t.jsxs)("div",{role:"dialog","aria-modal":"true",className:(0,s.cn)("anim-pop relative m-auto w-full max-w-[500px] rounded-2xl border border-border bg-card shadow-[0_40px_80px_-30px_rgba(20,24,30,.5)]",a),onClick:e=>e.stopPropagation(),children:[o,(0,t.jsx)("button",{className:"absolute right-4 top-4 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-[#a4a9b0] transition-colors hover:bg-secondary hover:text-foreground",onClick:e,"aria-label":"Close",children:(0,t.jsx)(n.Icons.x,{style:{width:15,height:15}})})]})})},"DialogBody",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("px-5 py-4",e),...r})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("mt-1 font-mono text-xs text-muted-foreground",e),...r})},"DialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("flex justify-end gap-2.5 rounded-b-2xl border-t border-border/70 bg-background px-5 py-3.5",e),...r})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("flex items-start gap-3 border-b border-border/70 px-5 pb-4 pt-5",e),...r})},"DialogIcon",0,function({children:e}){return(0,t.jsx)("span",{className:"grid h-9 w-9 flex-none place-items-center rounded-lg border border-[var(--green-line)] bg-accent text-primary [&_svg]:size-[17px]",children:e})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("text-base font-semibold leading-tight tracking-tight",e),...r})}])},86184,e=>{"use strict";var t=e.i(1262),r=e.i(54129),s=e.i(69377),n=e.i(3060);function a({jobId:e,login:o}){let[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[u,x]=(0,r.useState)(null),m="exchanging"===o.phase,p=async()=>{let t=i.trim();if(t&&!c){d(!0),x(null);try{let r=await fetch(`/api/v1/jobs/${encodeURIComponent(e)}/login-code`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:t})});if(!r.ok){let e=await r.json().catch(()=>null);x(e?.error?.message??`request failed (${r.status})`);return}l("")}catch(e){x(e instanceof Error?e.message:String(e))}finally{d(!1)}}};return(0,t.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-amber-500/40 bg-amber-500/10 p-3",children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-amber-200",children:"Claude login required"}),(0,t.jsx)("p",{className:"text-xs text-amber-100/80",children:"Your saved Claude login is expired. Open the sign-in page, approve access, then paste the code Claude shows you."}),o.url?(0,t.jsx)("a",{href:o.url,target:"_blank",rel:"noreferrer",className:"w-fit rounded-md bg-amber-500/20 px-2.5 py-1 text-xs font-medium text-amber-100 underline decoration-amber-400/50 underline-offset-2 hover:bg-amber-500/30",children:"Open Claude sign-in ↗"}):(0,t.jsx)("span",{className:"text-xs text-amber-100/60",children:"waiting for the sign-in link…"}),(0,t.jsxs)("div",{className:"mt-1 flex gap-2",children:[(0,t.jsx)(n.Input,{value:i,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key&&p()},placeholder:"Paste approval code",disabled:m,className:"flex-1 font-mono text-xs"}),(0,t.jsx)(s.Button,{type:"button",onClick:()=>void p(),disabled:!i.trim()||c||m,children:m?"Verifying…":c?"Submitting…":"Submit"})]}),o.lastError?(0,t.jsx)("p",{className:"text-xs text-amber-300",children:o.lastError}):null,"error"===o.phase&&o.error?(0,t.jsx)("p",{className:"text-xs text-red-400",children:o.error}):null,u?(0,t.jsx)("p",{className:"text-xs text-red-400",children:u}):null]})}e.s(["JobLogStream",0,function({jobId:e,endpoint:s,onDone:n,onStatus:o,onLogin:i}){let[l,c]=(0,r.useState)([]),[d,u]=(0,r.useState)(null),x=(0,r.useRef)(null),m=(0,r.useRef)(n);m.current=n;let p=(0,r.useRef)(o);p.current=o;let f=(0,r.useRef)(i);return f.current=i,(0,r.useEffect)(()=>{p.current?.("streaming");let t=new EventSource(s??`/api/jobs/${encodeURIComponent(e)}/logs`);return t.addEventListener("log",e=>{let t=JSON.parse(e.data);c(e=>[...e,t])}),t.addEventListener("login",e=>{let t=JSON.parse(e.data);u(t),f.current?.(t)}),t.addEventListener("end",e=>{let r=JSON.parse(e.data);p.current?.(r.status),m.current?.(r.status),t.close()}),()=>t.close()},[e,s]),(0,r.useEffect)(()=>{let e=x.current;e&&(e.scrollTop=e.scrollHeight)},[l]),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[d&&"done"!==d.phase?(0,t.jsx)(a,{jobId:e,login:d}):null,(0,t.jsx)("pre",{ref:x,className:"max-h-[440px] min-h-[220px] overflow-auto whitespace-pre rounded-lg bg-[#16181c] p-3 font-mono text-[11.5px] leading-relaxed text-[#d6d9de]",children:0===l.length?"starting…":l.join("\n")})]})}])},77869,86892,e=>{"use strict";var t=e.i(1262),r=e.i(44344),s=e.i(65232);e.s(["PersistentMark",0,function({className:e}){return(0,t.jsx)("span",{title:"Persistent (always-on): never auto-paused, never pruned, and started again after a host reboot","aria-label":"Persistent box",className:"inline-flex flex-none items-center text-muted-foreground",children:(0,t.jsx)(r.Icons.lock,{className:(0,s.cn)("size-3.5",e)})})}],77869);var n=e.i(64595);let a={running:{label:"running",badgeClass:"badge-run"},paused:{label:"paused",badgeClass:"badge-pause"},stopped:{label:"stopped",badgeClass:"badge-stop"},creating:{label:"creating",badgeClass:"badge-create"},error:{label:"error",badgeClass:"badge-err"}};e.s(["StatusBadge",0,function({status:e}){let r=a[e]??a.stopped;return(0,t.jsxs)(n.Badge,{className:r.badgeClass,children:[(0,t.jsx)("span",{className:"badge-dot"}),r.label]})}],86892)},30544,49604,e=>{"use strict";var t=e.i(1262),r=e.i(45971),s=e.i(54129),n=e.i(65232),a=e.i(69377),o=e.i(44344),i=e.i(9383);let l=(0,i.createServerReference)("40a8d927c4cdf2644578c7d046ec6ac4b5476e093c",i.callServer,void 0,i.findSourceMapURL,"destroyBoxAction"),c=(0,i.createServerReference)("400fa966c2798373b413a766971b2a65942e1c10ed",i.callServer,void 0,i.findSourceMapURL,"pauseBoxAction"),d=(0,i.createServerReference)("6071e7924c81efcf4f632db30c94b2719dea3aad86",i.callServer,void 0,i.findSourceMapURL,"renameBoxAction"),u=(0,i.createServerReference)("4096c3a9fca12159537e807a65e8c69363c9994b44",i.callServer,void 0,i.findSourceMapURL,"resumeBoxAction"),x=(0,i.createServerReference)("401094edbde1b8a36591bbcb042a1f6f13c0856238",i.callServer,void 0,i.findSourceMapURL,"stopBoxAction");e.s(["BoxActions",0,function({box:e,size:i}){let m=(0,r.useRouter)(),[p,f]=(0,s.useTransition)(),b="running"===e.status,g="paused"===e.status,h="stopped"===e.status,v=e.id.startsWith("job:"),j="lg"===i,N=j?"sm":"icon-sm",y=(t,r,s)=>{t.stopPropagation(),(!s||window.confirm(s))&&f(async()=>{let t=await r(e.id);t.ok||window.alert(`Action failed: ${t.error}`),m.refresh()})};return v?(0,t.jsx)("div",{className:(0,n.cn)("flex gap-1.5",j?"":"justify-end"),children:(0,t.jsxs)(a.Button,{variant:"destructive",size:N,title:"Dismiss",disabled:p||"error"!==e.status,onClick:t=>y(t,l,`Dismiss failed box ${e.id}? This clears the failed create.`),children:[(0,t.jsx)(o.Icons.trash,{}),j?"Dismiss":null]})}):(0,t.jsxs)("div",{className:(0,n.cn)("flex gap-1.5",j?"":"justify-end"),children:[g?(0,t.jsxs)(a.Button,{variant:j?"default":"outline",size:N,title:"Resume",disabled:p,className:j?"":"hover:border-[var(--green)] hover:bg-accent hover:text-[var(--green-ink)]",onClick:e=>y(e,u),children:[(0,t.jsx)(o.Icons.play,{}),j?"Resume":null]}):(0,t.jsxs)(a.Button,{variant:"outline",size:N,disabled:p||!b,title:"Pause",className:j?"":"hover:border-[var(--amber)] hover:bg-[var(--amber-soft)] hover:text-[var(--amber)]",onClick:e=>y(e,c),children:[(0,t.jsx)(o.Icons.pause,{}),j?"Pause":null]}),(0,t.jsxs)(a.Button,{variant:"outline",size:N,disabled:p||h,title:"Stop",onClick:e=>y(e,x),children:[(0,t.jsx)(o.Icons.stop,{}),j?"Stop":null]}),(0,t.jsxs)(a.Button,{variant:"outline",size:N,disabled:p,title:"Rename",onClick:t=>{t.stopPropagation();let r=window.prompt("Rename box (label only — leave blank to reset)",e.displayName??e.task);null!==r&&f(async()=>{let t=await d(e.id,r.trim());t.ok||window.alert(`Rename failed: ${t.error}`),m.refresh()})},children:[(0,t.jsx)(o.Icons.pencil,{}),j?"Rename":null]}),(0,t.jsxs)(a.Button,{variant:"destructive",size:N,title:"Destroy",disabled:p,onClick:t=>y(t,l,`Destroy box ${e.id}? Its workspace volume is discarded. This cannot be undone.`),children:[(0,t.jsx)(o.Icons.trash,{}),j?"Destroy":null]})]})}],30544),e.s(["Select",0,function({wrapperClassName:e,className:r,children:s,...a}){return(0,t.jsxs)("span",{className:(0,n.cn)("relative inline-flex",e),children:[(0,t.jsx)("select",{className:(0,n.cn)("h-9 w-full cursor-pointer appearance-none rounded-lg border border-input bg-card py-1 pl-3 pr-9 text-[13px] shadow-sm focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",r),...a,children:s}),(0,t.jsx)("svg",{className:"pointer-events-none absolute right-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:(0,t.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}],49604)},99869,e=>{"use strict";function t(e){return e.backups.filter(e=>e.state)}e.s(["parseRestoreKey",0,function(e){let t=e.split("/");return 2===t.length&&t[0]&&t[1]?{bot:t[0],stamp:t[1]}:null},"preferredBackup",0,function(e){let r=t(e);return r.find(t=>t.stamp===e.latest)??r[0]},"readableStamp",0,function(e){let t=new Date(e.replace(/^(\d{4}-\d{2}-\d{2})T(\d{2})-(\d{2})-(\d{2})Z$/,"$1T$2:$3:$4Z"));return Number.isNaN(t.getTime())?e:t.toLocaleString()},"restorableBackups",0,t,"restoreKeyOf",0,function(e,t){return`${e}/${t}`}])},80922,e=>{"use strict";var t=e.i(1262),r=e.i(51096),s=e.i(44344);e.s(["BackLink",0,function({to:e,children:n}){return(0,t.jsxs)(r.default,{className:"mb-3.5 inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-mono text-xs text-muted-foreground hover:text-primary",href:e,children:[(0,t.jsx)(s.Icons.arrowL,{className:"size-[13px]"}),n]})}])},86691,e=>{"use strict";var t=e.i(1262),r=e.i(45971),s=e.i(33789),n=e.i(44344),a=e.i(96621),o=e.i(80922),i=e.i(22983),l=e.i(93268),c=e.i(66818),d=e.i(31758),u=e.i(1485),x=e.i(35594),m=e.i(54129),p=e.i(8536),f=e.i(99869);function b({project:e}){let[r,s]=(0,m.useState)([]),a=(0,m.useCallback)(async()=>{try{let t=await fetch(`/api/v1/projects/${encodeURIComponent(e.id)}/bots`,{credentials:"same-origin"});if(!t.ok)return void s([]);let{bots:r}=await t.json();s(r)}catch{s([])}},[e.id]);return((0,m.useEffect)(()=>{a()},[a]),0===r.length)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.SectionLabel,{children:"Bot backups"}),(0,t.jsx)(p.Card,{className:"divide-y divide-border/60 overflow-hidden",children:r.map(r=>{let s=(0,f.preferredBackup)(r)??r.backups[0],a=(0,f.restorableBackups)(r);return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,t.jsxs)("div",{className:"min-w-[180px] flex-1",children:[(0,t.jsx)("div",{className:"font-mono text-[13.5px] font-medium",children:r.bot}),(0,t.jsxs)("div",{className:"mt-0.5 text-[11.5px] text-muted-foreground",children:[r.backups.length," backup",1===r.backups.length?"":"s",s?` \xb7 newest ${(0,f.readableStamp)(s.stamp)}`:"",a.length>0?"":" · workspace only, no identity captured"]})]}),a.length>0&&s?(0,t.jsx)(l.CreateBoxButton,{project:e,variant:"outline",size:"sm",label:"Restore…",icon:n.Icons.refresh,initialRestore:(0,f.restoreKeyOf)(r.bot,s.stamp)}):(0,t.jsx)("span",{className:"text-[11.5px] text-muted-foreground",title:"These backups captured no agent state, so there is no identity to restore.",children:"Not restorable"})]},r.bot)})})]})}var g=e.i(51497);function h({projectId:e}){let[r,a]=(0,m.useState)(null),[o,i]=(0,m.useState)(!1);if((0,m.useEffect)(()=>{let t=!1;return(async()=>{try{let r=await fetch(`/api/v1/projects/${encodeURIComponent(e)}/seed`,{credentials:"same-origin"});if(!r.ok)return;let s=await r.json();t||a(s)}catch{}finally{t||i(!0)}})(),()=>{t=!0}},[e]),!o||!r||!r.custodyAvailable)return null;let l=r.seed;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.SectionLabel,{children:"Seed / custody"}),l?(0,t.jsxs)(p.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[(0,t.jsxs)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(150px,1fr))] divide-x divide-border/60",children:[(0,t.jsx)(v,{k:"Slug",v:l.slug,mono:!0}),(0,t.jsx)(v,{k:"Captured",v:l.capturedAt?(0,t.jsx)(s.Ago,{ms:Date.parse(l.capturedAt)||Date.now()}):"—"}),(0,t.jsx)(v,{k:"At commit",v:l.repoHeadSha?l.repoHeadSha.slice(0,8):"—",mono:!0}),(0,t.jsx)(v,{k:"Base branch",v:l.baseBranch??"—",mono:!0}),(0,t.jsx)(v,{k:"Secrets",v:(0,t.jsx)("span",{className:"flex items-center gap-1.5",children:l.hasEnv?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Icons.shield,{className:"size-[14px] text-[var(--green-ink)]"})," present"]}):"none"})}),(0,t.jsx)(v,{k:"Size",v:(0,g.fmtBytes)(l.totalBytes),mono:!0})]}),(0,t.jsx)("div",{children:l.entries.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[(0,t.jsx)(n.Icons.file,{className:"size-[14px] flex-none text-muted-foreground"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[13px] text-secondary-foreground",children:e.name}),(0,t.jsx)("span",{className:"font-mono text-[11px] text-muted-foreground",children:e.sha256.slice(0,10)}),(0,t.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:(0,g.fmtBytes)(e.size)}),(0,t.jsx)("span",{className:"font-mono text-[11px] text-muted-foreground",children:(0,t.jsx)(s.Ago,{ms:Date.parse(e.updatedAt)||Date.now()})})]},e.name))})]}):(0,t.jsxs)(d.EmptyBox,{children:[(0,t.jsx)("div",{children:"No seed pushed yet."}),(0,t.jsxs)("div",{className:"mt-1 text-[12.5px] text-muted-foreground",children:["Run ",(0,t.jsx)("code",{className:"font-mono",children:"agentbox hub project push"})," from the repo to register its untracked files and secrets."]})]})]})}function v({k:e,v:r,mono:s}){return(0,t.jsxs)("div",{className:"px-4.5 p-4",children:[(0,t.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:e}),(0,t.jsx)("div",{className:s?"truncate font-mono text-sm font-medium":"text-sm font-medium",children:r})]})}e.s(["default",0,function(){let{id:e}=(0,r.useParams)(),{project:m,boxesFor:p}=(0,a.useStore)(),f=m(e);if(!f)return(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8",children:[(0,t.jsx)(o.BackLink,{to:"/",children:"Dashboard"}),(0,t.jsx)(d.EmptyBox,{children:"Project not found."})]});let g=p(e),v=g.filter(e=>"running"===e.status).length,j=f.currentBranch||f.defaultBranch,N=f.originUrl?.trim()||null,y=N?/^https?:\/\//i.test(N)?N.replace(/\.git$/i,""):null:null;return(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,t.jsx)(o.BackLink,{to:"/",children:"All projects"}),(0,t.jsxs)("div",{className:"flex items-start gap-4 max-md:flex-col",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("h1",{className:"flex items-center gap-3 text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:[(0,t.jsx)("span",{className:"grid h-[26px] w-[26px] flex-none place-items-center rounded-md border border-[var(--green-line)] bg-accent text-primary",children:(0,t.jsx)(n.Icons.folder,{className:"size-[15px]"})}),f.name]}),(0,t.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:[N?y?(0,t.jsx)("a",{href:y,target:"_blank",rel:"noopener",className:"font-mono text-secondary-foreground hover:text-primary",children:N}):(0,t.jsx)("span",{className:"font-mono text-secondary-foreground",children:N}):(0,t.jsx)("span",{className:"font-mono text-secondary-foreground",children:f.repo})," ","· ",f.provider]})]}),(0,t.jsxs)("div",{className:"ml-auto flex flex-none gap-2 max-md:ml-0",children:[(0,t.jsx)(l.CreateBoxButton,{project:f}),0===g.length?(0,t.jsx)(c.DeleteProjectButton,{project:f,redirectHome:!0}):null]})]}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsxs)(x.StatGrid,{children:[(0,t.jsx)(x.Stat,{k:"Boxes",v:g.length,icon:n.Icons.box}),(0,t.jsx)(x.Stat,{k:"Running",v:v,icon:n.Icons.activity}),(0,t.jsx)(x.Stat,{k:"Provider",v:f.provider,mono:!0}),(0,t.jsx)(x.Stat,{k:"Branch",v:j||"—",mono:!0,icon:n.Icons.branch}),(0,t.jsx)(x.Stat,{k:"Created",v:(0,t.jsx)(s.Ago,{ms:f.createdAt}),mono:!0})]})}),(0,t.jsx)(h,{projectId:e}),(0,t.jsx)(b,{project:f}),(0,t.jsx)(u.SectionLabel,{children:"Boxes"}),g.length?(0,t.jsx)(i.BoxTable,{boxes:g}):(0,t.jsx)(d.EmptyBox,{children:(0,t.jsx)("div",{children:"No boxes yet."})})]})}],86691)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35594,e=>{"use strict";var t=e.i(1262),r=e.i(65232),s=e.i(8536);e.s(["Stat",0,function({k:e,v:s,mono:n,icon:a}){return(0,t.jsxs)("div",{className:"px-4.5 p-4",children:[(0,t.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:e}),(0,t.jsxs)("div",{className:(0,r.cn)("flex items-center gap-2 font-semibold tracking-[-0.01em]",n?"font-mono text-sm font-medium":"text-base"),children:[a?(0,t.jsx)(a,{className:"size-[15px] text-muted-foreground"}):null,s]})]})},"StatGrid",0,function({children:e}){return(0,t.jsx)(s.Card,{className:"grid grid-cols-[repeat(auto-fit,minmax(140px,1fr))] divide-x divide-border/60 overflow-hidden",children:e})}])},8536,e=>{"use strict";var t=e.i(1262),r=e.i(65232);e.s(["Card",0,function({className:e,...s}){return(0,t.jsx)("div",{className:(0,r.cn)("rounded-xl border border-border bg-card text-card-foreground",e),...s})},"CardContent",0,function({className:e,...s}){return(0,t.jsx)("div",{className:(0,r.cn)("p-5 pt-0",e),...s})},"CardDescription",0,function({className:e,...s}){return(0,t.jsx)("div",{className:(0,r.cn)("text-[12.5px] text-muted-foreground",e),...s})},"CardHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-1 p-5",e),...s})},"CardTitle",0,function({className:e,...s}){return(0,t.jsx)("div",{className:(0,r.cn)("text-[15px] font-semibold leading-none tracking-tight",e),...s})}])},33789,51497,1485,e=>{"use strict";var t=e.i(1262),r=e.i(54129);function s(e){let t=Math.floor((Date.now()-e)/1e3);if(t<60)return t+"s ago";let r=Math.floor(t/60);if(r<60)return r+"m ago";let s=Math.floor(r/60);return s<24?s+"h ago":Math.floor(s/24)+"d ago"}e.s(["fmtAgo",0,s,"fmtBytes",0,function(e){return e<1024?e+"B":e<1048576?(e/1024).toFixed(1)+"KB":(e/1048576).toFixed(1)+"MB"}],51497),e.s(["Ago",0,function({ms:e}){let[n,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>a(!0),[]),(0,t.jsx)("span",{suppressHydrationWarning:!0,children:n?s(e):new Date(e).toLocaleDateString()})}],33789),e.s(["SectionLabel",0,function({children:e,right:r}){return(0,t.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[e,(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),r??null]})}],1485)},31758,e=>{"use strict";var t=e.i(1262),r=e.i(44344);e.s(["EmptyBox",0,function({children:e}){return(0,t.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,t.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,t.jsx)(r.Icons.box,{className:"size-5"})}),e]})}])},9383,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={callServer:function(){return a.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let a=e.r(57855),o=e.r(61414),i=e.r(97615)},23878,e=>{"use strict";var t=e.i(1262),r=e.i(65232);e.s(["Table",0,function({className:e,...s}){return(0,t.jsx)("table",{className:(0,r.cn)("w-full caption-bottom text-sm",e),...s})},"TableBody",0,function({className:e,...s}){return(0,t.jsx)("tbody",{className:(0,r.cn)("[&_tr:last-child]:border-0",e),...s})},"TableCell",0,function({className:e,...s}){return(0,t.jsx)("td",{className:(0,r.cn)("px-4 py-3 align-middle",e),...s})},"TableHead",0,function({className:e,...s}){return(0,t.jsx)("th",{className:(0,r.cn)("h-9 px-4 text-left align-middle font-mono text-[10.5px] font-normal uppercase tracking-[.08em] text-muted-foreground/90",e),...s})},"TableHeader",0,function({className:e,...s}){return(0,t.jsx)("thead",{className:(0,r.cn)("bg-background [&_tr]:border-b [&_tr]:border-border",e),...s})},"TableRow",0,function({className:e,...s}){return(0,t.jsx)("tr",{className:(0,r.cn)("border-b border-border/60 transition-colors hover:bg-[#fcfcfb] data-[state=selected]:bg-accent",e),...s})}])},3060,e=>{"use strict";var t=e.i(1262),r=e.i(65232);e.s(["Input",0,function({className:e,...s}){return(0,t.jsx)("input",{className:(0,r.cn)("flex h-10 w-full rounded-lg border border-input bg-card px-3 py-1 text-sm shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",e),...s})}])},95141,e=>{"use strict";var t=e.i(1262),r=e.i(54129),s=e.i(65232),n=e.i(44344);e.s(["Dialog",0,function({onClose:e,className:a,children:o}){return(0,r.useEffect)(()=>{let t=t=>{"Escape"===t.key&&e()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e]),(0,t.jsx)("div",{className:"anim-fade fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-[rgba(20,24,30,.42)] p-6 backdrop-blur-[2px]",onClick:e,children:(0,t.jsxs)("div",{role:"dialog","aria-modal":"true",className:(0,s.cn)("anim-pop relative m-auto w-full max-w-[500px] rounded-2xl border border-border bg-card shadow-[0_40px_80px_-30px_rgba(20,24,30,.5)]",a),onClick:e=>e.stopPropagation(),children:[o,(0,t.jsx)("button",{className:"absolute right-4 top-4 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-[#a4a9b0] transition-colors hover:bg-secondary hover:text-foreground",onClick:e,"aria-label":"Close",children:(0,t.jsx)(n.Icons.x,{style:{width:15,height:15}})})]})})},"DialogBody",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("px-5 py-4",e),...r})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("mt-1 font-mono text-xs text-muted-foreground",e),...r})},"DialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("flex justify-end gap-2.5 rounded-b-2xl border-t border-border/70 bg-background px-5 py-3.5",e),...r})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("flex items-start gap-3 border-b border-border/70 px-5 pb-4 pt-5",e),...r})},"DialogIcon",0,function({children:e}){return(0,t.jsx)("span",{className:"grid h-9 w-9 flex-none place-items-center rounded-lg border border-[var(--green-line)] bg-accent text-primary [&_svg]:size-[17px]",children:e})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("text-base font-semibold leading-tight tracking-tight",e),...r})}])},86184,e=>{"use strict";var t=e.i(1262),r=e.i(54129),s=e.i(69377),n=e.i(3060);function a({jobId:e,login:o}){let[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[u,x]=(0,r.useState)(null),m="exchanging"===o.phase,p=async()=>{let t=i.trim();if(t&&!c){d(!0),x(null);try{let r=await fetch(`/api/v1/jobs/${encodeURIComponent(e)}/login-code`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:t})});if(!r.ok){let e=await r.json().catch(()=>null);x(e?.error?.message??`request failed (${r.status})`);return}l("")}catch(e){x(e instanceof Error?e.message:String(e))}finally{d(!1)}}};return(0,t.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-amber-500/40 bg-amber-500/10 p-3",children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-amber-200",children:"Claude login required"}),(0,t.jsx)("p",{className:"text-xs text-amber-100/80",children:"Your saved Claude login is expired. Open the sign-in page, approve access, then paste the code Claude shows you."}),o.url?(0,t.jsx)("a",{href:o.url,target:"_blank",rel:"noreferrer",className:"w-fit rounded-md bg-amber-500/20 px-2.5 py-1 text-xs font-medium text-amber-100 underline decoration-amber-400/50 underline-offset-2 hover:bg-amber-500/30",children:"Open Claude sign-in ↗"}):(0,t.jsx)("span",{className:"text-xs text-amber-100/60",children:"waiting for the sign-in link…"}),(0,t.jsxs)("div",{className:"mt-1 flex gap-2",children:[(0,t.jsx)(n.Input,{value:i,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key&&p()},placeholder:"Paste approval code",disabled:m,className:"flex-1 font-mono text-xs"}),(0,t.jsx)(s.Button,{type:"button",onClick:()=>void p(),disabled:!i.trim()||c||m,children:m?"Verifying…":c?"Submitting…":"Submit"})]}),o.lastError?(0,t.jsx)("p",{className:"text-xs text-amber-300",children:o.lastError}):null,"error"===o.phase&&o.error?(0,t.jsx)("p",{className:"text-xs text-red-400",children:o.error}):null,u?(0,t.jsx)("p",{className:"text-xs text-red-400",children:u}):null]})}e.s(["JobLogStream",0,function({jobId:e,endpoint:s,onDone:n,onStatus:o,onLogin:i}){let[l,c]=(0,r.useState)([]),[d,u]=(0,r.useState)(null),x=(0,r.useRef)(null),m=(0,r.useRef)(n);m.current=n;let p=(0,r.useRef)(o);p.current=o;let f=(0,r.useRef)(i);return f.current=i,(0,r.useEffect)(()=>{p.current?.("streaming");let t=new EventSource(s??`/api/jobs/${encodeURIComponent(e)}/logs`);return t.addEventListener("log",e=>{let t=JSON.parse(e.data);c(e=>[...e,t])}),t.addEventListener("login",e=>{let t=JSON.parse(e.data);u(t),f.current?.(t)}),t.addEventListener("end",e=>{let r=JSON.parse(e.data);p.current?.(r.status),m.current?.(r.status),t.close()}),()=>t.close()},[e,s]),(0,r.useEffect)(()=>{let e=x.current;e&&(e.scrollTop=e.scrollHeight)},[l]),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[d&&"done"!==d.phase?(0,t.jsx)(a,{jobId:e,login:d}):null,(0,t.jsx)("pre",{ref:x,className:"max-h-[440px] min-h-[220px] overflow-auto whitespace-pre rounded-lg bg-[#16181c] p-3 font-mono text-[11.5px] leading-relaxed text-[#d6d9de]",children:0===l.length?"starting…":l.join("\n")})]})}])},77869,86892,e=>{"use strict";var t=e.i(1262),r=e.i(44344),s=e.i(65232);e.s(["PersistentMark",0,function({className:e}){return(0,t.jsx)("span",{title:"Persistent (always-on): never auto-paused, never pruned, and started again after a host reboot","aria-label":"Persistent box",className:"inline-flex flex-none items-center text-muted-foreground",children:(0,t.jsx)(r.Icons.lock,{className:(0,s.cn)("size-3.5",e)})})}],77869);var n=e.i(64595);let a={running:{label:"running",badgeClass:"badge-run"},paused:{label:"paused",badgeClass:"badge-pause"},stopped:{label:"stopped",badgeClass:"badge-stop"},creating:{label:"creating",badgeClass:"badge-create"},error:{label:"error",badgeClass:"badge-err"}};e.s(["StatusBadge",0,function({status:e}){let r=a[e]??a.stopped;return(0,t.jsxs)(n.Badge,{className:r.badgeClass,children:[(0,t.jsx)("span",{className:"badge-dot"}),r.label]})}],86892)},30544,49604,e=>{"use strict";var t=e.i(1262),r=e.i(45971),s=e.i(54129),n=e.i(65232),a=e.i(69377),o=e.i(44344),i=e.i(9383);let l=(0,i.createServerReference)("40e101afd0c6ce5a35dffe2657ea7c5be287c85bfc",i.callServer,void 0,i.findSourceMapURL,"destroyBoxAction"),c=(0,i.createServerReference)("40f89d37df328dee460dcf7aed3ef9197b9776903f",i.callServer,void 0,i.findSourceMapURL,"pauseBoxAction"),d=(0,i.createServerReference)("601262006d296b9e0efc1c4b7e9e2fcf0899a8961c",i.callServer,void 0,i.findSourceMapURL,"renameBoxAction"),u=(0,i.createServerReference)("409a90413c39c1feed80399a4448e46bf030fc136e",i.callServer,void 0,i.findSourceMapURL,"resumeBoxAction"),x=(0,i.createServerReference)("408046aa8f68e450338d5c65f6759d6c3f685d970d",i.callServer,void 0,i.findSourceMapURL,"stopBoxAction");e.s(["BoxActions",0,function({box:e,size:i}){let m=(0,r.useRouter)(),[p,f]=(0,s.useTransition)(),b="running"===e.status,g="paused"===e.status,h="stopped"===e.status,v=e.id.startsWith("job:"),j="lg"===i,N=j?"sm":"icon-sm",y=(t,r,s)=>{t.stopPropagation(),(!s||window.confirm(s))&&f(async()=>{let t=await r(e.id);t.ok||window.alert(`Action failed: ${t.error}`),m.refresh()})};return v?(0,t.jsx)("div",{className:(0,n.cn)("flex gap-1.5",j?"":"justify-end"),children:(0,t.jsxs)(a.Button,{variant:"destructive",size:N,title:"Dismiss",disabled:p||"error"!==e.status,onClick:t=>y(t,l,`Dismiss failed box ${e.id}? This clears the failed create.`),children:[(0,t.jsx)(o.Icons.trash,{}),j?"Dismiss":null]})}):(0,t.jsxs)("div",{className:(0,n.cn)("flex gap-1.5",j?"":"justify-end"),children:[g?(0,t.jsxs)(a.Button,{variant:j?"default":"outline",size:N,title:"Resume",disabled:p,className:j?"":"hover:border-[var(--green)] hover:bg-accent hover:text-[var(--green-ink)]",onClick:e=>y(e,u),children:[(0,t.jsx)(o.Icons.play,{}),j?"Resume":null]}):(0,t.jsxs)(a.Button,{variant:"outline",size:N,disabled:p||!b,title:"Pause",className:j?"":"hover:border-[var(--amber)] hover:bg-[var(--amber-soft)] hover:text-[var(--amber)]",onClick:e=>y(e,c),children:[(0,t.jsx)(o.Icons.pause,{}),j?"Pause":null]}),(0,t.jsxs)(a.Button,{variant:"outline",size:N,disabled:p||h,title:"Stop",onClick:e=>y(e,x),children:[(0,t.jsx)(o.Icons.stop,{}),j?"Stop":null]}),(0,t.jsxs)(a.Button,{variant:"outline",size:N,disabled:p,title:"Rename",onClick:t=>{t.stopPropagation();let r=window.prompt("Rename box (label only — leave blank to reset)",e.displayName??e.task);null!==r&&f(async()=>{let t=await d(e.id,r.trim());t.ok||window.alert(`Rename failed: ${t.error}`),m.refresh()})},children:[(0,t.jsx)(o.Icons.pencil,{}),j?"Rename":null]}),(0,t.jsxs)(a.Button,{variant:"destructive",size:N,title:"Destroy",disabled:p,onClick:t=>y(t,l,`Destroy box ${e.id}? Its workspace volume is discarded. This cannot be undone.`),children:[(0,t.jsx)(o.Icons.trash,{}),j?"Destroy":null]})]})}],30544),e.s(["Select",0,function({wrapperClassName:e,className:r,children:s,...a}){return(0,t.jsxs)("span",{className:(0,n.cn)("relative inline-flex",e),children:[(0,t.jsx)("select",{className:(0,n.cn)("h-9 w-full cursor-pointer appearance-none rounded-lg border border-input bg-card py-1 pl-3 pr-9 text-[13px] shadow-sm focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",r),...a,children:s}),(0,t.jsx)("svg",{className:"pointer-events-none absolute right-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:(0,t.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}],49604)},99869,e=>{"use strict";function t(e){return e.backups.filter(e=>e.state)}e.s(["parseRestoreKey",0,function(e){let t=e.split("/");return 2===t.length&&t[0]&&t[1]?{bot:t[0],stamp:t[1]}:null},"preferredBackup",0,function(e){let r=t(e);return r.find(t=>t.stamp===e.latest)??r[0]},"readableStamp",0,function(e){let t=new Date(e.replace(/^(\d{4}-\d{2}-\d{2})T(\d{2})-(\d{2})-(\d{2})Z$/,"$1T$2:$3:$4Z"));return Number.isNaN(t.getTime())?e:t.toLocaleString()},"restorableBackups",0,t,"restoreKeyOf",0,function(e,t){return`${e}/${t}`}])},80922,e=>{"use strict";var t=e.i(1262),r=e.i(51096),s=e.i(44344);e.s(["BackLink",0,function({to:e,children:n}){return(0,t.jsxs)(r.default,{className:"mb-3.5 inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-mono text-xs text-muted-foreground hover:text-primary",href:e,children:[(0,t.jsx)(s.Icons.arrowL,{className:"size-[13px]"}),n]})}])},86691,e=>{"use strict";var t=e.i(1262),r=e.i(45971),s=e.i(33789),n=e.i(44344),a=e.i(96621),o=e.i(80922),i=e.i(22983),l=e.i(93268),c=e.i(66818),d=e.i(31758),u=e.i(1485),x=e.i(35594),m=e.i(54129),p=e.i(8536),f=e.i(99869);function b({project:e}){let[r,s]=(0,m.useState)([]),a=(0,m.useCallback)(async()=>{try{let t=await fetch(`/api/v1/projects/${encodeURIComponent(e.id)}/bots`,{credentials:"same-origin"});if(!t.ok)return void s([]);let{bots:r}=await t.json();s(r)}catch{s([])}},[e.id]);return((0,m.useEffect)(()=>{a()},[a]),0===r.length)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.SectionLabel,{children:"Bot backups"}),(0,t.jsx)(p.Card,{className:"divide-y divide-border/60 overflow-hidden",children:r.map(r=>{let s=(0,f.preferredBackup)(r)??r.backups[0],a=(0,f.restorableBackups)(r);return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,t.jsxs)("div",{className:"min-w-[180px] flex-1",children:[(0,t.jsx)("div",{className:"font-mono text-[13.5px] font-medium",children:r.bot}),(0,t.jsxs)("div",{className:"mt-0.5 text-[11.5px] text-muted-foreground",children:[r.backups.length," backup",1===r.backups.length?"":"s",s?` \xb7 newest ${(0,f.readableStamp)(s.stamp)}`:"",a.length>0?"":" · workspace only, no identity captured"]})]}),a.length>0&&s?(0,t.jsx)(l.CreateBoxButton,{project:e,variant:"outline",size:"sm",label:"Restore…",icon:n.Icons.refresh,initialRestore:(0,f.restoreKeyOf)(r.bot,s.stamp)}):(0,t.jsx)("span",{className:"text-[11.5px] text-muted-foreground",title:"These backups captured no agent state, so there is no identity to restore.",children:"Not restorable"})]},r.bot)})})]})}var g=e.i(51497);function h({projectId:e}){let[r,a]=(0,m.useState)(null),[o,i]=(0,m.useState)(!1);if((0,m.useEffect)(()=>{let t=!1;return(async()=>{try{let r=await fetch(`/api/v1/projects/${encodeURIComponent(e)}/seed`,{credentials:"same-origin"});if(!r.ok)return;let s=await r.json();t||a(s)}catch{}finally{t||i(!0)}})(),()=>{t=!0}},[e]),!o||!r||!r.custodyAvailable)return null;let l=r.seed;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.SectionLabel,{children:"Seed / custody"}),l?(0,t.jsxs)(p.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[(0,t.jsxs)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(150px,1fr))] divide-x divide-border/60",children:[(0,t.jsx)(v,{k:"Slug",v:l.slug,mono:!0}),(0,t.jsx)(v,{k:"Captured",v:l.capturedAt?(0,t.jsx)(s.Ago,{ms:Date.parse(l.capturedAt)||Date.now()}):"—"}),(0,t.jsx)(v,{k:"At commit",v:l.repoHeadSha?l.repoHeadSha.slice(0,8):"—",mono:!0}),(0,t.jsx)(v,{k:"Base branch",v:l.baseBranch??"—",mono:!0}),(0,t.jsx)(v,{k:"Secrets",v:(0,t.jsx)("span",{className:"flex items-center gap-1.5",children:l.hasEnv?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Icons.shield,{className:"size-[14px] text-[var(--green-ink)]"})," present"]}):"none"})}),(0,t.jsx)(v,{k:"Size",v:(0,g.fmtBytes)(l.totalBytes),mono:!0})]}),(0,t.jsx)("div",{children:l.entries.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[(0,t.jsx)(n.Icons.file,{className:"size-[14px] flex-none text-muted-foreground"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[13px] text-secondary-foreground",children:e.name}),(0,t.jsx)("span",{className:"font-mono text-[11px] text-muted-foreground",children:e.sha256.slice(0,10)}),(0,t.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:(0,g.fmtBytes)(e.size)}),(0,t.jsx)("span",{className:"font-mono text-[11px] text-muted-foreground",children:(0,t.jsx)(s.Ago,{ms:Date.parse(e.updatedAt)||Date.now()})})]},e.name))})]}):(0,t.jsxs)(d.EmptyBox,{children:[(0,t.jsx)("div",{children:"No seed pushed yet."}),(0,t.jsxs)("div",{className:"mt-1 text-[12.5px] text-muted-foreground",children:["Run ",(0,t.jsx)("code",{className:"font-mono",children:"agentbox hub project push"})," from the repo to register its untracked files and secrets."]})]})]})}function v({k:e,v:r,mono:s}){return(0,t.jsxs)("div",{className:"px-4.5 p-4",children:[(0,t.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:e}),(0,t.jsx)("div",{className:s?"truncate font-mono text-sm font-medium":"text-sm font-medium",children:r})]})}e.s(["default",0,function(){let{id:e}=(0,r.useParams)(),{project:m,boxesFor:p}=(0,a.useStore)(),f=m(e);if(!f)return(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8",children:[(0,t.jsx)(o.BackLink,{to:"/",children:"Dashboard"}),(0,t.jsx)(d.EmptyBox,{children:"Project not found."})]});let g=p(e),v=g.filter(e=>"running"===e.status).length,j=f.currentBranch||f.defaultBranch,N=f.originUrl?.trim()||null,y=N?/^https?:\/\//i.test(N)?N.replace(/\.git$/i,""):null:null;return(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,t.jsx)(o.BackLink,{to:"/",children:"All projects"}),(0,t.jsxs)("div",{className:"flex items-start gap-4 max-md:flex-col",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("h1",{className:"flex items-center gap-3 text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:[(0,t.jsx)("span",{className:"grid h-[26px] w-[26px] flex-none place-items-center rounded-md border border-[var(--green-line)] bg-accent text-primary",children:(0,t.jsx)(n.Icons.folder,{className:"size-[15px]"})}),f.name]}),(0,t.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:[N?y?(0,t.jsx)("a",{href:y,target:"_blank",rel:"noopener",className:"font-mono text-secondary-foreground hover:text-primary",children:N}):(0,t.jsx)("span",{className:"font-mono text-secondary-foreground",children:N}):(0,t.jsx)("span",{className:"font-mono text-secondary-foreground",children:f.repo})," ","· ",f.provider]})]}),(0,t.jsxs)("div",{className:"ml-auto flex flex-none gap-2 max-md:ml-0",children:[(0,t.jsx)(l.CreateBoxButton,{project:f}),0===g.length?(0,t.jsx)(c.DeleteProjectButton,{project:f,redirectHome:!0}):null]})]}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsxs)(x.StatGrid,{children:[(0,t.jsx)(x.Stat,{k:"Boxes",v:g.length,icon:n.Icons.box}),(0,t.jsx)(x.Stat,{k:"Running",v:v,icon:n.Icons.activity}),(0,t.jsx)(x.Stat,{k:"Provider",v:f.provider,mono:!0}),(0,t.jsx)(x.Stat,{k:"Branch",v:j||"—",mono:!0,icon:n.Icons.branch}),(0,t.jsx)(x.Stat,{k:"Created",v:(0,t.jsx)(s.Ago,{ms:f.createdAt}),mono:!0})]})}),(0,t.jsx)(h,{projectId:e}),(0,t.jsx)(b,{project:f}),(0,t.jsx)(u.SectionLabel,{children:"Boxes"}),g.length?(0,t.jsx)(i.BoxTable,{boxes:g}):(0,t.jsx)(d.EmptyBox,{children:(0,t.jsx)("div",{children:"No boxes yet."})})]})}],86691)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88451,e=>{"use strict";var r=e.i(1262),t=e.i(45971),s=e.i(54129),n=e.i(44344),a=e.i(69377),o=e.i(9383);let i=(0,o.createServerReference)("
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88451,e=>{"use strict";var r=e.i(1262),t=e.i(45971),s=e.i(54129),n=e.i(44344),a=e.i(69377),o=e.i(9383);let i=(0,o.createServerReference)("606d4f171c2399ba8b014b86401926f3be1b2ea152",o.callServer,void 0,o.findSourceMapURL,"answerApprovalAction");e.s(["ApprovalActions",0,function({id:e,url:o}){let l=(0,t.useRouter)(),[d,c]=(0,s.useTransition)(),x=r=>{c(async()=>{let t=await i(e,r);t.ok||window.alert(`Failed: ${t.error}`),l.refresh()})};return o?(0,r.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,r.jsxs)(a.Button,{variant:"outline",size:"sm",disabled:d,className:"hover:border-[var(--red-line)] hover:bg-[var(--red-soft)] hover:text-[var(--red)]",onClick:()=>x("n"),children:[(0,r.jsx)(n.Icons.x,{}),"Dismiss"]}),(0,r.jsxs)(a.Button,{size:"sm",href:o,target:"_blank",rel:"noreferrer",onClick:()=>{fetch(`/api/v1/approvals/${encodeURIComponent(e)}/answer`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({answer:"y",openedByClient:!0})}).catch(()=>void 0).finally(()=>{l.refresh()})},children:[(0,r.jsx)(n.Icons.ext,{}),"Open link"]})]}):(0,r.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,r.jsxs)(a.Button,{variant:"outline",size:"sm",disabled:d,className:"hover:border-[var(--red-line)] hover:bg-[var(--red-soft)] hover:text-[var(--red)]",onClick:()=>x("n"),children:[(0,r.jsx)(n.Icons.x,{}),"Deny"]}),(0,r.jsxs)(a.Button,{size:"sm",disabled:d,onClick:()=>x("y"),children:[(0,r.jsx)(n.Icons.check,{}),"Approve"]})]})}],88451)},8536,e=>{"use strict";var r=e.i(1262),t=e.i(65232);e.s(["Card",0,function({className:e,...s}){return(0,r.jsx)("div",{className:(0,t.cn)("rounded-xl border border-border bg-card text-card-foreground",e),...s})},"CardContent",0,function({className:e,...s}){return(0,r.jsx)("div",{className:(0,t.cn)("p-5 pt-0",e),...s})},"CardDescription",0,function({className:e,...s}){return(0,r.jsx)("div",{className:(0,t.cn)("text-[12.5px] text-muted-foreground",e),...s})},"CardHeader",0,function({className:e,...s}){return(0,r.jsx)("div",{className:(0,t.cn)("flex flex-col space-y-1 p-5",e),...s})},"CardTitle",0,function({className:e,...s}){return(0,r.jsx)("div",{className:(0,t.cn)("text-[15px] font-semibold leading-none tracking-tight",e),...s})}])},33789,51497,1485,e=>{"use strict";var r=e.i(1262),t=e.i(54129);function s(e){let r=Math.floor((Date.now()-e)/1e3);if(r<60)return r+"s ago";let t=Math.floor(r/60);if(t<60)return t+"m ago";let s=Math.floor(t/60);return s<24?s+"h ago":Math.floor(s/24)+"d ago"}e.s(["fmtAgo",0,s,"fmtBytes",0,function(e){return e<1024?e+"B":e<1048576?(e/1024).toFixed(1)+"KB":(e/1048576).toFixed(1)+"MB"}],51497),e.s(["Ago",0,function({ms:e}){let[n,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>a(!0),[]),(0,r.jsx)("span",{suppressHydrationWarning:!0,children:n?s(e):new Date(e).toLocaleDateString()})}],33789),e.s(["SectionLabel",0,function({children:e,right:t}){return(0,r.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[e,(0,r.jsx)("span",{className:"h-px flex-1 bg-border"}),t??null]})}],1485)},31758,e=>{"use strict";var r=e.i(1262),t=e.i(44344);e.s(["EmptyBox",0,function({children:e}){return(0,r.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,r.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,r.jsx)(t.Icons.box,{className:"size-5"})}),e]})}])},9383,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={callServer:function(){return a.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var n in s)Object.defineProperty(t,n,{enumerable:!0,get:s[n]});let a=e.r(57855),o=e.r(61414),i=e.r(97615)},23878,e=>{"use strict";var r=e.i(1262),t=e.i(65232);e.s(["Table",0,function({className:e,...s}){return(0,r.jsx)("table",{className:(0,t.cn)("w-full caption-bottom text-sm",e),...s})},"TableBody",0,function({className:e,...s}){return(0,r.jsx)("tbody",{className:(0,t.cn)("[&_tr:last-child]:border-0",e),...s})},"TableCell",0,function({className:e,...s}){return(0,r.jsx)("td",{className:(0,t.cn)("px-4 py-3 align-middle",e),...s})},"TableHead",0,function({className:e,...s}){return(0,r.jsx)("th",{className:(0,t.cn)("h-9 px-4 text-left align-middle font-mono text-[10.5px] font-normal uppercase tracking-[.08em] text-muted-foreground/90",e),...s})},"TableHeader",0,function({className:e,...s}){return(0,r.jsx)("thead",{className:(0,t.cn)("bg-background [&_tr]:border-b [&_tr]:border-border",e),...s})},"TableRow",0,function({className:e,...s}){return(0,r.jsx)("tr",{className:(0,t.cn)("border-b border-border/60 transition-colors hover:bg-[#fcfcfb] data-[state=selected]:bg-accent",e),...s})}])},66438,e=>{"use strict";var r=e.i(1262),t=e.i(51096),s=e.i(33789),n=e.i(44344),a=e.i(8536),o=e.i(23878),i=e.i(96621),l=e.i(31758),d=e.i(1485),c=e.i(88451);e.s(["default",0,function(){let{state:e,box:x}=(0,i.useStore)(),u=[...e.approvals].sort((e,r)=>e.createdAt-r.createdAt);return(0,r.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h1",{className:"text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:"Approvals"}),(0,r.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:["Host actions a box is waiting on — ",(0,r.jsx)("span",{className:"font-mono text-secondary-foreground",children:u.length})," ","pending. Approving unblocks the box; denying returns an error to it."]})]}),(0,r.jsx)(d.SectionLabel,{children:"Pending"}),0===u.length?(0,r.jsxs)(l.EmptyBox,{children:[(0,r.jsx)("div",{children:"No pending approvals."}),(0,r.jsx)("div",{className:"mt-1.5 font-mono text-xs text-muted-foreground",children:"Host actions (git push, file copy, downloads) appear here when a box requests one."})]}):(0,r.jsx)(a.Card,{className:"overflow-hidden",children:(0,r.jsxs)(o.Table,{children:[(0,r.jsx)(o.TableHeader,{children:(0,r.jsxs)(o.TableRow,{className:"hover:bg-transparent",children:[(0,r.jsx)(o.TableHead,{className:"w-[24%]",children:"Box"}),(0,r.jsx)(o.TableHead,{className:"w-[40%]",children:"Action"}),(0,r.jsx)(o.TableHead,{className:"max-md:hidden",children:"Requested"}),(0,r.jsx)(o.TableHead,{className:"text-right",children:"Answer"})]})}),(0,r.jsx)(o.TableBody,{children:u.map(e=>{let a=x(e.boxId);return(0,r.jsxs)(o.TableRow,{className:"hover:bg-transparent",children:[(0,r.jsxs)(o.TableCell,{children:[a?(0,r.jsx)(t.default,{className:"text-[13.5px] font-medium hover:text-[var(--green-ink)]",href:"/boxes/"+a.id,children:a.task}):(0,r.jsx)("div",{className:"text-[13.5px] font-medium",children:e.boxId}),(0,r.jsx)("div",{className:"mt-0.5 font-mono text-[11px] text-[#a4a9b0]",children:a?a.repo:e.boxId})]}),(0,r.jsx)(o.TableCell,{children:(0,r.jsxs)("div",{className:"flex items-start gap-1.5 text-[13px]",children:[(0,r.jsx)(n.Icons.shield,{className:"mt-0.5 size-3.5 flex-none text-muted-foreground"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"truncate font-mono text-secondary-foreground",children:e.command??e.message}),e.detail?(0,r.jsx)("div",{className:"mt-0.5 truncate text-[11.5px] text-muted-foreground",children:e.detail}):null,e.cwd?(0,r.jsx)("div",{className:"mt-0.5 truncate font-mono text-[11px] text-[#a4a9b0]",children:e.cwd}):null]})]})}),(0,r.jsx)(o.TableCell,{className:"max-md:hidden",children:(0,r.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:(0,r.jsx)(s.Ago,{ms:e.createdAt})})}),(0,r.jsx)(o.TableCell,{className:"text-right",children:(0,r.jsx)(c.ApprovalActions,{id:e.id,url:e.url})})]},e.id)})})]})})]})}])}]);
|