@selvajs/selva 4.6.15 → 4.6.16
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/{oqf_LH-v.js → BY8bojlq.js} +1 -1
- package/build/client/_app/immutable/chunks/BY8bojlq.js.br +0 -0
- package/build/client/_app/immutable/chunks/BY8bojlq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ba0SJPsk.js +1 -0
- package/build/client/_app/immutable/chunks/Ba0SJPsk.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ba0SJPsk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BuQcZ391.js +3 -0
- package/build/client/_app/immutable/chunks/BuQcZ391.js.br +0 -0
- package/build/client/_app/immutable/chunks/BuQcZ391.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C69G1Ui7.js → CD8Wxnqk.js} +1 -1
- package/build/client/_app/immutable/chunks/CD8Wxnqk.js.br +0 -0
- package/build/client/_app/immutable/chunks/CD8Wxnqk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DTrFhc7R.js → CMGgRKBD.js} +1 -1
- package/build/client/_app/immutable/chunks/CMGgRKBD.js.br +0 -0
- package/build/client/_app/immutable/chunks/CMGgRKBD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DYV9R36t.js → CzJ-AB7a.js} +1 -1
- package/build/client/_app/immutable/chunks/CzJ-AB7a.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzJ-AB7a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1oEfDeA.js +1 -0
- package/build/client/_app/immutable/chunks/D1oEfDeA.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1oEfDeA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DCPwh0Sl.js → DWQFIxJz.js} +1 -1
- package/build/client/_app/immutable/chunks/DWQFIxJz.js.br +0 -0
- package/build/client/_app/immutable/chunks/DWQFIxJz.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.4gCgIqIE.js +2 -0
- package/build/client/_app/immutable/entry/app.4gCgIqIE.js.br +0 -0
- package/build/client/_app/immutable/entry/app.4gCgIqIE.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.B7HcfcqC.js +1 -0
- package/build/client/_app/immutable/entry/start.B7HcfcqC.js.br +2 -0
- package/build/client/_app/immutable/entry/start.B7HcfcqC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.Ca1sYC3C.js → 1.DsHuLSCv.js} +1 -1
- package/build/client/_app/immutable/nodes/1.DsHuLSCv.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DsHuLSCv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.Dtd9aDLb.js → 11.BfsGabZe.js} +1 -1
- package/build/client/_app/immutable/nodes/11.BfsGabZe.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BfsGabZe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.CHN0kFwG.js → 13.B7eVO2kd.js} +1 -1
- package/build/client/_app/immutable/nodes/13.B7eVO2kd.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.B7eVO2kd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.DJxstHXG.js → 14.CN8XEZZ7.js} +1 -1
- package/build/client/_app/immutable/nodes/14.CN8XEZZ7.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.CN8XEZZ7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.CxS-d1XP.js +21 -0
- package/build/client/_app/immutable/nodes/15.CxS-d1XP.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CxS-d1XP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.C_zI4n1Y.js → 16.D7vWJZbv.js} +1 -1
- package/build/client/_app/immutable/nodes/16.D7vWJZbv.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.D7vWJZbv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.B4XlUJIc.js → 17.DR0kTauY.js} +1 -1
- package/build/client/_app/immutable/nodes/17.DR0kTauY.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.DR0kTauY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.6SrCZ74e.js → 19.m_ghE-1a.js} +1 -1
- package/build/client/_app/immutable/nodes/19.m_ghE-1a.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.m_ghE-1a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.B76ZGQKl.js +1 -0
- package/build/client/_app/immutable/nodes/2.B76ZGQKl.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.B76ZGQKl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.ClWkj26y.js → 20.BS9M0sjw.js} +1 -1
- package/build/client/_app/immutable/nodes/20.BS9M0sjw.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.BS9M0sjw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.DJmF3TtF.js → 21.BLFlr0oo.js} +1 -1
- package/build/client/_app/immutable/nodes/21.BLFlr0oo.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BLFlr0oo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.Dw4lRr8X.js → 23.BVm3p23P.js} +1 -1
- package/build/client/_app/immutable/nodes/23.BVm3p23P.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.BVm3p23P.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.Cd-IaEah.js → 24.KBWoLAP1.js} +1 -1
- package/build/client/_app/immutable/nodes/24.KBWoLAP1.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.KBWoLAP1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{27.BAA2sVK2.js → 27.9HFt7B-E.js} +1 -1
- package/build/client/_app/immutable/nodes/27.9HFt7B-E.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.9HFt7B-E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.DN_eYRvY.js → 28.DqRkp2GH.js} +1 -1
- package/build/client/_app/immutable/nodes/28.DqRkp2GH.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.DqRkp2GH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{29.QCrqwmGF.js → 29.DZPOQinT.js} +1 -1
- package/build/client/_app/immutable/nodes/29.DZPOQinT.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.DZPOQinT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.C0x2C-jb.js → 3.CvRAuwKW.js} +1 -1
- package/build/client/_app/immutable/nodes/3.CvRAuwKW.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CvRAuwKW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{30.UDcwdvQt.js → 30.Y8AOIiH3.js} +1 -1
- package/build/client/_app/immutable/nodes/30.Y8AOIiH3.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.Y8AOIiH3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.BBP7zQci.js → 5.CCsV2OLD.js} +1 -1
- package/build/client/_app/immutable/nodes/5.CCsV2OLD.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CCsV2OLD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BJl4CJYU.js +1 -0
- package/build/client/_app/immutable/nodes/6.BJl4CJYU.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BJl4CJYU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.Ly5yW6DM.js → 7.ykq_dyRY.js} +1 -1
- package/build/client/_app/immutable/nodes/7.ykq_dyRY.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.ykq_dyRY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.BAHPwBRu.js → 8.CfQP9ipc.js} +1 -1
- package/build/client/_app/immutable/nodes/8.CfQP9ipc.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CfQP9ipc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.BC3ZvZFD.js → 9.WqgjRmtE.js} +1 -1
- package/build/client/_app/immutable/nodes/9.WqgjRmtE.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.WqgjRmtE.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/{SideNav.js-DmUkKbIq.js → SideNav.js-l2ERmV1U.js} +7 -16
- package/build/server/chunks/chunks/SideNav.js-l2ERmV1U.js.map +1 -0
- package/build/server/chunks/chunks/gauge.js-DMUtJJht.js +14 -0
- package/build/server/chunks/chunks/gauge.js-DMUtJJht.js.map +1 -0
- package/build/server/chunks/chunks/{internal.js-DkuT_d5I.js → internal.js-CiIYcJ_v.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-DkuT_d5I.js.map → internal.js-CiIYcJ_v.js.map} +1 -1
- package/build/server/chunks/chunks/{package.js-yeb4qDIe.js → package.js-DbqeVAsT.js} +2 -2
- package/build/server/chunks/chunks/{package.js-yeb4qDIe.js.map → package.js-DbqeVAsT.js.map} +1 -1
- package/build/server/chunks/entries/endpoints/admin/api/system/throughput/_server.ts.js-CQZiKJH5.js +79 -0
- package/build/server/chunks/entries/endpoints/admin/api/system/throughput/_server.ts.js-CQZiKJH5.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/{_layout.svelte.js-BQTc-1yu.js → _layout.svelte.js-Mz-UsIAn.js} +3 -2
- package/build/server/chunks/entries/pages/admin/_layout.svelte.js-Mz-UsIAn.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/{_page.server.ts.js-BsxiR6Xk.js → _page.server.ts.js-woNmvgXW.js} +2 -2
- package/build/server/chunks/entries/pages/admin/{_page.server.ts.js-BsxiR6Xk.js.map → _page.server.ts.js-woNmvgXW.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/system/{_page.server.ts.js-Xx9P6Uvj.js → _page.server.ts.js-BAgfQNdq.js} +2 -2
- package/build/server/chunks/entries/pages/admin/system/{_page.server.ts.js-Xx9P6Uvj.js.map → _page.server.ts.js-BAgfQNdq.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/system/{_page.svelte.js-DCVW0G-O.js → _page.svelte.js-CC2H0IO4.js} +246 -1
- package/build/server/chunks/entries/pages/admin/system/_page.svelte.js-CC2H0IO4.js.map +1 -0
- package/build/server/chunks/entries/pages/team/{_layout.svelte.js-fvMFVC5K.js → _layout.svelte.js-DVIHJU_l.js} +3 -2
- package/build/server/chunks/entries/pages/team/_layout.svelte.js-DVIHJU_l.js.map +1 -0
- package/build/server/chunks/{handler-1NYOIHhX.js → handler-CFqhk1Lw.js} +3 -3
- package/build/server/chunks/{handler-1NYOIHhX.js.map → handler-CFqhk1Lw.js.map} +1 -1
- package/build/server/chunks/{index.js-CbjK2lE2.js → index.js-B1x5z0XW.js} +2 -2
- package/build/server/chunks/{index.js-CbjK2lE2.js.map → index.js-B1x5z0XW.js.map} +1 -1
- package/build/server/chunks/{manifest.js-_hNVc-0C.js → manifest.js-BmGujnal.js} +32 -25
- package/build/server/chunks/manifest.js-BmGujnal.js.map +1 -0
- package/build/server/chunks/nodes/{1.js-1Ri1QQ5e.js → 1.js-6qsocqYq.js} +2 -2
- package/build/server/chunks/nodes/{1.js-1Ri1QQ5e.js.map → 1.js-6qsocqYq.js.map} +1 -1
- package/build/server/chunks/nodes/{11.js-CJ2UgNcS.js → 11.js-D2w80jQ0.js} +2 -2
- package/build/server/chunks/nodes/{11.js-CJ2UgNcS.js.map → 11.js-D2w80jQ0.js.map} +1 -1
- package/build/server/chunks/nodes/{13.js-w4iHL7Ns.js → 13.js-BOcJP3B4.js} +2 -2
- package/build/server/chunks/nodes/{13.js-w4iHL7Ns.js.map → 13.js-BOcJP3B4.js.map} +1 -1
- package/build/server/chunks/nodes/{14.js-DsEg-nSq.js → 14.js-CNIirzyM.js} +2 -2
- package/build/server/chunks/nodes/{14.js-DsEg-nSq.js.map → 14.js-CNIirzyM.js.map} +1 -1
- package/build/server/chunks/nodes/{15.js-Dt3HH0o5.js → 15.js-5N7zUd2G.js} +5 -5
- package/build/server/chunks/nodes/{15.js-Dt3HH0o5.js.map → 15.js-5N7zUd2G.js.map} +1 -1
- package/build/server/chunks/nodes/{16.js-DPOmq-GH.js → 16.js-BwrKREJT.js} +2 -2
- package/build/server/chunks/nodes/{16.js-DPOmq-GH.js.map → 16.js-BwrKREJT.js.map} +1 -1
- package/build/server/chunks/nodes/{17.js-BAZmN1Wj.js → 17.js-DOzZStt_.js} +2 -2
- package/build/server/chunks/nodes/{17.js-BAZmN1Wj.js.map → 17.js-DOzZStt_.js.map} +1 -1
- package/build/server/chunks/nodes/{19.js--iL0YMZH.js → 19.js-Cit0dUJS.js} +2 -2
- package/build/server/chunks/nodes/{19.js--iL0YMZH.js.map → 19.js-Cit0dUJS.js.map} +1 -1
- package/build/server/chunks/nodes/{2.js-BavOW1Ty.js → 2.js-C7F0_Wnd.js} +3 -3
- package/build/server/chunks/nodes/2.js-C7F0_Wnd.js.map +1 -0
- package/build/server/chunks/nodes/{20.js-QkKGfVf5.js → 20.js-BL89VfkG.js} +2 -2
- package/build/server/chunks/nodes/{20.js-QkKGfVf5.js.map → 20.js-BL89VfkG.js.map} +1 -1
- package/build/server/chunks/nodes/{21.js-CldsrpnP.js → 21.js-BDvoxF9Q.js} +2 -2
- package/build/server/chunks/nodes/{21.js-CldsrpnP.js.map → 21.js-BDvoxF9Q.js.map} +1 -1
- package/build/server/chunks/nodes/{23.js-BYyPhyHQ.js → 23.js-DuAFqGyB.js} +2 -2
- package/build/server/chunks/nodes/{23.js-BYyPhyHQ.js.map → 23.js-DuAFqGyB.js.map} +1 -1
- package/build/server/chunks/nodes/{24.js-B6xS5DOZ.js → 24.js-C85j7wE8.js} +2 -2
- package/build/server/chunks/nodes/{24.js-B6xS5DOZ.js.map → 24.js-C85j7wE8.js.map} +1 -1
- package/build/server/chunks/nodes/{27.js-DZzXM46i.js → 27.js-BhpKx9Sz.js} +2 -2
- package/build/server/chunks/nodes/{27.js-DZzXM46i.js.map → 27.js-BhpKx9Sz.js.map} +1 -1
- package/build/server/chunks/nodes/{28.js-D6YUO3v3.js → 28.js-BoGhIdlw.js} +2 -2
- package/build/server/chunks/nodes/{28.js-D6YUO3v3.js.map → 28.js-BoGhIdlw.js.map} +1 -1
- package/build/server/chunks/nodes/{29.js-mkblzNBv.js → 29.js-DKdw3UNi.js} +2 -2
- package/build/server/chunks/nodes/{29.js-mkblzNBv.js.map → 29.js-DKdw3UNi.js.map} +1 -1
- package/build/server/chunks/nodes/{3.js-GYQewbn5.js → 3.js-CZt1olpx.js} +2 -2
- package/build/server/chunks/nodes/{3.js-GYQewbn5.js.map → 3.js-CZt1olpx.js.map} +1 -1
- package/build/server/chunks/nodes/{30.js-Yqtj7Tev.js → 30.js-DXguIfDA.js} +2 -2
- package/build/server/chunks/nodes/{30.js-Yqtj7Tev.js.map → 30.js-DXguIfDA.js.map} +1 -1
- package/build/server/chunks/nodes/{5.js-Bu62ZxpK.js → 5.js-BKC3ru4x.js} +2 -2
- package/build/server/chunks/nodes/{5.js-Bu62ZxpK.js.map → 5.js-BKC3ru4x.js.map} +1 -1
- package/build/server/chunks/nodes/{6.js-4SsBZkGN.js → 6.js-BCrsTS4R.js} +3 -3
- package/build/server/chunks/nodes/6.js-BCrsTS4R.js.map +1 -0
- package/build/server/chunks/nodes/{7.js-0oliwifX.js → 7.js-BwMuGkm5.js} +2 -2
- package/build/server/chunks/nodes/{7.js-0oliwifX.js.map → 7.js-BwMuGkm5.js.map} +1 -1
- package/build/server/chunks/nodes/{8.js-yF4cRhKO.js → 8.js-ZBTt-5XS.js} +2 -2
- package/build/server/chunks/nodes/{8.js-yF4cRhKO.js.map → 8.js-ZBTt-5XS.js.map} +1 -1
- package/build/server/chunks/nodes/{9.js-DQrK6yQF.js → 9.js-_8Z8gAt0.js} +4 -4
- package/build/server/chunks/nodes/{9.js-DQrK6yQF.js.map → 9.js-_8Z8gAt0.js.map} +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/chunks/0gTfzWiE.js +0 -1
- package/build/client/_app/immutable/chunks/0gTfzWiE.js.br +0 -0
- package/build/client/_app/immutable/chunks/0gTfzWiE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-RRhi6_.js +0 -3
- package/build/client/_app/immutable/chunks/C-RRhi6_.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-RRhi6_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C69G1Ui7.js.br +0 -0
- package/build/client/_app/immutable/chunks/C69G1Ui7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCPwh0Sl.js.br +0 -0
- package/build/client/_app/immutable/chunks/DCPwh0Sl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTrFhc7R.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTrFhc7R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DYV9R36t.js.br +0 -0
- package/build/client/_app/immutable/chunks/DYV9R36t.js.gz +0 -0
- package/build/client/_app/immutable/chunks/oqf_LH-v.js.br +0 -0
- package/build/client/_app/immutable/chunks/oqf_LH-v.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.xEM7RQ5g.js +0 -2
- package/build/client/_app/immutable/entry/app.xEM7RQ5g.js.br +0 -0
- package/build/client/_app/immutable/entry/app.xEM7RQ5g.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Dlwg0xzi.js +0 -1
- package/build/client/_app/immutable/entry/start.Dlwg0xzi.js.br +0 -2
- package/build/client/_app/immutable/entry/start.Dlwg0xzi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.Ca1sYC3C.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.Ca1sYC3C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Dtd9aDLb.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Dtd9aDLb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.CHN0kFwG.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CHN0kFwG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.DJxstHXG.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DJxstHXG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DF36Rx-D.js +0 -19
- package/build/client/_app/immutable/nodes/15.DF36Rx-D.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DF36Rx-D.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.C_zI4n1Y.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.C_zI4n1Y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.B4XlUJIc.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.B4XlUJIc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.6SrCZ74e.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.6SrCZ74e.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DTrVaRR9.js +0 -1
- package/build/client/_app/immutable/nodes/2.DTrVaRR9.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DTrVaRR9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.ClWkj26y.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.ClWkj26y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.DJmF3TtF.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DJmF3TtF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.Dw4lRr8X.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.Dw4lRr8X.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.Cd-IaEah.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.Cd-IaEah.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.BAA2sVK2.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.BAA2sVK2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.DN_eYRvY.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.DN_eYRvY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.QCrqwmGF.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.QCrqwmGF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.C0x2C-jb.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C0x2C-jb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.UDcwdvQt.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.UDcwdvQt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BBP7zQci.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BBP7zQci.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.D8jl9RMU.js +0 -1
- package/build/client/_app/immutable/nodes/6.D8jl9RMU.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.D8jl9RMU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.Ly5yW6DM.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Ly5yW6DM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BAHPwBRu.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BAHPwBRu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BC3ZvZFD.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BC3ZvZFD.js.gz +0 -0
- package/build/server/chunks/chunks/SideNav.js-DmUkKbIq.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/_layout.svelte.js-BQTc-1yu.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/system/_page.svelte.js-DCVW0G-O.js.map +0 -1
- package/build/server/chunks/entries/pages/team/_layout.svelte.js-fvMFVC5K.js.map +0 -1
- package/build/server/chunks/manifest.js-_hNVc-0C.js.map +0 -1
- package/build/server/chunks/nodes/2.js-BavOW1Ty.js.map +0 -1
- package/build/server/chunks/nodes/6.js-4SsBZkGN.js.map +0 -1
|
@@ -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 te,u as r,a as K,aC as X,h as I,s as W,n as ve}from"./BtOVeLcI.js";import{c as T,a as m,f as E,t as pe}from"./BoLtD6vo.js";import{s as Z}from"./8uBOzWQA.js";import{i as B}from"./DAQN5y4A.js";import{s as re,r as ae,c as ne,p as $,b as _e}from"./ChEZL1UP.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 te,u as r,a as K,aC as X,h as I,s as W,n as ve}from"./BtOVeLcI.js";import{c as T,a as m,f as E,t as pe}from"./BoLtD6vo.js";import{s as Z}from"./8uBOzWQA.js";import{i as B}from"./DAQN5y4A.js";import{s as re,r as ae,c as ne,p as $,b as _e}from"./ChEZL1UP.js";import{p as D}from"./CMGgRKBD.js";import{s as Y,d as xe,e as ee,a as be}from"./BNpXeuQ_.js";import{e as se,d as we,a as oe,c as ie}from"./22C0ZkpD.js";import{I as ce}from"./BuC_QZkR.js";import{A as ye,U as Pe}from"./CD8Wxnqk.js";import{B as me}from"./mlApEF2J.js";import{S as Ae}from"./BTfzafVu.js";import{U as Ne}from"./BYQ2KYuV.js";import{S as Me}from"./DApsDFvQ.js";function ke(h,t){let d=ae(t,["$$slots","$$events","$$legacy"]);const u=[["path",{d:"M15 6a9 9 0 0 0-9 9V3"}],["circle",{cx:"18",cy:"6",r:"3"}],["circle",{cx:"6",cy:"18",r:"3"}]];ce(h,re({name:"git-branch"},()=>d,{get iconNode(){return u}}))}function Se(h,t){let d=ae(t,["$$slots","$$events","$$legacy"]);const u=[["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"}]];ce(h,re({name:"layout-grid"},()=>d,{get iconNode(){return u}}))}var Ie=E("<a><!> </a>");function $e(h,t){H(t,!0);const d=r(()=>D.data.ctx),u=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:Se,match:"prefix",show:!0},{href:"/projects",label:"Projects",icon:ke,match:"prefix",show:e(u)}].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=T(),w=M(i);se(w,17,()=>e(o),s=>s.href,(s,l)=>{const k=r(()=>b(e(l))),U=r(()=>e(l).icon);var v=Ie(),C=N(v);ne(C,()=>e(U),(c,f)=>{f(c,{class:"h-3.5 w-3.5"})});var p=j(C);x(v),te(c=>{oe(v,"href",e(l).href),ie(v,1,c),Y(p,` ${e(l).label??""}`)},[()=>we(["flex h-8 items-center gap-1.5 rounded-md px-2.5 text-sm font-medium transition-colors",e(k)?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"].join(" "))]),m(s,v)}),m(h,i),K()}var je=E('<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>'),Ee=E('<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>'),Ue=E('<div class="relative"><!> <!></div>');function Ce(h,t){H(t,!0);let d=$(t,"platformPermissions",19,()=>[]),u=$(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"],k=r(()=>e(w)||s.some(a=>d().includes(a))),U=r(()=>e(w)||l.some(a=>u().includes(a))),v=r(()=>[{href:"/team",label:"Team",description:"Members, projects, and org-wide settings",icon:Ne,show:e(U),match:"prefix"},{href:"/admin",label:"Admin",description:"Platform configuration and instance settings",icon:Me,show:e(k),match:"prefix"}].filter(a=>a.show)),C=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)||I(o,!1)}function f(a){a.key==="Escape"&&e(o)&&I(o,!1)}var _=T();ee("click",X,c),ee("keydown",X,f);var y=M(_);{var F=a=>{var n=Ue(),g=N(n);me(g,{onclick:()=>I(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){I(b,A,!0)},children:(A,z)=>{Ae(A,{class:"h-[1.2rem] w-[1.2rem]"})},$$slots:{default:!0}});var P=j(g,2);{var R=A=>{var z=Ee(),V=N(z);se(V,21,()=>e(v),L=>L.href,(L,O)=>{const de=r(()=>e(O).icon),le=r(()=>p(e(O).href));var S=je(),q=N(S);ne(q,()=>e(de),(he,ue)=>{ue(he,{class:"mt-0.5 h-3.5 w-3.5 shrink-0 opacity-70"})});var J=j(q,2),G=N(J),fe=N(G,!0);x(G);var Q=j(G,2),ge=N(Q,!0);x(Q),x(J),x(S),te(()=>{oe(S,"href",e(O).href),ie(S,1,`flex items-start gap-2.5 rounded-sm px-2.5 py-2 text-sm transition-colors ${e(le)?"bg-accent text-accent-foreground":"text-foreground hover:bg-muted/60"}`),Y(fe,e(O).label),Y(ge,e(O).description)}),be("click",S,()=>I(o,!1)),m(L,S)}),x(V),x(z),_e(z,L=>I(i,L),()=>e(i)),m(A,z)};B(P,A=>{e(o)&&A(R)})}x(n),m(a,n)};B(y,a=>{e(C)&&a(F)})}m(h,_),K()}xe(["click"]);var Re=E("<!> <!>",1),ze=E("<!> <!>",1);function Xe(h,t){H(t,!0);let d=$(t,"homeUrl",3,"/library"),u=$(t,"title",3,void 0),o=$(t,"mode",3,"scroll"),b=$(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??[]),k=r(()=>e(i).branding?.name??"Selva"),U=r(()=>e(i).branding?.copyrightName??e(k));ye(h,{get homeUrl(){return d()},get title(){return u()},get mode(){return o()},get sidenav(){return t.sidenav},get brandName(){return e(k)},get copyrightName(){return e(U)},showFooter:!0,navItems:p=>{var c=T(),f=M(c);{var _=y=>{$e(y,{})};B(f,y=>{e(w)&&b()&&y(_)})}m(p,c)},rightContent:p=>{var c=ze(),f=M(c);{var _=n=>{var g=T(),P=M(g);Z(P,()=>t.rightExtras),m(n,g)};B(f,n=>{t.rightExtras&&n(_)})}var y=j(f,2);{var F=n=>{var g=Re(),P=M(g);Pe(P,{});var R=j(P,2);Ce(R,{get platformPermissions(){return e(s)},get orgPermissions(){return e(l)}}),m(n,g)},a=n=>{me(n,{href:"/login",size:"sm",children:(g,P)=>{ve();var R=pe("Sign in");m(g,R)},$$slots:{default:!0}})};B(y,n=>{e(w)?n(F):n(a,-1)})}m(p,c)},children:(p,c)=>{var f=T(),_=M(f);Z(_,()=>t.children),m(p,f)},$$slots:{navItems:!0,rightContent:!0,default:!0}}),K()}export{Xe as A};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +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"./BtOVeLcI.js";import{s as g}from"./BNpXeuQ_.js";import{s as A}from"./8uBOzWQA.js";import{i as c}from"./DAQN5y4A.js";import{e as Q,a as R,c as I}from"./22C0ZkpD.js";import{a as v,f,c as T}from"./BoLtD6vo.js";import{p as U,c as V}from"./ChEZL1UP.js";import{p as X}from"./CMGgRKBD.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);Q(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=T(),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),_(()=>{R(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
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as Xe,s as Ut}from"./C4cbQnXC.js";import{w as Ce}from"./BNpXeuQ_.js";import{s as P,g as N,h as j,K as ue,R as Lt}from"./BtOVeLcI.js";class ve{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 De{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 Be extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function Pt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Nt(e){return e.split("%25").map(decodeURI).join("%25")}function jt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Se({href:e}){return e.split("#")[0]}function C(){}function Ot(...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 a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const xt=new TextDecoder;function $t(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 Ct=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Z.delete(Me(e)),Ct(e,t));const Z=new Map;function Dt(e,t){const n=Me(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&Z.set(n,{body:a,init:s,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=$t(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Bt(e,t,n){if(Z.size>0){const r=Me(e,n),a=Z.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);Z.delete(r)}}return window.fetch(t,n)}function Me(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Ot(...a)}"]`}return r}const Mt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Ft(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${zt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[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 o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((i,l)=>{if(l%2){if(i.startsWith("x+"))return Ie(String.fromCharCode(parseInt(i.slice(2),16)));if(i.startsWith("u+"))return Ie(String.fromCharCode(...i.slice(2).split("-").map(m=>parseInt(m,16))));const u=Mt.exec(i),[,d,p,h,f]=u;return t.push({name:h,matcher:f,optional:!!d,rest:!!p,chained:p?l===1&&o[0]==="":!1}),p?"([^]*?)":d?"([^/]*)?":"([^/]+?)"}return Ie(i)}).join("")}).join("")}/?$`),params:t}}function Vt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function zt(e){return e.slice(1).split("/").filter(Vt)}function qt(e,t,n){const r={},a=e.slice(1),s=a.filter(c=>c!==void 0);let o=0;for(let c=0;c<t.length;c+=1){const i=t[c];let l=a[c-o];if(i.chained&&i.rest&&o&&(l=a.slice(c-o,c+1).filter(u=>u).join("/"),o=0),l===void 0)if(i.rest)l="";else continue;if(!i.matcher||n[i.matcher](l)){r[i.name]=l;const u=t[c+1],d=a[c+1];u&&!u.rest&&u.optional&&d&&i.chained&&(o=0),!u&&!d&&Object.keys(r).length===s.length&&(o=0);continue}if(i.optional&&i.chained){o++;continue}return}if(!o)return r}function Ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Yt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([c,[i,l,u]])=>{const{pattern:d,params:p}=Ft(c),h={id:c,exec:f=>{const m=d.exec(f);if(m)return qt(m,p,r)},errors:[1,...u||[]].map(f=>e[f]),layouts:[0,...l||[]].map(o),leaf:s(i)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function s(c){const i=c<0;return i&&(c=~c),[i,e[c]]}function o(c){return c===void 0?c:[a.has(c),e[c]]}}function st(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ze(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_6zzt96?.base??"",Gt=globalThis.__sveltekit_6zzt96?.assets??L??"",Ht="1783402848167",it="sveltekit:snapshot",ct="sveltekit:scroll",lt="sveltekit:states",Kt="sveltekit:pageurl",q="sveltekit:history",te="sveltekit:navigation",F={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ie=location.origin;function Fe(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 z(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Qe={...F,"":F.hover};function ft(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ut(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=ft(e)}}function Pe(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 c=location.hash.split("#")[1]||"/";r.hash=`#${c}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||be(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=r?.origin===ie&&e.hasAttribute("download");return{url:r,external:s,target:a,download:o}}function de(e){let t=null,n=null,r=null,a=null,s=null,o=null,c=e;for(;c&&c!==document.documentElement;)r===null&&(r=z(c,"preload-code")),a===null&&(a=z(c,"preload-data")),t===null&&(t=z(c,"keepfocus")),n===null&&(n=z(c,"noscroll")),s===null&&(s=z(c,"reload")),o===null&&(o=z(c,"replacestate")),c=ft(c);function i(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Qe[r??"off"],preload_data:Qe[a??"off"],keepfocus:i(t),noscroll:i(n),reload:i(s),replace_state:i(o)}}function et(e){const t=Ce(e);let n=!0;function r(){n=!0,t.update(o=>o)}function a(o){n=!1,t.set(o)}function s(o){let c;return t.subscribe(i=>{(c===void 0||n&&i!==c)&&o(c=i)})}return{notify:r,set:a,subscribe:s}}const dt={v:C};function Wt(){const{set:e,subscribe:t}=Ce(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Gt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==Ht;return o&&(e(!0),dt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function be(e,t,n){return e.origin!==ie||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Bn(e){}const Jt=-1,Xt=-2,Zt=-3,Qt=-4,en=-5,tn=-6,nn=-7,ht=2**32-1,Ne=ht-1;function rn(e){return!(!Number.isInteger(e)||e<0||e>Ne)}function an(e){return!(!Number.isInteger(e)||e<0||e>ht)}function on(e){return Uint8Array.fromBase64(e).buffer}function sn(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function cn(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let a=0;a<n;a++)r[a]=t.charCodeAt(a);return r.buffer}const ln=typeof Uint8Array.fromBase64=="function",fn=typeof process=="object"&&process.versions?.node!==void 0,un=ln?on:fn?sn:cn;function Mn(e,t){return pt(JSON.parse(e),t)}function pt(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 a=null;function s(o,c=!1){if(o===Jt)return;if(o===Zt)return NaN;if(o===Qt)return 1/0;if(o===en)return-1/0;if(o===tn)return-0;if(c||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const i=n[o];if(!i||typeof i!="object")r[o]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const l=i[0],u=t&&Object.hasOwn(t,l)?t[l]:void 0;if(u){let d=i[1];if(typeof d!="number"&&(d=n.push(i[1])-1),a??=new Set,a.has(d))throw new Error("Invalid circular reference");return a.add(d),r[o]=u(s(d)),a.delete(d),r[o]}switch(l){case"Date":r[o]=new Date(i[1]);break;case"Set":const d=new Set;r[o]=d;for(let f=1;f<i.length;f+=1)d.add(s(i[f]));break;case"Map":const p=new Map;r[o]=p;for(let f=1;f<i.length;f+=2)p.set(s(i[f]),s(i[f+1]));break;case"RegExp":r[o]=new RegExp(i[1],i[2]);break;case"Object":{const f=i[1];if(typeof n[f]=="object"&&n[f][0]!=="BigInt")throw new Error("Invalid input");r[o]=Object(s(f));break}case"BigInt":r[o]=BigInt(i[1]);break;case"null":const h=Object.create(null);r[o]=h;for(let f=1;f<i.length;f+=2){if(i[f]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");h[i[f]]=s(i[f+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[i[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const f=globalThis[l],m=s(i[1]);r[o]=i[2]!==void 0?new f(m,i[2],i[3]):new f(m);break}case"ArrayBuffer":{const f=i[1];if(typeof f!="string")throw new Error("Invalid ArrayBuffer encoding");const m=un(f);r[o]=m;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 f=l.slice(9);r[o]=Temporal[f].from(i[1]);break}case"URL":{const f=new URL(i[1]);r[o]=f;break}case"URLSearchParams":{const f=new URLSearchParams(i[1]);r[o]=f;break}default:throw new Error(`Unknown type ${l}`)}}else if(i[0]===nn){const l=i[1];if(!an(l))throw new Error("Invalid input");const u=[];r[o]=u,u[Ne]=void 0,delete u[Ne];for(let d=2;d<i.length;d+=2){const p=i[d];if(!rn(p)||p>=l)throw new Error("Invalid input");u[p]=s(i[d+1])}u.length=l}else{const l=new Array(i.length);r[o]=l;for(let u=0;u<i.length;u+=1){const d=i[u];d!==Xt&&(l[u]=s(d))}}else{const l={};r[o]=l;for(const u of Object.keys(i)){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=i[u];l[u]=s(d)}}return r[o]}return s(0)}const _t=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[..._t];const dn=new Set([..._t]);[...dn];function hn(e){return e.filter(t=>t!=null)}const pn="x-sveltekit-invalidated",_n="x-sveltekit-trailing-slash";function he(e){return e instanceof ve||e instanceof Be?e.status:500}function gn(e){return e instanceof Be?e.text:"Internal Error"}let E,ne,Te;const mn=Xe.toString().includes("$$")||/function \w+\(\) \{\}/.test(Xe.toString()),tt="a:";mn?(E={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(tt)},ne={current:null},Te={current:!1}):(E=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(tt));get url(){return N(this.#i)}set url(t){j(this.#i,t)}},ne=new class{#e=P(null);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},Te=new class{#e=P(!1);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},dt.v=()=>Te.current=!0);function Ve(e){Object.assign(E,e)}const wn="/__data.json",yn=".html__data.json";function vn(e){return e.endsWith(".html")?e.replace(/\.html$/,yn):e.replace(/\/$/,"")+wn}const{tick:gt}=Ut,bn=new Set(["icon","shortcut icon","apple-touch-icon"]);let J=null;const B=st(ct)??{},re=st(it)??{},D={url:et({}),page:et({}),navigating:Ce(null),updated:Wt()};function ze(e){B[e]=V()}function En(e,t){let n=e+1;for(;B[n];)delete B[n],n+=1;for(n=t+1;re[n];)delete re[n],n+=1}function H(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(C)}async function mt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let qe,je,pe,x,Oe,k;const _e=[],ge=[];let T=null;function ae(){T?.fork?.then(e=>e?.discard()),T=null}const fe=new Map,wt=new Set,kn=new Set,Q=new Set;let _={branch:[],error:null,url:null,nav:null},Ye=!1,me=!1,nt=!0,oe=!1,X=!1,yt=!1,ce=!1,K,S,U,$;const ee=new Set;let Ue;const we=new Map;async function qn(e,t,n){globalThis.__sveltekit_6zzt96&&(globalThis.__sveltekit_6zzt96.query,globalThis.__sveltekit_6zzt96.prerender),document.URL!==location.href&&(location.href=location.href),k=e,await e.hooks.init?.(),qe=Yt(e),x=document.documentElement,Oe=t,je=e.nodes[0],pe=e.nodes[1],je(),pe(),S=history.state?.[q],U=history.state?.[te],S||(S=U=Date.now(),history.replaceState({...history.state,[q]:S,[te]:U},""));const r=B[S];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await On(Oe,n)):(await Y({type:"enter",url:Fe(k.hash?xn(new URL(location.href)):location.href),replace_state:!0}),a()),jn()}async function An(e=!0,t=!0){if(await(Ue||=Promise.resolve()),!Ue)return;Ue=null;const n=$={},r=await le(_.url,!0);if(ae(),ce&&we.forEach(a=>{a.forEach(({resource:s})=>{s.refresh?.()})}),e){const a=E.state,s=r&&await Ke(r);if(!s||n!==$)return;if(s.type==="redirect")return Ee(new URL(s.location,_.url).href,{replaceState:!0},1,n);t||(s.props.page.state=a),Ve(s.props.page),_={...s.state,nav:_.nav},xe(),K.$set(s.props)}else xe();await Promise.all([...we.values()].flatMap(a=>[...a.values()].map(({resource:s})=>s))).catch(C)}function xe(){_e.length=0,ce=!1}function vt(e){ge.some(t=>t?.snapshot)&&(re[e]=ge.map(t=>t?.snapshot?.capture()))}function bt(e){re[e]?.forEach((t,n)=>{ge[n]?.snapshot?.restore(t)})}function rt(){ze(S),Ze(ct,B),vt(U),Ze(it,re)}async function Ee(e,t,n,r){let a;t.invalidateAll&&ae(),await Y({type:"goto",url:Fe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ce=!0,a=[],we.forEach((s,o)=>{for(const c of s.keys())a.push(o+"/"+c)})),t.invalidate&&t.invalidate.forEach(Pn)}}),t.invalidateAll&&ue().then(ue).then(()=>{we.forEach((s,o)=>{s.forEach(({resource:c},i)=>{a?.includes(o+"/"+i)&&c.refresh?.()})})})}async function Rn(e){if(e.id!==T?.id){ae();const t={};ee.add(t),T={id:e.id,token:t,promise:Ke({...e,preload:t}).then(n=>(ee.delete(t),n.type==="loaded"&&n.state.error&&ae(),n)),fork:null}}return T.promise}async function Le(e){const t=(await le(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function Et(e,t,n){const r={params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)};_={...e.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(E,e.props.page),K=new k.root({target:t,props:{...e.props,stores:D,components:ge},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),bt(U),n){const s={from:null,to:{...r,scroll:B[S]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};Q.forEach(o=>o(s))}me=!0}async function se({url:e,params:t,branch:n,errors:r,status:a,error:s,route:o,form:c}){let i="never";if(L&&(e.pathname===L||e.pathname===L+"/"))i="always";else for(const f of n)f?.slash!==void 0&&(i=f.slash);e.pathname=Pt(e.pathname,i),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:s,route:o},props:{constructors:hn(n).map(f=>f.node.component),page:Ae(E)}};c!==void 0&&(l.props.form=c);let u={},d=!E,p=0;for(let f=0;f<Math.max(n.length,_.branch.length);f+=1){const m=n[f],b=_.branch[f];m?.data!==b?.data&&(d=!0),m&&(u={...u,...m.data},d&&(l.props[`data_${p}`]=u),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==s||c!==void 0&&c!==E.form||d)&&(l.props.page={error:s,params:t,route:{id:o?.id??null},state:{},status:a,url:new URL(e),form:c??null,data:d?u:E.data}),l}async function Ge({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let o=null;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},i=await e();return{node:i,loader:e,server:s,universal:i.universal?.load?{type:"data",data:o,uses:c}:null,data:o??s?.data??null,slash:i.universal?.trailingSlash??s?.slash}}function Sn(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=me?Bt(r,a.href,t):Dt(r,t);return{resolved:a,promise:s}}function at(e,t,n,r,a,s){if(ce)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(s[o]!==_.params[o])return!0;for(const o of a.dependencies)if(_e.some(c=>c(new URL(o))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function In(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 a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(o=>s.includes(o))&&s.every(o=>a.includes(o))&&n.delete(r)}return n}function ot({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ae(E),constructors:[]}}}async function Ke({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(T?.id===e)return ee.delete(T.token),T.promise;const{errors:o,layouts:c,leaf:i}=a,l=[...c,i];o.forEach(w=>w?.().catch(C)),l.forEach(w=>w?.[1]().catch(C));let u=null;const d=_.url?e!==ye(_.url):!1,p=_.route?a.id!==_.route.id:!1,h=In(_.url,n);let f=!1;{const w=l.map((y,A)=>{const R=_.branch[A],v=!!y?.[0]&&(R?.loader!==y[1]||at(f,p,d,h,R.server?.uses,r));return v&&(f=!0),v});if(w.some(Boolean)){try{u=await St(n,w)}catch(y){const A=await G(y,{url:n,params:r,route:{id:e}});return ee.has(s)?ot({error:A,url:n,params:r,route:a}):ke({status:he(y),error:A,url:n,route:a})}if(u.type==="redirect")return u}}const m=u?.nodes;let b=!1;const g=l.map(async(w,y)=>{if(!w)return;const A=_.branch[y],R=m?.[y];if((!R||R.type==="skip")&&w[1]===A?.loader&&!at(b,p,d,h,A.universal?.uses,r))return A;if(b=!0,R?.type==="error")throw R;return Ge({loader:w[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let M=0;M<y;M+=1)Object.assign(O,(await g[M])?.data);return O},server_data_node:He(R===void 0&&w[0]?{type:"skip"}:R??null,w[0]?A?.server:void 0)})});for(const w of g)w.catch(C);const I=[];for(let w=0;w<l.length;w+=1)if(l[w])try{I.push(await g[w])}catch(y){if(y instanceof De)return{type:"redirect",location:y.location};if(ee.has(s))return ot({error:await G(y,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let A=he(y),R;if(m?.includes(y))A=y.status??A,R=y.error;else if(y instanceof ve)R=y.body;else{if(await D.updated.check())return await mt(),await H(n);R=await G(y,{params:r,url:n,route:{id:a.id}})}const v=await kt(w,I,o);return v?se({url:n,params:r,branch:I.slice(0,v.idx).concat(v.node),errors:o,status:A,error:R,route:a}):await Rt(n,{id:a.id},R,A)}else I.push(void 0);return se({url:n,params:r,branch:I,errors:o,status:200,error:null,route:a,form:t?void 0:null})}async function kt(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 ke({status:e,error:t,url:n,route:r}){const a={};let s=null;if(k.server_loads[0]===0)try{const c=await St(n,[!0]);if(c.type!=="data"||c.nodes[0]&&c.nodes[0].type!=="data")throw 0;s=c.nodes[0]??null}catch{(n.origin!==ie||n.pathname!==location.pathname||Ye)&&await H(n)}try{const o=await Ge({loader:je,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:He(s)}),c={node:await pe(),loader:pe,universal:null,server:null,data:null};return se({url:n,params:a,branch:[o,c],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof De)return Ee(new URL(o.location,location.href),{},0);throw o}}async function Tn(e){const t=e.href;if(fe.has(t))return fe.get(t);let n;try{const r=(async()=>{let a=await k.hooks.reroute({url:new URL(e),fetch:async(s,o)=>Sn(s,o,e).promise})??e;if(typeof a=="string"){const s=new URL(e);k.hash?s.hash=a:s.pathname=a,a=s}return a})();fe.set(t,r),n=await r}catch{fe.delete(t);return}return n}async function le(e,t){if(e&&!be(e,L,k.hash)){const n=await Tn(e);if(!n)return;const r=Un(n);for(const a of qe){const s=a.exec(r);if(s)return{id:ye(e),invalidating:t,route:a,params:jt(s),url:e}}}}function Un(e){return Nt(k.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ye(e){return(k.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function At({url:e,type:t,intent:n,delta:r,event:a,scroll:s}){let o=!1;const c=Je(_,n,e,t,s??null);r!==void 0&&(c.navigation.delta=r),a!==void 0&&(c.navigation.event=a);const i={...c.navigation,cancel:()=>{o=!0,c.reject(new Error("navigation cancelled"))}};return oe||wt.forEach(l=>l(i)),o?null:c}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o={},redirect_count:c=0,nav_token:i={},accept:l=C,block:u=C,event:d}){const p=$;$=i;const h=await le(t,!1),f=e==="enter"?Je(_,h,t,e):At({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:d});if(!f){u(),$===i&&($=p);return}const m=S,b=U;l(),oe=!0,me&&f.navigation.type!=="enter"&&D.navigating.set(ne.current=f.navigation);let g=h&&await Ke(h);if(!g){if(be(t,L,k.hash))return await H(t,s);g=await Rt(t,{id:null},await G(new Be(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=h?.url||t,$!==i)return f.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(c<20){await Y({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o,redirect_count:c+1,nav_token:i}),f.fulfil(void 0);return}g=await ke({status:500,error:await G(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await D.updated.check()&&(await mt(),await H(t,s));if(xe(),ze(m),vt(b),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),o=n?n.state:o,!n){const v=s?0:1,O={[q]:S+=v,[te]:U+=v,[lt]:o};(s?history.replaceState:history.pushState).call(history,O,"",t),s||En(S,U)}const I=h&&T?.id===h.id?T.fork:null;T?.fork&&!I&&ae(),T=null,g.props.page.state=o;let w;if(me){const v=(await Promise.all(Array.from(kn,W=>W(f.navigation)))).filter(W=>typeof W=="function");if(v.length>0){let W=function(){v.forEach(Re=>{Q.delete(Re)})};v.push(W),v.forEach(Re=>{Q.add(Re)})}const O=f.navigation.to;_={...g.state,nav:{params:O.params,route:O.route,url:O.url}},g.props.page&&(g.props.page.url=t);const M=I&&await I;M?w=M.commit():(J=null,K.$set(g.props),J&&Object.assign(g.props.page,J),Ve(g.props.page),w=Lt?.()),yt=!0}else await Et(g,Oe,!1);const{activeElement:y}=document;await w,await ue(),await ue();let A=null;if(nt){const v=n?n.scroll:a?V():null;v?scrollTo(v.x,v.y):(A=t.hash&&document.getElementById(Tt(t)))?A.scrollIntoView():scrollTo(0,0)}const R=document.activeElement!==y&&document.activeElement!==document.body;!r&&!R&&We(t,!A),nt=!0,g.props.page&&(J&&Object.assign(g.props.page,J),Object.assign(E,g.props.page)),oe=!1,e==="popstate"&&bt(U),f.fulfil(void 0),f.navigation.to&&(f.navigation.to.scroll=V()),Q.forEach(v=>v(f.navigation)),D.navigating.set(ne.current=null)}async function Rt(e,t,n,r,a){return e.origin===ie&&e.pathname===location.pathname&&!Ye?await ke({status:r,error:n,url:e,route:t}):await H(e,a)}function Ln(){let e,t={element:void 0,href:void 0},n;x.addEventListener("mousemove",c=>{const i=c.target;clearTimeout(e),e=setTimeout(()=>{s(i,F.hover)},20)});function r(c){c.defaultPrevented||s(c.composedPath()[0],F.tap)}x.addEventListener("mousedown",r),x.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(c=>{for(const i of c)i.isIntersecting&&(Le(new URL(i.target.href)),a.unobserve(i.target))},{threshold:0});async function s(c,i){const l=ut(c,x),u=l===t.element&&l?.href===t.href&&i>=n;if(!l||u)return;const{url:d,external:p,download:h}=Pe(l,L,k.hash);if(p||h)return;const f=de(l),m=d&&ye(_.url)===ye(d);if(!(f.reload||m))if(i<=f.preload_data){t={element:l,href:l.href},n=F.tap;const b=await le(d,!1);if(!b)return;Rn(b)}else i<=f.preload_code&&(t={element:l,href:l.href},n=i,Le(d))}function o(){a.disconnect();for(const c of x.querySelectorAll("a")){const{url:i,external:l,download:u}=Pe(c,L,k.hash);if(l||u)continue;const d=de(c);d.reload||(d.preload_code===F.viewport&&a.observe(c),d.preload_code===F.eager&&Le(i))}}Q.add(o),o()}function G(e,t){if(e instanceof ve)return e.body;const n=he(e),r=gn(e);return k.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Yn(e,t={}){return e=new URL(Fe(e)),e.origin!==ie?Promise.reject(new Error("goto: invalid URL")):Ee(e,t,0)}function Pn(e){if(typeof e=="function")_e.push(e);else{const{href:t}=new URL(e,location.href);_e.push(n=>n.href===t)}}function Gn(){return ce=!0,An()}async function Hn(e){e.type==="error"?await Nn(e.error,e.status):e.type==="redirect"?await Ee(e.location,{invalidateAll:!0},0):(E.form=e.data,E.status=e.status,K.$set({form:null,page:Ae(E)}),await gt(),K.$set({form:e.data}),e.type==="success"&&We(E.url))}async function Nn(e,t=500){const n=new URL(location.href),{branch:r,route:a}=_;if(!a)return;const s=await kt(_.branch.length,r,a.errors);if(s){const o=await se({url:n,params:_.params,branch:r.slice(0,s.idx).concat(s.node),status:t,error:e,route:a});_={...o.state,nav:_.nav},K.$set(o.props),Ve(o.props.page),gt().then(()=>We(_.url))}}function jn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(rt(),!oe){const r=Je(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};wt.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&rt()}),navigator.connection?.saveData||Ln(),x.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=ut(t.composedPath()[0],x);if(!n)return;const{url:r,external:a,target:s,download:o}=Pe(n,L,k.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const c=de(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[l,u]=(k.hash?r.hash.replace(/^#/,""):r.href).split("#"),d=l===Se(location);if(a||c.reload&&(!d||!u)){At({url:r,type:"link",event:t})?oe=!0:t.preventDefault();return}if(u!==void 0&&d){const[,p]=_.url.href.split("#");if(p===u){if(t.preventDefault(),u===""||u==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=n.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(X=!0,ze(S),e(r),!c.replace_state)return;X=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href,event:t})}),x.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 o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(be(o,L,!1))return;const c=t.target,i=de(c);if(i.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(c,r);o.search=new URLSearchParams(l).toString(),Y({type:"form",url:o,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!$e){if(t.state?.[q]){const n=t.state[q];if($={},n===S)return;const r=B[n],a=t.state[lt]??{},s=new URL(t.state[Kt]??location.href),o=t.state[te],c=_.url?Se(location)===Se(_.url):!1;if(o===U&&(yt||c)){a!==E.state&&(E.state=a),e(s),B[S]=V(),r&&scrollTo(r.x,r.y),S=n;return}const l=n-S;await Y({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{S=n,U=o},block:()=>{history.go(-l)},nav_token:$,event:t})}else if(!X){const n=new URL(location.href);e(n),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{X&&(X=!1,history.replaceState({...history.state,[q]:++S,[te]:U},"",location.href))});for(const t of document.querySelectorAll("link"))bn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(ne.current=null)});function e(t){_.url=E.url=t,D.page.set(Ae(E)),D.page.notify()}}async function On(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:o,data:c,form:i}){Ye=!0;const l=new URL(location.href);let u;({params:a={},route:s={id:null}}=await le(l,!1)||{}),u=qe.find(({id:h})=>h===s.id);let d,p=!0;try{const h=r.map(async(m,b)=>{const g=c[b];return g?.uses&&(g.uses=It(g.uses)),Ge({loader:k.nodes[m],url:l,params:a,route:s,parent:async()=>{const I={};for(let w=0;w<b;w+=1)Object.assign(I,(await h[w]).data);return I},server_data_node:He(g)})}),f=await Promise.all(h);if(u){const m=u.layouts;for(let b=0;b<m.length;b++)m[b]||f.splice(b,0,void 0)}d=await se({url:l,params:a,branch:f,status:t,error:n,errors:u?.errors,form:i,route:u??null})}catch(h){if(h instanceof De){await H(new URL(h.location,location.href));return}d=await ke({status:he(h),error:await G(h,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",p=!1}d.props.page&&(d.props.page.state={}),await Et(d,e,p)}async function St(e,t){const n=new URL(e);n.pathname=vn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(_n,"1"),n.searchParams.append(pn,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new ve(a.status,s)}return new Promise(async s=>{const o=new Map,c=a.body.getReader();function i(u){return pt(u,{...k.decoders,Promise:d=>new Promise((p,h)=>{o.set(d,{fulfil:p,reject:h})})})}let l="";for(;;){const{done:u,value:d}=await c.read();if(u&&!l)break;for(l+=!d&&l?`
|
|
2
|
+
`:xt.decode(d,{stream:!0});;){const p=l.indexOf(`
|
|
3
|
+
`);if(p===-1)break;const h=JSON.parse(l.slice(0,p));if(l=l.slice(p+1),h.type==="redirect")return s(h);if(h.type==="data")h.nodes?.forEach(f=>{f?.type==="data"&&(f.uses=It(f.uses),f.data=i(f.data))}),s(h);else if(h.type==="chunk"){const{id:f,data:m,error:b}=h,g=o.get(f);o.delete(f),b?g.reject(i(b)):g.fulfil(i(m))}}}})}function It(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 $e=!1;function We(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=Tt(e);if(r&&document.getElementById(r)){const{x:s,y:o}=V();setTimeout(()=>{const c=history.state;$e=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(c,"",e),t&&scrollTo(s,o),$e=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let o=0;o<a.rangeCount;o+=1)s.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===s.length){for(let o=0;o<a.rangeCount;o+=1){const c=s[o],i=a.getRangeAt(o);if(c.commonAncestorContainer!==i.commonAncestorContainer||c.startContainer!==i.startContainer||c.endContainer!==i.endContainer||c.startOffset!==i.startOffset||c.endOffset!==i.endOffset)return}a.removeAllRanges()}})}}}function Je(e,t,n,r,a=null){let s,o;const c=new Promise((l,u)=>{s=l,o=u});return c.catch(C),{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:a},willUnload:!t,type:r,complete:c},fulfil:s,reject:o}}function Ae(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 xn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Tt(e){let t;if(k.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Hn as a,k as b,E as c,qn as d,Yn as g,Gn as i,Bn as l,C as n,Mn as p,D as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{f as w,d as b,n as Ae,c,r as l,t as $,p as ne,a as ae,g as o,i as Me,u as C,s as we,h as Z,aB as ht}from"./BtOVeLcI.js";import{a as s,f as p,c as M,p as Pe,t as vt}from"./BoLtD6vo.js";import{s as z}from"./8uBOzWQA.js";import{i as N}from"./DAQN5y4A.js";import{c as Ee,a as Oe,f as De,e as Ue,j as ft,d as et}from"./22C0ZkpD.js";import{s as pe,r as oe,p as f,c as Y}from"./ChEZL1UP.js";import{s as X,o as gt,a as mt,d as pt}from"./BNpXeuQ_.js";import{o as _t,u as bt}from"./aGXM-hZQ.js";import{B as wt}from"./mlApEF2J.js";import{I as ke}from"./BuC_QZkR.js";import{D as yt,a as xt,b as St,c as Ct,R as Tt}from"./jiMRToiE.js";import{_ as Nt}from"./BapAUJpM.js";import{S as It}from"./BdIvVr5K.js";import{g as Et}from"./B89jPufp.js";import{b as Le,d as G,m as Fe,a as $e,e as Ge,f as Je,h as At,g as Ot,c as Ut}from"./Bf2Kb0d4.js";import{C as ze}from"./Mn4D08zE.js";import{C as Mt,S as Pt,E as Dt,w as je,n as tt}from"./MGblXd4C.js";import{P as kt,c as Lt}from"./SM988pE-.js";import{T as ct}from"./DllGpGf3.js";import{C as rt}from"./C2PlvXZq.js";import{C as nt}from"./Bj6y_fSA.js";import{a as Ft,e as Rt}from"./DCPwh0Sl.js";import{p as Ye}from"./DTrFhc7R.js";function Bt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);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"}]];ke(n,pe({name:"sun"},()=>t,{get iconNode(){return r}}))}function Vt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);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"}]];ke(n,pe({name:"moon"},()=>t,{get iconNode(){return r}}))}var Wt=p('<!> <!> <span class="sr-only">Toggle theme</span>',1);function jt(n){wt(n,{get onclick(){return _t},variant:"outline",size:"icon",children:(e,t)=>{var r=Wt(),a=w(r);Bt(a,{class:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"});var i=b(a,2);Vt(i,{class:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),Ae(2),s(e,r)},$$slots:{default:!0}})}var Yt=p('<span class="text-sm text-border">/</span> <span class="text-sm font-medium text-muted-foreground"> </span>',1),zt=p('<nav class="ml-5 gap-1 flex"><!></nav>'),Ht=p('<div class="h-10 flex items-center border-t border-border/60 px-(--page-px)"><!></div>'),$t=p('<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 Gt(n,e){let t=f(e,"homeUrl",3,"/app"),r=f(e,"title",3,void 0),a=f(e,"logo",3,"/favicon/favicon.svg"),i=f(e,"brandName",3,"Selva"),v=f(e,"showModeToggle",3,!0),u=f(e,"class",3,"");var d=$t(),_=c(d),y=c(_),U=c(y),k=b(U,2),m=c(k,!0);l(k),l(y);var h=b(y,2);{var x=S=>{var I=Yt(),H=b(w(I),2),ye=c(H,!0);l(H),$(()=>X(ye,r()??"")),s(S,I)};N(h,S=>{r()!==void 0&&S(x)})}var T=b(h,2);{var F=S=>{var I=zt(),H=c(I);z(H,()=>e.navItems),l(I),s(S,I)};N(T,S=>{e.navItems&&S(F)})}var J=b(T,2),Q=c(J);{var K=S=>{var I=M(),H=w(I);z(H,()=>e.rightContent),s(S,I)};N(Q,S=>{e.rightContent&&S(K)})}var ee=b(Q,2);{var se=S=>{jt(S)};N(ee,S=>{v()&&S(se)})}l(J),l(_);var g=b(_,2);{var E=S=>{var I=Ht(),H=c(I);z(H,()=>e.subnav),l(I),s(S,I)};N(g,S=>{e.subnav&&S(E)})}l(d),$(()=>{Ee(d,1,`top-0 backdrop-blur-sm sticky z-40 border-b border-border bg-background/90 ${u()}`),Oe(y,"href",t()),Oe(U,"src",a()),X(m,i())}),s(n,d)}function Jt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);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"}]];ke(n,pe({name:"log-in"},()=>t,{get iconNode(){return r}}))}function Kt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);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"}]];ke(n,pe({name:"log-out"},()=>t,{get iconNode(){return r}}))}var qt=p("<button><!></button>");function Zt(n,e){const t=Pe();ne(e,!0);let r=f(e,"id",19,()=>Le(t)),a=f(e,"ref",15,null),i=f(e,"disabled",3,!1),v=oe(e,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const u=Et.create({id:G(()=>r()),ref:G(()=>a(),m=>a(m)),disabled:G(()=>!!i())}),d=C(()=>Fe(v,u.props));var _=M(),y=w(_);{var U=m=>{var h=M(),x=w(h);z(x,()=>e.child,()=>({props:o(d)})),s(m,h)},k=m=>{var h=qt();De(h,()=>({...o(d)}));var x=c(h);z(x,()=>e.children??Me),l(h),s(m,h)};N(y,m=>{e.child?m(U):m(k,-1)})}s(n,_),ae()}const Ke=Ut({component:"collapsible",parts:["root","content","trigger"]}),qe=new Mt("Collapsible.Root");class Ze{static create(e){return qe.set(new Ze(e))}opts;attachment;#e=we(null);get contentNode(){return o(this.#e)}set contentNode(e){Z(this.#e,e,!0)}contentPresence;#t=we(void 0);get contentId(){return o(this.#t)}set contentId(e){Z(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=$e(this.opts.ref),this.contentPresence=new kt({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=C(()=>({id:this.opts.id.current,"data-state":Je(this.opts.open.current),"data-disabled":Ge(this.opts.disabled.current),[Ke.root]:"",...this.attachment}));get props(){return o(this.#r)}set props(e){Z(this.#r,e)}}class Xe{static create(e){return new Xe(e,qe.get())}opts;root;attachment;#e=C(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return o(this.#e)}set present(e){Z(this.#e,e)}#t;#r=we(!1);#n=we(0);#a=we(0);constructor(e,t){this.opts=e,this.root=t,Z(this.#r,t.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=$e(this.opts.ref,r=>this.root.contentNode=r),je.pre(()=>this.opts.id.current,r=>{this.root.contentId=r}),ht(()=>{const r=requestAnimationFrame(()=>{Z(this.#r,!1)});return()=>{cancelAnimationFrame(r)}}),je.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([r,a])=>!r||!a?void 0:gt(r,"beforematch",()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),je([()=>this.opts.ref.current,()=>this.present],([r])=>{r&&Lt(()=>{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(Z(this.#a,a.height,!0),Z(this.#n,a.width,!0),!o(this.#r)){const{animationName:i,transitionDuration:v}=this.#t;r.style.transitionDuration=v,r.style.animationName=i}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#o=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#o)}set snippetProps(e){Z(this.#o,e)}#s=C(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":o(this.#a)?`${o(this.#a)}px`:void 0,"--bits-collapsible-content-width":o(this.#n)?`${o(this.#n)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?"until-found":void 0,"data-state":Je(this.root.opts.open.current),...Ot(this.root.contentPresence.transitionStatus),"data-disabled":Ge(this.root.opts.disabled.current),[Ke.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 o(this.#s)}set props(e){Z(this.#s,e)}}class Qe{static create(e){return new Qe(e,qe.get())}opts;root;attachment;#e=C(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=$e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!o(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){o(this.#e)||(e.key===Pt||e.key===Dt)&&(e.preventDefault(),this.root.toggleOpen())}#t=C(()=>({id:this.opts.id.current,type:"button",disabled:o(this.#e),"aria-controls":this.root.contentId,"aria-expanded":At(this.root.opts.open.current),"data-state":Je(this.root.opts.open.current),"data-disabled":Ge(o(this.#e)),[Ke.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return o(this.#t)}set props(e){Z(this.#t,e)}}var Xt=p("<div><!></div>");function Qt(n,e){const t=Pe();ne(e,!0);let r=f(e,"id",19,()=>Le(t)),a=f(e,"ref",15,null),i=f(e,"open",15,!1),v=f(e,"disabled",3,!1),u=f(e,"onOpenChange",3,tt),d=f(e,"onOpenChangeComplete",3,tt),_=oe(e,["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const y=Ze.create({open:G(()=>i(),T=>{i(T),u()(T)}),disabled:G(()=>v()),id:G(()=>r()),ref:G(()=>a(),T=>a(T)),onOpenChangeComplete:G(()=>d())}),U=C(()=>Fe(_,y.props));var k=M(),m=w(k);{var h=T=>{var F=M(),J=w(F);z(J,()=>e.child,()=>({props:o(U)})),s(T,F)},x=T=>{var F=Xt();De(F,()=>({...o(U)}));var J=c(F);z(J,()=>e.children??Me),l(F),s(T,F)};N(m,T=>{e.child?T(h):T(x,-1)})}s(n,k),ae()}var er=p("<div><!></div>");function tr(n,e){const t=Pe();ne(e,!0);let r=f(e,"ref",15,null),a=f(e,"forceMount",3,!1),i=f(e,"hiddenUntilFound",3,!1),v=f(e,"id",19,()=>Le(t)),u=oe(e,["$$slots","$$events","$$legacy","child","ref","forceMount","hiddenUntilFound","children","id"]);const d=Xe.create({id:G(()=>v()),forceMount:G(()=>a()),hiddenUntilFound:G(()=>i()),ref:G(()=>r(),h=>r(h))}),_=C(()=>Fe(u,d.props));var y=M(),U=w(y);{var k=h=>{var x=M(),T=w(x);{let F=C(()=>({...d.snippetProps,props:o(_)}));z(T,()=>e.child,()=>o(F))}s(h,x)},m=h=>{var x=er();De(x,()=>({...o(_)}));var T=c(x);z(T,()=>e.children??Me),l(x),s(h,x)};N(U,h=>{e.child?h(k):h(m,-1)})}s(n,y),ae()}var rr=p("<button><!></button>");function nr(n,e){const t=Pe();ne(e,!0);let r=f(e,"ref",15,null),a=f(e,"id",19,()=>Le(t)),i=f(e,"disabled",3,!1),v=oe(e,["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]);const u=Qe.create({id:G(()=>a()),ref:G(()=>r(),m=>r(m)),disabled:G(()=>i())}),d=C(()=>Fe(v,u.props));var _=M(),y=w(_);{var U=m=>{var h=M(),x=w(h);z(x,()=>e.child,()=>({props:o(d)})),s(m,h)},k=m=>{var h=rr();De(h,()=>({...o(d)}));var x=c(h);z(x,()=>e.children??Me),l(h),s(m,h)};N(y,m=>{e.child?m(U):m(k,-1)})}s(n,_),ae()}function at(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=f(e,"open",15,!1),a=oe(e,["$$slots","$$events","$$legacy","ref","open"]);var i=M(),v=w(i);Y(v,()=>Qt,(u,d)=>{d(u,pe({"data-slot":"collapsible"},()=>a,{get ref(){return t()},set ref(_){t(_)},get open(){return r()},set open(_){r(_)}}))}),s(n,i),ae()}function ot(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>nr,(v,u)=>{u(v,pe({"data-slot":"collapsible-trigger"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}function st(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>tr,(v,u)=>{u(v,pe({"data-slot":"collapsible-content"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}function ar(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>Zt,(v,u)=>{u(v,pe({"data-slot":"dialog-trigger"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}var ut=Object.defineProperty,or=(n,e,t)=>e in n?ut(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Sn=(n,e)=>{for(var t in e)ut(n,t,{get:e[t],enumerable:!0})},fe=(n,e,t)=>or(n,typeof e!="symbol"?e+"":e,t),ge={VALIDATION_ERROR:"VALIDATION_ERROR",INVALID_STATE:"INVALID_STATE",INVALID_INPUT:"INVALID_INPUT",INVALID_CONFIG:"INVALID_CONFIG",BROWSER_ONLY:"BROWSER_ONLY"},me=class He extends Error{constructor(e,t="UNKNOWN_ERROR",r){super(e),fe(this,"code"),fe(this,"statusCode"),fe(this,"context"),fe(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 He(`Input "${e}" has no values defined${t?` (expected ${t})`:""}`,ge.INVALID_INPUT,{context:{inputName:e,expectedType:t,...r}})}static unknownParamType(e,t,r){return new He(`Unknown paramType: ${e}`,ge.VALIDATION_ERROR,{context:{receivedParamType:e,paramName:t,...r}})}},sr=class{debug(){}info(){}warn(){}error(){}},ir=new sr;function D(){return ir}var lr="https://compute.rhino3d.com/";function dr(n){if(!n?.trim())throw new me("serverUrl is required",ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});if(!n.match(/^https?:\/\//))throw new me(`Invalid serverUrl: "${n}". Must start with "http://" or "https://". For example: "http://localhost:5000" or "https://example.com"`,ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});try{new URL(n)}catch(e){throw new me(`Invalid serverUrl: "${n}". Must be a valid URL. Received error: ${e instanceof Error?e.message:String(e)}`,ge.INVALID_CONFIG,{context:{receivedServerUrl:n},originalError:e instanceof Error?e:void 0})}if(n===lr)throw new me("serverUrl must be set to your Compute server URL. The default public endpoint is not allowed.",ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});return n.replace(/\/+$/,"")}var it=class Ie{constructor(e,t){fe(this,"serverUrl"),fe(this,"apiKey"),fe(this,"disposed",!1),fe(this,"activeMonitors",new Set),fe(this,"activeTimeouts",new Set),this.serverUrl=dr(e),this.apiKey=t}buildHeaders(){let e={"Content-Type":"application/json"};return this.apiKey&&(e.RhinoComputeKey=this.apiKey),e}fetchWithTimeout(e,t={},r=Ie.DEFAULT_TIMEOUT_MS){let a={headers:this.buildHeaders(),...t};return r>0&&!a.signal&&(a.signal=AbortSignal.timeout(r)),fetch(e,a)}async isServerOnline(e=5e3){this.ensureNotDisposed();let t=`${this.serverUrl}/`;try{return(await this.fetchWithTimeout(t,{method:"GET"},e)).ok}catch(r){return D().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?Ie.LIFECYCLE_TIMEOUT_MS:Ie.DEFAULT_TIMEOUT_MS;try{let i=await this.fetchWithTimeout(r,{},a);if(!i.ok)return D().warn("[ComputeServerStats] Failed to fetch active children:",i.status),null;let v=await i.text(),u=parseInt(v.trim(),10);return isNaN(u)?(D().warn("[ComputeServerStats] Invalid active children response:",v),null):u}catch(i){return D().warn("[ComputeServerStats] Error fetching active children:",i),null}}async getVersion(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/version`);if(!e.ok)return D().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 D().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 D().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 D().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 D().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 D().warn("[ComputeServerStats] Error purging cache:",e),null}}async purgeAllChildren(){this.ensureNotDisposed();let e=await this.getActiveChildren({initialize:!1});if(e===null)return D().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 i=await this.purgeCache();i!==null&&(r+=i)}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 D().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 D().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 D().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 D().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"},Ie.LIFECYCLE_TIMEOUT_MS);if(!t.ok)return D().warn(`[ComputeServerStats] POST ${e} failed:`,t.status),null;let r=await t.text();try{return JSON.parse(r)}catch{return null}}catch(t){return D().warn(`[ComputeServerStats] Error on POST ${e}:`,t),null}}monitor(e,t=5e3){this.ensureNotDisposed();let r=!0,a=null;D().info(`🔄 Starting server stats monitoring every ${t}ms`);let i=async()=>{if(a!==null&&(this.activeTimeouts.delete(a),a=null),!(!r||this.disposed)){try{let u=await this.getServerStats();if(!r||this.disposed)return;try{e(u)}catch(d){D().error("[ComputeServerStats] Monitor callback threw:",d)}}catch(u){D().error("[ComputeServerStats] Failed to fetch stats during monitor:",u)}r&&!this.disposed&&(a=setTimeout(()=>{i()},t),this.activeTimeouts.add(a))}},v=()=>{r=!1,a!==null&&(clearTimeout(a),this.activeTimeouts.delete(a),a=null),this.activeMonitors.delete(v)};return this.activeMonitors.add(v),i(),v}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 me("ComputeServerStats has been disposed and cannot be used",ge.INVALID_STATE,{context:{disposed:this.disposed}})}};fe(it,"DEFAULT_TIMEOUT_MS",5e3),fe(it,"LIFECYCLE_TIMEOUT_MS",6e4);function cr(){let n=globalThis.Buffer;return typeof n=="function"?n:void 0}function ur(n){let e=cr();if(e){let t=e.from(n,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}if(typeof globalThis.atob=="function"){let t=globalThis.atob(n),r=new Uint8Array(t.length);for(let a=0;a<t.length;a++)r[a]=t.charCodeAt(a)&255;return r}throw new me("Base64 decoding not supported in this environment.",ge.INVALID_STATE,{context:{environmentInfo:"atob or Buffer not available"}})}var hr=async(n,e,t=null)=>{if(typeof document>"u"||typeof Blob>"u")throw new me("File download functionality is only available in browser environments. This function requires the DOM API (document, Blob).",ge.BROWSER_ONLY,{context:{environment:typeof window<"u"?"browser (SSR)":"Node.js",documentAvailable:typeof document<"u",blobAvailable:typeof Blob<"u"}});try{let r=await gr(n,t);await mr(r,e)}catch(r){throw r instanceof me?r:new me("Failed to download files from compute response",ge.INVALID_STATE,{context:{originalError:r instanceof Error?r.message:String(r)},originalError:r instanceof Error?r:void 0})}},vr=n=>{let e=[];return n.forEach(t=>{let r=`${t.fileName}${t.fileType}`,a=t.subFolder&&t.subFolder.trim()!==""?`${t.subFolder}/${r}`:r;t.isBase64Encoded===!0&&t.data?e.push({fileName:r,content:ur(t.data),path:a}):t.isBase64Encoded===!1&&t.data&&e.push({fileName:r,content:t.data,path:a})}),e},fr=async n=>(await Promise.all(n.map(async e=>{try{let t=await fetch(e.filePath);if(!t.ok)return D().warn(`Failed to fetch additional file from URL: ${e.filePath}`),null;let r=await(await t.blob()).arrayBuffer();return{fileName:e.fileName,content:new Uint8Array(r),path:e.fileName}}catch(t){return D().error(`Error fetching additional file from URL: ${e.filePath}`,t),null}}))).filter(e=>e!==null),gr=async(n,e)=>{let t=vr(n);if(e){let r=Array.isArray(e)?e:[e];t.push(...await fr(r))}return t};async function mr(n,e){let{zip:t,strToU8:r}=await Nt(()=>import("./BzBbrBKd.js"),[],import.meta.url),a={};n.forEach(u=>{a[u.path]=typeof u.content=="string"?r(u.content):u.content});let i=await new Promise((u,d)=>{t(a,{level:6},(_,y)=>_?d(_):u(y))}),v=new Blob([i],{type:"application/zip"});pr(v,`${e}.zip`)}function pr(n,e){if(typeof document>"u")throw new me("saveFile requires a browser environment with DOM API access.",ge.BROWSER_ONLY,{context:{function:"saveFile",requiredAPI:"document"}});let t=document.createElement("a");t.href=URL.createObjectURL(n),t.download=e,t.click(),URL.revokeObjectURL(t.href)}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 wr(n){const e=(n.fileType??"").toLowerCase(),t=br[e]??"application/octet-stream";let r;if(n.isBase64Encoded){const v=atob(n.data),u=new Uint8Array(v.length);for(let d=0;d<v.length;d++)u[d]=v.charCodeAt(d);r=new Blob([u],{type:t})}else r=new Blob([n.data],{type:t});const a=`${n.fileName}${n.fileType??""}`,i=document.createElement("a");i.href=URL.createObjectURL(r),i.download=a,i.click(),URL.revokeObjectURL(i.href)}async function Cn(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){wr(t[0]);return}await hr(t,e)}catch(t){throw console.error("[FileDownload] Error downloading files:",t),t}}function Tn(n){return typeof n=="object"&&n!==null&&"fileName"in n&&"data"in n&&"isBase64Encoded"in n}function lt(n){const e=new It;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 Nn(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 In(n){return Math.ceil(n.length*3/4)}var yr=p("<!> Compute Messages",1),xr=p("<!> <!>",1),Sr=p('<!> <!> <span class="text-sm font-medium text-destructive"> </span>',1),Cr=p('<span class="ml-1 font-medium text-destructive/70"> </span>'),Tr=p('<li class="gap-2 text-sm flex text-destructive/90"><span class="shrink-0">•</span> <span class="flex-1"> <!></span></li>'),Nr=p('<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>'),Ir=p('<div class="overflow-hidden rounded-lg border border-destructive bg-card"><div class="px-4 py-3 flex items-center"><!></div> <!></div>'),Er=p('<!> <!> <span class="text-sm font-medium text-warning"> </span>',1),Ar=p('<span class="ml-1 font-medium text-warning/70"> </span>'),Or=p('<li class="gap-2 text-sm flex text-muted-foreground"><span class="shrink-0">•</span> <span class="flex-1"> <!></span></li>'),Ur=p('<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>'),Mr=p('<div class="overflow-hidden rounded-lg border border-warning/50 bg-card"><div class="px-4 py-3 flex items-center"><!></div> <!></div>'),Pr=p('<!> <div class="space-y-3 pr-2 overflow-y-auto" style="max-height: calc(80vh - 180px);"><!> <!></div>',1),Dr=p("<!> <!>",1);function kr(n,e){ne(e,!0);let t=f(e,"errors",19,()=>[]),r=f(e,"warnings",19,()=>[]),a=we(!1),i=we(!0),v=we(!1);const u=C(()=>lt(t())),d=C(()=>lt(r())),_=C(()=>t().length+r().length);var y=M(),U=w(y);Y(U,()=>Tt,(k,m)=>{m(k,{get open(){return o(a)},set open(h){Z(a,h,!0)},children:(h,x)=>{var T=Dr(),F=w(T);Y(F,()=>ar,(Q,K)=>{K(Q,{class:"focus:outline-none",children:(ee,se)=>{var g=M(),E=w(g);z(E,()=>e.trigger),s(ee,g)},$$slots:{default:!0}})});var J=b(F,2);Y(J,()=>yt,(Q,K)=>{K(Q,{class:"max-w-2xl max-h-[80vh]",children:(ee,se)=>{var g=Pr(),E=w(g);Y(E,()=>xt,(A,O)=>{O(A,{children:(W,q)=>{var L=xr(),P=w(L);Y(P,()=>St,(R,j)=>{j(R,{class:"gap-2 flex items-center",children:(le,Te)=>{var te=yr(),_e=w(te);ze(_e,{class:"h-5 w-5"}),Ae(),s(le,te)},$$slots:{default:!0}})});var ie=b(P,2);Y(ie,()=>Ct,(R,j)=>{j(R,{children:(le,Te)=>{Ae();var te=vt();$(()=>X(te,`${o(_)??""}
|
|
1
|
+
import"./DsnmJJEf.js";import{f as w,d as b,n as Ae,c,r as l,t as $,p as ne,a as ae,g as o,i as Me,u as C,s as we,h as Z,aB as ht}from"./BtOVeLcI.js";import{a as s,f as p,c as M,p as Pe,t as vt}from"./BoLtD6vo.js";import{s as z}from"./8uBOzWQA.js";import{i as N}from"./DAQN5y4A.js";import{c as Ee,a as Oe,f as De,e as Ue,j as ft,d as et}from"./22C0ZkpD.js";import{s as pe,r as oe,p as f,c as Y}from"./ChEZL1UP.js";import{s as X,o as gt,a as mt,d as pt}from"./BNpXeuQ_.js";import{o as _t,u as bt}from"./aGXM-hZQ.js";import{B as wt}from"./mlApEF2J.js";import{I as ke}from"./BuC_QZkR.js";import{D as yt,a as xt,b as St,c as Ct,R as Tt}from"./jiMRToiE.js";import{_ as Nt}from"./BapAUJpM.js";import{S as It}from"./BdIvVr5K.js";import{g as Et}from"./B89jPufp.js";import{b as Le,d as G,m as Fe,a as $e,e as Ge,f as Je,h as At,g as Ot,c as Ut}from"./Bf2Kb0d4.js";import{C as ze}from"./Mn4D08zE.js";import{C as Mt,S as Pt,E as Dt,w as je,n as tt}from"./MGblXd4C.js";import{P as kt,c as Lt}from"./SM988pE-.js";import{T as ct}from"./DllGpGf3.js";import{C as rt}from"./C2PlvXZq.js";import{C as nt}from"./Bj6y_fSA.js";import{a as Ft,e as Rt}from"./DWQFIxJz.js";import{p as Ye}from"./CMGgRKBD.js";function Bt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);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"}]];ke(n,pe({name:"sun"},()=>t,{get iconNode(){return r}}))}function Vt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);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"}]];ke(n,pe({name:"moon"},()=>t,{get iconNode(){return r}}))}var Wt=p('<!> <!> <span class="sr-only">Toggle theme</span>',1);function jt(n){wt(n,{get onclick(){return _t},variant:"outline",size:"icon",children:(e,t)=>{var r=Wt(),a=w(r);Bt(a,{class:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"});var i=b(a,2);Vt(i,{class:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),Ae(2),s(e,r)},$$slots:{default:!0}})}var Yt=p('<span class="text-sm text-border">/</span> <span class="text-sm font-medium text-muted-foreground"> </span>',1),zt=p('<nav class="ml-5 gap-1 flex"><!></nav>'),Ht=p('<div class="h-10 flex items-center border-t border-border/60 px-(--page-px)"><!></div>'),$t=p('<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 Gt(n,e){let t=f(e,"homeUrl",3,"/app"),r=f(e,"title",3,void 0),a=f(e,"logo",3,"/favicon/favicon.svg"),i=f(e,"brandName",3,"Selva"),v=f(e,"showModeToggle",3,!0),u=f(e,"class",3,"");var d=$t(),_=c(d),y=c(_),U=c(y),k=b(U,2),m=c(k,!0);l(k),l(y);var h=b(y,2);{var x=S=>{var I=Yt(),H=b(w(I),2),ye=c(H,!0);l(H),$(()=>X(ye,r()??"")),s(S,I)};N(h,S=>{r()!==void 0&&S(x)})}var T=b(h,2);{var F=S=>{var I=zt(),H=c(I);z(H,()=>e.navItems),l(I),s(S,I)};N(T,S=>{e.navItems&&S(F)})}var J=b(T,2),Q=c(J);{var K=S=>{var I=M(),H=w(I);z(H,()=>e.rightContent),s(S,I)};N(Q,S=>{e.rightContent&&S(K)})}var ee=b(Q,2);{var se=S=>{jt(S)};N(ee,S=>{v()&&S(se)})}l(J),l(_);var g=b(_,2);{var E=S=>{var I=Ht(),H=c(I);z(H,()=>e.subnav),l(I),s(S,I)};N(g,S=>{e.subnav&&S(E)})}l(d),$(()=>{Ee(d,1,`top-0 backdrop-blur-sm sticky z-40 border-b border-border bg-background/90 ${u()}`),Oe(y,"href",t()),Oe(U,"src",a()),X(m,i())}),s(n,d)}function Jt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);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"}]];ke(n,pe({name:"log-in"},()=>t,{get iconNode(){return r}}))}function Kt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);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"}]];ke(n,pe({name:"log-out"},()=>t,{get iconNode(){return r}}))}var qt=p("<button><!></button>");function Zt(n,e){const t=Pe();ne(e,!0);let r=f(e,"id",19,()=>Le(t)),a=f(e,"ref",15,null),i=f(e,"disabled",3,!1),v=oe(e,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const u=Et.create({id:G(()=>r()),ref:G(()=>a(),m=>a(m)),disabled:G(()=>!!i())}),d=C(()=>Fe(v,u.props));var _=M(),y=w(_);{var U=m=>{var h=M(),x=w(h);z(x,()=>e.child,()=>({props:o(d)})),s(m,h)},k=m=>{var h=qt();De(h,()=>({...o(d)}));var x=c(h);z(x,()=>e.children??Me),l(h),s(m,h)};N(y,m=>{e.child?m(U):m(k,-1)})}s(n,_),ae()}const Ke=Ut({component:"collapsible",parts:["root","content","trigger"]}),qe=new Mt("Collapsible.Root");class Ze{static create(e){return qe.set(new Ze(e))}opts;attachment;#e=we(null);get contentNode(){return o(this.#e)}set contentNode(e){Z(this.#e,e,!0)}contentPresence;#t=we(void 0);get contentId(){return o(this.#t)}set contentId(e){Z(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=$e(this.opts.ref),this.contentPresence=new kt({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=C(()=>({id:this.opts.id.current,"data-state":Je(this.opts.open.current),"data-disabled":Ge(this.opts.disabled.current),[Ke.root]:"",...this.attachment}));get props(){return o(this.#r)}set props(e){Z(this.#r,e)}}class Xe{static create(e){return new Xe(e,qe.get())}opts;root;attachment;#e=C(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return o(this.#e)}set present(e){Z(this.#e,e)}#t;#r=we(!1);#n=we(0);#a=we(0);constructor(e,t){this.opts=e,this.root=t,Z(this.#r,t.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=$e(this.opts.ref,r=>this.root.contentNode=r),je.pre(()=>this.opts.id.current,r=>{this.root.contentId=r}),ht(()=>{const r=requestAnimationFrame(()=>{Z(this.#r,!1)});return()=>{cancelAnimationFrame(r)}}),je.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([r,a])=>!r||!a?void 0:gt(r,"beforematch",()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),je([()=>this.opts.ref.current,()=>this.present],([r])=>{r&&Lt(()=>{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(Z(this.#a,a.height,!0),Z(this.#n,a.width,!0),!o(this.#r)){const{animationName:i,transitionDuration:v}=this.#t;r.style.transitionDuration=v,r.style.animationName=i}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#o=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#o)}set snippetProps(e){Z(this.#o,e)}#s=C(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":o(this.#a)?`${o(this.#a)}px`:void 0,"--bits-collapsible-content-width":o(this.#n)?`${o(this.#n)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?"until-found":void 0,"data-state":Je(this.root.opts.open.current),...Ot(this.root.contentPresence.transitionStatus),"data-disabled":Ge(this.root.opts.disabled.current),[Ke.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 o(this.#s)}set props(e){Z(this.#s,e)}}class Qe{static create(e){return new Qe(e,qe.get())}opts;root;attachment;#e=C(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=$e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!o(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){o(this.#e)||(e.key===Pt||e.key===Dt)&&(e.preventDefault(),this.root.toggleOpen())}#t=C(()=>({id:this.opts.id.current,type:"button",disabled:o(this.#e),"aria-controls":this.root.contentId,"aria-expanded":At(this.root.opts.open.current),"data-state":Je(this.root.opts.open.current),"data-disabled":Ge(o(this.#e)),[Ke.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return o(this.#t)}set props(e){Z(this.#t,e)}}var Xt=p("<div><!></div>");function Qt(n,e){const t=Pe();ne(e,!0);let r=f(e,"id",19,()=>Le(t)),a=f(e,"ref",15,null),i=f(e,"open",15,!1),v=f(e,"disabled",3,!1),u=f(e,"onOpenChange",3,tt),d=f(e,"onOpenChangeComplete",3,tt),_=oe(e,["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const y=Ze.create({open:G(()=>i(),T=>{i(T),u()(T)}),disabled:G(()=>v()),id:G(()=>r()),ref:G(()=>a(),T=>a(T)),onOpenChangeComplete:G(()=>d())}),U=C(()=>Fe(_,y.props));var k=M(),m=w(k);{var h=T=>{var F=M(),J=w(F);z(J,()=>e.child,()=>({props:o(U)})),s(T,F)},x=T=>{var F=Xt();De(F,()=>({...o(U)}));var J=c(F);z(J,()=>e.children??Me),l(F),s(T,F)};N(m,T=>{e.child?T(h):T(x,-1)})}s(n,k),ae()}var er=p("<div><!></div>");function tr(n,e){const t=Pe();ne(e,!0);let r=f(e,"ref",15,null),a=f(e,"forceMount",3,!1),i=f(e,"hiddenUntilFound",3,!1),v=f(e,"id",19,()=>Le(t)),u=oe(e,["$$slots","$$events","$$legacy","child","ref","forceMount","hiddenUntilFound","children","id"]);const d=Xe.create({id:G(()=>v()),forceMount:G(()=>a()),hiddenUntilFound:G(()=>i()),ref:G(()=>r(),h=>r(h))}),_=C(()=>Fe(u,d.props));var y=M(),U=w(y);{var k=h=>{var x=M(),T=w(x);{let F=C(()=>({...d.snippetProps,props:o(_)}));z(T,()=>e.child,()=>o(F))}s(h,x)},m=h=>{var x=er();De(x,()=>({...o(_)}));var T=c(x);z(T,()=>e.children??Me),l(x),s(h,x)};N(U,h=>{e.child?h(k):h(m,-1)})}s(n,y),ae()}var rr=p("<button><!></button>");function nr(n,e){const t=Pe();ne(e,!0);let r=f(e,"ref",15,null),a=f(e,"id",19,()=>Le(t)),i=f(e,"disabled",3,!1),v=oe(e,["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]);const u=Qe.create({id:G(()=>a()),ref:G(()=>r(),m=>r(m)),disabled:G(()=>i())}),d=C(()=>Fe(v,u.props));var _=M(),y=w(_);{var U=m=>{var h=M(),x=w(h);z(x,()=>e.child,()=>({props:o(d)})),s(m,h)},k=m=>{var h=rr();De(h,()=>({...o(d)}));var x=c(h);z(x,()=>e.children??Me),l(h),s(m,h)};N(y,m=>{e.child?m(U):m(k,-1)})}s(n,_),ae()}function at(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=f(e,"open",15,!1),a=oe(e,["$$slots","$$events","$$legacy","ref","open"]);var i=M(),v=w(i);Y(v,()=>Qt,(u,d)=>{d(u,pe({"data-slot":"collapsible"},()=>a,{get ref(){return t()},set ref(_){t(_)},get open(){return r()},set open(_){r(_)}}))}),s(n,i),ae()}function ot(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>nr,(v,u)=>{u(v,pe({"data-slot":"collapsible-trigger"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}function st(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>tr,(v,u)=>{u(v,pe({"data-slot":"collapsible-content"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}function ar(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>Zt,(v,u)=>{u(v,pe({"data-slot":"dialog-trigger"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}var ut=Object.defineProperty,or=(n,e,t)=>e in n?ut(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Sn=(n,e)=>{for(var t in e)ut(n,t,{get:e[t],enumerable:!0})},fe=(n,e,t)=>or(n,typeof e!="symbol"?e+"":e,t),ge={VALIDATION_ERROR:"VALIDATION_ERROR",INVALID_STATE:"INVALID_STATE",INVALID_INPUT:"INVALID_INPUT",INVALID_CONFIG:"INVALID_CONFIG",BROWSER_ONLY:"BROWSER_ONLY"},me=class He extends Error{constructor(e,t="UNKNOWN_ERROR",r){super(e),fe(this,"code"),fe(this,"statusCode"),fe(this,"context"),fe(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 He(`Input "${e}" has no values defined${t?` (expected ${t})`:""}`,ge.INVALID_INPUT,{context:{inputName:e,expectedType:t,...r}})}static unknownParamType(e,t,r){return new He(`Unknown paramType: ${e}`,ge.VALIDATION_ERROR,{context:{receivedParamType:e,paramName:t,...r}})}},sr=class{debug(){}info(){}warn(){}error(){}},ir=new sr;function D(){return ir}var lr="https://compute.rhino3d.com/";function dr(n){if(!n?.trim())throw new me("serverUrl is required",ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});if(!n.match(/^https?:\/\//))throw new me(`Invalid serverUrl: "${n}". Must start with "http://" or "https://". For example: "http://localhost:5000" or "https://example.com"`,ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});try{new URL(n)}catch(e){throw new me(`Invalid serverUrl: "${n}". Must be a valid URL. Received error: ${e instanceof Error?e.message:String(e)}`,ge.INVALID_CONFIG,{context:{receivedServerUrl:n},originalError:e instanceof Error?e:void 0})}if(n===lr)throw new me("serverUrl must be set to your Compute server URL. The default public endpoint is not allowed.",ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});return n.replace(/\/+$/,"")}var it=class Ie{constructor(e,t){fe(this,"serverUrl"),fe(this,"apiKey"),fe(this,"disposed",!1),fe(this,"activeMonitors",new Set),fe(this,"activeTimeouts",new Set),this.serverUrl=dr(e),this.apiKey=t}buildHeaders(){let e={"Content-Type":"application/json"};return this.apiKey&&(e.RhinoComputeKey=this.apiKey),e}fetchWithTimeout(e,t={},r=Ie.DEFAULT_TIMEOUT_MS){let a={headers:this.buildHeaders(),...t};return r>0&&!a.signal&&(a.signal=AbortSignal.timeout(r)),fetch(e,a)}async isServerOnline(e=5e3){this.ensureNotDisposed();let t=`${this.serverUrl}/`;try{return(await this.fetchWithTimeout(t,{method:"GET"},e)).ok}catch(r){return D().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?Ie.LIFECYCLE_TIMEOUT_MS:Ie.DEFAULT_TIMEOUT_MS;try{let i=await this.fetchWithTimeout(r,{},a);if(!i.ok)return D().warn("[ComputeServerStats] Failed to fetch active children:",i.status),null;let v=await i.text(),u=parseInt(v.trim(),10);return isNaN(u)?(D().warn("[ComputeServerStats] Invalid active children response:",v),null):u}catch(i){return D().warn("[ComputeServerStats] Error fetching active children:",i),null}}async getVersion(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/version`);if(!e.ok)return D().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 D().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 D().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 D().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 D().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 D().warn("[ComputeServerStats] Error purging cache:",e),null}}async purgeAllChildren(){this.ensureNotDisposed();let e=await this.getActiveChildren({initialize:!1});if(e===null)return D().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 i=await this.purgeCache();i!==null&&(r+=i)}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 D().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 D().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 D().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 D().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"},Ie.LIFECYCLE_TIMEOUT_MS);if(!t.ok)return D().warn(`[ComputeServerStats] POST ${e} failed:`,t.status),null;let r=await t.text();try{return JSON.parse(r)}catch{return null}}catch(t){return D().warn(`[ComputeServerStats] Error on POST ${e}:`,t),null}}monitor(e,t=5e3){this.ensureNotDisposed();let r=!0,a=null;D().info(`🔄 Starting server stats monitoring every ${t}ms`);let i=async()=>{if(a!==null&&(this.activeTimeouts.delete(a),a=null),!(!r||this.disposed)){try{let u=await this.getServerStats();if(!r||this.disposed)return;try{e(u)}catch(d){D().error("[ComputeServerStats] Monitor callback threw:",d)}}catch(u){D().error("[ComputeServerStats] Failed to fetch stats during monitor:",u)}r&&!this.disposed&&(a=setTimeout(()=>{i()},t),this.activeTimeouts.add(a))}},v=()=>{r=!1,a!==null&&(clearTimeout(a),this.activeTimeouts.delete(a),a=null),this.activeMonitors.delete(v)};return this.activeMonitors.add(v),i(),v}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 me("ComputeServerStats has been disposed and cannot be used",ge.INVALID_STATE,{context:{disposed:this.disposed}})}};fe(it,"DEFAULT_TIMEOUT_MS",5e3),fe(it,"LIFECYCLE_TIMEOUT_MS",6e4);function cr(){let n=globalThis.Buffer;return typeof n=="function"?n:void 0}function ur(n){let e=cr();if(e){let t=e.from(n,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}if(typeof globalThis.atob=="function"){let t=globalThis.atob(n),r=new Uint8Array(t.length);for(let a=0;a<t.length;a++)r[a]=t.charCodeAt(a)&255;return r}throw new me("Base64 decoding not supported in this environment.",ge.INVALID_STATE,{context:{environmentInfo:"atob or Buffer not available"}})}var hr=async(n,e,t=null)=>{if(typeof document>"u"||typeof Blob>"u")throw new me("File download functionality is only available in browser environments. This function requires the DOM API (document, Blob).",ge.BROWSER_ONLY,{context:{environment:typeof window<"u"?"browser (SSR)":"Node.js",documentAvailable:typeof document<"u",blobAvailable:typeof Blob<"u"}});try{let r=await gr(n,t);await mr(r,e)}catch(r){throw r instanceof me?r:new me("Failed to download files from compute response",ge.INVALID_STATE,{context:{originalError:r instanceof Error?r.message:String(r)},originalError:r instanceof Error?r:void 0})}},vr=n=>{let e=[];return n.forEach(t=>{let r=`${t.fileName}${t.fileType}`,a=t.subFolder&&t.subFolder.trim()!==""?`${t.subFolder}/${r}`:r;t.isBase64Encoded===!0&&t.data?e.push({fileName:r,content:ur(t.data),path:a}):t.isBase64Encoded===!1&&t.data&&e.push({fileName:r,content:t.data,path:a})}),e},fr=async n=>(await Promise.all(n.map(async e=>{try{let t=await fetch(e.filePath);if(!t.ok)return D().warn(`Failed to fetch additional file from URL: ${e.filePath}`),null;let r=await(await t.blob()).arrayBuffer();return{fileName:e.fileName,content:new Uint8Array(r),path:e.fileName}}catch(t){return D().error(`Error fetching additional file from URL: ${e.filePath}`,t),null}}))).filter(e=>e!==null),gr=async(n,e)=>{let t=vr(n);if(e){let r=Array.isArray(e)?e:[e];t.push(...await fr(r))}return t};async function mr(n,e){let{zip:t,strToU8:r}=await Nt(()=>import("./BzBbrBKd.js"),[],import.meta.url),a={};n.forEach(u=>{a[u.path]=typeof u.content=="string"?r(u.content):u.content});let i=await new Promise((u,d)=>{t(a,{level:6},(_,y)=>_?d(_):u(y))}),v=new Blob([i],{type:"application/zip"});pr(v,`${e}.zip`)}function pr(n,e){if(typeof document>"u")throw new me("saveFile requires a browser environment with DOM API access.",ge.BROWSER_ONLY,{context:{function:"saveFile",requiredAPI:"document"}});let t=document.createElement("a");t.href=URL.createObjectURL(n),t.download=e,t.click(),URL.revokeObjectURL(t.href)}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 wr(n){const e=(n.fileType??"").toLowerCase(),t=br[e]??"application/octet-stream";let r;if(n.isBase64Encoded){const v=atob(n.data),u=new Uint8Array(v.length);for(let d=0;d<v.length;d++)u[d]=v.charCodeAt(d);r=new Blob([u],{type:t})}else r=new Blob([n.data],{type:t});const a=`${n.fileName}${n.fileType??""}`,i=document.createElement("a");i.href=URL.createObjectURL(r),i.download=a,i.click(),URL.revokeObjectURL(i.href)}async function Cn(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){wr(t[0]);return}await hr(t,e)}catch(t){throw console.error("[FileDownload] Error downloading files:",t),t}}function Tn(n){return typeof n=="object"&&n!==null&&"fileName"in n&&"data"in n&&"isBase64Encoded"in n}function lt(n){const e=new It;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 Nn(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 In(n){return Math.ceil(n.length*3/4)}var yr=p("<!> Compute Messages",1),xr=p("<!> <!>",1),Sr=p('<!> <!> <span class="text-sm font-medium text-destructive"> </span>',1),Cr=p('<span class="ml-1 font-medium text-destructive/70"> </span>'),Tr=p('<li class="gap-2 text-sm flex text-destructive/90"><span class="shrink-0">•</span> <span class="flex-1"> <!></span></li>'),Nr=p('<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>'),Ir=p('<div class="overflow-hidden rounded-lg border border-destructive bg-card"><div class="px-4 py-3 flex items-center"><!></div> <!></div>'),Er=p('<!> <!> <span class="text-sm font-medium text-warning"> </span>',1),Ar=p('<span class="ml-1 font-medium text-warning/70"> </span>'),Or=p('<li class="gap-2 text-sm flex text-muted-foreground"><span class="shrink-0">•</span> <span class="flex-1"> <!></span></li>'),Ur=p('<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>'),Mr=p('<div class="overflow-hidden rounded-lg border border-warning/50 bg-card"><div class="px-4 py-3 flex items-center"><!></div> <!></div>'),Pr=p('<!> <div class="space-y-3 pr-2 overflow-y-auto" style="max-height: calc(80vh - 180px);"><!> <!></div>',1),Dr=p("<!> <!>",1);function kr(n,e){ne(e,!0);let t=f(e,"errors",19,()=>[]),r=f(e,"warnings",19,()=>[]),a=we(!1),i=we(!0),v=we(!1);const u=C(()=>lt(t())),d=C(()=>lt(r())),_=C(()=>t().length+r().length);var y=M(),U=w(y);Y(U,()=>Tt,(k,m)=>{m(k,{get open(){return o(a)},set open(h){Z(a,h,!0)},children:(h,x)=>{var T=Dr(),F=w(T);Y(F,()=>ar,(Q,K)=>{K(Q,{class:"focus:outline-none",children:(ee,se)=>{var g=M(),E=w(g);z(E,()=>e.trigger),s(ee,g)},$$slots:{default:!0}})});var J=b(F,2);Y(J,()=>yt,(Q,K)=>{K(Q,{class:"max-w-2xl max-h-[80vh]",children:(ee,se)=>{var g=Pr(),E=w(g);Y(E,()=>xt,(A,O)=>{O(A,{children:(W,q)=>{var L=xr(),P=w(L);Y(P,()=>St,(R,j)=>{j(R,{class:"gap-2 flex items-center",children:(le,Te)=>{var te=yr(),_e=w(te);ze(_e,{class:"h-5 w-5"}),Ae(),s(le,te)},$$slots:{default:!0}})});var ie=b(P,2);Y(ie,()=>Ct,(R,j)=>{j(R,{children:(le,Te)=>{Ae();var te=vt();$(()=>X(te,`${o(_)??""}
|
|
2
2
|
${o(_)===1?"issue":"issues"} detected during solve`)),s(le,te)},$$slots:{default:!0}})}),s(W,L)},$$slots:{default:!0}})});var S=b(E,2),I=c(S);{var H=A=>{var O=M(),W=w(O);Y(W,()=>at,(q,L)=>{L(q,{get open(){return o(i)},set open(P){Z(i,P,!0)},children:(P,ie)=>{var R=Ir(),j=c(R),le=c(j);Y(le,()=>ot,(te,_e)=>{_e(te,{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:(xe,Re)=>{var re=Sr(),de=w(re);{var ce=B=>{rt(B,{class:"h-4 w-4 shrink-0 text-destructive"})},ue=B=>{nt(B,{class:"h-4 w-4 shrink-0 text-destructive"})};N(de,B=>{o(i)?B(ce):B(ue,-1)})}var be=b(de,2);ze(be,{class:"h-4 w-4 shrink-0 text-destructive"});var he=b(be,2),ve=c(he,!0);l(he),$(()=>X(ve,t().length===1?"1 Error":`${t().length} Errors`)),s(xe,re)},$$slots:{default:!0}})}),l(j);var Te=b(j,2);Y(Te,()=>st,(te,_e)=>{_e(te,{class:"space-y-0",children:(xe,Re)=>{var re=Nr(),de=c(re);Ue(de,21,()=>o(u),({message:ce,count:ue})=>ce,(ce,ue)=>{let be=()=>o(ue).message,he=()=>o(ue).count;var ve=Tr(),B=b(c(ve),2),Ne=c(B),Be=b(Ne);{var Ve=Se=>{var Ce=Cr(),We=c(Ce);l(Ce),$(()=>X(We,`×${he()??""}`)),s(Se,Ce)};N(Be,Se=>{he()>1&&Se(Ve)})}l(B),l(ve),$(()=>X(Ne,`${be()??""} `)),s(ce,ve)}),l(de),l(re),s(xe,re)},$$slots:{default:!0}})}),l(R),s(P,R)},$$slots:{default:!0}})}),s(A,O)};N(I,A=>{t().length>0&&A(H)})}var ye=b(I,2);{var V=A=>{var O=M(),W=w(O);Y(W,()=>at,(q,L)=>{L(q,{get open(){return o(v)},set open(P){Z(v,P,!0)},children:(P,ie)=>{var R=Mr(),j=c(R),le=c(j);Y(le,()=>ot,(te,_e)=>{_e(te,{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:(xe,Re)=>{var re=Er(),de=w(re);{var ce=B=>{rt(B,{class:"h-4 w-4 shrink-0 text-warning"})},ue=B=>{nt(B,{class:"h-4 w-4 shrink-0 text-warning"})};N(de,B=>{o(v)?B(ce):B(ue,-1)})}var be=b(de,2);ct(be,{class:"h-4 w-4 shrink-0 text-warning"});var he=b(be,2),ve=c(he,!0);l(he),$(()=>X(ve,r().length===1?"1 Warning":`${r().length} Warnings`)),s(xe,re)},$$slots:{default:!0}})}),l(j);var Te=b(j,2);Y(Te,()=>st,(te,_e)=>{_e(te,{class:"space-y-0",children:(xe,Re)=>{var re=Ur(),de=c(re);Ue(de,21,()=>o(d),({message:ce,count:ue})=>ce,(ce,ue)=>{let be=()=>o(ue).message,he=()=>o(ue).count;var ve=Or(),B=b(c(ve),2),Ne=c(B),Be=b(Ne);{var Ve=Se=>{var Ce=Ar(),We=c(Ce);l(Ce),$(()=>X(We,`×${he()??""}`)),s(Se,Ce)};N(Be,Se=>{he()>1&&Se(Ve)})}l(B),l(ve),$(()=>X(Ne,`${be()??""} `)),s(ce,ve)}),l(de),l(re),s(xe,re)},$$slots:{default:!0}})}),l(R),s(P,R)},$$slots:{default:!0}})}),s(A,O)};N(ye,A=>{r().length>0&&A(V)})}l(S),s(ee,g)},$$slots:{default:!0}})}),s(h,T)},$$slots:{default:!0}})}),s(n,y),ae()}var Lr=p('<button class="gap-1.5 px-2 py-0.5 rounded flex cursor-pointer items-center transition-colors hover:bg-muted"><!></button>'),Fr=p('<div class="flex items-center"><!></div>');function dt(n,e){ne(e,!0);const t=C(()=>e.item.getProps());var r=M(),a=w(r);{var i=u=>{var d=Lr(),_=c(d);Y(_,()=>e.item.component,(y,U)=>{U(y,pe(()=>o(t)))}),l(d),mt("click",d,function(...y){e.item.onClick?.apply(this,y)}),s(u,d)},v=u=>{var d=Fr(),_=c(d);Y(_,()=>e.item.component,(y,U)=>{U(y,pe(()=>o(t)))}),l(d),s(u,d)};N(a,u=>{e.item.onClick?u(i):u(v,-1)})}s(n,r),ae()}pt(["click"]);var Rr=p('<!> <span class="font-medium"> </span>',1),Br=p('<span class="text-border">•</span>'),Vr=p('<!> <!> <span class="font-medium"> </span>',1),Wr=p("<div><!> <!></div>"),jr=p('<div class="gap-4 flex items-center"><!></div>'),Yr=p('<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 zr(n,e){ne(e,!0);let t=f(e,"errors",19,()=>[]),r=f(e,"warnings",19,()=>[]),a=f(e,"copyrightName",3,"Selva"),i=(()=>{try{return bt()}catch{return null}})();const v=C(()=>i?Array.from(i.items.values()).filter(g=>g.position==="left").sort((g,E)=>(E.priority??0)-(g.priority??0)):[]),u=C(()=>i?Array.from(i.items.values()).filter(g=>g.position==="right").sort((g,E)=>(E.priority??0)-(g.priority??0)):[]);let d=new Date().getFullYear();const _=C(()=>t().length>0||r().length>0),y=C(()=>t().length+r().length),U=C(()=>e.footerText?e.footerText.replace("{name}",a()).replace("{year}",String(d)):`by ${a()} © ${d}`);var k=Yr(),m=c(k),h=c(m);Ue(h,17,()=>o(v),g=>g.id,(g,E)=>{dt(g,{get item(){return o(E)}})});var x=b(h,2);{var T=g=>{kr(g,{get errors(){return t()},get warnings(){return r()},trigger:S=>{var I=Wr(),H=c(I);{var ye=O=>{var W=Rr(),q=w(W);ze(q,{class:"h-3.5 w-3.5"});var L=b(q,2),P=c(L);l(L),$(()=>X(P,`${t().length??""} Error${t().length!==1?"s":""}`)),s(O,W)};N(H,O=>{t().length>0&&O(ye)})}var V=b(H,2);{var A=O=>{var W=Vr(),q=w(W);{var L=j=>{var le=Br();s(j,le)};N(q,j=>{t().length>0&&j(L)})}var P=b(q,2);ct(P,{class:"h-3.5 w-3.5"});var ie=b(P,2),R=c(ie);l(ie),$(()=>X(R,`${r().length??""} Warning${r().length!==1?"s":""}`)),s(O,W)};N(V,O=>{r().length>0&&O(A)})}l(I),$(()=>{Ee(I,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"}`),Oe(I,"title",`${o(y)} ${o(y)===1?"issue":"issues"}`)}),s(S,I)},$$slots:{trigger:!0}})};N(x,g=>{o(_)&&g(T)})}var F=b(x,2);{var J=g=>{var E=jr(),S=c(E);z(S,()=>e.children),l(E),s(g,E)};N(F,g=>{e.children&&g(J)})}l(m);var Q=b(m,2),K=c(Q);Ue(K,17,()=>o(u),g=>g.id,(g,E)=>{dt(g,{get item(){return o(E)}})});var ee=b(K,2),se=c(ee,!0);l(ee),l(Q),l(k),$(()=>X(se,o(U))),s(n,k),ae()}var Hr=p('<header><div class="flex h-(--header-h) items-center px-(--page-px)"><!></div></header>'),$r=p('<!> <main class="flex-1 overflow-y-auto"><!></main>',1),Gr=p('<div class="bottom-0 sticky z-10 shrink-0"><!></div>'),Jr=p("<div><!> <div><!></div> <!></div>");function En(n,e){ne(e,!0);let t=f(e,"showHeader",3,!0),r=f(e,"homeUrl",3,"/"),a=f(e,"title",3,void 0),i=f(e,"logo",3,"/favicon/favicon.svg"),v=f(e,"brandName",3,"Selva"),u=f(e,"copyrightName",3,void 0),d=f(e,"showModeToggle",3,!0),_=f(e,"headerClass",3,""),y=f(e,"mode",3,"scroll"),U=f(e,"showFooter",3,!1),k=f(e,"errors",19,()=>[]),m=f(e,"warnings",19,()=>[]),h=f(e,"class",3,""),x=f(e,"bodyClass",3,"");const T=C(()=>u()??v()),F=C(()=>y()==="fixed"?`flex flex-col h-screen overflow-hidden bg-background ${h()}`:`flex flex-col min-h-screen bg-background ${h()}`),J=C(()=>y()==="fixed"?`flex flex-1 min-h-0 ${e.sidenav?"flex-row":"flex-col"} ${x()}`.trim():`flex-1 ${e.sidenav?"flex flex-row":""} ${x()}`.trim()),Q="";var K=Jr(),ee=c(K);{var se=V=>{var A=M(),O=w(A);{var W=L=>{var P=Hr(),ie=c(P),R=c(ie);z(R,()=>e.header),l(ie),l(P),$(()=>Ee(P,1,`top-0 backdrop-blur-sm sticky z-40 border-b border-border bg-background/90 ${_()}`)),s(L,P)},q=L=>{Gt(L,{get homeUrl(){return r()},get title(){return a()},get logo(){return i()},get brandName(){return v()},get showModeToggle(){return d()},get navItems(){return e.navItems},get rightContent(){return e.rightContent},get subnav(){return e.subnav},get class(){return _()}})};N(O,L=>{e.header?L(W):L(q,-1)})}s(V,A)};N(ee,V=>{t()&&V(se)})}var g=b(ee,2);ft(g,Q);var E=c(g);{var S=V=>{var A=$r(),O=w(A);z(O,()=>e.sidenav);var W=b(O,2),q=c(W);z(q,()=>e.children),l(W),s(V,A)},I=V=>{var A=M(),O=w(A);z(O,()=>e.children),s(V,A)};N(E,V=>{e.sidenav?V(S):V(I,-1)})}l(g);var H=b(g,2);{var ye=V=>{var A=Gr(),O=c(A);zr(O,{get errors(){return k()},get warnings(){return m()},get copyrightName(){return o(T)},get footerText(){return e.footerText},children:(W,q)=>{var L=M(),P=w(L);{var ie=R=>{var j=M(),le=w(j);z(le,()=>e.footerChildren),s(R,j)};N(P,R=>{e.footerChildren&&R(ie)})}s(W,L)},$$slots:{default:!0}}),l(A),s(V,A)};N(H,V=>{U()&&V(ye)})}l(K),$(()=>{Ee(K,1,et(o(F))),Ee(g,1,et(o(J)))}),s(n,K),ae()}var Kr=p('<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),qr=p('<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>'),Zr=p('<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 An(n,e){ne(e,!0);const t=C(()=>Ye.data),r=C(()=>o(t).user??null),a=C(()=>o(t).profile??null),i=C(()=>!o(t).hasProxyAuth),v=C(()=>o(a)?.displayName??o(r)?.email?.split("@")[0]??o(r)?.id??""),u=C(()=>o(v)[0]?.toUpperCase()??""),d=C(()=>`/login?redirectTo=${encodeURIComponent(Ye.url.pathname+Ye.url.search)}`);var _=M(),y=w(_);{var U=m=>{var h=qr(),x=c(h),T=c(x),F=c(T,!0);l(T);var J=b(T,2),Q=c(J,!0);l(J),l(x);var K=b(x,2);{var ee=se=>{var g=Kr(),E=b(w(g),2),S=c(E),I=c(S);Kt(I,{class:"h-3.5 w-3.5"}),l(S),l(E),Ft(E,H=>Rt?.(H)),s(se,g)};N(K,se=>{o(i)&&se(ee)})}l(h),$(()=>{X(F,o(u)),X(Q,o(v))}),s(m,h)},k=m=>{var h=Zr(),x=c(h);Jt(x,{class:"h-3.5 w-3.5"}),Ae(2),l(h),$(()=>Oe(h,"href",o(d))),s(m,h)};N(y,m=>{o(r)?m(U):m(k,-1)})}s(n,_),ae()}export{En as A,ar as D,ur as L,br as M,An as U,_r as a,Cn as b,me as d,Nn as f,In as g,Tn as i,Sn as l,hr as o,D as p,ge as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as t,c as r}from"./
|
|
1
|
+
import{s as t,c as r}from"./BuQcZ391.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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./
|
|
1
|
+
import{s as e}from"./BuQcZ391.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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{s as t,r as p}from"./ChEZL1UP.js";import{I as a}from"./BuC_QZkR.js";function i(o,e){let r=p(e,["$$slots","$$events","$$legacy"]);const s=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];a(o,t({name:"gauge"},()=>r,{get iconNode(){return s}}))}export{i as G};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as h,J as w,a7 as A,ab as E,ac as L}from"./BtOVeLcI.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,a7 as A,ab as E,ac as L}from"./BtOVeLcI.js";import{n as x,i as T,a as k,p as H,b as M}from"./BuQcZ391.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
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CpKGgbSx.js","../chunks/DsnmJJEf.js","../chunks/BtOVeLcI.js","../chunks/BoLtD6vo.js","../chunks/8uBOzWQA.js","../chunks/JFdtrT5G.js","../chunks/CTTkX-27.js","../chunks/22C0ZkpD.js","../chunks/BNpXeuQ_.js","../chunks/aGXM-hZQ.js","../chunks/BdIvVr5K.js","../chunks/C4cbQnXC.js","../chunks/DAQN5y4A.js","../chunks/ChEZL1UP.js","../chunks/ClDgNAKE.js","../chunks/DTLLn7uD.js","../assets/0.Cj1PUDYF.css","../nodes/1.DsHuLSCv.js","../chunks/CMGgRKBD.js","../chunks/BuQcZ391.js","../chunks/Dxp1VkzK.js","../chunks/mlApEF2J.js","../chunks/BuC_QZkR.js","../chunks/ADO9qhNc.js","../chunks/CY6l1SkO.js","../chunks/Mn4D08zE.js","../chunks/BawNisij.js","../nodes/2.B76ZGQKl.js","../chunks/BY8bojlq.js","../chunks/CD8Wxnqk.js","../chunks/jiMRToiE.js","../chunks/B89jPufp.js","../chunks/Bf2Kb0d4.js","../chunks/MGblXd4C.js","../chunks/SM988pE-.js","../chunks/Ca8xAcDY.js","../chunks/BapAUJpM.js","../chunks/DllGpGf3.js","../chunks/C2PlvXZq.js","../chunks/Bj6y_fSA.js","../chunks/DWQFIxJz.js","../chunks/BTfzafVu.js","../chunks/BYQ2KYuV.js","../chunks/DApsDFvQ.js","../chunks/Ba0SJPsk.js","../chunks/D1oEfDeA.js","../chunks/3KyAYBE4.js","../chunks/CaaCaK-C.js","../chunks/BRHPfB44.js","../chunks/DP9Ywoqu.js","../nodes/3.CvRAuwKW.js","../nodes/4.BSBCh_uY.js","../nodes/5.CCsV2OLD.js","../nodes/6.BJl4CJYU.js","../chunks/CzJ-AB7a.js","../chunks/1awtB_xB.js","../chunks/DgJBZX8M.js","../chunks/cwYjabEo.js","../chunks/BYVjhRZj.js","../nodes/7.ykq_dyRY.js","../nodes/8.CfQP9ipc.js","../chunks/CiRf7cog.js","../chunks/wegQDfR0.js","../chunks/CJvX1bCR.js","../chunks/Bfsx6G_D.js","../nodes/9.WqgjRmtE.js","../chunks/DLMu-EPf.js","../chunks/TMQByngI.js","../chunks/C0Xb3vka.js","../chunks/BuBobyR7.js","../chunks/Bixcgta2.js","../nodes/10.X7rNYygL.js","../chunks/DQiSgNnB.js","../chunks/DNdxyuBP.js","../chunks/LZnjyP_x.js","../chunks/3w4Rd2x8.js","../assets/index.CV-KWLNP.css","../chunks/5fK69wOi.js","../nodes/11.BfsGabZe.js","../chunks/CkeXmJE0.js","../chunks/Ct6ntSZV.js","../chunks/BnS8rxFx.js","../chunks/EVm4fAGL.js","../chunks/BRrDIFjJ.js","../chunks/Cbu9Tg11.js","../chunks/CuRUkrho.js","../nodes/12.Bdebe5Rr.js","../chunks/sxUC6FDI.js","../nodes/13.B7eVO2kd.js","../nodes/14.CN8XEZZ7.js","../chunks/DQtEKe83.js","../chunks/BVUbFuzT.js","../nodes/15.CxS-d1XP.js","../chunks/T404WsWw.js","../chunks/C38beKZN.js","../nodes/16.D7vWJZbv.js","../chunks/CpLycSEC.js","../chunks/CfYcWYC1.js","../chunks/B36B-q5q.js","../nodes/17.DR0kTauY.js","../nodes/18.CQUwzcDA.js","../nodes/19.m_ghE-1a.js","../chunks/6P6fn4fQ.js","../chunks/CitY1SZ1.js","../nodes/20.BS9M0sjw.js","../chunks/CFq1UfS7.js","../chunks/k1GnUs7f.js","../chunks/BzBbrBKd.js","../assets/20.Bne67Vgr.css","../nodes/21.BLFlr0oo.js","../nodes/23.BVm3p23P.js","../chunks/CeolKPEY.js","../chunks/B3OAhCNZ.js","../nodes/24.KBWoLAP1.js","../nodes/25.DNwr0QCW.js","../nodes/26.Db6OQMMh.js","../nodes/27.9HFt7B-E.js","../nodes/28.DqRkp2GH.js","../nodes/29.DZPOQinT.js","../nodes/30.Y8AOIiH3.js","../nodes/31.BmGk5kzS.js","../nodes/32.C8wOZK7U.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as r}from"../chunks/BapAUJpM.js";import{h as V,az as $,g as s,L as tt,al as rt,ak as et,p as at,aB as ot,j as _t,K as it,f as E,d as mt,a as st,s as k,u as L,c as ut,r as nt,t as ct}from"../chunks/BtOVeLcI.js";import{h as dt,m as lt,u as vt,s as Et}from"../chunks/BNpXeuQ_.js";import"../chunks/DsnmJJEf.js";import{a as ft}from"../chunks/C4cbQnXC.js";import{i as I}from"../chunks/DAQN5y4A.js";import{a as c,c as g,f as B,t as pt}from"../chunks/BoLtD6vo.js";import{p as T,c as A,b as D}from"../chunks/ChEZL1UP.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?dt: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=B('<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=B("<!> <!>",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 K=L(()=>t.constructors[2]);var C=Ot(),S=E(C);{var Y=i=>{const d=L(()=>t.constructors[0]);var l=g(),h=E(l);A(h,()=>s(d),(v,f)=>{D(f(v,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(P,At)=>{var z=g(),J=E(z);{var N=p=>{const y=L(()=>t.constructors[1]);var O=g(),b=E(O);A(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 M=g(),U=E(M);A(U,()=>s(K),(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])}),c(R,M)},$$slots:{default:!0}}),R=>o()[1]=R,()=>o()?.[1])}),c(p,O)},Q=p=>{const y=L(()=>t.constructors[1]);var O=g(),b=E(O);A(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])}),c(p,O)};I(J,p=>{t.constructors[2]?p(N):p(Q,-1)})}c(P,z)},$$slots:{default:!0}}),P=>o()[0]=P,()=>o()?.[0])}),c(i,l)},q=i=>{const d=L(()=>t.constructors[0]);var l=g(),h=E(l);A(h,()=>s(d),(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])}),c(i,l)};I(S,i=>{t.constructors[1]?i(Y):i(q,-1)})}var F=mt(S,2);{var H=i=>{var d=Pt(),l=ut(d);{var h=v=>{var f=pt();ct(()=>Et(f,s(w))),c(v,f)};I(l,v=>{s(n)&&v(h)})}nt(d),c(i,d)};I(F,i=>{s(e)&&i(H)})}c(_,C),st()}const Ct=gt(Rt),St=[()=>r(()=>import("../nodes/0.CpKGgbSx.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.DsHuLSCv.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.B76ZGQKl.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.CvRAuwKW.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.BSBCh_uY.js"),__vite__mapDeps([51,1,2,3,4,5]),import.meta.url),()=>r(()=>import("../nodes/5.CCsV2OLD.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.BJl4CJYU.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.ykq_dyRY.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.CfQP9ipc.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.WqgjRmtE.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.X7rNYygL.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.BfsGabZe.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.Bdebe5Rr.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.B7eVO2kd.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.CN8XEZZ7.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.CxS-d1XP.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.D7vWJZbv.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.DR0kTauY.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.CQUwzcDA.js"),__vite__mapDeps([100,1,2,6]),import.meta.url),()=>r(()=>import("../nodes/19.m_ghE-1a.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.BS9M0sjw.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.BLFlr0oo.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.BVm3p23P.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.KBWoLAP1.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.DNwr0QCW.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.Db6OQMMh.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.9HFt7B-E.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.DqRkp2GH.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.DZPOQinT.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.Y8AOIiH3.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.BmGk5kzS.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.C8wOZK7U.js"),__vite__mapDeps([121,1,2,3,13,5,8,6,70,4,12,7,26,22,72,24,58]),import.meta.url)],zt=[0,2,5,6],Mt={"/":[-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]]},G={handleError:(({error:_})=>{console.error(_)}),reroute:(()=>{}),transport:{}},Lt=Object.fromEntries(Object.entries(G.transport).map(([_,t])=>[_,t.decode])),Bt=Object.fromEntries(Object.entries(G.transport).map(([_,t])=>[_,t.encode])),Gt=!1,Kt=(_,t)=>Lt[_](t);export{Kt as decode,Lt as decoders,Mt as dictionary,Bt as encoders,Gt as hash,G as hooks,wt as matchers,St as nodes,Ct as root,zt as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,d as r}from"../chunks/BuQcZ391.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/BtOVeLcI.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/BtOVeLcI.js";import{p as r}from"../chunks/CMGgRKBD.js";import{E as u}from"../chunks/Dxp1VkzK.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{o as _t}from"../chunks/C4cbQnXC.js";import{s as $e,b as ve,g as t,h as g,p as bt,j as Xe,J as yt,a as wt,e as $t,c as n,$ as kt,d as o,f as V,n as ye,r as s,i as Ue,t as j,u as y,aj as St}from"../chunks/BtOVeLcI.js";import{d as Ct,a as G,s as k}from"../chunks/BNpXeuQ_.js";import{i as S}from"../chunks/DAQN5y4A.js";import{e as De,c as Te,r as Mt,h as At}from"../chunks/22C0ZkpD.js";import{a as d,f as v,c as Le,t as He}from"../chunks/BoLtD6vo.js";import{s as rt,r as ot,c as Ze}from"../chunks/ChEZL1UP.js";import{h as It}from"../chunks/CTTkX-27.js";import{i as Kt}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{o as _t}from"../chunks/C4cbQnXC.js";import{s as $e,b as ve,g as t,h as g,p as bt,j as Xe,J as yt,a as wt,e as $t,c as n,$ as kt,d as o,f as V,n as ye,r as s,i as Ue,t as j,u as y,aj as St}from"../chunks/BtOVeLcI.js";import{d as Ct,a as G,s as k}from"../chunks/BNpXeuQ_.js";import{i as S}from"../chunks/DAQN5y4A.js";import{e as De,c as Te,r as Mt,h as At}from"../chunks/22C0ZkpD.js";import{a as d,f as v,c as Le,t as He}from"../chunks/BoLtD6vo.js";import{s as rt,r as ot,c as Ze}from"../chunks/ChEZL1UP.js";import{h as It}from"../chunks/CTTkX-27.js";import{i as Kt}from"../chunks/BuQcZ391.js";import{S as Pt}from"../chunks/CkeXmJE0.js";import{S as Wt}from"../chunks/Bixcgta2.js";import{C as Nt,a as Tt}from"../chunks/BawNisij.js";import{E as jt}from"../chunks/Ct6ntSZV.js";import{S as Ot}from"../chunks/BRHPfB44.js";import{P as et}from"../chunks/BnS8rxFx.js";import{B as re}from"../chunks/mlApEF2J.js";import{I as we}from"../chunks/CJvX1bCR.js";import{C as Rt}from"../chunks/EVm4fAGL.js";import{R as Vt}from"../chunks/BRrDIFjJ.js";import{T as zt}from"../chunks/BuBobyR7.js";import{r as Et}from"../chunks/Cbu9Tg11.js";import{S as Ut}from"../chunks/CuRUkrho.js";import{I as st}from"../chunks/BuC_QZkR.js";import{t as oe}from"../chunks/DTLLn7uD.js";import{C as tt}from"../chunks/3w4Rd2x8.js";import{C as at}from"../chunks/C2PlvXZq.js";function Dt(ee,c){let P=ot(c,["$$slots","$$events","$$legacy"]);const J=[["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"}]];st(ee,rt({name:"eraser"},()=>P,{get iconNode(){return J}}))}function Lt(ee,c){let P=ot(c,["$$slots","$$events","$$legacy"]);const J=[["path",{d:"M12 2v10"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"}]];st(ee,rt({name:"power"},()=>P,{get iconNode(){return J}}))}const Ht=6e4,qt=5e3;function Ft(ee){let c=$e(ve({state:"idle",reachable:!1,rhinoVersion:null,computeVersion:null,selvaInstalled:!1,selvaVersion:null,plugins:{},activeChildren:null,idleSpanSeconds:null})),P=null,J=0,C=!1;async function je(){if(C)return!1;try{const z=await fetch(`/admin/api/compute/status?serverId=${ee()}`);if(C)return!1;if(!z.ok)return g(c,{...t(c),reachable:!1},!0),!1;const w=await z.json();return g(c,{reachable:w.reachable,rhinoVersion:w.rhinoVersion,computeVersion:w.computeVersion,selvaInstalled:w.selvaInstalled,selvaVersion:w.selvaVersion,plugins:w.plugins??{},activeChildren:w.activeChildren??null,idleSpanSeconds:w.idleSpanSeconds??null,state:w.reachable?w.selvaInstalled?"ok":"warning":"error"},!0),w.reachable}catch{return C||g(c,{...t(c),reachable:!1},!0),!1}}async function ke(){const z=await je();C||z||(Date.now()<J?(g(c,{...t(c),state:"checking"},!0),P=setTimeout(ke,qt)):g(c,{...t(c),state:"error",reachable:!1},!0))}function h(){C||(P!==null&&(clearTimeout(P),P=null),J=Date.now()+Ht,g(c,{...t(c),state:"checking"},!0),ke())}function W(){C=!0,P!==null&&(clearTimeout(P),P=null)}return{get state(){return t(c)},check:h,stop:W}}var Gt=v('<button class="text-muted-foreground hover:text-foreground ml-auto flex items-center gap-1 text-xs"> <!></button>'),Jt=v('<p class="text-muted-foreground text-xs">No organizations exist yet.</p>'),Yt=v('<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>'),Bt=v('<div class="grid gap-1 sm:grid-cols-2"></div>'),Qt=v(`<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>`),Xt=v('<p class="text-muted-foreground text-xs">No orgs selected — this server is dormant (admin-only).</p>'),Zt=v('<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>'),ea=v('<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>'),ta=v('<button class="text-muted-foreground hover:text-foreground text-xs underline-offset-2 hover:underline">set as default</button>'),aa=v("<!> ",1),ra=v("<!> ",1),oa=v("<!> ",1),sa=v("<!> <!>",1),na=v("<!> <!>",1),ia=v('<span class="text-red-600 dark:text-red-400">Not installed</span>'),la=v('<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),da=v('<button class="text-muted-foreground hover:text-destructive shrink-0 text-xs underline-offset-2 hover:underline">Clear</button>'),ua=v('<button class="text-muted-foreground hover:text-foreground shrink-0 text-xs underline-offset-2 hover:underline">Undo</button>'),ca=v('<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>'),va=v('<div class="mt-2 grid gap-1.5 sm:grid-cols-2 lg:grid-cols-3"></div>'),pa=v('<div><button class="text-muted-foreground hover:text-foreground flex items-center gap-1 text-xs"><!> </button> <!></div>'),fa=v('<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>'),ma=v("<!> Add server",1),ha=v('<!> <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),ga=v('<div class="space-y-6"><!> <!></div>');function qa(ee,c){bt(c,!0);const P=(a,e=Ue)=>{const l=y(()=>e().sharedWith==="all"),u=y(()=>t(l)?new Set:new Set(e().sharedWith)),p=y(()=>e().id===t(W));var x=Zt(),I=n(x),Y=o(n(I),2),E=n(Y),te=o(E,2);s(Y);var B=o(Y,2);{var se=f=>{var b=Gt(),N=n(b),L=o(N);{var X=A=>{tt(A,{class:"h-3 w-3"})},H=A=>{at(A,{class:"h-3 w-3"})};S(L,A=>{Ce[e().id]?A(X):A(H,-1)})}s(b),j(()=>k(N,`${t(u).size??""}/${c.data.orgs.length??""} selected `)),G("click",b,()=>Ce[e().id]=!Ce[e().id]),d(f,b)};S(B,f=>{!t(l)&&c.data.orgs.length>0&&f(se)})}s(I);var ne=o(I,2);{var pe=f=>{var b=Le(),N=V(b);{var L=H=>{var A=Jt();d(H,A)},X=H=>{var A=Bt();De(A,21,()=>c.data.orgs,fe=>fe.id,(fe,ie)=>{var le=Yt(),de=n(le);Mt(de);var ae=o(de,2),me=n(ae,!0);s(ae);var Me=o(ae,2),he=n(Me,!0);s(Me),s(le),j(Ae=>{At(de,Ae),k(me,t(ie).name),k(he,t(ie).slug)},[()=>t(u).has(t(ie).id)]),G("change",de,()=>lt(e(),t(ie).id)),d(fe,le)}),s(A),d(H,A)};S(N,H=>{c.data.orgs.length===0?H(L):H(X,-1)})}d(f,b)};S(ne,f=>{!t(l)&&Ce[e().id]&&f(pe)})}var U=o(ne,2);{var Q=f=>{var b=Qt();d(f,b)},D=f=>{var b=Xt();d(f,b)};S(U,f=>{!t(l)&&t(p)?f(Q):!t(l)&&t(u).size===0&&f(D,1)})}s(x),j(()=>{Te(E,1,`rounded px-2 py-0.5 text-xs ${t(l)?"bg-background shadow-sm":"text-muted-foreground hover:text-foreground"}`),Te(te,1,`rounded px-2 py-0.5 text-xs ${t(l)?"text-muted-foreground hover:text-foreground":"bg-background shadow-sm"}`)}),G("click",E,()=>Fe(e(),!0)),G("click",te,()=>Fe(e(),!1)),d(a,x)},J=(a,e=Ue,l=Ue)=>{const u=y(()=>t(M)[e().id]?.state),p=y(()=>ke[t(u)?.state??"idle"]),x=y(()=>t(u)?.state==="checking"),I=y(()=>Object.entries(t(u)?.plugins??{})),Y=y(()=>w.has(e().id));var E=fa(),te=n(E),B=n(te),se=n(B);we(se,{placeholder:"label",get value(){return e().label},oninput:r=>{const i=r.target;e().label=i.value.toLowerCase().replace(/[^a-z0-9_-]/g,""),i.value=e().label,O(e().id)},class:"h-7 w-32 font-mono text-xs"});var ne=o(se,2);{var pe=r=>{var i=ea(),m=n(i);Ut(m,{class:"h-3 w-3"}),ye(),s(i),d(r,i)},U=r=>{var i=ta();G("click",i,()=>{g(W,e().id,!0),O(e().id)}),d(r,i)};S(ne,r=>{e().id===t(W)?r(pe):r(U,-1)})}s(B);var Q=o(B,2),D=n(Q),f=n(D);Rt(f,{get class(){return`h-2.5 w-2.5 shrink-0 fill-current ${t(p).color??""}`}});var b=o(f,2),N=n(b,!0);s(b),s(D);var L=o(D,2);re(L,{variant:"outline",size:"sm",onclick:()=>t(M)[e().id]?.check(),get disabled(){return t(x)},class:"h-7",title:"Probe this server's availability (retries for up to 1 min)",children:(r,i)=>{var m=aa(),$=V(m);{let R=y(()=>t(x)?"animate-spin":"");Vt($,{get class(){return`mr-1.5 h-3.5 w-3.5 ${t(R)??""}`}})}var T=o($);j(()=>k(T,` ${t(x)?"Checking…":"Check"}`)),d(r,m)},$$slots:{default:!0}});var X=o(L,2);{var H=r=>{const i=y(()=>Re[e().id]);var m=sa(),$=V(m);{let R=y(()=>t(i)!==null&&t(i)!==void 0);re($,{variant:"outline",size:"sm",onclick:()=>Ge(e(),"purge"),get disabled(){return t(R)},class:"h-7",title:"Clear cached solve results across this server's children (best-effort fleet-wide)",children:(K,ue)=>{var F=ra(),_=V(F);Dt(_,{class:"mr-1.5 h-3.5 w-3.5"});var q=o(_);j(()=>k(q,` ${t(i)==="purge"?"Purging…":"Purge cache"}`)),d(K,F)},$$slots:{default:!0}})}var T=o($,2);{let R=y(()=>t(i)!==null&&t(i)!==void 0);re(T,{variant:"outline",size:"sm",onclick:()=>Ge(e(),"shutdown"),get disabled(){return t(R)},class:"text-destructive hover:text-destructive h-7",title:"Gracefully shut down all child processes (they auto-respawn on the next request)",children:(K,ue)=>{var F=oa(),_=V(F);Lt(_,{class:"mr-1.5 h-3.5 w-3.5"});var q=o(_);j(()=>k(q,` ${t(i)==="shutdown"?"Shutting down…":"Shutdown children"}`)),d(K,F)},$$slots:{default:!0}})}d(r,m)};S(X,r=>{t(u)?.reachable&&r(H)})}var A=o(X,2);{var fe=r=>{var i=na(),m=V(i);re(m,{variant:"ghost",size:"sm",onclick:()=>nt(e().id),get disabled(){return t(z)},class:"text-muted-foreground hover:text-foreground h-7",children:(T,R)=>{ye();var K=He("Discard");d(T,K)},$$slots:{default:!0}});var $=o(m,2);re($,{size:"sm",onclick:dt,get disabled(){return t(z)},class:"h-7",children:(T,R)=>{ye();var K=He();j(()=>k(K,t(z)?"Saving…":"Save changes")),d(T,K)},$$slots:{default:!0}}),d(r,i)};S(A,r=>{t(Y)&&r(fe)})}var ie=o(A,2);{let r=y(()=>e().id===t(W)),i=y(()=>e().id===t(W)?"Set another server as default before deleting":void 0);re(ie,{variant:"ghost",size:"sm",onclick:()=>it(l()),get disabled(){return t(r)},get title(){return t(i)},class:"text-destructive hover:text-destructive h-7 w-7 p-0",children:(m,$)=>{zt(m,{class:"h-3.5 w-3.5"})},$$slots:{default:!0}})}s(Q),s(te);var le=o(te,2);{var de=r=>{var i=la(),m=V(i),$=n(m),T=o(n($),2),R=n(T,!0);s(T),s($);var K=o($,2),ue=o(n(K),2),F=n(ue,!0);s(ue),s(K);var _=o(K,2),q=o(n(_),2),ge=n(q);{var Ie=Z=>{var Ne=He();j(()=>k(Ne,t(u).selvaVersion)),d(Z,Ne)},Ke=Z=>{var Ne=ia();d(Z,Ne)};S(ge,Z=>{t(u).selvaInstalled?Z(Ie):Z(Ke,-1)})}s(q),s(_),s(m);var Pe=o(m,2),xe=n(Pe),ce=o(n(xe),2),_e=n(ce,!0);s(ce),s(xe);var We=o(xe,2),be=o(n(We),2),Ee=n(be,!0);s(be),s(We),s(Pe),j(Z=>{k(R,t(u).rhinoVersion??"-"),k(F,t(u).computeVersion??"-"),k(_e,t(u).activeChildren??"-"),k(Ee,Z)},[()=>je(t(u).idleSpanSeconds)]),d(r,i)};S(le,r=>{t(u)?.reachable&&r(de)})}var ae=o(le,2),me=n(ae),Me=o(n(me),2);we(Me,{placeholder:"http://localhost:5000",oninput:()=>O(e().id),class:"font-mono text-xs",get value(){return e().serverUrl},set value(r){e().serverUrl=r}}),s(me);var he=o(me,2),Ae=o(n(he),2),Ye=n(Ae);{let r=y(()=>e().hasApiKey&&e().apiKey!==C&&!e().apiKey?"Key set - enter new value to replace":e().apiKey===C?"Key will be cleared on save":""),i=y(()=>e().apiKey===C?"":e().apiKey),m=y(()=>e().apiKey===C);we(Ye,{type:"password",get placeholder(){return t(r)},get value(){return t(i)},get disabled(){return t(m)},oninput:$=>{e().apiKey=$.target.value,O(e().id)},class:"font-mono text-xs"})}var ct=o(Ye,2);{var vt=r=>{var i=da();G("click",i,()=>{e().apiKey=C,O(e().id)}),d(r,i)},pt=r=>{var i=ua();G("click",i,()=>e().apiKey=""),d(r,i)};S(ct,r=>{e().hasApiKey&&e().apiKey!==C&&!e().apiKey?r(vt):e().apiKey===C&&r(pt,1)})}s(Ae),s(he);var ze=o(he,2),ft=o(n(ze),2);we(ft,{type:"number",placeholder:"30000",oninput:()=>O(e().id),onblur:()=>{e().timeoutMs=Math.min(3e5,Math.max(1e3,Number(e().timeoutMs)||3e4))},class:"text-xs",get value(){return e().timeoutMs},set value(r){e().timeoutMs=r}}),s(ze);var Be=o(ze,2),mt=o(n(Be),2);we(mt,{type:"number",placeholder:"0",oninput:()=>O(e().id),onblur:()=>{e().retryCount=Math.min(5,Math.max(0,Number(e().retryCount)||0))},class:"text-xs",get value(){return e().retryCount},set value(r){e().retryCount=r}}),s(Be),s(ae);var Qe=o(ae,2);{var ht=r=>{P(r,e)};S(Qe,r=>{c.data.tenancy!=="single"&&r(ht)})}var gt=o(Qe,2);{var xt=r=>{var i=pa(),m=n(i),$=n(m);{var T=_=>{tt(_,{class:"h-3 w-3"})},R=_=>{at(_,{class:"h-3 w-3"})};S($,_=>{Se[e().id]?_(T):_(R,-1)})}var K=o($);s(m);var ue=o(m,2);{var F=_=>{var q=va();De(q,21,()=>t(I),([ge,Ie])=>ge,(ge,Ie)=>{var Ke=y(()=>St(t(Ie),2));let Pe=()=>t(Ke)[0],xe=()=>t(Ke)[1];var ce=ca(),_e=n(ce),We=n(_e,!0);s(_e);var be=o(_e,2),Ee=n(be,!0);s(be),s(ce),j(()=>{k(We,Pe()),k(Ee,xe())}),d(ge,ce)}),s(q),d(_,q)};S(ue,_=>{Se[e().id]&&_(F)})}s(i),j(()=>k(K,` ${t(I).length??""} Grasshopper plugin${t(I).length===1?"":"s"}`)),G("click",m,()=>Se[e().id]=!Se[e().id]),d(r,i)};S(gt,r=>{t(u)?.reachable&&t(I).length>0&&r(xt)})}s(E),j(()=>{Te(E,1,`space-y-3 rounded-lg border p-4 transition-colors ${t(Y)?"border-amber-400/60 bg-amber-50/30 dark:border-amber-500/40 dark:bg-amber-950/10":"bg-muted/30"}`),Te(b,1,`text-xs font-medium ${t(p).color??""}`),k(N,t(p).label)}),d(a,E)},C="__clear__";function je(a){if(a===null)return"-";if(a<5)return"just now";if(a<60)return`${Math.round(a)}s`;const e=Math.floor(a/60);return e<60?`${e}m`:`${Math.floor(e/60)}h ${e%60}m`}const ke={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"}};let h=$e(ve([])),W=$e(""),z=$e(!1);const w=new Pt;let Se=ve({}),Ce=ve({});function O(a){w.add(a)}function nt(a){w.delete(a);const e=c.data.servers.find(u=>u.id===a),l=t(h).findIndex(u=>u.id===a);if(!(l<0)){if(!e){t(M)[a]?.stop();const{[a]:u,...p}=t(M);g(M,p,!0),g(h,t(h).filter(x=>x.id!==a),!0);return}t(h)[l]={id:e.id,label:e.label,serverUrl:e.serverUrl,sharedWith:e.sharedWith==="all"?"all":[...e.sharedWith],timeoutMs:e.timeoutMs??3e4,retryCount:e.retryCount??0,apiKey:"",hasApiKey:e.hasApiKey},g(W,c.data.defaultServerId,!0)}}let M=$e(ve({}));function Oe(a){return t(M)[a]||(t(M)[a]=Ft(()=>a)),t(M)[a]}Xe(()=>{w.size===0&&(g(h,c.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),g(W,c.data.defaultServerId,!0))}),Xe(()=>{const a=c.data.servers.map(e=>e.id);yt(()=>{for(const e of a)Oe(e)})}),_t(()=>{for(const a of Object.values(t(M)))a.stop()});function qe(){const a=Et();t(h).length===0&&g(W,a,!0),g(h,[...t(h),{id:a,label:"new-server",serverUrl:"http://localhost:5000",sharedWith:"all",apiKey:"",hasApiKey:!1,timeoutMs:3e4,retryCount:0}],!0),Oe(a),O(a)}function it(a){const e=t(h)[a];t(M)[e.id]?.stop();const{[e.id]:l,...u}=t(M);g(M,u,!0),g(h,t(h).filter((p,x)=>x!==a),!0),t(W)===e.id&&t(h)[0]&&g(W,t(h)[0].id,!0);for(const p of t(h))O(p.id)}function Fe(a,e){a.sharedWith=e?"all":[],O(a.id)}function lt(a,e){a.sharedWith!=="all"&&(a.sharedWith=a.sharedWith.includes(e)?a.sharedWith.filter(l=>l!==e):[...a.sharedWith,e],O(a.id))}async function dt(){g(z,!0);try{const a={defaultServerId:t(W),servers:t(h).map(({apiKey:l,hasApiKey:u,retryCount:p,timeoutMs:x,...I})=>({...I,timeoutMs:Math.min(3e5,Math.max(1e3,Number(x)||3e4)),...l===C?{apiKey:null}:l?{apiKey:l}:{},...Number(p)?{retryCount:Math.min(5,Math.max(0,Number(p)))}:{}}))},e=await fetch("/admin/api/compute",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(e.ok){oe.success("Compute config saved"),await Kt(),w.clear();for(const l of Object.values(t(M)))l.stop();g(M,{},!0);for(const l of t(h))Oe(l.id)}else{const l=await e.json().catch(()=>({error:"Unknown error"}));oe.error(l.message||l.error||`Failed to save (${e.status})`)}}catch{oe.error("Failed to save compute config")}finally{g(z,!1)}}let Re=ve({});async function Ge(a,e){if(!(e==="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]=e;try{const l=await fetch("/admin/api/compute/actions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({serverId:a.id,action:e})}),u=await l.json().catch(()=>({}));if(!l.ok){oe.error(u.message||u.error||`Action failed (${l.status})`);return}if(e==="purge"){const{totalPurged:p=0,children:x=0,confident:I}=u;oe.success(I?`Purged ${p} cached solve${p===1?"":"s"}`:`Purged ~${p} across ${x} children (best-effort)`)}else{const{shutdown:p=0,active:x=0}=u;oe.success(`Shut down ${p} child${p===1?"":"ren"} (${x} still active)`),t(M)[a.id]?.check()}}catch{oe.error(`Failed to ${e} server`)}finally{Re[a.id]=null}}}var Ve=ga();It("1h8e46q",a=>{$t(()=>{kt.title="Admin · Compute"})});var Je=n(Ve);Wt(Je,{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 ut=o(Je,2);Ze(ut,()=>Tt,(a,e)=>{e(a,{children:(l,u)=>{var p=Le(),x=V(p);Ze(x,()=>Nt,(I,Y)=>{Y(I,{class:"space-y-3 pt-6",children:(E,te)=>{var B=Le(),se=V(B);{var ne=U=>{jt(U,{get icon(){return Ot},title:"No servers configured",actions:D=>{re(D,{variant:"outline",size:"sm",onclick:qe,children:(f,b)=>{var N=ma(),L=V(N);et(L,{class:"mr-1.5 h-3.5 w-3.5"}),ye(),d(f,N)},$$slots:{default:!0}})},$$slots:{actions:!0}})},pe=U=>{var Q=ha(),D=V(Q);De(D,19,()=>t(h),N=>N.id,(N,L,X)=>{J(N,()=>t(L),()=>t(X))});var f=o(D,2),b=n(f);et(b,{class:"h-4 w-4"}),ye(),s(f),G("click",f,qe),d(U,Q)};S(se,U=>{t(h).length===0?U(ne):U(pe,-1)})}d(E,B)},$$slots:{default:!0}})}),d(l,p)},$$slots:{default:!0}})}),s(Ve),d(ee,Ve),wt()}Ct(["click","change"]);export{qa as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{p as pt,j as ut,g as a,h as l,a as vt,s as S,e as ft,f as _,c as d,$ as _t,n as g,d as o,i as gt,r as i,t as R}from"../chunks/BtOVeLcI.js";import{s as b}from"../chunks/BNpXeuQ_.js";import{a as s,f as D,c as B,t as k}from"../chunks/BoLtD6vo.js";import{i as rt}from"../chunks/DAQN5y4A.js";import{a as ht,e as $t,b as wt}from"../chunks/22C0ZkpD.js";import{c as F}from"../chunks/ChEZL1UP.js";import{h as xt}from"../chunks/CTTkX-27.js";import{i as bt,g as yt}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{p as pt,j as ut,g as a,h as l,a as vt,s as S,e as ft,f as _,c as d,$ as _t,n as g,d as o,i as gt,r as i,t as R}from"../chunks/BtOVeLcI.js";import{s as b}from"../chunks/BNpXeuQ_.js";import{a as s,f as D,c as B,t as k}from"../chunks/BoLtD6vo.js";import{i as rt}from"../chunks/DAQN5y4A.js";import{a as ht,e as $t,b as wt}from"../chunks/22C0ZkpD.js";import{c as F}from"../chunks/ChEZL1UP.js";import{h as xt}from"../chunks/CTTkX-27.js";import{i as bt,g as yt}from"../chunks/BuQcZ391.js";import{S as Pt}from"../chunks/Bixcgta2.js";import{B as U}from"../chunks/mlApEF2J.js";import{P as jt}from"../chunks/BnS8rxFx.js";import{C as st,a as ot}from"../chunks/BawNisij.js";import{E as Ct}from"../chunks/Ct6ntSZV.js";import{F as Nt}from"../chunks/CaaCaK-C.js";import{D as Ot}from"../chunks/sxUC6FDI.js";import{L as V}from"../chunks/wegQDfR0.js";import{I as it}from"../chunks/CJvX1bCR.js";import{t as W}from"../chunks/DTLLn7uD.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
|