@selvajs/selva 4.6.21-beta.0 → 4.6.21-beta.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/build/client/_app/immutable/chunks/{zOoVG74V.js → B5OJUbsp.js} +1 -1
- package/build/client/_app/immutable/chunks/B5OJUbsp.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5OJUbsp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CYwmPsLn.js → BL2t7cAH.js} +1 -1
- package/build/client/_app/immutable/chunks/BL2t7cAH.js.br +0 -0
- package/build/client/_app/immutable/chunks/BL2t7cAH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{I2TM0do6.js → BUSu7k-8.js} +1 -1
- package/build/client/_app/immutable/chunks/BUSu7k-8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUSu7k-8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{COYKudi0.js → CQlm8KiO.js} +1 -1
- package/build/client/_app/immutable/chunks/CQlm8KiO.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQlm8KiO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BRbaYEL5.js → CaWnsi86.js} +1 -1
- package/build/client/_app/immutable/chunks/CaWnsi86.js.br +0 -0
- package/build/client/_app/immutable/chunks/CaWnsi86.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CbzchbHa.js +2 -0
- package/build/client/_app/immutable/chunks/CbzchbHa.js.br +0 -0
- package/build/client/_app/immutable/chunks/CbzchbHa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DAFm-rT0.js +2 -0
- package/build/client/_app/immutable/chunks/DAFm-rT0.js.br +0 -0
- package/build/client/_app/immutable/chunks/DAFm-rT0.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.CRaXT8K-.js → app.CUiJWB53.js} +2 -2
- package/build/client/_app/immutable/entry/app.CUiJWB53.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CUiJWB53.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.B6frOPSZ.js +1 -0
- package/build/client/_app/immutable/entry/start.B6frOPSZ.js.br +2 -0
- package/build/client/_app/immutable/entry/start.B6frOPSZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.DPMP9Es7.js → 1.jBltffEQ.js} +1 -1
- package/build/client/_app/immutable/nodes/1.jBltffEQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.jBltffEQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.O0oWpOpl.js +3 -0
- package/build/client/_app/immutable/nodes/10.O0oWpOpl.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.O0oWpOpl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.BxhrIetk.js → 11.fnbbU5fQ.js} +1 -1
- package/build/client/_app/immutable/nodes/11.fnbbU5fQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.fnbbU5fQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.bzJyaCKt.js → 13.CokPGn13.js} +1 -1
- package/build/client/_app/immutable/nodes/13.CokPGn13.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CokPGn13.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.XVGDZn7V.js → 14.BOBvQoRO.js} +1 -1
- package/build/client/_app/immutable/nodes/14.BOBvQoRO.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BOBvQoRO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.Ds7J6ry6.js → 15.rVnmmhFk.js} +1 -1
- package/build/client/_app/immutable/nodes/15.rVnmmhFk.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.rVnmmhFk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.C6HKDHv3.js → 16.CT8CyQj6.js} +1 -1
- package/build/client/_app/immutable/nodes/16.CT8CyQj6.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.CT8CyQj6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.BxjH0QZF.js → 17.D4no7cGI.js} +1 -1
- package/build/client/_app/immutable/nodes/17.D4no7cGI.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.D4no7cGI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.BU2Lw57i.js → 19.BLra_dlM.js} +1 -1
- package/build/client/_app/immutable/nodes/19.BLra_dlM.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BLra_dlM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.D9dN-poH.js → 2.MyCVVapl.js} +1 -1
- package/build/client/_app/immutable/nodes/2.MyCVVapl.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.MyCVVapl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.uQnvI_Uv.js +5414 -0
- package/build/client/_app/immutable/nodes/20.uQnvI_Uv.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.uQnvI_Uv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.qpo7v5r_.js → 21.CE1lAxCo.js} +1 -1
- package/build/client/_app/immutable/nodes/21.CE1lAxCo.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.CE1lAxCo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.CdjZcdrJ.js → 23.DNa5Wj-V.js} +1 -1
- package/build/client/_app/immutable/nodes/23.DNa5Wj-V.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.DNa5Wj-V.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.BSJH1lHT.js → 24.8w-n98Zt.js} +1 -1
- package/build/client/_app/immutable/nodes/24.8w-n98Zt.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.8w-n98Zt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{27.BKQucFUA.js → 27.CTvZ6KxX.js} +1 -1
- package/build/client/_app/immutable/nodes/27.CTvZ6KxX.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.CTvZ6KxX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.BleEhT0J.js → 28.n4L9k3Rh.js} +1 -1
- package/build/client/_app/immutable/nodes/28.n4L9k3Rh.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.n4L9k3Rh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{29.fAbDo5Et.js → 29.B90ZvGzu.js} +1 -1
- package/build/client/_app/immutable/nodes/29.B90ZvGzu.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.B90ZvGzu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.XubMG-dn.js → 3.C49Pdolk.js} +1 -1
- package/build/client/_app/immutable/nodes/3.C49Pdolk.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C49Pdolk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{30.DRrc_hLr.js → 30.CGkD_uX2.js} +1 -1
- package/build/client/_app/immutable/nodes/30.CGkD_uX2.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.CGkD_uX2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.C77UuNpH.js → 5.BD_FrnS6.js} +1 -1
- package/build/client/_app/immutable/nodes/5.BD_FrnS6.js.br +1 -0
- package/build/client/_app/immutable/nodes/5.BD_FrnS6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.B23L8hA_.js → 6.FHxxXtNY.js} +1 -1
- package/build/client/_app/immutable/nodes/6.FHxxXtNY.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.FHxxXtNY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.BZj0oAjH.js → 7.rgqW6l_z.js} +1 -1
- package/build/client/_app/immutable/nodes/7.rgqW6l_z.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.rgqW6l_z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.CGy_fUC4.js → 8.CMWVVdHD.js} +1 -1
- package/build/client/_app/immutable/nodes/8.CMWVVdHD.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CMWVVdHD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.BpEiOuN0.js → 9.B1DVTVqB.js} +1 -1
- package/build/client/_app/immutable/nodes/9.B1DVTVqB.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.B1DVTVqB.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/{access.server.js-D99g5hZd.js → access.server.js-DmuVt13u.js} +65 -50
- package/build/server/chunks/chunks/access.server.js-DmuVt13u.js.map +1 -0
- package/build/server/chunks/chunks/{admin-auth.server.js-hCWF6Pqg.js → admin-auth.server.js-BAXmH56n.js} +52 -31
- package/build/server/chunks/chunks/admin-auth.server.js-BAXmH56n.js.map +1 -0
- package/build/server/chunks/chunks/{api-errors.js-yRMzxqNi.js → api-errors.js-CwTBBHWD.js} +3 -3
- package/build/server/chunks/chunks/{api-errors.js-yRMzxqNi.js.map → api-errors.js-CwTBBHWD.js.map} +1 -1
- package/build/server/chunks/chunks/{auth-bootstrap.server.js-BpQr_I_2.js → auth-bootstrap.server.js-COYZnscW.js} +2 -2
- package/build/server/chunks/chunks/{auth-bootstrap.server.js-BpQr_I_2.js.map → auth-bootstrap.server.js-COYZnscW.js.map} +1 -1
- package/build/server/chunks/chunks/{bootHealth.server.js-CxNJCaGf.js → bootHealth.server.js-CsYXGGM5.js} +27 -4
- package/build/server/chunks/chunks/bootHealth.server.js-CsYXGGM5.js.map +1 -0
- package/build/server/chunks/chunks/{clientCache.server.js-nl8vnalG.js → clientCache.server.js-CDbNbNdZ.js} +11 -4
- package/build/server/chunks/chunks/clientCache.server.js-CDbNbNdZ.js.map +1 -0
- package/build/server/chunks/chunks/{computeLimits.js-C5c7HPGJ.js → computeLimits.js-DmiFfoef.js} +4 -3
- package/build/server/chunks/chunks/computeLimits.js-DmiFfoef.js.map +1 -0
- package/build/server/chunks/chunks/{evictChangedServers.js-AKiDolw-.js → evictChangedServers.js-DIMjsyC2.js} +2 -2
- package/build/server/chunks/chunks/{evictChangedServers.js-AKiDolw-.js.map → evictChangedServers.js-DIMjsyC2.js.map} +1 -1
- package/build/server/chunks/chunks/{internal2.js-CNimHS8p.js → internal2.js-CuWB6KAD.js} +3 -3
- package/build/server/chunks/chunks/{internal2.js-CNimHS8p.js.map → internal2.js-CuWB6KAD.js.map} +1 -1
- package/build/server/chunks/chunks/{package.js-CGjshiZJ.js → package.js-DWOK6LMe.js} +2 -2
- package/build/server/chunks/chunks/{package.js-CGjshiZJ.js.map → package.js-DWOK6LMe.js.map} +1 -1
- package/build/server/chunks/chunks/{permissions.server.js-B9lpLFEj.js → permissions.server.js-DyHNgP29.js} +2 -2
- package/build/server/chunks/chunks/{permissions.server.js-B9lpLFEj.js.map → permissions.server.js-DyHNgP29.js.map} +1 -1
- package/build/server/chunks/chunks/{providers.server.js-D0hpk-aq.js → providers.server.js-BKhwGvoh.js} +71 -22
- package/build/server/chunks/chunks/providers.server.js-BKhwGvoh.js.map +1 -0
- package/build/server/chunks/chunks/redirect.js-1CZ30qn2.js +9 -0
- package/build/server/chunks/chunks/redirect.js-1CZ30qn2.js.map +1 -0
- package/build/server/chunks/chunks/{resolve.server.js-CtUK_9yC.js → resolve.server.js-BQY6Vw9q.js} +3 -3
- package/build/server/chunks/chunks/{resolve.server.js-CtUK_9yC.js.map → resolve.server.js-BQY6Vw9q.js.map} +1 -1
- package/build/server/chunks/chunks/selfUpdate.server.js-CXejyqIT.js +109 -0
- package/build/server/chunks/chunks/selfUpdate.server.js-CXejyqIT.js.map +1 -0
- package/build/server/chunks/chunks/token-codec.js-1RPNe2RW.js +32 -0
- package/build/server/chunks/chunks/token-codec.js-1RPNe2RW.js.map +1 -0
- package/build/server/chunks/chunks/{token.server.js-q3fv9Fqo.js → token.server.js-DbTfFk9r.js} +10 -6
- package/build/server/chunks/chunks/token.server.js-DbTfFk9r.js.map +1 -0
- package/build/server/chunks/chunks/{token2.server.js-Cqw1dJj-.js → token2.server.js-Cjb4XaWC.js} +10 -6
- package/build/server/chunks/chunks/token2.server.js-Cjb4XaWC.js.map +1 -0
- package/build/server/chunks/chunks/update-outcome.js-mUyfVCnt.js +99 -0
- package/build/server/chunks/chunks/update-outcome.js-mUyfVCnt.js.map +1 -0
- package/build/server/chunks/chunks/{utils4.js-BRotGwxx.js → utils4.js-C-poIiFQ.js} +2 -2
- package/build/server/chunks/chunks/{utils4.js-BRotGwxx.js.map → utils4.js-C-poIiFQ.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/compute/{_server.ts.js-9SFgd7Dh.js → _server.ts.js-FEaDWqQ-.js} +8 -8
- package/build/server/chunks/entries/endpoints/admin/api/compute/{_server.ts.js-9SFgd7Dh.js.map → _server.ts.js-FEaDWqQ-.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/compute/actions/{_server.ts.js-nqqXR4_e.js → _server.ts.js-wswn41ri.js} +5 -5
- package/build/server/chunks/entries/endpoints/admin/api/compute/actions/{_server.ts.js-nqqXR4_e.js.map → _server.ts.js-wswn41ri.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/compute/status/{_server.ts.js-a2K9SJfi.js → _server.ts.js-cfwFu61A.js} +5 -5
- package/build/server/chunks/entries/endpoints/admin/api/compute/status/{_server.ts.js-a2K9SJfi.js.map → _server.ts.js-cfwFu61A.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/orgs/_id_/{_server.ts.js-BAhINzFq.js → _server.ts.js-r_akFPa5.js} +5 -5
- package/build/server/chunks/entries/endpoints/admin/api/orgs/_id_/{_server.ts.js-BAhINzFq.js.map → _server.ts.js-r_akFPa5.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/orgs/_id_/assets/_kind_/{_server.ts.js-DYD3g-28.js → _server.ts.js-Dz9PdbxZ.js} +6 -6
- package/build/server/chunks/entries/endpoints/admin/api/orgs/_id_/assets/_kind_/{_server.ts.js-DYD3g-28.js.map → _server.ts.js-Dz9PdbxZ.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/orgs/{_server.ts.js-PhwONmey.js → _server.ts.js-B2mbaw2T.js} +5 -5
- package/build/server/chunks/entries/endpoints/admin/api/orgs/{_server.ts.js-PhwONmey.js.map → _server.ts.js-B2mbaw2T.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/{_server.ts.js-DVXfLqfN.js → _server.ts.js-VDXjaCes.js} +5 -5
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/{_server.ts.js-DVXfLqfN.js.map → _server.ts.js-VDXjaCes.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/grants/_grantId_/{_server.ts.js-C3Gcr9vO.js → _server.ts.js-Dsm-skvk.js} +5 -5
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/grants/_grantId_/{_server.ts.js-C3Gcr9vO.js.map → _server.ts.js-Dsm-skvk.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/grants/{_server.ts.js-8rwkvJsL.js → _server.ts.js-D84Sx6Yr.js} +5 -5
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/grants/{_server.ts.js-8rwkvJsL.js.map → _server.ts.js-D84Sx6Yr.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/projects/{_server.ts.js-BTgoWufU.js → _server.ts.js-CL7CRFYL.js} +5 -5
- package/build/server/chunks/entries/endpoints/admin/api/projects/{_server.ts.js-BTgoWufU.js.map → _server.ts.js-CL7CRFYL.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/system/health/{_server.ts.js-CQdxoaBS.js → _server.ts.js-C4gB5liV.js} +34 -5
- package/build/server/chunks/entries/endpoints/admin/api/system/health/_server.ts.js-C4gB5liV.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/system/throughput/{_server.ts.js-DFacQgP7.js → _server.ts.js-Dyzp1Ed5.js} +5 -5
- package/build/server/chunks/entries/endpoints/admin/api/system/throughput/{_server.ts.js-DFacQgP7.js.map → _server.ts.js-Dyzp1Ed5.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/system/update/{_server.ts.js-y3dgQz-R.js → _server.ts.js-D_iGos7D.js} +43 -30
- package/build/server/chunks/entries/endpoints/admin/api/system/update/_server.ts.js-D_iGos7D.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/users/_id_/{_server.ts.js-BEGaGEwg.js → _server.ts.js-BZ9V4O5o.js} +6 -6
- package/build/server/chunks/entries/endpoints/admin/api/users/_id_/{_server.ts.js-BEGaGEwg.js.map → _server.ts.js-BZ9V4O5o.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/users/_id_/disable/{_server.ts.js-CGwcR-7k.js → _server.ts.js-mHiVbBvJ.js} +5 -5
- package/build/server/chunks/entries/endpoints/admin/api/users/_id_/disable/{_server.ts.js-CGwcR-7k.js.map → _server.ts.js-mHiVbBvJ.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/users/{_server.ts.js-D-z-Kl_c.js → _server.ts.js-BSaEm6NT.js} +6 -6
- package/build/server/chunks/entries/endpoints/admin/api/users/{_server.ts.js-D-z-Kl_c.js.map → _server.ts.js-BSaEm6NT.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/compute/{_server.ts.js-DkyT3FO6.js → _server.ts.js-D4bNHN4G.js} +23 -39
- package/build/server/chunks/entries/endpoints/api/compute/_server.ts.js-D4bNHN4G.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/compute/schema/{_server.ts.js-BmYC9zZb.js → _server.ts.js-B7eQrn5z.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/compute/schema/{_server.ts.js-BmYC9zZb.js.map → _server.ts.js-B7eQrn5z.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/{_server.ts.js--cRkjXHi.js → _server.ts.js-Cz3IeQFv.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/{_server.ts.js--cRkjXHi.js.map → _server.ts.js-Cz3IeQFv.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/image/_filename_/{_server.ts.js-Dz0exqZ1.js → _server.ts.js-DXHMLHCZ.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/image/_filename_/{_server.ts.js-Dz0exqZ1.js.map → _server.ts.js-DXHMLHCZ.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/image/{_server.ts.js-CgM8FSl0.js → _server.ts.js-DDFALbrW.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/image/{_server.ts.js-CgM8FSl0.js.map → _server.ts.js-DDFALbrW.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/publish/{_server.ts.js-BQX0WanC.js → _server.ts.js-BLFkRWdR.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/publish/{_server.ts.js-BQX0WanC.js.map → _server.ts.js-BLFkRWdR.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/share-links/_linkId_/{_server.ts.js-BsV3i0Cq.js → _server.ts.js-DNn2RLbg.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/share-links/_linkId_/{_server.ts.js-BsV3i0Cq.js.map → _server.ts.js-DNn2RLbg.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/share-links/{_server.ts.js-DWFprR5Z.js → _server.ts.js-C1kcEgFH.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/share-links/{_server.ts.js-DWFprR5Z.js.map → _server.ts.js-C1kcEgFH.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/versions/{_server.ts.js-DA3K2FgH.js → _server.ts.js-QtHon7Wj.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/versions/{_server.ts.js-DA3K2FgH.js.map → _server.ts.js-QtHon7Wj.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/versions/_versionId_/{_server.ts.js-SHjs_zm9.js → _server.ts.js-B-BIRyeB.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/versions/_versionId_/{_server.ts.js-SHjs_zm9.js.map → _server.ts.js-B-BIRyeB.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/definitions/{_server.ts.js-ycJ8puIN.js → _server.ts.js-d85ctZ0O.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/definitions/{_server.ts.js-ycJ8puIN.js.map → _server.ts.js-d85ctZ0O.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/diag/throughput/{_server.ts.js-BdF3kn__.js → _server.ts.js-6l-xiYHL.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/diag/throughput/{_server.ts.js-BdF3kn__.js.map → _server.ts.js-6l-xiYHL.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/files/_...path_/{_server.ts.js-C26jiO43.js → _server.ts.js-BtxES8ti.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/files/_...path_/{_server.ts.js-C26jiO43.js.map → _server.ts.js-BtxES8ti.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-CoRl_nbA.js → _server.ts.js-C_3MjeSe.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-CoRl_nbA.js.map → _server.ts.js-C_3MjeSe.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/invites/_id_/{_server.ts.js-CvAeI7gV.js → _server.ts.js-ySV5afMZ.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/invites/_id_/{_server.ts.js-CvAeI7gV.js.map → _server.ts.js-ySV5afMZ.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/invites/{_server.ts.js-Cd0V4sta.js → _server.ts.js-DqwKI0zG.js} +7 -6
- package/build/server/chunks/entries/endpoints/api/invites/{_server.ts.js-Cd0V4sta.js.map → _server.ts.js-DqwKI0zG.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/me/starred/_guid_/{_server.ts.js-BThetmba.js → _server.ts.js-CwA4cn3b.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/me/starred/_guid_/{_server.ts.js-BThetmba.js.map → _server.ts.js-CwA4cn3b.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/org/compute/{_server.ts.js-B4lGohx2.js → _server.ts.js-BJLD9Sdd.js} +8 -8
- package/build/server/chunks/entries/endpoints/api/org/compute/{_server.ts.js-B4lGohx2.js.map → _server.ts.js-BJLD9Sdd.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/orgs/_orgId_/members/_userId_/{_server.ts.js-BcW-ZH-q.js → _server.ts.js-CmEy9_xs.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/orgs/_orgId_/members/_userId_/{_server.ts.js-BcW-ZH-q.js.map → _server.ts.js-CmEy9_xs.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/projects/_id_/{_server.ts.js-bIB33ABF.js → _server.ts.js-BsmaIO4W.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/{_server.ts.js-bIB33ABF.js.map → _server.ts.js-BsmaIO4W.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/projects/_id_/members/{_server.ts.js-B1AwpUGi.js → _server.ts.js-BYNfJBN-.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/members/{_server.ts.js-B1AwpUGi.js.map → _server.ts.js-BYNfJBN-.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/projects/_id_/members/_userId_/{_server.ts.js-DMl495J4.js → _server.ts.js-09yy-8Do.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/members/_userId_/{_server.ts.js-DMl495J4.js.map → _server.ts.js-09yy-8Do.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/projects/_id_/reclaim/{_server.ts.js-DFJbS6RF.js → _server.ts.js-BPOOqdIh.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/reclaim/{_server.ts.js-DFJbS6RF.js.map → _server.ts.js-BPOOqdIh.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/api/projects/{_server.ts.js-Gcc5eHXJ.js → _server.ts.js-CEtV1j4c.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/{_server.ts.js-Gcc5eHXJ.js.map → _server.ts.js-CEtV1j4c.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/auth/email/callback/{_server.ts.js-B7kvAKyV.js → _server.ts.js-DCZuEtwq.js} +7 -6
- package/build/server/chunks/entries/endpoints/auth/email/callback/_server.ts.js-DCZuEtwq.js.map +1 -0
- package/build/server/chunks/entries/endpoints/auth/supabase/callback/{_server.ts.js-3yXXN2SO.js → _server.ts.js-v1m8UM1y.js} +7 -6
- package/build/server/chunks/entries/endpoints/auth/supabase/callback/_server.ts.js-v1m8UM1y.js.map +1 -0
- package/build/server/chunks/entries/endpoints/auth/supabase/start/{_server.ts.js-1z1P1Ihi.js → _server.ts.js-apoe4XPr.js} +4 -4
- package/build/server/chunks/entries/endpoints/auth/supabase/start/{_server.ts.js-1z1P1Ihi.js.map → _server.ts.js-apoe4XPr.js.map} +1 -1
- package/build/server/chunks/entries/{hooks.server.js-OUXv4_qA.js → hooks.server.js-C-BdJUTh.js} +83 -39
- package/build/server/chunks/entries/hooks.server.js-C-BdJUTh.js.map +1 -0
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-Cu7ejVMb.js → _layout.server.ts.js-CY-hyeA_.js} +2 -2
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-Cu7ejVMb.js.map → _layout.server.ts.js-CY-hyeA_.js.map} +1 -1
- package/build/server/chunks/entries/pages/accept-invite/{_page.server.ts.js-koO2loGE.js → _page.server.ts.js-CuniNvYP.js} +4 -4
- package/build/server/chunks/entries/pages/accept-invite/{_page.server.ts.js-koO2loGE.js.map → _page.server.ts.js-CuniNvYP.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/{_layout.server.ts.js-BcS7EPWJ.js → _layout.server.ts.js-4s9aJl1c.js} +3 -3
- package/build/server/chunks/entries/pages/admin/{_layout.server.ts.js-BcS7EPWJ.js.map → _layout.server.ts.js-4s9aJl1c.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/{_page.server.ts.js-ColpdHsj.js → _page.server.ts.js-BtAIWBYS.js} +3 -3
- package/build/server/chunks/entries/pages/admin/{_page.server.ts.js-ColpdHsj.js.map → _page.server.ts.js-BtAIWBYS.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/audit/{_page.server.ts.js-pm9fJjcH.js → _page.server.ts.js-tgpVuQl0.js} +13 -4
- package/build/server/chunks/entries/pages/admin/audit/_page.server.ts.js-tgpVuQl0.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/audit/{_page.svelte.js-smQE9KlB.js → _page.svelte.js-B3TE0-_a.js} +6 -2
- package/build/server/chunks/entries/pages/admin/audit/_page.svelte.js-B3TE0-_a.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/compute/{_page.server.ts.js-btPxjqx4.js → _page.server.ts.js-BnV3LQ7f.js} +4 -4
- package/build/server/chunks/entries/pages/admin/compute/{_page.server.ts.js-btPxjqx4.js.map → _page.server.ts.js-BnV3LQ7f.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/organizations/{_page.server.ts.js-CQSWGW0Y.js → _page.server.ts.js-IAnAvNNC.js} +2 -2
- package/build/server/chunks/entries/pages/admin/organizations/{_page.server.ts.js-CQSWGW0Y.js.map → _page.server.ts.js-IAnAvNNC.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/projects/_id_/{_page.server.ts.js-DWObSxSO.js → _page.server.ts.js-Dh0q5yDX.js} +2 -2
- package/build/server/chunks/entries/pages/admin/projects/_id_/{_page.server.ts.js-DWObSxSO.js.map → _page.server.ts.js-Dh0q5yDX.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/projects/{_page.server.ts.js-BSYX7hSD.js → _page.server.ts.js-CCt13Pnv.js} +2 -2
- package/build/server/chunks/entries/pages/admin/projects/{_page.server.ts.js-BSYX7hSD.js.map → _page.server.ts.js-CCt13Pnv.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/system/{_page.server.ts.js-DFA57irm.js → _page.server.ts.js-7Oom2yRl.js} +5 -5
- package/build/server/chunks/entries/pages/admin/system/{_page.server.ts.js-DFA57irm.js.map → _page.server.ts.js-7Oom2yRl.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/system/{_page.svelte.js-D4Z-BGD2.js → _page.svelte.js-CqNLFuOZ.js} +2 -97
- package/build/server/chunks/entries/pages/admin/system/_page.svelte.js-CqNLFuOZ.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/users/{_page.server.ts.js-B0s6jSPs.js → _page.server.ts.js-D1-DYbHV.js} +3 -3
- package/build/server/chunks/entries/pages/admin/users/{_page.server.ts.js-B0s6jSPs.js.map → _page.server.ts.js-D1-DYbHV.js.map} +1 -1
- package/build/server/chunks/entries/pages/auth/email/start/{_page.server.ts.js-F8fXU2YV.js → _page.server.ts.js-DZJTtC7V.js} +4 -3
- package/build/server/chunks/entries/pages/auth/email/start/_page.server.ts.js-DZJTtC7V.js.map +1 -0
- package/build/server/chunks/entries/pages/library/_guid_/{_page.server.ts.js-BXXiZbrJ.js → _page.server.ts.js-D6tGv49z.js} +8 -8
- package/build/server/chunks/entries/pages/library/_guid_/{_page.server.ts.js-BXXiZbrJ.js.map → _page.server.ts.js-D6tGv49z.js.map} +1 -1
- package/build/server/chunks/entries/pages/library/{_page.server.ts.js-CNsQMZl_.js → _page.server.ts.js-DQ_O3EH6.js} +3 -3
- package/build/server/chunks/entries/pages/library/{_page.server.ts.js-CNsQMZl_.js.map → _page.server.ts.js-DQ_O3EH6.js.map} +1 -1
- package/build/server/chunks/entries/pages/login/{_page.server.ts.js-DLtWh9lt.js → _page.server.ts.js-CfWlJ2qm.js} +4 -3
- package/build/server/chunks/entries/pages/login/_page.server.ts.js-CfWlJ2qm.js.map +1 -0
- package/build/server/chunks/entries/pages/logout/{_page.server.ts.js-DbaORCjB.js → _page.server.ts.js-6QjYdOkb.js} +2 -2
- package/build/server/chunks/entries/pages/logout/{_page.server.ts.js-DbaORCjB.js.map → _page.server.ts.js-6QjYdOkb.js.map} +1 -1
- package/build/server/chunks/entries/pages/projects/{_page.server.ts.js-BPAfS2yX.js → _page.server.ts.js-CdAFvyNP.js} +4 -4
- package/build/server/chunks/entries/pages/projects/{_page.server.ts.js-BPAfS2yX.js.map → _page.server.ts.js-CdAFvyNP.js.map} +1 -1
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DmwzD-qo.js → _page.server.ts.js-CZGn9bXh.js} +4 -4
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DmwzD-qo.js.map → _page.server.ts.js-CZGn9bXh.js.map} +1 -1
- package/build/server/chunks/entries/pages/team/{_layout.server.ts.js-Bm1MwrYZ.js → _layout.server.ts.js-C9c2p2gX.js} +2 -2
- package/build/server/chunks/entries/pages/team/{_layout.server.ts.js-Bm1MwrYZ.js.map → _layout.server.ts.js-C9c2p2gX.js.map} +1 -1
- package/build/server/chunks/entries/pages/team/{_page.server.ts.js-DjFIDiK1.js → _page.server.ts.js-tDzOMK37.js} +2 -2
- package/build/server/chunks/entries/pages/team/{_page.server.ts.js-DjFIDiK1.js.map → _page.server.ts.js-tDzOMK37.js.map} +1 -1
- package/build/server/chunks/entries/pages/team/compute/{_page.server.ts.js-B331KcmA.js → _page.server.ts.js-9Vv7GLJL.js} +3 -3
- package/build/server/chunks/entries/pages/team/compute/{_page.server.ts.js-B331KcmA.js.map → _page.server.ts.js-9Vv7GLJL.js.map} +1 -1
- package/build/server/chunks/entries/pages/team/members/{_page.server.ts.js-lSFTK3rq.js → _page.server.ts.js-BU9mkUI0.js} +2 -2
- package/build/server/chunks/entries/pages/team/members/{_page.server.ts.js-lSFTK3rq.js.map → _page.server.ts.js-BU9mkUI0.js.map} +1 -1
- package/build/server/chunks/entries/pages/team/projects/{_page.server.ts.js-CFZGG_Ci.js → _page.server.ts.js-CFnMzpDm.js} +2 -2
- package/build/server/chunks/entries/pages/team/projects/{_page.server.ts.js-CFZGG_Ci.js.map → _page.server.ts.js-CFnMzpDm.js.map} +1 -1
- package/build/server/chunks/entries/pages/team/reclaim/{_page.server.ts.js-AFrlbBl8.js → _page.server.ts.js-BhQpuT-q.js} +2 -2
- package/build/server/chunks/entries/pages/team/reclaim/{_page.server.ts.js-AFrlbBl8.js.map → _page.server.ts.js-BhQpuT-q.js.map} +1 -1
- package/build/server/chunks/entries/pages/team/settings/{_page.server.ts.js-BbKtggo9.js → _page.server.ts.js-gJimj_Lt.js} +2 -2
- package/build/server/chunks/entries/pages/team/settings/{_page.server.ts.js-BbKtggo9.js.map → _page.server.ts.js-gJimj_Lt.js.map} +1 -1
- package/build/server/chunks/entries/pages/team/shares/{_page.server.ts.js-B0XsHyzb.js → _page.server.ts.js-DQ0dB1Gy.js} +2 -2
- package/build/server/chunks/entries/pages/team/shares/{_page.server.ts.js-B0XsHyzb.js.map → _page.server.ts.js-DQ0dB1Gy.js.map} +1 -1
- package/build/server/chunks/{handler-BVoIPaUa.js → handler-BW9dXcm2.js} +3 -3
- package/build/server/chunks/{handler-BVoIPaUa.js.map → handler-BW9dXcm2.js.map} +1 -1
- package/build/server/chunks/{index.js-hj4o2h8q.js → index.js-NG24ufZ3.js} +2 -2
- package/build/server/chunks/{index.js-hj4o2h8q.js.map → index.js-NG24ufZ3.js.map} +1 -1
- package/build/server/chunks/{manifest.js-BIVs9dfJ.js → manifest.js-DPk_wfUB.js} +76 -76
- package/build/server/chunks/{manifest.js-BIVs9dfJ.js.map → manifest.js-DPk_wfUB.js.map} +1 -1
- package/build/server/chunks/nodes/{0.js-OxxVvycM.js → 0.js-AEvxmHpa.js} +3 -3
- package/build/server/chunks/nodes/{0.js-OxxVvycM.js.map → 0.js-AEvxmHpa.js.map} +1 -1
- package/build/server/chunks/nodes/{1.js-Bs6uvYbc.js → 1.js-DVxssv7m.js} +2 -2
- package/build/server/chunks/nodes/{1.js-Bs6uvYbc.js.map → 1.js-DVxssv7m.js.map} +1 -1
- package/build/server/chunks/nodes/{10.js-CvIgMW7D.js → 10.js-ZUrAv4Jp.js} +8 -8
- package/build/server/chunks/nodes/{10.js-CvIgMW7D.js.map → 10.js-ZUrAv4Jp.js.map} +1 -1
- package/build/server/chunks/nodes/{11.js-CnBjS7-t.js → 11.js-DGEK4jP8.js} +7 -7
- package/build/server/chunks/nodes/{11.js-CnBjS7-t.js.map → 11.js-DGEK4jP8.js.map} +1 -1
- package/build/server/chunks/nodes/{12.js-Dq_XopIA.js → 12.js-B-AKsTNE.js} +3 -3
- package/build/server/chunks/nodes/{12.js-Dq_XopIA.js.map → 12.js-B-AKsTNE.js.map} +1 -1
- package/build/server/chunks/nodes/{13.js-CqZCtg80.js → 13.js-B_AIg2fa.js} +4 -4
- package/build/server/chunks/nodes/{13.js-CqZCtg80.js.map → 13.js-B_AIg2fa.js.map} +1 -1
- package/build/server/chunks/nodes/{14.js-OvULgcZx.js → 14.js-Dg6onpdg.js} +4 -4
- package/build/server/chunks/nodes/{14.js-OvULgcZx.js.map → 14.js-Dg6onpdg.js.map} +1 -1
- package/build/server/chunks/nodes/{15.js-3rOev7kG.js → 15.js-B9F085rR.js} +10 -10
- package/build/server/chunks/nodes/{15.js-3rOev7kG.js.map → 15.js-B9F085rR.js.map} +1 -1
- package/build/server/chunks/nodes/{16.js-DY4bmQK_.js → 16.js-Du_o5LAN.js} +7 -7
- package/build/server/chunks/nodes/{16.js-DY4bmQK_.js.map → 16.js-Du_o5LAN.js.map} +1 -1
- package/build/server/chunks/nodes/{17.js-DzcgsMqq.js → 17.js-C7IvrMvq.js} +2 -2
- package/build/server/chunks/nodes/{17.js-DzcgsMqq.js.map → 17.js-C7IvrMvq.js.map} +1 -1
- package/build/server/chunks/nodes/{18.js-C3GcE50R.js → 18.js-Bgsp3ae8.js} +5 -4
- package/build/server/chunks/nodes/{18.js-C3GcE50R.js.map → 18.js-Bgsp3ae8.js.map} +1 -1
- package/build/server/chunks/nodes/{19.js-4ei3NRJW.js → 19.js-D9cLVxrT.js} +7 -7
- package/build/server/chunks/nodes/{19.js-4ei3NRJW.js.map → 19.js-D9cLVxrT.js.map} +1 -1
- package/build/server/chunks/nodes/{2.js-BhhMlQQP.js → 2.js-DmypU6Ik.js} +7 -7
- package/build/server/chunks/nodes/{2.js-BhhMlQQP.js.map → 2.js-DmypU6Ik.js.map} +1 -1
- package/build/server/chunks/nodes/{20.js-BQZue73m.js → 20.js-DFb32d_g.js} +12 -11
- package/build/server/chunks/nodes/{20.js-BQZue73m.js.map → 20.js-DFb32d_g.js.map} +1 -1
- package/build/server/chunks/nodes/{21.js-BAkAIvfV.js → 21.js-CLlkXuYa.js} +6 -5
- package/build/server/chunks/nodes/{21.js-BAkAIvfV.js.map → 21.js-CLlkXuYa.js.map} +1 -1
- package/build/server/chunks/nodes/{22.js-d354Ho4z.js → 22.js-CHUnyC-K.js} +3 -3
- package/build/server/chunks/nodes/{22.js-d354Ho4z.js.map → 22.js-CHUnyC-K.js.map} +1 -1
- package/build/server/chunks/nodes/{23.js-BMNUZekw.js → 23.js-DVi_MOBe.js} +7 -7
- package/build/server/chunks/nodes/{23.js-BMNUZekw.js.map → 23.js-DVi_MOBe.js.map} +1 -1
- package/build/server/chunks/nodes/{24.js-BGD-JCcE.js → 24.js-Cju9k1ab.js} +6 -6
- package/build/server/chunks/nodes/{24.js-BGD-JCcE.js.map → 24.js-Cju9k1ab.js.map} +1 -1
- package/build/server/chunks/nodes/{25.js-BqxnZYdq.js → 25.js-_K4kh7f2.js} +3 -3
- package/build/server/chunks/nodes/{25.js-BqxnZYdq.js.map → 25.js-_K4kh7f2.js.map} +1 -1
- package/build/server/chunks/nodes/{27.js-Bpas2N07.js → 27.js-RjMIvM6G.js} +5 -5
- package/build/server/chunks/nodes/{27.js-Bpas2N07.js.map → 27.js-RjMIvM6G.js.map} +1 -1
- package/build/server/chunks/nodes/{28.js-CzzcTWyj.js → 28.js-CIJbmh7U.js} +4 -4
- package/build/server/chunks/nodes/{28.js-CzzcTWyj.js.map → 28.js-CIJbmh7U.js.map} +1 -1
- package/build/server/chunks/nodes/{29.js-D-yU37B7.js → 29.js-CFoAmrrA.js} +4 -4
- package/build/server/chunks/nodes/{29.js-D-yU37B7.js.map → 29.js-CFoAmrrA.js.map} +1 -1
- package/build/server/chunks/nodes/{3.js-Cz9pT7ce.js → 3.js-CVk02asd.js} +2 -2
- package/build/server/chunks/nodes/{3.js-Cz9pT7ce.js.map → 3.js-CVk02asd.js.map} +1 -1
- package/build/server/chunks/nodes/{30.js-CTnqbIs1.js → 30.js-DfnjBleA.js} +4 -4
- package/build/server/chunks/nodes/{30.js-CTnqbIs1.js.map → 30.js-DfnjBleA.js.map} +1 -1
- package/build/server/chunks/nodes/{31.js-BzVXDu0q.js → 31.js-DqFB_Wmh.js} +3 -3
- package/build/server/chunks/nodes/{31.js-BzVXDu0q.js.map → 31.js-DqFB_Wmh.js.map} +1 -1
- package/build/server/chunks/nodes/{32.js-D5n6ZsDK.js → 32.js-DW6izRuF.js} +3 -3
- package/build/server/chunks/nodes/{32.js-D5n6ZsDK.js.map → 32.js-DW6izRuF.js.map} +1 -1
- package/build/server/chunks/nodes/{5.js-BJ8b3aNu.js → 5.js-B_kjfr2k.js} +2 -2
- package/build/server/chunks/nodes/{5.js-BJ8b3aNu.js.map → 5.js-B_kjfr2k.js.map} +1 -1
- package/build/server/chunks/nodes/{6.js-BUe0tZCB.js → 6.js-8PrsQVBK.js} +4 -4
- package/build/server/chunks/nodes/{6.js-BUe0tZCB.js.map → 6.js-8PrsQVBK.js.map} +1 -1
- package/build/server/chunks/nodes/{7.js-Bo7bTIfx.js → 7.js-BjKJ_1fW.js} +2 -2
- package/build/server/chunks/nodes/{7.js-Bo7bTIfx.js.map → 7.js-BjKJ_1fW.js.map} +1 -1
- package/build/server/chunks/nodes/{8.js-C6iVKn1o.js → 8.js-BaBu7XkQ.js} +7 -6
- package/build/server/chunks/nodes/{8.js-C6iVKn1o.js.map → 8.js-BaBu7XkQ.js.map} +1 -1
- package/build/server/chunks/nodes/{9.js-DPMqw-Dj.js → 9.js-BLFAupFY.js} +5 -5
- package/build/server/chunks/nodes/{9.js-DPMqw-Dj.js.map → 9.js-BLFAupFY.js.map} +1 -1
- package/package.json +3 -3
- package/templates/.env.example +7 -0
- package/build/client/_app/immutable/chunks/BRbaYEL5.js.br +0 -0
- package/build/client/_app/immutable/chunks/BRbaYEL5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COYKudi0.js.br +0 -0
- package/build/client/_app/immutable/chunks/COYKudi0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CYwmPsLn.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYwmPsLn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CxPY7Obc.js +0 -2
- package/build/client/_app/immutable/chunks/CxPY7Obc.js.br +0 -0
- package/build/client/_app/immutable/chunks/CxPY7Obc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/I2TM0do6.js.br +0 -0
- package/build/client/_app/immutable/chunks/I2TM0do6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/IUqeb3TJ.js +0 -2
- package/build/client/_app/immutable/chunks/IUqeb3TJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/IUqeb3TJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/zOoVG74V.js.br +0 -0
- package/build/client/_app/immutable/chunks/zOoVG74V.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CRaXT8K-.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CRaXT8K-.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DuKqaS_0.js +0 -1
- package/build/client/_app/immutable/entry/start.DuKqaS_0.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DuKqaS_0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DPMP9Es7.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DPMP9Es7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DMJdbPyC.js +0 -3
- package/build/client/_app/immutable/nodes/10.DMJdbPyC.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DMJdbPyC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BxhrIetk.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BxhrIetk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.bzJyaCKt.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.bzJyaCKt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.XVGDZn7V.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.XVGDZn7V.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.Ds7J6ry6.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.Ds7J6ry6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.C6HKDHv3.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.C6HKDHv3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.BxjH0QZF.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BxjH0QZF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.BU2Lw57i.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BU2Lw57i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.D9dN-poH.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.D9dN-poH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.BIo_tnO_.js +0 -5021
- package/build/client/_app/immutable/nodes/20.BIo_tnO_.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.BIo_tnO_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.qpo7v5r_.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.qpo7v5r_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.CdjZcdrJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.CdjZcdrJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.BSJH1lHT.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.BSJH1lHT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.BKQucFUA.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.BKQucFUA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.BleEhT0J.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.BleEhT0J.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.fAbDo5Et.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.fAbDo5Et.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.XubMG-dn.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.XubMG-dn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.DRrc_hLr.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.DRrc_hLr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.C77UuNpH.js.br +0 -1
- package/build/client/_app/immutable/nodes/5.C77UuNpH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.B23L8hA_.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.B23L8hA_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BZj0oAjH.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BZj0oAjH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.CGy_fUC4.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CGy_fUC4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BpEiOuN0.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BpEiOuN0.js.gz +0 -0
- package/build/server/chunks/chunks/access.server.js-D99g5hZd.js.map +0 -1
- package/build/server/chunks/chunks/admin-auth.server.js-hCWF6Pqg.js.map +0 -1
- package/build/server/chunks/chunks/bootHealth.server.js-CxNJCaGf.js.map +0 -1
- package/build/server/chunks/chunks/clientCache.server.js-nl8vnalG.js.map +0 -1
- package/build/server/chunks/chunks/computeLimits.js-C5c7HPGJ.js.map +0 -1
- package/build/server/chunks/chunks/providers.server.js-D0hpk-aq.js.map +0 -1
- package/build/server/chunks/chunks/token.server.js-q3fv9Fqo.js.map +0 -1
- package/build/server/chunks/chunks/token2.server.js-Cqw1dJj-.js.map +0 -1
- package/build/server/chunks/entries/endpoints/admin/api/system/health/_server.ts.js-CQdxoaBS.js.map +0 -1
- package/build/server/chunks/entries/endpoints/admin/api/system/update/_server.ts.js-y3dgQz-R.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/compute/_server.ts.js-DkyT3FO6.js.map +0 -1
- package/build/server/chunks/entries/endpoints/auth/email/callback/_server.ts.js-B7kvAKyV.js.map +0 -1
- package/build/server/chunks/entries/endpoints/auth/supabase/callback/_server.ts.js-3yXXN2SO.js.map +0 -1
- package/build/server/chunks/entries/hooks.server.js-OUXv4_qA.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/audit/_page.server.ts.js-pm9fJjcH.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/audit/_page.svelte.js-smQE9KlB.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/system/_page.svelte.js-D4Z-BGD2.js.map +0 -1
- package/build/server/chunks/entries/pages/auth/email/start/_page.server.ts.js-F8fXU2YV.js.map +0 -1
- package/build/server/chunks/entries/pages/login/_page.server.ts.js-DLtWh9lt.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./
|
|
1
|
+
import{s as e}from"./DAFm-rT0.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as h,J as w,a6 as A,aa as E,ab as L}from"./j7JNK5dy.js";import{n as x,i as T,a as k,p as H,b as M}from"./
|
|
1
|
+
import{e as h,J as w,a6 as A,aa as E,ab as L}from"./j7JNK5dy.js";import{n as x,i as T,a as k,p as H,b as M}from"./DAFm-rT0.js";function g(t,r,s){h(()=>{var i=w(()=>r(t,s?.())||{});if(s&&i?.update){var a=!1,o={};A(()=>{var e=s();E(e),a&&L(o,e)&&(o=e,i.update(e))}),a=!0}if(i?.destroy)return()=>i.destroy()})}function D(t){const r=JSON.parse(t);return r.data&&(r.data=H(r.data,M.decoders)),r}function d(t){return HTMLElement.prototype.cloneNode.call(t)}function C(t,r=x){const s=async({action:a,result:o,reset:e=!0,invalidateAll:c=!0})=>{o.type==="success"&&(e&&HTMLFormElement.prototype.reset.call(t),c&&await T()),(location.origin+location.pathname===a.origin+a.pathname||o.type==="redirect"||o.type==="error")&&await k(o)};async function i(a){if((a.submitter?.hasAttribute("formmethod")?a.submitter.formMethod:d(t).method)!=="post")return;a.preventDefault();const e=new URL(a.submitter?.hasAttribute("formaction")?a.submitter.formAction:d(t).action),c=a.submitter?.hasAttribute("formenctype")?a.submitter.formEnctype:d(t).enctype,p=new FormData(t,a.submitter),u=new AbortController;let f=!1;const b=await r({action:e,cancel:()=>f=!0,controller:u,formData:p,formElement:t,submitter:a.submitter})??s;if(f)return;let l;try{const n=new Headers({accept:"application/json","x-sveltekit-action":"true"});c!=="multipart/form-data"&&n.set("Content-Type",/^(:?application\/x-www-form-urlencoded|text\/plain)$/.test(c)?c:"application/x-www-form-urlencoded");const y=c==="multipart/form-data"?p:new URLSearchParams(p),m=await fetch(e,{method:"POST",headers:n,cache:"no-store",body:y,signal:u.signal});l=D(await m.text()),l.type==="error"&&(l.status=m.status)}catch(n){if(n?.name==="AbortError")return;l={type:"error",error:n}}await b({action:e,formData:p,formElement:t,update:n=>s({action:e,result:l,reset:n?.reset,invalidateAll:n?.invalidateAll}),result:l})}return HTMLFormElement.prototype.addEventListener.call(t,"submit",i),{destroy(){HTMLFormElement.prototype.removeEventListener.call(t,"submit",i)}}}export{g as a,C as e};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{p as M,d as p,t as _,a as O,c as i,r as n,g as t,u as S,f as P}from"./j7JNK5dy.js";import{s as g}from"./DzgYcjQZ.js";import{s as A}from"./BNDs8Vcd.js";import{a as v,f,c as Q}from"./DHFMIoXm.js";import{i as c}from"./D7Ywb5BJ.js";import{e as R,a as T,c as I}from"./CKL0E1IM.js";import{p as U,c as V}from"./C3JrmfEx.js";import{p as X}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{p as M,d as p,t as _,a as O,c as i,r as n,g as t,u as S,f as P}from"./j7JNK5dy.js";import{s as g}from"./DzgYcjQZ.js";import{s as A}from"./BNDs8Vcd.js";import{a as v,f,c as Q}from"./DHFMIoXm.js";import{i as c}from"./D7Ywb5BJ.js";import{e as R,a as T,c as I}from"./CKL0E1IM.js";import{p as U,c as V}from"./C3JrmfEx.js";import{p as X}from"./CaWnsi86.js";var Y=f('<div class="px-4 pt-5 pb-3"><span class="text-xs font-medium tracking-wider text-muted-foreground uppercase"> </span></div>'),Z=f('<div class="px-3 pb-3"><!></div>'),$=f('<span class="left-0 top-0 bottom-0 w-0.75 absolute bg-primary" aria-hidden="true"></span>'),aa=f('<span class="font-mono shrink-0 text-[11px] tabular-nums opacity-60"> </span>'),ra=f('<a><!> <!> <span class="text-sm font-medium flex-1 truncate"> </span> <!></a>'),ea=f('<div class="px-3 py-3 border-t border-border/60"><!></div>'),ta=f('<aside><!> <!> <nav class="pb-4 pr-2 flex-1 space-y-px"></nav> <!></aside>');function la(W,o){M(o,!0);let j=U(o,"class",3,"");function q(r){const a=X.url.pathname;return r.match==="prefix"?a.startsWith(r.href):a===r.href}var m=ta(),y=i(m);{var z=r=>{var a=Y(),s=i(a),u=i(s,!0);n(s),n(a),_(()=>g(u,o.eyebrow)),v(r,a)};c(y,r=>{o.eyebrow&&r(z)})}var w=p(y,2);{var B=r=>{var a=Z(),s=i(a);A(s,()=>o.header),n(a),v(r,a)};c(w,r=>{o.header&&r(B)})}var x=p(w,2);R(x,21,()=>o.items,r=>r.href,(r,a)=>{const s=S(()=>q(t(a))),u=S(()=>t(a).icon);var l=ra(),k=i(l);{var E=e=>{var d=$();v(e,d)};c(k,e=>{t(s)&&e(E)})}var N=p(k,2);{var F=e=>{var d=Q(),h=P(d);V(h,()=>t(u),(K,L)=>{L(K,{class:"h-3.5 w-3.5 shrink-0 opacity-70"})}),v(e,d)};c(N,e=>{t(u)&&e(F)})}var b=p(N,2),G=i(b,!0);n(b);var H=p(b,2);{var J=e=>{var d=aa(),h=i(d,!0);n(d),_(()=>g(h,t(a).badge)),v(e,d)};c(H,e=>{t(a).badge!==void 0&&e(J)})}n(l),_(()=>{T(l,"href",t(a).href),I(l,1,`group gap-2 py-1.5 pr-2.5 relative flex w-full items-center text-left transition-colors ${t(s)?"pl-4 rounded-r-md bg-accent text-accent-foreground":"mx-2 pl-2.5 rounded-md text-muted-foreground hover:bg-muted/60 hover:text-foreground"}`),g(G,t(a).label)}),v(r,l)}),n(x);var C=p(x,2);{var D=r=>{var a=ea(),s=i(a);A(s,()=>o.footer),n(a),v(r,a)};c(C,r=>{o.footer&&r(D)})}n(m),_(()=>I(m,1,`w-60 flex shrink-0 flex-col overflow-y-auto border-r border-border bg-background ${j()}`)),v(W,m),O()}export{la as S};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{p as H,f as M,c as N,g as e,d as j,r as x,t as re,u as r,a as K,aB as X,h as $,s as W,n as pe}from"./j7JNK5dy.js";import{c as L,a as m,f as T,t as _e}from"./DHFMIoXm.js";import{s as Z}from"./BNDs8Vcd.js";import{i as O}from"./D7Ywb5BJ.js";import{s as ae,r as ne,c as se,p as I,b as xe}from"./C3JrmfEx.js";import{p as D}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{p as H,f as M,c as N,g as e,d as j,r as x,t as re,u as r,a as K,aB as X,h as $,s as W,n as pe}from"./j7JNK5dy.js";import{c as L,a as m,f as T,t as _e}from"./DHFMIoXm.js";import{s as Z}from"./BNDs8Vcd.js";import{i as O}from"./D7Ywb5BJ.js";import{s as ae,r as ne,c as se,p as I,b as xe}from"./C3JrmfEx.js";import{p as D}from"./CaWnsi86.js";import{s as Y,d as be,e as ee,a as we}from"./DzgYcjQZ.js";import{e as oe,d as ye,a as ie,c as ce}from"./CKL0E1IM.js";import{I as me}from"./i7-vYus5.js";import{A as Pe,U as Ae}from"./CbzchbHa.js";import{B as de}from"./YRdQdDS3.js";import{S as Ne}from"./C6ZPX7tO.js";import{U as Me}from"./DGOwhknA.js";import{S as Se}from"./BJ0I_ukf.js";var ke=new Set(["$$slots","$$events","$$legacy"]);function $e(u,t){let d=ne(t,ke);const h=[["path",{d:"M15 6a9 9 0 0 0-9 9V3"}],["circle",{cx:"18",cy:"6",r:"3"}],["circle",{cx:"6",cy:"18",r:"3"}]];me(u,ae({name:"git-branch"},()=>d,{get iconNode(){return h}}))}var Ie=new Set(["$$slots","$$events","$$legacy"]);function je(u,t){let d=ne(t,Ie);const h=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}]];me(u,ae({name:"layout-grid"},()=>d,{get iconNode(){return h}}))}var Ee=T("<a><!> </a>");function Ue(u,t){H(t,!0);const d=r(()=>D.data.ctx),h=r(()=>(e(d)?.platformPermissions??[]).includes("instance_admin")||(e(d)?.orgPermissions??[]).some(s=>s==="manage_definitions"||s==="manage_projects")),o=r(()=>[{href:"/library",label:"Library",icon:je,match:"prefix",show:!0},{href:"/projects",label:"Projects",icon:$e,match:"prefix",show:e(h)}].filter(s=>s.show));function b(s){const l=D.url.pathname;return s.match==="prefix"?l.startsWith(s.href):l===s.href}var i=L(),w=M(i);oe(w,17,()=>e(o),s=>s.href,(s,l)=>{const S=r(()=>b(e(l))),E=r(()=>e(l).icon);var v=Ee(),U=N(v);se(U,()=>e(E),(c,f)=>{f(c,{class:"h-3.5 w-3.5"})});var p=j(U);x(v),re(c=>{ie(v,"href",e(l).href),ce(v,1,c),Y(p,` ${e(l).label??""}`)},[()=>ye(["flex h-8 items-center gap-1.5 rounded-md px-2.5 text-sm font-medium transition-colors",e(S)?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"].join(" "))]),m(s,v)}),m(u,i),K()}var Ce=T('<a role="menuitem"><!> <div class="min-w-0 flex-1"><p class="leading-tight font-medium"> </p> <p class="text-muted-foreground mt-0.5 text-xs leading-snug"> </p></div></a>'),Re=T('<div role="menu" class="border-border bg-popover text-popover-foreground absolute top-full right-0 z-50 mt-1.5 w-64 overflow-hidden rounded-md border shadow-md"><div class="p-1"></div></div>'),ze=T('<div class="relative"><!> <!></div>');function Be(u,t){H(t,!0);let d=I(t,"platformPermissions",19,()=>[]),h=I(t,"orgPermissions",19,()=>[]),o=W(!1),b=W(null),i=W(null);const w=r(()=>d().includes("instance_admin")),s=["instance_admin","manage_compute","manage_instance_users","manage_updates"],l=["manage_org_members","manage_org_compute","manage_definitions","manage_projects"],S=r(()=>e(w)||s.some(a=>d().includes(a))),E=r(()=>e(w)||l.some(a=>h().includes(a))),v=r(()=>[{href:"/team",label:"Team",description:"Members, projects, and org-wide settings",icon:Me,show:e(E),match:"prefix"},{href:"/admin",label:"Admin",description:"Platform configuration and instance settings",icon:Se,show:e(S),match:"prefix"}].filter(a=>a.show)),U=r(()=>e(v).length>0);function p(a){return D.url.pathname.startsWith(a)}function c(a){if(!e(o))return;const n=a.target;e(b)?.contains(n)||e(i)?.contains(n)||$(o,!1)}function f(a){a.key==="Escape"&&e(o)&&$(o,!1)}var _=L();ee("click",X,c),ee("keydown",X,f);var y=M(_);{var F=a=>{var n=ze(),g=N(n);de(g,{onclick:()=>$(o,!e(o)),variant:"outline",size:"icon","aria-label":"Settings",get"aria-expanded"(){return e(o)},"aria-haspopup":"menu",get ref(){return e(b)},set ref(A){$(b,A,!0)},children:(A,R)=>{Ne(A,{class:"h-[1.2rem] w-[1.2rem]"})},$$slots:{default:!0}});var P=j(g,2);{var C=A=>{var R=Re(),V=N(R);oe(V,21,()=>e(v),z=>z.href,(z,B)=>{const le=r(()=>e(B).icon),fe=r(()=>p(e(B).href));var k=Ce(),q=N(k);se(q,()=>e(le),(he,ve)=>{ve(he,{class:"mt-0.5 h-3.5 w-3.5 shrink-0 opacity-70"})});var J=j(q,2),G=N(J),ge=N(G,!0);x(G);var Q=j(G,2),ue=N(Q,!0);x(Q),x(J),x(k),re(()=>{ie(k,"href",e(B).href),ce(k,1,`flex items-start gap-2.5 rounded-sm px-2.5 py-2 text-sm transition-colors ${e(fe)?"bg-accent text-accent-foreground":"text-foreground hover:bg-muted/60"}`),Y(ge,e(B).label),Y(ue,e(B).description)}),we("click",k,()=>$(o,!1)),m(z,k)}),x(V),x(R),xe(R,z=>$(i,z),()=>e(i)),m(A,R)};O(P,A=>{e(o)&&A(C)})}x(n),m(a,n)};O(y,a=>{e(U)&&a(F)})}m(u,_),K()}be(["click"]);var te=T("<!> <!>",1);function Ze(u,t){H(t,!0);let d=I(t,"homeUrl",3,"/library"),h=I(t,"title",3,void 0),o=I(t,"mode",3,"scroll"),b=I(t,"showMainNav",3,!0);const i=r(()=>D.data),w=r(()=>!!e(i).user),s=r(()=>e(i).user?.platformPermissions??[]),l=r(()=>e(i).ctx?.orgPermissions??[]),S=r(()=>e(i).branding?.name??"Selva"),E=r(()=>e(i).branding?.copyrightName??e(S));Pe(u,{get homeUrl(){return d()},get title(){return h()},get mode(){return o()},get sidenav(){return t.sidenav},get brandName(){return e(S)},get copyrightName(){return e(E)},showFooter:!0,navItems:p=>{var c=L(),f=M(c);{var _=y=>{Ue(y,{})};O(f,y=>{e(w)&&b()&&y(_)})}m(p,c)},rightContent:p=>{var c=te(),f=M(c);{var _=n=>{var g=L(),P=M(g);Z(P,()=>t.rightExtras),m(n,g)};O(f,n=>{t.rightExtras&&n(_)})}var y=j(f,2);{var F=n=>{var g=te(),P=M(g);Ae(P,{});var C=j(P,2);Be(C,{get platformPermissions(){return e(s)},get orgPermissions(){return e(l)}}),m(n,g)},a=n=>{de(n,{href:"/login",size:"sm",children:(g,P)=>{pe();var C=_e("Sign in");m(g,C)},$$slots:{default:!0}})};O(y,n=>{e(w)?n(F):n(a,-1)})}m(p,c)},children:(p,c)=>{var f=L(),_=M(f);Z(_,()=>t.children),m(p,f)},$$slots:{navItems:!0,rightContent:!0,default:!0}}),K()}export{Ze as A};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as t,c as r}from"./
|
|
1
|
+
import{s as t,c as r}from"./DAFm-rT0.js";const e={get data(){return r.data},get error(){return r.error},get status(){return r.status},get url(){return r.url}};t.updated.check;const s=e;export{s as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{f as y,d as w,n as Re,c as h,r as u,t as Y,p as oe,a as se,g as i,i as Pe,u as N,s as ye,h as X,aA as mt}from"./j7JNK5dy.js";import{a as l,f as _,c as U,p as ke,t as _t}from"./DHFMIoXm.js";import{s as z}from"./BNDs8Vcd.js";import{i as T}from"./D7Ywb5BJ.js";import{c as Oe,a as Ae,f as Le,e as Me,j as wt,d as nt}from"./CKL0E1IM.js";import{s as me,r as le,p as f,c as W}from"./C3JrmfEx.js";import{s as Q,o as bt,a as yt,d as xt}from"./DzgYcjQZ.js";import{o as St,u as Nt}from"./Chh9A0et.js";import{B as It}from"./YRdQdDS3.js";import{I as De}from"./i7-vYus5.js";import{D as Ct,a as Tt,b as Et,c as Ot,R as Rt}from"./B-PCkSGA.js";import{_ as At}from"./BapAUJpM.js";import{S as Mt}from"./DQ9OrQjh.js";import{g as Ut}from"./DjtMPMjk.js";import{b as Fe,d as G,m as $e,a as Je,e as qe,f as Ze,h as Pt,g as kt,c as Lt}from"./BARlAga8.js";import{C as Ge}from"./CHr8w1pg.js";import{C as Dt,S as Ft,E as $t,w as ze,n as at}from"./Babt-QT0.js";import{P as Bt,c as Vt}from"./DVjXNHoG.js";import{T as ft}from"./CUkW7LC8.js";import{C as ot}from"./Dx721SA_.js";import{C as st}from"./CAUQbu9n.js";import{a as jt,e as Wt}from"./BL2t7cAH.js";import{p as He}from"./CaWnsi86.js";var zt=new Set(["$$slots","$$events","$$legacy"]);function Ht(n,e){let t=le(e,zt);const r=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];De(n,me({name:"sun"},()=>t,{get iconNode(){return r}}))}var Yt=new Set(["$$slots","$$events","$$legacy"]);function Gt(n,e){let t=le(e,Yt);const r=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];De(n,me({name:"moon"},()=>t,{get iconNode(){return r}}))}var Kt=_('<!> <!> <span class="sr-only">Toggle theme</span>',1);function Jt(n){It(n,{get onclick(){return St},variant:"outline",size:"icon",children:(e,t)=>{var r=Kt(),a=y(r);Ht(a,{class:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"});var o=w(a,2);Gt(o,{class:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),Re(2),l(e,r)},$$slots:{default:!0}})}var qt=_('<span class="text-sm text-border">/</span> <span class="text-sm font-medium text-muted-foreground"> </span>',1),Zt=_('<nav class="ml-5 gap-1 flex"><!></nav>'),Xt=_('<div class="h-10 flex items-center border-t border-border/60 px-(--page-px)"><!></div>'),Qt=_('<header><div class="gap-5 flex h-(--header-h) items-center px-(--page-px)"><a class="gap-2 flex shrink-0 items-center"><img alt="" aria-hidden="true" class="h-5 w-5"/> <span class="font-semibold text-sm tracking-tight"> </span></a> <!> <!> <div class="gap-2 ml-auto flex items-center"><!> <!></div></div> <!></header>');function er(n,e){let t=f(e,"homeUrl",3,"/app"),r=f(e,"title",3,void 0),a=f(e,"logo",3,"/favicon/favicon.svg"),o=f(e,"brandName",3,"Selva"),d=f(e,"showModeToggle",3,!0),c=f(e,"class",3,"");var s=Qt(),p=h(s),b=h(p),O=h(b),k=w(O,2),m=h(k,!0);u(k),u(b);var v=w(b,2);{var x=S=>{var E=qt(),H=w(y(E),2),xe=h(H,!0);u(H),Y(()=>Q(xe,r()??"")),l(S,E)};T(v,S=>{r()!==void 0&&S(x)})}var I=w(v,2);{var D=S=>{var E=Zt(),H=h(E);z(H,()=>e.navItems),u(E),l(S,E)};T(I,S=>{e.navItems&&S(D)})}var K=w(I,2),ee=h(K);{var J=S=>{var E=U(),H=y(E);z(H,()=>e.rightContent),l(S,E)};T(ee,S=>{e.rightContent&&S(J)})}var te=w(ee,2);{var de=S=>{Jt(S)};T(te,S=>{d()&&S(de)})}u(K),u(p);var g=w(p,2);{var R=S=>{var E=Xt(),H=h(E);z(H,()=>e.subnav),u(E),l(S,E)};T(g,S=>{e.subnav&&S(R)})}u(s),Y(()=>{Oe(s,1,`top-0 backdrop-blur-sm sticky z-40 border-b border-border bg-background/90 ${c()}`),Ae(b,"href",t()),Ae(O,"src",a()),Q(m,o())}),l(n,s)}var tr=new Set(["$$slots","$$events","$$legacy"]);function rr(n,e){let t=le(e,tr);const r=[["path",{d:"m10 17 5-5-5-5"}],["path",{d:"M15 12H3"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}]];De(n,me({name:"log-in"},()=>t,{get iconNode(){return r}}))}var nr=new Set(["$$slots","$$events","$$legacy"]);function ar(n,e){let t=le(e,nr);const r=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];De(n,me({name:"log-out"},()=>t,{get iconNode(){return r}}))}var or=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),sr=_("<button><!></button>");function ir(n,e){const t=ke();oe(e,!0);let r=f(e,"id",19,()=>Fe(t)),a=f(e,"ref",15,null),o=f(e,"disabled",3,!1),d=le(e,or);const c=Ut.create({id:G(()=>r()),ref:G(()=>a(),m=>a(m)),disabled:G(()=>!!o())}),s=N(()=>$e(d,c.props));var p=U(),b=y(p);{var O=m=>{var v=U(),x=y(v);z(x,()=>e.child,()=>({props:i(s)})),l(m,v)},k=m=>{var v=sr();Le(v,()=>({...i(s)}));var x=h(v);z(x,()=>e.children??Pe),u(v),l(m,v)};T(b,m=>{e.child?m(O):m(k,-1)})}l(n,p),se()}const Xe=Lt({component:"collapsible",parts:["root","content","trigger"]}),Qe=new Dt("Collapsible.Root");class et{static create(e){return Qe.set(new et(e))}opts;attachment;#e=ye(null);get contentNode(){return i(this.#e)}set contentNode(e){X(this.#e,e,!0)}contentPresence;#t=ye(void 0);get contentId(){return i(this.#t)}set contentId(e){X(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=Je(this.opts.ref),this.contentPresence=new Bt({ref:G(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#r=N(()=>({id:this.opts.id.current,"data-state":Ze(this.opts.open.current),"data-disabled":qe(this.opts.disabled.current),[Xe.root]:"",...this.attachment}));get props(){return i(this.#r)}set props(e){X(this.#r,e)}}class tt{static create(e){return new tt(e,Qe.get())}opts;root;attachment;#e=N(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return i(this.#e)}set present(e){X(this.#e,e)}#t;#r=ye(!1);#n=ye(0);#a=ye(0);constructor(e,t){this.opts=e,this.root=t,X(this.#r,t.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=Je(this.opts.ref,r=>this.root.contentNode=r),ze.pre(()=>this.opts.id.current,r=>{this.root.contentId=r}),mt(()=>{const r=requestAnimationFrame(()=>{X(this.#r,!1)});return()=>{cancelAnimationFrame(r)}}),ze.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([r,a])=>!r||!a?void 0:bt(r,"beforematch",()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),ze([()=>this.opts.ref.current,()=>this.present],([r])=>{r&&Vt(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const a=r.getBoundingClientRect();if(X(this.#a,a.height,!0),X(this.#n,a.width,!0),!i(this.#r)){const{animationName:o,transitionDuration:d}=this.#t;r.style.transitionDuration=d,r.style.animationName=o}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#o=N(()=>({open:this.root.opts.open.current}));get snippetProps(){return i(this.#o)}set snippetProps(e){X(this.#o,e)}#s=N(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":i(this.#a)?`${i(this.#a)}px`:void 0,"--bits-collapsible-content-width":i(this.#n)?`${i(this.#n)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?"until-found":void 0,"data-state":Ze(this.root.opts.open.current),...kt(this.root.contentPresence.transitionStatus),"data-disabled":qe(this.root.opts.disabled.current),[Xe.content]:"",...this.opts.hiddenUntilFound.current&&!this.shouldRender?{}:{hidden:this.opts.hiddenUntilFound.current?!this.shouldRender:this.opts.forceMount.current?void 0:!this.shouldRender},...this.attachment}));get props(){return i(this.#s)}set props(e){X(this.#s,e)}}class rt{static create(e){return new rt(e,Qe.get())}opts;root;attachment;#e=N(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=Je(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!i(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){i(this.#e)||(e.key===Ft||e.key===$t)&&(e.preventDefault(),this.root.toggleOpen())}#t=N(()=>({id:this.opts.id.current,type:"button",disabled:i(this.#e),"aria-controls":this.root.contentId,"aria-expanded":Pt(this.root.opts.open.current),"data-state":Ze(this.root.opts.open.current),"data-disabled":qe(i(this.#e)),[Xe.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return i(this.#t)}set props(e){X(this.#t,e)}}var lr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]),dr=_("<div><!></div>");function cr(n,e){const t=ke();oe(e,!0);let r=f(e,"id",19,()=>Fe(t)),a=f(e,"ref",15,null),o=f(e,"open",15,!1),d=f(e,"disabled",3,!1),c=f(e,"onOpenChange",3,at),s=f(e,"onOpenChangeComplete",3,at),p=le(e,lr);const b=et.create({open:G(()=>o(),I=>{o(I),c()(I)}),disabled:G(()=>d()),id:G(()=>r()),ref:G(()=>a(),I=>a(I)),onOpenChangeComplete:G(()=>s())}),O=N(()=>$e(p,b.props));var k=U(),m=y(k);{var v=I=>{var D=U(),K=y(D);z(K,()=>e.child,()=>({props:i(O)})),l(I,D)},x=I=>{var D=dr();Le(D,()=>({...i(O)}));var K=h(D);z(K,()=>e.children??Pe),u(D),l(I,D)};T(m,I=>{e.child?I(v):I(x,-1)})}l(n,k),se()}var ur=new Set(["$$slots","$$events","$$legacy","child","ref","forceMount","hiddenUntilFound","children","id"]),hr=_("<div><!></div>");function vr(n,e){const t=ke();oe(e,!0);let r=f(e,"ref",15,null),a=f(e,"forceMount",3,!1),o=f(e,"hiddenUntilFound",3,!1),d=f(e,"id",19,()=>Fe(t)),c=le(e,ur);const s=tt.create({id:G(()=>d()),forceMount:G(()=>a()),hiddenUntilFound:G(()=>o()),ref:G(()=>r(),v=>r(v))}),p=N(()=>$e(c,s.props));var b=U(),O=y(b);{var k=v=>{var x=U(),I=y(x);{let D=N(()=>({...s.snippetProps,props:i(p)}));z(I,()=>e.child,()=>i(D))}l(v,x)},m=v=>{var x=hr();Le(x,()=>({...i(p)}));var I=h(x);z(I,()=>e.children??Pe),u(x),l(v,x)};T(O,v=>{e.child?v(k):v(m,-1)})}l(n,b),se()}var fr=new Set(["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]),pr=_("<button><!></button>");function gr(n,e){const t=ke();oe(e,!0);let r=f(e,"ref",15,null),a=f(e,"id",19,()=>Fe(t)),o=f(e,"disabled",3,!1),d=le(e,fr);const c=rt.create({id:G(()=>a()),ref:G(()=>r(),m=>r(m)),disabled:G(()=>o())}),s=N(()=>$e(d,c.props));var p=U(),b=y(p);{var O=m=>{var v=U(),x=y(v);z(x,()=>e.child,()=>({props:i(s)})),l(m,v)},k=m=>{var v=pr();Le(v,()=>({...i(s)}));var x=h(v);z(x,()=>e.children??Pe),u(v),l(m,v)};T(b,m=>{e.child?m(O):m(k,-1)})}l(n,p),se()}var mr=new Set(["$$slots","$$events","$$legacy","ref","open"]);function it(n,e){oe(e,!0);let t=f(e,"ref",15,null),r=f(e,"open",15,!1),a=le(e,mr);var o=U(),d=y(o);W(d,()=>cr,(c,s)=>{s(c,me({"data-slot":"collapsible"},()=>a,{get ref(){return t()},set ref(p){t(p)},get open(){return r()},set open(p){r(p)}}))}),l(n,o),se()}var _r=new Set(["$$slots","$$events","$$legacy","ref"]);function lt(n,e){oe(e,!0);let t=f(e,"ref",15,null),r=le(e,_r);var a=U(),o=y(a);W(o,()=>gr,(d,c)=>{c(d,me({"data-slot":"collapsible-trigger"},()=>r,{get ref(){return t()},set ref(s){t(s)}}))}),l(n,a),se()}var wr=new Set(["$$slots","$$events","$$legacy","ref"]);function dt(n,e){oe(e,!0);let t=f(e,"ref",15,null),r=le(e,wr);var a=U(),o=y(a);W(o,()=>vr,(d,c)=>{c(d,me({"data-slot":"collapsible-content"},()=>r,{get ref(){return t()},set ref(s){t(s)}}))}),l(n,a),se()}var br=new Set(["$$slots","$$events","$$legacy","ref"]);function yr(n,e){oe(e,!0);let t=f(e,"ref",15,null),r=le(e,br);var a=U(),o=y(a);W(o,()=>ir,(d,c)=>{c(d,me({"data-slot":"dialog-trigger"},()=>r,{get ref(){return t()},set ref(s){t(s)}}))}),l(n,a),se()}var pt=Object.defineProperty,xr=(n,e,t)=>e in n?pt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,jn=(n,e)=>{for(var t in e)pt(n,t,{get:e[t],enumerable:!0})},ie=(n,e,t)=>xr(n,typeof e!="symbol"?e+"":e,t),Z={VALIDATION_ERROR:"VALIDATION_ERROR",UNKNOWN_ERROR:"UNKNOWN_ERROR",INVALID_STATE:"INVALID_STATE",INVALID_INPUT:"INVALID_INPUT",INVALID_CONFIG:"INVALID_CONFIG",BROWSER_ONLY:"BROWSER_ONLY",ENVIRONMENT_ERROR:"ENVIRONMENT_ERROR",ENCODING_ERROR:"ENCODING_ERROR"},ae=class Ke extends Error{constructor(e,t=Z.UNKNOWN_ERROR,r){super(e),ie(this,"code"),ie(this,"statusCode"),ie(this,"context"),ie(this,"originalError"),this.name="RhinoComputeError",this.code=t,this.statusCode=r?.statusCode,this.context=r?.context,this.originalError=r?.originalError,r?.originalError&&(this.cause=r.originalError)}static missingValues(e,t,r){return new Ke(`Input "${e}" has no values defined${t?` (expected ${t})`:""}`,Z.INVALID_INPUT,{context:{inputName:e,expectedType:t,...r}})}static unknownParamType(e,t,r){return new Ke(`Unknown paramType: ${e}`,Z.VALIDATION_ERROR,{context:{receivedParamType:e,paramName:t,...r}})}},Sr=class{debug(){}info(){}warn(){}error(){}},Nr=new Sr;function C(){return Nr}function Ir(){let n=globalThis.Buffer;return typeof n=="function"?n:void 0}function Cr(n){let e=n.replace(/[\t\n\f\r ]/g,"");if(e.length%4===0&&(e=e.replace(/={1,2}$/,"")),e.length%4===1||!/^[A-Za-z0-9+/]*$/.test(e))throw new ae("Invalid base64 input.",Z.ENCODING_ERROR,{context:{inputLength:n.length}});let t=Ir();if(t)return new Uint8Array(t.from(e,"base64"));if(typeof globalThis.atob=="function"){let r=globalThis.atob(e),a=new Uint8Array(r.length);for(let o=0;o<r.length;o++)a[o]=r.charCodeAt(o)&255;return a}throw new ae("Base64 decoding not supported in this environment.",Z.INVALID_STATE,{context:{environmentInfo:"atob or Buffer not available"}})}var Tr="compute.rhino3d.com";function Er(n){let e=n?.trim()??"";if(!e)throw new ae("serverUrl is required",Z.INVALID_CONFIG,{context:{receivedServerUrl:n}});if(!/^https?:\/\//i.test(e))throw new ae(`Invalid serverUrl: "${e}". Must start with "http://" or "https://". For example: "http://localhost:5000" or "https://example.com"`,Z.INVALID_CONFIG,{context:{receivedServerUrl:n}});let t;try{t=new URL(e)}catch(r){throw new ae(`Invalid serverUrl: "${e}". Must be a valid URL. Received error: ${r instanceof Error?r.message:String(r)}`,Z.INVALID_CONFIG,{context:{receivedServerUrl:n},originalError:r instanceof Error?r:void 0})}if(t.username!==""||t.password!=="")throw new ae(`Invalid serverUrl: "${e}". Must not embed credentials (user:pass@host) — fetch rejects credentialed URLs at request time. Pass the API key separately.`,Z.INVALID_CONFIG,{context:{receivedServerUrl:n}});if(e.includes("?")||e.includes("#"))throw new ae(`Invalid serverUrl: "${e}". Must not contain a query string or fragment — endpoint paths are appended to this URL (e.g. "\${serverUrl}/version"), and a "?" or "#" suffix would corrupt every request path.`,Z.INVALID_CONFIG,{context:{receivedServerUrl:n}});if(t.hostname.toLowerCase().replace(/\.+$/,"")===Tr)throw new ae("serverUrl must be set to your Compute server URL. The default public endpoint is not allowed.",Z.INVALID_CONFIG,{context:{receivedServerUrl:n}});return e.replace(/\/+$/,"")}var Ye=class be{constructor(e,t){ie(this,"serverUrl"),ie(this,"apiKey"),ie(this,"disposed",!1),ie(this,"activeMonitors",new Set),ie(this,"activeTimeouts",new Set),this.serverUrl=Er(e),this.apiKey=t}buildHeaders(){let e={"Content-Type":"application/json"};return this.apiKey&&(e.RhinoComputeKey=this.apiKey),e}fetchWithTimeout(e,t={},r=be.DEFAULT_TIMEOUT_MS){let a=new Headers(this.buildHeaders());t.headers&&new Headers(t.headers).forEach((c,s)=>{a.set(s,c)});let o={};a.forEach((c,s)=>{o[s]=c});let d={...t,headers:o};return r>0&&!d.signal&&(d.signal=AbortSignal.timeout(r)),fetch(e,d)}async isServerOnline(e=5e3){this.ensureNotDisposed();let t=`${this.serverUrl}/`;try{return(await this.fetchWithTimeout(t,{method:"GET"},e)).ok}catch(r){return C().debug("[ComputeServerStats] Fetch error:",r),!1}}async getActiveChildren(e={}){this.ensureNotDisposed();let{initialize:t=!0}=e,r=t?`${this.serverUrl}/activechildren`:`${this.serverUrl}/activechildren?initialize=false`,a=t?be.LIFECYCLE_TIMEOUT_MS:be.DEFAULT_TIMEOUT_MS;try{let o=await this.fetchWithTimeout(r,{},a);if(!o.ok)return C().warn("[ComputeServerStats] Failed to fetch active children:",o.status),null;let d=(await o.text()).trim();return/^\d+$/.test(d)?parseInt(d,10):(C().warn("[ComputeServerStats] Invalid active children response:",d),null)}catch(o){return C().warn("[ComputeServerStats] Error fetching active children:",o),null}}async getVersion(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/version`);if(!e.ok)return C().warn("[ComputeServerStats] Failed to fetch version:",e.status),null;let t=await e.text();try{let r=JSON.parse(t);return{rhino:r.rhino??"",compute:r.compute??"",git_sha:r.git_sha??null}}catch{return{rhino:t,compute:"",git_sha:null}}}catch(e){return C().warn("[ComputeServerStats] Error fetching version:",e),null}}async getInstalledPlugins(e="gh"){this.ensureNotDisposed();try{let t=await this.fetchWithTimeout(`${this.serverUrl}/plugins/${e}/installed`);if(!t.ok)return C().warn(`[ComputeServerStats] Failed to fetch ${e} plugins:`,t.status),null;let r=await t.text();try{let a=JSON.parse(r);return a&&typeof a=="object"?a:null}catch{return null}}catch(t){return C().warn(`[ComputeServerStats] Error fetching ${e} plugins:`,t),null}}async getServerStats(){if(this.ensureNotDisposed(),!await this.isServerOnline())return{isOnline:!1};let[e,t]=await Promise.all([this.getVersion(),this.getActiveChildren({initialize:!1})]);return{isOnline:!0,...e&&{version:e},...t!==null&&{activeChildren:t}}}async purgeCache(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/cache/purge`,{method:"POST"});if(!e.ok)return C().warn("[ComputeServerStats] Failed to purge cache:",e.status),null;let t=await e.text();try{let r=JSON.parse(t);return typeof r.purged=="number"?r.purged:null}catch{return null}}catch(e){return C().warn("[ComputeServerStats] Error purging cache:",e),null}}async purgeAllChildren(){this.ensureNotDisposed();let e=await this.getActiveChildren({initialize:!1});if(e===null)return C().warn("[ComputeServerStats] purgeAllChildren: could not read child count"),null;if(e===0)return{totalPurged:0,calls:0,children:0,confident:!0};let t=e*2,r=0;for(let a=0;a<t;a++){let o=await this.purgeCache();o!==null&&(r+=o)}return{totalPurged:r,calls:t,children:e,confident:e===1}}async getServerTime(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/servertime`);if(!e.ok)return C().warn("[ComputeServerStats] Failed to fetch server time:",e.status),null;let t=(await e.text()).trim().replace(/^"|"$/g,""),r=new Date(t);return isNaN(r.getTime())?null:r}catch(e){return C().warn("[ComputeServerStats] Error fetching server time:",e),null}}async getIdleSpan(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/idlespan`);if(!e.ok)return C().warn("[ComputeServerStats] Failed to fetch idle span:",e.status),null;let t=parseFloat((await e.text()).trim());return isNaN(t)?null:t}catch(e){return C().warn("[ComputeServerStats] Error fetching idle span:",e),null}}async launchChildren(){return this.postJson("/launch-children")}async launchChild(e){let t=e===void 0?"/launch-child":`/launch-child?port=${e}`;return this.postJson(t)}async shutdownChildren(e){let t=e===void 0?"/shutdown-children":`/shutdown-children?port=${e}`;return this.postJson(t)}async recycleChildren(e){let t=e===void 0?"/recycle-children":`/recycle-children?port=${e}`;return this.postJson(t)}async postJson(e){this.ensureNotDisposed();try{let t=await this.fetchWithTimeout(`${this.serverUrl}${e}`,{method:"POST"},be.LIFECYCLE_TIMEOUT_MS);if(!t.ok)return C().warn(`[ComputeServerStats] POST ${e} failed:`,t.status),null;let r=await t.text();try{return JSON.parse(r)}catch{return null}}catch(t){return C().warn(`[ComputeServerStats] Error on POST ${e}:`,t),null}}monitor(e,t=5e3){if(this.ensureNotDisposed(),!Number.isFinite(t)||t<be.MIN_MONITOR_INTERVAL_MS)throw new RangeError(`monitor() intervalMs must be a finite number >= ${be.MIN_MONITOR_INTERVAL_MS}ms, got ${t}. Sub-${be.MIN_MONITOR_INTERVAL_MS}ms polling would hot-loop the server.`);let r=!0,a=null;C().info(`🔄 Starting server stats monitoring every ${t}ms`);let o=async()=>{if(a!==null&&(this.activeTimeouts.delete(a),a=null),!(!r||this.disposed)){try{let c=await this.getServerStats();if(!r||this.disposed)return;try{e(c)}catch(s){C().error("[ComputeServerStats] Monitor callback threw:",s)}}catch(c){!r||this.disposed?C().debug("[ComputeServerStats] Monitor poll cancelled during shutdown:",c):C().error("[ComputeServerStats] Failed to fetch stats during monitor:",c)}r&&!this.disposed&&(a=setTimeout(()=>{o()},t),this.activeTimeouts.add(a))}},d=()=>{r=!1,a!==null&&(clearTimeout(a),this.activeTimeouts.delete(a),a=null),this.activeMonitors.delete(d)};return this.activeMonitors.add(d),o(),d}async dispose(){if(!this.disposed){this.disposed=!0;for(let e of this.activeMonitors)e();this.activeMonitors.clear();for(let e of this.activeTimeouts)clearTimeout(e);this.activeTimeouts.clear()}}ensureNotDisposed(){if(this.disposed)throw new ae("ComputeServerStats has been disposed and cannot be used",Z.INVALID_STATE,{context:{disposed:this.disposed}})}};ie(Ye,"DEFAULT_TIMEOUT_MS",5e3),ie(Ye,"LIFECYCLE_TIMEOUT_MS",6e4),ie(Ye,"MIN_MONITOR_INTERVAL_MS",100);function Ee(n,e){if(!n||typeof n!="object")return;let t=n;if(Or(t,e))return t[e];let r=Rr(t).get(e.toLowerCase());return r===void 0?void 0:t[r]}var Or=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),ct=new WeakMap;function Rr(n){let e=Object.keys(n),t=ct.get(n);if(t&&t.keyCount===e.length)return t.map;let r=new Map;for(let a of e){let o=a.toLowerCase();r.has(o)||r.set(o,a)}return ct.set(n,{keyCount:e.length,map:r}),r}var Ar=async(n,e,t=null)=>{if(typeof document>"u"||typeof Blob>"u")throw new ae("File download functionality is only available in browser environments. This function requires the DOM API (document, Blob).",Z.BROWSER_ONLY,{context:{environment:typeof window<"u"?"browser (SSR)":"Node.js",documentAvailable:typeof document<"u",blobAvailable:typeof Blob<"u"}});try{let r=await Lr(n,t);await Dr(r,e)}catch(r){throw r instanceof ae?r:new ae("Failed to download files from compute response",Z.INVALID_STATE,{context:{originalError:r instanceof Error?r.message:String(r)},originalError:r instanceof Error?r:void 0})}},Ue=n=>n.replace(/\\/g,"/").split("/").map(e=>e.trim()).filter(e=>e!==""&&e!=="."&&e!==".."&&!/^[a-zA-Z]:$/.test(e)).join("/"),Mr=n=>n===!0||typeof n=="string"&&n.trim().toLowerCase()==="true",Ur=n=>{let e=[];return n.forEach(t=>{let r=Ee(t,"fileName")??"",a=Ee(t,"fileType")??"",o=Ue(`${r}${a}`);if(o===""){C().warn(`Skipping file with unusable name "${r}${a}": no safe archive path remains after sanitization.`);return}let d=Ee(t,"subFolder"),c=d?Ue(d):"",s=c!==""?`${c}/${o}`:o,p=Ee(t,"data");if(typeof p!="string"||p===""){C().warn(`Skipping file "${s}": item carries no usable data.`);return}if(Mr(Ee(t,"isBase64Encoded")))try{e.push({fileName:o,content:Cr(p),path:s})}catch(b){C().warn(`Skipping file "${s}": base64 decode failed.`,b)}else e.push({fileName:o,content:p,path:s})}),e},Pr=3e4,kr=async n=>(await Promise.all(n.map(async e=>{try{let t=typeof AbortSignal<"u"&&typeof AbortSignal.timeout=="function"?AbortSignal.timeout(Pr):void 0,r=await fetch(e.filePath,{signal:t});if(!r.ok)return C().warn(`Failed to fetch additional file from URL: ${e.filePath}`),null;let a=await r.arrayBuffer(),o=Ue(e.fileName);if(o==="")return C().warn(`Skipping fetched file with unusable name: ${e.fileName}`),null;let d=e.subFolder?Ue(e.subFolder):"";return{fileName:o,content:new Uint8Array(a),path:d!==""?`${d}/${o}`:o}}catch(t){return C().error(`Error fetching additional file from URL: ${e.filePath}`,t),null}}))).filter(e=>e!==null),Lr=async(n,e)=>{let t=Ur(n);if(e){let a=Array.isArray(e)?e:[e];t.push(...await kr(a))}let r=new Set;return t.map(a=>{let o=gt(a.path,r);return r.add(o),o===a.path?a:(C().warn(`Duplicate archive path "${a.path}" — storing as "${o}".`),{...a,path:o,fileName:o.slice(o.lastIndexOf("/")+1)})})};async function Dr(n,e){let{zip:t,strToU8:r}=await At(()=>import("./BzBbrBKd.js"),[],import.meta.url),a={},o=new Set;n.forEach(s=>{let p=gt(s.path,o);o.add(p),p!==s.path&&C().warn(`Duplicate archive path "${s.path}" — storing as "${p}".`),a[p]=typeof s.content=="string"?r(s.content):s.content});let d=await new Promise((s,p)=>{t(a,{level:6},(b,O)=>b?p(b):s(O))}),c=new Blob([d],{type:"application/zip"});Fr(c,`${e}.zip`)}function gt(n,e){if(!e.has(n))return n;let t=n.lastIndexOf("/"),r=n.lastIndexOf("."),a=r>t?r:n.length,o=n.slice(0,a),d=n.slice(a);for(let c=2;;c++){let s=`${o}-${c}${d}`;if(!e.has(s))return s}}function Fr(n,e){if(typeof document>"u")throw new ae("saveFile requires a browser environment with DOM API access.",Z.BROWSER_ONLY,{context:{function:"saveFile",requiredAPI:"document"}});let t=URL.createObjectURL(n),r=document.createElement("a");r.href=t,r.download=e,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(t),1e4)}const $r={FILE_UPLOAD:{MAX_SIZE_MB:300,MAX_SIZE_BYTES:300*1024*1024},TIMEOUTS:{SOLVE_STATE_DURATION:3500,DRAWER_ANIMATION_MS:350},SOLVING_INDICATOR:{FAST_THRESHOLD_MS:200,SLOW_THRESHOLD_MS:600,ANIMATION_DELAY:300,HISTORY_SIZE:3},FILE_SIZE:{BYTES_PER_KB:1024}},Br={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif",".svg":"image/svg+xml",".json":"application/json",".txt":"text/plain",".csv":"text/csv",".xml":"application/xml",".pdf":"application/pdf",".3dm":"model/vnd.3dm",".obj":"model/obj",".stl":"model/stl"};function Vr(n){const e=(n.fileType??"").toLowerCase(),t=Br[e]??"application/octet-stream";let r;if(n.isBase64Encoded){const d=atob(n.data),c=new Uint8Array(d.length);for(let s=0;s<d.length;s++)c[s]=d.charCodeAt(s);r=new Blob([c],{type:t})}else r=new Blob([n.data],{type:t});const a=`${n.fileName}${n.fileType??""}`,o=document.createElement("a");o.href=URL.createObjectURL(r),o.download=a,o.click(),URL.revokeObjectURL(o.href)}async function Wn(n,e="grasshopper-output"){try{const t=Array.isArray(n)?n:[n];if(t.length===0){console.warn("[FileDownload] No files to download");return}if(t.length===1){Vr(t[0]);return}await Ar(t,e)}catch(t){throw console.error("[FileDownload] Error downloading files:",t),t}}function zn(n){return typeof n=="object"&&n!==null&&"fileName"in n&&"data"in n&&"isBase64Encoded"in n}function ut(n){const e=new Mt;for(const t of n){const r=t.replace(/\([a-f0-9-]{36}\)$/i,"(...)").trim();e.set(r,(e.get(r)??0)+1)}return Array.from(e.entries()).map(([t,r])=>({message:t,count:r})).sort((t,r)=>r.count-t.count)}function Hn(n){if(n===0)return"0 Bytes";const e=$r.FILE_SIZE.BYTES_PER_KB,t=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(n)/Math.log(e));return Math.round(n/Math.pow(e,r)*100)/100+" "+t[r]}function Yn(n){return Math.ceil(n.length*3/4)}var jr=_("<!> Compute Messages",1),ht=_("<!> <!>",1),Wr=_('<!> <!> <span class="text-sm font-medium text-destructive"> </span>',1),zr=_('<span class="ml-1 font-medium text-destructive/70"> </span>'),Hr=_('<li class="gap-2 text-sm flex text-destructive/90"><span class="shrink-0">•</span> <span class="flex-1"> <!></span></li>'),Yr=_('<div class="max-h-60 px-4 py-3 overflow-y-auto border-t border-destructive bg-card"><ul class="space-y-2"></ul></div>'),Gr=_('<div class="overflow-hidden rounded-lg border border-destructive bg-card"><div class="px-4 py-3 flex items-center"><!></div> <!></div>'),Kr=_('<!> <!> <span class="text-sm font-medium text-warning"> </span>',1),Jr=_('<span class="ml-1 font-medium text-warning/70"> </span>'),qr=_('<li class="gap-2 text-sm flex text-muted-foreground"><span class="shrink-0">•</span> <span class="flex-1"> <!></span></li>'),Zr=_('<div class="max-h-60 px-4 py-3 overflow-y-auto border-t border-warning/50 bg-card"><ul class="space-y-2"></ul></div>'),Xr=_('<div class="overflow-hidden rounded-lg border border-warning/50 bg-card"><div class="px-4 py-3 flex items-center"><!></div> <!></div>'),Qr=_('<!> <div class="space-y-3 pr-2 overflow-y-auto" style="max-height: calc(80vh - 180px);"><!> <!></div>',1);function en(n,e){oe(e,!0);let t=f(e,"errors",19,()=>[]),r=f(e,"warnings",19,()=>[]),a=ye(!1),o=ye(!0),d=ye(!1);const c=N(()=>ut(t())),s=N(()=>ut(r())),p=N(()=>t().length+r().length);var b=U(),O=y(b);W(O,()=>Rt,(k,m)=>{m(k,{get open(){return i(a)},set open(v){X(a,v,!0)},children:(v,x)=>{var I=ht(),D=y(I);W(D,()=>yr,(ee,J)=>{J(ee,{class:"focus:outline-none",children:(te,de)=>{var g=U(),R=y(g);z(R,()=>e.trigger),l(te,g)},$$slots:{default:!0}})});var K=w(D,2);W(K,()=>Ct,(ee,J)=>{J(ee,{class:"max-w-2xl max-h-[80vh]",children:(te,de)=>{var g=Qr(),R=y(g);W(R,()=>Tt,(A,M)=>{M(A,{children:(V,q)=>{var L=ht(),P=y(L);W(P,()=>Et,(F,j)=>{j(F,{class:"gap-2 flex items-center",children:(ue,Ce)=>{var re=jr(),_e=y(re);Ge(_e,{class:"h-5 w-5"}),Re(),l(ue,re)},$$slots:{default:!0}})});var ce=w(P,2);W(ce,()=>Ot,(F,j)=>{j(F,{children:(ue,Ce)=>{Re();var re=_t();Y(()=>Q(re,`${i(p)??""}
|
|
2
|
+
${i(p)===1?"issue":"issues"} detected during solve`)),l(ue,re)},$$slots:{default:!0}})}),l(V,L)},$$slots:{default:!0}})});var S=w(R,2),E=h(S);{var H=A=>{var M=U(),V=y(M);W(V,()=>it,(q,L)=>{L(q,{get open(){return i(o)},set open(P){X(o,P,!0)},children:(P,ce)=>{var F=Gr(),j=h(F),ue=h(j);W(ue,()=>lt,(re,_e)=>{_e(re,{class:"-mx-4 -my-3 gap-3 px-4 py-3 flex flex-1 items-center text-left transition-colors hover:bg-destructive/5",children:(Se,Be)=>{var ne=Wr(),he=y(ne);{var ve=$=>{ot($,{class:"h-4 w-4 shrink-0 text-destructive"})},fe=$=>{st($,{class:"h-4 w-4 shrink-0 text-destructive"})};T(he,$=>{i(o)?$(ve):$(fe,-1)})}var we=w(he,2);Ge(we,{class:"h-4 w-4 shrink-0 text-destructive"});var pe=w(we,2),ge=h(pe,!0);u(pe),Y(()=>Q(ge,t().length===1?"1 Error":`${t().length} Errors`)),l(Se,ne)},$$slots:{default:!0}})}),u(j);var Ce=w(j,2);W(Ce,()=>dt,(re,_e)=>{_e(re,{class:"space-y-0",children:(Se,Be)=>{var ne=Yr(),he=h(ne);Me(he,21,()=>i(c),({message:ve,count:fe})=>ve,(ve,fe)=>{let we=()=>i(fe).message,pe=()=>i(fe).count;var ge=Hr(),$=w(h(ge),2),Te=h($),Ve=w(Te);{var je=Ne=>{var Ie=zr(),We=h(Ie);u(Ie),Y(()=>Q(We,`×${pe()??""}`)),l(Ne,Ie)};T(Ve,Ne=>{pe()>1&&Ne(je)})}u($),u(ge),Y(()=>Q(Te,`${we()??""} `)),l(ve,ge)}),u(he),u(ne),l(Se,ne)},$$slots:{default:!0}})}),u(F),l(P,F)},$$slots:{default:!0}})}),l(A,M)};T(E,A=>{t().length>0&&A(H)})}var xe=w(E,2);{var B=A=>{var M=U(),V=y(M);W(V,()=>it,(q,L)=>{L(q,{get open(){return i(d)},set open(P){X(d,P,!0)},children:(P,ce)=>{var F=Xr(),j=h(F),ue=h(j);W(ue,()=>lt,(re,_e)=>{_e(re,{class:"-mx-4 -my-3 gap-3 px-4 py-3 flex flex-1 items-center text-left transition-colors hover:bg-warning/5",children:(Se,Be)=>{var ne=Kr(),he=y(ne);{var ve=$=>{ot($,{class:"h-4 w-4 shrink-0 text-warning"})},fe=$=>{st($,{class:"h-4 w-4 shrink-0 text-warning"})};T(he,$=>{i(d)?$(ve):$(fe,-1)})}var we=w(he,2);ft(we,{class:"h-4 w-4 shrink-0 text-warning"});var pe=w(we,2),ge=h(pe,!0);u(pe),Y(()=>Q(ge,r().length===1?"1 Warning":`${r().length} Warnings`)),l(Se,ne)},$$slots:{default:!0}})}),u(j);var Ce=w(j,2);W(Ce,()=>dt,(re,_e)=>{_e(re,{class:"space-y-0",children:(Se,Be)=>{var ne=Zr(),he=h(ne);Me(he,21,()=>i(s),({message:ve,count:fe})=>ve,(ve,fe)=>{let we=()=>i(fe).message,pe=()=>i(fe).count;var ge=qr(),$=w(h(ge),2),Te=h($),Ve=w(Te);{var je=Ne=>{var Ie=Jr(),We=h(Ie);u(Ie),Y(()=>Q(We,`×${pe()??""}`)),l(Ne,Ie)};T(Ve,Ne=>{pe()>1&&Ne(je)})}u($),u(ge),Y(()=>Q(Te,`${we()??""} `)),l(ve,ge)}),u(he),u(ne),l(Se,ne)},$$slots:{default:!0}})}),u(F),l(P,F)},$$slots:{default:!0}})}),l(A,M)};T(xe,A=>{r().length>0&&A(B)})}u(S),l(te,g)},$$slots:{default:!0}})}),l(v,I)},$$slots:{default:!0}})}),l(n,b),se()}var tn=_('<button class="gap-1.5 px-2 py-0.5 rounded flex cursor-pointer items-center transition-colors hover:bg-muted"><!></button>'),rn=_('<div class="flex items-center"><!></div>');function vt(n,e){oe(e,!0);const t=N(()=>e.item.getProps());var r=U(),a=y(r);{var o=c=>{var s=tn(),p=h(s);W(p,()=>e.item.component,(b,O)=>{O(b,me(()=>i(t)))}),u(s),yt("click",s,function(...b){e.item.onClick?.apply(this,b)}),l(c,s)},d=c=>{var s=rn(),p=h(s);W(p,()=>e.item.component,(b,O)=>{O(b,me(()=>i(t)))}),u(s),l(c,s)};T(a,c=>{e.item.onClick?c(o):c(d,-1)})}l(n,r),se()}xt(["click"]);var nn=_('<!> <span class="font-medium"> </span>',1),an=_('<span class="text-border">•</span>'),on=_('<!> <!> <span class="font-medium"> </span>',1),sn=_("<div><!> <!></div>"),ln=_('<div class="gap-4 flex items-center"><!></div>'),dn=_('<footer class="px-4 gap-4 text-xs h-7 flex shrink-0 items-center justify-between border-t border-border bg-background text-muted-foreground select-none"><div class="gap-4 flex items-center"><!> <!> <!></div> <div class="gap-4 ml-auto flex items-center"><!> <p> </p></div></footer>');function cn(n,e){oe(e,!0);let t=f(e,"errors",19,()=>[]),r=f(e,"warnings",19,()=>[]),a=f(e,"copyrightName",3,"Selva"),o=(()=>{try{return Nt()}catch{return null}})();const d=N(()=>o?Array.from(o.items.values()).filter(g=>g.position==="left").sort((g,R)=>(R.priority??0)-(g.priority??0)):[]),c=N(()=>o?Array.from(o.items.values()).filter(g=>g.position==="right").sort((g,R)=>(R.priority??0)-(g.priority??0)):[]);let s=new Date().getFullYear();const p=N(()=>t().length>0||r().length>0),b=N(()=>t().length+r().length),O=N(()=>e.footerText?e.footerText.replace("{name}",a()).replace("{year}",String(s)):`by ${a()} © ${s}`);var k=dn(),m=h(k),v=h(m);Me(v,17,()=>i(d),g=>g.id,(g,R)=>{vt(g,{get item(){return i(R)}})});var x=w(v,2);{var I=g=>{en(g,{get errors(){return t()},get warnings(){return r()},trigger:S=>{var E=sn(),H=h(E);{var xe=M=>{var V=nn(),q=y(V);Ge(q,{class:"h-3.5 w-3.5"});var L=w(q,2),P=h(L);u(L),Y(()=>Q(P,`${t().length??""} Error${t().length!==1?"s":""}`)),l(M,V)};T(H,M=>{t().length>0&&M(xe)})}var B=w(H,2);{var A=M=>{var V=on(),q=y(V);{var L=j=>{var ue=an();l(j,ue)};T(q,j=>{t().length>0&&j(L)})}var P=w(q,2);ft(P,{class:"h-3.5 w-3.5"});var ce=w(P,2),F=h(ce);u(ce),Y(()=>Q(F,`${r().length??""} Warning${r().length!==1?"s":""}`)),l(M,V)};T(B,M=>{r().length>0&&M(A)})}u(E),Y(()=>{Oe(E,1,`gap-1.5 px-2 py-1 rounded flex cursor-pointer items-center transition-colors hover:bg-muted ${t().length>0?"text-destructive hover:bg-destructive/10":"text-warning hover:bg-warning/10"}`),Ae(E,"title",`${i(b)} ${i(b)===1?"issue":"issues"}`)}),l(S,E)},$$slots:{trigger:!0}})};T(x,g=>{i(p)&&g(I)})}var D=w(x,2);{var K=g=>{var R=ln(),S=h(R);z(S,()=>e.children),u(R),l(g,R)};T(D,g=>{e.children&&g(K)})}u(m);var ee=w(m,2),J=h(ee);Me(J,17,()=>i(c),g=>g.id,(g,R)=>{vt(g,{get item(){return i(R)}})});var te=w(J,2),de=h(te,!0);u(te),u(ee),u(k),Y(()=>Q(de,i(O))),l(n,k),se()}var un=_('<header><div class="flex h-(--header-h) items-center px-(--page-px)"><!></div></header>'),hn=_('<!> <main class="flex-1 overflow-y-auto"><!></main>',1),vn=_('<div class="bottom-0 sticky z-10 shrink-0"><!></div>'),fn=_("<div><!> <div><!></div> <!></div>");function Gn(n,e){oe(e,!0);let t=f(e,"showHeader",3,!0),r=f(e,"homeUrl",3,"/"),a=f(e,"title",3,void 0),o=f(e,"logo",3,"/favicon/favicon.svg"),d=f(e,"brandName",3,"Selva"),c=f(e,"copyrightName",3,void 0),s=f(e,"showModeToggle",3,!0),p=f(e,"headerClass",3,""),b=f(e,"mode",3,"scroll"),O=f(e,"showFooter",3,!1),k=f(e,"errors",19,()=>[]),m=f(e,"warnings",19,()=>[]),v=f(e,"class",3,""),x=f(e,"bodyClass",3,"");const I=N(()=>c()??d()),D=N(()=>b()==="fixed"?`flex flex-col h-screen overflow-hidden bg-background ${v()}`:`flex flex-col min-h-screen bg-background ${v()}`),K=N(()=>b()==="fixed"?`flex flex-1 min-h-0 ${e.sidenav?"flex-row":"flex-col"} ${x()}`.trim():`flex-1 ${e.sidenav?"flex flex-row":""} ${x()}`.trim()),ee="";var J=fn(),te=h(J);{var de=B=>{var A=U(),M=y(A);{var V=L=>{var P=un(),ce=h(P),F=h(ce);z(F,()=>e.header),u(ce),u(P),Y(()=>Oe(P,1,`top-0 backdrop-blur-sm sticky z-40 border-b border-border bg-background/90 ${p()}`)),l(L,P)},q=L=>{er(L,{get homeUrl(){return r()},get title(){return a()},get logo(){return o()},get brandName(){return d()},get showModeToggle(){return s()},get navItems(){return e.navItems},get rightContent(){return e.rightContent},get subnav(){return e.subnav},get class(){return p()}})};T(M,L=>{e.header?L(V):L(q,-1)})}l(B,A)};T(te,B=>{t()&&B(de)})}var g=w(te,2);wt(g,ee);var R=h(g);{var S=B=>{var A=hn(),M=y(A);z(M,()=>e.sidenav);var V=w(M,2),q=h(V);z(q,()=>e.children),u(V),l(B,A)},E=B=>{var A=U(),M=y(A);z(M,()=>e.children),l(B,A)};T(R,B=>{e.sidenav?B(S):B(E,-1)})}u(g);var H=w(g,2);{var xe=B=>{var A=vn(),M=h(A);cn(M,{get errors(){return k()},get warnings(){return m()},get copyrightName(){return i(I)},get footerText(){return e.footerText},children:(V,q)=>{var L=U(),P=y(L);{var ce=F=>{var j=U(),ue=y(j);z(ue,()=>e.footerChildren),l(F,j)};T(P,F=>{e.footerChildren&&F(ce)})}l(V,L)},$$slots:{default:!0}}),u(A),l(B,A)};T(H,B=>{O()&&B(xe)})}u(J),Y(()=>{Oe(J,1,nt(i(D))),Oe(g,1,nt(i(K)))}),l(n,J),se()}var pn=_('<div class="bg-border w-px self-stretch"></div> <form method="POST" action="/logout"><button type="submit" title="Log out" class="text-muted-foreground hover:text-foreground hover:bg-muted rounded-full p-2 transition-colors"><!></button></form>',1),gn=_('<div class="border-border bg-card flex items-center gap-px rounded-full border shadow-sm"><div class="flex items-center gap-2 py-1 pr-3 pl-1"><div class="bg-primary text-primary-foreground flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-semibold"> </div> <span class="text-foreground hidden max-w-32 truncate text-sm font-medium sm:block"> </span></div> <!></div>'),mn=_('<a class="border-border bg-card text-muted-foreground hover:text-foreground flex items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium shadow-sm transition-colors"><!> <span class="hidden sm:block">Log in</span></a>');function Kn(n,e){oe(e,!0);const t=N(()=>He.data),r=N(()=>i(t).user??null),a=N(()=>i(t).profile??null),o=N(()=>!i(t).hasProxyAuth),d=N(()=>i(a)?.displayName??i(r)?.email?.split("@")[0]??i(r)?.id??""),c=N(()=>i(d)[0]?.toUpperCase()??""),s=N(()=>`/login?redirectTo=${encodeURIComponent(He.url.pathname+He.url.search)}`);var p=U(),b=y(p);{var O=m=>{var v=gn(),x=h(v),I=h(x),D=h(I,!0);u(I);var K=w(I,2),ee=h(K,!0);u(K),u(x);var J=w(x,2);{var te=de=>{var g=pn(),R=w(y(g),2),S=h(R),E=h(S);ar(E,{class:"h-3.5 w-3.5"}),u(S),u(R),jt(R,H=>Wt?.(H)),l(de,g)};T(J,de=>{i(o)&&de(te)})}u(v),Y(()=>{Q(D,i(c)),Q(ee,i(d))}),l(m,v)},k=m=>{var v=mn(),x=h(v);rr(x,{class:"h-3.5 w-3.5"}),Re(2),u(v),Y(()=>Ae(v,"href",i(s))),l(m,v)};T(b,m=>{i(r)?m(O):m(k,-1)})}l(n,p),se()}export{Gn as A,yr as D,Br as M,jn as N,Kn as U,$r as a,Ar as b,Wn as d,Hn as f,Yn as g,zn as i,Cr as k,C as m,ae as p,Z as u,Ee as w};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as et,s as Nt}from"./DC7Xi_hb.js";import{w as Fe}from"./DzgYcjQZ.js";import{s as P,g as N,h as j,K as pe,R as jt}from"./j7JNK5dy.js";class le{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class qe{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Ve extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function Ot(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function $t(e){return e.split("%25").map(decodeURI).join("%25")}function xt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Le({href:e}){return e.split("#")[0]}function $(){}function Ct(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let o=r.length;for(;o;)t=t*33^r[--o]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function Dt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Mt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&ee.delete(He(e)),Mt(e,t));const ee=new Map;function Bt(e,t){const n=He(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:o,...s}=JSON.parse(r.textContent);r.getAttribute("data-b64")!==null&&(o=Dt(o));const i=r.getAttribute("data-ttl");return i&&ee.set(n,{body:o,init:s,ttl:1e3*Number(i)}),Promise.resolve(new Response(o,s))}return window.fetch(e,t)}function Ft(e,t,n){if(ee.size>0){const r=He(e,n),o=ee.get(r);if(o){if(performance.now()<o.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(o.body,o.init);ee.delete(r)}}return window.fetch(t,n)}function He(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const o=[];t.headers&&o.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&o.push(t.body),r+=`[data-hash="${Ct(...o)}"]`}return r}const qt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,Vt=/^\/\((?:[^)]+)\)$/;function Ht(e){const t=[];return{pattern:e==="/"||Vt.test(e)?/^\/$/:new RegExp(`^${Gt(e).map(r=>{const o=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const a=r.split(/\[(.+?)\](?!\])/);return"/"+a.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return Pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Pe(String.fromCharCode(...c.slice(2).split("-").map(g=>parseInt(g,16))));const f=qt.exec(c),[,d,_,h,u]=f;return t.push({name:h,matcher:u,optional:!!d,rest:!!_,chained:_?l===1&&a[0]==="":!1}),_?"([^]*?)":d?"([^/]*)?":"([^/]+?)"}return Pe(c)}).join("")}).join("")}/?$`),params:t}}function Yt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Gt(e){return e.slice(1).split("/").filter(Yt)}function Kt(e,t,n){const r={},o=e.slice(1),s=o.filter(i=>i!==void 0);let a=0;for(let i=0;i<t.length;i+=1){const c=t[i];let l=o[i-a];if(c.chained&&c.rest&&a&&(l=o.slice(i-a,i+1).filter(f=>f).join("/"),a=0),l===void 0)if(c.rest)l="";else continue;if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const f=t[i+1],d=o[i+1];f&&!f.rest&&f.optional&&d&&c.chained&&(a=0),!f&&!d&&Object.keys(r).length===s.length&&(a=0);continue}if(c.optional&&c.chained){a++;continue}return}if(!a)return r}function Pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Wt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const o=new Set(t);return Object.entries(n).map(([i,[c,l,f]])=>{const{pattern:d,params:_}=Ht(i),h={id:i,exec:u=>{const g=d.exec(u);if(g)return Kt(g,_,r)},errors:[1,...f||[]].map(u=>e[u]),layouts:[0,...l||[]].map(a),leaf:s(c)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function s(i){const c=i<0;return c&&(i=~i),[c,e[i]]}function a(i){return i===void 0?i:[o.has(i),e[i]]}}function lt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function tt(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_10yck73?.base??"",Jt=globalThis.__sveltekit_10yck73?.assets??L??"",Xt="1783922402954",ft="sveltekit:snapshot",ut="sveltekit:scroll",dt="sveltekit:states",zt="sveltekit:pageurl",K="sveltekit:history",re="sveltekit:navigation",F={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},fe=location.origin;function Ye(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function V(){return{x:pageXOffset,y:pageYOffset}}function H(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const nt={...F,"":F.hover};function ht(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function pt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=ht(e)}}function $e(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const i=location.hash.split("#")[1]||"/";r.hash=`#${i}${r.hash}`}}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!o||Ae(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=r?.origin===fe&&e.hasAttribute("download");return{url:r,external:s,target:o,download:a}}function _e(e){let t=null,n=null,r=null,o=null,s=null,a=null,i=e;for(;i&&i!==document.documentElement;)r===null&&(r=H(i,"preload-code")),o===null&&(o=H(i,"preload-data")),t===null&&(t=H(i,"keepfocus")),n===null&&(n=H(i,"noscroll")),s===null&&(s=H(i,"reload")),a===null&&(a=H(i,"replacestate")),i=ht(i);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:nt[r??"off"],preload_data:nt[o??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(a)}}function rt(e){const t=Fe(e);let n=!0;function r(){n=!0,t.update(a=>a)}function o(a){n=!1,t.set(a)}function s(a){let i;return t.subscribe(c=>{(i===void 0||n&&c!==i)&&a(i=c)})}return{notify:r,set:o,subscribe:s}}const _t={v:$};function Zt(){const{set:e,subscribe:t}=Fe(!1);let n;async function r(){clearTimeout(n);try{const o=await fetch(`${Jt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!o.ok)return!1;const a=(await o.json()).version!==Xt;return a&&(e(!0),_t.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:r}}function Ae(e,t,n){return e.origin!==fe||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Yn(e){}const Qt=-1,en=-2,tn=-3,nn=-4,rn=-5,an=-6,on=-7,mt=2**32-1,xe=mt-1;function sn(e){return!(!Number.isInteger(e)||e<0||e>xe)}function cn(e){return!(!Number.isInteger(e)||e<0||e>mt)}function ln(e){return Uint8Array.fromBase64(e).buffer}function fn(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function un(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t.charCodeAt(o);return r.buffer}const dn=typeof Uint8Array.fromBase64=="function",hn=typeof process=="object"&&process.versions?.node!==void 0,pn=dn?ln:hn?fn:un;function Gn(e,t){return gt(JSON.parse(e),t)}function gt(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let o=null;function s(a,i=!1){if(a===Qt)return;if(a===tn)return NaN;if(a===nn)return 1/0;if(a===rn)return-1/0;if(a===an)return-0;if(i||typeof a!="number")throw new Error("Invalid input");if(a in r)return r[a];const c=n[a];if(!c||typeof c!="object")r[a]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const l=c[0],f=t&&Object.hasOwn(t,l)?t[l]:void 0;if(f){let d=c[1];if(typeof d!="number"&&(d=n.push(c[1])-1),o??=new Set,o.has(d))throw new Error("Invalid circular reference");return o.add(d),r[a]=f(s(d)),o.delete(d),r[a]}switch(l){case"Date":r[a]=new Date(c[1]);break;case"Set":const d=new Set;r[a]=d;for(let u=1;u<c.length;u+=1)d.add(s(c[u]));break;case"Map":const _=new Map;r[a]=_;for(let u=1;u<c.length;u+=2)_.set(s(c[u]),s(c[u+1]));break;case"RegExp":r[a]=new RegExp(c[1],c[2]);break;case"Object":{const u=c[1];if(typeof n[u]=="object"&&n[u][0]!=="BigInt")throw new Error("Invalid input");r[a]=Object(s(u));break}case"BigInt":r[a]=BigInt(c[1]);break;case"null":const h=Object.create(null);r[a]=h;for(let u=1;u<c.length;u+=2){if(c[u]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");h[c[u]]=s(c[u+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[c[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const u=globalThis[l],g=s(c[1]);r[a]=c[2]!==void 0?new u(g,c[2],c[3]):new u(g);break}case"ArrayBuffer":{const u=c[1];if(typeof u!="string")throw new Error("Invalid ArrayBuffer encoding");const g=pn(u);r[a]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const u=l.slice(9);r[a]=Temporal[u].from(c[1]);break}case"URL":{const u=new URL(c[1]);r[a]=u;break}case"URLSearchParams":{const u=new URLSearchParams(c[1]);r[a]=u;break}default:throw new Error(`Unknown type ${l}`)}}else if(c[0]===on){const l=c[1];if(!cn(l))throw new Error("Invalid input");const f=[];r[a]=f,f[xe]=void 0,delete f[xe];for(let d=2;d<c.length;d+=2){const _=c[d];if(!sn(_)||_>=l)throw new Error("Invalid input");f[_]=s(c[d+1])}f.length=l}else{const l=new Array(c.length);r[a]=l;for(let f=0;f<c.length;f+=1){const d=c[f];d!==en&&(l[f]=s(d))}}else{const l={};r[a]=l;for(const f of Object.keys(c)){if(f==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=c[f];l[f]=s(d)}}return r[a]}return s(0)}const wt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...wt];const _n=new Set([...wt]);[..._n];function mn(e){return e.filter(t=>t!=null)}const gn="x-sveltekit-invalidated",wn="x-sveltekit-trailing-slash";function Y(e,t){return e+"/"+t}function me(e){return e instanceof le||e instanceof Ve?e.status:500}function yn(e){return e instanceof Ve?e.text:"Internal Error"}let S,ae,Ne;const vn=et.toString().includes("$$")||/function \w+\(\) \{\}/.test(et.toString()),at="a:";vn?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(at)},ae={current:null},Ne={current:!1}):(S=new class{#e=P({});get data(){return N(this.#e)}set data(t){j(this.#e,t)}#t=P(null);get form(){return N(this.#t)}set form(t){j(this.#t,t)}#n=P(null);get error(){return N(this.#n)}set error(t){j(this.#n,t)}#r=P({});get params(){return N(this.#r)}set params(t){j(this.#r,t)}#a=P({id:null});get route(){return N(this.#a)}set route(t){j(this.#a,t)}#o=P({});get state(){return N(this.#o)}set state(t){j(this.#o,t)}#s=P(-1);get status(){return N(this.#s)}set status(t){j(this.#s,t)}#i=P(new URL(at));get url(){return N(this.#i)}set url(t){j(this.#i,t)}},ae=new class{#e=P(null);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},Ne=new class{#e=P(!1);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},_t.v=()=>Ne.current=!0);function Se(e){Object.assign(S,e)}const bn="/__data.json",kn=".html__data.json";function En(e){return e.endsWith(".html")?e.replace(/\.html$/,kn):e.replace(/\/$/,"")+bn}async function*An(e,t){let n=!1,r="";const o=new TextDecoder;for(;;){let s=r.indexOf(t);for(;s!==-1;)yield r.slice(0,s),r=r.slice(s+t.length),s=r.indexOf(t);if(n){r&&(yield r);return}const a=await e.read();n=a.done,a.value&&(r+=o.decode(a.value,{stream:!0})),n&&(r+=o.decode())}}async function*Sn(e){for await(const t of An(e,`
|
|
2
|
+
`)){const n=t.trim();n&&(yield JSON.parse(n))}}const{tick:yt}=Nt,Rn=new Set(["icon","shortcut icon","apple-touch-icon"]);let Z=null;const M=lt(ut)??{},oe=lt(ft)??{},D={url:rt({}),page:rt({}),navigating:Fe(null),updated:Zt()};function Ge(e){M[e]=V()}function In(e,t){let n=e+1;for(;M[n];)delete M[n],n+=1;for(n=t+1;oe[n];)delete oe[n],n+=1}function J(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise($)}async function vt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let Ke,Ce,ge,C,De,b;const we=[],ye=[];let T=null;function se(){T?.fork?.then(e=>e?.discard()),T=null,G={element:void 0,href:void 0}}const he=new Map,bt=new Set,Tn=new Set,te=new Set;let p={branch:[],error:null,url:null,nav:null},We=!1,ve=!1,ot=!0,ie=!1,Q=!1,kt=!1,ue=!1,X,A,U,O;const ne=new Set;let je;const be=new Map,ke=new Map;async function Xn(e,t,n){if(globalThis.__sveltekit_10yck73.data){const{q:s={},p:a={},l:i={},f:c={}}=globalThis.__sveltekit_10yck73.data;for(const l in s)s[l];for(const l in i)i[l];for(const l in c)c[l];for(const l in a)a[l]}document.URL!==location.href&&(location.href=location.href),b=e,await e.hooks.init?.(),Ke=Wt(e),C=document.documentElement,De=t,Ce=e.nodes[0],ge=e.nodes[1],Ce(),ge(),A=history.state?.[K],U=history.state?.[re],A||(A=U=Date.now(),history.replaceState({...history.state,[K]:A,[re]:U},""));const r=M[A];function o(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(o(),await Mn(De,n)):(await W({type:"enter",url:Ye(b.hash?Fn(new URL(location.href)):location.href),replace_state:!0}),o()),Dn()}async function Un(e=!0,t=!0){if(await(je||=Promise.resolve()),!je)return;je=null;const n=O={},r=await de(p.url,!0);se();const o=new Map;if(ue){for(const a of be.values())for(const{resource:i}of a.values())i.refresh();for(const[a,i]of ke)for(const[c,{resource:l}]of i){const f=Y(a,c),d=l.reconnect();d.catch($),o.set(f,d)}}if(e){const a=S.state,i=r&&await ze(r);if(!i||n!==O)return;if(i.type==="redirect")return Re(new URL(i.location,p.url).href,{replaceState:!0},1,n);t||(i.props.page.state=a),Se(i.props.page),p={...i.state,nav:p.nav},Me(),X.$set(i.props)}else Me();const s=[];for(const a of be.values())for(const{resource:i}of a.values())s.push(i);for(const[a,i]of ke)for(const c of i.keys()){const l=Y(a,c),f=o.get(l);f&&s.push(f)}await Promise.all(s).catch($)}function Me(){we.length=0,ue=!1}function Et(e){ye.some(t=>t?.snapshot)&&(oe[e]=ye.map(t=>t?.snapshot?.capture()))}function At(e){oe[e]?.forEach((t,n)=>{ye[n]?.snapshot?.restore(t)})}function st(){Ge(A),tt(ut,M),Et(U),tt(ft,oe)}async function Re(e,t,n,r){let o,s;t.invalidateAll&&se(),await W({type:"goto",url:Ye(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{if(t.invalidateAll){ue=!0,o=new Set;for(const[a,i]of be)for(const[c,l]of i)l.resource?.reset(),o.add(Y(a,c));s=new Set;for(const[a,i]of ke)for(const c of i.keys())s.add(Y(a,c))}t.invalidate&&t.invalidate.forEach(xn)}}),t.invalidateAll&&pe().then(pe).then(()=>{for(const[a,i]of be)for(const[c,{resource:l}]of i)o?.has(Y(a,c))&&l.start();for(const[a,i]of ke)for(const[c,{resource:l}]of i)s?.has(Y(a,c))&&l.reconnect()})}async function Ln(e){if(e.id!==T?.id){se();const t={};ne.add(t),T={id:e.id,token:t,promise:ze({...e,preload:t}).then(n=>(ne.delete(t),n.type==="loaded"&&n.state.error&&se(),n)),fork:null}}return T.promise}async function Oe(e){const t=(await de(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function St(e,t,n){const r={params:p.params,route:{id:p.route?.id??null},url:new URL(location.href)};if(p={...e.state,nav:r},Se(e.props.page),X=new b.root({target:t,props:{...e.props,stores:D,components:ye},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){const o={from:null,to:{...r,scroll:M[A]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};te.forEach(s=>s(o))}At(U),ve=!0}async function ce({url:e,params:t,branch:n,errors:r,status:o,error:s,route:a,form:i}){let c="never";if(L&&(e.pathname===L||e.pathname===L+"/"))c="always";else for(const u of n)u?.slash!==void 0&&(c=u.slash);e.pathname=Ot(e.pathname,c),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:s,route:a},props:{constructors:mn(n).map(u=>u.node.component),page:Te(S)}};i!==void 0&&(l.props.form=i);let f={},d=!S,_=0;for(let u=0;u<Math.max(n.length,p.branch.length);u+=1){const g=n[u],R=p.branch[u];g?.data!==R?.data&&(d=!0),g&&(f={...f,...g.data},d&&(l.props[`data_${_}`]=f),_+=1)}return(!p.url||e.href!==p.url.href||p.error!==s||i!==void 0&&i!==S.form||d)&&(l.props.page={error:s,params:t,route:{id:a?.id??null},state:{},status:o,url:new URL(e),form:i??null,data:d?f:S.data}),l}async function Je({loader:e,parent:t,url:n,params:r,route:o,server_data_node:s}){let a=null;const i={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:s,universal:c.universal?.load?{type:"data",data:a,uses:i}:null,data:a??s?.data??null,slash:c.universal?.trailingSlash??s?.slash}}function Pn(e,t,n){let r=e instanceof Request?e.url:e;const o=new URL(r,n);o.origin===n.origin&&(r=o.href.slice(n.origin.length));const s=ve?Ft(r,o.href,t):Bt(r,t);return{resolved:o,promise:s}}function it(e,t,n,r,o,s){if(ue)return!0;if(!o)return!1;if(o.parent&&e||o.route&&t||o.url&&n)return!0;for(const a of o.search_params)if(r.has(a))return!0;for(const a of o.params)if(s[a]!==p.params[a])return!0;for(const a of o.dependencies)if(we.some(i=>i(new URL(a))))return!0;return!1}function Xe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Nn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const o=e.searchParams.getAll(r),s=t.searchParams.getAll(r);o.every(a=>s.includes(a))&&s.every(a=>o.includes(a))&&n.delete(r)}return n}function ct({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Te(S),constructors:[]}}}async function ze({id:e,invalidating:t,url:n,params:r,route:o,preload:s}){if(T?.id===e)return ne.delete(T.token),T.promise;const{errors:a,layouts:i,leaf:c}=o,l=[...i,c];a.forEach(w=>w?.().catch($)),l.forEach(w=>w?.[1]().catch($));let f=null;const d=p.url?e!==Ee(p.url):!1,_=p.route?o.id!==p.route.id:!1,h=Nn(p.url,n);let u=!1;{const w=l.map((y,k)=>{const E=p.branch[k],v=!!y?.[0]&&(E?.loader!==y[1]||it(u,_,d,h,E.server?.uses,r));return v&&(u=!0),v});if(w.some(Boolean)){try{f=await Ut(n,w)}catch(y){const k=await q(y,{url:n,params:r,route:{id:e}});return s&&ne.has(s)?ct({error:k,url:n,params:r,route:o}):Ie({status:me(y),error:k,url:n,route:o})}if(f.type==="redirect")return f}}const g=f?.nodes;let R=!1;const m=l.map(async(w,y)=>{if(!w)return;const k=p.branch[y],E=g?.[y];if((!E||E.type==="skip")&&w[1]===k?.loader&&!it(R,_,d,h,k.universal?.uses,r))return k;if(R=!0,E?.type==="error")throw E;return Je({loader:w[1],url:n,params:r,route:o,parent:async()=>{const x={};for(let B=0;B<y;B+=1)Object.assign(x,(await m[B])?.data);return x},server_data_node:Xe(E===void 0&&w[0]?{type:"skip"}:E??null,w[0]?k?.server:void 0)})});for(const w of m)w.catch($);const I=[];for(let w=0;w<l.length;w+=1)if(l[w])try{I.push(await m[w])}catch(y){if(y instanceof qe)return{type:"redirect",location:y.location};if(s&&ne.has(s))return ct({error:await q(y,{params:r,url:n,route:{id:o.id}}),url:n,params:r,route:o});let k=me(y),E;if(g?.includes(y))k=y.status??k,E=y.error;else if(y instanceof le)E=y.body;else{if(await D.updated.check())return await vt(),await J(n);E=await q(y,{params:r,url:n,route:{id:o.id}})}const v=await Rt(w,I,a);return v?ce({url:n,params:r,branch:I.slice(0,v.idx).concat(v.node),errors:a,status:k,error:E,route:o}):await Tt(n,{id:o.id},E,k)}else I.push(void 0);return ce({url:n,params:r,branch:I,errors:a,status:200,error:null,route:o,form:t?void 0:null})}async function Rt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ie({status:e,error:t,url:n,route:r}){const o={};let s=null;if(b.server_loads[0]===0)try{const i=await Ut(n,[!0]);if(i.type!=="data"||i.nodes[0]&&i.nodes[0].type!=="data")throw 0;s=i.nodes[0]??null}catch(i){if(!(i instanceof le&&i.status===404)&&(n.origin!==fe||n.pathname!==location.pathname||We))return await J(n)}try{const a=await Je({loader:Ce,url:n,params:o,route:r,parent:()=>Promise.resolve({}),server_data_node:Xe(s)}),i={node:await ge(),loader:ge,universal:null,server:null,data:null};return ce({url:n,params:o,branch:[a,i],status:e,error:t,errors:[],route:null})}catch(a){if(a instanceof qe){await Re(new URL(a.location,location.href),{},0);return}const i=await b.get_error_template(),c=await q(a,{url:n,params:o,route:r}),l=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),f=i({status:e,message:l}),d=new DOMParser().parseFromString(f,"text/html");throw document.documentElement.replaceChild(document.adoptNode(d.head),document.head),document.documentElement.replaceChild(document.adoptNode(d.body),document.body),a}}async function jn(e){const t=e.href;if(he.has(t))return he.get(t);let n;try{const r=(async()=>{let o=await b.hooks.reroute({url:new URL(e),fetch:async(s,a)=>Pn(s,a,e).promise})??e;if(typeof o=="string"){const s=new URL(e);b.hash?s.hash=o:s.pathname=o,o=s}return o})();he.set(t,r),n=await r}catch{he.delete(t);return}return n}async function de(e,t){if(e&&!Ae(e,L,b.hash)){const n=await jn(e);if(!n)return;const r=On(n);for(const o of Ke){const s=o.exec(r);if(s)return{id:Ee(e),invalidating:t,route:o,params:xt(s),url:e}}}}function On(e){return $t(b.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function Ee(e){return(b.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function It({url:e,type:t,intent:n,delta:r,event:o,scroll:s}){let a=!1;const i=Qe(p,n,e,t,s??null);r!==void 0&&(i.navigation.delta=r),o!==void 0&&(i.navigation.event=o);const c={...i.navigation,cancel:()=>{a=!0,i.reject(new Error("navigation cancelled"))}};return ie||bt.forEach(l=>l(c)),a?null:i}async function W({type:e,url:t,popped:n,keepfocus:r,noscroll:o,replace_state:s,state:a={},redirect_count:i=0,nav_token:c={},accept:l=$,block:f=$,event:d}){const _=O;O=c;const h=await de(t,!1),u=e==="enter"?Qe(p,h,t,e):It({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:d});if(!u){f(),O===c&&(O=_);return}const g=A,R=U;l(),ie=!0,ve&&u.navigation.type!=="enter"&&D.navigating.set(ae.current=u.navigation);let m=h&&await ze(h);if(!m){if(Ae(t,L,b.hash))return await J(t,s);m=await Tt(t,{id:null},await q(new Ve(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=h?.url||t,O!==c){u.reject(new Error("navigation aborted"));return}if(!m)return;if(m.type==="redirect"){if(i<20){await W({type:e,url:new URL(m.location,t),popped:n,keepfocus:r,noscroll:o,replace_state:s,state:a,redirect_count:i+1,nav_token:c}),u.fulfil(void 0);return}if(m=await Ie({status:500,error:await q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!m)return}else if(m.props.page.status>=400&&await D.updated.check())return await vt(),await J(t,s);if(Me(),Ge(g),Et(R),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),a=n?n.state:a,!n){const v=s?0:1,x={[K]:A+=v,[re]:U+=v,[dt]:a};(s?history.replaceState:history.pushState).call(history,x,"",t),s||In(A,U)}const I=h&&T?.id===h.id?T.fork:null;T?.fork&&!I?se():(T=null,G={element:void 0,href:void 0}),m.props.page.state=a;let w;if(ve){const v=(await Promise.all(Array.from(Tn,z=>z(u.navigation)))).filter(z=>typeof z=="function");if(v.length>0){let z=function(){v.forEach(Ue=>{te.delete(Ue)})};v.push(z),v.forEach(Ue=>{te.add(Ue)})}const x=u.navigation.to;p={...m.state,nav:{params:x.params,route:x.route,url:x.url}},m.props.page&&(m.props.page.url=t),!r&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const B=I&&await I;B?w=B.commit():(Z=null,X.$set(m.props),Z&&Object.assign(m.props.page,Z),Se(m.props.page),w=jt?.()),kt=!0}else await St(m,De,!1);const{activeElement:y}=document;if(await w,await pe(),await pe(),O!==c){u.reject(new Error("navigation aborted"));return}m.props.page&&Z&&Object.assign(m.props.page,Z);let k=null;if(ot){const v=n?n.scroll:o?V():null;v?scrollTo(v.x,v.y):(k=t.hash&&document.getElementById(Pt(t)))?k.scrollIntoView():scrollTo(0,0)}const E=document.activeElement!==y&&document.activeElement!==document.body;!r&&!E&&Ze(t,!k),ot=!0,ie=!1,u.fulfil(void 0),u.navigation.to&&(u.navigation.to.scroll=V()),te.forEach(v=>v(u.navigation)),e==="popstate"&&At(U),D.navigating.set(ae.current=null)}async function Tt(e,t,n,r,o){return e.origin===fe&&e.pathname===location.pathname&&!We?await Ie({status:r,error:n,url:e,route:t}):await J(e,o)}let G={element:void 0,href:void 0};function $n(){let e,t;C.addEventListener("mousemove",a=>{const i=a.target;clearTimeout(e),e=setTimeout(()=>{o(i,F.hover)},20)});function n(a){a.defaultPrevented||o(a.composedPath()[0],F.tap)}C.addEventListener("mousedown",n),C.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(a=>{for(const i of a)i.isIntersecting&&(Oe(new URL(i.target.href)),r.unobserve(i.target))},{threshold:0});async function o(a,i){const c=pt(a,C),l=c===G.element&&c?.href===G.href&&i>=t;if(!c||l)return;const{url:f,external:d,download:_}=$e(c,L,b.hash);if(d||_)return;const h=_e(c),u=f&&Ee(p.url)===Ee(f);if(!(h.reload||u))if(i<=h.preload_data){G={element:c,href:c.href},t=F.tap;const g=await de(f,!1);if(!g)return;Ln(g)}else i<=h.preload_code&&(G={element:c,href:c.href},t=i,Oe(f))}function s(){r.disconnect();for(const a of C.querySelectorAll("a")){const{url:i,external:c,download:l}=$e(a,L,b.hash);if(c||l)continue;const f=_e(a);f.reload||(f.preload_code===F.viewport&&r.observe(a),f.preload_code===F.eager&&Oe(i))}}te.add(s),s()}function q(e,t){if(e instanceof le)return e.body;const n=me(e),r=yn(e);return b.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function zn(e,t={}){return e=new URL(Ye(e)),e.origin!==fe?Promise.reject(new Error("goto: invalid URL")):Re(e,t,0)}function xn(e){if(typeof e=="function")we.push(e);else{const{href:t}=new URL(e,location.href);we.push(n=>n.href===t)}}function Zn(){return ue=!0,Un()}async function Qn(e){e.type==="error"?await Cn(e.error,e.status):e.type==="redirect"?await Re(e.location,{invalidateAll:!0},0):(S.form=e.data,S.status=e.status,X.$set({form:null,page:Te(S)}),await yt(),X.$set({form:e.data}),e.type==="success"&&Ze(S.url))}async function Cn(e,t=500){const n=new URL(location.href),{branch:r,route:o}=p;if(!o)return;const s=await Rt(p.branch.length,r,o.errors);if(s){const a=await ce({url:n,params:p.params,branch:r.slice(0,s.idx).concat(s.node),status:t,error:e,route:o});p={...a.state,nav:p.nav},X.$set(a.props),Se(a.props.page),yt().then(()=>Ze(p.url))}}function Dn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(st(),!ie){const r=Qe(p,void 0,null,"leave"),o={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};bt.forEach(s=>s(o))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&st()}),navigator.connection?.saveData||$n(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=pt(t.composedPath()[0],C);if(!n)return;const{url:r,external:o,target:s,download:a}=$e(n,L,b.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const i=_e(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||a)return;const[l,f]=(b.hash?r.hash.replace(/^#/,""):r.href).split("#"),d=l===Le(location);if(o||i.reload&&(!d||!f)){It({url:r,type:"link",event:t})?ie=!0:t.preventDefault();return}if(f!==void 0&&d){const[,_]=p.url.href.split("#");if(_===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=n.ownerDocument.getElementById(decodeURIComponent(f));h&&(h.scrollIntoView(),h.focus())}return}if(Q=!0,Ge(A),e(r),!i.replace_state)return;Q=!1}t.preventDefault(),await new Promise(_=>{requestAnimationFrame(()=>{setTimeout(_,0)}),setTimeout(_,100)}),await W({type:"link",url:r,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??r.href===location.href,event:t})}),C.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const a=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(Ae(a,L,!1))return;const i=t.target,c=_e(i);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(i,r);a.search=new URLSearchParams(l).toString(),W({type:"form",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Be){if(t.state?.[K]){const n=t.state[K];if(O={},n===A)return;const r=M[n],o=t.state[dt]??{},s=new URL(t.state[zt]??location.href),a=t.state[re],i=p.url?Le(location)===Le(p.url):!1;if(a===U&&(kt||i)){o!==S.state&&(S.state=o),e(s),M[A]=V(),r&&scrollTo(r.x,r.y),A=n;return}const l=n-A;await W({type:"popstate",url:s,popped:{state:o,scroll:r,delta:l},accept:()=>{A=n,U=a},block:()=>{history.go(-l)},nav_token:O,event:t})}else if(!Q){const n=new URL(location.href);e(n),b.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Q&&(Q=!1,history.replaceState({...history.state,[K]:++A,[re]:U},"",location.href))});for(const t of document.querySelectorAll("link"))Rn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(ae.current=null)});function e(t){p.url=S.url=t,D.page.set(Te(S)),D.page.notify()}}async function Mn(e,{status:t=200,error:n,node_ids:r,params:o,route:s,server_route:a,data:i,form:c}){We=!0;const l=new URL(location.href);let f;({params:o={},route:s={id:null}}=await de(l,!1)||{}),f=Ke.find(({id:h})=>h===s.id);let d,_=!0;try{const h=r.map(async(g,R)=>{const m=i[R];return m?.uses&&(m.uses=Lt(m.uses)),Je({loader:b.nodes[g],url:l,params:o,route:s,parent:async()=>{const I={};for(let w=0;w<R;w+=1)Object.assign(I,(await h[w]).data);return I},server_data_node:Xe(m)})}),u=await Promise.all(h);if(f){const g=f.layouts;for(let R=0;R<g.length;R++)g[R]||u.splice(R,0,void 0)}d=await ce({url:l,params:o,branch:u,status:t,error:n,errors:f?.errors,form:c,route:f??null})}catch(h){if(h instanceof qe)return await J(new URL(h.location,location.href));d=await Ie({status:me(h),error:await q(h,{url:l,params:o,route:s}),url:l,route:s}),e.textContent="",_=!1}d&&(d.props.page&&(d.props.page.state={}),await St(d,e,_))}async function Ut(e,t){const n=new URL(e);n.pathname=En(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(wn,"1"),n.searchParams.append(gn,t.map(s=>s?"1":"0").join(""));const r=window.fetch,o=await r(n.href,{});if(!o.ok){let s;throw o.headers.get("content-type")?.includes("application/json")?s=await o.json():o.status===404?s="Not Found":o.status===500&&(s="Internal Error"),new le(o.status,s)}return new Promise((s,a)=>{Bn(s,o).catch(a)})}async function Bn(e,t){const n=t.body.getReader(),r=new Map;function o(s){return gt(s,{...b.decoders,Promise:a=>new Promise((i,c)=>{r.set(a,{fulfil:i,reject:c})})})}for await(const s of Sn(n)){if(s.type==="redirect")return e(s);if(s.type==="data")s.nodes?.forEach(a=>{a?.type==="data"&&(a.uses=Lt(a.uses),a.data=o(a.data))}),e(s);else if(s.type==="chunk"){const{id:a,data:i,error:c}=s,l=r.get(a);r.delete(a),c?l.reject(o(c)):l.fulfil(o(i))}}}function Lt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Be=!1;function Ze(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=Pt(e);if(r&&document.getElementById(r)){const{x:s,y:a}=V();setTimeout(()=>{const i=history.state;Be=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(i,"",e),t&&scrollTo(s,a),Be=!1})}else{const s=document.body,a=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),a!==null?s.setAttribute("tabindex",a):s.removeAttribute("tabindex")}const o=getSelection();if(o&&o.type!=="None"){const s=[];for(let a=0;a<o.rangeCount;a+=1)s.push(o.getRangeAt(a));setTimeout(()=>{if(o.rangeCount===s.length){for(let a=0;a<o.rangeCount;a+=1){const i=s[a],c=o.getRangeAt(a);if(i.commonAncestorContainer!==c.commonAncestorContainer||i.startContainer!==c.startContainer||i.endContainer!==c.endContainer||i.startOffset!==c.startOffset||i.endOffset!==c.endOffset)return}o.removeAllRanges()}})}}}function Qe(e,t,n,r,o=null){let s,a;const i=new Promise((l,f)=>{s=l,a=f});return i.catch($),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:V()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:o},willUnload:!t,type:r,complete:i},fulfil:s,reject:a}}function Te(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Fn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Pt(e){let t;if(b.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Qn as a,b,S as c,Xn as d,zn as g,Zn as i,Yn as l,$ as n,Gn as p,D as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BtUppuxZ.js","../chunks/DsnmJJEf.js","../chunks/j7JNK5dy.js","../chunks/DHFMIoXm.js","../chunks/BNDs8Vcd.js","../chunks/Dy81fbL0.js","../chunks/DV1j3Tnl.js","../chunks/CKL0E1IM.js","../chunks/DzgYcjQZ.js","../chunks/Chh9A0et.js","../chunks/DQ9OrQjh.js","../chunks/DC7Xi_hb.js","../chunks/D7Ywb5BJ.js","../chunks/C3JrmfEx.js","../chunks/CYjQE6-6.js","../chunks/BY9FtCgE.js","../assets/0.Cj1PUDYF.css","../nodes/1.
|
|
2
|
-
import{_ as r}from"../chunks/BapAUJpM.js";import{h as V,ay as $,g as s,L as tt,ak as rt,aj as et,p as at,aA as ot,j as _t,K as it,f as E,d as mt,a as st,s as k,u as A,c as ut,r as nt,t as dt}from"../chunks/j7JNK5dy.js";import{h as ct,m as lt,u as vt,s as Et}from"../chunks/DzgYcjQZ.js";import"../chunks/DsnmJJEf.js";import{a as ft}from"../chunks/DC7Xi_hb.js";import{a as d,c as g,f as G,t as pt}from"../chunks/DHFMIoXm.js";import{i as I}from"../chunks/D7Ywb5BJ.js";import{p as T,c as L,b as D}from"../chunks/C3JrmfEx.js";function gt(_){return class extends ht{constructor(t){super({component:_,...t})}}}class ht{#r;#t;constructor(t){var o=new Map,u=(a,e)=>{var n=et(e,!1,!1);return o.set(a,n),n};const m=new Proxy({...t.props||{},$$events:{}},{get(a,e){return s(o.get(e)??u(e,Reflect.get(a,e)))},has(a,e){return e===$?!0:(s(o.get(e)??u(e,Reflect.get(a,e))),Reflect.has(a,e))},set(a,e,n){return V(o.get(e)??u(e,n),n),Reflect.set(a,e,n)}});this.#t=(t.hydrate?ct:lt)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#r=m.$$events;for(const a of Object.keys(this.#t))a==="$set"||a==="$destroy"||a==="$on"||rt(this,a,{get(){return this.#t[a]},set(e){this.#t[a]=e},enumerable:!0});this.#t.$set=a=>{Object.assign(m,a)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,o){this.#r[t]=this.#r[t]||[];const u=(...m)=>o.call(this,...m);return this.#r[t].push(u),()=>{this.#r[t]=this.#r[t].filter(m=>m!==u)}}$destroy(){this.#t.$destroy()}}const wt={};var Pt=G('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Ot=G("<!> <!>",1);function Rt(_,t){at(t,!0);let o=T(t,"components",23,()=>[]),u=T(t,"data_0",3,null),m=T(t,"data_1",3,null),a=T(t,"data_2",3,null);ot(()=>t.stores.page.set(t.page)),_t(()=>{t.stores,t.page,t.constructors,o(),t.form,u(),m(),a(),t.stores.page.notify()});let e=k(!1),n=k(!1),w=k(null);ft(()=>{const i=t.stores.page.subscribe(()=>{s(e)&&(V(n,!0),it().then(()=>{V(w,document.title||"untitled page",!0)}))});return V(e,!0),i});const Y=A(()=>t.constructors[2]);var C=Ot(),S=E(C);{var q=i=>{const c=A(()=>t.constructors[0]);var l=g(),h=E(l);L(h,()=>s(c),(v,f)=>{D(f(v,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(P,Lt)=>{var M=g(),J=E(M);{var N=p=>{const y=A(()=>t.constructors[1]);var O=g(),b=E(O);L(b,()=>s(y),(j,x)=>{D(x(j,{get data(){return m()},get form(){return t.form},get params(){return t.page.params},children:(R,Dt)=>{var z=g(),U=E(z);L(U,()=>s(Y),(W,X)=>{D(X(W,{get data(){return a()},get form(){return t.form},get params(){return t.page.params}}),Z=>o()[2]=Z,()=>o()?.[2])}),d(R,z)},$$slots:{default:!0}}),R=>o()[1]=R,()=>o()?.[1])}),d(p,O)},Q=p=>{const y=A(()=>t.constructors[1]);var O=g(),b=E(O);L(b,()=>s(y),(j,x)=>{D(x(j,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),R=>o()[1]=R,()=>o()?.[1])}),d(p,O)};I(J,p=>{t.constructors[2]?p(N):p(Q,-1)})}d(P,M)},$$slots:{default:!0}}),P=>o()[0]=P,()=>o()?.[0])}),d(i,l)},B=i=>{const c=A(()=>t.constructors[0]);var l=g(),h=E(l);L(h,()=>s(c),(v,f)=>{D(f(v,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),P=>o()[0]=P,()=>o()?.[0])}),d(i,l)};I(S,i=>{t.constructors[1]?i(q):i(B,-1)})}var F=mt(S,2);{var H=i=>{var c=Pt(),l=ut(c);{var h=v=>{var f=pt();dt(()=>Et(f,s(w))),d(v,f)};I(l,v=>{s(n)&&v(h)})}nt(c),d(i,c)};I(F,i=>{s(e)&&i(H)})}d(_,C),st()}const Ct=gt(Rt),St=[()=>r(()=>import("../nodes/0.BtUppuxZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),()=>r(()=>import("../nodes/1.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BtUppuxZ.js","../chunks/DsnmJJEf.js","../chunks/j7JNK5dy.js","../chunks/DHFMIoXm.js","../chunks/BNDs8Vcd.js","../chunks/Dy81fbL0.js","../chunks/DV1j3Tnl.js","../chunks/CKL0E1IM.js","../chunks/DzgYcjQZ.js","../chunks/Chh9A0et.js","../chunks/DQ9OrQjh.js","../chunks/DC7Xi_hb.js","../chunks/D7Ywb5BJ.js","../chunks/C3JrmfEx.js","../chunks/CYjQE6-6.js","../chunks/BY9FtCgE.js","../assets/0.Cj1PUDYF.css","../nodes/1.jBltffEQ.js","../chunks/CaWnsi86.js","../chunks/DAFm-rT0.js","../chunks/V3geQjfn.js","../chunks/YRdQdDS3.js","../chunks/i7-vYus5.js","../chunks/C6UXEyId.js","../chunks/5yEnZ38b.js","../chunks/CHr8w1pg.js","../chunks/DYptmCKA.js","../nodes/2.MyCVVapl.js","../chunks/CQlm8KiO.js","../chunks/CbzchbHa.js","../chunks/B-PCkSGA.js","../chunks/DjtMPMjk.js","../chunks/BARlAga8.js","../chunks/Babt-QT0.js","../chunks/DVjXNHoG.js","../chunks/Bd6-Cdge.js","../chunks/BapAUJpM.js","../chunks/CUkW7LC8.js","../chunks/Dx721SA_.js","../chunks/CAUQbu9n.js","../chunks/BL2t7cAH.js","../chunks/C6ZPX7tO.js","../chunks/DGOwhknA.js","../chunks/BJ0I_ukf.js","../chunks/BUSu7k-8.js","../chunks/ZqYjBqeu.js","../chunks/C1WQJmQM.js","../chunks/vMJbIwwS.js","../chunks/nV5IyOHx.js","../chunks/C9qoT5HO.js","../nodes/3.C49Pdolk.js","../nodes/4.H2ifb6h7.js","../nodes/5.BD_FrnS6.js","../nodes/6.FHxxXtNY.js","../chunks/B5OJUbsp.js","../chunks/ByPkuUpl.js","../chunks/CtBHY3Ka.js","../chunks/C_qzx9_3.js","../chunks/BI-GJkVn.js","../nodes/7.rgqW6l_z.js","../nodes/8.CMWVVdHD.js","../chunks/_ql0LFI5.js","../chunks/D5IFV-e6.js","../chunks/5dP13_5c.js","../chunks/DAEfq4bk.js","../nodes/9.B1DVTVqB.js","../chunks/hjkd3bAd.js","../chunks/D8BoMTkT.js","../chunks/bNJob0UZ.js","../chunks/SWAub5RZ.js","../chunks/CtMkeZKL.js","../nodes/10.O0oWpOpl.js","../chunks/Dh-VNqMc.js","../chunks/KynSTIxv.js","../chunks/BxtAMerO.js","../chunks/UKBbzc6l.js","../assets/index.CV-KWLNP.css","../chunks/DWrPGMmw.js","../nodes/11.fnbbU5fQ.js","../chunks/C6GpjflX.js","../chunks/B9HQWvYU.js","../chunks/BAq0bkTU.js","../chunks/BnachvOx.js","../chunks/CskIhLYX.js","../chunks/Cbu9Tg11.js","../chunks/CFZtIWO-.js","../nodes/12.BG_E0xBs.js","../chunks/B7vGo7d8.js","../nodes/13.CokPGn13.js","../nodes/14.BOBvQoRO.js","../chunks/qXYj8soX.js","../chunks/Fv05xoru.js","../nodes/15.rVnmmhFk.js","../chunks/LmN6sTH7.js","../chunks/U-4yPKXC.js","../nodes/16.CT8CyQj6.js","../chunks/B2u4e1Y9.js","../chunks/ko-CZCOO.js","../chunks/Bm4qXoog.js","../nodes/17.D4no7cGI.js","../nodes/18.D0QaQ7SF.js","../nodes/19.BLra_dlM.js","../chunks/KnYCIWmd.js","../chunks/YkmFSUxv.js","../nodes/20.uQnvI_Uv.js","../chunks/ee-g1Krm.js","../chunks/-MU5TCVl.js","../chunks/BzBbrBKd.js","../assets/20.Bne67Vgr.css","../nodes/21.CE1lAxCo.js","../nodes/23.DNa5Wj-V.js","../chunks/DJH6cv81.js","../chunks/ftaqljSr.js","../nodes/24.8w-n98Zt.js","../nodes/25.BEhXDpYA.js","../nodes/26.am_m2rvl.js","../nodes/27.CTvZ6KxX.js","../nodes/28.n4L9k3Rh.js","../nodes/29.B90ZvGzu.js","../nodes/30.CGkD_uX2.js","../nodes/31.DrYUFw94.js","../nodes/32.ZgVhoynv.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as r}from"../chunks/BapAUJpM.js";import{h as V,ay as $,g as s,L as tt,ak as rt,aj as et,p as at,aA as ot,j as _t,K as it,f as E,d as mt,a as st,s as k,u as A,c as ut,r as nt,t as dt}from"../chunks/j7JNK5dy.js";import{h as ct,m as lt,u as vt,s as Et}from"../chunks/DzgYcjQZ.js";import"../chunks/DsnmJJEf.js";import{a as ft}from"../chunks/DC7Xi_hb.js";import{a as d,c as g,f as G,t as pt}from"../chunks/DHFMIoXm.js";import{i as I}from"../chunks/D7Ywb5BJ.js";import{p as T,c as L,b as D}from"../chunks/C3JrmfEx.js";function gt(_){return class extends ht{constructor(t){super({component:_,...t})}}}class ht{#r;#t;constructor(t){var o=new Map,u=(a,e)=>{var n=et(e,!1,!1);return o.set(a,n),n};const m=new Proxy({...t.props||{},$$events:{}},{get(a,e){return s(o.get(e)??u(e,Reflect.get(a,e)))},has(a,e){return e===$?!0:(s(o.get(e)??u(e,Reflect.get(a,e))),Reflect.has(a,e))},set(a,e,n){return V(o.get(e)??u(e,n),n),Reflect.set(a,e,n)}});this.#t=(t.hydrate?ct:lt)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#r=m.$$events;for(const a of Object.keys(this.#t))a==="$set"||a==="$destroy"||a==="$on"||rt(this,a,{get(){return this.#t[a]},set(e){this.#t[a]=e},enumerable:!0});this.#t.$set=a=>{Object.assign(m,a)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,o){this.#r[t]=this.#r[t]||[];const u=(...m)=>o.call(this,...m);return this.#r[t].push(u),()=>{this.#r[t]=this.#r[t].filter(m=>m!==u)}}$destroy(){this.#t.$destroy()}}const wt={};var Pt=G('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Ot=G("<!> <!>",1);function Rt(_,t){at(t,!0);let o=T(t,"components",23,()=>[]),u=T(t,"data_0",3,null),m=T(t,"data_1",3,null),a=T(t,"data_2",3,null);ot(()=>t.stores.page.set(t.page)),_t(()=>{t.stores,t.page,t.constructors,o(),t.form,u(),m(),a(),t.stores.page.notify()});let e=k(!1),n=k(!1),w=k(null);ft(()=>{const i=t.stores.page.subscribe(()=>{s(e)&&(V(n,!0),it().then(()=>{V(w,document.title||"untitled page",!0)}))});return V(e,!0),i});const Y=A(()=>t.constructors[2]);var C=Ot(),S=E(C);{var q=i=>{const c=A(()=>t.constructors[0]);var l=g(),h=E(l);L(h,()=>s(c),(v,f)=>{D(f(v,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(P,Lt)=>{var M=g(),J=E(M);{var N=p=>{const y=A(()=>t.constructors[1]);var O=g(),b=E(O);L(b,()=>s(y),(j,x)=>{D(x(j,{get data(){return m()},get form(){return t.form},get params(){return t.page.params},children:(R,Dt)=>{var z=g(),U=E(z);L(U,()=>s(Y),(W,X)=>{D(X(W,{get data(){return a()},get form(){return t.form},get params(){return t.page.params}}),Z=>o()[2]=Z,()=>o()?.[2])}),d(R,z)},$$slots:{default:!0}}),R=>o()[1]=R,()=>o()?.[1])}),d(p,O)},Q=p=>{const y=A(()=>t.constructors[1]);var O=g(),b=E(O);L(b,()=>s(y),(j,x)=>{D(x(j,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),R=>o()[1]=R,()=>o()?.[1])}),d(p,O)};I(J,p=>{t.constructors[2]?p(N):p(Q,-1)})}d(P,M)},$$slots:{default:!0}}),P=>o()[0]=P,()=>o()?.[0])}),d(i,l)},B=i=>{const c=A(()=>t.constructors[0]);var l=g(),h=E(l);L(h,()=>s(c),(v,f)=>{D(f(v,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),P=>o()[0]=P,()=>o()?.[0])}),d(i,l)};I(S,i=>{t.constructors[1]?i(q):i(B,-1)})}var F=mt(S,2);{var H=i=>{var c=Pt(),l=ut(c);{var h=v=>{var f=pt();dt(()=>Et(f,s(w))),d(v,f)};I(l,v=>{s(n)&&v(h)})}nt(c),d(i,c)};I(F,i=>{s(e)&&i(H)})}d(_,C),st()}const Ct=gt(Rt),St=[()=>r(()=>import("../nodes/0.BtUppuxZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),()=>r(()=>import("../nodes/1.jBltffEQ.js"),__vite__mapDeps([17,1,2,18,19,11,8,3,20,12,5,13,7,21,22,4,23,24,25,26]),import.meta.url),()=>r(()=>import("../nodes/2.MyCVVapl.js"),__vite__mapDeps([27,1,2,3,4,5,28,12,13,8,18,19,11,7,22,29,9,10,21,23,30,31,32,33,34,35,36,25,37,38,39,40,41,42,43,44,45,46,47,48,49]),import.meta.url),()=>r(()=>import("../nodes/3.C49Pdolk.js"),__vite__mapDeps([50,1,2,3,18,19,11,8,20,12,5,13,7,21,22,4,23,24,25,26]),import.meta.url),()=>r(()=>import("../nodes/4.H2ifb6h7.js"),__vite__mapDeps([51,1,2,3,4,5]),import.meta.url),()=>r(()=>import("../nodes/5.BD_FrnS6.js"),__vite__mapDeps([52,1,2,3,4,5,28,12,13,8,18,19,11,7,22,29,9,10,21,23,30,31,32,33,34,35,36,25,37,38,39,40,41,42,43]),import.meta.url),()=>r(()=>import("../nodes/6.FHxxXtNY.js"),__vite__mapDeps([53,1,2,13,5,8,3,4,12,54,19,11,28,18,7,22,29,9,10,21,23,30,31,32,33,34,35,36,25,37,38,39,40,41,42,43,44,45,55,56,57,58,48]),import.meta.url),()=>r(()=>import("../nodes/7.rgqW6l_z.js"),__vite__mapDeps([59,1,2,8,3,12,5,6,18,19,11,28,4,13,7,22,29,9,10,21,23,30,31,32,33,34,35,36,25,37,38,39,40,41,42,43]),import.meta.url),()=>r(()=>import("../nodes/8.CMWVVdHD.js"),__vite__mapDeps([60,1,2,8,3,12,5,13,6,7,18,19,11,21,22,4,23,25,61,62,32,63,64]),import.meta.url),()=>r(()=>import("../nodes/9.B1DVTVqB.js"),__vite__mapDeps([65,1,2,8,3,12,5,7,13,6,18,19,11,66,26,4,22,67,24,46,21,23,68,69,15,70,42,48]),import.meta.url),()=>r(()=>import("../nodes/10.O0oWpOpl.js"),__vite__mapDeps([71,1,2,8,3,12,5,7,13,6,70,4,26,22,72,62,32,73,33,74,75,38,34,10,11,64,76,63,21,23,35,24,49,77,39]),import.meta.url),()=>r(()=>import("../nodes/11.fnbbU5fQ.js"),__vite__mapDeps([78,1,11,2,8,3,12,5,7,13,6,19,79,70,4,26,22,80,48,81,21,23,63,64,82,83,69,84,85,15,75,38]),import.meta.url),()=>r(()=>import("../nodes/12.BG_E0xBs.js"),__vite__mapDeps([86,1,2,8,3,12,5,13,6,70,4,7,26,22,80,46,87]),import.meta.url),()=>r(()=>import("../nodes/13.CokPGn13.js"),__vite__mapDeps([88,1,2,8,3,12,5,7,13,6,19,11,70,4,21,22,23,81,26,80,47,87,62,32,63,64,15]),import.meta.url),()=>r(()=>import("../nodes/14.BOBvQoRO.js"),__vite__mapDeps([89,1,2,8,3,12,5,7,13,6,64,19,11,90,22,4,70,91,32,33,10,43,41,26,21,23,81,62,63,69,80,87,15,35]),import.meta.url),()=>r(()=>import("../nodes/15.rVnmmhFk.js"),__vite__mapDeps([92,1,2,8,3,12,5,34,4,33,32,7,13,10,6,24,22,68,26,21,23,83,93,31,37,94,40,19,11,64,72,45,70]),import.meta.url),()=>r(()=>import("../nodes/16.CT8CyQj6.js"),__vite__mapDeps([95,1,2,8,3,12,5,7,13,6,19,11,96,22,4,97,21,23,69,38,39,70,26,63,64,15,35,80,72,81,24,68,98]),import.meta.url),()=>r(()=>import("../nodes/17.D4no7cGI.js"),__vite__mapDeps([99,1,2,3,13,5,8,6,18,19,11,98,22,4,7,61,23]),import.meta.url),()=>r(()=>import("../nodes/18.D0QaQ7SF.js"),__vite__mapDeps([100,1,2,6]),import.meta.url),()=>r(()=>import("../nodes/19.BLra_dlM.js"),__vite__mapDeps([101,1,2,8,3,12,5,7,19,11,102,4,64,13,22,103,35,85,48,67,28,18,29,9,10,21,23,30,31,32,33,34,36,25,37,38,39,40,41,42,43,70,80,15]),import.meta.url),()=>r(()=>import("../nodes/20.uQnvI_Uv.js"),__vite__mapDeps([104,36,1,2,8,3,12,5,29,4,7,13,9,10,21,22,23,30,31,32,33,34,35,25,37,38,39,40,19,11,18,48,64,79,103,73,74,75,76,105,14,91,26,24,68,62,63,94,106,84,107,108]),import.meta.url),()=>r(()=>import("../nodes/21.CE1lAxCo.js"),__vite__mapDeps([109,1,2,8,3,12,5,7,13,6,18,19,11,25,22,4,61,23,21,62,32,63,64]),import.meta.url),()=>r(()=>import("../chunks/BapAUJpM.js").then(_=>_.a),[],import.meta.url),()=>r(()=>import("../nodes/23.DNa5Wj-V.js"),__vite__mapDeps([110,1,2,13,5,8,3,12,34,4,33,32,7,10,6,19,11,54,111,64,22,38,103,74,106,30,31,35,62,63,91,21,23,105,77,15,81,97,42,69,80,112,102,85,48,67,93,96,37,58,82,90,70,41]),import.meta.url),()=>r(()=>import("../nodes/24.8w-n98Zt.js"),__vite__mapDeps([113,1,2,8,3,12,5,7,13,6,18,19,11,25,22,4,61,23,21,62,32,63,64]),import.meta.url),()=>r(()=>import("../nodes/25.BEhXDpYA.js"),__vite__mapDeps([114,1,2,8,3,12,5,7,13,6,66,26,4,22,67,70,24,46,42,55]),import.meta.url),()=>r(()=>import("../nodes/26.am_m2rvl.js"),__vite__mapDeps([115,1,2,3,13,5,8,6,70,4,12,7,26,22,72,24,57]),import.meta.url),()=>r(()=>import("../nodes/27.CTvZ6KxX.js"),__vite__mapDeps([116,1,2,8,3,12,5,7,13,6,18,19,11,70,4,21,22,23,15,24,68,26,111,64,38,103,74,80,48,77,81,63,69,84,85]),import.meta.url),()=>r(()=>import("../nodes/28.n4L9k3Rh.js"),__vite__mapDeps([117,1,2,8,3,12,5,7,13,6,19,11,96,22,4,70,21,23,98,24,68,26,80,112,15,63,64,35,69]),import.meta.url),()=>r(()=>import("../nodes/29.B90ZvGzu.js"),__vite__mapDeps([118,1,2,8,3,12,5,7,13,6,19,11,70,4,26,22,80,55,87,93,31,32,33,34,10,21,23,69,15,81,63,64]),import.meta.url),()=>r(()=>import("../nodes/30.CGkD_uX2.js"),__vite__mapDeps([119,1,2,8,3,12,5,13,6,7,19,11,70,4,26,22,80,106,87,93,31,32,33,34,10,21,23,56,15]),import.meta.url),()=>r(()=>import("../nodes/31.DrYUFw94.js"),__vite__mapDeps([120,1,2,8,3,12,5,13,6,70,4,7,24,22,68,26,69]),import.meta.url),()=>r(()=>import("../nodes/32.ZgVhoynv.js"),__vite__mapDeps([121,1,2,3,13,5,8,6,70,4,12,7,26,22,72,24,58]),import.meta.url)],Mt=[0,2,5,6],zt={"/":[-8],"/accept-invite":[-9],"/admin":[-10,[2],[3]],"/admin/audit":[-11,[2],[3]],"/admin/compute":[-12,[2],[3]],"/admin/organizations":[-13,[2],[3]],"/admin/projects":[-14,[2],[3]],"/admin/projects/[id]":[-15,[2],[3]],"/admin/system":[-16,[2],[3]],"/admin/users":[-17,[2],[3]],"/auth/email/sent":[17],"/auth/email/start":[-19],"/library":[-20,[4]],"/library/[guid]":[-21,[4]],"/login":[-22],"/logout":[22],"/projects":[-24,[5]],"/setup":[-25],"/team":[-26,[6]],"/team/activity":[26,[6]],"/team/compute":[-28,[6]],"/team/members":[-29,[6]],"/team/projects":[-30,[6]],"/team/reclaim":[-31,[6]],"/team/settings":[-32,[6]],"/team/shares":[-33,[6]]},K={handleError:(({error:_})=>{console.error(_)}),reroute:(()=>{}),transport:{}},At=Object.fromEntries(Object.entries(K.transport).map(([_,t])=>[_,t.decode])),Gt=Object.fromEntries(Object.entries(K.transport).map(([_,t])=>[_,t.encode])),Kt=!1,Yt=(_,t)=>At[_](t),qt=()=>r(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(_=>_.default);export{Yt as decode,At as decoders,zt as dictionary,Gt as encoders,qt as get_error_template,Kt as hash,K as hooks,wt as matchers,St as nodes,Ct as root,Mt as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,d as r}from"../chunks/DAFm-rT0.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{p as i,a as n,g as e,u as t}from"../chunks/j7JNK5dy.js";import{p as r}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{p as i,a as n,g as e,u as t}from"../chunks/j7JNK5dy.js";import{p as r}from"../chunks/CaWnsi86.js";import{E as u}from"../chunks/V3geQjfn.js";function l(o,s){i(s,!0);{let a=t(()=>r.error?.message),p=t(()=>r.error&&typeof r.error=="object"&&"details"in r.error?r.error.details:void 0);u(o,{get status(){return r.status},get message(){return e(a)},get details(){return e(p)}})}n()}export{l as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{p as Jt,s as Yt,b as jt,a as qt,e as Gt,$ as Kt,c as s,d as o,r,f as _,n as b,t as L,g as n,h as Qt,u as Pt}from"../chunks/j7JNK5dy.js";import{d as Xt,s as I,a as zt}from"../chunks/DzgYcjQZ.js";import{a as t,f as g,c as lt,t as D}from"../chunks/DHFMIoXm.js";import{i as w}from"../chunks/D7Ywb5BJ.js";import{e as Lt,r as Mt,s as Wt,a as Zt}from"../chunks/CKL0E1IM.js";import{c as x}from"../chunks/C3JrmfEx.js";import{h as te}from"../chunks/DV1j3Tnl.js";import{S as ee}from"../chunks/CtMkeZKL.js";import{C as St,a as It}from"../chunks/DYptmCKA.js";import{S as ae}from"../chunks/Dh-VNqMc.js";import{L as pt}from"../chunks/D5IFV-e6.js";import{R as re,S as se,a as oe,b as Dt}from"../chunks/KynSTIxv.js";import{I as kt}from"../chunks/5dP13_5c.js";import{B as At}from"../chunks/YRdQdDS3.js";import{X as de}from"../chunks/Bd6-Cdge.js";import{C as ne,a as le}from"../chunks/5yEnZ38b.js";import{S as ie}from"../chunks/C9qoT5HO.js";import{B as Et}from"../chunks/DWrPGMmw.js";import{C as ce}from"../chunks/Dx721SA_.js";import{C as ve}from"../chunks/CAUQbu9n.js";var ue=g(`<div class="bg-muted/30 flex items-start gap-4 rounded-lg border p-5"><div class="bg-accent text-accent-foreground rounded-md p-2.5"><!></div> <div class="min-w-0 flex-1"><p class="text-sm font-medium">Audit log not available on this deployment</p> <p class="text-muted-foreground mt-1 text-sm">This provider doesn't support audit queries. To enable audit logs, switch to a data
|
|
2
|
+
provider that supports <code class="bg-muted rounded px-1 py-0.5 font-mono text-xs">auditQuery</code> by changing <code class="bg-muted rounded px-1 py-0.5 font-mono text-xs">SELVA_DATA_PROVIDER</code> in your .env.</p></div></div>`),me=g('<span class="truncate"> </span>'),it=g("<!> <!>",1),fe=g('<input type="hidden" name="type"/>'),pe=g("<!> Reset",1),_e=g('<form method="get" class="grid gap-4 md:grid-cols-[1fr_1fr_auto_auto_auto]"><div class="flex flex-col gap-1.5"><!> <!> <!></div> <div class="flex flex-col gap-1.5"><!> <!></div> <div class="flex flex-col gap-1.5"><!> <!></div> <div class="flex flex-col gap-1.5"><!> <!></div> <div class="flex items-end gap-2"><!> <!></div></form>'),ge=g('Events <span class="text-muted-foreground ml-2 font-normal"> </span>',1),he=g('<div class="text-muted-foreground flex flex-col items-center gap-2 py-12 text-sm"><!> <p>No events match these filters.</p></div>'),xe=g('<span> </span> <span class="text-muted-foreground ml-1 font-mono text-xs"> </span>',1),ye=g('<span class="text-muted-foreground italic">Deleted user</span> <span class="text-muted-foreground ml-1 font-mono text-xs"> </span>',1),be=g('<tr class="bg-muted/20 border-b"><td></td><td colspan="4" class="py-2 pr-4"><pre class="text-muted-foreground max-w-full overflow-x-auto text-xs"> </pre></td></tr>'),$e=g('<tr class="hover:bg-muted/30 border-b"><td class="py-2"><button type="button" class="text-muted-foreground hover:text-foreground"><!></button></td><td class="py-2 pr-4 font-mono text-xs whitespace-nowrap"> </td><td class="py-2 pr-4"><!></td><td class="py-2 pr-4"><!></td><td class="py-2 pr-4"> </td></tr> <!>',1),Pe=g('<div class="overflow-x-auto"><table class="w-full text-sm"><thead class="text-muted-foreground border-b text-left text-xs uppercase"><tr><th class="w-8 py-2"></th><th class="py-2 pr-4">Time</th><th class="py-2 pr-4">Type</th><th class="py-2 pr-4">Actor</th><th class="py-2 pr-4">Target</th></tr></thead><tbody></tbody></table></div>'),Se=g('<div class="mt-4 flex justify-center"><!></div>'),Ie=g('<div class="space-y-6"><!> <!></div>');function Ke(Tt,l){Jt(l,!0);const _t={"org.created":"Org · created","org.deleted":"Org · deleted","org_member.added":"Org member · added","org_member.removed":"Org member · removed","org_member.role_changed":"Org member · role changed","org_member.permissions_changed":"Org member · permissions changed","project.created":"Project · created","project.deleted":"Project · deleted","project_member.added":"Project member · added","project_member.removed":"Project member · removed","project_member.role_changed":"Project member · role changed","definition.created":"Definition · created","definition.deleted":"Definition · deleted","definition.published":"Definition · published","definition_version.created":"Version · created","definition_version.deleted":"Version · deleted","share_link.minted":"Share link · minted","share_link.revoked":"Share link · revoked","invite.created":"Invite · created","invite.accepted":"Invite · accepted","invite.revoked":"Invite · revoked","system.update.started":"System update · started","system.update.finished":"System update · finished","system.update.rolled_back":"System update · rolled back","system.update.failed":"System update · FAILED"},Vt={org:"Org",project:"Project",definition:"Definition",definition_version:"Version",share_link:"Share link",invite:"Invite",user:"User"};function ct(e){if(!e)return"";const v=e.match(/^(\d{4}-\d{2}-\d{2})/);return v?v[1]:""}const Q="__all__";let E=Yt(jt(l.data.filters.types[0]??Q));const X=jt({});function Ot(e){X[e]=!X[e]}const Rt=Pt(()=>{if(!l.data.nextCursor)return"";const e=[],v=(k,z)=>e.push(`${encodeURIComponent(k)}=${encodeURIComponent(z)}`);for(const k of l.data.filters.types)v("type",k);return l.data.filters.actorId&&v("actor",l.data.filters.actorId),l.data.filters.sinceIso&&v("since",ct(l.data.filters.sinceIso)),l.data.filters.untilIso&&v("until",ct(l.data.filters.untilIso)),v("cursor",JSON.stringify(l.data.nextCursor)),`?${e.join("&")}`});function Bt(e){try{return new Date(e).toLocaleString()}catch{return e}}function gt(e){return e.length<=8?e:e.slice(0,8)+"…"}function Ut(e){if(!e.target)return"—";const v=Vt[e.target.kind]??e.target.kind;return e.target.name?`${v}: ${e.target.name}`:`${v}: ${gt(e.target.id)} (deleted)`}var ht=Ie();te("5hb2v4",e=>{Gt(()=>{Kt.title="Admin · Audit log"})});var Ct=s(ht);ee(Ct,{eyebrow:"Admin",title:"Audit log",description:"Every domain event recorded on this instance — actor, type, target, timestamp."});var wt=o(Ct,2);{var Nt=e=>{var v=lt(),k=_(v);x(k,()=>It,(z,M)=>{M(z,{children:(W,vt)=>{var ut=lt(),T=_(ut);x(T,()=>St,(N,Z)=>{Z(N,{class:"pt-6",children:(V,F)=>{var A=ue(),C=s(A),$=s(C);ae($,{class:"h-4 w-4"}),r(C),b(2),r(A),t(V,A)},$$slots:{default:!0}})}),t(W,ut)},$$slots:{default:!0}})}),t(e,v)},Ft=e=>{var v=it(),k=_(v);x(k,()=>It,(M,W)=>{W(M,{children:(vt,ut)=>{var T=lt(),N=_(T);x(N,()=>St,(Z,V)=>{V(Z,{class:"pt-6",children:(F,A)=>{var C=_e(),$=s(C),O=s($);pt(O,{for:"audit-type",children:(d,h)=>{b();var c=D("Event type");t(d,c)},$$slots:{default:!0}});var H=o(O,2);x(H,()=>re,(d,h)=>{h(d,{type:"single",get value(){return n(E)},onValueChange:c=>Qt(E,c??Q,!0),children:(c,mt)=>{var G=it(),ft=_(G);x(ft,()=>se,(ot,dt)=>{dt(ot,{id:"audit-type",class:"h-9 text-sm",children:(nt,yt)=>{var S=me(),K=s(S,!0);r(S),L(()=>I(K,n(E)===Q?"All event types":_t[n(E)]??n(E))),t(nt,S)},$$slots:{default:!0}})});var st=o(ft,2);x(st,()=>oe,(ot,dt)=>{dt(ot,{children:(nt,yt)=>{var S=it(),K=_(S);x(K,()=>Dt,(U,a)=>{a(U,{value:Q,label:"All event types"})});var bt=o(K,2);Lt(bt,16,()=>l.data.knownTypes,U=>U,(U,a)=>{var u=lt(),p=_(u);x(p,()=>Dt,(P,j)=>{j(P,{get value(){return a},get label(){return _t[a]}})}),t(U,u)}),t(nt,S)},$$slots:{default:!0}})}),t(c,G)},$$slots:{default:!0}})});var tt=o(H,2);{var et=d=>{var h=fe();Mt(h),L(()=>Wt(h,n(E))),t(d,h)};w(tt,d=>{n(E)!==Q&&d(et)})}r($);var J=o($,2),m=s(J);pt(m,{for:"audit-actor",children:(d,h)=>{b();var c=D("Actor user ID");t(d,c)},$$slots:{default:!0}});var f=o(m,2);kt(f,{id:"audit-actor",name:"actor",placeholder:"User ID, or 'system'",get defaultValue(){return l.data.filters.actorId},class:"h-9 text-sm"}),r(J);var y=o(J,2),R=s(y);pt(R,{for:"audit-since",children:(d,h)=>{b();var c=D("From");t(d,c)},$$slots:{default:!0}});var Y=o(R,2);{let d=Pt(()=>ct(l.data.filters.sinceIso));kt(Y,{id:"audit-since",name:"since",type:"date",get defaultValue(){return n(d)},class:"h-9 text-sm"})}r(y);var i=o(y,2),at=s(i);pt(at,{for:"audit-until",children:(d,h)=>{b();var c=D("To");t(d,c)},$$slots:{default:!0}});var rt=o(at,2);{let d=Pt(()=>ct(l.data.filters.untilIso));kt(rt,{id:"audit-until",name:"until",type:"date",get defaultValue(){return n(d)},class:"h-9 text-sm"})}r(i);var q=o(i,2),B=s(q);At(B,{type:"submit",class:"h-9",children:(d,h)=>{b();var c=D("Apply");t(d,c)},$$slots:{default:!0}});var xt=o(B,2);At(xt,{type:"button",variant:"ghost",href:"/admin/audit",class:"h-9",children:(d,h)=>{var c=pe(),mt=_(c);de(mt,{class:"h-4 w-4"}),b(),t(d,c)},$$slots:{default:!0}}),r(q),r(C),t(F,C)},$$slots:{default:!0}})}),t(vt,T)},$$slots:{default:!0}})});var z=o(k,2);x(z,()=>It,(M,W)=>{W(M,{children:(vt,ut)=>{var T=it(),N=_(T);x(N,()=>ne,(V,F)=>{F(V,{children:(A,C)=>{var $=lt(),O=_($);x(O,()=>le,(H,tt)=>{tt(H,{class:"text-sm font-medium",children:(et,J)=>{b();var m=ge(),f=o(_(m)),y=s(f);r(f),L(()=>I(y,`${l.data.rows.length??""}
|
|
3
|
+
${l.data.rows.length===1?"event":"events"}`)),t(et,m)},$$slots:{default:!0}})}),t(A,$)},$$slots:{default:!0}})});var Z=o(N,2);x(Z,()=>St,(V,F)=>{F(V,{children:(A,C)=>{var $=it(),O=_($);{var H=m=>{var f=he(),y=s(f);ie(y,{class:"h-8 w-8 opacity-40"}),b(2),r(f),t(m,f)},tt=m=>{var f=Pe(),y=s(f),R=o(s(y));Lt(R,21,()=>l.data.rows,Y=>Y.id,(Y,i)=>{var at=$e(),rt=_(at),q=s(rt),B=s(q),xt=s(B);{var d=a=>{ce(a,{class:"h-4 w-4"})},h=a=>{ve(a,{class:"h-4 w-4"})};w(xt,a=>{X[n(i).id]?a(d):a(h,-1)})}r(B),r(q);var c=o(q),mt=s(c,!0);r(c);var G=o(c),ft=s(G);Et(ft,{variant:"outline",class:"font-mono text-[10px]",children:(a,u)=>{b();var p=D();L(()=>I(p,_t[n(i).type]??n(i).type)),t(a,p)},$$slots:{default:!0}}),r(G);var st=o(G),ot=s(st);{var dt=a=>{Et(a,{variant:"secondary",children:(u,p)=>{b();var P=D("System");t(u,P)},$$slots:{default:!0}})},nt=a=>{var u=xe(),p=_(u),P=s(p,!0);r(p);var j=o(p,2),$t=s(j,!0);r(j),L(Ht=>{I(P,n(i).actor.name),I($t,Ht)},[()=>gt(n(i).actor.id)]),t(a,u)},yt=a=>{var u=ye(),p=o(_(u),2),P=s(p,!0);r(p),L(j=>I(P,j),[()=>gt(n(i).actor.id)]),t(a,u)};w(ot,a=>{n(i).actor.isSystem?a(dt):n(i).actor.name?a(nt,1):a(yt,-1)})}r(st);var S=o(st),K=s(S,!0);r(S),r(rt);var bt=o(rt,2);{var U=a=>{var u=be(),p=o(s(u)),P=s(p),j=s(P,!0);r(P),r(p),r(u),L($t=>I(j,$t),[()=>JSON.stringify(n(i).data,null,2)]),t(a,u)};w(bt,a=>{X[n(i).id]&&a(U)})}L((a,u)=>{Zt(B,"aria-label",X[n(i).id]?"Collapse details":"Expand details"),I(mt,a),I(K,u)},[()=>Bt(n(i).occurredAt),()=>Ut(n(i))]),zt("click",B,()=>Ot(n(i).id)),t(Y,at)}),r(R),r(y),r(f),t(m,f)};w(O,m=>{l.data.rows.length===0?m(H):m(tt,-1)})}var et=o(O,2);{var J=m=>{var f=Se(),y=s(f);At(y,{variant:"outline",get href(){return n(Rt)},class:"h-9",children:(R,Y)=>{b();var i=D("Load older");t(R,i)},$$slots:{default:!0}}),r(f),t(m,f)};w(et,m=>{l.data.nextCursor&&m(J)})}t(A,$)},$$slots:{default:!0}})}),t(vt,T)},$$slots:{default:!0}})}),t(e,v)};w(wt,e=>{l.data.available?e(Ft,-1):e(Nt)})}r(ht),t(Tt,ht),qt()}Xt(["click"]);export{Ke as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{o as wt}from"../chunks/DC7Xi_hb.js";import{s as Se,b as he,g as e,h,p as kt,j as Ze,a as $t,e as St,c as n,J as Ct,$ as Mt,d as s,f as z,n as ke,r as o,i as Ue,t as O,u as y,ai as At}from"../chunks/j7JNK5dy.js";import{d as It,a as J,s as $}from"../chunks/DzgYcjQZ.js";import{a as c,f as m,c as Le,t as De}from"../chunks/DHFMIoXm.js";import{i as S}from"../chunks/D7Ywb5BJ.js";import{e as He,c as Ne,r as Kt,h as Pt}from"../chunks/CKL0E1IM.js";import{s as ot,r as nt,c as et}from"../chunks/C3JrmfEx.js";import{h as Wt}from"../chunks/DV1j3Tnl.js";import{i as Nt}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{o as wt}from"../chunks/DC7Xi_hb.js";import{s as Se,b as he,g as e,h,p as kt,j as Ze,a as $t,e as St,c as n,J as Ct,$ as Mt,d as s,f as z,n as ke,r as o,i as Ue,t as O,u as y,ai as At}from"../chunks/j7JNK5dy.js";import{d as It,a as J,s as $}from"../chunks/DzgYcjQZ.js";import{a as c,f as m,c as Le,t as De}from"../chunks/DHFMIoXm.js";import{i as S}from"../chunks/D7Ywb5BJ.js";import{e as He,c as Ne,r as Kt,h as Pt}from"../chunks/CKL0E1IM.js";import{s as ot,r as nt,c as et}from"../chunks/C3JrmfEx.js";import{h as Wt}from"../chunks/DV1j3Tnl.js";import{i as Nt}from"../chunks/DAFm-rT0.js";import{S as Tt}from"../chunks/C6GpjflX.js";import{S as Ot}from"../chunks/CtMkeZKL.js";import{C as Rt,a as Vt}from"../chunks/DYptmCKA.js";import{E as jt}from"../chunks/B9HQWvYU.js";import{S as zt}from"../chunks/nV5IyOHx.js";import{P as tt}from"../chunks/BAq0bkTU.js";import{B as ne}from"../chunks/YRdQdDS3.js";import{I as $e}from"../chunks/5dP13_5c.js";import{C as Et}from"../chunks/BnachvOx.js";import{R as Ut}from"../chunks/CskIhLYX.js";import{T as Lt}from"../chunks/SWAub5RZ.js";import{r as Dt}from"../chunks/Cbu9Tg11.js";import{S as Ht}from"../chunks/CFZtIWO-.js";import{I as it}from"../chunks/i7-vYus5.js";import{t as ie}from"../chunks/BY9FtCgE.js";import{C as at}from"../chunks/UKBbzc6l.js";import{C as rt}from"../chunks/Dx721SA_.js";var qt=new Set(["$$slots","$$events","$$legacy"]);function Ft(ae,d){let P=nt(d,qt);const Y=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21"}],["path",{d:"m5.082 11.09 8.828 8.828"}]];it(ae,ot({name:"eraser"},()=>P,{get iconNode(){return Y}}))}var Gt=new Set(["$$slots","$$events","$$legacy"]);function Jt(ae,d){let P=nt(d,Gt);const Y=[["path",{d:"M12 2v10"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"}]];it(ae,ot({name:"power"},()=>P,{get iconNode(){return Y}}))}const Yt=6e4,Bt=5e3;function Qt(ae){let d=Se(he({state:"idle",reachable:!1,ready:!1,rhinoVersion:null,computeVersion:null,selvaInstalled:!1,selvaVersion:null,plugins:{},activeChildren:null,idleSpanSeconds:null})),P=null,Y=0,C=!1;async function Te(){if(C)return!1;try{const E=await fetch(`/admin/api/compute/status?serverId=${ae()}`);if(C)return!1;if(!E.ok)return h(d,{...e(d),reachable:!1,ready:!1},!0),!1;const k=await E.json(),B=k.reachable,Q=k.ready??B;return h(d,{reachable:B,ready:Q,rhinoVersion:k.rhinoVersion,computeVersion:k.computeVersion,selvaInstalled:k.selvaInstalled,selvaVersion:k.selvaVersion,plugins:k.plugins??{},activeChildren:k.activeChildren??null,idleSpanSeconds:k.idleSpanSeconds??null,state:B?Q?k.selvaInstalled?"ok":"warning":"loading":"error"},!0),Q}catch{return C||h(d,{...e(d),reachable:!1,ready:!1},!0),!1}}async function Ce(){const E=await Te();C||E||(Date.now()<Y?(e(d).state!=="loading"&&h(d,{...e(d),state:"checking"},!0),P=setTimeout(Ce,Bt)):e(d).reachable?h(d,{...e(d),state:"warning"},!0):h(d,{...e(d),state:"error",reachable:!1,ready:!1},!0))}function g(){C||(P!==null&&(clearTimeout(P),P=null),Y=Date.now()+Yt,h(d,{...e(d),state:"checking"},!0),Ce())}function W(){C=!0,P!==null&&(clearTimeout(P),P=null)}return{get state(){return e(d)},check:g,stop:W}}var Xt=m('<button class="text-muted-foreground hover:text-foreground ml-auto flex items-center gap-1 text-xs"> <!></button>'),Zt=m('<p class="text-muted-foreground text-xs">No organizations exist yet.</p>'),ea=m('<label class="hover:bg-muted/40 flex items-center gap-2 rounded px-2 py-1 text-xs"><input type="checkbox" class="h-3.5 w-3.5"/> <span class="truncate"> </span> <span class="text-muted-foreground ml-auto font-mono text-[10px]"> </span></label>'),ta=m('<div class="grid gap-1 sm:grid-cols-2"></div>'),aa=m(`<p class="text-muted-foreground text-xs">This server is the global default — it stays visible to every org regardless of the
|
|
2
2
|
allowlist.</p>`),ra=m('<p class="text-muted-foreground text-xs">No orgs selected — this server is dormant (admin-only).</p>'),sa=m('<div class="space-y-2"><div class="flex items-center gap-3"><p class="text-muted-foreground text-xs">Available to</p> <div class="bg-muted inline-flex rounded-md p-0.5"><button>All orgs</button> <button>Specific orgs</button></div> <!></div> <!> <!></div>'),oa=m('<span class="flex items-center gap-1 rounded-full bg-green-100 px-2 py-0.5 text-xs font-medium text-green-800 dark:bg-green-900/30 dark:text-green-400"><!> default</span>'),na=m('<button class="text-muted-foreground hover:text-foreground text-xs underline-offset-2 hover:underline">set as default</button>'),qe=m("<!> ",1),st=m("<!> <!>",1),ia=m('<span class="text-muted-foreground">Loading…</span>'),la=m('<span class="text-red-600 dark:text-red-400">Not installed</span>'),da=m('<div class="grid grid-cols-3 gap-2"><div class="bg-muted/40 rounded-md px-3 py-2"><p class="text-muted-foreground text-xs">Rhino</p> <p class="mt-0.5 text-xs font-medium"> </p></div> <div class="bg-muted/40 rounded-md px-3 py-2"><p class="text-muted-foreground text-xs">Compute</p> <p class="mt-0.5 text-xs font-medium"> </p></div> <div class="bg-muted/40 rounded-md px-3 py-2"><p class="text-muted-foreground text-xs">Selva Plugin</p> <p class="mt-0.5 text-xs font-medium"><!></p></div></div> <div class="grid grid-cols-2 gap-2"><div class="bg-muted/40 rounded-md px-3 py-2"><p class="text-muted-foreground text-xs">Active children</p> <p class="mt-0.5 text-xs font-medium"> </p></div> <div class="bg-muted/40 rounded-md px-3 py-2"><p class="text-muted-foreground text-xs">Idle for</p> <p class="mt-0.5 text-xs font-medium"> </p></div></div>',1),ua=m('<button class="text-muted-foreground hover:text-destructive shrink-0 text-xs underline-offset-2 hover:underline">Clear</button>'),ca=m('<button class="text-muted-foreground hover:text-foreground shrink-0 text-xs underline-offset-2 hover:underline">Undo</button>'),va=m('<div class="bg-muted/40 flex items-center justify-between rounded-md px-3 py-1.5"><span class="text-xs font-medium"> </span> <span class="text-muted-foreground text-xs"> </span></div>'),fa=m('<div class="mt-2 grid gap-1.5 sm:grid-cols-2 lg:grid-cols-3"></div>'),pa=m('<div><button class="text-muted-foreground hover:text-foreground flex items-center gap-1 text-xs"><!> </button> <!></div>'),ma=m('<div><div class="flex items-center justify-between"><div class="flex items-center gap-2"><!> <!></div> <div class="flex items-center gap-3"><div class="flex items-center gap-1.5"><!> <span> </span></div> <!> <!> <!> <!></div></div> <!> <div class="grid gap-2 sm:grid-cols-2"><div class="space-y-1"><p class="text-muted-foreground text-xs">Server URL</p> <!></div> <div class="space-y-1"><p class="text-muted-foreground text-xs">API Key (optional)</p> <div class="flex gap-1.5"><!> <!></div></div> <div class="space-y-1"><p class="text-muted-foreground text-xs">Timeout (ms)</p> <!></div> <div class="space-y-1"><p class="text-muted-foreground text-xs">Retries</p> <!></div></div> <!> <!></div>'),ha=m("<!> Add server",1),ga=m('<!> <button type="button" class="border-muted-foreground/30 text-muted-foreground hover:border-foreground/50 hover:text-foreground hover:bg-muted/30 flex w-full items-center justify-center gap-2 rounded-lg border border-dashed py-4 text-sm font-medium transition-colors"><!> Add another server</button>',1),xa=m('<div class="space-y-6"><!> <!></div>');function Fa(ae,d){kt(d,!0);const P=(a,t=Ue)=>{const l=y(()=>t().sharedWith==="all"),u=y(()=>e(l)?new Set:new Set(t().sharedWith)),v=y(()=>t().id===e(W));var x=sa(),I=n(x),X=s(n(I),2),U=n(X),re=s(U,2);o(X);var Z=s(X,2);{var le=f=>{var b=Xt(),N=n(b),H=s(N);{var te=A=>{at(A,{class:"h-3 w-3"})},q=A=>{rt(A,{class:"h-3 w-3"})};S(H,A=>{Q[t().id]?A(te):A(q,-1)})}o(b),O(()=>$(N,`${e(u).size??""}/${d.data.orgs.length??""} selected `)),J("click",b,()=>Q[t().id]=!Q[t().id]),c(f,b)};S(Z,f=>{!e(l)&&d.data.orgs.length>0&&f(le)})}o(I);var de=s(I,2);{var ge=f=>{var b=Le(),N=z(b);{var H=q=>{var A=Zt();c(q,A)},te=q=>{var A=ta();He(A,21,()=>d.data.orgs,xe=>xe.id,(xe,ue)=>{var ce=ea(),ve=n(ce);Kt(ve);var se=s(ve,2),_e=n(se,!0);o(se);var Me=s(se,2),be=n(Me,!0);o(Me),o(ce),O(Ae=>{Pt(ve,Ae),$(_e,e(ue).name),$(be,e(ue).slug)},[()=>e(u).has(e(ue).id)]),J("change",ve,()=>ut(t(),e(ue).id)),c(xe,ce)}),o(A),c(q,A)};S(N,q=>{d.data.orgs.length===0?q(H):q(te,-1)})}c(f,b)};S(de,f=>{!e(l)&&Q[t().id]&&f(ge)})}var L=s(de,2);{var ee=f=>{var b=aa();c(f,b)},D=f=>{var b=ra();c(f,b)};S(L,f=>{!e(l)&&e(v)?f(ee):!e(l)&&e(u).size===0&&f(D,1)})}o(x),O(()=>{Ne(U,1,`rounded px-2 py-0.5 text-xs ${e(l)?"bg-background shadow-sm":"text-muted-foreground hover:text-foreground"}`),Ne(re,1,`rounded px-2 py-0.5 text-xs ${e(l)?"text-muted-foreground hover:text-foreground":"bg-background shadow-sm"}`)}),J("click",U,()=>Ge(t(),!0)),J("click",re,()=>Ge(t(),!1)),c(a,x)},Y=(a,t=Ue,l=Ue)=>{const u=y(()=>e(M)[t().id]?.state),v=y(()=>Ce[e(u)?.state??"idle"]),x=y(()=>e(u)?.state==="checking"||e(u)?.state==="loading"),I=y(()=>Object.entries(e(u)?.plugins??{})),X=y(()=>k.has(t().id));var U=ma(),re=n(U),Z=n(re),le=n(Z);$e(le,{placeholder:"label",get value(){return t().label},oninput:r=>{const i=r.target;t().label=i.value.toLowerCase().replace(/[^a-z0-9_-]/g,""),i.value=t().label,R(t().id)},class:"h-7 w-32 font-mono text-xs"});var de=s(le,2);{var ge=r=>{var i=oa(),p=n(i);Ht(p,{class:"h-3 w-3"}),ke(),o(i),c(r,i)},L=r=>{var i=na();J("click",i,()=>{h(W,t().id,!0),R(t().id)}),c(r,i)};S(de,r=>{t().id===e(W)?r(ge):r(L,-1)})}o(Z);var ee=s(Z,2),D=n(ee),f=n(D);Et(f,{get class(){return`h-2.5 w-2.5 shrink-0 fill-current ${e(v).color??""}`}});var b=s(f,2),N=n(b,!0);o(b),o(D);var H=s(D,2);ne(H,{variant:"outline",size:"sm",onclick:()=>e(M)[t().id]?.check(),get disabled(){return e(x)},class:"h-7",title:"Probe this server's availability (retries for up to 1 min)",children:(r,i)=>{var p=qe(),w=z(p);{let V=y(()=>e(x)?"animate-spin":"");Ut(w,{get class(){return`mr-1.5 h-3.5 w-3.5 ${e(V)??""}`}})}var T=s(w);O(()=>$(T,` ${e(x)?"Checking…":"Check"}`)),c(r,p)},$$slots:{default:!0}});var te=s(H,2);{var q=r=>{const i=y(()=>Re[t().id]);var p=st(),w=z(p);{let V=y(()=>e(i)!==null&&e(i)!==void 0);ne(w,{variant:"outline",size:"sm",onclick:()=>Je(t(),"purge"),get disabled(){return e(V)},class:"h-7",title:"Clear cached solve results across this server's children (best-effort fleet-wide)",children:(K,fe)=>{var G=qe(),_=z(G);Ft(_,{class:"mr-1.5 h-3.5 w-3.5"});var F=s(_);O(()=>$(F,` ${e(i)==="purge"?"Purging…":"Purge cache"}`)),c(K,G)},$$slots:{default:!0}})}var T=s(w,2);{let V=y(()=>e(i)!==null&&e(i)!==void 0);ne(T,{variant:"outline",size:"sm",onclick:()=>Je(t(),"shutdown"),get disabled(){return e(V)},class:"text-destructive hover:text-destructive h-7",title:"Gracefully shut down all child processes (they auto-respawn on the next request)",children:(K,fe)=>{var G=qe(),_=z(G);Jt(_,{class:"mr-1.5 h-3.5 w-3.5"});var F=s(_);O(()=>$(F,` ${e(i)==="shutdown"?"Shutting down…":"Shutdown children"}`)),c(K,G)},$$slots:{default:!0}})}c(r,p)};S(te,r=>{e(u)?.reachable&&r(q)})}var A=s(te,2);{var xe=r=>{var i=st(),p=z(i);ne(p,{variant:"ghost",size:"sm",onclick:()=>lt(t().id),get disabled(){return e(E)},class:"text-muted-foreground hover:text-foreground h-7",children:(T,V)=>{ke();var K=De("Discard");c(T,K)},$$slots:{default:!0}});var w=s(p,2);ne(w,{size:"sm",onclick:ct,get disabled(){return e(E)},class:"h-7",children:(T,V)=>{ke();var K=De();O(()=>$(K,e(E)?"Saving…":"Save changes")),c(T,K)},$$slots:{default:!0}}),c(r,i)};S(A,r=>{e(X)&&r(xe)})}var ue=s(A,2);{let r=y(()=>t().id===e(W)),i=y(()=>t().id===e(W)?"Set another server as default before deleting":void 0);ne(ue,{variant:"ghost",size:"sm",onclick:()=>dt(l()),get disabled(){return e(r)},get title(){return e(i)},class:"text-destructive hover:text-destructive h-7 w-7 p-0",children:(p,w)=>{Lt(p,{class:"h-3.5 w-3.5"})},$$slots:{default:!0}})}o(ee),o(re);var ce=s(re,2);{var ve=r=>{var i=da(),p=z(i),w=n(p),T=s(n(w),2),V=n(T,!0);o(T),o(w);var K=s(w,2),fe=s(n(K),2),G=n(fe,!0);o(fe),o(K);var _=s(K,2),F=s(n(_),2),ye=n(F);{var Ie=j=>{var me=De();O(()=>$(me,e(u).selvaVersion)),c(j,me)},Ke=j=>{var me=ia();c(j,me)},ze=j=>{var me=la();c(j,me)};S(ye,j=>{e(u).selvaInstalled?j(Ie):e(u).ready?j(ze,-1):j(Ke,1)})}o(F),o(_),o(p);var Pe=s(p,2),oe=n(Pe),pe=s(n(oe),2),Ee=n(pe,!0);o(pe),o(oe);var we=s(oe,2),We=s(n(we),2),yt=n(We,!0);o(We),o(we),o(Pe),O(j=>{$(V,e(u).rhinoVersion??"-"),$(G,e(u).computeVersion??"-"),$(Ee,e(u).activeChildren??"-"),$(yt,j)},[()=>Te(e(u).idleSpanSeconds)]),c(r,i)};S(ce,r=>{e(u)?.reachable&&r(ve)})}var se=s(ce,2),_e=n(se),Me=s(n(_e),2);$e(Me,{placeholder:"http://localhost:5000",oninput:()=>R(t().id),class:"font-mono text-xs",get value(){return t().serverUrl},set value(r){t().serverUrl=r}}),o(_e);var be=s(_e,2),Ae=s(n(be),2),Be=n(Ae);{let r=y(()=>t().hasApiKey&&t().apiKey!==C&&!t().apiKey?"Key set - enter new value to replace":t().apiKey===C?"Key will be cleared on save":""),i=y(()=>t().apiKey===C?"":t().apiKey),p=y(()=>t().apiKey===C);$e(Be,{type:"password",get placeholder(){return e(r)},get value(){return e(i)},get disabled(){return e(p)},oninput:w=>{t().apiKey=w.target.value,R(t().id)},class:"font-mono text-xs"})}var ft=s(Be,2);{var pt=r=>{var i=ua();J("click",i,()=>{t().apiKey=C,R(t().id)}),c(r,i)},mt=r=>{var i=ca();J("click",i,()=>t().apiKey=""),c(r,i)};S(ft,r=>{t().hasApiKey&&t().apiKey!==C&&!t().apiKey?r(pt):t().apiKey===C&&r(mt,1)})}o(Ae),o(be);var je=s(be,2),ht=s(n(je),2);$e(ht,{type:"number",placeholder:"30000",oninput:()=>R(t().id),onblur:()=>{t().timeoutMs=Math.min(3e5,Math.max(1e3,Number(t().timeoutMs)||3e4))},class:"text-xs",get value(){return t().timeoutMs},set value(r){t().timeoutMs=r}}),o(je);var Qe=s(je,2),gt=s(n(Qe),2);$e(gt,{type:"number",placeholder:"0",oninput:()=>R(t().id),onblur:()=>{t().retryCount=Math.min(5,Math.max(0,Number(t().retryCount)||0))},class:"text-xs",get value(){return t().retryCount},set value(r){t().retryCount=r}}),o(Qe),o(se);var Xe=s(se,2);{var xt=r=>{P(r,t)};S(Xe,r=>{d.data.tenancy!=="single"&&r(xt)})}var _t=s(Xe,2);{var bt=r=>{var i=pa(),p=n(i),w=n(p);{var T=_=>{at(_,{class:"h-3 w-3"})},V=_=>{rt(_,{class:"h-3 w-3"})};S(w,_=>{B[t().id]?_(T):_(V,-1)})}var K=s(w);o(p);var fe=s(p,2);{var G=_=>{var F=fa();He(F,21,()=>e(I),([ye,Ie])=>ye,(ye,Ie)=>{var Ke=y(()=>At(e(Ie),2));let ze=()=>e(Ke)[0],Pe=()=>e(Ke)[1];var oe=va(),pe=n(oe),Ee=n(pe,!0);o(pe);var we=s(pe,2),We=n(we,!0);o(we),o(oe),O(()=>{$(Ee,ze()),$(We,Pe())}),c(ye,oe)}),o(F),c(_,F)};S(fe,_=>{B[t().id]&&_(G)})}o(i),O(()=>$(K,` ${e(I).length??""} Grasshopper plugin${e(I).length===1?"":"s"}`)),J("click",p,()=>B[t().id]=!B[t().id]),c(r,i)};S(_t,r=>{e(u)?.reachable&&e(I).length>0&&r(bt)})}o(U),O(()=>{Ne(U,1,`space-y-3 rounded-lg border p-4 transition-colors ${e(X)?"border-amber-400/60 bg-amber-50/30 dark:border-amber-500/40 dark:bg-amber-950/10":"bg-muted/30"}`),Ne(b,1,`text-xs font-medium ${e(v).color??""}`),$(N,e(v).label)}),c(a,U)},C="__clear__";function Te(a){if(a===null)return"-";if(a<5)return"just now";if(a<60)return`${Math.round(a)}s`;const t=Math.floor(a/60);return t<60?`${t}m`:`${Math.floor(t/60)}h ${t%60}m`}const Ce={idle:{label:"Not checked",color:"text-muted-foreground"},ok:{label:"Online",color:"text-green-600 dark:text-green-400"},warning:{label:"Warning",color:"text-yellow-600 dark:text-yellow-400"},error:{label:"Offline",color:"text-red-600 dark:text-red-400"},checking:{label:"Checking…",color:"text-blue-600 dark:text-blue-400"},loading:{label:"Loading plugins…",color:"text-blue-600 dark:text-blue-400"}};let g=Se(he([])),W=Se(""),E=Se(!1);const k=new Tt;let B=he({}),Q=he({});function R(a){k.add(a)}function lt(a){k.delete(a);const t=d.data.servers.find(u=>u.id===a),l=e(g).findIndex(u=>u.id===a);if(!(l<0)){if(!t){e(M)[a]?.stop();const{[a]:u,...v}=e(M);h(M,v,!0),h(g,e(g).filter(x=>x.id!==a),!0);return}e(g)[l]={id:t.id,label:t.label,serverUrl:t.serverUrl,sharedWith:t.sharedWith==="all"?"all":[...t.sharedWith],timeoutMs:t.timeoutMs??3e4,retryCount:t.retryCount??0,apiKey:"",hasApiKey:t.hasApiKey},h(W,d.data.defaultServerId,!0)}}let M=Se(he({}));function Oe(a){return e(M)[a]||(e(M)[a]=Qt(()=>a)),e(M)[a]}Ze(()=>{k.size===0&&(h(g,d.data.servers.map(a=>({id:a.id,label:a.label,serverUrl:a.serverUrl,sharedWith:a.sharedWith==="all"?"all":[...a.sharedWith],timeoutMs:a.timeoutMs??3e4,retryCount:a.retryCount??0,apiKey:"",hasApiKey:a.hasApiKey})),!0),h(W,d.data.defaultServerId,!0))}),Ze(()=>{const a=d.data.servers.map(t=>t.id);Ct(()=>{for(const t of a)Oe(t)})}),wt(()=>{for(const a of Object.values(e(M)))a.stop()});function Fe(){const a=Dt();e(g).length===0&&h(W,a,!0),h(g,[...e(g),{id:a,label:"new-server",serverUrl:"http://localhost:5000",sharedWith:"all",apiKey:"",hasApiKey:!1,timeoutMs:3e4,retryCount:0}],!0),Oe(a),R(a)}function dt(a){const t=e(g)[a];e(M)[t.id]?.stop();const{[t.id]:l,...u}=e(M);h(M,u,!0),h(g,e(g).filter((v,x)=>x!==a),!0),e(W)===t.id&&e(g)[0]&&h(W,e(g)[0].id,!0);for(const v of e(g))R(v.id)}function Ge(a,t){a.sharedWith=t?"all":[],R(a.id)}function ut(a,t){a.sharedWith!=="all"&&(a.sharedWith=a.sharedWith.includes(t)?a.sharedWith.filter(l=>l!==t):[...a.sharedWith,t],R(a.id))}async function ct(){h(E,!0);try{const a={defaultServerId:e(W),servers:e(g).map(({apiKey:l,hasApiKey:u,retryCount:v,timeoutMs:x,...I})=>({...I,timeoutMs:Math.min(3e5,Math.max(1e3,Number(x)||3e4)),...l===C?{apiKey:null}:l?{apiKey:l}:{},...Number(v)?{retryCount:Math.min(5,Math.max(0,Number(v)))}:{}}))},t=await fetch("/admin/api/compute",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(t.ok){ie.success("Compute config saved"),await Nt(),k.clear();for(const l of Object.values(e(M)))l.stop();h(M,{},!0);for(const l of e(g))Oe(l.id)}else{const l=await t.json().catch(()=>({error:"Unknown error"}));ie.error(l.message||l.error||`Failed to save (${t.status})`)}}catch{ie.error("Failed to save compute config")}finally{h(E,!1)}}let Re=he({});async function Je(a,t){if(!(t==="shutdown"&&!confirm(`Shut down ALL child processes on "${a.label}"?
|
|
3
3
|
|
|
4
4
|
In-flight solves on those children will be interrupted. The pool auto-respawns on the next request.`))){Re[a.id]=t;try{const l=await fetch("/admin/api/compute/actions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({serverId:a.id,action:t})}),u=await l.json().catch(()=>({}));if(!l.ok){ie.error(u.message||u.error||`Action failed (${l.status})`);return}if(t==="purge"){const{totalPurged:v=0,children:x=0,confident:I}=u;ie.success(I?`Purged ${v} cached solve${v===1?"":"s"}`:`Purged ~${v} across ${x} children (best-effort)`)}else{const{shutdown:v=0,active:x=0}=u;ie.success(`Shut down ${v} child${v===1?"":"ren"} (${x} still active)`),e(M)[a.id]?.check()}}catch{ie.error(`Failed to ${t} server`)}finally{Re[a.id]=null}}}var Ve=xa();Wt("1h8e46q",a=>{St(()=>{Mt.title="Admin · Compute"})});var Ye=n(Ve);Ot(Ye,{eyebrow:"Admin",title:"Compute",description:"Manage compute servers. Share servers with specific orgs to expose them in pickers. When ALLOW_ORG_COMPUTE_OVERRIDE is on, org owners can configure their own servers."});var vt=s(Ye,2);et(vt,()=>Vt,(a,t)=>{t(a,{children:(l,u)=>{var v=Le(),x=z(v);et(x,()=>Rt,(I,X)=>{X(I,{class:"space-y-3 pt-6",children:(U,re)=>{var Z=Le(),le=z(Z);{var de=L=>{jt(L,{get icon(){return zt},title:"No servers configured",actions:D=>{ne(D,{variant:"outline",size:"sm",onclick:Fe,children:(f,b)=>{var N=ha(),H=z(N);tt(H,{class:"mr-1.5 h-3.5 w-3.5"}),ke(),c(f,N)},$$slots:{default:!0}})},$$slots:{actions:!0}})},ge=L=>{var ee=ga(),D=z(ee);He(D,19,()=>e(g),N=>N.id,(N,H,te)=>{Y(N,()=>e(H),()=>e(te))});var f=s(D,2),b=n(f);tt(b,{class:"h-4 w-4"}),ke(),o(f),J("click",f,Fe),c(L,ee)};S(le,L=>{e(g).length===0?L(de):L(ge,-1)})}c(U,Z)},$$slots:{default:!0}})}),c(l,v)},$$slots:{default:!0}})}),o(Ve),c(ae,Ve),$t()}It(["click","change"]);export{Fa as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{p as pt,j as ut,a as vt,e as ft,f as _,h as l,c as d,s as S,g as a,$ as _t,n as g,d as o,i as gt,r as i,t as R}from"../chunks/j7JNK5dy.js";import{s as b}from"../chunks/DzgYcjQZ.js";import{a as s,f as D,c as B,t as k}from"../chunks/DHFMIoXm.js";import{i as rt}from"../chunks/D7Ywb5BJ.js";import{a as ht,e as $t,b as wt}from"../chunks/CKL0E1IM.js";import{c as F}from"../chunks/C3JrmfEx.js";import{h as xt}from"../chunks/DV1j3Tnl.js";import{i as bt,g as yt}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{p as pt,j as ut,a as vt,e as ft,f as _,h as l,c as d,s as S,g as a,$ as _t,n as g,d as o,i as gt,r as i,t as R}from"../chunks/j7JNK5dy.js";import{s as b}from"../chunks/DzgYcjQZ.js";import{a as s,f as D,c as B,t as k}from"../chunks/DHFMIoXm.js";import{i as rt}from"../chunks/D7Ywb5BJ.js";import{a as ht,e as $t,b as wt}from"../chunks/CKL0E1IM.js";import{c as F}from"../chunks/C3JrmfEx.js";import{h as xt}from"../chunks/DV1j3Tnl.js";import{i as bt,g as yt}from"../chunks/DAFm-rT0.js";import{S as Pt}from"../chunks/CtMkeZKL.js";import{B as U}from"../chunks/YRdQdDS3.js";import{P as jt}from"../chunks/BAq0bkTU.js";import{C as st,a as ot}from"../chunks/DYptmCKA.js";import{E as Ct}from"../chunks/B9HQWvYU.js";import{F as Nt}from"../chunks/vMJbIwwS.js";import{D as Ot}from"../chunks/B7vGo7d8.js";import{L as V}from"../chunks/D5IFV-e6.js";import{I as it}from"../chunks/5dP13_5c.js";import{t as W}from"../chunks/BY9FtCgE.js";var St=D("<!> New project",1),kt=D("<option> </option>"),Dt=D(`<div class="space-y-1.5"><!> <!></div> <div class="space-y-1.5"><!> <!></div> <div class="space-y-1.5"><!> <select id="new-org" class="border-input bg-background h-10 w-full rounded-md border px-3 text-sm"></select> <p class="text-muted-foreground text-xs">Storage and compute use this org. Membership in this org does NOT grant access —
|
|
2
2
|
visibility = platform overrides.</p></div> <div class="flex justify-end gap-2 pt-2"><!> <!></div>`,1),Tt=D('<a class="min-w-0 hover:underline"><p class="truncate text-sm font-medium"> </p> <p class="text-muted-foreground truncate font-mono text-xs"> </p></a> <span class="truncate text-sm"> </span> <span class="text-muted-foreground text-right text-xs"> </span>',1),zt=D('<div class="space-y-6"><!> <!> <!></div>');function Zt(nt,h){pt(h,!0);let y=S(!1),T=S(!1),P=S(""),z=S(""),j=S("");ut(()=>{a(y)&&!a(j)&&h.data.orgOptions.length>0&&l(j,h.data.orgOptions[0].id,!0)});async function lt(){if(!a(P).trim()){W.error("Name is required");return}l(T,!0);try{const r=await fetch("/admin/api/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a(P).trim(),description:a(z).trim()||void 0,orgId:a(j)||void 0})});if(!r.ok){const u=await r.json().catch(()=>({}));throw new Error(u.message??`HTTP ${r.status}`)}const m=await r.json();W.success(`Created “${m.name}”`),l(y,!1),l(P,""),l(z,""),await bt(),yt(`/admin/projects/${m.id}`)}catch(r){W.error(r.message)}finally{l(T,!1)}}var q=zt();xt("1bzxaev",r=>{ft(()=>{_t.title="Admin · Platform projects"})});var X=d(q);Pt(X,{eyebrow:"Admin",title:"Platform projects",description:"Projects owned by platform admins. Grant orgs or individual users view/solve access without project membership.",actions:m=>{U(m,{size:"sm",onclick:()=>l(y,!0),class:"gap-1.5",children:(u,G)=>{var v=St(),C=_(v);jt(C,{class:"h-3.5 w-3.5"}),g(),s(u,v)},$$slots:{default:!0}})},$$slots:{actions:!0}});var Y=o(X,2);{var dt=r=>{var m=B(),u=_(m);F(u,()=>ot,(G,v)=>{v(G,{children:(C,Z)=>{var A=B(),J=_(A);F(J,()=>st,(tt,H)=>{H(tt,{class:"space-y-4 pt-6",children:(K,et)=>{var I=Dt(),c=_(I),M=d(c);V(M,{for:"new-name",children:(t,n)=>{g();var e=k("Name");s(t,e)},$$slots:{default:!0}});var N=o(M,2);it(N,{id:"new-name",placeholder:"Shared templates",get value(){return a(P)},set value(t){l(P,t,!0)}}),i(c);var p=o(c,2),O=d(p);V(O,{for:"new-desc",children:(t,n)=>{g();var e=k("Description (optional)");s(t,e)},$$slots:{default:!0}});var $=o(O,2);it($,{id:"new-desc",get value(){return a(z)},set value(t){l(z,t,!0)}}),i(p);var f=o(p,2),E=d(f);V(E,{for:"new-org",children:(t,n)=>{g();var e=k("Host organization");s(t,e)},$$slots:{default:!0}});var w=o(E,2);$t(w,21,()=>h.data.orgOptions,t=>t.id,(t,n)=>{var e=kt(),mt=d(e);i(e);var at={};R(()=>{b(mt,`${a(n).name??""} (${a(n).slug??""})`),at!==(at=a(n).id)&&(e.value=(e.__value=a(n).id)??"")}),s(t,e)}),i(w),g(2),i(f);var L=o(f,2),x=d(L);U(x,{variant:"outline",size:"sm",onclick:()=>l(y,!1),children:(t,n)=>{g();var e=k("Cancel");s(t,e)},$$slots:{default:!0}});var Q=o(x,2);U(Q,{size:"sm",get disabled(){return a(T)},onclick:lt,children:(t,n)=>{g();var e=k();R(()=>b(e,a(T)?"Creating…":"Create")),s(t,e)},$$slots:{default:!0}}),i(L),wt(w,()=>a(j),t=>l(j,t)),s(K,I)},$$slots:{default:!0}})}),s(C,A)},$$slots:{default:!0}})}),s(r,m)};rt(Y,r=>{a(y)&&r(dt)})}var ct=o(Y,2);F(ct,()=>ot,(r,m)=>{m(r,{children:(u,G)=>{var v=B(),C=_(v);F(C,()=>st,(Z,A)=>{A(Z,{class:"pt-6",children:(J,tt)=>{var H=B(),K=_(H);{var et=c=>{Ct(c,{get icon(){return Nt},title:"No platform projects",description:"Click “New project” to create one. Platform projects are managed by instance admins and granted to orgs or individual users."})},I=c=>{Ot(c,{get rows(){return h.data.projects},getKey:N=>N.id,columns:[{label:"Project"},{label:"Host org",width:"200px"},{label:"Created",width:"140px",align:"right"}],row:(N,p=gt)=>{var O=Tt(),$=_(O),f=d($),E=d(f,!0);i(f);var w=o(f,2),L=d(w,!0);i(w),i($);var x=o($,2),Q=d(x,!0);i(x);var t=o(x,2),n=d(t,!0);i(t),R(e=>{ht($,"href",`/admin/projects/${p().id}`),b(E,p().name),b(L,p().slug),b(Q,p().hostOrgName),b(n,e)},[()=>new Date(p().createdAt).toLocaleDateString()]),s(N,O)},$$slots:{row:!0}})};rt(K,c=>{h.data.projects.length===0?c(et):c(I,-1)})}s(J,H)},$$slots:{default:!0}})}),s(u,v)},$$slots:{default:!0}})}),i(q),s(nt,q),vt()}export{Zt as component};
|
|
Binary file
|
|
Binary file
|