claude-mux 0.7.0
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/.beads/README.md +81 -0
- package/.beads/config.yaml +62 -0
- package/.beads/interactions.jsonl +0 -0
- package/.beads/issues.jsonl +5 -0
- package/.beads/metadata.json +4 -0
- package/.eslintrc.json +25 -0
- package/.gitattributes +3 -0
- package/.prettierrc +7 -0
- package/CLAUDE.md +123 -0
- package/LICENSE +21 -0
- package/PLAN-beads-integration.md +250 -0
- package/README.md +366 -0
- package/dist/app.d.ts +2 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +147 -0
- package/dist/app.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +65 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/index.d.ts +5 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +5 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/serve.d.ts +8 -0
- package/dist/commands/serve.d.ts.map +1 -0
- package/dist/commands/serve.js +59 -0
- package/dist/commands/serve.js.map +1 -0
- package/dist/commands/setup.d.ts +4 -0
- package/dist/commands/setup.d.ts.map +1 -0
- package/dist/commands/setup.js +12 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/commands/tui.d.ts +9 -0
- package/dist/commands/tui.d.ts.map +1 -0
- package/dist/commands/tui.js +234 -0
- package/dist/commands/tui.js.map +1 -0
- package/dist/commands/uninstall.d.ts +4 -0
- package/dist/commands/uninstall.d.ts.map +1 -0
- package/dist/commands/uninstall.js +12 -0
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/components/Header.d.ts +7 -0
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/Header.js +14 -0
- package/dist/components/Header.js.map +1 -0
- package/dist/components/HelpDialog.d.ts +6 -0
- package/dist/components/HelpDialog.d.ts.map +1 -0
- package/dist/components/HelpDialog.js +14 -0
- package/dist/components/HelpDialog.js.map +1 -0
- package/dist/components/SessionEntry.d.ts +17 -0
- package/dist/components/SessionEntry.d.ts.map +1 -0
- package/dist/components/SessionEntry.js +102 -0
- package/dist/components/SessionEntry.js.map +1 -0
- package/dist/components/SessionList.d.ts +14 -0
- package/dist/components/SessionList.d.ts.map +1 -0
- package/dist/components/SessionList.js +57 -0
- package/dist/components/SessionList.js.map +1 -0
- package/dist/components/StatusBar.d.ts +6 -0
- package/dist/components/StatusBar.d.ts.map +1 -0
- package/dist/components/StatusBar.js +7 -0
- package/dist/components/StatusBar.js.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +6 -0
- package/dist/components/index.js.map +1 -0
- package/dist/db/index.d.ts +2 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +3 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/schema.d.ts +4 -0
- package/dist/db/schema.d.ts.map +1 -0
- package/dist/db/schema.js +23 -0
- package/dist/db/schema.js.map +1 -0
- package/dist/db/sessions-json.d.ts +85 -0
- package/dist/db/sessions-json.d.ts.map +1 -0
- package/dist/db/sessions-json.js +242 -0
- package/dist/db/sessions-json.js.map +1 -0
- package/dist/db/sessions.d.ts +38 -0
- package/dist/db/sessions.d.ts.map +1 -0
- package/dist/db/sessions.js +87 -0
- package/dist/db/sessions.js.map +1 -0
- package/dist/hooks/claude-mux-hook.d.ts +15 -0
- package/dist/hooks/claude-mux-hook.d.ts.map +1 -0
- package/dist/hooks/claude-mux-hook.js +396 -0
- package/dist/hooks/claude-mux-hook.js.map +1 -0
- package/dist/hooks/claude-watch-hook.d.ts +15 -0
- package/dist/hooks/claude-watch-hook.d.ts.map +1 -0
- package/dist/hooks/claude-watch-hook.js +396 -0
- package/dist/hooks/claude-watch-hook.js.map +1 -0
- package/dist/server/custom-server.d.ts +13 -0
- package/dist/server/custom-server.d.ts.map +1 -0
- package/dist/server/custom-server.js +63 -0
- package/dist/server/custom-server.js.map +1 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +1143 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/middleware/cors.d.ts +2 -0
- package/dist/server/middleware/cors.d.ts.map +1 -0
- package/dist/server/middleware/cors.js +11 -0
- package/dist/server/middleware/cors.js.map +1 -0
- package/dist/server/routes/sessions.d.ts +3 -0
- package/dist/server/routes/sessions.d.ts.map +1 -0
- package/dist/server/routes/sessions.js +78 -0
- package/dist/server/routes/sessions.js.map +1 -0
- package/dist/server/routes/stream.d.ts +3 -0
- package/dist/server/routes/stream.d.ts.map +1 -0
- package/dist/server/routes/stream.js +45 -0
- package/dist/server/routes/stream.js.map +1 -0
- package/dist/server/types.d.ts +28 -0
- package/dist/server/types.d.ts.map +1 -0
- package/dist/server/types.js +2 -0
- package/dist/server/types.js.map +1 -0
- package/dist/server/watcher.d.ts +22 -0
- package/dist/server/watcher.d.ts.map +1 -0
- package/dist/server/watcher.js +119 -0
- package/dist/server/watcher.js.map +1 -0
- package/dist/server/websocket.d.ts +51 -0
- package/dist/server/websocket.d.ts.map +1 -0
- package/dist/server/websocket.js +156 -0
- package/dist/server/websocket.js.map +1 -0
- package/dist/server/ws-handlers.d.ts +174 -0
- package/dist/server/ws-handlers.d.ts.map +1 -0
- package/dist/server/ws-handlers.js +695 -0
- package/dist/server/ws-handlers.js.map +1 -0
- package/dist/setup/hooks.d.ts +44 -0
- package/dist/setup/hooks.d.ts.map +1 -0
- package/dist/setup/hooks.js +267 -0
- package/dist/setup/hooks.js.map +1 -0
- package/dist/setup/index.d.ts +3 -0
- package/dist/setup/index.d.ts.map +1 -0
- package/dist/setup/index.js +3 -0
- package/dist/setup/index.js.map +1 -0
- package/dist/setup/wizard.d.ts +4 -0
- package/dist/setup/wizard.d.ts.map +1 -0
- package/dist/setup/wizard.js +72 -0
- package/dist/setup/wizard.js.map +1 -0
- package/dist/tmux/detect.d.ts +25 -0
- package/dist/tmux/detect.d.ts.map +1 -0
- package/dist/tmux/detect.js +71 -0
- package/dist/tmux/detect.js.map +1 -0
- package/dist/tmux/navigate.d.ts +13 -0
- package/dist/tmux/navigate.d.ts.map +1 -0
- package/dist/tmux/navigate.js +41 -0
- package/dist/tmux/navigate.js.map +1 -0
- package/dist/tmux/pane.d.ts +57 -0
- package/dist/tmux/pane.d.ts.map +1 -0
- package/dist/tmux/pane.js +156 -0
- package/dist/tmux/pane.js.map +1 -0
- package/dist/tmux/resize.d.ts +10 -0
- package/dist/tmux/resize.d.ts.map +1 -0
- package/dist/tmux/resize.js +25 -0
- package/dist/tmux/resize.js.map +1 -0
- package/dist/utils/paths.d.ts +7 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +9 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/pid.d.ts +5 -0
- package/dist/utils/pid.d.ts.map +1 -0
- package/dist/utils/pid.js +14 -0
- package/dist/utils/pid.js.map +1 -0
- package/dist/utils/version.d.ts +6 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +6 -0
- package/dist/utils/version.js.map +1 -0
- package/dist/web/client/_app/immutable/assets/0.WptSHSUl.css +1 -0
- package/dist/web/client/_app/immutable/assets/2.s6Kx4oz1.css +1 -0
- package/dist/web/client/_app/immutable/assets/4.DoNWy7tW.css +1 -0
- package/dist/web/client/_app/immutable/assets/AllSessionsPanel.CGHY3HLy.css +1 -0
- package/dist/web/client/_app/immutable/chunks/-3mUPuLP.js +1 -0
- package/dist/web/client/_app/immutable/chunks/B5U4_V3d.js +1 -0
- package/dist/web/client/_app/immutable/chunks/BHwiZXRv.js +1 -0
- package/dist/web/client/_app/immutable/chunks/C9P-coqM.js +1 -0
- package/dist/web/client/_app/immutable/chunks/Cegv0r8x.js +1 -0
- package/dist/web/client/_app/immutable/chunks/DU91Ml7U.js +3 -0
- package/dist/web/client/_app/immutable/chunks/DmdO6ygw.js +1 -0
- package/dist/web/client/_app/immutable/chunks/HKNo9LID.js +5 -0
- package/dist/web/client/_app/immutable/chunks/U4ip-C0d.js +2 -0
- package/dist/web/client/_app/immutable/chunks/cgUjKIhX.js +2 -0
- package/dist/web/client/_app/immutable/entry/app.CGIBnoln.js +2 -0
- package/dist/web/client/_app/immutable/entry/start.CJk8zB1j.js +1 -0
- package/dist/web/client/_app/immutable/nodes/0.CqlJ9a31.js +1 -0
- package/dist/web/client/_app/immutable/nodes/1.BQUZh2-w.js +1 -0
- package/dist/web/client/_app/immutable/nodes/2.CCV1YdgF.js +1 -0
- package/dist/web/client/_app/immutable/nodes/3.D9tDCdq8.js +1 -0
- package/dist/web/client/_app/immutable/nodes/4.BqPyNkFA.js +6 -0
- package/dist/web/client/_app/version.json +1 -0
- package/dist/web/client/robots.txt +3 -0
- package/dist/web/env.js +32 -0
- package/dist/web/handler.js +744 -0
- package/dist/web/index.js +49 -0
- package/dist/web/server/chunks/0-BHWsmCJv.js +23 -0
- package/dist/web/server/chunks/0-BHWsmCJv.js.map +1 -0
- package/dist/web/server/chunks/1-YRx6A8Tm.js +17 -0
- package/dist/web/server/chunks/1-YRx6A8Tm.js.map +1 -0
- package/dist/web/server/chunks/2-eC6JuGAo.js +22 -0
- package/dist/web/server/chunks/2-eC6JuGAo.js.map +1 -0
- package/dist/web/server/chunks/3-Bk-wV20p.js +32 -0
- package/dist/web/server/chunks/3-Bk-wV20p.js.map +1 -0
- package/dist/web/server/chunks/4-nteBgDrW.js +21 -0
- package/dist/web/server/chunks/4-nteBgDrW.js.map +1 -0
- package/dist/web/server/chunks/AllSessionsPanel.svelte_svelte_type_style_lang-Bt4B0-oi.js +35 -0
- package/dist/web/server/chunks/AllSessionsPanel.svelte_svelte_type_style_lang-Bt4B0-oi.js.map +1 -0
- package/dist/web/server/chunks/_layout.svelte-BIF9eZCY.js +453 -0
- package/dist/web/server/chunks/_layout.svelte-BIF9eZCY.js.map +1 -0
- package/dist/web/server/chunks/_page.svelte-Be6iabRn.js +34 -0
- package/dist/web/server/chunks/_page.svelte-Be6iabRn.js.map +1 -0
- package/dist/web/server/chunks/_page.svelte-C_fGJVSE.js +576 -0
- package/dist/web/server/chunks/_page.svelte-C_fGJVSE.js.map +1 -0
- package/dist/web/server/chunks/_page.svelte-CnfJk6cu.js +2722 -0
- package/dist/web/server/chunks/_page.svelte-CnfJk6cu.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-3WAmKvn2.js +34 -0
- package/dist/web/server/chunks/_server.ts-3WAmKvn2.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-BAWJCSFb.js +29 -0
- package/dist/web/server/chunks/_server.ts-BAWJCSFb.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-BPpMOZCm.js +24 -0
- package/dist/web/server/chunks/_server.ts-BPpMOZCm.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-BUKgRb6U.js +13 -0
- package/dist/web/server/chunks/_server.ts-BUKgRb6U.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-BVHUS8fm.js +41 -0
- package/dist/web/server/chunks/_server.ts-BVHUS8fm.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-BrF3od0O.js +45 -0
- package/dist/web/server/chunks/_server.ts-BrF3od0O.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-C4oPmOJR.js +38 -0
- package/dist/web/server/chunks/_server.ts-C4oPmOJR.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-CDAUUmG_.js +21 -0
- package/dist/web/server/chunks/_server.ts-CDAUUmG_.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-CR0uWvpz.js +24 -0
- package/dist/web/server/chunks/_server.ts-CR0uWvpz.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-CSqdCNGi.js +21 -0
- package/dist/web/server/chunks/_server.ts-CSqdCNGi.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-DI9fzUo9.js +52 -0
- package/dist/web/server/chunks/_server.ts-DI9fzUo9.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-DNjJTClI.js +46 -0
- package/dist/web/server/chunks/_server.ts-DNjJTClI.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-DdbOAkOj.js +22 -0
- package/dist/web/server/chunks/_server.ts-DdbOAkOj.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-Df2isGQc.js +41 -0
- package/dist/web/server/chunks/_server.ts-Df2isGQc.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-Vpw25_-3.js +12 -0
- package/dist/web/server/chunks/_server.ts-Vpw25_-3.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-WldRpSRi.js +26 -0
- package/dist/web/server/chunks/_server.ts-WldRpSRi.js.map +1 -0
- package/dist/web/server/chunks/alert-dialog-description-DDA6u-nS.js +2890 -0
- package/dist/web/server/chunks/alert-dialog-description-DDA6u-nS.js.map +1 -0
- package/dist/web/server/chunks/auth-DrUf-v4J.js +51 -0
- package/dist/web/server/chunks/auth-DrUf-v4J.js.map +1 -0
- package/dist/web/server/chunks/button-D6xS9rHt.js +2335 -0
- package/dist/web/server/chunks/button-D6xS9rHt.js.map +1 -0
- package/dist/web/server/chunks/chunk-EKzHsMy_.js +42 -0
- package/dist/web/server/chunks/chunks-DmdqVYC7.js +58 -0
- package/dist/web/server/chunks/chunks-DmdqVYC7.js.map +1 -0
- package/dist/web/server/chunks/client-CUrSQijh.js +18 -0
- package/dist/web/server/chunks/client-CUrSQijh.js.map +1 -0
- package/dist/web/server/chunks/clsx-FzI4_gi0.js +332 -0
- package/dist/web/server/chunks/clsx-FzI4_gi0.js.map +1 -0
- package/dist/web/server/chunks/error.svelte-D-c-9pTE.js +27 -0
- package/dist/web/server/chunks/error.svelte-D-c-9pTE.js.map +1 -0
- package/dist/web/server/chunks/events-BDBlYddw.js +89 -0
- package/dist/web/server/chunks/events-BDBlYddw.js.map +1 -0
- package/dist/web/server/chunks/exports-CCurQ-Tl.js +131 -0
- package/dist/web/server/chunks/exports-CCurQ-Tl.js.map +1 -0
- package/dist/web/server/chunks/hooks.server-BK1bopsh.js +86 -0
- package/dist/web/server/chunks/hooks.server-BK1bopsh.js.map +1 -0
- package/dist/web/server/chunks/index2-BQnysSj-.js +2588 -0
- package/dist/web/server/chunks/index2-BQnysSj-.js.map +1 -0
- package/dist/web/server/chunks/internal-DLENj6YI.js +61 -0
- package/dist/web/server/chunks/internal-DLENj6YI.js.map +1 -0
- package/dist/web/server/chunks/pane-Dg3pKvsm.js +94 -0
- package/dist/web/server/chunks/pane-Dg3pKvsm.js.map +1 -0
- package/dist/web/server/chunks/sessions-json-DgfkCLO7.js +107 -0
- package/dist/web/server/chunks/sessions-json-DgfkCLO7.js.map +1 -0
- package/dist/web/server/chunks/sessions.svelte-Ds82MvkB.js +178 -0
- package/dist/web/server/chunks/sessions.svelte-Ds82MvkB.js.map +1 -0
- package/dist/web/server/chunks/state.svelte-xeAZvWZ6.js +7 -0
- package/dist/web/server/chunks/state.svelte-xeAZvWZ6.js.map +1 -0
- package/dist/web/server/chunks/ws-handlers-B4r5eSP2.js +733 -0
- package/dist/web/server/chunks/ws-handlers-B4r5eSP2.js.map +1 -0
- package/dist/web/server/index.js +4907 -0
- package/dist/web/server/index.js.map +1 -0
- package/dist/web/server/manifest.js +233 -0
- package/dist/web/server/manifest.js.map +1 -0
- package/docs/images/desktop-dashboard.png +0 -0
- package/docs/images/desktop-session.png +0 -0
- package/docs/images/mobile-dashboard.png +0 -0
- package/docs/images/mobile-session.png +0 -0
- package/docs/release-checklist.md +228 -0
- package/docs/removing-hooks.md +135 -0
- package/docs/state-transitions.md +109 -0
- package/package.json +71 -0
- package/src/app.tsx +188 -0
- package/src/cli.ts +83 -0
- package/src/commands/index.ts +4 -0
- package/src/commands/serve.ts +75 -0
- package/src/commands/setup.ts +13 -0
- package/src/commands/tui.ts +255 -0
- package/src/commands/uninstall.ts +13 -0
- package/src/components/Header.tsx +32 -0
- package/src/components/HelpDialog.tsx +45 -0
- package/src/components/SessionEntry.tsx +202 -0
- package/src/components/SessionList.tsx +98 -0
- package/src/components/StatusBar.tsx +26 -0
- package/src/components/index.ts +5 -0
- package/src/db/index.ts +20 -0
- package/src/db/sessions-json.ts +314 -0
- package/src/hooks/claude-mux-hook.ts +498 -0
- package/src/server/watcher.ts +128 -0
- package/src/server/ws-handlers.ts +922 -0
- package/src/setup/hooks.ts +333 -0
- package/src/setup/index.ts +2 -0
- package/src/setup/wizard.ts +81 -0
- package/src/tmux/detect.ts +87 -0
- package/src/tmux/navigate.ts +42 -0
- package/src/tmux/pane.ts +167 -0
- package/src/tmux/resize.ts +28 -0
- package/src/utils/paths.ts +11 -0
- package/src/utils/pid.ts +12 -0
- package/src/utils/version.ts +5 -0
- package/tests/components/Header.test.tsx +42 -0
- package/tests/components/SessionEntry-extended.test.tsx +165 -0
- package/tests/components/SessionEntry.test.tsx +138 -0
- package/tests/components/SessionList.test.tsx +110 -0
- package/tests/components/StatusBar.test.tsx +31 -0
- package/tests/db/index.test.ts +78 -0
- package/tests/db/sessions.test.ts +230 -0
- package/tests/server/integration.test.ts +319 -0
- package/tests/server/sessions.test.ts +114 -0
- package/tests/setup/hooks-integration.test.ts +148 -0
- package/tests/setup/hooks.test.ts +123 -0
- package/tests/tmux/detect.test.ts +54 -0
- package/tests/tmux/navigate.test.ts +30 -0
- package/tests/utils/pid.test.ts +17 -0
- package/tsconfig.cli.json +9 -0
- package/tsconfig.json +22 -0
- package/vitest.config.ts +29 -0
- package/web/.svelte-kit/adapter-bun/.vite/manifest.json +408 -0
- package/web/.svelte-kit/adapter-bun/_app/immutable/assets/AllSessionsPanel.BKhqOrbV.css +1 -0
- package/web/.svelte-kit/adapter-bun/_app/immutable/assets/_layout.WptSHSUl.css +1 -0
- package/web/.svelte-kit/adapter-bun/_app/immutable/assets/_page.DldLgTc-.css +1 -0
- package/web/.svelte-kit/adapter-bun/_app/immutable/assets/_page.DoNWy7tW.css +1 -0
- package/web/.svelte-kit/adapter-bun/chunks/AllSessionsPanel.svelte_svelte_type_style_lang.js +49 -0
- package/web/.svelte-kit/adapter-bun/chunks/alert-dialog-description.js +2670 -0
- package/web/.svelte-kit/adapter-bun/chunks/auth.js +59 -0
- package/web/.svelte-kit/adapter-bun/chunks/button.js +82 -0
- package/web/.svelte-kit/adapter-bun/chunks/client.js +29 -0
- package/web/.svelte-kit/adapter-bun/chunks/context.js +133 -0
- package/web/.svelte-kit/adapter-bun/chunks/environment.js +34 -0
- package/web/.svelte-kit/adapter-bun/chunks/events.js +121 -0
- package/web/.svelte-kit/adapter-bun/chunks/exports.js +174 -0
- package/web/.svelte-kit/adapter-bun/chunks/false.js +4 -0
- package/web/.svelte-kit/adapter-bun/chunks/index.js +59 -0
- package/web/.svelte-kit/adapter-bun/chunks/index2.js +2828 -0
- package/web/.svelte-kit/adapter-bun/chunks/internal.js +920 -0
- package/web/.svelte-kit/adapter-bun/chunks/pane.js +82 -0
- package/web/.svelte-kit/adapter-bun/chunks/sessions-json.js +124 -0
- package/web/.svelte-kit/adapter-bun/chunks/sessions.svelte.js +229 -0
- package/web/.svelte-kit/adapter-bun/chunks/shared.js +542 -0
- package/web/.svelte-kit/adapter-bun/chunks/state.svelte.js +16 -0
- package/web/.svelte-kit/adapter-bun/chunks/utils.js +43 -0
- package/web/.svelte-kit/adapter-bun/chunks/ws-handlers.js +782 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/auth/login/_server.ts.js +22 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/auth/logout/_server.ts.js +9 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/beads/_server.ts.js +22 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/browse/_server.ts.js +50 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/chrome/_server.ts.js +30 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/files/image/_server.ts.js +53 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/health/_server.ts.js +7 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/projects/new-session/_server.ts.js +44 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_id_/_server.ts.js +20 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_id_/kill/_server.ts.js +36 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_id_/restart/_server.ts.js +40 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_id_/screenshots/_server.ts.js +28 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_id_/send/_server.ts.js +29 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_server.ts.js +49 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_target_/output/_server.ts.js +14 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/tmux/panes/_server.ts.js +21 -0
- package/web/.svelte-kit/adapter-bun/entries/fallbacks/error.svelte.js +27 -0
- package/web/.svelte-kit/adapter-bun/entries/hooks.server.js +105 -0
- package/web/.svelte-kit/adapter-bun/entries/pages/_layout.svelte.js +499 -0
- package/web/.svelte-kit/adapter-bun/entries/pages/_page.svelte.js +3057 -0
- package/web/.svelte-kit/adapter-bun/entries/pages/login/_page.server.ts.js +15 -0
- package/web/.svelte-kit/adapter-bun/entries/pages/login/_page.svelte.js +37 -0
- package/web/.svelte-kit/adapter-bun/entries/pages/session/_target_/_page.svelte.js +653 -0
- package/web/.svelte-kit/adapter-bun/index.js +3864 -0
- package/web/.svelte-kit/adapter-bun/internal.js +13 -0
- package/web/.svelte-kit/adapter-bun/manifest-full.js +167 -0
- package/web/.svelte-kit/adapter-bun/manifest.js +171 -0
- package/web/.svelte-kit/adapter-bun/nodes/0.js +8 -0
- package/web/.svelte-kit/adapter-bun/nodes/1.js +8 -0
- package/web/.svelte-kit/adapter-bun/nodes/2.js +8 -0
- package/web/.svelte-kit/adapter-bun/nodes/3.js +10 -0
- package/web/.svelte-kit/adapter-bun/nodes/4.js +8 -0
- package/web/.svelte-kit/adapter-bun/remote-entry.js +541 -0
- package/web/.svelte-kit/adapter-node/.vite/manifest.json +223 -0
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_layout.4NiX29PU.css +1 -0
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_page.BEMzYUGV.css +1 -0
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_page.DOJn7TG7.css +1 -0
- package/web/.svelte-kit/adapter-node/chunks/context.js +121 -0
- package/web/.svelte-kit/adapter-node/chunks/environment.js +34 -0
- package/web/.svelte-kit/adapter-node/chunks/exports.js +174 -0
- package/web/.svelte-kit/adapter-node/chunks/false.js +4 -0
- package/web/.svelte-kit/adapter-node/chunks/index.js +59 -0
- package/web/.svelte-kit/adapter-node/chunks/index2.js +2710 -0
- package/web/.svelte-kit/adapter-node/chunks/internal.js +1005 -0
- package/web/.svelte-kit/adapter-node/chunks/sessions-json.js +109 -0
- package/web/.svelte-kit/adapter-node/chunks/sessions.svelte.js +67 -0
- package/web/.svelte-kit/adapter-node/chunks/shared.js +542 -0
- package/web/.svelte-kit/adapter-node/chunks/state.svelte.js +16 -0
- package/web/.svelte-kit/adapter-node/chunks/utils.js +43 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/browse/_server.ts.js +50 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/health/_server.ts.js +7 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/projects/new-session/_server.ts.js +44 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_id_/_server.ts.js +20 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_id_/kill/_server.ts.js +30 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_id_/send/_server.ts.js +22 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_server.ts.js +126 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_target_/output/_server.ts.js +14 -0
- package/web/.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js +44 -0
- package/web/.svelte-kit/adapter-node/entries/pages/_layout.svelte.js +12 -0
- package/web/.svelte-kit/adapter-node/entries/pages/_page.svelte.js +87 -0
- package/web/.svelte-kit/adapter-node/entries/pages/session/_target_/_page.svelte.js +76 -0
- package/web/.svelte-kit/adapter-node/index.js +3864 -0
- package/web/.svelte-kit/adapter-node/internal.js +13 -0
- package/web/.svelte-kit/adapter-node/manifest-full.js +103 -0
- package/web/.svelte-kit/adapter-node/manifest.js +107 -0
- package/web/.svelte-kit/adapter-node/nodes/0.js +8 -0
- package/web/.svelte-kit/adapter-node/nodes/1.js +8 -0
- package/web/.svelte-kit/adapter-node/nodes/2.js +8 -0
- package/web/.svelte-kit/adapter-node/nodes/3.js +8 -0
- package/web/.svelte-kit/adapter-node/remote-entry.js +541 -0
- package/web/.svelte-kit/ambient.d.ts +187 -0
- package/web/.svelte-kit/generated/client/app.js +33 -0
- package/web/.svelte-kit/generated/client/matchers.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/0.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/1.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/2.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/3.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/4.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/app.js +33 -0
- package/web/.svelte-kit/generated/client-optimized/matchers.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/0.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/1.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/2.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/3.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/4.js +1 -0
- package/web/.svelte-kit/generated/root.js +3 -0
- package/web/.svelte-kit/generated/root.svelte +68 -0
- package/web/.svelte-kit/generated/server/internal.js +53 -0
- package/web/.svelte-kit/non-ambient.d.ts +73 -0
- package/web/.svelte-kit/output/client/.vite/manifest.json +203 -0
- package/web/.svelte-kit/output/client/_app/immutable/assets/0.WptSHSUl.css +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/assets/2.s6Kx4oz1.css +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/assets/4.DoNWy7tW.css +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/assets/AllSessionsPanel.CGHY3HLy.css +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/-3mUPuLP.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/B5U4_V3d.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/BHwiZXRv.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/C9P-coqM.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/Cegv0r8x.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DU91Ml7U.js +3 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DmdO6ygw.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/HKNo9LID.js +5 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/U4ip-C0d.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/cgUjKIhX.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/entry/app.CGIBnoln.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/entry/start.CJk8zB1j.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/0.CqlJ9a31.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/1.BQUZh2-w.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/2.CCV1YdgF.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/3.D9tDCdq8.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/4.BqPyNkFA.js +6 -0
- package/web/.svelte-kit/output/client/_app/version.json +1 -0
- package/web/.svelte-kit/output/client/robots.txt +3 -0
- package/web/.svelte-kit/output/server/.vite/manifest.json +408 -0
- package/web/.svelte-kit/output/server/_app/immutable/assets/AllSessionsPanel.BKhqOrbV.css +1 -0
- package/web/.svelte-kit/output/server/_app/immutable/assets/_layout.WptSHSUl.css +1 -0
- package/web/.svelte-kit/output/server/_app/immutable/assets/_page.DldLgTc-.css +1 -0
- package/web/.svelte-kit/output/server/_app/immutable/assets/_page.DoNWy7tW.css +1 -0
- package/web/.svelte-kit/output/server/chunks/AllSessionsPanel.svelte_svelte_type_style_lang.js +49 -0
- package/web/.svelte-kit/output/server/chunks/alert-dialog-description.js +2670 -0
- package/web/.svelte-kit/output/server/chunks/auth.js +59 -0
- package/web/.svelte-kit/output/server/chunks/button.js +82 -0
- package/web/.svelte-kit/output/server/chunks/client.js +29 -0
- package/web/.svelte-kit/output/server/chunks/context.js +133 -0
- package/web/.svelte-kit/output/server/chunks/environment.js +34 -0
- package/web/.svelte-kit/output/server/chunks/events.js +121 -0
- package/web/.svelte-kit/output/server/chunks/exports.js +174 -0
- package/web/.svelte-kit/output/server/chunks/false.js +4 -0
- package/web/.svelte-kit/output/server/chunks/index.js +59 -0
- package/web/.svelte-kit/output/server/chunks/index2.js +2828 -0
- package/web/.svelte-kit/output/server/chunks/internal.js +920 -0
- package/web/.svelte-kit/output/server/chunks/pane.js +82 -0
- package/web/.svelte-kit/output/server/chunks/sessions-json.js +124 -0
- package/web/.svelte-kit/output/server/chunks/sessions.svelte.js +229 -0
- package/web/.svelte-kit/output/server/chunks/shared.js +542 -0
- package/web/.svelte-kit/output/server/chunks/state.svelte.js +16 -0
- package/web/.svelte-kit/output/server/chunks/utils.js +43 -0
- package/web/.svelte-kit/output/server/chunks/ws-handlers.js +782 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/auth/login/_server.ts.js +22 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/auth/logout/_server.ts.js +9 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/beads/_server.ts.js +22 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/browse/_server.ts.js +50 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/chrome/_server.ts.js +30 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/files/image/_server.ts.js +53 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/health/_server.ts.js +7 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/projects/new-session/_server.ts.js +44 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_id_/_server.ts.js +20 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_id_/kill/_server.ts.js +36 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_id_/restart/_server.ts.js +40 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_id_/screenshots/_server.ts.js +28 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_id_/send/_server.ts.js +29 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_server.ts.js +49 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_target_/output/_server.ts.js +14 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/tmux/panes/_server.ts.js +21 -0
- package/web/.svelte-kit/output/server/entries/fallbacks/error.svelte.js +27 -0
- package/web/.svelte-kit/output/server/entries/hooks.server.js +105 -0
- package/web/.svelte-kit/output/server/entries/pages/_layout.svelte.js +499 -0
- package/web/.svelte-kit/output/server/entries/pages/_page.svelte.js +3057 -0
- package/web/.svelte-kit/output/server/entries/pages/login/_page.server.ts.js +15 -0
- package/web/.svelte-kit/output/server/entries/pages/login/_page.svelte.js +37 -0
- package/web/.svelte-kit/output/server/entries/pages/session/_target_/_page.svelte.js +653 -0
- package/web/.svelte-kit/output/server/index.js +3864 -0
- package/web/.svelte-kit/output/server/internal.js +13 -0
- package/web/.svelte-kit/output/server/manifest-full.js +167 -0
- package/web/.svelte-kit/output/server/manifest.js +167 -0
- package/web/.svelte-kit/output/server/nodes/0.js +8 -0
- package/web/.svelte-kit/output/server/nodes/1.js +8 -0
- package/web/.svelte-kit/output/server/nodes/2.js +8 -0
- package/web/.svelte-kit/output/server/nodes/3.js +10 -0
- package/web/.svelte-kit/output/server/nodes/4.js +8 -0
- package/web/.svelte-kit/output/server/remote-entry.js +541 -0
- package/web/.svelte-kit/tsconfig.json +58 -0
- package/web/.svelte-kit/types/route_meta_data.json +55 -0
- package/web/.svelte-kit/types/src/routes/$types.d.ts +24 -0
- package/web/.svelte-kit/types/src/routes/api/auth/login/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/auth/logout/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/beads/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/browse/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/chrome/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/files/image/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/health/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/projects/new-session/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[id]/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[id]/kill/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[id]/restart/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[id]/screenshots/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[id]/send/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[target]/output/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/tmux/panes/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/login/$types.d.ts +25 -0
- package/web/.svelte-kit/types/src/routes/login/proxy+page.server.ts +19 -0
- package/web/.svelte-kit/types/src/routes/session/[target]/$types.d.ts +19 -0
- package/web/README.md +42 -0
- package/web/components.json +16 -0
- package/web/package.json +35 -0
- package/web/src/app.css +128 -0
- package/web/src/app.d.ts +13 -0
- package/web/src/app.html +11 -0
- package/web/src/hooks.server.ts +156 -0
- package/web/src/lib/assets/favicon.svg +1 -0
- package/web/src/lib/components/AllSessionsPanel.svelte +789 -0
- package/web/src/lib/components/BeadsPanel.svelte +146 -0
- package/web/src/lib/components/IssueItem.svelte +287 -0
- package/web/src/lib/components/ScreenshotsPanel.svelte +336 -0
- package/web/src/lib/components/SessionsSidebar.svelte +312 -0
- package/web/src/lib/components/TerminalRenderer.svelte +189 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte +18 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte +18 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte +29 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte +17 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte +20 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte +20 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte +20 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-portal.svelte +7 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte +17 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte +7 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog.svelte +7 -0
- package/web/src/lib/components/ui/alert-dialog/index.ts +37 -0
- package/web/src/lib/components/ui/badge/badge.svelte +50 -0
- package/web/src/lib/components/ui/badge/index.ts +2 -0
- package/web/src/lib/components/ui/button/button.svelte +86 -0
- package/web/src/lib/components/ui/button/index.ts +17 -0
- package/web/src/lib/components/ui/checkbox/checkbox.svelte +36 -0
- package/web/src/lib/components/ui/checkbox/index.ts +6 -0
- package/web/src/lib/components/ui/dialog/dialog-close.svelte +7 -0
- package/web/src/lib/components/ui/dialog/dialog-content.svelte +45 -0
- package/web/src/lib/components/ui/dialog/dialog-description.svelte +17 -0
- package/web/src/lib/components/ui/dialog/dialog-footer.svelte +20 -0
- package/web/src/lib/components/ui/dialog/dialog-header.svelte +20 -0
- package/web/src/lib/components/ui/dialog/dialog-overlay.svelte +20 -0
- package/web/src/lib/components/ui/dialog/dialog-portal.svelte +7 -0
- package/web/src/lib/components/ui/dialog/dialog-title.svelte +17 -0
- package/web/src/lib/components/ui/dialog/dialog-trigger.svelte +7 -0
- package/web/src/lib/components/ui/dialog/dialog.svelte +7 -0
- package/web/src/lib/components/ui/dialog/index.ts +34 -0
- package/web/src/lib/components/ui/scroll-area/index.ts +10 -0
- package/web/src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte +31 -0
- package/web/src/lib/components/ui/scroll-area/scroll-area.svelte +43 -0
- package/web/src/lib/components/ui/textarea/index.ts +7 -0
- package/web/src/lib/components/ui/textarea/textarea.svelte +23 -0
- package/web/src/lib/index.ts +1 -0
- package/web/src/lib/server/auth.ts +90 -0
- package/web/src/lib/stores/beads.svelte.ts +163 -0
- package/web/src/lib/stores/input-injection.svelte.ts +39 -0
- package/web/src/lib/stores/preferences.svelte.ts +55 -0
- package/web/src/lib/stores/sessions.svelte.ts +108 -0
- package/web/src/lib/stores/terminal.svelte.ts +96 -0
- package/web/src/lib/stores/websocket-base.svelte.ts +209 -0
- package/web/src/lib/types/terminal.ts +31 -0
- package/web/src/lib/utils/terminal-parser.ts +239 -0
- package/web/src/lib/utils.ts +13 -0
- package/web/src/routes/+layout.svelte +450 -0
- package/web/src/routes/+page.svelte +19 -0
- package/web/src/routes/api/auth/login/+server.ts +34 -0
- package/web/src/routes/api/auth/logout/+server.ts +10 -0
- package/web/src/routes/api/beads/+server.ts +28 -0
- package/web/src/routes/api/browse/+server.ts +59 -0
- package/web/src/routes/api/chrome/+server.ts +35 -0
- package/web/src/routes/api/files/image/+server.ts +64 -0
- package/web/src/routes/api/health/+server.ts +6 -0
- package/web/src/routes/api/projects/new-session/+server.ts +50 -0
- package/web/src/routes/api/sessions/+server.ts +62 -0
- package/web/src/routes/api/sessions/[id]/+server.ts +19 -0
- package/web/src/routes/api/sessions/[id]/kill/+server.ts +46 -0
- package/web/src/routes/api/sessions/[id]/restart/+server.ts +59 -0
- package/web/src/routes/api/sessions/[id]/screenshots/+server.ts +32 -0
- package/web/src/routes/api/sessions/[id]/send/+server.ts +31 -0
- package/web/src/routes/api/sessions/[target]/output/+server.ts +13 -0
- package/web/src/routes/api/tmux/panes/+server.ts +32 -0
- package/web/src/routes/login/+page.server.ts +18 -0
- package/web/src/routes/login/+page.svelte +69 -0
- package/web/src/routes/session/[target]/+page.svelte +450 -0
- package/web/static/robots.txt +3 -0
- package/web/svelte.config.js +20 -0
- package/web/tsconfig.json +20 -0
- package/web/vite.config.ts +154 -0
|
@@ -0,0 +1,920 @@
|
|
|
1
|
+
import { H as HYDRATION_ERROR, C as COMMENT_NODE, a as HYDRATION_END, g as get_next_sibling, b as HYDRATION_START, c as HYDRATION_START_ELSE, e as effect_tracking, d as get, r as render_effect, s as source, u as untrack, i as increment, q as queue_micro_task, f as active_effect, h as block, j as branch, B as Batch, p as pause_effect, k as create_text, l as defer_effect, m as set_active_effect, n as set_active_reaction, o as set_component_context, t as handle_error, v as active_reaction, w as component_context, x as move_effect, y as set_signal_status, D as DIRTY, z as schedule_effect, M as MAYBE_DIRTY, A as internal_set, E as destroy_effect, F as invoke_error_boundary, G as svelte_boundary_reset_onerror, I as EFFECT_TRANSPARENT, J as EFFECT_PRESERVED, K as BOUNDARY_EFFECT, L as init_operations, N as get_first_child, O as hydration_failed, P as clear_text_content, Q as component_root, R as is_passive_event, S as push, T as pop, U as set, V as LEGACY_PROPS, W as flushSync, X as mutable_source, Y as render } from "./index2.js";
|
|
2
|
+
import { a as array_from, d as define_property, s as setContext } from "./context.js";
|
|
3
|
+
import { a as all_registered_events, r as root_event_handles, h as handle_event_propagation } from "./events.js";
|
|
4
|
+
import "clsx";
|
|
5
|
+
import "./environment.js";
|
|
6
|
+
let public_env = {};
|
|
7
|
+
function set_private_env(environment) {
|
|
8
|
+
}
|
|
9
|
+
function set_public_env(environment) {
|
|
10
|
+
public_env = environment;
|
|
11
|
+
}
|
|
12
|
+
function hydration_mismatch(location) {
|
|
13
|
+
{
|
|
14
|
+
console.warn(`https://svelte.dev/e/hydration_mismatch`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function svelte_boundary_reset_noop() {
|
|
18
|
+
{
|
|
19
|
+
console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
let hydrating = false;
|
|
23
|
+
function set_hydrating(value) {
|
|
24
|
+
hydrating = value;
|
|
25
|
+
}
|
|
26
|
+
let hydrate_node;
|
|
27
|
+
function set_hydrate_node(node) {
|
|
28
|
+
if (node === null) {
|
|
29
|
+
hydration_mismatch();
|
|
30
|
+
throw HYDRATION_ERROR;
|
|
31
|
+
}
|
|
32
|
+
return hydrate_node = node;
|
|
33
|
+
}
|
|
34
|
+
function hydrate_next() {
|
|
35
|
+
return set_hydrate_node(get_next_sibling(hydrate_node));
|
|
36
|
+
}
|
|
37
|
+
function next(count = 1) {
|
|
38
|
+
if (hydrating) {
|
|
39
|
+
var i = count;
|
|
40
|
+
var node = hydrate_node;
|
|
41
|
+
while (i--) {
|
|
42
|
+
node = /** @type {TemplateNode} */
|
|
43
|
+
get_next_sibling(node);
|
|
44
|
+
}
|
|
45
|
+
hydrate_node = node;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function skip_nodes(remove = true) {
|
|
49
|
+
var depth = 0;
|
|
50
|
+
var node = hydrate_node;
|
|
51
|
+
while (true) {
|
|
52
|
+
if (node.nodeType === COMMENT_NODE) {
|
|
53
|
+
var data = (
|
|
54
|
+
/** @type {Comment} */
|
|
55
|
+
node.data
|
|
56
|
+
);
|
|
57
|
+
if (data === HYDRATION_END) {
|
|
58
|
+
if (depth === 0) return node;
|
|
59
|
+
depth -= 1;
|
|
60
|
+
} else if (data === HYDRATION_START || data === HYDRATION_START_ELSE) {
|
|
61
|
+
depth += 1;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
var next2 = (
|
|
65
|
+
/** @type {TemplateNode} */
|
|
66
|
+
get_next_sibling(node)
|
|
67
|
+
);
|
|
68
|
+
if (remove) node.remove();
|
|
69
|
+
node = next2;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function createSubscriber(start) {
|
|
73
|
+
let subscribers = 0;
|
|
74
|
+
let version = source(0);
|
|
75
|
+
let stop;
|
|
76
|
+
return () => {
|
|
77
|
+
if (effect_tracking()) {
|
|
78
|
+
get(version);
|
|
79
|
+
render_effect(() => {
|
|
80
|
+
if (subscribers === 0) {
|
|
81
|
+
stop = untrack(() => start(() => increment(version)));
|
|
82
|
+
}
|
|
83
|
+
subscribers += 1;
|
|
84
|
+
return () => {
|
|
85
|
+
queue_micro_task(() => {
|
|
86
|
+
subscribers -= 1;
|
|
87
|
+
if (subscribers === 0) {
|
|
88
|
+
stop?.();
|
|
89
|
+
stop = void 0;
|
|
90
|
+
increment(version);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT;
|
|
99
|
+
function boundary(node, props, children) {
|
|
100
|
+
new Boundary(node, props, children);
|
|
101
|
+
}
|
|
102
|
+
class Boundary {
|
|
103
|
+
/** @type {Boundary | null} */
|
|
104
|
+
parent;
|
|
105
|
+
is_pending = false;
|
|
106
|
+
/** @type {TemplateNode} */
|
|
107
|
+
#anchor;
|
|
108
|
+
/** @type {TemplateNode | null} */
|
|
109
|
+
#hydrate_open = hydrating ? hydrate_node : null;
|
|
110
|
+
/** @type {BoundaryProps} */
|
|
111
|
+
#props;
|
|
112
|
+
/** @type {((anchor: Node) => void)} */
|
|
113
|
+
#children;
|
|
114
|
+
/** @type {Effect} */
|
|
115
|
+
#effect;
|
|
116
|
+
/** @type {Effect | null} */
|
|
117
|
+
#main_effect = null;
|
|
118
|
+
/** @type {Effect | null} */
|
|
119
|
+
#pending_effect = null;
|
|
120
|
+
/** @type {Effect | null} */
|
|
121
|
+
#failed_effect = null;
|
|
122
|
+
/** @type {DocumentFragment | null} */
|
|
123
|
+
#offscreen_fragment = null;
|
|
124
|
+
/** @type {TemplateNode | null} */
|
|
125
|
+
#pending_anchor = null;
|
|
126
|
+
#local_pending_count = 0;
|
|
127
|
+
#pending_count = 0;
|
|
128
|
+
#pending_count_update_queued = false;
|
|
129
|
+
#is_creating_fallback = false;
|
|
130
|
+
/** @type {Set<Effect>} */
|
|
131
|
+
#dirty_effects = /* @__PURE__ */ new Set();
|
|
132
|
+
/** @type {Set<Effect>} */
|
|
133
|
+
#maybe_dirty_effects = /* @__PURE__ */ new Set();
|
|
134
|
+
/**
|
|
135
|
+
* A source containing the number of pending async deriveds/expressions.
|
|
136
|
+
* Only created if `$effect.pending()` is used inside the boundary,
|
|
137
|
+
* otherwise updating the source results in needless `Batch.ensure()`
|
|
138
|
+
* calls followed by no-op flushes
|
|
139
|
+
* @type {Source<number> | null}
|
|
140
|
+
*/
|
|
141
|
+
#effect_pending = null;
|
|
142
|
+
#effect_pending_subscriber = createSubscriber(() => {
|
|
143
|
+
this.#effect_pending = source(this.#local_pending_count);
|
|
144
|
+
return () => {
|
|
145
|
+
this.#effect_pending = null;
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
/**
|
|
149
|
+
* @param {TemplateNode} node
|
|
150
|
+
* @param {BoundaryProps} props
|
|
151
|
+
* @param {((anchor: Node) => void)} children
|
|
152
|
+
*/
|
|
153
|
+
constructor(node, props, children) {
|
|
154
|
+
this.#anchor = node;
|
|
155
|
+
this.#props = props;
|
|
156
|
+
this.#children = children;
|
|
157
|
+
this.parent = /** @type {Effect} */
|
|
158
|
+
active_effect.b;
|
|
159
|
+
this.is_pending = !!this.#props.pending;
|
|
160
|
+
this.#effect = block(() => {
|
|
161
|
+
active_effect.b = this;
|
|
162
|
+
if (hydrating) {
|
|
163
|
+
const comment = this.#hydrate_open;
|
|
164
|
+
hydrate_next();
|
|
165
|
+
const server_rendered_pending = (
|
|
166
|
+
/** @type {Comment} */
|
|
167
|
+
comment.nodeType === COMMENT_NODE && /** @type {Comment} */
|
|
168
|
+
comment.data === HYDRATION_START_ELSE
|
|
169
|
+
);
|
|
170
|
+
if (server_rendered_pending) {
|
|
171
|
+
this.#hydrate_pending_content();
|
|
172
|
+
} else {
|
|
173
|
+
this.#hydrate_resolved_content();
|
|
174
|
+
if (this.#pending_count === 0) {
|
|
175
|
+
this.is_pending = false;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
} else {
|
|
179
|
+
var anchor = this.#get_anchor();
|
|
180
|
+
try {
|
|
181
|
+
this.#main_effect = branch(() => children(anchor));
|
|
182
|
+
} catch (error) {
|
|
183
|
+
this.error(error);
|
|
184
|
+
}
|
|
185
|
+
if (this.#pending_count > 0) {
|
|
186
|
+
this.#show_pending_snippet();
|
|
187
|
+
} else {
|
|
188
|
+
this.is_pending = false;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return () => {
|
|
192
|
+
this.#pending_anchor?.remove();
|
|
193
|
+
};
|
|
194
|
+
}, flags);
|
|
195
|
+
if (hydrating) {
|
|
196
|
+
this.#anchor = hydrate_node;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
#hydrate_resolved_content() {
|
|
200
|
+
try {
|
|
201
|
+
this.#main_effect = branch(() => this.#children(this.#anchor));
|
|
202
|
+
} catch (error) {
|
|
203
|
+
this.error(error);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
#hydrate_pending_content() {
|
|
207
|
+
const pending = this.#props.pending;
|
|
208
|
+
if (!pending) return;
|
|
209
|
+
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
210
|
+
queue_micro_task(() => {
|
|
211
|
+
var anchor = this.#get_anchor();
|
|
212
|
+
this.#main_effect = this.#run(() => {
|
|
213
|
+
Batch.ensure();
|
|
214
|
+
return branch(() => this.#children(anchor));
|
|
215
|
+
});
|
|
216
|
+
if (this.#pending_count > 0) {
|
|
217
|
+
this.#show_pending_snippet();
|
|
218
|
+
} else {
|
|
219
|
+
pause_effect(
|
|
220
|
+
/** @type {Effect} */
|
|
221
|
+
this.#pending_effect,
|
|
222
|
+
() => {
|
|
223
|
+
this.#pending_effect = null;
|
|
224
|
+
}
|
|
225
|
+
);
|
|
226
|
+
this.is_pending = false;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
#get_anchor() {
|
|
231
|
+
var anchor = this.#anchor;
|
|
232
|
+
if (this.is_pending) {
|
|
233
|
+
this.#pending_anchor = create_text();
|
|
234
|
+
this.#anchor.before(this.#pending_anchor);
|
|
235
|
+
anchor = this.#pending_anchor;
|
|
236
|
+
}
|
|
237
|
+
return anchor;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Defer an effect inside a pending boundary until the boundary resolves
|
|
241
|
+
* @param {Effect} effect
|
|
242
|
+
*/
|
|
243
|
+
defer_effect(effect) {
|
|
244
|
+
defer_effect(effect, this.#dirty_effects, this.#maybe_dirty_effects);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
248
|
+
* @returns {boolean}
|
|
249
|
+
*/
|
|
250
|
+
is_rendered() {
|
|
251
|
+
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
252
|
+
}
|
|
253
|
+
has_pending_snippet() {
|
|
254
|
+
return !!this.#props.pending;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* @param {() => Effect | null} fn
|
|
258
|
+
*/
|
|
259
|
+
#run(fn) {
|
|
260
|
+
var previous_effect = active_effect;
|
|
261
|
+
var previous_reaction = active_reaction;
|
|
262
|
+
var previous_ctx = component_context;
|
|
263
|
+
set_active_effect(this.#effect);
|
|
264
|
+
set_active_reaction(this.#effect);
|
|
265
|
+
set_component_context(this.#effect.ctx);
|
|
266
|
+
try {
|
|
267
|
+
return fn();
|
|
268
|
+
} catch (e) {
|
|
269
|
+
handle_error(e);
|
|
270
|
+
return null;
|
|
271
|
+
} finally {
|
|
272
|
+
set_active_effect(previous_effect);
|
|
273
|
+
set_active_reaction(previous_reaction);
|
|
274
|
+
set_component_context(previous_ctx);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
#show_pending_snippet() {
|
|
278
|
+
const pending = (
|
|
279
|
+
/** @type {(anchor: Node) => void} */
|
|
280
|
+
this.#props.pending
|
|
281
|
+
);
|
|
282
|
+
if (this.#main_effect !== null) {
|
|
283
|
+
this.#offscreen_fragment = document.createDocumentFragment();
|
|
284
|
+
this.#offscreen_fragment.append(
|
|
285
|
+
/** @type {TemplateNode} */
|
|
286
|
+
this.#pending_anchor
|
|
287
|
+
);
|
|
288
|
+
move_effect(this.#main_effect, this.#offscreen_fragment);
|
|
289
|
+
}
|
|
290
|
+
if (this.#pending_effect === null) {
|
|
291
|
+
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Updates the pending count associated with the currently visible pending snippet,
|
|
296
|
+
* if any, such that we can replace the snippet with content once work is done
|
|
297
|
+
* @param {1 | -1} d
|
|
298
|
+
*/
|
|
299
|
+
#update_pending_count(d) {
|
|
300
|
+
if (!this.has_pending_snippet()) {
|
|
301
|
+
if (this.parent) {
|
|
302
|
+
this.parent.#update_pending_count(d);
|
|
303
|
+
}
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
this.#pending_count += d;
|
|
307
|
+
if (this.#pending_count === 0) {
|
|
308
|
+
this.is_pending = false;
|
|
309
|
+
for (const e of this.#dirty_effects) {
|
|
310
|
+
set_signal_status(e, DIRTY);
|
|
311
|
+
schedule_effect(e);
|
|
312
|
+
}
|
|
313
|
+
for (const e of this.#maybe_dirty_effects) {
|
|
314
|
+
set_signal_status(e, MAYBE_DIRTY);
|
|
315
|
+
schedule_effect(e);
|
|
316
|
+
}
|
|
317
|
+
this.#dirty_effects.clear();
|
|
318
|
+
this.#maybe_dirty_effects.clear();
|
|
319
|
+
if (this.#pending_effect) {
|
|
320
|
+
pause_effect(this.#pending_effect, () => {
|
|
321
|
+
this.#pending_effect = null;
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
if (this.#offscreen_fragment) {
|
|
325
|
+
this.#anchor.before(this.#offscreen_fragment);
|
|
326
|
+
this.#offscreen_fragment = null;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
332
|
+
* and controls when the current `pending` snippet (if any) is removed.
|
|
333
|
+
* Do not call from inside the class
|
|
334
|
+
* @param {1 | -1} d
|
|
335
|
+
*/
|
|
336
|
+
update_pending_count(d) {
|
|
337
|
+
this.#update_pending_count(d);
|
|
338
|
+
this.#local_pending_count += d;
|
|
339
|
+
if (!this.#effect_pending || this.#pending_count_update_queued) return;
|
|
340
|
+
this.#pending_count_update_queued = true;
|
|
341
|
+
queue_micro_task(() => {
|
|
342
|
+
this.#pending_count_update_queued = false;
|
|
343
|
+
if (this.#effect_pending) {
|
|
344
|
+
internal_set(this.#effect_pending, this.#local_pending_count);
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
get_effect_pending() {
|
|
349
|
+
this.#effect_pending_subscriber();
|
|
350
|
+
return get(
|
|
351
|
+
/** @type {Source<number>} */
|
|
352
|
+
this.#effect_pending
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
/** @param {unknown} error */
|
|
356
|
+
error(error) {
|
|
357
|
+
var onerror = this.#props.onerror;
|
|
358
|
+
let failed = this.#props.failed;
|
|
359
|
+
if (this.#is_creating_fallback || !onerror && !failed) {
|
|
360
|
+
throw error;
|
|
361
|
+
}
|
|
362
|
+
if (this.#main_effect) {
|
|
363
|
+
destroy_effect(this.#main_effect);
|
|
364
|
+
this.#main_effect = null;
|
|
365
|
+
}
|
|
366
|
+
if (this.#pending_effect) {
|
|
367
|
+
destroy_effect(this.#pending_effect);
|
|
368
|
+
this.#pending_effect = null;
|
|
369
|
+
}
|
|
370
|
+
if (this.#failed_effect) {
|
|
371
|
+
destroy_effect(this.#failed_effect);
|
|
372
|
+
this.#failed_effect = null;
|
|
373
|
+
}
|
|
374
|
+
if (hydrating) {
|
|
375
|
+
set_hydrate_node(
|
|
376
|
+
/** @type {TemplateNode} */
|
|
377
|
+
this.#hydrate_open
|
|
378
|
+
);
|
|
379
|
+
next();
|
|
380
|
+
set_hydrate_node(skip_nodes());
|
|
381
|
+
}
|
|
382
|
+
var did_reset = false;
|
|
383
|
+
var calling_on_error = false;
|
|
384
|
+
const reset = () => {
|
|
385
|
+
if (did_reset) {
|
|
386
|
+
svelte_boundary_reset_noop();
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
did_reset = true;
|
|
390
|
+
if (calling_on_error) {
|
|
391
|
+
svelte_boundary_reset_onerror();
|
|
392
|
+
}
|
|
393
|
+
Batch.ensure();
|
|
394
|
+
this.#local_pending_count = 0;
|
|
395
|
+
if (this.#failed_effect !== null) {
|
|
396
|
+
pause_effect(this.#failed_effect, () => {
|
|
397
|
+
this.#failed_effect = null;
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
this.is_pending = this.has_pending_snippet();
|
|
401
|
+
this.#main_effect = this.#run(() => {
|
|
402
|
+
this.#is_creating_fallback = false;
|
|
403
|
+
return branch(() => this.#children(this.#anchor));
|
|
404
|
+
});
|
|
405
|
+
if (this.#pending_count > 0) {
|
|
406
|
+
this.#show_pending_snippet();
|
|
407
|
+
} else {
|
|
408
|
+
this.is_pending = false;
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
queue_micro_task(() => {
|
|
412
|
+
try {
|
|
413
|
+
calling_on_error = true;
|
|
414
|
+
onerror?.(error, reset);
|
|
415
|
+
calling_on_error = false;
|
|
416
|
+
} catch (error2) {
|
|
417
|
+
invoke_error_boundary(error2, this.#effect && this.#effect.parent);
|
|
418
|
+
}
|
|
419
|
+
if (failed) {
|
|
420
|
+
this.#failed_effect = this.#run(() => {
|
|
421
|
+
Batch.ensure();
|
|
422
|
+
this.#is_creating_fallback = true;
|
|
423
|
+
try {
|
|
424
|
+
return branch(() => {
|
|
425
|
+
failed(
|
|
426
|
+
this.#anchor,
|
|
427
|
+
() => error,
|
|
428
|
+
() => reset
|
|
429
|
+
);
|
|
430
|
+
});
|
|
431
|
+
} catch (error2) {
|
|
432
|
+
invoke_error_boundary(
|
|
433
|
+
error2,
|
|
434
|
+
/** @type {Effect} */
|
|
435
|
+
this.#effect.parent
|
|
436
|
+
);
|
|
437
|
+
return null;
|
|
438
|
+
} finally {
|
|
439
|
+
this.#is_creating_fallback = false;
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
function assign_nodes(start, end) {
|
|
447
|
+
var effect = (
|
|
448
|
+
/** @type {Effect} */
|
|
449
|
+
active_effect
|
|
450
|
+
);
|
|
451
|
+
if (effect.nodes === null) {
|
|
452
|
+
effect.nodes = { start, end, a: null, t: null };
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
function mount(component, options2) {
|
|
456
|
+
return _mount(component, options2);
|
|
457
|
+
}
|
|
458
|
+
function hydrate(component, options2) {
|
|
459
|
+
init_operations();
|
|
460
|
+
options2.intro = options2.intro ?? false;
|
|
461
|
+
const target = options2.target;
|
|
462
|
+
const was_hydrating = hydrating;
|
|
463
|
+
const previous_hydrate_node = hydrate_node;
|
|
464
|
+
try {
|
|
465
|
+
var anchor = get_first_child(target);
|
|
466
|
+
while (anchor && (anchor.nodeType !== COMMENT_NODE || /** @type {Comment} */
|
|
467
|
+
anchor.data !== HYDRATION_START)) {
|
|
468
|
+
anchor = get_next_sibling(anchor);
|
|
469
|
+
}
|
|
470
|
+
if (!anchor) {
|
|
471
|
+
throw HYDRATION_ERROR;
|
|
472
|
+
}
|
|
473
|
+
set_hydrating(true);
|
|
474
|
+
set_hydrate_node(
|
|
475
|
+
/** @type {Comment} */
|
|
476
|
+
anchor
|
|
477
|
+
);
|
|
478
|
+
const instance = _mount(component, { ...options2, anchor });
|
|
479
|
+
set_hydrating(false);
|
|
480
|
+
return (
|
|
481
|
+
/** @type {Exports} */
|
|
482
|
+
instance
|
|
483
|
+
);
|
|
484
|
+
} catch (error) {
|
|
485
|
+
if (error instanceof Error && error.message.split("\n").some((line) => line.startsWith("https://svelte.dev/e/"))) {
|
|
486
|
+
throw error;
|
|
487
|
+
}
|
|
488
|
+
if (error !== HYDRATION_ERROR) {
|
|
489
|
+
console.warn("Failed to hydrate: ", error);
|
|
490
|
+
}
|
|
491
|
+
if (options2.recover === false) {
|
|
492
|
+
hydration_failed();
|
|
493
|
+
}
|
|
494
|
+
init_operations();
|
|
495
|
+
clear_text_content(target);
|
|
496
|
+
set_hydrating(false);
|
|
497
|
+
return mount(component, options2);
|
|
498
|
+
} finally {
|
|
499
|
+
set_hydrating(was_hydrating);
|
|
500
|
+
set_hydrate_node(previous_hydrate_node);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
const document_listeners = /* @__PURE__ */ new Map();
|
|
504
|
+
function _mount(Component, { target, anchor, props = {}, events, context, intro = true }) {
|
|
505
|
+
init_operations();
|
|
506
|
+
var registered_events = /* @__PURE__ */ new Set();
|
|
507
|
+
var event_handle = (events2) => {
|
|
508
|
+
for (var i = 0; i < events2.length; i++) {
|
|
509
|
+
var event_name = events2[i];
|
|
510
|
+
if (registered_events.has(event_name)) continue;
|
|
511
|
+
registered_events.add(event_name);
|
|
512
|
+
var passive = is_passive_event(event_name);
|
|
513
|
+
target.addEventListener(event_name, handle_event_propagation, { passive });
|
|
514
|
+
var n = document_listeners.get(event_name);
|
|
515
|
+
if (n === void 0) {
|
|
516
|
+
document.addEventListener(event_name, handle_event_propagation, { passive });
|
|
517
|
+
document_listeners.set(event_name, 1);
|
|
518
|
+
} else {
|
|
519
|
+
document_listeners.set(event_name, n + 1);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
event_handle(array_from(all_registered_events));
|
|
524
|
+
root_event_handles.add(event_handle);
|
|
525
|
+
var component = void 0;
|
|
526
|
+
var unmount2 = component_root(() => {
|
|
527
|
+
var anchor_node = anchor ?? target.appendChild(create_text());
|
|
528
|
+
boundary(
|
|
529
|
+
/** @type {TemplateNode} */
|
|
530
|
+
anchor_node,
|
|
531
|
+
{
|
|
532
|
+
pending: () => {
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
(anchor_node2) => {
|
|
536
|
+
if (context) {
|
|
537
|
+
push({});
|
|
538
|
+
var ctx = (
|
|
539
|
+
/** @type {ComponentContext} */
|
|
540
|
+
component_context
|
|
541
|
+
);
|
|
542
|
+
ctx.c = context;
|
|
543
|
+
}
|
|
544
|
+
if (events) {
|
|
545
|
+
props.$$events = events;
|
|
546
|
+
}
|
|
547
|
+
if (hydrating) {
|
|
548
|
+
assign_nodes(
|
|
549
|
+
/** @type {TemplateNode} */
|
|
550
|
+
anchor_node2,
|
|
551
|
+
null
|
|
552
|
+
);
|
|
553
|
+
}
|
|
554
|
+
component = Component(anchor_node2, props) || {};
|
|
555
|
+
if (hydrating) {
|
|
556
|
+
active_effect.nodes.end = hydrate_node;
|
|
557
|
+
if (hydrate_node === null || hydrate_node.nodeType !== COMMENT_NODE || /** @type {Comment} */
|
|
558
|
+
hydrate_node.data !== HYDRATION_END) {
|
|
559
|
+
hydration_mismatch();
|
|
560
|
+
throw HYDRATION_ERROR;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
if (context) {
|
|
564
|
+
pop();
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
);
|
|
568
|
+
return () => {
|
|
569
|
+
for (var event_name of registered_events) {
|
|
570
|
+
target.removeEventListener(event_name, handle_event_propagation);
|
|
571
|
+
var n = (
|
|
572
|
+
/** @type {number} */
|
|
573
|
+
document_listeners.get(event_name)
|
|
574
|
+
);
|
|
575
|
+
if (--n === 0) {
|
|
576
|
+
document.removeEventListener(event_name, handle_event_propagation);
|
|
577
|
+
document_listeners.delete(event_name);
|
|
578
|
+
} else {
|
|
579
|
+
document_listeners.set(event_name, n);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
root_event_handles.delete(event_handle);
|
|
583
|
+
if (anchor_node !== anchor) {
|
|
584
|
+
anchor_node.parentNode?.removeChild(anchor_node);
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
});
|
|
588
|
+
mounted_components.set(component, unmount2);
|
|
589
|
+
return component;
|
|
590
|
+
}
|
|
591
|
+
let mounted_components = /* @__PURE__ */ new WeakMap();
|
|
592
|
+
function unmount(component, options2) {
|
|
593
|
+
const fn = mounted_components.get(component);
|
|
594
|
+
if (fn) {
|
|
595
|
+
mounted_components.delete(component);
|
|
596
|
+
return fn(options2);
|
|
597
|
+
}
|
|
598
|
+
return Promise.resolve();
|
|
599
|
+
}
|
|
600
|
+
function asClassComponent$1(component) {
|
|
601
|
+
return class extends Svelte4Component {
|
|
602
|
+
/** @param {any} options */
|
|
603
|
+
constructor(options2) {
|
|
604
|
+
super({
|
|
605
|
+
component,
|
|
606
|
+
...options2
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
class Svelte4Component {
|
|
612
|
+
/** @type {any} */
|
|
613
|
+
#events;
|
|
614
|
+
/** @type {Record<string, any>} */
|
|
615
|
+
#instance;
|
|
616
|
+
/**
|
|
617
|
+
* @param {ComponentConstructorOptions & {
|
|
618
|
+
* component: any;
|
|
619
|
+
* }} options
|
|
620
|
+
*/
|
|
621
|
+
constructor(options2) {
|
|
622
|
+
var sources = /* @__PURE__ */ new Map();
|
|
623
|
+
var add_source = (key, value) => {
|
|
624
|
+
var s = mutable_source(value, false, false);
|
|
625
|
+
sources.set(key, s);
|
|
626
|
+
return s;
|
|
627
|
+
};
|
|
628
|
+
const props = new Proxy(
|
|
629
|
+
{ ...options2.props || {}, $$events: {} },
|
|
630
|
+
{
|
|
631
|
+
get(target, prop) {
|
|
632
|
+
return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
|
633
|
+
},
|
|
634
|
+
has(target, prop) {
|
|
635
|
+
if (prop === LEGACY_PROPS) return true;
|
|
636
|
+
get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
|
637
|
+
return Reflect.has(target, prop);
|
|
638
|
+
},
|
|
639
|
+
set(target, prop, value) {
|
|
640
|
+
set(sources.get(prop) ?? add_source(prop, value), value);
|
|
641
|
+
return Reflect.set(target, prop, value);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
);
|
|
645
|
+
this.#instance = (options2.hydrate ? hydrate : mount)(options2.component, {
|
|
646
|
+
target: options2.target,
|
|
647
|
+
anchor: options2.anchor,
|
|
648
|
+
props,
|
|
649
|
+
context: options2.context,
|
|
650
|
+
intro: options2.intro ?? false,
|
|
651
|
+
recover: options2.recover
|
|
652
|
+
});
|
|
653
|
+
if (!options2?.props?.$$host || options2.sync === false) {
|
|
654
|
+
flushSync();
|
|
655
|
+
}
|
|
656
|
+
this.#events = props.$$events;
|
|
657
|
+
for (const key of Object.keys(this.#instance)) {
|
|
658
|
+
if (key === "$set" || key === "$destroy" || key === "$on") continue;
|
|
659
|
+
define_property(this, key, {
|
|
660
|
+
get() {
|
|
661
|
+
return this.#instance[key];
|
|
662
|
+
},
|
|
663
|
+
/** @param {any} value */
|
|
664
|
+
set(value) {
|
|
665
|
+
this.#instance[key] = value;
|
|
666
|
+
},
|
|
667
|
+
enumerable: true
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
this.#instance.$set = /** @param {Record<string, any>} next */
|
|
671
|
+
(next2) => {
|
|
672
|
+
Object.assign(props, next2);
|
|
673
|
+
};
|
|
674
|
+
this.#instance.$destroy = () => {
|
|
675
|
+
unmount(this.#instance);
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
/** @param {Record<string, any>} props */
|
|
679
|
+
$set(props) {
|
|
680
|
+
this.#instance.$set(props);
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* @param {string} event
|
|
684
|
+
* @param {(...args: any[]) => any} callback
|
|
685
|
+
* @returns {any}
|
|
686
|
+
*/
|
|
687
|
+
$on(event, callback) {
|
|
688
|
+
this.#events[event] = this.#events[event] || [];
|
|
689
|
+
const cb = (...args) => callback.call(this, ...args);
|
|
690
|
+
this.#events[event].push(cb);
|
|
691
|
+
return () => {
|
|
692
|
+
this.#events[event] = this.#events[event].filter(
|
|
693
|
+
/** @param {any} fn */
|
|
694
|
+
(fn) => fn !== cb
|
|
695
|
+
);
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
$destroy() {
|
|
699
|
+
this.#instance.$destroy();
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
let read_implementation = null;
|
|
703
|
+
function set_read_implementation(fn) {
|
|
704
|
+
read_implementation = fn;
|
|
705
|
+
}
|
|
706
|
+
function set_manifest(_) {
|
|
707
|
+
}
|
|
708
|
+
function asClassComponent(component) {
|
|
709
|
+
const component_constructor = asClassComponent$1(component);
|
|
710
|
+
const _render = (props, { context, csp } = {}) => {
|
|
711
|
+
const result = render(component, { props, context, csp });
|
|
712
|
+
const munged = Object.defineProperties(
|
|
713
|
+
/** @type {LegacyRenderResult & PromiseLike<LegacyRenderResult>} */
|
|
714
|
+
{},
|
|
715
|
+
{
|
|
716
|
+
css: {
|
|
717
|
+
value: { code: "", map: null }
|
|
718
|
+
},
|
|
719
|
+
head: {
|
|
720
|
+
get: () => result.head
|
|
721
|
+
},
|
|
722
|
+
html: {
|
|
723
|
+
get: () => result.body
|
|
724
|
+
},
|
|
725
|
+
then: {
|
|
726
|
+
/**
|
|
727
|
+
* this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
|
|
728
|
+
*
|
|
729
|
+
* @template TResult1
|
|
730
|
+
* @template [TResult2=never]
|
|
731
|
+
* @param { (value: LegacyRenderResult) => TResult1 } onfulfilled
|
|
732
|
+
* @param { (reason: unknown) => TResult2 } onrejected
|
|
733
|
+
*/
|
|
734
|
+
value: (onfulfilled, onrejected) => {
|
|
735
|
+
{
|
|
736
|
+
const user_result = onfulfilled({
|
|
737
|
+
css: munged.css,
|
|
738
|
+
head: munged.head,
|
|
739
|
+
html: munged.html
|
|
740
|
+
});
|
|
741
|
+
return Promise.resolve(user_result);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
);
|
|
747
|
+
return munged;
|
|
748
|
+
};
|
|
749
|
+
component_constructor.render = _render;
|
|
750
|
+
return component_constructor;
|
|
751
|
+
}
|
|
752
|
+
function Root($$renderer, $$props) {
|
|
753
|
+
$$renderer.component(($$renderer2) => {
|
|
754
|
+
let {
|
|
755
|
+
stores,
|
|
756
|
+
page,
|
|
757
|
+
constructors,
|
|
758
|
+
components = [],
|
|
759
|
+
form,
|
|
760
|
+
data_0 = null,
|
|
761
|
+
data_1 = null
|
|
762
|
+
} = $$props;
|
|
763
|
+
{
|
|
764
|
+
setContext("__svelte__", stores);
|
|
765
|
+
}
|
|
766
|
+
{
|
|
767
|
+
stores.page.set(page);
|
|
768
|
+
}
|
|
769
|
+
const Pyramid_1 = constructors[1];
|
|
770
|
+
if (constructors[1]) {
|
|
771
|
+
$$renderer2.push("<!--[-->");
|
|
772
|
+
const Pyramid_0 = constructors[0];
|
|
773
|
+
$$renderer2.push(`<!---->`);
|
|
774
|
+
Pyramid_0?.($$renderer2, {
|
|
775
|
+
data: data_0,
|
|
776
|
+
form,
|
|
777
|
+
params: page.params,
|
|
778
|
+
children: ($$renderer3) => {
|
|
779
|
+
$$renderer3.push(`<!---->`);
|
|
780
|
+
Pyramid_1?.($$renderer3, { data: data_1, form, params: page.params });
|
|
781
|
+
$$renderer3.push(`<!---->`);
|
|
782
|
+
},
|
|
783
|
+
$$slots: { default: true }
|
|
784
|
+
});
|
|
785
|
+
$$renderer2.push(`<!---->`);
|
|
786
|
+
} else {
|
|
787
|
+
$$renderer2.push("<!--[!-->");
|
|
788
|
+
const Pyramid_0 = constructors[0];
|
|
789
|
+
$$renderer2.push(`<!---->`);
|
|
790
|
+
Pyramid_0?.($$renderer2, { data: data_0, form, params: page.params });
|
|
791
|
+
$$renderer2.push(`<!---->`);
|
|
792
|
+
}
|
|
793
|
+
$$renderer2.push(`<!--]--> `);
|
|
794
|
+
{
|
|
795
|
+
$$renderer2.push("<!--[!-->");
|
|
796
|
+
}
|
|
797
|
+
$$renderer2.push(`<!--]-->`);
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
const root = asClassComponent(Root);
|
|
801
|
+
const options = {
|
|
802
|
+
app_template_contains_nonce: false,
|
|
803
|
+
async: false,
|
|
804
|
+
csp: { "mode": "auto", "directives": { "upgrade-insecure-requests": false, "block-all-mixed-content": false }, "reportOnly": { "upgrade-insecure-requests": false, "block-all-mixed-content": false } },
|
|
805
|
+
csrf_check_origin: true,
|
|
806
|
+
csrf_trusted_origins: [],
|
|
807
|
+
embedded: false,
|
|
808
|
+
env_public_prefix: "PUBLIC_",
|
|
809
|
+
env_private_prefix: "",
|
|
810
|
+
hash_routing: false,
|
|
811
|
+
hooks: null,
|
|
812
|
+
// added lazily, via `get_hooks`
|
|
813
|
+
preload_strategy: "modulepreload",
|
|
814
|
+
root,
|
|
815
|
+
service_worker: false,
|
|
816
|
+
service_worker_options: void 0,
|
|
817
|
+
templates: {
|
|
818
|
+
app: ({ head, body, assets, nonce, env }) => '<!doctype html>\n<html lang="en" class="dark">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n ' + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
|
|
819
|
+
error: ({ status, message }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
|
|
820
|
+
|
|
821
|
+
<style>
|
|
822
|
+
body {
|
|
823
|
+
--bg: white;
|
|
824
|
+
--fg: #222;
|
|
825
|
+
--divider: #ccc;
|
|
826
|
+
background: var(--bg);
|
|
827
|
+
color: var(--fg);
|
|
828
|
+
font-family:
|
|
829
|
+
system-ui,
|
|
830
|
+
-apple-system,
|
|
831
|
+
BlinkMacSystemFont,
|
|
832
|
+
'Segoe UI',
|
|
833
|
+
Roboto,
|
|
834
|
+
Oxygen,
|
|
835
|
+
Ubuntu,
|
|
836
|
+
Cantarell,
|
|
837
|
+
'Open Sans',
|
|
838
|
+
'Helvetica Neue',
|
|
839
|
+
sans-serif;
|
|
840
|
+
display: flex;
|
|
841
|
+
align-items: center;
|
|
842
|
+
justify-content: center;
|
|
843
|
+
height: 100vh;
|
|
844
|
+
margin: 0;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.error {
|
|
848
|
+
display: flex;
|
|
849
|
+
align-items: center;
|
|
850
|
+
max-width: 32rem;
|
|
851
|
+
margin: 0 1rem;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.status {
|
|
855
|
+
font-weight: 200;
|
|
856
|
+
font-size: 3rem;
|
|
857
|
+
line-height: 1;
|
|
858
|
+
position: relative;
|
|
859
|
+
top: -0.05rem;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.message {
|
|
863
|
+
border-left: 1px solid var(--divider);
|
|
864
|
+
padding: 0 0 0 1rem;
|
|
865
|
+
margin: 0 0 0 1rem;
|
|
866
|
+
min-height: 2.5rem;
|
|
867
|
+
display: flex;
|
|
868
|
+
align-items: center;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.message h1 {
|
|
872
|
+
font-weight: 400;
|
|
873
|
+
font-size: 1em;
|
|
874
|
+
margin: 0;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
@media (prefers-color-scheme: dark) {
|
|
878
|
+
body {
|
|
879
|
+
--bg: #222;
|
|
880
|
+
--fg: #ddd;
|
|
881
|
+
--divider: #666;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
</style>
|
|
885
|
+
</head>
|
|
886
|
+
<body>
|
|
887
|
+
<div class="error">
|
|
888
|
+
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
|
889
|
+
},
|
|
890
|
+
version_hash: "iy513l"
|
|
891
|
+
};
|
|
892
|
+
async function get_hooks() {
|
|
893
|
+
let handle;
|
|
894
|
+
let handleFetch;
|
|
895
|
+
let handleError;
|
|
896
|
+
let handleValidationError;
|
|
897
|
+
let init;
|
|
898
|
+
({ handle, handleFetch, handleError, handleValidationError, init } = await import("../entries/hooks.server.js"));
|
|
899
|
+
let reroute;
|
|
900
|
+
let transport;
|
|
901
|
+
return {
|
|
902
|
+
handle,
|
|
903
|
+
handleFetch,
|
|
904
|
+
handleError,
|
|
905
|
+
handleValidationError,
|
|
906
|
+
init,
|
|
907
|
+
reroute,
|
|
908
|
+
transport
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
export {
|
|
912
|
+
set_public_env as a,
|
|
913
|
+
set_read_implementation as b,
|
|
914
|
+
set_manifest as c,
|
|
915
|
+
get_hooks as g,
|
|
916
|
+
options as o,
|
|
917
|
+
public_env as p,
|
|
918
|
+
read_implementation as r,
|
|
919
|
+
set_private_env as s
|
|
920
|
+
};
|