konoha-mcp 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/apps/web/build/adapter-node.js +11 -0
- package/apps/web/build/client/_app/immutable/chunks/BH86Md_X.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/BH86Md_X.js.br +2 -0
- package/apps/web/build/client/_app/immutable/chunks/BH86Md_X.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/BaNbYf_w.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/BaNbYf_w.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/BaNbYf_w.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/C3-t9btS.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/C3-t9btS.js.br +1 -0
- package/apps/web/build/client/_app/immutable/chunks/C3-t9btS.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/{Bv85lp2r.js → CBY268r4.js} +1 -1
- package/apps/web/build/client/_app/immutable/chunks/CBY268r4.js.br +3 -0
- package/apps/web/build/client/_app/immutable/chunks/CBY268r4.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Cg3pm-K7.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/Cg3pm-K7.js.br +4 -0
- package/apps/web/build/client/_app/immutable/chunks/Cg3pm-K7.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/D-Kujhko.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/D-Kujhko.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/D-Kujhko.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Dek69VGa.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/Dek69VGa.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Dek69VGa.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/{CP4ze5kR.js → Dzm74gVd.js} +1 -1
- package/apps/web/build/client/_app/immutable/chunks/Dzm74gVd.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Dzm74gVd.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Lb3VuXoN.js +2 -0
- package/apps/web/build/client/_app/immutable/chunks/Lb3VuXoN.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Lb3VuXoN.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/PrdhfbrQ.js +3 -0
- package/apps/web/build/client/_app/immutable/chunks/PrdhfbrQ.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/PrdhfbrQ.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/{tFx9Vkzn.js → fbrtLByB.js} +1 -1
- package/apps/web/build/client/_app/immutable/chunks/fbrtLByB.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/fbrtLByB.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js +2 -0
- package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js.br +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/entry/start.CNV5BTCO.js +2 -0
- package/apps/web/build/client/_app/immutable/entry/start.CNV5BTCO.js.br +0 -0
- package/apps/web/build/client/_app/immutable/entry/start.CNV5BTCO.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{0.BV_U6rd9.js → 0.5uSjyTy0.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/0.5uSjyTy0.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/0.5uSjyTy0.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{1.317ei_PM.js → 1.BZu6jsAH.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/1.BZu6jsAH.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/1.BZu6jsAH.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{10.C9BHUF6_.js → 10.CZKScTFN.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/10.CZKScTFN.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/10.CZKScTFN.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{11._7rmywnA.js → 11.DFglFW_i.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/11.DFglFW_i.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/11.DFglFW_i.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{12.B_UJh_Cw.js → 12.CSShcv5z.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/12.CSShcv5z.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/12.CSShcv5z.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{13.FtUj7AO8.js → 13.jWUWoBcs.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/13.jWUWoBcs.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/13.jWUWoBcs.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{14.CsMWcbH2.js → 14.H-jSqqen.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/14.H-jSqqen.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/14.H-jSqqen.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{15.DbSoDlZF.js → 15.CpAoyhzV.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/15.CpAoyhzV.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/15.CpAoyhzV.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{16.BcMZYQJR.js → 16.DT_-MxCT.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/16.DT_-MxCT.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/16.DT_-MxCT.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/2.Dr646Vs5.js +1 -0
- package/apps/web/build/client/_app/immutable/nodes/2.Dr646Vs5.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/2.Dr646Vs5.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{3.Co5hy99T.js → 3.Cgc-xN3x.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/3.Cgc-xN3x.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/3.Cgc-xN3x.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{4.Ckjmv74-.js → 4.CYJQ4bWz.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/4.CYJQ4bWz.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/4.CYJQ4bWz.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{5.jG4rh5-7.js → 5.DbHL-3Es.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/5.DbHL-3Es.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/5.DbHL-3Es.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{6.am-4Bf0e.js → 6.BvWH2qas.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/6.BvWH2qas.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/6.BvWH2qas.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{7.DpWtqqaL.js → 7.CmbiPMU3.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/7.CmbiPMU3.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/7.CmbiPMU3.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{8.CbbKDJTU.js → 8.B9897Zm9.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/8.B9897Zm9.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/8.B9897Zm9.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{9.CB21-Q9D.js → 9.CVBlvZqX.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/9.CVBlvZqX.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CVBlvZqX.js.gz +0 -0
- package/apps/web/build/client/_app/version.json +1 -1
- package/apps/web/build/client/_app/version.json.br +0 -0
- package/apps/web/build/client/_app/version.json.gz +0 -0
- package/apps/web/build/handler.js +1 -2
- package/apps/web/build/index.js +1 -74
- package/apps/web/build/server/.vite/manifest.json +419 -0
- package/apps/web/build/server/_app/immutable/assets/_layout.CsjxL1aa.css +2 -0
- package/apps/web/build/server/adapter-env.js +2 -0
- package/apps/web/build/server/adapter-index.js +74 -0
- package/apps/web/build/server/adapter-index.js.map +1 -0
- package/apps/web/build/server/{chunks/env-RhfAqpCd.js → adapter-node-env.js} +28 -7
- package/apps/web/build/server/adapter-node-env.js.map +1 -0
- package/apps/web/build/server/adapter-node-handler.js +584 -0
- package/apps/web/build/server/adapter-node-handler.js.map +1 -0
- package/apps/web/build/server/chunks/api.js +81 -0
- package/apps/web/build/server/chunks/api.js.map +1 -0
- package/apps/web/build/server/chunks/{env-DU2WieJy.js → config.js} +2 -2
- package/apps/web/build/server/chunks/config.js.map +1 -0
- package/apps/web/build/server/chunks/exports.js +625 -0
- package/apps/web/build/server/chunks/exports.js.map +1 -0
- package/apps/web/build/server/chunks/functions.js +30 -0
- package/apps/web/build/server/chunks/functions.js.map +1 -0
- package/apps/web/build/server/chunks/index-server.js +2 -0
- package/apps/web/build/server/chunks/instance.js +3600 -0
- package/apps/web/build/server/chunks/instance.js.map +1 -0
- package/apps/web/build/server/chunks/internal.js +2849 -0
- package/apps/web/build/server/chunks/internal.js.map +1 -0
- package/apps/web/build/server/chunks/scrollLock.svelte.js +7 -0
- package/apps/web/build/server/chunks/scrollLock.svelte.js.map +1 -0
- package/apps/web/build/server/chunks/server-errors.js +489 -0
- package/apps/web/build/server/chunks/server-errors.js.map +1 -0
- package/apps/web/build/server/chunks/server.js +9 -0
- package/apps/web/build/server/chunks/server.js.map +1 -0
- package/apps/web/build/server/chunks/{server2-xUKEUzWG.js → server2.js} +140 -718
- package/apps/web/build/server/chunks/server2.js.map +1 -0
- package/apps/web/build/server/chunks/shared.js +84 -0
- package/apps/web/build/server/chunks/shared.js.map +1 -0
- package/apps/web/build/server/chunks/{state-C6VH2NAw.js → state.js} +5 -4
- package/apps/web/build/server/chunks/state.js.map +1 -0
- package/apps/web/build/server/chunks/{sweetAlert.svelte-BKTpmvHp.js → sweetAlert.svelte.js} +3 -3
- package/apps/web/build/server/chunks/sweetAlert.svelte.js.map +1 -0
- package/apps/web/build/server/chunks/{uiState.svelte-NgyZk5Jz.js → uiState.svelte.js} +3 -3
- package/apps/web/build/server/chunks/uiState.svelte.js.map +1 -0
- package/apps/web/build/server/chunks/uneval.js +645 -0
- package/apps/web/build/server/chunks/uneval.js.map +1 -0
- package/apps/web/build/server/entries/fallbacks/error.svelte.js +12 -0
- package/apps/web/build/server/entries/fallbacks/error.svelte.js.map +1 -0
- package/apps/web/build/server/entries/hooks.server.js +8 -0
- package/apps/web/build/server/entries/hooks.server.js.map +1 -0
- package/apps/web/build/server/entries/pages/_layout.js +7 -0
- package/apps/web/build/server/entries/pages/_layout.js.map +1 -0
- package/apps/web/build/server/{chunks/_layout.svelte-FKDEmK4m.js → entries/pages/_layout.svelte.js} +15 -8
- package/apps/web/build/server/entries/pages/_layout.svelte.js.map +1 -0
- package/apps/web/build/server/entries/pages/_page.js +9 -0
- package/apps/web/build/server/entries/pages/_page.js.map +1 -0
- package/apps/web/build/server/entries/pages/_page.svelte.js +7 -0
- package/apps/web/build/server/entries/pages/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-K0WRgefN.js → entries/pages/agents/_page.svelte.js} +8 -5
- package/apps/web/build/server/entries/pages/agents/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-BKU-UjQ2.js → entries/pages/bridges/_page.svelte.js} +9 -6
- package/apps/web/build/server/entries/pages/bridges/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-DBQMj6O8.js → entries/pages/clients/_page.svelte.js} +8 -5
- package/apps/web/build/server/entries/pages/clients/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-BQP0Z2mg.js → entries/pages/context/_page.svelte.js} +9 -6
- package/apps/web/build/server/entries/pages/context/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-D_bQaPtJ.js → entries/pages/dashboard/_page.svelte.js} +7 -4
- package/apps/web/build/server/entries/pages/dashboard/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-CxxsZeRm.js → entries/pages/detector/_page.svelte.js} +5 -3
- package/apps/web/build/server/entries/pages/detector/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-DJp9fAk8.js → entries/pages/docs/_page.svelte.js} +7 -4
- package/apps/web/build/server/entries/pages/docs/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-DFBbcBLc.js → entries/pages/doctor/_page.svelte.js} +8 -5
- package/apps/web/build/server/entries/pages/doctor/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-yXv2Aj6-.js → entries/pages/persona/_page.svelte.js} +9 -6
- package/apps/web/build/server/entries/pages/persona/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-CvH3pIDb.js → entries/pages/savings/_page.svelte.js} +7 -4
- package/apps/web/build/server/entries/pages/savings/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-FUbd8bWv.js → entries/pages/search/_page.svelte.js} +9 -6
- package/apps/web/build/server/entries/pages/search/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-Bu5RfcD4.js → entries/pages/semble/_page.svelte.js} +8 -5
- package/apps/web/build/server/entries/pages/semble/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-B4DKG2sO.js → entries/pages/skills/_page.svelte.js} +10 -7
- package/apps/web/build/server/entries/pages/skills/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-D1yHfBBh.js → entries/pages/tasks/_page.svelte.js} +8 -83
- package/apps/web/build/server/entries/pages/tasks/_page.svelte.js.map +1 -0
- package/apps/web/build/{env.js → server/env.js} +1 -1
- package/apps/web/build/server/handler.js +2 -0
- package/apps/web/build/server/index.js +68 -0
- package/apps/web/build/server/index.js.map +1 -0
- package/apps/web/build/server/manifest-full.js +149 -0
- package/apps/web/build/server/manifest.js +149 -0
- package/apps/web/build/server/nodes/0.js +10 -0
- package/apps/web/build/server/nodes/1.js +8 -0
- package/apps/web/build/server/nodes/10.js +8 -0
- package/apps/web/build/server/nodes/11.js +8 -0
- package/apps/web/build/server/nodes/12.js +8 -0
- package/apps/web/build/server/nodes/13.js +8 -0
- package/apps/web/build/server/nodes/14.js +8 -0
- package/apps/web/build/server/nodes/15.js +8 -0
- package/apps/web/build/server/nodes/16.js +8 -0
- package/apps/web/build/server/nodes/2.js +10 -0
- package/apps/web/build/server/nodes/3.js +8 -0
- package/apps/web/build/server/nodes/4.js +8 -0
- package/apps/web/build/server/nodes/5.js +8 -0
- package/apps/web/build/server/nodes/6.js +8 -0
- package/apps/web/build/server/nodes/7.js +8 -0
- package/apps/web/build/server/nodes/8.js +8 -0
- package/apps/web/build/server/nodes/9.js +8 -0
- package/apps/web/build/server/remote-entry.js +1565 -0
- package/apps/web/build/server/remote-entry.js.map +1 -0
- package/apps/web/build/server/server.js +151 -0
- package/apps/web/package.json +10 -9
- package/bin/cli.js +20 -31
- package/docs/SETUP-CLI.md +2 -2
- package/docs/SETUP-IDE.md +1 -1
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.3_2026-10-06.md +66 -0
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.4_2026-10-06.md +77 -0
- package/package.json +8 -8
- package/apps/web/build/adapter-env.js +0 -2
- package/apps/web/build/client/_app/immutable/chunks/Ae0obco1.js +0 -3
- package/apps/web/build/client/_app/immutable/chunks/Ae0obco1.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Ae0obco1.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/BUgOhUo6.js +0 -1
- package/apps/web/build/client/_app/immutable/chunks/BUgOhUo6.js.br +0 -1
- package/apps/web/build/client/_app/immutable/chunks/BUgOhUo6.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Bv85lp2r.js.br +0 -3
- package/apps/web/build/client/_app/immutable/chunks/Bv85lp2r.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CP0LAeYI.js +0 -2
- package/apps/web/build/client/_app/immutable/chunks/CP0LAeYI.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CP0LAeYI.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CP4ze5kR.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CP4ze5kR.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CV8VO5Jt.js +0 -1
- package/apps/web/build/client/_app/immutable/chunks/CV8VO5Jt.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CV8VO5Jt.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/DNVgNyBC.js +0 -1
- package/apps/web/build/client/_app/immutable/chunks/DNVgNyBC.js.br +0 -2
- package/apps/web/build/client/_app/immutable/chunks/DNVgNyBC.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/DVr7DrHY.js +0 -1
- package/apps/web/build/client/_app/immutable/chunks/DVr7DrHY.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/DVr7DrHY.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/HclGiUj8.js +0 -1
- package/apps/web/build/client/_app/immutable/chunks/HclGiUj8.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/HclGiUj8.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/tFx9Vkzn.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/tFx9Vkzn.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.qpZh6bSp.js +0 -2
- package/apps/web/build/client/_app/immutable/entry/app.qpZh6bSp.js.br +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.qpZh6bSp.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/entry/start.CUhKN6Eq.js +0 -2
- package/apps/web/build/client/_app/immutable/entry/start.CUhKN6Eq.js.br +0 -2
- package/apps/web/build/client/_app/immutable/entry/start.CUhKN6Eq.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/0.BV_U6rd9.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/0.BV_U6rd9.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/1.317ei_PM.js.br +0 -1
- package/apps/web/build/client/_app/immutable/nodes/1.317ei_PM.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/10.C9BHUF6_.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/10.C9BHUF6_.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/11._7rmywnA.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/11._7rmywnA.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/12.B_UJh_Cw.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/12.B_UJh_Cw.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/13.FtUj7AO8.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/13.FtUj7AO8.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/14.CsMWcbH2.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/14.CsMWcbH2.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/15.DbSoDlZF.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/15.DbSoDlZF.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/16.BcMZYQJR.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/16.BcMZYQJR.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/2.Bs0YCKXY.js +0 -1
- package/apps/web/build/client/_app/immutable/nodes/2.Bs0YCKXY.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/2.Bs0YCKXY.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/3.Co5hy99T.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/3.Co5hy99T.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/4.Ckjmv74-.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/4.Ckjmv74-.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/5.jG4rh5-7.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/5.jG4rh5-7.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/6.am-4Bf0e.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/6.am-4Bf0e.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/7.DpWtqqaL.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/7.DpWtqqaL.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/8.CbbKDJTU.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/8.CbbKDJTU.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CB21-Q9D.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CB21-Q9D.js.gz +0 -0
- package/apps/web/build/dir.js +0 -8
- package/apps/web/build/dir.js.map +0 -1
- package/apps/web/build/index.js.map +0 -1
- package/apps/web/build/server/chunks/0-D09zEpvl.js +0 -31
- package/apps/web/build/server/chunks/0-D09zEpvl.js.map +0 -1
- package/apps/web/build/server/chunks/1-2My56RES.js +0 -17
- package/apps/web/build/server/chunks/1-2My56RES.js.map +0 -1
- package/apps/web/build/server/chunks/10-M1HtRrZp.js +0 -17
- package/apps/web/build/server/chunks/10-M1HtRrZp.js.map +0 -1
- package/apps/web/build/server/chunks/11-BDyQuE2U.js +0 -18
- package/apps/web/build/server/chunks/11-BDyQuE2U.js.map +0 -1
- package/apps/web/build/server/chunks/12-DR3YohxS.js +0 -16
- package/apps/web/build/server/chunks/12-DR3YohxS.js.map +0 -1
- package/apps/web/build/server/chunks/13-BJri0QNV.js +0 -18
- package/apps/web/build/server/chunks/13-BJri0QNV.js.map +0 -1
- package/apps/web/build/server/chunks/14-DJhiE2DY.js +0 -17
- package/apps/web/build/server/chunks/14-DJhiE2DY.js.map +0 -1
- package/apps/web/build/server/chunks/15-CJUlxcu3.js +0 -19
- package/apps/web/build/server/chunks/15-CJUlxcu3.js.map +0 -1
- package/apps/web/build/server/chunks/16-BCncPEHV.js +0 -17
- package/apps/web/build/server/chunks/16-BCncPEHV.js.map +0 -1
- package/apps/web/build/server/chunks/2-B_JPNlak.js +0 -26
- package/apps/web/build/server/chunks/2-B_JPNlak.js.map +0 -1
- package/apps/web/build/server/chunks/3-BSOfGnYr.js +0 -17
- package/apps/web/build/server/chunks/3-BSOfGnYr.js.map +0 -1
- package/apps/web/build/server/chunks/4-DUmAi2o6.js +0 -18
- package/apps/web/build/server/chunks/4-DUmAi2o6.js.map +0 -1
- package/apps/web/build/server/chunks/5-DSM_rY93.js +0 -17
- package/apps/web/build/server/chunks/5-DSM_rY93.js.map +0 -1
- package/apps/web/build/server/chunks/6-CquXfuY3.js +0 -18
- package/apps/web/build/server/chunks/6-CquXfuY3.js.map +0 -1
- package/apps/web/build/server/chunks/7-CBNvUHPu.js +0 -16
- package/apps/web/build/server/chunks/7-CBNvUHPu.js.map +0 -1
- package/apps/web/build/server/chunks/8-BlIFjRiQ.js +0 -16
- package/apps/web/build/server/chunks/8-BlIFjRiQ.js.map +0 -1
- package/apps/web/build/server/chunks/9-sa0-Zgfq.js +0 -16
- package/apps/web/build/server/chunks/9-sa0-Zgfq.js.map +0 -1
- package/apps/web/build/server/chunks/_layout.svelte-FKDEmK4m.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-B4DKG2sO.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-BKU-UjQ2.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-BQP0Z2mg.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-Bu5RfcD4.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-CvH3pIDb.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-CxxsZeRm.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-D1yHfBBh.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-DBQMj6O8.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-DFBbcBLc.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-DJp9fAk8.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-D_bQaPtJ.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-FUbd8bWv.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-K0WRgefN.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-LJxJVjMb.js +0 -7
- package/apps/web/build/server/chunks/_page.svelte-LJxJVjMb.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-yXv2Aj6-.js.map +0 -1
- package/apps/web/build/server/chunks/env-DU2WieJy.js.map +0 -1
- package/apps/web/build/server/chunks/env-RhfAqpCd.js.map +0 -1
- package/apps/web/build/server/chunks/error.svelte-CNqmrJIT.js +0 -12
- package/apps/web/build/server/chunks/error.svelte-CNqmrJIT.js.map +0 -1
- package/apps/web/build/server/chunks/exports-DzZ-4-Dy.js +0 -327
- package/apps/web/build/server/chunks/exports-DzZ-4-Dy.js.map +0 -1
- package/apps/web/build/server/chunks/handler-BlqlgtTt.js +0 -7301
- package/apps/web/build/server/chunks/handler-BlqlgtTt.js.map +0 -1
- package/apps/web/build/server/chunks/hooks.server-DqbY7q70.js +0 -8
- package/apps/web/build/server/chunks/hooks.server-DqbY7q70.js.map +0 -1
- package/apps/web/build/server/chunks/index-server-ULRIL6sb.js +0 -2
- package/apps/web/build/server/chunks/rolldown-runtime-D7D4PA-g.js +0 -13
- package/apps/web/build/server/chunks/scrollLock.svelte-ULRIL6sb.js +0 -2
- package/apps/web/build/server/chunks/server2-xUKEUzWG.js.map +0 -1
- package/apps/web/build/server/chunks/state-C6VH2NAw.js.map +0 -1
- package/apps/web/build/server/chunks/sweetAlert.svelte-BKTpmvHp.js.map +0 -1
- package/apps/web/build/server/chunks/uiState.svelte-NgyZk5Jz.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uneval.js","names":[],"sources":["../../../../../node_modules/.pnpm/devalue@6.0.2/node_modules/devalue/src/javascript-source.js","../../../../../node_modules/.pnpm/devalue@6.0.2/node_modules/devalue/src/constants.js","../../../../../node_modules/.pnpm/devalue@6.0.2/node_modules/devalue/src/utils.js","../../../../../node_modules/.pnpm/devalue@6.0.2/node_modules/devalue/src/uneval.js"],"sourcesContent":["const SOURCE = Symbol('JavaScriptSource');\n\nexport class JavaScriptSource {\n\t/**\n\t * @param {TemplateStringsArray} strings\n\t * @param {unknown[]} values\n\t */\n\tconstructor(strings, values) {\n\t\tthis.strings = strings;\n\t\tthis.values = values;\n\t}\n\n\t/**\n\t * @param {(value: unknown) => string} fn\n\t */\n\trender(fn) {\n\t\tconst { strings, values } = this;\n\t\tlet result = strings[0];\n\t\tfor (let i = 0; i < values.length; i++) {\n\t\t\tconst value = values[i];\n\t\t\tresult += JavaScriptSource.is_fragment(value)\n\t\t\t\t? JavaScriptSource.from(value).render(fn)\n\t\t\t\t: fn(value);\n\t\t\tresult += strings[i + 1];\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * @param {(value: unknown) => void} fn\n\t * @param {Set<string>} reserved\n\t * @param {Set<readonly string[]>} templates\n\t */\n\tvisit(fn, reserved, templates) {\n\t\tconst { strings, values } = this;\n\t\t// Each template site reuses its string array, but its interpolations can change.\n\t\tif (!templates.has(strings)) {\n\t\t\ttemplates.add(strings);\n\t\t\tfor (const string of strings) {\n\t\t\t\t// Generated names are ASCII, but literal identifiers can use Unicode escapes.\n\t\t\t\tconst decoded = string.replace(\n\t\t\t\t\t/\\\\u(?:([\\da-f]{4})|\\{([\\da-f]+)\\})/gi,\n\t\t\t\t\t(escape, hex, code_point) => {\n\t\t\t\t\t\tconst code = parseInt(hex || code_point, 16);\n\t\t\t\t\t\treturn code < 128 ? String.fromCharCode(code) : escape;\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\t// Conservatively reserve words even in property names, strings and comments.\n\t\t\t\tfor (const name of decoded.match(/[a-zA-Z_$][\\w$]*/g) || []) reserved.add(name);\n\t\t\t}\n\t\t}\n\t\tfor (const value of values) {\n\t\t\tif (JavaScriptSource.is_fragment(value)) {\n\t\t\t\tJavaScriptSource.from(value).visit(fn, reserved, templates);\n\t\t\t} else {\n\t\t\t\tfn(value);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @param {unknown} value\n\t * @returns {value is JavaScriptFragment}\n\t */\n\tstatic is_fragment(value) {\n\t\treturn typeof value === 'object' && value !== null && SOURCE in value;\n\t}\n\n\t/**\n\t * @param {JavaScriptFragment} fragment\n\t * @returns {JavaScriptSource}\n\t */\n\tstatic from(fragment) {\n\t\tif (!JavaScriptSource.is_fragment(fragment)) {\n\t\t\tthrow new TypeError('Invalid JavaScript fragment');\n\t\t}\n\t\treturn fragment[SOURCE];\n\t}\n}\n\n/**\n * @param {TemplateStringsArray} strings\n * @param {...unknown} values\n * @returns {JavaScriptFragment}\n */\nexport function js(strings, ...values) {\n\tif (!Array.isArray(strings) || !Array.isArray(strings.raw)) {\n\t\tthrow new TypeError(\n\t\t\t'`js` must be used as a tagged template, but was called as a regular function'\n\t\t);\n\t}\n\treturn { [SOURCE]: new JavaScriptSource(strings, values) };\n}\n\n/**\n * The opaque result of the `js` tag passed to an `uneval` replacer.\n * @typedef {{ readonly [SOURCE]: JavaScriptSource }} JavaScriptFragment\n */\n","export const UNDEFINED = -1;\nexport const HOLE = -2;\nexport const NAN = -3;\nexport const POSITIVE_INFINITY = -4;\nexport const NEGATIVE_INFINITY = -5;\nexport const NEGATIVE_ZERO = -6;\nexport const SPARSE = -7;\n\n// The largest valid value for a JavaScript array's `length` property,\n// and the largest valid array index (one less than the max length).\nexport const MAX_ARRAY_LEN = 2 ** 32 - 1;\nexport const MAX_ARRAY_INDEX = MAX_ARRAY_LEN - 1;\n","import { MAX_ARRAY_INDEX, MAX_ARRAY_LEN } from './constants.js';\n\nconst name_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$';\nconst reserved_names =\n\t/^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;\n\n/** @type {Record<string, string>} */\nexport const escaped = {\n\t'<': '\\\\u003C',\n\t'\\\\': '\\\\\\\\',\n\t'\\b': '\\\\b',\n\t'\\f': '\\\\f',\n\t'\\n': '\\\\n',\n\t'\\r': '\\\\r',\n\t'\\t': '\\\\t',\n\t'\\u2028': '\\\\u2028',\n\t'\\u2029': '\\\\u2029'\n};\n\nexport class DevalueError extends Error {\n\t/**\n\t * @param {string} message\n\t * @param {string[]} keys\n\t * @param {any} [value] - The value that failed to be serialized\n\t * @param {any} [root] - The root value being serialized\n\t */\n\tconstructor(message, keys, value, root) {\n\t\tsuper(message);\n\t\tthis.name = 'DevalueError';\n\t\tthis.path = keys.join('');\n\t\tthis.value = value;\n\t\tthis.root = root;\n\t}\n}\n\n/**\n * Marks a Map key on the path being serialized. The key itself is recorded\n * right after the marker, so nothing is formatted or allocated per entry.\n */\nexport const MAP_KEY = Symbol();\n\n/**\n * Formats the path recorded on the way to the value being serialized — a\n * property key, an array index, or `MAP_KEY` followed by a Map key — into\n * the segments a `DevalueError` joins. Only runs when an error is raised.\n * @param {any[]} keys\n * @param {(key: any) => string} format_map_key\n * @returns {string[]}\n */\nexport function format_path(keys, format_map_key) {\n\t/** @type {string[]} */\n\tconst path = [];\n\n\tfor (let i = 0; i < keys.length; i += 1) {\n\t\tconst segment = keys[i];\n\n\t\tif (segment === MAP_KEY) {\n\t\t\tpath.push(`.get(${format_map_key(keys[++i])})`);\n\t\t} else if (typeof segment === 'number') {\n\t\t\tpath.push(`[${segment}]`);\n\t\t} else {\n\t\t\tpath.push(stringify_key(segment));\n\t\t}\n\t}\n\n\treturn path;\n}\n\n/** @param {any} thing */\nexport function is_primitive(thing) {\n\treturn thing === null || (typeof thing !== 'object' && typeof thing !== 'function');\n}\n\nconst object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(Object.prototype)\n\t.sort()\n\t.join('\\0');\n\n/** @param {any} thing */\nexport function is_plain_object(thing) {\n\tconst proto = Object.getPrototypeOf(thing);\n\n\treturn (\n\t\tproto === Object.prototype ||\n\t\tproto === null ||\n\t\tObject.getPrototypeOf(proto) === null ||\n\t\tObject.getOwnPropertyNames(proto).sort().join('\\0') === object_proto_names\n\t);\n}\n\n/** @param {any} thing */\nexport function get_type(thing) {\n\treturn Object.prototype.toString.call(thing).slice(8, -1);\n}\n\n/** @param {any} thing */\nexport function is_buffer(thing) {\n\treturn typeof Buffer !== 'undefined' && Buffer.isBuffer(thing);\n}\n\n/**\n * Emit an array whose storage is not proportional to its declared length.\n * Touching and deleting the largest valid index forces dictionary elements\n * before setting the length; assigning .length on [] can still eagerly allocate.\n * @param {number} length\n */\nexport function stringify_sparse_array(length) {\n\treturn `(function(a){a[${MAX_ARRAY_INDEX}]=0;delete a[${MAX_ARRAY_INDEX}];a.length=${length};return a}([]))`;\n}\n\n/** Returns the compact JavaScript identifier at `index`. @param {number} index */\nexport function get_name(index) {\n\tlet name = '';\n\n\tdo {\n\t\tname = name_chars[index % name_chars.length] + name;\n\t\tindex = ~~(index / name_chars.length) - 1;\n\t} while (index >= 0);\n\n\treturn reserved_names.test(name) ? `${name}0` : name;\n}\n\n/** @param {string} char */\nfunction get_escaped_char(char) {\n\tswitch (char) {\n\t\tcase '\"':\n\t\t\treturn '\\\\\"';\n\t\tcase '<':\n\t\t\treturn '\\\\u003C';\n\t\tcase '\\\\':\n\t\t\treturn '\\\\\\\\';\n\t\tcase '\\n':\n\t\t\treturn '\\\\n';\n\t\tcase '\\r':\n\t\t\treturn '\\\\r';\n\t\tcase '\\t':\n\t\t\treturn '\\\\t';\n\t\tcase '\\b':\n\t\t\treturn '\\\\b';\n\t\tcase '\\f':\n\t\t\treturn '\\\\f';\n\t\tcase '\\u2028':\n\t\t\treturn '\\\\u2028';\n\t\tcase '\\u2029':\n\t\t\treturn '\\\\u2029';\n\t\tdefault:\n\t\t\treturn char < ' ' ? `\\\\u${char.charCodeAt(0).toString(16).padStart(4, '0')}` : '';\n\t}\n}\n\n// characters `stringify_string` always escapes: quote, backslash, `<`, control\n// characters and the line/paragraph separators. Surrogates are only escaped\n// when unpaired, which `isWellFormed` detects natively, so well-formed pairs\n// such as emoji stay on the fast path\nconst needs_escape = /[\"<\\\\\\u0000-\\u001f\\u2028\\u2029]/;\n\n/** @param {string} str */\nexport function stringify_string(str) {\n\t// the common case: nothing to escape, no per-character work\n\tif (!needs_escape.test(str) && str.isWellFormed()) return `\"${str}\"`;\n\n\tlet result = '';\n\tlet last_pos = 0;\n\tconst len = str.length;\n\n\tfor (let i = 0; i < len; i += 1) {\n\t\tconst code = str.charCodeAt(i);\n\t\tif (code >= 0xd800 && code <= 0xdfff) {\n\t\t\t// A well-formed surrogate pair passes through untouched; an unpaired\n\t\t\t// surrogate cannot survive UTF-8 transport, so it is escaped.\n\t\t\tif (code <= 0xdbff && i + 1 < len && (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {\n\t\t\t\ti += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += str.slice(last_pos, i) + `\\\\u${code.toString(16)}`;\n\t\t\tlast_pos = i + 1;\n\t\t\tcontinue;\n\t\t}\n\t\tconst replacement = get_escaped_char(str[i]);\n\t\tif (replacement) {\n\t\t\tresult += str.slice(last_pos, i) + replacement;\n\t\t\tlast_pos = i + 1;\n\t\t}\n\t}\n\n\treturn `\"${last_pos === 0 ? str : result + str.slice(last_pos)}\"`;\n}\n\n// Property names repeat across the values of one call and across calls, so\n// their quoted form is cached. Names come from the data being serialized, so\n// the cache is bounded in both directions: only short names are kept, and the\n// cache is emptied once it holds 1024 of them. Longer names are quoted on\n// every visit, like every other string.\nconst MAX_CACHED_KEY_LENGTH = 64;\n\n/** @type {Map<string, string>} */\nconst quoted_keys = new Map();\n\n/** @param {string} key */\nexport function quote_key(key) {\n\tif (key.length > MAX_CACHED_KEY_LENGTH) return stringify_string(key);\n\n\tlet quoted = quoted_keys.get(key);\n\n\tif (quoted === undefined) {\n\t\tif (quoted_keys.size >= 1024) quoted_keys.clear();\n\t\tquoted = stringify_string(key);\n\t\tquoted_keys.set(key, quoted);\n\t}\n\n\treturn quoted;\n}\n\n/** @param {Record<string | symbol, any>} object */\nexport function enumerable_symbols(object) {\n\tconst symbols = Object.getOwnPropertySymbols(object);\n\t// Own symbols always have a descriptor; the optional chain only satisfies the lib's\n\t// `PropertyDescriptor | undefined` return type.\n\treturn symbols.length === 0\n\t\t? symbols\n\t\t: symbols.filter((symbol) => Object.getOwnPropertyDescriptor(object, symbol)?.enumerable);\n}\n\nconst is_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;\n\n/** @param {string} key */\nexport function stringify_key(key) {\n\treturn is_identifier.test(key) ? '.' + key : '[' + JSON.stringify(key) + ']';\n}\n\n/** @param {number} n */\nexport function is_valid_array_index(n) {\n\tif (!Number.isInteger(n)) return false;\n\tif (n < 0) return false;\n\tif (n > MAX_ARRAY_INDEX) return false;\n\treturn true;\n}\n\n/** @param {number} n */\nexport function is_valid_array_len(n) {\n\tif (!Number.isInteger(n)) return false;\n\tif (n < 0) return false;\n\tif (n > MAX_ARRAY_LEN) return false;\n\treturn true;\n}\n\n/** @param {string} s */\nfunction is_valid_array_index_string(s) {\n\tif (s.length === 0) return false;\n\tif (s.length > 1 && s.charCodeAt(0) === 48) return false; // leading zero\n\tfor (let i = 0; i < s.length; i++) {\n\t\tconst c = s.charCodeAt(i);\n\t\tif (c < 48 || c > 57) return false;\n\t}\n\t// by this point we know it's a string of digits, but it has to be within\n\t// the range of valid array indices\n\treturn is_valid_array_index(+s);\n}\n\n/**\n * Returns the length of the leading run of valid array indices in `keys`.\n * @param {readonly string[]} keys\n */\nfunction array_index_cut(keys) {\n\tfor (var i = keys.length - 1; i >= 0; i--) {\n\t\tif (is_valid_array_index_string(keys[i])) {\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn i + 1;\n}\n\n/**\n * Finds the populated indices of an array.\n * @param {unknown[]} array\n */\nexport function valid_array_indices(array) {\n\tconst keys = Object.keys(array);\n\tkeys.length = array_index_cut(keys);\n\treturn keys;\n}\n\n/**\n * Given the own enumerable string keys of an array-like value, in property\n * order, returns the leading run of them that are valid array indices.\n *\n * This is the filtering half of the `indicesOf` stringify operation,\n * exposed so that custom operations — which typically already have the keys\n * in hand, e.g. from a foreign runtime — don't have to reimplement it.\n *\n * Does not modify `keys`.\n *\n * @param {readonly string[]} keys\n * @returns {string[]}\n */\nexport function filter_array_indices(keys) {\n\treturn keys.slice(0, array_index_cut(keys));\n}\n","/**\n * @import { UnevalReplacer } from './types';\n */\nimport { js, JavaScriptSource } from './javascript-source.js';\nimport {\n\tDevalueError,\n\tMAP_KEY,\n\tenumerable_symbols,\n\tescaped,\n\tformat_path,\n\tget_name,\n\tget_type,\n\tis_buffer,\n\tis_plain_object,\n\tis_primitive,\n\tstringify_key,\n\tstringify_sparse_array,\n\tstringify_string,\n\tvalid_array_indices\n} from './utils.js';\n\nconst unsafe_chars = /[<\\b\\f\\n\\r\\t\\0\\u2028\\u2029]/g;\n// Short strings have bounded escaping/output costs per reference.\nconst MIN_STRING_LENGTH = 128;\n\n/**\n * Turn a value into the JavaScript that creates an equivalent value\n * @param {any} value\n * @param {UnevalReplacer} [replacer]\n */\nexport function uneval(value, replacer) {\n\t/** @type {Map<any, string>} */\n\tconst names = new Map();\n\tconst reserved = new Set();\n\tconst templates = new Set();\n\tconst seen = new Set();\n\n\t// the path to the value being walked, recorded as-is and only formatted\n\t// by `error` — see `format_path`\n\t/** @type {any[]} */\n\tconst keys = [];\n\n\t/** @type {Map<any, JavaScriptSource>} */\n\tconst custom = new Map();\n\n\t/**\n\t * @param {string} message\n\t * @param {any} thing\n\t * @returns {never}\n\t */\n\tfunction error(message, thing) {\n\t\tconst path = format_path(keys, (key) => (is_primitive(key) ? stringify_primitive(key) : '...'));\n\t\tthrow new DevalueError(message, path, thing, value);\n\t}\n\n\t/** @type {Map<string | bigint, number> | undefined} */\n\tlet primitive_counts;\n\t/** @type {Map<string | bigint, string> | undefined} */\n\tlet primitives;\n\n\t/** @param {any} thing */\n\tfunction stringify_cached_primitive(thing) {\n\t\tif (\n\t\t\t(typeof thing === 'string' && thing.length >= MIN_STRING_LENGTH) ||\n\t\t\ttypeof thing === 'bigint'\n\t\t) {\n\t\t\tprimitives ??= new Map();\n\t\t\tlet literal = primitives.get(thing);\n\t\t\tif (literal === undefined) {\n\t\t\t\tliteral = stringify_primitive(thing);\n\t\t\t\tprimitives.set(thing, literal);\n\t\t\t}\n\t\t\treturn literal;\n\t\t}\n\t\treturn stringify_primitive(thing);\n\t}\n\n\t/** @param {any} thing */\n\tfunction walk(thing) {\n\t\tif (!is_primitive(thing)) {\n\t\t\tif (seen.has(thing)) {\n\t\t\t\tif (!names.has(thing)) names.set(thing, '');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tseen.add(thing);\n\n\t\t\tif (replacer) {\n\t\t\t\tconst fragment = replacer(thing, js);\n\n\t\t\t\tif (fragment) {\n\t\t\t\t\tconst source = JavaScriptSource.from(fragment);\n\t\t\t\t\tcustom.set(thing, source);\n\t\t\t\t\tsource.visit(walk, reserved, templates);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (fragment !== undefined && fragment !== null && fragment !== false) {\n\t\t\t\t\tthrow new TypeError('Invalid uneval replacer result');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (typeof thing === 'function') {\n\t\t\t\terror(`Cannot stringify a function`, thing);\n\t\t\t}\n\n\t\t\tconst type = get_type(thing);\n\n\t\t\tswitch (type) {\n\t\t\t\tcase 'BigInt':\n\t\t\t\tcase 'String':\n\t\t\t\t\twalk(thing.valueOf());\n\t\t\t\t\treturn;\n\n\t\t\t\tcase 'Number':\n\t\t\t\tcase 'Boolean':\n\t\t\t\tcase 'Date':\n\t\t\t\tcase 'RegExp':\n\t\t\t\tcase 'URL':\n\t\t\t\tcase 'URLSearchParams':\n\t\t\t\t\treturn;\n\n\t\t\t\tcase 'Array':\n\t\t\t\t\t// Never scan the logical length of a dictionary-backed sparse array.\n\t\t\t\t\tfor (const i of valid_array_indices(thing)) {\n\t\t\t\t\t\tkeys.push(+i);\n\t\t\t\t\t\twalk(thing[i]);\n\t\t\t\t\t\tkeys.pop();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'Set':\n\t\t\t\t\tfor (const value of thing) walk(value);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'Map':\n\t\t\t\t\tfor (const [key, value] of thing) {\n\t\t\t\t\t\tkeys.push(MAP_KEY, key);\n\t\t\t\t\t\twalk(key);\n\t\t\t\t\t\twalk(value);\n\t\t\t\t\t\tkeys.pop();\n\t\t\t\t\t\tkeys.pop();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'Int8Array':\n\t\t\t\tcase 'Uint8Array':\n\t\t\t\tcase 'Uint8ClampedArray':\n\t\t\t\tcase 'Int16Array':\n\t\t\t\tcase 'Uint16Array':\n\t\t\t\tcase 'Float16Array':\n\t\t\t\tcase 'Int32Array':\n\t\t\t\tcase 'Uint32Array':\n\t\t\t\tcase 'Float32Array':\n\t\t\t\tcase 'Float64Array':\n\t\t\t\tcase 'BigInt64Array':\n\t\t\t\tcase 'BigUint64Array':\n\t\t\t\tcase 'DataView':\n\t\t\t\t\t// Buffer pools can contain unrelated, sensitive bytes.\n\t\t\t\t\tif (!is_buffer(thing)) walk(thing.buffer);\n\t\t\t\t\treturn;\n\n\t\t\t\tcase 'ArrayBuffer':\n\t\t\t\t\treturn;\n\n\t\t\t\tcase 'Temporal.Duration':\n\t\t\t\tcase 'Temporal.Instant':\n\t\t\t\tcase 'Temporal.PlainDate':\n\t\t\t\tcase 'Temporal.PlainTime':\n\t\t\t\tcase 'Temporal.PlainDateTime':\n\t\t\t\tcase 'Temporal.PlainMonthDay':\n\t\t\t\tcase 'Temporal.PlainYearMonth':\n\t\t\t\tcase 'Temporal.ZonedDateTime':\n\t\t\t\t\treturn;\n\n\t\t\t\tdefault:\n\t\t\t\t\tif (!is_plain_object(thing)) {\n\t\t\t\t\t\terror(`Cannot stringify arbitrary non-POJOs`, thing);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (enumerable_symbols(thing).length > 0) {\n\t\t\t\t\t\terror(`Cannot stringify POJOs with symbolic keys`, thing);\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (const key of Object.keys(thing)) {\n\t\t\t\t\t\tif (key === '__proto__') {\n\t\t\t\t\t\t\terror(`Cannot stringify objects with __proto__ keys`, thing);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tkeys.push(key);\n\t\t\t\t\t\twalk(thing[key]);\n\t\t\t\t\t\tkeys.pop();\n\t\t\t\t\t}\n\t\t\t}\n\t\t} else if (typeof thing === 'symbol') {\n\t\t\terror(`Cannot stringify a Symbol primitive`, thing);\n\t\t} else if (\n\t\t\t(typeof thing === 'string' && thing.length >= MIN_STRING_LENGTH) ||\n\t\t\ttypeof thing === 'bigint'\n\t\t) {\n\t\t\tprimitive_counts ??= new Map();\n\t\t\tprimitive_counts.set(thing, (primitive_counts.get(thing) || 0) + 1);\n\t\t}\n\t}\n\n\twalk(value);\n\n\tlet name_index = 0;\n\tfunction next_name() {\n\t\tlet name;\n\t\tdo {\n\t\t\tname = get_name(name_index++);\n\t\t} while (reserved.has(name));\n\t\treturn name;\n\t}\n\n\t// Wait until every custom source has been visited before assigning names.\n\tfor (const thing of names.keys()) names.set(thing, next_name());\n\tif (primitive_counts) {\n\t\tfor (const [thing, count] of primitive_counts) {\n\t\t\tif (count < 2) continue;\n\t\t\tconst name = next_name();\n\t\t\tconst length = stringify_cached_primitive(thing).length;\n\t\t\t// Include the declaration and IIFE overhead even if one already exists.\n\t\t\tif (length * count > length + (count + 1) * name.length + 40) names.set(thing, name);\n\t\t}\n\t}\n\n\t// Reuse the traversal set to track declarations during serialization.\n\tseen.clear();\n\tconst inlining = custom.size > 0 ? new Set() : null;\n\n\t/** @type {Map<any, () => void>} */\n\tconst initializers = new Map();\n\n\t/** @type {string[]} */\n\tconst statements = [];\n\n\t/**\n\t * @param {any} thing\n\t * @returns {string}\n\t */\n\tfunction stringify(thing) {\n\t\tconst name = names.get(thing);\n\n\t\tif (name) {\n\t\t\tif (!seen.has(thing)) {\n\t\t\t\tif (is_primitive(thing)) {\n\t\t\t\t\tseen.add(thing);\n\t\t\t\t\tstatements.push(`let ${name}=${stringify_cached_primitive(thing)}`);\n\t\t\t\t\treturn name;\n\t\t\t\t}\n\t\t\t\tconst type = custom.has(thing) ? null : get_type(thing);\n\n\t\t\t\tswitch (type) {\n\t\t\t\t\tcase 'Object':\n\t\t\t\t\t\tseen.add(thing);\n\t\t\t\t\t\tstatements.push(\n\t\t\t\t\t\t\t`let ${name}=${Object.getPrototypeOf(thing) === null ? 'Object.create(null)' : '{}'}`\n\t\t\t\t\t\t);\n\t\t\t\t\t\tObject.keys(thing).forEach((key) => {\n\t\t\t\t\t\t\tstatements.push(`${name}${safe_prop(key)}=${stringify(thing[key])}`);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'Array': {\n\t\t\t\t\t\tseen.add(thing);\n\t\t\t\t\t\tconst indices = valid_array_indices(thing);\n\t\t\t\t\t\tconst array =\n\t\t\t\t\t\t\tthing.length > 32 + 2 * indices.length\n\t\t\t\t\t\t\t\t? stringify_sparse_array(thing.length)\n\t\t\t\t\t\t\t\t: `Array(${thing.length})`;\n\t\t\t\t\t\tstatements.push(`let ${name}=${array}`);\n\t\t\t\t\t\tfor (const i of indices) {\n\t\t\t\t\t\t\tstatements.push(`${name}[${i}]=${stringify(thing[i])}`);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'Set':\n\t\t\t\t\tcase 'Map': {\n\t\t\t\t\t\tseen.add(thing);\n\t\t\t\t\t\t/** @type {string[]} */\n\t\t\t\t\t\tconst entries = [];\n\t\t\t\t\t\tlet initialized = false;\n\t\t\t\t\t\tlet statement_index = -1;\n\n\t\t\t\t\t\t// Collect a ready prefix until a reference needs the collection.\n\t\t\t\t\t\t// Emit subsequent entries eagerly, preserving insertion order.\n\t\t\t\t\t\tconst initialize = () => {\n\t\t\t\t\t\t\tif (initialized) return;\n\t\t\t\t\t\t\tinitialized = true;\n\t\t\t\t\t\t\tinitializers.delete(thing);\n\t\t\t\t\t\t\tstatements.push(\n\t\t\t\t\t\t\t\t`let ${name}=new ${type}${entries.length ? `([${entries.join(',')}])` : ''}`\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tinitializers.set(thing, initialize);\n\n\t\t\t\t\t\tfor (const entry of thing) {\n\t\t\t\t\t\t\tconst args =\n\t\t\t\t\t\t\t\ttype === 'Map' ? `${stringify(entry[0])},${stringify(entry[1])}` : stringify(entry);\n\n\t\t\t\t\t\t\tif (!initialized) {\n\t\t\t\t\t\t\t\tentries.push(type === 'Map' ? `[${args}]` : args);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst call = `.${type === 'Map' ? 'set' : 'add'}(${args})`;\n\t\t\t\t\t\t\t\tif (statement_index === statements.length - 1) {\n\t\t\t\t\t\t\t\t\tstatements[statement_index] += call;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstatement_index = statements.push(name + call) - 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tinitialize();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tconst str = actually_stringify(thing);\n\t\t\t\t\t\tif (!seen.has(thing)) statements.push(`let ${name}=${str}`);\n\t\t\t\t\t\tseen.add(thing);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tinitializers.get(thing)?.();\n\t\t\t}\n\n\t\t\treturn name;\n\t\t}\n\n\t\tif (is_primitive(thing)) {\n\t\t\treturn stringify_cached_primitive(thing);\n\t\t}\n\n\t\tif (inlining === null) return actually_stringify(thing);\n\n\t\t// A singly referenced value can still be part of a custom constructor's\n\t\t// cycle. If inlining it re-enters itself, hoist it to break the cycle.\n\t\tif (inlining.has(thing)) {\n\t\t\tnames.set(thing, next_name());\n\t\t\treturn stringify(thing);\n\t\t}\n\n\t\tinlining.add(thing);\n\t\tconst str = actually_stringify(thing);\n\t\tinlining.delete(thing);\n\t\treturn names.get(thing) || str;\n\t}\n\n\t/**\n\t * @param {any} thing\n\t * @returns {string}\n\t */\n\tfunction actually_stringify(thing) {\n\t\tconst source = custom.get(thing);\n\n\t\tif (source) {\n\t\t\treturn source.render(stringify);\n\t\t}\n\n\t\tconst type = get_type(thing);\n\n\t\tswitch (type) {\n\t\t\tcase 'Number':\n\t\t\tcase 'String':\n\t\t\tcase 'Boolean':\n\t\t\tcase 'BigInt':\n\t\t\t\treturn `Object(${stringify(thing.valueOf())})`;\n\n\t\t\tcase 'RegExp':\n\t\t\t\tconst { source, flags } = thing;\n\t\t\t\treturn flags\n\t\t\t\t\t? `new RegExp(${stringify_string(source)},\"${flags}\")`\n\t\t\t\t\t: `new RegExp(${stringify_string(source)})`;\n\n\t\t\tcase 'Date':\n\t\t\t\treturn `new Date(${thing.getTime()})`;\n\n\t\t\tcase 'URL':\n\t\t\t\treturn `new URL(${stringify_string(thing.toString())})`;\n\n\t\t\tcase 'URLSearchParams':\n\t\t\t\treturn `new URLSearchParams(${stringify_string(thing.toString())})`;\n\n\t\t\tcase 'Array': {\n\t\t\t\t// For dense arrays (no holes), we iterate normally.\n\t\t\t\t// When we encounter the first hole, we collect own indices\n\t\t\t\t// to determine the sparseness, then decide between:\n\t\t\t\t// - Array literal with holes: [,\"a\",,] (default)\n\t\t\t\t// - Object.assign with a sparse-safe allocator (for very sparse arrays)\n\t\t\t\t// Only the Object.assign path avoids iterating every slot, which\n\t\t\t\t// is what protects against the DoS of e.g. `arr[1000000] = 1`.\n\t\t\t\tlet has_holes = false;\n\n\t\t\t\tlet result = '[';\n\n\t\t\t\tfor (let i = 0; i < thing.length; i += 1) {\n\t\t\t\t\tif (i > 0) result += ',';\n\n\t\t\t\t\tif (Object.hasOwn(thing, i)) {\n\t\t\t\t\t\tresult += stringify(thing[i]);\n\t\t\t\t\t} else if (!has_holes) {\n\t\t\t\t\t\t// Decide between array literal and Object.assign.\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// Array literal: holes are consecutive commas.\n\t\t\t\t\t\t// For example, [, \"a\", ,] is written as [,\"a\",,].\n\t\t\t\t\t\t// Each hole costs 1 char (a comma).\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// Object.assign: populated indices are listed explicitly.\n\t\t\t\t\t\t// For example, [, \"a\", ,] would be written as\n\t\t\t\t\t\t// Object.assign(sparse(3),{1:\"a\"}), where sparse(n) stands\n\t\t\t\t\t\t// for the expression emitted by stringify_sparse_array(n).\n\t\t\t\t\t\t// This avoids paying per-hole, but has fixed overhead for\n\t\t\t\t\t\t// the allocator and wrapper, plus each index and colon.\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// The serialized values are the same size either way, so\n\t\t\t\t\t\t// the choice comes down to the structural overhead:\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// Array literal overhead:\n\t\t\t\t\t\t// 1 char per element or hole (comma separators)\n\t\t\t\t\t\t// + 2 chars for \"[\" and \"]\"\n\t\t\t\t\t\t// = L + 2\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// Object.assign overhead:\n\t\t\t\t\t\t// \"Object.assign(\" — 14 chars\n\t\t\t\t\t\t// + allocator expression — A chars\n\t\t\t\t\t\t// + \",{\" — 2 chars\n\t\t\t\t\t\t// + for each populated element:\n\t\t\t\t\t\t// index + \":\" + \",\" — (d + 2) chars\n\t\t\t\t\t\t// + \"})\" — 2 chars\n\t\t\t\t\t\t// = (18 + A) + P * (d + 2)\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// where L is the array length, P is the number of\n\t\t\t\t\t\t// populated elements, A is the allocator length, and d\n\t\t\t\t\t\t// is the number of digits in L (an upper bound per index).\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// Object.assign is cheaper when:\n\t\t\t\t\t\t// (18 + A) + P * (d + 2) < L + 2\n\t\t\t\t\t\tconst populated_keys = valid_array_indices(/** @type {any[]} */ (thing));\n\t\t\t\t\t\tconst population = populated_keys.length;\n\t\t\t\t\t\tconst d = String(thing.length).length;\n\t\t\t\t\t\tconst array = stringify_sparse_array(thing.length);\n\n\t\t\t\t\t\tconst hole_cost = thing.length + 2;\n\t\t\t\t\t\tconst sparse_cost = array.length + 18 + population * (d + 2);\n\n\t\t\t\t\t\tif (hole_cost > sparse_cost) {\n\t\t\t\t\t\t\tconst entries = populated_keys.map((k) => `${k}:${stringify(thing[k])}`).join(',');\n\t\t\t\t\t\t\treturn `Object.assign(${array},{${entries}})`;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\thas_holes = true;\n\t\t\t\t\t}\n\t\t\t\t\t// else: already decided on array literal, hole is just an empty slot\n\t\t\t\t\t// (the comma separator is all we need — no content for this position)\n\t\t\t\t}\n\n\t\t\t\tconst tail = thing.length === 0 || Object.hasOwn(thing, thing.length - 1) ? '' : ',';\n\t\t\t\treturn result + tail + ']';\n\t\t\t}\n\n\t\t\tcase 'Set':\n\t\t\t\treturn `new Set([${Array.from(thing, stringify).join(',')}])`;\n\n\t\t\tcase 'Map': {\n\t\t\t\tconst entries = Array.from(thing, ([k, v]) => `[${stringify(k)},${stringify(v)}]`);\n\t\t\t\treturn `new Map([${entries.join(',')}])`;\n\t\t\t}\n\n\t\t\tcase 'Int8Array':\n\t\t\tcase 'Uint8Array':\n\t\t\tcase 'Uint8ClampedArray':\n\t\t\tcase 'Int16Array':\n\t\t\tcase 'Uint16Array':\n\t\t\tcase 'Float16Array':\n\t\t\tcase 'Int32Array':\n\t\t\tcase 'Uint32Array':\n\t\t\tcase 'Float32Array':\n\t\t\tcase 'Float64Array':\n\t\t\tcase 'BigInt64Array':\n\t\t\tcase 'BigUint64Array': {\n\t\t\t\tif (is_buffer(thing)) thing = new Uint8Array(thing);\n\n\t\t\t\tif (thing.buffer.byteLength % thing.BYTES_PER_ELEMENT !== 0) {\n\t\t\t\t\treturn `new ${type}(${stringify(thing.buffer)},${thing.byteOffset},${thing.length})`;\n\t\t\t\t}\n\n\t\t\t\tlet str = `new ${type}`;\n\n\t\t\t\tif (!names.has(thing.buffer)) {\n\t\t\t\t\tstr += `([${stringify_typed_array_elements(type, thing.buffer)}])`;\n\t\t\t\t} else {\n\t\t\t\t\tstr += `(${stringify(thing.buffer)})`;\n\t\t\t\t}\n\n\t\t\t\t// handle subarrays\n\t\t\t\tif (thing.byteLength !== thing.buffer.byteLength) {\n\t\t\t\t\tconst start = thing.byteOffset / thing.BYTES_PER_ELEMENT;\n\t\t\t\t\tconst end = start + thing.length;\n\t\t\t\t\tstr += `.subarray(${start},${end})`;\n\t\t\t\t}\n\n\t\t\t\treturn str;\n\t\t\t}\n\n\t\t\tcase 'DataView': {\n\t\t\t\tlet str = `new DataView`;\n\n\t\t\t\tif (!names.has(thing.buffer)) {\n\t\t\t\t\tstr += `(new Uint8Array([${new Uint8Array(thing.buffer)}]).buffer`;\n\t\t\t\t} else {\n\t\t\t\t\tstr += `(${stringify(thing.buffer)}`;\n\t\t\t\t}\n\n\t\t\t\t// handle subviews\n\t\t\t\tif (thing.byteLength !== thing.buffer.byteLength) {\n\t\t\t\t\tstr += `,${thing.byteOffset},${thing.byteLength}`;\n\t\t\t\t}\n\n\t\t\t\treturn str + ')';\n\t\t\t}\n\n\t\t\tcase 'ArrayBuffer': {\n\t\t\t\tconst ui8 = new Uint8Array(thing);\n\t\t\t\treturn `new Uint8Array([${ui8.toString()}]).buffer`;\n\t\t\t}\n\n\t\t\tcase 'Temporal.Duration':\n\t\t\tcase 'Temporal.Instant':\n\t\t\tcase 'Temporal.PlainDate':\n\t\t\tcase 'Temporal.PlainTime':\n\t\t\tcase 'Temporal.PlainDateTime':\n\t\t\tcase 'Temporal.PlainMonthDay':\n\t\t\tcase 'Temporal.PlainYearMonth':\n\t\t\tcase 'Temporal.ZonedDateTime':\n\t\t\t\treturn `${type}.from(${stringify_string(thing.toString())})`;\n\n\t\t\tdefault:\n\t\t\t\tconst keys = Object.keys(thing);\n\t\t\t\tconst obj = keys.map((key) => `${safe_key(key)}:${stringify(thing[key])}`).join(',');\n\t\t\t\tconst proto = Object.getPrototypeOf(thing);\n\t\t\t\tif (proto === null) {\n\t\t\t\t\treturn keys.length > 0 ? `{${obj},__proto__:null}` : `{__proto__:null}`;\n\t\t\t\t}\n\n\t\t\t\treturn `{${obj}}`;\n\t\t}\n\t}\n\n\tconst str = stringify(value);\n\n\tif (statements.length === 0) {\n\t\treturn str;\n\t}\n\n\treturn `(function(){${statements.join(';')};return ${str}}())`;\n}\n\n/**\n * Serialize the elements of `buffer`, read as `type`, as a comma-separated list.\n * The view is created from `type` rather than from the serialized value's own\n * constructor, which may be a subclass like Node's `Buffer` whose `toString`\n * decodes the bytes instead of listing them.\n * `BigInt64Array`/`BigUint64Array` elements are bigints and must be written\n * with an `n` suffix, otherwise the emitted `new BigInt64Array([...])` throws.\n * @param {string} type\n * @param {ArrayBufferLike} buffer\n */\nfunction stringify_typed_array_elements(type, buffer) {\n\tconst array = new /** @type {any} */ (globalThis)[type](buffer);\n\n\tif (type === 'BigInt64Array' || type === 'BigUint64Array') {\n\t\treturn Array.from(array, (element) => `${element}n`).join(',');\n\t}\n\n\t// Float arrays can hold `-0`, which `toString()` collapses to `\"0\"`, silently\n\t// losing the sign on round-trip. Emit `-0` explicitly for those elements.\n\tif (\n\t\tarray instanceof Float32Array ||\n\t\tarray instanceof Float64Array ||\n\t\t(typeof Float16Array !== 'undefined' && array instanceof Float16Array)\n\t) {\n\t\treturn Array.from(array, (element) => (Object.is(element, -0) ? '-0' : `${element}`)).join(',');\n\t}\n\n\treturn array.toString();\n}\n\n/** @param {string} c */\nfunction escape_unsafe_char(c) {\n\treturn escaped[c] || c;\n}\n\n/** @param {string} str */\nfunction escape_unsafe_chars(str) {\n\treturn str.replace(unsafe_chars, escape_unsafe_char);\n}\n\n/** @param {string} key */\nfunction safe_key(key) {\n\treturn /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? key : escape_unsafe_chars(JSON.stringify(key));\n}\n\n/** @param {string} key */\nfunction safe_prop(key) {\n\treturn /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key)\n\t\t? `.${key}`\n\t\t: `[${escape_unsafe_chars(JSON.stringify(key))}]`;\n}\n\n/** @param {any} thing */\nfunction stringify_primitive(thing) {\n\tconst type = typeof thing;\n\tif (type === 'string') return stringify_string(thing);\n\tif (thing === void 0) return 'void 0';\n\tif (thing === 0 && 1 / thing < 0) return '-0';\n\tconst str = String(thing);\n\tif (type === 'number') return str.replace(/^(-)?0\\./, '$1.');\n\tif (type === 'bigint') return thing + 'n';\n\treturn str;\n}\n"],"ignoreList":[0,1,2,3],"mappings":";AAAA,IAAM,SAAS,OAAO,kBAAkB;AAExC,IAAa,mBAAb,MAAa,iB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SAAS,KAAK;CACtB,OAAO,6BAA6B,KAAK,GAAG,IAAI,MAAM,oBAAoB,KAAK,UAAU,GAAG,CAAC;AAC9F;;AAGA,SAAS,UAAU,KAAK;CACvB,OAAO,6BAA6B,KAAK,GAAG,IACzC,IAAI,QACJ,IAAI,oBAAoB,KAAK,UAAU,GAAG,CAAC,EAAE;AACjD;;AAGA,SAAS,oBAAoB,OAAO;CACnC,MAAM,OAAO,OAAO;CACpB,IAAI,SAAS,UAAU,OAAO,iBAAiB,KAAK;CACpD,IAAI,UAAU,KAAK,GAAG,OAAO;CAC7B,IAAI,UAAU,KAAK,IAAI,QAAQ,GAAG,OAAO;CACzC,MAAM,MAAM,OAAO,KAAK;CACxB,IAAI,SAAS,UAAU,OAAO,IAAI,QAAQ,YAAY,KAAK;CAC3D,IAAI,SAAS,UAAU,OAAO,QAAQ;CACtC,OAAO;AACR"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { d as escape_html } from "../../chunks/server2.js";
|
|
2
|
+
import { t as page } from "../../chunks/state.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/components/error.svelte
|
|
4
|
+
function Error($$renderer, $$props) {
|
|
5
|
+
$$renderer.component(($$renderer) => {
|
|
6
|
+
$$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Error as default };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=error.svelte.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.svelte.js","names":["$.escape"],"sources":["../../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/components/error.svelte"],"sourcesContent":["<svelte:options runes={true} />\n\n<script>\n\timport { page } from '$app/state';\n</script>\n\n<h1>{page.status}</h1>\n<p>{page.error?.message}</p>\n"],"ignoreList":[0],"mappings":";;;;CAEA,WAAA,WAAA,eAAA;EAIK,WAAA,KAAA,OAAAA,YAAA,KAAK,MAAM,EAAA,WAAAA,YACZ,KAAK,OAAO,OAAO,EAAA,KAAA;CAHf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.server.js","names":[],"sources":["../../../src/hooks.server.js"],"sourcesContent":["// SvelteKit server hook — pass-through.\n// The CSRF session token is delivered exclusively via the HttpOnly cookie set by\n// the Node web server (src/web_server.js). It must NEVER be rendered into HTML\n// (no meta tag injection) so it stays out of page source, caches, and DOM dumps.\n// The SPA obtains it for mutating requests via GET /api/v1/csrf (same-origin).\nexport async function handle({ event, resolve }) {\n return resolve(event);\n}\n"],"mappings":";AAKA,eAAsB,OAAO,EAAE,OAAO,WAAW;CAC/C,OAAO,QAAQ,KAAK;AACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_layout.js","names":[],"sources":["../../../../src/routes/+layout.js"],"sourcesContent":["// Enable SSR for instant UI pre-rendering\nexport const ssr = true;\nexport const prerender = false;\n"],"mappings":";AACA,IAAa,MAAM;AACnB,IAAa,YAAY"}
|
package/apps/web/build/server/{chunks/_layout.svelte-FKDEmK4m.js → entries/pages/_layout.svelte.js}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import { t as page } from "
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
|
|
1
|
+
import { d as escape_html, i as ensure_array_like, l as attr, n as attr_style, s as stringify, t as attr_class } from "../../chunks/server2.js";
|
|
2
|
+
import "../../chunks/index-server.js";
|
|
3
|
+
import { t as page } from "../../chunks/state.js";
|
|
4
|
+
import "../../chunks/api.js";
|
|
5
|
+
import { t as uiState } from "../../chunks/uiState.svelte.js";
|
|
6
|
+
import "../../chunks/scrollLock.svelte.js";
|
|
7
|
+
import { t as sweetAlert } from "../../chunks/sweetAlert.svelte.js";
|
|
8
|
+
//#region src/lib/state/themeState.svelte.js
|
|
8
9
|
var THEMES = [
|
|
9
10
|
{
|
|
10
11
|
id: "chidori",
|
|
@@ -246,6 +247,8 @@ function createThemeState() {
|
|
|
246
247
|
};
|
|
247
248
|
}
|
|
248
249
|
var themeState = createThemeState();
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region src/components/ThemeSwitcher.svelte
|
|
249
252
|
function ThemeSwitcher($$renderer, $$props) {
|
|
250
253
|
$$renderer.component(($$renderer) => {
|
|
251
254
|
$$renderer.push(`<div class="fixed bottom-20 left-5 lg:bottom-6 lg:left-6 z-50"><button type="button" class="w-11 h-11 rounded-full border shadow-2xl flex items-center justify-center transition-all duration-200 hover:scale-110 active:scale-95 cursor-pointer group" style="background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text); box-shadow: var(--shadow-3d);"${attr("title", `Switch Theme (${stringify(themeState.currentTheme.replace("-", " "))})`)} aria-label="Toggle Theme Selection Modal"><span class="w-4.5 h-4.5 rounded-full shadow-md transition-transform duration-200 group-hover:scale-110" style="background: linear-gradient(135deg, var(--color-primary, #7c3aed), var(--color-accent, #6366f1));"></span></button></div> `);
|
|
@@ -253,6 +256,8 @@ function ThemeSwitcher($$renderer, $$props) {
|
|
|
253
256
|
$$renderer.push(`<!--]-->`);
|
|
254
257
|
});
|
|
255
258
|
}
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region src/components/SweetAlertModal.svelte
|
|
256
261
|
function SweetAlertModal($$renderer, $$props) {
|
|
257
262
|
$$renderer.component(($$renderer) => {
|
|
258
263
|
if (sweetAlert.isOpen) {
|
|
@@ -282,6 +287,8 @@ function SweetAlertModal($$renderer, $$props) {
|
|
|
282
287
|
$$renderer.push(`<!--]-->`);
|
|
283
288
|
});
|
|
284
289
|
}
|
|
290
|
+
//#endregion
|
|
291
|
+
//#region src/routes/+layout.svelte
|
|
285
292
|
function _layout($$renderer, $$props) {
|
|
286
293
|
$$renderer.component(($$renderer) => {
|
|
287
294
|
let { children } = $$props;
|
|
@@ -455,4 +462,4 @@ function _layout($$renderer, $$props) {
|
|
|
455
462
|
//#endregion
|
|
456
463
|
export { _layout as default };
|
|
457
464
|
|
|
458
|
-
//# sourceMappingURL=_layout.svelte
|
|
465
|
+
//# sourceMappingURL=_layout.svelte.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_layout.svelte.js","names":["$.attr","$.stringify","$.escape","$.ensure_array_like","$.attr_class","$.escape","$.ensure_array_like","$.attr_style","$.attr"],"sources":["../../../../src/lib/state/themeState.svelte.js","../../../../src/components/ThemeSwitcher.svelte","../../../../src/components/SweetAlertModal.svelte","../../../../src/routes/+layout.svelte"],"sourcesContent":["/* eslint-disable no-undef */\n// Svelte 5 Runes State for Konoha 10-Theme System\n\nexport const THEMES = [\n { id: 'chidori', name: 'Chidori Azure Light', description: 'Crackling sky-blue precision with lightning focus', color: '#0284c7', accent: '#06b6d4', gradient: ['#0284c7', '#06b6d4', '#38bdf8', '#818cf8'], glow: 'rgba(2,132,199,0.12)', bg: '#f0f9ff', surface: '#ffffff', border: '#bae6fd', light: true },\n { id: 'byakugan', name: 'Byakugan Pure Light', description: 'Violet focus with 360° clarity', color: '#7c3aed', accent: '#6366f1', gradient: ['#7c3aed', '#6366f1', '#8b5cf6', '#a855f7'], glow: 'rgba(124,58,237,0.12)', bg: '#f8fafc', surface: '#ffffff', border: '#e2e8f0', light: true },\n { id: 'konoha-leaf', name: 'Konoha Emerald Light', description: 'Hidden leaf green serenity', color: '#059669', accent: '#14b8a6', gradient: ['#059669', '#10b981', '#14b8a6', '#34d399'], glow: 'rgba(5,150,105,0.12)', bg: '#f0fdf4', surface: '#ffffff', border: '#bbf7d0', light: true },\n { id: 'rasengan', name: 'Rasengan Breeze Light', description: 'Spiralling royal-blue energy', color: '#2563eb', accent: '#3b82f6', gradient: ['#1d4ed8', '#2563eb', '#3b82f6', '#60a5fa'], glow: 'rgba(37,99,235,0.12)', bg: '#eff6ff', surface: '#ffffff', border: '#bfdbfe', light: true },\n { id: 'sharingan', name: 'Sharingan Rose Light', description: 'Crimson perception, softly lit', color: '#dc2626', accent: '#f43f5e', gradient: ['#be123c', '#dc2626', '#e11d48', '#f43f5e'], glow: 'rgba(220,38,38,0.12)', bg: '#fff1f2', surface: '#ffffff', border: '#fecdd3', light: true },\n { id: 'hokage-gold', name: 'Hokage Amber Light', description: 'Warm gold of the village leader', color: '#d97706', accent: '#f59e0b', gradient: ['#b45309', '#d97706', '#f59e0b', '#fbbf24'], glow: 'rgba(217,119,6,0.12)', bg: '#fffbeb', surface: '#ffffff', border: '#fde68a', light: true },\n { id: 'anbu-shadow', name: 'Anbu Platinum Light', description: 'Cool steel-grey operative tone', color: '#475569', accent: '#64748b', gradient: ['#334155', '#475569', '#64748b', '#94a3b8'], glow: 'rgba(71,85,105,0.12)', bg: '#f8fafc', surface: '#ffffff', border: '#cbd5e1', light: true },\n { id: 'sage-mode', name: 'Sage Coral Light', description: 'Natural orange toad-sage warmth', color: '#ea580c', accent: '#f97316', gradient: ['#c2410c', '#ea580c', '#f97316', '#fb923c'], glow: 'rgba(234,88,12,0.12)', bg: '#fff7ed', surface: '#ffffff', border: '#fed7aa', light: true },\n { id: 'sound-village', name: 'Sound Orchid Light', description: 'Orchid purple with sonic depth', color: '#9333ea', accent: '#a855f7', gradient: ['#7e22ce', '#9333ea', '#a855f7', '#c084fc'], glow: 'rgba(147,51,234,0.12)', bg: '#faf5ff', surface: '#ffffff', border: '#e9d5ff', light: true },\n { id: 'akatsuki', name: 'Akatsuki Dusk Plum Light', description: 'Mysterious plum dusk with rogue ninja cloak aura', color: '#86198f', accent: '#c026d3', gradient: ['#581c87', '#701a75', '#86198f', '#c026d3'], glow: 'rgba(134,25,143,0.12)', bg: '#fdf4ff', surface: '#ffffff', border: '#f5d0fe', light: true }\n];\n\nexport function createThemeState() {\n let currentTheme = $state('chidori');\n let isModalOpen = $state(false);\n\n function applyTheme(themeId) {\n currentTheme = themeId;\n const found = THEMES.find(t => t.id === themeId) || THEMES[0];\n if (typeof document !== 'undefined') {\n document.documentElement.setAttribute('data-theme', themeId);\n document.documentElement.style.setProperty('--color-primary', found.color);\n document.documentElement.style.setProperty('--color-accent', found.accent);\n document.documentElement.style.setProperty('--color-primary-glow', found.glow);\n document.documentElement.style.setProperty('--color-bg', found.bg);\n document.documentElement.style.setProperty('--color-surface', found.surface);\n document.documentElement.style.setProperty('--color-border', found.border);\n document.documentElement.classList.add('theme-light');\n document.documentElement.classList.remove('theme-dark');\n document.documentElement.style.setProperty('--color-text', '#0f172a');\n document.documentElement.style.setProperty('--color-text-muted', '#334155');\n document.documentElement.style.setProperty('--color-card-bg', '#ffffff');\n document.documentElement.style.setProperty('--color-card-border', found.border);\n if (found.gradient && found.gradient.length >= 4) {\n document.documentElement.style.setProperty('--theme-grad-1', found.gradient[0]);\n document.documentElement.style.setProperty('--theme-grad-2', found.gradient[1]);\n document.documentElement.style.setProperty('--theme-grad-3', found.gradient[2]);\n document.documentElement.style.setProperty('--theme-grad-4', found.gradient[3]);\n document.documentElement.style.setProperty('--theme-4gradient', `linear-gradient(135deg, ${found.gradient[0]} 0%, ${found.gradient[1]} 33%, ${found.gradient[2]} 66%, ${found.gradient[3]} 100%)`);\n document.documentElement.style.setProperty('--theme-4gradient-bar', `linear-gradient(90deg, ${found.gradient[0]}, ${found.gradient[1]}, ${found.gradient[2]}, ${found.gradient[3]})`);\n document.documentElement.style.setProperty('--theme-4gradient-subtle', `linear-gradient(135deg, ${found.gradient[0]}22 0%, ${found.gradient[1]}22 33%, ${found.gradient[2]}22 66%, ${found.gradient[3]}22 100%)`);\n }\n try {\n localStorage.setItem('konoha-theme', themeId);\n } catch (_) {\n // Ignore localStorage errors in SSR or restricted environments\n }\n }\n }\n\n function init() {\n if (typeof window !== 'undefined') {\n let saved = 'chidori';\n try {\n saved = localStorage.getItem('konoha-theme') || 'chidori';\n } catch (_) {\n // Fallback to default theme if storage is unavailable\n }\n applyTheme(saved);\n }\n }\n\n return {\n get currentTheme() { return currentTheme; },\n get isModalOpen() { return isModalOpen; },\n set isModalOpen(val) { isModalOpen = val; },\n applyTheme,\n init,\n themes: THEMES\n };\n}\n\nexport const themeState = createThemeState();\n","<script>\n import { themeState, THEMES } from '../lib/state/themeState.svelte.js';\n import { useScrollLock } from '#lib/scrollLock.svelte.js';\n\n let isModalOpen = $state(false);\n\n useScrollLock(() => isModalOpen);\n\n function selectTheme(id) {\n themeState.applyTheme(id);\n isModalOpen = false;\n }\n\n function toggleModal() {\n isModalOpen = !isModalOpen;\n }\n\n function handleModalKeydown(e) {\n if (e.key === 'Escape' && isModalOpen) isModalOpen = false;\n }\n</script>\n\n<svelte:window onkeydown={handleModalKeydown} />\n\n<!-- Floating Bottom-Left Theme Switcher Button (FAB) -->\n<div class=\"fixed bottom-20 left-5 lg:bottom-6 lg:left-6 z-50\">\n <button\n type=\"button\"\n onclick={toggleModal}\n class=\"w-11 h-11 rounded-full border shadow-2xl flex items-center justify-center transition-all duration-200 hover:scale-110 active:scale-95 cursor-pointer group\"\n style=\"background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text); box-shadow: var(--shadow-3d);\"\n title=\"Switch Theme ({themeState.currentTheme.replace('-', ' ')})\"\n aria-label=\"Toggle Theme Selection Modal\"\n >\n <span\n class=\"w-4.5 h-4.5 rounded-full shadow-md transition-transform duration-200 group-hover:scale-110\"\n style=\"background: linear-gradient(135deg, var(--color-primary, #7c3aed), var(--color-accent, #6366f1));\"\n ></span>\n </button>\n</div>\n\n<!-- Shared Full Popup Modal (Fixed Center Overlay for Both Desktop & Mobile) -->\n{#if isModalOpen}\n <!-- svelte-ignore a11y_click_events_have_key_events -->\n <!-- svelte-ignore a11y_no_static_element_interactions -->\n <div\n class=\"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/35 backdrop-blur-sm animate-in fade-in duration-150\"\n onclick={() => isModalOpen = false}\n >\n <!-- Centered Modal Popup Dialog -->\n <div\n class=\"modal-card w-full max-w-lg p-6 rounded-[5px] border shadow-2xl space-y-4 animate-in zoom-in-95 duration-150 glass-frost-strong\"\n style=\"background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text); box-shadow: var(--shadow-3d);\"\n onclick={(e) => e.stopPropagation()}\n >\n <!-- Header -->\n <div class=\"flex items-center justify-between pb-3 border-b\" style=\"border-color: var(--color-border);\">\n <div class=\"flex items-center gap-2.5\">\n <div class=\"w-8 h-8 rounded-[5px] flex items-center justify-center border\" style=\"background: var(--theme-4gradient, linear-gradient(135deg, var(--color-primary), var(--color-accent))); border-color: var(--color-primary); color: #ffffff;\">\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01\" />\n </svg>\n </div>\n <div>\n <h3 class=\"text-sm font-bold tracking-tight\" style=\"color: var(--color-text);\">Konoha 4-Gradient Theme Palette</h3>\n <p class=\"text-[11px]\" style=\"color: var(--color-text-muted);\">10 Light-Mode calibrated palettes with 4-stop vibrant gradients</p>\n </div>\n </div>\n <button\n type=\"button\"\n onclick={() => isModalOpen = false}\n class=\"w-7 h-7 rounded-[5px] flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105\"\n style=\"background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);\"\n >\n ✕\n </button>\n </div>\n\n <!-- 10 Themes Grid (2 Columns) -->\n <div class=\"grid grid-cols-1 sm:grid-cols-2 gap-2.5 max-h-[60vh] overflow-y-auto pr-1\">\n {#each THEMES as t}\n {@const isCurrent = themeState.currentTheme === t.id}\n {@const gradBg = t.gradient ? `linear-gradient(135deg, ${t.gradient[0]} 0%, ${t.gradient[1]} 33%, ${t.gradient[2]} 66%, ${t.gradient[3]} 100%)` : `linear-gradient(135deg, ${t.color}, ${t.accent})`}\n <button\n type=\"button\"\n class=\"w-full flex items-center gap-3 p-3 rounded-[5px] border text-left transition-all duration-150 hover:scale-[1.02] cursor-pointer\"\n style=\"{isCurrent\n ? 'border-color: var(--color-primary); background-color: var(--color-primary-glow); box-shadow: 0 0 0 1.5px var(--color-primary);'\n : 'border-color: var(--color-border); background-color: var(--color-surface);'}\"\n onclick={() => selectTheme(t.id)}\n >\n <div class=\"relative shrink-0\">\n <span class=\"w-8 h-8 rounded-[5px] flex items-center justify-center shadow-md border border-black/10\" style=\"background: {gradBg};\">\n {#if isCurrent}\n <span class=\"w-2.5 h-2.5 rounded-full bg-white shadow-sm ring-1 ring-black/20\"></span>\n {/if}\n </span>\n </div>\n <div class=\"flex flex-col min-w-0 flex-1\">\n <div class=\"flex items-center justify-between gap-1\">\n <span class=\"text-xs font-black truncate\" style=\"color: var(--color-text);\">{t.name}</span>\n {#if isCurrent}\n <span class=\"text-[10px] font-bold px-1.5 py-0.5 rounded-[5px] border text-sky-700 dark:text-sky-300 border-sky-500/30 bg-sky-500/10 shrink-0\">Active</span>\n {/if}\n </div>\n <span class=\"text-[10px] truncate\" style=\"color: var(--color-text-muted);\">{t.description}</span>\n {#if t.gradient}\n <div class=\"flex items-center gap-1 pt-1.5\">\n {#each t.gradient as colorHex}\n <span class=\"w-2.5 h-2 rounded-[2px] shadow-xs\" style=\"background-color: {colorHex};\"></span>\n {/each}\n </div>\n {/if}\n </div>\n </button>\n {/each}\n </div>\n </div>\n </div>\n{/if}\n","<script>\n import { sweetAlert } from \"#lib/sweetAlert.svelte.js\";\n import { useScrollLock } from \"#lib/scrollLock.svelte.js\";\n\n useScrollLock(() => sweetAlert.isOpen);\n</script>\n\n<svelte:window onkeydown={(e) => { if (e.key === 'Escape' && sweetAlert.isOpen) sweetAlert.handleCancel(); }} />\n\n{#if sweetAlert.isOpen}\n <!-- svelte-ignore a11y_click_events_have_key_events -->\n <!-- svelte-ignore a11y_no_static_element_interactions -->\n <div\n class=\"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-slate-900/40 backdrop-blur-md animate-in fade-in duration-200\"\n onclick={(e) => { if (e.target === e.currentTarget) sweetAlert.handleCancel(); }}\n >\n <!-- 3D Perspective Modal Card -->\n <div\n class=\"modal-card relative w-full max-w-lg rounded-[5px] p-6 sm:p-8 border shadow-2xl transition-all duration-300 transform scale-100 overflow-hidden\"\n style=\"background: var(--glass-card); border-color: var(--color-border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);\"\n role=\"alertdialog\"\n aria-modal=\"true\"\n >\n <button\n type=\"button\"\n onclick={sweetAlert.handleCancel}\n class=\"absolute top-3 right-3 p-1.5 rounded-full text-slate-400 hover:text-slate-700 hover:bg-slate-100 transition-colors cursor-pointer z-10\"\n aria-label=\"Close dialog\"\n >\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </button>\n\n <!-- 3D Animated Icon Header -->\n <div class=\"flex justify-center mb-5\">\n {#if sweetAlert.icon === \"success\"}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-emerald-200 bg-emerald-50 text-emerald-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M5 13l4 4L19 7\" />\n </svg>\n </div>\n {:else if sweetAlert.icon === \"error\"}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-rose-200 bg-rose-50 text-rose-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </div>\n {:else if sweetAlert.icon === \"warning\"}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-amber-200 bg-amber-50 text-amber-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z\" />\n </svg>\n </div>\n {:else}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-sky-200 bg-sky-50 text-sky-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z\" />\n </svg>\n </div>\n {/if}\n </div>\n\n <!-- Content Area with High Contrast Typography -->\n <div class=\"text-center space-y-3 mb-6 w-full max-w-full overflow-hidden px-1\">\n <h3 class=\"text-xl font-extrabold text-slate-900 tracking-tight break-words [overflow-wrap:anywhere]\">\n {sweetAlert.title}\n </h3>\n {#if sweetAlert.text}\n <div class=\"text-sm font-medium text-slate-700 leading-relaxed max-w-full mx-auto space-y-2.5\">\n {#each sweetAlert.text.split('\\n') as line}\n {#if line.trim().startsWith('/') || line.trim().startsWith('C:\\\\') || line.trim().startsWith('~')}\n <div class=\"font-mono text-xs p-2.5 rounded-[5px] bg-slate-900/5 text-slate-800 border border-slate-200/80 break-all select-all text-left shadow-inner max-h-32 overflow-y-auto\">\n {line.trim()}\n </div>\n {:else if line.trim()}\n <p class=\"break-words [overflow-wrap:anywhere] whitespace-pre-line\">\n {line}\n </p>\n {/if}\n {/each}\n </div>\n {/if}\n </div>\n\n <!-- 3D Actions with Tactile Depth -->\n <div class=\"flex items-center justify-center gap-3\">\n {#if sweetAlert.showCancel}\n <button\n type=\"button\"\n onclick={sweetAlert.handleCancel}\n class=\"btn-3d px-5 py-2.5 rounded-[5px] text-xs font-bold text-slate-700 bg-slate-100 hover:bg-slate-200 border border-slate-300 transition-all cursor-pointer\"\n >\n {sweetAlert.cancelText}\n </button>\n {/if}\n <button\n type=\"button\"\n onclick={sweetAlert.handleConfirm}\n class=\"btn-3d px-6 py-2.5 rounded-[5px] text-xs font-bold text-white transition-all cursor-pointer shadow-lg\"\n style=\"background-color: var(--color-primary, #7c3aed);\"\n >\n {sweetAlert.confirmText}\n </button>\n </div>\n </div>\n </div>\n{/if}\n","<script>\n import '../app.css';\n import { page } from '$app/state';\n import { onMount } from 'svelte';\n import { apiRequest, initToken } from '#lib/api.js';\n import { uiState } from '#lib/state/uiState.svelte.js';\n import { themeState } from '#lib/state/themeState.svelte.js';\n import ThemeSwitcher from '../components/ThemeSwitcher.svelte';\n import SweetAlertModal from '../components/SweetAlertModal.svelte';\n\n let { children } = $props();\n\n let health = $state({ status: 'checking', port: 1404, version: '2.1.0' });\n\n const navSections = [\n {\n title: 'Overview',\n items: [\n { id: 'dashboard', path: '/dashboard', label: 'Dashboard', iconSvg: 'M3 3v7h7M21 21v-7h-7M3 10a9 9 0 0115-5.7L21 8M21 14a9 9 0 01-15 5.7L3 16' }\n ]\n },\n {\n title: 'Clients & Finance',\n items: [\n { id: 'clients', path: '/clients', label: 'Clients', iconSvg: 'M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z' },\n { id: 'savings', path: '/savings', label: 'Savings', iconSvg: 'M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z' },\n { id: 'bridges', path: '/bridges', label: 'Bridges', iconSvg: 'M8 9l4-4 4 4m0 6l-4 4-4-4' }\n ]\n },\n {\n title: 'Tools & Integrations',\n items: [\n { id: 'search', path: '/search', label: 'Web Search', iconSvg: 'M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z', badge: 'SearXNG' },\n { id: 'semble', path: '/semble', label: 'Semble MCP', iconSvg: 'M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4', badge: '98%' },\n { id: 'detector', path: '/detector', label: 'AI Detector', iconSvg: 'M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c.5.633 1.2 1 2 1s1.5-.367 2-1m2-3a2 2 0 100-4 2 2 0 000 4z', badge: 'Web & Docs' }\n ]\n },\n {\n title: 'Configuration',\n items: [\n { id: 'persona', path: '/persona', label: 'Persona', iconSvg: 'M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z' },\n { id: 'context', path: '/context', label: 'Context', iconSvg: 'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10' },\n { id: 'agents', path: '/agents', label: 'Agents', iconSvg: 'M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z' },\n { id: 'skills', path: '/skills', label: 'Skills', iconSvg: 'M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253' }\n ]\n },\n {\n title: 'Operations',\n items: [\n { id: 'tasks', path: '/tasks', label: 'SDLC Tasks', iconSvg: 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4' },\n { id: 'doctor', path: '/doctor', label: 'Doctor', iconSvg: 'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z' }\n ]\n },\n {\n title: 'Resources',\n items: [\n { id: 'docs', path: '/docs', label: 'Documentation', iconSvg: 'M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253' }\n ]\n }\n ];\n\n const allNavItems = navSections.flatMap(s => s.items);\n\n let isSidebarOpen = $state(true);\n let openSections = $state(new Set(navSections.map(s => s.title)));\n\n function toggleSection(title) {\n if (openSections.has(title)) {\n openSections.delete(title);\n } else {\n openSections.add(title);\n }\n openSections = new Set(openSections);\n }\n\n function toggleSidebar() {\n isSidebarOpen = !isSidebarOpen;\n }\n\n $effect(() => {\n const activeSection = navSections.find(s =>\n s.items.some(it => page.url.pathname === it.path || (it.path === '/dashboard' && page.url.pathname === '/'))\n );\n if (activeSection && !openSections.has(activeSection.title)) {\n openSections.add(activeSection.title);\n openSections = new Set(openSections);\n }\n });\n\n async function checkHealth() {\n try {\n const data = await apiRequest('/api/v1/health');\n health = data;\n uiState.isConnected = true;\n } catch (_) {\n uiState.isConnected = false;\n }\n }\n\n onMount(() => {\n themeState.init();\n initToken();\n checkHealth();\n const interval = setInterval(checkHealth, 10000);\n\n let eventSource;\n try {\n eventSource = new EventSource('/api/v1/events');\n eventSource.onopen = () => { uiState.isConnected = true; };\n eventSource.onerror = () => { uiState.isConnected = false; };\n eventSource.addEventListener('bridge_status', (e) => {\n try {\n const payload = JSON.parse(e.data);\n uiState.addNotification(`Bridge ${payload.name || ''} updated`, 'info');\n } catch (_) {}\n });\n } catch (_) {}\n\n return () => {\n clearInterval(interval);\n if (eventSource) eventSource.close();\n };\n });\n</script>\n\n<div class=\"flex h-screen overflow-hidden font-sans transition-colors duration-200\" style=\"background-color: var(--color-bg); color: var(--color-text);\">\n <!-- Desktop Fixed Left Sidebar (Collapsible for Maximum Center Space) -->\n <aside\n class=\"glass-frost hidden lg:flex border-r flex-col shrink-0 transition-all duration-300 ease-in-out overflow-hidden {isSidebarOpen ? 'w-64' : 'w-0 border-r-0 opacity-0 pointer-events-none'}\"\n style=\"background: var(--glass-sidebar), var(--glass-tint); border-color: var(--color-border); color: var(--color-text);\"\n >\n <div class=\"flex-1 overflow-y-auto scrollbar-thin w-64\">\n <!-- Brand Header (Far-Left Logo + Sidebar Collapse Button) -->\n <div class=\"p-4 border-b flex items-center justify-between sticky top-0 z-10 glass-frost\" style=\"border-color: var(--color-border); background: var(--glass-sidebar), var(--glass-tint);\">\n <div class=\"flex items-center gap-3 min-w-0\">\n <div class=\"w-9 h-9 rounded-[5px] overflow-hidden flex items-center justify-center shadow-md border bg-white shrink-0\" style=\"border-color: var(--color-primary);\">\n <img src=\"/fox_kyubi_192.png\" alt=\"Konoha Kyubi logo\" class=\"w-full h-full object-cover\" width=\"36\" height=\"36\" loading=\"eager\" />\n </div>\n <div class=\"min-w-0\">\n <h1 class=\"text-sm font-extrabold tracking-tight flex items-center gap-1.5\" style=\"color: var(--color-text);\">\n Konoha <span class=\"text-[9px] px-1.5 py-0.5 rounded-[5px] font-mono border\" style=\"color: var(--color-primary); background-color: var(--color-primary-glow); border-color: var(--color-primary);\">v{health.version || '2.0.0'}</span>\n </h1>\n <p class=\"text-[10px] font-medium truncate\" style=\"color: var(--color-text-muted);\">Ninja Agent Village</p>\n </div>\n </div>\n <button\n type=\"button\"\n onclick={toggleSidebar}\n class=\"w-7 h-7 rounded-[5px] border flex items-center justify-center text-xs transition-colors hover:bg-slate-200/50 dark:hover:bg-slate-800/50 cursor-pointer shrink-0\"\n style=\"border-color: var(--color-border); color: var(--color-text-muted);\"\n title=\"Collapse sidebar to give more space in center\"\n aria-label=\"Collapse sidebar\"\n >\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M11 19l-7-7 7-7m8 14l-7-7 7-7\" />\n </svg>\n </button>\n </div>\n\n <!-- Grouped Navigation with Clickable Sub-menu Accordions -->\n <nav class=\"p-2 space-y-1.5\">\n {#each navSections as section}\n {@const isExpanded = openSections.has(section.title)}\n {@const hasActiveChild = section.items.some(it => page.url.pathname === it.path || (it.path === '/dashboard' && page.url.pathname === '/'))}\n <div class=\"rounded-[5px] overflow-hidden border border-transparent transition-colors {hasActiveChild ? 'bg-sky-500/5 dark:bg-sky-500/10 border-sky-500/20' : ''}\">\n <button\n type=\"button\"\n onclick={() => toggleSection(section.title)}\n class=\"w-full flex items-center justify-between px-3 py-1.5 text-[11px] font-bold uppercase tracking-wider select-none hover:bg-black/5 dark:hover:bg-white/5 rounded-[5px] transition-colors cursor-pointer\"\n style=\"color: {hasActiveChild ? 'var(--color-primary)' : 'var(--color-text-muted)'};\"\n aria-expanded={isExpanded}\n >\n <div class=\"flex items-center gap-1.5\">\n <span class=\"w-1.5 h-1.5 rounded-full {hasActiveChild ? 'bg-sky-500' : 'bg-slate-400/40'}\"></span>\n <span>{section.title}</span>\n </div>\n <svg class=\"w-3.5 h-3.5 transition-transform duration-200 {isExpanded ? 'rotate-90' : 'rotate-0'}\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 5l7 7-7 7\" />\n </svg>\n </button>\n\n {#if isExpanded}\n <div class=\"space-y-0.5 pt-0.5 pb-1 pl-1 transition-all duration-200\">\n {#each section.items as item}\n {@const isActive = page.url.pathname === item.path || (item.path === '/dashboard' && page.url.pathname === '/')}\n <a\n href={item.path}\n class=\"nav-depth flex items-center justify-between px-2.5 py-1.5 rounded-[5px] text-xs font-semibold transition-all duration-150\"\n style=\"{isActive ? 'color: var(--color-primary); background-color: var(--color-primary-glow); border: 1.5px solid var(--color-primary); box-shadow: 0 0 12px var(--color-primary-glow);' : 'color: var(--color-text-muted);'}\"\n >\n <div class=\"flex items-center gap-2 min-w-0\">\n <svg class=\"w-3.5 h-3.5 shrink-0\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d={item.iconSvg} />\n </svg>\n <span class=\"truncate\">{item.label}</span>\n </div>\n {#if item.badge}\n <span class=\"px-1.5 py-0.5 rounded-[5px] text-[9px] font-mono bg-emerald-500/20 text-emerald-600 dark:text-emerald-400 border border-emerald-500/30 shrink-0\">{item.badge}</span>\n {/if}\n </a>\n {/each}\n </div>\n {/if}\n </div>\n {/each}\n </nav>\n </div>\n\n <!-- System Status Footer: Live MCP Gateway -->\n <div class=\"p-4 border-t shrink-0 transition-colors duration-200 w-64\" style=\"border-color: var(--color-border); background-color: var(--color-bg);\">\n <div class=\"flex items-center justify-between text-xs mb-2\" style=\"color: var(--color-text-muted);\">\n <span class=\"flex items-center gap-2\">\n <span class=\"w-2 h-2 rounded-full {uiState.isConnected ? 'bg-emerald-400 shadow-[0_0_8px_rgba(52,211,153,0.8)]' : 'bg-rose-500'}\"></span>\n <span class=\"text-xs font-medium\">{uiState.isConnected ? 'Live MCP Gateway' : 'Disconnected'}</span>\n </span>\n <span class=\"font-mono text-[11px]\" style=\"color: var(--color-text-muted);\">:{health.port || 1404}</span>\n </div>\n <div class=\"text-[10px] flex justify-between pt-1\" style=\"color: var(--color-text-muted);\">\n <span>SQLite FTS5 + Semble</span>\n <span>Localhost</span>\n </div>\n </div>\n </aside>\n\n <!-- Main Content Stage (Expands to Full Width When Sidebar is Collapsed) -->\n <main class=\"flex-1 flex flex-col overflow-hidden pb-16 lg:pb-0 transition-all duration-300 ease-in-out\" style=\"background-color: var(--color-bg); color: var(--color-text);\">\n <!-- Top 4-Gradient Vibrant Accent Stripe -->\n <div class=\"h-1 w-full shrink-0\" style=\"background: var(--theme-4gradient-bar);\"></div>\n\n <!-- Top Header: Brand Logo on Far LEFT + Sidebar Toggle (Mandatory Invariant) -->\n <header class=\"glass-frost h-14 border-b px-4 lg:px-6 flex items-center justify-between shrink-0 transition-colors duration-200\" style=\"background: var(--glass-header), var(--glass-tint); border-color: var(--color-border);\">\n <!-- Far-Left Logo & Title + Sidebar Open/Close Toggle Button -->\n <div class=\"flex items-center gap-3\">\n <!-- Desktop Sidebar Toggle Button -->\n <button\n type=\"button\"\n onclick={toggleSidebar}\n class=\"hidden lg:flex w-8 h-8 rounded-[5px] border items-center justify-center text-xs transition-all hover:scale-105 cursor-pointer shrink-0\"\n style=\"border-color: var(--color-border); background-color: var(--color-surface); color: var(--color-text);\"\n title={isSidebarOpen ? \"Close sidebar to give more space in center\" : \"Open sidebar\"}\n aria-label=\"Toggle sidebar\"\n >\n <svg class=\"w-4 h-4 transition-transform duration-200 {isSidebarOpen ? '' : 'rotate-180'}\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 6h16M4 12h16M4 18h7\" />\n </svg>\n </button>\n\n <div class=\"lg:hidden flex items-center gap-2\">\n <img src=\"/fox_kyubi_64.png\" alt=\"Konoha\" class=\"w-7 h-7 rounded-[5px] border object-cover bg-white\" style=\"border-color: var(--color-primary);\" width=\"28\" height=\"28\" loading=\"eager\" />\n <span class=\"text-sm font-bold tracking-tight\" style=\"color: var(--color-text);\">Konoha</span>\n </div>\n <div class=\"hidden sm:flex items-center gap-2 text-xs\">\n <span class=\"uppercase tracking-widest text-[10px] font-bold\" style=\"color: var(--color-text-muted);\">Dashboard</span>\n <span style=\"color: var(--color-border);\">/</span>\n <span class=\"font-semibold capitalize\" style=\"color: var(--color-primary);\">{page.url.pathname.replace('/', '') || 'dashboard'}</span>\n </div>\n </div>\n\n <!-- Action Buttons & Status -->\n <div class=\"flex items-center gap-3\">\n <div class=\"hidden sm:flex items-center gap-2 px-3 py-1 rounded-[5px] border text-[11px] font-mono\" style=\"background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text);\">\n <span class=\"w-1.5 h-1.5 rounded-full bg-emerald-400\"></span>\n <span>127.0.0.1:{health.port || 1404}</span>\n </div>\n <span class=\"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-[5px] text-[11px] font-semibold bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20\">\n SSE Active\n </span>\n </div>\n </header>\n\n <!-- Page Body (extra bottom padding clears the mobile dock + theme FAB) -->\n <div class=\"flex-1 overflow-y-auto p-6 pb-28 lg:p-8 lg:pb-8 transition-colors duration-200\" style=\"background-color: var(--color-bg);\">\n {@render children()}\n </div>\n </main>\n\n <!-- Mobile Navigation Dock (Mandatory Invariant — Zero Hamburger Menu in Header) -->\n <nav class=\"glass-frost lg:hidden fixed bottom-0 inset-x-0 z-40 border-t flex flex-nowrap items-center gap-1 overflow-x-auto scrollbar-none py-2 px-2 shadow-2xl transition-colors duration-200\" style=\"background: var(--glass-dock), var(--glass-tint); border-color: var(--color-border); padding-bottom: max(0.5rem, env(safe-area-inset-bottom));\">\n {#each allNavItems as item}\n {@const isActive = page.url.pathname === item.path || (item.path === '/dashboard' && page.url.pathname === '/')}\n <a\n href={item.path}\n class=\"nav-depth flex flex-col items-center gap-1 py-1 px-2.5 rounded-[5px] text-[10px] font-semibold transition-all shrink-0\"\n style=\"{isActive ? 'color: var(--color-primary); background-color: var(--color-primary-glow);' : 'color: var(--color-text-muted);'}\"\n >\n <svg class=\"w-4 h-4 shrink-0\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d={item.iconSvg} />\n </svg>\n <span class=\"whitespace-nowrap\">{item.label}</span>\n </a>\n {/each}\n </nav>\n\n <!-- Floating Theme Switcher Button -->\n <ThemeSwitcher />\n\n <!-- Global 3D SweetAlert Modal -->\n <SweetAlertModal />\n\n <!-- Global Notification Toasts (lifted above the mobile dock on small screens) -->\n {#if uiState.notifications.length > 0}\n <div class=\"fixed bottom-20 right-5 z-[90] lg:bottom-6 lg:right-6 space-y-2 max-w-[calc(100vw-2.5rem)]\">\n {#each uiState.notifications as n (n.id)}\n <div class=\"px-4 py-3 rounded-[5px] text-xs font-semibold shadow-2xl border backd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W,EAAA,0VAAAA,YAQ7G,OAAO,QAAQ,IAAI,EAAA,gXAAA;EAU/B,SAAQ,UAAA;;EAMZ,MAAA,eAAAC,kBAAA,WAAW;;GAAI,IAAA,OAAI,aAAA;GAChB,MAAA,WAAW,KAAK,IAAI,aAAa,KAAK,QAAS,KAAK,SAAS,gBAAgB,KAAK,IAAI,aAAa;GAEnG,WAAA,KAAA,KAAAE,KAAA,QAAA,KAAK,IAAI,EAAA,iIAAAD,WAEP,WAAW,8EAA8E,iCAAiC,EAAA,4JAAAC,KAAA,KAGvD,KAAK,OAAO,EAAA,iDAAAH,YAEtD,KAAK,KAAK,EAAA,YAAA;;;;;;;EAY5C,IAAA,QAAQ,cAAc,SAAS,GAAC;;GAE1B,MAAA,eAAAC,kBAAA,QAAQ,aAAa;;IAAI,IAAA,IAAC,aAAA;IAGtB,WAAA,KAAA,gPAAAD,YAAA,EAAE,IAAI,EAAA,cAAA;;;;;CAtLf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.js","names":[],"sources":["../../../../src/routes/+page.js"],"sourcesContent":["// The dashboard is the landing screen of the console.\nimport { redirect } from '@sveltejs/kit';\n\nexport function load() {\n redirect(307, '/dashboard');\n}\n"],"mappings":";;AAGA,SAAgB,OAAO;CACrB,SAAS,KAAK,YAAY;AAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte.js","names":[],"sources":["../../../../src/routes/+page.svelte"],"sourcesContent":["<script>\n // Root route redirects to /dashboard via +page.js\n</script>\n"],"mappings":";;AAAA,SAAA,MAAA,YAAA,CAEQ"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
1
|
+
import { d as escape_html } from "../../../chunks/server2.js";
|
|
2
|
+
import "../../../chunks/index-server.js";
|
|
3
|
+
import "../../../chunks/api.js";
|
|
4
|
+
import "../../../chunks/sweetAlert.svelte.js";
|
|
5
|
+
//#region src/components/Agents.svelte
|
|
5
6
|
function Agents($$renderer, $$props) {
|
|
6
7
|
$$renderer.component(($$renderer) => {
|
|
7
8
|
$$renderer.push(`<div class="space-y-8 max-w-7xl mx-auto"><div class="rise-3d relative overflow-hidden rounded-3xl p-8 border shadow-xl transition-all duration-300" style="background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 100%), var(--color-primary-glow); border-color: var(--color-border); box-shadow: var(--shadow-3d);"><div class="relative z-10 flex flex-col md:flex-row md:items-center justify-between gap-6"><div class="space-y-2"><div class="inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs font-bold border" style="background-color: var(--color-primary-glow); color: var(--color-primary); border-color: var(--color-primary);"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg> Official Subagent Roster</div> <h2 class="text-2xl lg:text-3xl font-black text-slate-900 tracking-tight">Ninja Subagents (7 Ranks)</h2> <p class="text-sm font-semibold text-slate-700 max-w-2xl leading-relaxed">Autonomous specialized agents orchestrating tasks, audits, research, and frontend builds. Each rank embeds specialized SQLite skill references.</p></div> <div class="flex flex-wrap items-center gap-3 shrink-0"><div class="glass-card-3d px-4 py-3 rounded-2xl border text-center"><div class="text-xs font-bold text-slate-600">Total Ranks</div> <div class="text-xl font-black text-emerald-600">7 Active</div></div> <div class="glass-card-3d px-4 py-3 rounded-2xl border text-center"><div class="text-xs font-bold text-slate-600">Skills Bound</div> <div class="text-xl font-black text-purple-600">${escape_html(0)} Indexed</div></div></div></div></div> `);
|
|
@@ -11,10 +12,12 @@ function Agents($$renderer, $$props) {
|
|
|
11
12
|
$$renderer.push(`<!--]--></div>`);
|
|
12
13
|
});
|
|
13
14
|
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/routes/agents/+page.svelte
|
|
14
17
|
function _page($$renderer) {
|
|
15
18
|
Agents($$renderer, {});
|
|
16
19
|
}
|
|
17
20
|
//#endregion
|
|
18
21
|
export { _page as default };
|
|
19
22
|
|
|
20
|
-
//# sourceMappingURL=_page.svelte
|
|
23
|
+
//# sourceMappingURL=_page.svelte.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte.js","names":["$.escape","$.ensure_array_like","$.attr","$.attr_class"],"sources":["../../../../../src/components/Agents.svelte","../../../../../src/routes/agents/+page.svelte"],"sourcesContent":["<script>\n import { onMount } from \"svelte\";\n import { api } from \"#lib/api.js\";\n import { sweetAlert } from \"#lib/sweetAlert.svelte.js\";\n\n let agents = $state([]);\n let allSkills = $state([]);\n let bridgeModels = $state([]);\n let loading = $state(true);\n let error = $state(\"\");\n\n const rankIcons = {\n sannin: \"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z\",\n kage: \"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z\",\n jonin: \"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01\",\n anbu: \"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z\",\n chunin: \"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9\",\n genin: \"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z\",\n \"tokubetsu-jonin\": \"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z\"\n };\n\n const OFFICIAL_SKILLS = [\n \"sannin-skill\",\n \"genin-skill\",\n \"kage-skill\",\n \"chunin-skill\",\n \"jonin-skill\",\n \"anbu-skill\",\n \"tokubetsu-jonin-skill\",\n \"konoha\",\n \"antislop\",\n \"i-have-adhd\"\n ];\n\n function getSkillsForAgent(agent) {\n const activeList = agent.skills || [];\n const activeSet = new Set(activeList);\n const result = [...activeList];\n OFFICIAL_SKILLS.forEach(s => {\n if (!activeSet.has(s)) {\n result.push(s);\n }\n });\n return result;\n }\n\n async function loadData() {\n loading = true;\n error = \"\";\n try {\n agents = await api.get(\"/api/v1/agents\");\n const skills = await api.get(\"/api/v1/skills?limit=1000\");\n const set = new Set(OFFICIAL_SKILLS);\n (skills || []).forEach(s => {\n if (s.name) set.add(s.name);\n if (s.skill_name) set.add(s.skill_name);\n });\n (agents || []).forEach(a => {\n (a.skills || []).forEach(s => set.add(s));\n });\n allSkills = Array.from(set).sort();\n try {\n const modelsRes = await api.get(\"/api/v1/bridges/models\");\n bridgeModels = modelsRes.models || [];\n } catch (_) {\n bridgeModels = [];\n }\n } catch (err) {\n error = err.message;\n } finally {\n loading = false;\n }\n }\n\n async function toggleSkill(agent, skillName, currentChecked) {\n const targetState = !currentChecked;\n try {\n await api.patch(\n \"/api/v1/agents/\" + encodeURIComponent(agent.name) + \"/skills/\" + encodeURIComponent(skillName),\n { embedded: targetState }\n );\n if (targetState) {\n if (!agent.skills) agent.skills = [];\n if (!agent.skills.includes(skillName)) agent.skills.push(skillName);\n } else if (agent.skills) {\n agent.skills = agent.skills.filter(s => s !== skillName);\n }\n agents = [...agents];\n } catch (err) {\n await sweetAlert.fire({\n title: \"Toggle Failed\",\n text: err.message,\n icon: \"error\"\n });\n }\n }\n\n async function setAgentModel(agent, modelId) {\n const target = modelId === \"\" ? null : modelId;\n try {\n await api.patch(\n \"/api/v1/agents/\" + encodeURIComponent(agent.name) + \"/model\",\n { model: target }\n );\n if (target) {\n agent.model = target;\n } else {\n delete agent.model;\n }\n agents = [...agents];\n } catch (err) {\n await sweetAlert.fire({\n title: \"Model Assignment Failed\",\n text: err.message,\n icon: \"error\"\n });\n }\n }\n\n onMount(loadData);\n</script>\n\n<div class=\"space-y-8 max-w-7xl mx-auto\">\n <!-- Hero Section with Light Glass Gradient & High Contrast Typography -->\n <div\n class=\"rise-3d relative overflow-hidden rounded-3xl p-8 border shadow-xl transition-all duration-300\"\n style=\"background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 100%), var(--color-primary-glow); border-color: var(--color-border); box-shadow: var(--shadow-3d);\"\n >\n <div class=\"relative z-10 flex flex-col md:flex-row md:items-center justify-between gap-6\">\n <div class=\"space-y-2\">\n <div class=\"inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs font-bold border\" style=\"background-color: var(--color-primary-glow); color: var(--color-primary); border-color: var(--color-primary);\">\n <svg class=\"w-3.5 h-3.5\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z\" />\n </svg>\n Official Subagent Roster\n </div>\n <h2 class=\"text-2xl lg:text-3xl font-black text-slate-900 tracking-tight\">\n Ninja Subagents (7 Ranks)\n </h2>\n <p class=\"text-sm font-semibold text-slate-700 max-w-2xl leading-relaxed\">\n Autonomous specialized agents orchestrating tasks, audits, research, and frontend builds. Each rank embeds specialized SQLite skill references.\n </p>\n </div>\n\n <div class=\"flex flex-wrap items-center gap-3 shrink-0\">\n <div class=\"glass-card-3d px-4 py-3 rounded-2xl border text-center\">\n <div class=\"text-xs font-bold text-slate-600\">Total Ranks</div>\n <div class=\"text-xl font-black text-emerald-600\">7 Active</div>\n </div>\n <div class=\"glass-card-3d px-4 py-3 rounded-2xl border text-center\">\n <div class=\"text-xs font-bold text-slate-600\">Skills Bound</div>\n <div class=\"text-xl font-black text-purple-600\">{allSkills.length} Indexed</div>\n </div>\n </div>\n </div>\n </div>\n\n {#if error}\n <div class=\"p-4 rounded-2xl border border-rose-200 bg-rose-50 text-rose-800 text-xs font-semibold\">\n {error}\n </div>\n {/if}\n\n {#if loading}\n <div class=\"flex items-center justify-center py-16 text-slate-600 text-sm font-semibold\">\n <div class=\"flex items-center gap-3\">\n <svg class=\"animate-spin w-5 h-5 text-purple-600\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path class=\"opacity-75\" fill=\"currentColor\" d=\"M4 12a8 8 0 018-8v8H4z\"></path>\n </svg>\n <span>Loading Ninja roster...</span>\n </div>\n </div>\n {:else}\n <div class=\"scene-3d grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6\">\n {#each agents as agent}\n <div class=\"glass-card-3d tilt-3d flex flex-col justify-between p-6 rounded-3xl border\">\n <div>\n <!-- Agent Header -->\n <div class=\"flex items-start justify-between gap-4 mb-4\">\n <div class=\"flex items-center gap-3\">\n <div class=\"w-12 h-12 rounded-2xl bg-purple-50 border border-purple-200 flex items-center justify-center text-purple-700 shadow-sm shrink-0\">\n <svg class=\"w-6 h-6\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d={rankIcons[agent.name] || \"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z\"} />\n </svg>\n </div>\n <div>\n <h3 class=\"text-base font-black text-slate-900 tracking-tight\">\n @{agent.name}\n </h3>\n <span class=\"inline-block text-[11px] font-bold text-purple-700 uppercase tracking-wider\">\n {agent.title || \"Ninja Subagent\"}\n </span>\n </div>\n </div>\n <span class=\"px-2.5 py-0.5 rounded-full text-[10px] font-mono font-bold bg-slate-100 text-slate-700 border border-slate-200 shrink-0\">\n {agent.skills ? agent.skills.length : 0} skills\n </span>\n </div>\n\n <p class=\"text-xs font-semibold text-slate-700 mb-4 leading-relaxed\">\n {agent.description}\n </p>\n\n <!-- Model Assignment Section (bridge-served models) -->\n <div class=\"space-y-2 mb-6\">\n <div class=\"flex items-center justify-between text-xs font-bold text-slate-800\">\n <span>Model Assignment</span>\n {#if agent.model}\n <span class=\"px-2 py-0.5 rounded-full text-[10px] font-mono font-bold bg-emerald-50 text-emerald-700 border border-emerald-200\">\n assigned\n </span>\n {:else}\n <span class=\"px-2 py-0.5 rounded-full text-[10px] font-mono font-bold bg-slate-100 text-slate-500 border border-slate-200\">\n inherit\n </span>\n {/if}\n </div>\n {#if bridgeModels.length > 0}\n <select\n value={agent.model || \"\"}\n onchange={(e) => setAgentModel(agent, e.currentTarget.value)}\n class=\"w-full p-2 rounded-xl border border-slate-200 bg-white/70 text-xs font-mono font-bold text-slate-700 cursor-pointer focus:ring-purple-500 focus:border-purple-400\"\n >\n <option value=\"\">⤺ Inherit (host client default)</option>\n {#each bridgeModels as m}\n <option value={m.id}>{m.id}</option>\n {/each}\n </select>\n {:else}\n <p class=\"p-2 rounded-xl border border-dashed border-slate-200 bg-white/50 text-[11px] font-semibold text-slate-500\">\n {agent.model || \"inherit\"} — no bridge-served models available. Start a bridge in the Bridges page to pick models.\n </p>\n {/if}\n </div>\n\n <!-- Embedded Skills Section -->\n <div class=\"space-y-3 pt-4 border-t border-slate-200\">\n <div class=\"flex items-center justify-between text-xs font-bold text-slate-800\">\n <span>Embedded Skill References</span>\n <span class=\"text-slate-500 font-mono text-[11px]\">{agent.skills ? agent.skills.length : 0} active</span>\n </div>\n\n <div class=\"space-y-1.5 max-h-56 overflow-y-auto pr-1\">\n {#each getSkillsForAgent(agent) as skill}\n {@const isChecked = agent.skills && agent.skills.includes(skill)}\n <label class=\"flex items-center justify-between p-2 rounded-xl border border-slate-200 bg-white/70 hover:bg-purple-50/50 transition-colors cursor-pointer text-xs\">\n <div class=\"flex items-center gap-2 min-w-0 pr-2\">\n <span class=\"font-mono text-xs font-bold {isChecked ? 'text-slate-900' : 'text-slate-400'} truncate\" title={skill}>\n {skill}\n </span>\n {#if isChecked}\n <span class=\"px-1.5 py-0.5 rounded text-[9px] font-mono font-bold bg-purple-50 text-purple-700 border border-purple-200 shrink-0\">\n active\n </span>\n {/if}\n </div>\n <input\n type=\"checkbox\"\n checked={isChecked}\n onchange={() => toggleSkill(agent, skill, isChecked)}\n class=\"rounded border-slate-300 text-purple-600 focus:ring-purple-500 w-4 h-4 cursor-pointer shrink-0 ml-2\"\n />\n </label>\n {/each}\n </div>\n </div>\n </div>\n </div>\n {/each}\n </div>\n {/if}\n</div>\n","<script>\n import Agents from '../../components/Agents.svelte';\n</script>\n\n<Agents />\n"],"mappings":";;;;;;CAAA,WAAA,WAAA,eAAA;EAuJ2D,WAAA,KAAA,m3DAAAA,YAAA,CAAgB,EAAA,wCAAA;;;EAYpE,WAAA,KAAA,mcAAA;;CA3CC,CAAA;;;;ACxHR,SAAA,MAAA,YAAA;;AAEQ"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
|
|
1
|
+
import { r as derived } from "../../../chunks/server2.js";
|
|
2
|
+
import "../../../chunks/index-server.js";
|
|
3
|
+
import "../../../chunks/api.js";
|
|
4
|
+
import "../../../chunks/scrollLock.svelte.js";
|
|
5
|
+
import "../../../chunks/sweetAlert.svelte.js";
|
|
6
|
+
//#region src/components/Bridges.svelte
|
|
6
7
|
function Bridges($$renderer, $$props) {
|
|
7
8
|
$$renderer.component(($$renderer) => {
|
|
8
9
|
let models = [];
|
|
@@ -23,10 +24,12 @@ function Bridges($$renderer, $$props) {
|
|
|
23
24
|
$$renderer.push(`<!--]--></div>`);
|
|
24
25
|
});
|
|
25
26
|
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/routes/bridges/+page.svelte
|
|
26
29
|
function _page($$renderer) {
|
|
27
30
|
Bridges($$renderer, {});
|
|
28
31
|
}
|
|
29
32
|
//#endregion
|
|
30
33
|
export { _page as default };
|
|
31
34
|
|
|
32
|
-
//# sourceMappingURL=_page.svelte
|
|
35
|
+
//# sourceMappingURL=_page.svelte.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte.js","names":["$.escape","$.attr","$.ensure_array_like","$.attr_class"],"sources":["../../../../../src/components/Bridges.svelte","../../../../../src/routes/bridges/+page.svelte"],"sourcesContent":["<script>\n import { onMount } from \"svelte\";\n import { api } from \"#lib/api.js\";\n import { sweetAlert } from \"#lib/sweetAlert.svelte.js\";\n import { useScrollLock } from \"#lib/scrollLock.svelte.js\";\n\n let bridges = $state([]);\n let status = $state(null);\n let loading = $state(true);\n let error = $state(\"\");\n let showCreateModal = $state(false);\n let gatewayBusy = $state(false);\n let showModelsModal = $state(false);\n let models = $state([]);\n let loadingModels = $state(false);\n let modelsSearch = $state(\"\");\n let selectedBridgeFilter = $state(\"all\");\n\n let newBridge = $state({\n name: \"\",\n port: 9001,\n provider: \"openai\",\n model: \"\",\n target_url: \"\"\n });\n\n async function loadData() {\n loading = true;\n error = \"\";\n try {\n bridges = await api.get(\"/api/v1/bridges\");\n status = await api.get(\"/api/v1/bridges/status\");\n } catch (err) {\n error = err.message;\n } finally {\n loading = false;\n }\n }\n\n async function startGateway() {\n gatewayBusy = true;\n try {\n await api.post(\"/api/v1/bridges/gateway/start\");\n await sweetAlert.fire({\n title: \"Gateway Started\",\n text: \"Bridge Proxy Gateway is running on port 19999.\",\n icon: \"success\"\n });\n await loadData();\n } catch (err) {\n await sweetAlert.fire({\n title: \"Start Failed\",\n text: err.message,\n icon: \"error\"\n });\n } finally {\n gatewayBusy = false;\n }\n }\n\n async function stopGateway() {\n const confirmed = await sweetAlert.confirm({\n title: \"Stop Gateway?\",\n text: \"Stopping the Bridge Proxy Gateway will interrupt local model routing on port 19999.\",\n icon: \"warning\",\n confirmText: \"Stop Gateway\",\n cancelText: \"Cancel\"\n });\n if (!confirmed) return;\n\n gatewayBusy = true;\n try {\n await api.post(\"/api/v1/bridges/gateway/stop\");\n await sweetAlert.fire({\n title: \"Gateway Stopped\",\n text: \"Bridge Proxy Gateway daemon has been stopped.\",\n icon: \"info\"\n });\n await loadData();\n } catch (err) {\n await sweetAlert.fire({\n title: \"Stop Failed\",\n text: err.message,\n icon: \"error\"\n });\n } finally {\n gatewayBusy = false;\n }\n }\n\n async function restartGateway() {\n gatewayBusy = true;\n try {\n await api.post(\"/api/v1/bridges/gateway/restart\");\n await sweetAlert.fire({\n title: \"Gateway Restarted\",\n text: \"Bridge Proxy Gateway restarted successfully on port 19999.\",\n icon: \"success\"\n });\n await loadData();\n } catch (err) {\n await sweetAlert.fire({\n title: \"Restart Failed\",\n text: err.message,\n icon: \"error\"\n });\n } finally {\n gatewayBusy = false;\n }\n }\n\n async function openModelsModal() {\n showModelsModal = true;\n loadingModels = true;\n try {\n const res = await api.get(\"/api/v1/bridges/models\");\n models = res.models || [];\n } catch (err) {\n models = [];\n await sweetAlert.fire({\n title: \"Failed to Fetch Models\",\n text: err.message,\n icon: \"error\"\n });\n } finally {\n loadingModels = false;\n }\n }\n\n async function copyToClipboard(text) {\n try {\n await navigator.clipboard.writeText(text);\n await sweetAlert.fire({\n title: \"Copied!\",\n text: `Model ID copied to clipboard: ${text}`,\n icon: \"success\",\n timer: 1500\n });\n } catch (_) {}\n }\n\n let filteredModels = $derived(\n models.filter(m => {\n const matchesSearch = !modelsSearch ||\n String(m.id || '').toLowerCase().includes(modelsSearch.toLowerCase()) ||\n String(m.model_name || '').toLowerCase().includes(modelsSearch.toLowerCase());\n const matchesBridge = selectedBridgeFilter === 'all' || m.bridge === selectedBridgeFilter;\n return matchesSearch && matchesBridge;\n })\n );\n\n let uniqueBridges = $derived([\n ...new Set(models.map(m => m.bridge))\n ]);\n\n async function toggleBridge(bridge) {\n try {\n await api.patch(\"/api/v1/bridges/\" + encodeURIComponent(bridge.name), {\n enabled: !bridge.enabled\n });\n await loadData();\n } catch (err) {\n await sweetAlert.fire({\n title: \"Update Failed\",\n text: err.message,\n icon: \"error\"\n });\n }\n }\n\n async function deleteBridge(name) {\n const confirmed = await sweetAlert.confirm({\n title: \"Delete Bridge?\",\n text: `Are you sure you want to permanently delete bridge \"${name}\"?`,\n icon: \"warning\",\n confirmText: \"Delete\",\n cancelText: \"Keep\"\n });\n if (!confirmed) return;\n\n try {\n await api.del(\"/api/v1/bridges/\" + encodeURIComponent(name));\n await sweetAlert.fire({\n title: \"Deleted\",\n text: `Bridge \"${name}\" was successfully removed.`,\n icon: \"success\"\n });\n await loadData();\n } catch (err) {\n await sweetAlert.fire({\n title: \"Delete Failed\",\n text: err.message,\n icon: \"error\"\n });\n }\n }\n\n async function createBridge(e) {\n e.preventDefault();\n if (!newBridge.name || !newBridge.port) {\n await sweetAlert.fire({\n title: \"Validation Error\",\n text: \"Bridge name and port are required.\",\n icon: \"warning\"\n });\n return;\n }\n try {\n await api.post(\"/api/v1/bridges\", newBridge);\n showCreateModal = false;\n newBridge = {\n name: \"\",\n port: 9001,\n provider: \"openai\",\n model: \"\",\n target_url: \"\"\n };\n await sweetAlert.fire({\n title: \"Bridge Created\",\n text: \"New LLM proxy bridge configured and registered!\",\n icon: \"success\"\n });\n await loadData();\n } catch (err) {\n await sweetAlert.fire({\n title: \"Creation Failed\",\n text: err.message,\n icon: \"error\"\n });\n }\n }\n\n onMount(loadData);\n\n useScrollLock(() => showCreateModal);\n useScrollLock(() => showModelsModal);\n\n function handleModalKeydown(e) {\n if (e.key === 'Escape') {\n showCreateModal = false;\n showModelsModal = false;\n }\n }\n</script>\n\n<svelte:window onkeydown={handleModalKeydown} />\n\n<div class=\"space-y-8 max-w-7xl mx-auto\">\n <!-- Hero Section with Light Glass Gradient & High Contrast Typography -->\n <div\n class=\"rise-3d relative overflow-hidden rounded-3xl p-8 border shadow-xl transition-all duration-300\"\n style=\"background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 100%), var(--color-primary-glow); border-color: var(--color-border); box-shadow: var(--shadow-3d);\"\n >\n <div class=\"relative z-10 flex flex-col md:flex-row md:items-center justify-between gap-6\">\n <div class=\"space-y-2\">\n <div class=\"inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs font-bold border\" style=\"background-color: var(--color-primary-glow); color: var(--color-primary); border-color: var(--color-primary);\">\n <svg class=\"w-3.5 h-3.5\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 9l4-4 4 4m0 6l-4 4-4-4\" />\n </svg>\n Local LLM Proxy Gateway\n </div>\n <h2 class=\"text-2xl lg:text-3xl font-black text-slate-900 tracking-tight\">\n Bridge Management\n </h2>\n <p class=\"text-sm font-semibold text-slate-700 max-w-2xl leading-relaxed\">\n Dynamic model routing via Bridge Router (port 19999). Expose local models (Ollama, vLLM, LMStudio) and cloud APIs with unified routing.\n </p>\n </div>\n\n <div class=\"flex flex-wrap items-center gap-3 shrink-0\">\n <button\n type=\"button\"\n onclick={openModelsModal}\n class=\"btn-3d inline-flex items-center gap-2 px-4 py-2.5 rounded-xl font-bold text-xs bg-white text-slate-800 border border-slate-300 hover:border-purple-400 transition-all shadow-sm cursor-pointer\"\n >\n <svg class=\"w-4 h-4 text-purple-600\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10\" />\n </svg>\n <span>Served Models</span>\n </button>\n\n <button\n type=\"button\"\n onclick={() => { showCreateModal = true; }}\n class=\"btn-3d inline-flex items-center gap-2 px-5 py-2.5 rounded-xl font-bold text-xs text-white transition-all shadow-md cursor-pointer\"\n style=\"background-color: var(--color-primary, #7c3aed);\"\n >\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M12 4v16m8-8H4\" />\n </svg>\n <span>Create Bridge</span>\n </button>\n </div>\n </div>\n </div>\n\n <!-- Gateway Status Banner with Real Daemon Controls -->\n {#if status}\n <div class=\"glass-card-3d p-5 rounded-2xl border flex flex-col sm:flex-row sm:items-center justify-between gap-4\">\n <div class=\"flex items-center gap-3.5\">\n {#if status.gateway_running}\n <span class=\"relative flex h-3.5 w-3.5\">\n <span class=\"animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75\"></span>\n <span class=\"relative inline-flex rounded-full h-3.5 w-3.5 bg-emerald-500\"></span>\n </span>\n <div>\n <div class=\"flex items-center gap-2\">\n <span class=\"text-xs font-black text-emerald-800 uppercase tracking-wide\">Proxy Gateway Online</span>\n <span class=\"px-2 py-0.5 rounded text-[10px] font-mono font-bold bg-emerald-100 text-emerald-700 border border-emerald-300\">\n :{status.router_port || 19999}\n </span>\n </div>\n <p class=\"text-xs font-semibold text-slate-600 mt-0.5\">\n Unified router multiplexing all active bridges on 127.0.0.1:{status.router_port || 19999}\n </p>\n </div>\n {:else}\n <span class=\"relative inline-flex rounded-full h-3.5 w-3.5 bg-amber-500\"></span>\n <div>\n <div class=\"flex items-center gap-2\">\n <span class=\"text-xs font-black text-amber-800 uppercase tracking-wide\">Proxy Gateway Stopped</span>\n <span class=\"px-2 py-0.5 rounded text-[10px] font-mono font-bold bg-amber-100 text-amber-800 border border-amber-300\">\n :{status.router_port || 19999}\n </span>\n </div>\n <p class=\"text-xs font-semibold text-slate-600 mt-0.5\">\n Service daemon is not running. Start gateway to route requests via port {status.router_port || 19999}.\n </p>\n </div>\n {/if}\n </div>\n\n <div class=\"flex items-center gap-2 shrink-0\">\n {#if status.gateway_running}\n <button\n type=\"button\"\n onclick={restartGateway}\n disabled={gatewayBusy}\n class=\"px-3.5 py-1.5 rounded-xl text-xs font-bold bg-amber-50 hover:bg-amber-100 text-amber-700 border border-amber-300 transition-all cursor-pointer disabled:opacity-50\"\n title=\"Restart the Gateway service\"\n >\n Restart\n </button>\n <button\n type=\"button\"\n onclick={stopGateway}\n disabled={gatewayBusy}\n class=\"px-3.5 py-1.5 rounded-xl text-xs font-bold bg-rose-50 hover:bg-rose-100 text-rose-700 border border-rose-300 transition-all cursor-pointer disabled:opacity-50\"\n title=\"Stop the Gateway service\"\n >\n Stop\n </button>\n {:else}\n <button\n type=\"button\"\n onclick={startGateway}\n disabled={gatewayBusy}\n class=\"px-4 py-1.5 rounded-xl text-xs font-bold bg-emerald-600 hover:bg-emerald-700 text-white shadow-sm transition-all cursor-pointer disabled:opacity-50\"\n title=\"Start the Gateway service\"\n >\n Start Gateway\n </button>\n {/if}\n\n <div class=\"ml-2 px-3 py-1.5 rounded-xl text-xs font-mono font-bold bg-purple-50 text-purple-700 border border-purple-200\">\n {bridges.filter(b => b.enabled).length} / {bridges.length} Enabled\n </div>\n </div>\n </div>\n {/if}\n\n {#if error}\n <div class=\"p-4 rounded-2xl bg-rose-50 border border-rose-200 text-rose-700 text-xs font-bold flex items-center justify-between\">\n <span>{error}</span>\n <button type=\"button\" onclick={loadData} class=\"underline hover:text-rose-900 cursor-pointer\">Retry</button>\n </div>\n {/if}\n\n {#if loading}\n <div class=\"p-12 text-center text-slate-500 font-bold text-xs\">\n <div class=\"animate-spin w-6 h-6 border-2 border-purple-600 border-t-transparent rounded-full mx-auto mb-2\"></div>\n Loading configured bridges...\n </div>\n {:else if bridges.length === 0}\n <div class=\"glass-card-3d p-12 text-center rounded-3xl border\">\n <div class=\"w-12 h-12 rounded-2xl bg-purple-50 border border-purple-200 text-purple-600 flex items-center justify-center mx-auto mb-3\">\n <svg class=\"w-6 h-6\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 9l4-4 4 4m0 6l-4 4-4-4\" />\n </svg>\n </div>\n <p class=\"text-sm font-bold text-slate-800 mb-4\">No LLM proxy bridges configured yet.</p>\n <button\n type=\"button\"\n onclick={() => { showCreateModal = true; }}\n class=\"btn-3d inline-flex items-center gap-2 px-4 py-2 rounded-xl text-xs font-bold bg-white text-slate-800 border border-slate-300 hover:bg-slate-50 cursor-pointer\"\n >\n <svg class=\"w-3.5 h-3.5\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M12 4v16m8-8H4\" />\n </svg>\n <span>Add your first bridge</span>\n </button>\n </div>\n {:else}\n <!-- Bridges Table in 3D Glass Card with High Contrast Typography -->\n <div class=\"glass-card-3d rounded-3xl border overflow-hidden\">\n <div class=\"overflow-x-auto\">\n <table class=\"w-full text-left text-xs\">\n <thead class=\"border-b border-slate-200 bg-slate-50/80 text-[11px] font-extrabold text-slate-700 uppercase tracking-wider\">\n <tr>\n <th class=\"py-3.5 px-6\">Bridge Name</th>\n <th class=\"py-3.5 px-6\">Port</th>\n <th class=\"py-3.5 px-6\">Provider</th>\n <th class=\"py-3.5 px-6\">Target URL</th>\n <th class=\"py-3.5 px-6\">Runtime Port</th>\n <th class=\"py-3.5 px-6\">Configured</th>\n <th class=\"py-3.5 px-6 text-right\">Actions</th>\n </tr>\n </thead>\n <tbody class=\"divide-y divide-slate-100\">\n {#each bridges as b}\n <tr class=\"hover:bg-purple-50/40 transition-colors\">\n <td class=\"py-4 px-6 font-black text-slate-900 font-mono\">\n {b.name}\n </td>\n <td class=\"py-4 px-6\">\n <span class=\"inline-flex items-center px-2 py-0.5 rounded text-[10px] font-mono font-bold bg-slate-100 text-slate-800 border border-slate-300\">\n :{b.port}\n </span>\n </td>\n <td class=\"py-4 px-6\">\n <span class=\"inline-flex items-center px-2 py-0.5 rounded text-[10px] font-mono font-bold bg-blue-50 text-blue-700 border border-blue-200 uppercase\">\n {b.provider}\n </span>\n </td>\n <td class=\"py-4 px-6 text-slate-700 font-mono text-[11px]\">\n {b.target_url || \"—\"}\n </td>\n <td class=\"py-4 px-6\">\n {#if b.running}\n <span class=\"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[10px] font-bold bg-emerald-50 text-emerald-700 border border-emerald-200\">\n <span class=\"h-1.5 w-1.5 rounded-full bg-emerald-500\"></span>\n Listening :{b.port}\n </span>\n {:else}\n <span class=\"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[10px] font-bold bg-slate-100 text-slate-600 border border-slate-200\">\n <span class=\"h-1.5 w-1.5 rounded-full bg-slate-400\"></span>\n Inactive\n </span>\n {/if}\n </td>\n <td class=\"py-4 px-6\">\n <div class=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onclick={() => toggleBridge(b)}\n class=\"relative inline-flex h-5 w-9 items-center rounded-full transition-colors cursor-pointer {b.enabled ? 'bg-emerald-500' : 'bg-slate-300'}\"\n title=\"Toggle active status\"\n >\n <span class=\"inline-block h-3.5 w-3.5 transform rounded-full bg-white transition-transform shadow {b.enabled ? 'translate-x-4.5' : 'translate-x-1'}\"></span>\n </button>\n <span class=\"text-[11px] font-bold {b.enabled ? 'text-emerald-700' : 'text-slate-500'}\">\n {b.enabled ? 'Enabled' : 'Disabled'}\n </span>\n </div>\n </td>\n <td class=\"py-4 px-6 text-right\">\n <button\n type=\"button\"\n onclick={() => deleteBridge(b.name)}\n class=\"p-1.5 rounded-lg text-slate-400 hover:text-rose-600 hover:bg-rose-50 transition-colors cursor-pointer\"\n title=\"Delete bridge\"\n >\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16\" />\n </svg>\n </button>\n </td>\n </tr>\n {/each}\n </tbody>\n </table>\n </div>\n </div>\n {/if}\n\n <!-- Create Bridge 3D Glass Modal -->\n {#if showCreateModal}\n <div\n role=\"presentation\"\n class=\"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/40 backdrop-blur-md\"\n onclick={(e) => { if (e.target === e.currentTarget) showCreateModal = false; }}\n onkeydown={(e) => { if (e.key === 'Escape') showCreateModal = false; }}\n >\n <div\n class=\"glass-frost-strong relative w-full max-w-lg max-h-[90vh] overflow-y-auto rounded-3xl p-6 sm:p-8 border shadow-2xl space-y-6\"\n style=\"background: var(--glass-card); border-color: var(--color-border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);\"\n >\n <div class=\"flex items-center justify-between\">\n <h3 class=\"text-lg font-black text-slate-900\">Configure New Bridge</h3>\n <button\n type=\"button\"\n onclick={() => { showCreateModal = false; }}\n class=\"p-1 rounded-lg text-slate-400 hover:text-slate-700 cursor-pointer\"\n aria-label=\"Close\"\n >\n <svg class=\"w-5 h-5\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </button>\n </div>\n\n <form onsubmit={createBridge} class=\"space-y-4\">\n <div class=\"grid grid-cols-2 gap-4\">\n <div>\n <label for=\"bridge-name\" class=\"block text-xs font-bold text-slate-800 mb-1\">Bridge Name</label>\n <input\n id=\"bridge-name\"\n type=\"text\"\n bind:value={newBridge.name}\n placeholder=\"e.g. ollama-local\"\n required\n class=\"w-full px-3 py-2 rounded-xl text-xs font-semibold text-slate-900 border border-slate-300 bg-white focus:ring-2 focus:ring-purple-500\"\n />\n </div>\n <div>\n <label for=\"bridge-port\" class=\"block text-xs font-bold text-slate-800 mb-1\">Port</label>\n <input\n id=\"bridge-port\"\n type=\"number\"\n bind:value={newBridge.port}\n placeholder=\"9001\"\n required\n class=\"w-full px-3 py-2 rounded-xl text-xs font-semibold text-slate-900 border border-slate-300 bg-white focus:ring-2 focus:ring-purple-500\"\n />\n </div>\n </div>\n\n <div class=\"grid grid-cols-2 gap-4\">\n <div>\n <label for=\"bridge-provider\" class=\"block text-xs font-bold text-slate-800 mb-1\">Provider Type</label>\n <select\n id=\"bridge-provider\"\n bind:value={newBridge.provider}\n class=\"w-full px-3 py-2 rounded-xl text-xs font-semibold text-slate-900 border border-slate-300 bg-white focus:ring-2 focus:ring-purple-500\"\n >\n <option value=\"openai\">OpenAI Compatible</option>\n <option value=\"anthropic\">Anthropic</option>\n <option value=\"gemini\">Google Gemini</option>\n <option value=\"ollama\">Ollama</option>\n <option value=\"vllm\">vLLM</option>\n </select>\n </div>\n <div>\n <label for=\"bridge-model\" class=\"block text-xs font-bold text-slate-800 mb-1\">Default Model (Optional)</label>\n <input\n id=\"bridge-model\"\n type=\"text\"\n bind:value={newBridge.model}\n placeholder=\"e.g. qwen2.5-coder:7b\"\n class=\"w-full px-3 py-2 rounded-xl text-xs font-semibold text-slate-900 border border-slate-300 bg-white focus:ring-2 focus:ring-purple-500\"\n />\n </div>\n </div>\n\n <div>\n <label for=\"bridge-target\" class=\"block text-xs font-bold text-slate-800 mb-1\">Upstream Target URL (Optional)</label>\n <input\n id=\"bridge-target\"\n type=\"text\"\n bind:value={newBridge.target_url}\n placeholder=\"http://127.0.0.1:11434/v1\"\n class=\"w-full px-3 py-2 rounded-xl text-xs font-semibold text-slate-900 border border-slate-300 bg-white focus:ring-2 focus:ring-purple-500\"\n />\n </div>\n\n <div class=\"flex items-center justify-end gap-3 pt-4 border-t border-slate-200\">\n <button\n type=\"button\"\n onclick={() => { showCreateModal = false; }}\n class=\"btn-3d px-4 py-2 rounded-xl text-xs font-bold text-slate-700 bg-slate-100 hover:bg-slate-200 border border-slate-300 cursor-pointer\"\n >\n Cancel\n </button>\n <button\n type=\"submit\"\n class=\"btn-3d px-5 py-2 rounded-xl text-xs font-bold text-white shadow-md cursor-pointer\"\n style=\"background-color: var(--color-primary, #7c3aed);\"\n >\n Create Bridge\n </button>\n </div>\n </form>\n </div>\n </div>\n {/if}\n\n <!-- Served Models Modal with 3D Glass & Search -->\n {#if showModelsModal}\n <div\n role=\"presentation\"\n class=\"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/40 backdrop-blur-sm\"\n onclick={(e) => { if (e.target === e.currentTarget) showModelsModal = false; }}\n onkeydown={(e) => { if (e.key === 'Escape') showModelsModal = false; }}\n >\n <div\n class=\"relative w-full max-w-4xl max-h-[85vh] flex flex-col rounded-3xl p-6 border bg-white shadow-2xl overflow-hidden\"\n style=\"border-color: var(--color-border); box-shadow: var(--shadow-3d);\"\n >\n <!-- Modal Header -->\n <div class=\"flex items-center justify-between pb-4 border-b border-slate-100 shrink-0\">\n <div class=\"space-y-1\">\n <div class=\"flex items-center gap-2\">\n <span class=\"p-1.5 rounded-lg bg-purple-50 text-purple-600 border border-purple-200\">\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10\" />\n </svg>\n </span>\n <h3 class=\"text-lg font-black text-slate-900\">Served Models via Proxy Gateway</h3>\n </div>\n <p class=\"text-xs font-semibold text-slate-600\">\n Aggregated model aliases routed through active bridges. Target with model prefix in requests.\n </p>\n </div>\n <button\n type=\"button\"\n onclick={() => { showModelsModal = false; }}\n class=\"p-2 rounded-xl text-slate-400 hover:text-slate-700 hover:bg-slate-100 transition-colors cursor-pointer\"\n aria-label=\"Close\"\n >\n <svg class=\"w-5 h-5\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </button>\n </div>\n\n <!-- Filter & Search Controls -->\n <div class=\"py-4 flex flex-col sm:flex-row items-center gap-3 shrink-0\">\n <div class=\"relative flex-1 w-full\">\n <input\n type=\"text\"\n bind:value={modelsSearch}\n placeholder=\"Search model by ID, name, or provider...\"\n class=\"w-full pl-9 pr-4 py-2 rounded-xl text-xs font-semibold text-slate-900 border border-slate-300 bg-slate-50 focus:bg-white focus:ring-2 focus:ring-purple-500 focus:outline-none transition-all\"\n />\n <svg class=\"w-4 h-4 text-slate-400 absolute left-3 top-2.5\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z\" />\n </svg>\n </div>\n\n {#if uniqueBridges.length > 1}\n <div class=\"flex items-center gap-1.5 shrink-0 overflow-x-auto w-full sm:w-auto\">\n <button\n type=\"button\"\n onclick={() => { selectedBridgeFilter = 'all'; }}\n class=\"px-3 py-1.5 rounded-lg text-xs font-bold transition-all cursor-pointer {selectedBridgeFilter === 'all' ? 'bg-purple-600 text-white' : 'bg-slate-100 text-slate-700 hover:bg-slate-200'}\"\n >\n All ({models.length})\n </button>\n {#each uniqueBridges as bName}\n <button\n type=\"button\"\n onclick={() => { selectedBridgeFilter = bName; }}\n class=\"px-3 py-1.5 rounded-lg text-xs font-bold transition-all cursor-pointer {selectedBridgeFilter === bName ? 'bg-purple-600 text-white' : 'bg-slate-100 text-slate-700 hover:bg-slate-200'}\"\n >\n {bName} ({models.filter(m => m.bridge === bName).length})\n </button>\n {/each}\n </div>\n {/if}\n </div>\n\n <!-- Models List Container -->\n <div class=\"flex-1 overflow-y-auto border border-slate-200 rounded-2xl\">\n {#if loadingModels}\n <div class=\"p-12 text-center text-slate-500\">\n <div class=\"animate-spin w-6 h-6 border-2 border-purple-600 border-t-transparent rounded-full mx-auto mb-3\"></div>\n <p class=\"text-xs font-bold\">Querying models from active bridge endpoints...</p>\n </div>\n {:else if filteredModels.length === 0}\n <div class=\"p-12 text-center text-slate-500\">\n <p class=\"text-sm font-bold text-slate-700\">No models found</p>\n <p class=\"text-xs mt-1\">Make sure target bridges are running and have valid endpoint URLs configured.</p>\n </div>\n {:else}\n <table class=\"w-full text-left text-xs\">\n <thead class=\"border-b border-slate-200 bg-slate-50 text-[11px] font-extrabold text-slate-700 uppercase tracking-wider sticky top-0 z-10\">\n <tr>\n <th class=\"py-3 px-4\">Gateway Alias ID</th>\n <th class=\"py-3 px-4\">Base Model</th>\n <th class=\"py-3 px-4\">Bridge</th>\n <th class=\"py-3 px-4\">Provider / Owner</th>\n <th class=\"py-3 px-4 text-right\">Action</th>\n </tr>\n </thead>\n <tbody class=\"divide-y divide-slate-100 font-mono text-[11px]\">\n {#each filteredModels as m}\n <tr class=\"hover:bg-purple-50/30 transition-colors\">\n <td class=\"py-2.5 px-4 font-bold text-purple-700\">\n {m.id}\n </td>\n <td class=\"py-2.5 px-4 text-slate-800\">\n {m.model_name}\n </td>\n <td class=\"py-2.5 px-4\">\n <span class=\"inline-flex items-center px-2 py-0.5 rounded text-[10px] font-bold bg-blue-50 text-blue-700 border border-blue-200\">\n {m.bridge}\n </span>\n </td>\n <td class=\"py-2.5 px-4 text-slate-600 font-sans text-xs\">\n {m.owned_by || m.bridge}\n </td>\n <td class=\"py-2.5 px-4 text-right\">\n <button\n type=\"button\"\n onclick={() => copyToClipboard(m.id)}\n class=\"px-2.5 py-1 rounded-md text-[10px] font-bold font-sans bg-slate-100 hover:bg-purple-100 text-slate-700 hover:text-purple-700 border border-slate-200 transition-colors cursor-pointer\"\n title=\"Copy alias ID to clipboard\"\n >\n Copy ID\n </button>\n </td>\n </tr>\n {/each}\n </tbody>\n </table>\n {/if}\n </div>\n\n <!-- Modal Footer -->\n <div class=\"pt-4 mt-2 flex items-center justify-between text-xs font-semibold text-slate-600 shrink-0\">\n <span>Showing {filteredModels.length} of {models.length} served model(s)</span>\n <button\n type=\"button\"\n onclick={() => { showModelsModal = false; }}\n class=\"px-4 py-2 rounded-xl font-bold bg-slate-100 hover:bg-slate-200 text-slate-800 transition-colors cursor-pointer\"\n >\n Close\n </button>\n </div>\n </div>\n </div>\n {/if}\n</div>\n","<script>\n import Bridges from '../../components/Bridges.svelte';\n</script>\n\n<Bridges />\n"],"mappings":";;;;;;;CAAA,WAAA,WAAA,eAAA;EAaE,IAAI,SAAM,CAAA;EAgIQ,cAChB,OAAO,QAAO,MAAK;GAKjB,OAAwB;EAC1B,CAAC,CAAA;EAGc,cAAA,CAAA,GACZ,IAAI,IAAI,OAAO,KAAI,MAAK,EAAE,MAAM,CAAA,CAAA,CAAA;;;;;;EAkOhC,WAAA,KAAA,gOAAA;;;;;;CAvIC,CAAA;;;;ACnPR,SAAA,MAAA,YAAA;;AAEQ"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
1
|
+
import { d as escape_html } from "../../../chunks/server2.js";
|
|
2
|
+
import "../../../chunks/index-server.js";
|
|
3
|
+
import "../../../chunks/api.js";
|
|
4
|
+
import "../../../chunks/uiState.svelte.js";
|
|
5
|
+
//#region src/components/Clients.svelte
|
|
5
6
|
function Clients($$renderer, $$props) {
|
|
6
7
|
$$renderer.component(($$renderer) => {
|
|
7
8
|
$$renderer.push(`<div class="space-y-8 max-w-7xl mx-auto"><div class="rise-3d relative overflow-hidden rounded-3xl p-8 border shadow-xl transition-all duration-300" style="background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 100%), var(--color-primary-glow); border-color: var(--color-border); box-shadow: var(--shadow-3d);"><div class="relative z-10 flex flex-col md:flex-row md:items-center justify-between gap-6"><div class="space-y-2"><div class="inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs font-bold border" style="background-color: var(--color-primary-glow); color: var(--color-primary); border-color: var(--color-primary);"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg> Multi-Client Integration</div> <h2 class="text-2xl lg:text-3xl font-black text-slate-900 tracking-tight">Coding Clients (7 IDEs & CLIs)</h2> <p class="text-sm font-semibold text-slate-700 max-w-2xl leading-relaxed">Auto-inject Konoha MCP tools and RTK output filtering into Antigravity, Cursor, Claude Code, OpenCode, Command Code, Codex, and Pi (pi.dev).</p></div> <div class="flex flex-wrap items-center gap-3 shrink-0"><div class="glass-card-3d px-4 py-3 rounded-2xl border text-center"><div class="text-xs font-bold text-slate-600">Supported Clients</div> <div class="text-xl font-black text-indigo-600">7 Platforms</div></div> <div class="glass-card-3d px-4 py-3 rounded-2xl border text-center"><div class="text-xs font-bold text-slate-600">Connected</div> <div class="text-xl font-black text-emerald-600">${escape_html([].filter((c) => c.configured).length)} Active</div></div></div></div></div> `);
|
|
@@ -11,10 +12,12 @@ function Clients($$renderer, $$props) {
|
|
|
11
12
|
$$renderer.push(`<!--]--></div>`);
|
|
12
13
|
});
|
|
13
14
|
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/routes/clients/+page.svelte
|
|
14
17
|
function _page($$renderer) {
|
|
15
18
|
Clients($$renderer, {});
|
|
16
19
|
}
|
|
17
20
|
//#endregion
|
|
18
21
|
export { _page as default };
|
|
19
22
|
|
|
20
|
-
//# sourceMappingURL=_page.svelte
|
|
23
|
+
//# sourceMappingURL=_page.svelte.js.map
|