@juspay/shooter 1.0.0 → 1.2.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/.claude/hooks/notifier.cjs +117 -33
- package/.claude/settings.json +14 -14
- package/README.md +116 -84
- package/bin/shooter.cjs +471 -102
- package/build/client/_app/immutable/assets/{0.CM9Hl6d-.css → 0.BhZOCxO4.css} +1 -1
- package/build/client/_app/immutable/assets/0.BhZOCxO4.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BhZOCxO4.css.gz +0 -0
- package/build/client/_app/immutable/assets/1.BYutk3aU.css +1 -0
- package/build/client/_app/immutable/assets/1.BYutk3aU.css.br +0 -0
- package/build/client/_app/immutable/assets/1.BYutk3aU.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.CAShZ7lQ.css.gz +0 -0
- package/build/client/_app/immutable/assets/3.DGDHCVnW.css +1 -0
- package/build/client/_app/immutable/assets/3.DGDHCVnW.css.br +0 -0
- package/build/client/_app/immutable/assets/3.DGDHCVnW.css.gz +0 -0
- package/build/client/_app/immutable/assets/4.BFUut--w.css +1 -0
- package/build/client/_app/immutable/assets/4.BFUut--w.css.br +0 -0
- package/build/client/_app/immutable/assets/4.BFUut--w.css.gz +0 -0
- package/build/client/_app/immutable/assets/5.BTOx7yt7.css +1 -0
- package/build/client/_app/immutable/assets/5.BTOx7yt7.css.br +0 -0
- package/build/client/_app/immutable/assets/5.BTOx7yt7.css.gz +0 -0
- package/build/client/_app/immutable/assets/6.eZGZN-BF.css +1 -0
- package/build/client/_app/immutable/assets/6.eZGZN-BF.css.br +0 -0
- package/build/client/_app/immutable/assets/6.eZGZN-BF.css.gz +0 -0
- package/build/client/_app/immutable/assets/7.DwS5ZHBh.css +1 -0
- package/build/client/_app/immutable/assets/7.DwS5ZHBh.css.br +0 -0
- package/build/client/_app/immutable/assets/7.DwS5ZHBh.css.gz +0 -0
- package/build/client/_app/immutable/assets/ChatView.CwWbzIL-.css +1 -0
- package/build/client/_app/immutable/assets/ChatView.CwWbzIL-.css.br +0 -0
- package/build/client/_app/immutable/assets/ChatView.CwWbzIL-.css.gz +0 -0
- package/build/client/_app/immutable/assets/Phone.FQEfwCX2.css +1 -0
- package/build/client/_app/immutable/assets/Phone.FQEfwCX2.css.br +0 -0
- package/build/client/_app/immutable/assets/Phone.FQEfwCX2.css.gz +0 -0
- package/build/client/_app/immutable/assets/markdown.Dc-OSJWY.css +1 -0
- package/build/client/_app/immutable/assets/markdown.Dc-OSJWY.css.br +0 -0
- package/build/client/_app/immutable/assets/markdown.Dc-OSJWY.css.gz +0 -0
- package/build/client/_app/immutable/assets/xterm.DFuMZ0ql.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B-K5Sh65.js +1 -0
- package/build/client/_app/immutable/chunks/B-K5Sh65.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-K5Sh65.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B5NAKyil.js +20 -0
- package/build/client/_app/immutable/chunks/B5NAKyil.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5NAKyil.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B8XegpSE.js +1 -0
- package/build/client/_app/immutable/chunks/B8XegpSE.js.br +0 -0
- package/build/client/_app/immutable/chunks/B8XegpSE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B8zoBsv3.js +6 -0
- package/build/client/_app/immutable/chunks/B8zoBsv3.js.br +0 -0
- package/build/client/_app/immutable/chunks/B8zoBsv3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BLszSzTT.js +1 -0
- package/build/client/_app/immutable/chunks/BLszSzTT.js.br +0 -0
- package/build/client/_app/immutable/chunks/BLszSzTT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOYo8yTr.js +1 -0
- package/build/client/_app/immutable/chunks/BOYo8yTr.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOYo8yTr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTGVxaYV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYqGCrTe.js +1 -0
- package/build/client/_app/immutable/chunks/BYqGCrTe.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYqGCrTe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BlxrFPDK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bu1aqm5j.js +1 -0
- package/build/client/_app/immutable/chunks/Bu1aqm5j.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bu1aqm5j.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C4mLaWWx.js +1 -0
- package/build/client/_app/immutable/chunks/C4mLaWWx.js.br +0 -0
- package/build/client/_app/immutable/chunks/C4mLaWWx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQjSATpv.js +61 -0
- package/build/client/_app/immutable/chunks/CQjSATpv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQjSATpv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSoRdFvv.js +1 -0
- package/build/client/_app/immutable/chunks/CSoRdFvv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSoRdFvv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZHsSL_X.js +1 -0
- package/build/client/_app/immutable/chunks/CZHsSL_X.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZHsSL_X.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLu6yJIZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DSU1n5N_.js +1 -0
- package/build/client/_app/immutable/chunks/DSU1n5N_.js.br +0 -0
- package/build/client/_app/immutable/chunks/DSU1n5N_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVkn4r72.js +1 -0
- package/build/client/_app/immutable/chunks/DVkn4r72.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVkn4r72.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjsDGxCa.js +41 -0
- package/build/client/_app/immutable/chunks/DjsDGxCa.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjsDGxCa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PPVm8Dsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/UJOiqIYE.js +1 -0
- package/build/client/_app/immutable/chunks/UJOiqIYE.js.br +0 -0
- package/build/client/_app/immutable/chunks/UJOiqIYE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/r0JawsZc.js +2 -0
- package/build/client/_app/immutable/chunks/r0JawsZc.js.br +0 -0
- package/build/client/_app/immutable/chunks/r0JawsZc.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Z3zMnuSx.js +2 -0
- package/build/client/_app/immutable/entry/app.Z3zMnuSx.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Z3zMnuSx.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Dd-gIP4y.js +1 -0
- package/build/client/_app/immutable/entry/start.Dd-gIP4y.js.br +2 -0
- package/build/client/_app/immutable/entry/start.Dd-gIP4y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.D2YR8tTD.js +1 -0
- package/build/client/_app/immutable/nodes/0.D2YR8tTD.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.D2YR8tTD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.B3m6rO4C.js +1 -0
- package/build/client/_app/immutable/nodes/1.B3m6rO4C.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B3m6rO4C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CyRB2euU.js +1 -0
- package/build/client/_app/immutable/nodes/2.CyRB2euU.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CyRB2euU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.3yohCM25.js +3 -0
- package/build/client/_app/immutable/nodes/3.3yohCM25.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.3yohCM25.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.DEAcwl7l.js +1 -0
- package/build/client/_app/immutable/nodes/4.DEAcwl7l.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.DEAcwl7l.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.C6bLGWQR.js +4 -0
- package/build/client/_app/immutable/nodes/5.C6bLGWQR.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.C6bLGWQR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.ByTzlA2D.js +2 -0
- package/build/client/_app/immutable/nodes/6.ByTzlA2D.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.ByTzlA2D.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BPMfwzd2.js +2 -0
- package/build/client/_app/immutable/nodes/7.BPMfwzd2.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BPMfwzd2.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/favicon.svg.gz +0 -0
- package/build/client/manifest.json +13 -0
- package/build/client/manifest.json.br +0 -0
- package/build/client/manifest.json.gz +0 -0
- package/build/pty-holder.cjs +37 -8
- package/build/server/chunks/0-Vk38tI2J.js +9 -0
- package/build/server/chunks/0-Vk38tI2J.js.map +1 -0
- package/build/server/chunks/1-BvYQX5MR.js +9 -0
- package/build/server/chunks/1-BvYQX5MR.js.map +1 -0
- package/build/server/chunks/2-Cl7R4Qk2.js +9 -0
- package/build/server/chunks/2-Cl7R4Qk2.js.map +1 -0
- package/build/server/chunks/3-Ck7ewhOX.js +9 -0
- package/build/server/chunks/3-Ck7ewhOX.js.map +1 -0
- package/build/server/chunks/4-CnDeRm2Z.js +9 -0
- package/build/server/chunks/4-CnDeRm2Z.js.map +1 -0
- package/build/server/chunks/5-IxitzEvN.js +9 -0
- package/build/server/chunks/5-IxitzEvN.js.map +1 -0
- package/build/server/chunks/6-CyZ3r1iS.js +9 -0
- package/build/server/chunks/6-CyZ3r1iS.js.map +1 -0
- package/build/server/chunks/7-BmI7du46.js +9 -0
- package/build/server/chunks/7-BmI7du46.js.map +1 -0
- package/build/server/chunks/Button-Cs1aE6ka.js +80 -0
- package/build/server/chunks/Button-Cs1aE6ka.js.map +1 -0
- package/build/server/chunks/EmptyState-DDFH1K8g.js +26 -0
- package/build/server/chunks/EmptyState-DDFH1K8g.js.map +1 -0
- package/build/server/chunks/Icon-CEUrotA6.js +36 -0
- package/build/server/chunks/Icon-CEUrotA6.js.map +1 -0
- package/build/server/chunks/Shimmer-DB8W1zt6.js +10 -0
- package/build/server/chunks/Shimmer-DB8W1zt6.js.map +1 -0
- package/build/server/chunks/_error.svelte-uCOJNxvr.js +39 -0
- package/build/server/chunks/_error.svelte-uCOJNxvr.js.map +1 -0
- package/build/server/chunks/_layout.svelte-CtWmEJwe.js +56 -0
- package/build/server/chunks/_layout.svelte-CtWmEJwe.js.map +1 -0
- package/build/server/chunks/_page.svelte-BcZaKdX9.js +45 -0
- package/build/server/chunks/_page.svelte-BcZaKdX9.js.map +1 -0
- package/build/server/chunks/_page.svelte-BdYynOck.js +85 -0
- package/build/server/chunks/_page.svelte-BdYynOck.js.map +1 -0
- package/build/server/chunks/_page.svelte-BgevQjq1.js +101 -0
- package/build/server/chunks/_page.svelte-BgevQjq1.js.map +1 -0
- package/build/server/chunks/_page.svelte-CVq6tRb3.js +550 -0
- package/build/server/chunks/_page.svelte-CVq6tRb3.js.map +1 -0
- package/build/server/chunks/_page.svelte-CxWcQ0Am.js +651 -0
- package/build/server/chunks/_page.svelte-CxWcQ0Am.js.map +1 -0
- package/build/server/chunks/_page.svelte-DO4oa_LY.js +44 -0
- package/build/server/chunks/_page.svelte-DO4oa_LY.js.map +1 -0
- package/build/server/chunks/{_server.ts-CbDRDIoP.js → _server.ts-BStnNIcq.js} +9 -11
- package/build/server/chunks/_server.ts-BStnNIcq.js.map +1 -0
- package/build/server/chunks/{_server.ts-DRVbgm6k.js → _server.ts-CAxsWKvS.js} +22 -25
- package/build/server/chunks/_server.ts-CAxsWKvS.js.map +1 -0
- package/build/server/chunks/{_server.ts-CPa6DgIt.js → _server.ts-COu0vNpd.js} +6 -6
- package/build/server/chunks/_server.ts-COu0vNpd.js.map +1 -0
- package/build/server/chunks/{_server.ts-C29xzfaw.js → _server.ts-CTpcLUH8.js} +10 -10
- package/build/server/chunks/_server.ts-CTpcLUH8.js.map +1 -0
- package/build/server/chunks/{_server.ts-D4MNi4cD.js → _server.ts-Cf84YIaW.js} +3 -3
- package/build/server/chunks/{_server.ts-D4MNi4cD.js.map → _server.ts-Cf84YIaW.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BL2FGb5Z.js → _server.ts-Ch-6iOHp.js} +99 -53
- package/build/server/chunks/_server.ts-Ch-6iOHp.js.map +1 -0
- package/build/server/chunks/_server.ts-CtH0dhUp.js +71 -0
- package/build/server/chunks/_server.ts-CtH0dhUp.js.map +1 -0
- package/build/server/chunks/_server.ts-DB_Kg97c.js +73 -0
- package/build/server/chunks/_server.ts-DB_Kg97c.js.map +1 -0
- package/build/server/chunks/{_server.ts-DfajWaqh.js → _server.ts-DV8zTCF9.js} +7 -9
- package/build/server/chunks/_server.ts-DV8zTCF9.js.map +1 -0
- package/build/server/chunks/_server.ts-DYpJImqd.js +99 -0
- package/build/server/chunks/_server.ts-DYpJImqd.js.map +1 -0
- package/build/server/chunks/{_server.ts-ColfDHW8.js → _server.ts-DYvb9ijZ.js} +21 -10
- package/build/server/chunks/_server.ts-DYvb9ijZ.js.map +1 -0
- package/build/server/chunks/{_server.ts-Cv_OrRuL.js → _server.ts-Deok2y88.js} +209 -34
- package/build/server/chunks/_server.ts-Deok2y88.js.map +1 -0
- package/build/server/chunks/{_server.ts-y9-WYDMa.js → _server.ts-WhTJBEJy.js} +5 -4
- package/build/server/chunks/{_server.ts-y9-WYDMa.js.map → _server.ts-WhTJBEJy.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BjOJsoy4.js → _server.ts-XzT2UHM1.js} +6 -5
- package/build/server/chunks/_server.ts-XzT2UHM1.js.map +1 -0
- package/build/server/chunks/{_server.ts-BgdjBZco.js → _server.ts-tSpgyl1D.js} +7 -5
- package/build/server/chunks/_server.ts-tSpgyl1D.js.map +1 -0
- package/build/server/chunks/{_server.ts-BihKSdj_.js → _server.ts-vekTmWAx.js} +8 -8
- package/build/server/chunks/_server.ts-vekTmWAx.js.map +1 -0
- package/build/server/chunks/{auth-CEgFis71.js → auth-DeCdZ83n.js} +2 -2
- package/build/server/chunks/{auth-CEgFis71.js.map → auth-DeCdZ83n.js.map} +1 -1
- package/build/server/chunks/client-BdGHe_hY.js +25 -0
- package/build/server/chunks/client-BdGHe_hY.js.map +1 -0
- package/build/server/chunks/client2-CCBGA-2V.js +7 -0
- package/build/server/chunks/client2-CCBGA-2V.js.map +1 -0
- package/build/server/chunks/error-DDXB3duW.js +12 -0
- package/build/server/chunks/error-DDXB3duW.js.map +1 -0
- package/build/server/chunks/{exports-CJ0Q5XmL.js → index-DwaY1cAm.js} +1111 -1634
- package/build/server/chunks/index-DwaY1cAm.js.map +1 -0
- package/build/server/chunks/index-server-CrDaL06Y.js +9 -0
- package/build/server/chunks/index-server-CrDaL06Y.js.map +1 -0
- package/build/server/chunks/index2-CgclKpUj.js +58 -0
- package/build/server/chunks/index2-CgclKpUj.js.map +1 -0
- package/build/server/chunks/{library-apns-BHxLmuIx.js → library-apns-BqJbvSKh.js} +4 -4
- package/build/server/chunks/library-apns-BqJbvSKh.js.map +1 -0
- package/build/server/chunks/markdown-W_mTBct0.js +8 -0
- package/build/server/chunks/markdown-W_mTBct0.js.map +1 -0
- package/build/server/chunks/opencode-db-path-DcfhJtJy.js +15 -0
- package/build/server/chunks/opencode-db-path-DcfhJtJy.js.map +1 -0
- package/build/server/chunks/{pty-manager-C0FhBiVq.js → pty-manager-BQVB7IVj.js} +155 -326
- package/build/server/chunks/pty-manager-BQVB7IVj.js.map +1 -0
- package/build/server/chunks/root-DDSnEAZv.js +1171 -0
- package/build/server/chunks/root-DDSnEAZv.js.map +1 -0
- package/build/server/chunks/{shared-server-BDY8jh20.js → shared-server-sSGG17Df.js} +2 -3
- package/build/server/chunks/{shared-server-BDY8jh20.js.map → shared-server-sSGG17Df.js.map} +1 -1
- package/build/server/chunks/state.svelte-hBbXlUak.js +11 -0
- package/build/server/chunks/state.svelte-hBbXlUak.js.map +1 -0
- package/build/server/chunks/stores-DHNzYNpX.js +28 -0
- package/build/server/chunks/stores-DHNzYNpX.js.map +1 -0
- package/build/server/index.js +1085 -2242
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +39 -25
- package/build/server/manifest.js.map +1 -1
- package/package.json +32 -9
- package/scripts/fix-generated-types.sh +37 -0
- package/scripts/homebrew/shooter.rb +51 -0
- package/scripts/install.sh +348 -186
- package/scripts/setup.cjs +215 -45
- package/server.ts +114 -71
- package/src/app.css +12 -3
- package/src/app.d.ts +13 -20
- package/src/app.html +3 -2
- package/src/generated/types/API.ts +280 -0
- package/src/generated/types/APN.ts +186 -203
- package/src/generated/types/CLI.ts +18 -25
- package/src/generated/types/Client.ts +589 -0
- package/src/generated/types/Config.ts +53 -0
- package/src/generated/types/Holder.ts +638 -0
- package/src/generated/types/JWT.ts +39 -50
- package/src/generated/types/Notification.ts +426 -0
- package/src/generated/types/OpenCode.ts +356 -0
- package/src/generated/types/Sessions.ts +570 -0
- package/src/generated/types/Terminal.ts +2184 -2071
- package/src/generated/types/WsProtocol.ts +2004 -0
- package/src/generated/types/index.ts +9 -3
- package/src/lib/env.ts +29 -0
- package/src/lib/modules/client/common/cache.ts +10 -2
- package/src/lib/modules/client/common/config-guard.ts +37 -5
- package/src/lib/modules/client/common/error.ts +10 -0
- package/src/lib/modules/client/common/index.ts +6 -5
- package/src/lib/modules/client/common/markdown.ts +22 -1
- package/src/lib/modules/client/common/native-bridge.ts +28 -20
- package/src/lib/modules/client/common/time.ts +13 -11
- package/src/lib/modules/client/terminal/ChatView.svelte +354 -74
- package/src/lib/modules/client/terminal/CommandPalette.svelte +3 -2
- package/src/lib/modules/client/terminal/ConnectionStatus.svelte +7 -1
- package/src/lib/modules/client/terminal/LaunchSheet.svelte +147 -84
- package/src/lib/modules/client/terminal/QuickKeys.svelte +3 -1
- package/src/lib/modules/client/terminal/ShortcutsHelp.svelte +2 -5
- package/src/lib/modules/client/terminal/keyboard-shortcuts.ts +27 -24
- package/src/lib/modules/client/terminal/xterm-wrapper.ts +74 -45
- package/src/lib/modules/server/apn/library-apns.ts +3 -2
- package/src/lib/modules/server/apn/notification-history.ts +2 -13
- package/src/lib/modules/server/apn/notification-sessions.ts +3 -13
- package/src/lib/modules/server/apn/pending-requests.ts +3 -8
- package/src/lib/modules/server/apn/types.ts +5 -4
- package/src/lib/modules/server/cli/index.ts +3 -2
- package/src/lib/modules/server/fcm/fcm-service.ts +8 -6
- package/src/lib/modules/server/sessions/jsonl-parser.ts +3 -3
- package/src/lib/modules/server/sessions/jsonl-reader.ts +86 -26
- package/src/lib/modules/server/sessions/opencode-db-path.ts +26 -0
- package/src/lib/modules/server/sessions/opencode-reader.ts +13 -15
- package/src/lib/modules/server/sessions/process-detector.ts +103 -0
- package/src/lib/modules/server/sessions/types.ts +11 -22
- package/src/lib/modules/server/terminal/holder-client.ts +272 -248
- package/src/lib/modules/server/terminal/opencode-watcher.ts +547 -556
- package/src/lib/modules/server/terminal/pty-holder.cjs +37 -8
- package/src/lib/modules/server/terminal/pty-manager.ts +157 -115
- package/src/lib/modules/server/terminal/session-watcher.ts +6 -4
- package/src/lib/modules/server/terminal/terminal-store.ts +131 -128
- package/src/lib/modules/server/utils/error.ts +9 -0
- package/src/lib/modules/server/ws/events-handler.ts +12 -6
- package/src/lib/modules/server/ws/keepalive.ts +86 -69
- package/src/lib/modules/server/ws/server.ts +43 -37
- package/src/lib/modules/server/ws/session-handler.ts +332 -147
- package/src/lib/modules/server/ws/terminal-handler.ts +29 -17
- package/src/lib/modules/server/ws/ticket-store.ts +29 -26
- package/src/lib/theme.css +30 -0
- package/src/lib/types/config.ts +1 -6
- package/src/routes/+error.svelte +94 -0
- package/src/routes/+layout.svelte +66 -31
- package/src/routes/+page.svelte +25 -22
- package/src/routes/api/debug/+server.ts +3 -1
- package/src/routes/api/device-token/+server.ts +60 -60
- package/src/routes/api/health/+server.ts +81 -73
- package/src/routes/api/notify/+server.ts +115 -68
- package/src/routes/api/qr-config/+server.ts +30 -32
- package/src/routes/api/response/+server.ts +9 -4
- package/src/routes/api/sessions/+server.ts +15 -5
- package/src/routes/api/sessions/connect/+server.ts +125 -0
- package/src/routes/api/sessions/detect/+server.ts +27 -0
- package/src/routes/api/terminals/+server.ts +26 -24
- package/src/routes/api/terminals/[id]/+server.ts +13 -7
- package/src/routes/api/terminals/[id]/paste-image/+server.ts +54 -52
- package/src/routes/api/terminals/[id]/resize/+server.ts +6 -3
- package/src/routes/api/webhook/+server.ts +8 -10
- package/src/routes/api/ws-status/+server.ts +7 -5
- package/src/routes/api/ws-ticket/+server.ts +42 -41
- package/src/routes/config/+page.svelte +149 -75
- package/src/routes/project/+page.svelte +165 -35
- package/src/routes/session/[id]/+page.svelte +479 -283
- package/src/routes/terminals/+page.svelte +58 -45
- package/src/routes/terminals/[id]/+page.svelte +223 -91
- package/build/client/_app/immutable/assets/0.CM9Hl6d-.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CM9Hl6d-.css.gz +0 -0
- package/build/client/_app/immutable/assets/3.C0uFg0IS.css +0 -1
- package/build/client/_app/immutable/assets/3.C0uFg0IS.css.br +0 -0
- package/build/client/_app/immutable/assets/3.C0uFg0IS.css.gz +0 -0
- package/build/client/_app/immutable/assets/4.cJuCkJKZ.css +0 -1
- package/build/client/_app/immutable/assets/4.cJuCkJKZ.css.br +0 -0
- package/build/client/_app/immutable/assets/4.cJuCkJKZ.css.gz +0 -0
- package/build/client/_app/immutable/assets/5.DRjApZQW.css +0 -1
- package/build/client/_app/immutable/assets/5.DRjApZQW.css.br +0 -0
- package/build/client/_app/immutable/assets/5.DRjApZQW.css.gz +0 -0
- package/build/client/_app/immutable/assets/6.AraZrY8I.css +0 -1
- package/build/client/_app/immutable/assets/6.AraZrY8I.css.br +0 -0
- package/build/client/_app/immutable/assets/6.AraZrY8I.css.gz +0 -0
- package/build/client/_app/immutable/assets/7.BCJ1IuMx.css +0 -1
- package/build/client/_app/immutable/assets/7.BCJ1IuMx.css.br +0 -0
- package/build/client/_app/immutable/assets/7.BCJ1IuMx.css.gz +0 -0
- package/build/client/_app/immutable/assets/ChatView.CsdBAOKx.css +0 -1
- package/build/client/_app/immutable/assets/ChatView.CsdBAOKx.css.br +0 -0
- package/build/client/_app/immutable/assets/ChatView.CsdBAOKx.css.gz +0 -0
- package/build/client/_app/immutable/assets/markdown.B0b5w2tq.css +0 -1
- package/build/client/_app/immutable/assets/markdown.B0b5w2tq.css.br +0 -0
- package/build/client/_app/immutable/assets/markdown.B0b5w2tq.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BNJphC1q.js +0 -56
- package/build/client/_app/immutable/chunks/BNJphC1q.js.br +0 -0
- package/build/client/_app/immutable/chunks/BNJphC1q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bvk7mfPM.js +0 -1
- package/build/client/_app/immutable/chunks/Bvk7mfPM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bvk7mfPM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CAokzuPQ.js +0 -1
- package/build/client/_app/immutable/chunks/CAokzuPQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CAokzuPQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CGLrx-H5.js +0 -1
- package/build/client/_app/immutable/chunks/CGLrx-H5.js.br +0 -0
- package/build/client/_app/immutable/chunks/CGLrx-H5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgCpWzEA.js +0 -1
- package/build/client/_app/immutable/chunks/CgCpWzEA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgCpWzEA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cjwk_cGO.js +0 -6
- package/build/client/_app/immutable/chunks/Cjwk_cGO.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cjwk_cGO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CtQ8EED1.js +0 -11
- package/build/client/_app/immutable/chunks/CtQ8EED1.js.br +0 -0
- package/build/client/_app/immutable/chunks/CtQ8EED1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DERQCisl.js +0 -1
- package/build/client/_app/immutable/chunks/DERQCisl.js.br +0 -0
- package/build/client/_app/immutable/chunks/DERQCisl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DKrg8TQs.js +0 -1
- package/build/client/_app/immutable/chunks/DKrg8TQs.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKrg8TQs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dkkpz_4D.js +0 -126
- package/build/client/_app/immutable/chunks/Dkkpz_4D.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dkkpz_4D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DoczjQhA.js +0 -1
- package/build/client/_app/immutable/chunks/DoczjQhA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DoczjQhA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RpcNruLP.js +0 -2
- package/build/client/_app/immutable/chunks/RpcNruLP.js.br +0 -0
- package/build/client/_app/immutable/chunks/RpcNruLP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/a-St0Zwo.js +0 -1
- package/build/client/_app/immutable/chunks/a-St0Zwo.js.br +0 -0
- package/build/client/_app/immutable/chunks/a-St0Zwo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/bo70OQUZ.js +0 -1
- package/build/client/_app/immutable/chunks/bo70OQUZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/bo70OQUZ.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.QvGgdvTI.js +0 -2
- package/build/client/_app/immutable/entry/app.QvGgdvTI.js.br +0 -0
- package/build/client/_app/immutable/entry/app.QvGgdvTI.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BntDNRMC.js +0 -1
- package/build/client/_app/immutable/entry/start.BntDNRMC.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BntDNRMC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CzkdvJ7j.js +0 -1
- package/build/client/_app/immutable/nodes/0.CzkdvJ7j.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CzkdvJ7j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.MG1QhfrI.js +0 -1
- package/build/client/_app/immutable/nodes/1.MG1QhfrI.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.MG1QhfrI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.B4MlOSh6.js +0 -1
- package/build/client/_app/immutable/nodes/2.B4MlOSh6.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.B4MlOSh6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DIwYkjDn.js +0 -3
- package/build/client/_app/immutable/nodes/3.DIwYkjDn.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DIwYkjDn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.D-cIe70D.js +0 -1
- package/build/client/_app/immutable/nodes/4.D-cIe70D.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.D-cIe70D.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.D7zPRe3L.js +0 -1
- package/build/client/_app/immutable/nodes/5.D7zPRe3L.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.D7zPRe3L.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BB7QE48r.js +0 -2
- package/build/client/_app/immutable/nodes/6.BB7QE48r.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BB7QE48r.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.D8mqsrZG.js +0 -2
- package/build/client/_app/immutable/nodes/7.D8mqsrZG.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.D8mqsrZG.js.gz +0 -0
- package/build/client/manifest.webmanifest +0 -1
- package/build/client/registerSW.js +0 -1
- package/build/client/registerSW.js.br +0 -0
- package/build/client/registerSW.js.gz +0 -0
- package/build/client/sw.js +0 -222
- package/build/client/sw.js.br +0 -0
- package/build/client/sw.js.gz +0 -0
- package/build/client/workbox-5119daf5.js +0 -3395
- package/build/client/workbox-5119daf5.js.br +0 -0
- package/build/client/workbox-5119daf5.js.gz +0 -0
- package/build/server/chunks/0-q2IUp76Y.js +0 -9
- package/build/server/chunks/0-q2IUp76Y.js.map +0 -1
- package/build/server/chunks/1-CU50G5wZ.js +0 -9
- package/build/server/chunks/1-CU50G5wZ.js.map +0 -1
- package/build/server/chunks/2-D01t9s8T.js +0 -9
- package/build/server/chunks/2-D01t9s8T.js.map +0 -1
- package/build/server/chunks/3-5PUQ04wC.js +0 -9
- package/build/server/chunks/3-5PUQ04wC.js.map +0 -1
- package/build/server/chunks/4-e7gywnSG.js +0 -9
- package/build/server/chunks/4-e7gywnSG.js.map +0 -1
- package/build/server/chunks/5-CA1SA6KZ.js +0 -9
- package/build/server/chunks/5-CA1SA6KZ.js.map +0 -1
- package/build/server/chunks/6-71H221sV.js +0 -9
- package/build/server/chunks/6-71H221sV.js.map +0 -1
- package/build/server/chunks/7-Bo-vmdyz.js +0 -9
- package/build/server/chunks/7-Bo-vmdyz.js.map +0 -1
- package/build/server/chunks/_layout.svelte-SFHOxs74.js +0 -132
- package/build/server/chunks/_layout.svelte-SFHOxs74.js.map +0 -1
- package/build/server/chunks/_page.svelte-B4w-2wD-.js +0 -120
- package/build/server/chunks/_page.svelte-B4w-2wD-.js.map +0 -1
- package/build/server/chunks/_page.svelte-B_qAXjkh.js +0 -213
- package/build/server/chunks/_page.svelte-B_qAXjkh.js.map +0 -1
- package/build/server/chunks/_page.svelte-CsF1_TRG.js +0 -50
- package/build/server/chunks/_page.svelte-CsF1_TRG.js.map +0 -1
- package/build/server/chunks/_page.svelte-DJC6U-P0.js +0 -68
- package/build/server/chunks/_page.svelte-DJC6U-P0.js.map +0 -1
- package/build/server/chunks/_page.svelte-DQ6HBtsz.js +0 -407
- package/build/server/chunks/_page.svelte-DQ6HBtsz.js.map +0 -1
- package/build/server/chunks/_page.svelte-LbhhjP21.js +0 -148
- package/build/server/chunks/_page.svelte-LbhhjP21.js.map +0 -1
- package/build/server/chunks/_server.ts-BL2FGb5Z.js.map +0 -1
- package/build/server/chunks/_server.ts-BgdjBZco.js.map +0 -1
- package/build/server/chunks/_server.ts-BihKSdj_.js.map +0 -1
- package/build/server/chunks/_server.ts-BjOJsoy4.js.map +0 -1
- package/build/server/chunks/_server.ts-C29xzfaw.js.map +0 -1
- package/build/server/chunks/_server.ts-CPa6DgIt.js.map +0 -1
- package/build/server/chunks/_server.ts-CbDRDIoP.js.map +0 -1
- package/build/server/chunks/_server.ts-Cl1OEWL4.js +0 -54
- package/build/server/chunks/_server.ts-Cl1OEWL4.js.map +0 -1
- package/build/server/chunks/_server.ts-ColfDHW8.js.map +0 -1
- package/build/server/chunks/_server.ts-Cv_OrRuL.js.map +0 -1
- package/build/server/chunks/_server.ts-DRVbgm6k.js.map +0 -1
- package/build/server/chunks/_server.ts-DfajWaqh.js.map +0 -1
- package/build/server/chunks/client-CxCatAKr.js +0 -255
- package/build/server/chunks/client-CxCatAKr.js.map +0 -1
- package/build/server/chunks/error.svelte-BqdwMWdK.js +0 -26
- package/build/server/chunks/error.svelte-BqdwMWdK.js.map +0 -1
- package/build/server/chunks/exports-CJ0Q5XmL.js.map +0 -1
- package/build/server/chunks/index2-DAxIoAO-.js +0 -36
- package/build/server/chunks/index2-DAxIoAO-.js.map +0 -1
- package/build/server/chunks/jsonl-parser-dmZU_Hyu.js +0 -137
- package/build/server/chunks/jsonl-parser-dmZU_Hyu.js.map +0 -1
- package/build/server/chunks/library-apns-BHxLmuIx.js.map +0 -1
- package/build/server/chunks/markdown-Bxrl3cCF.js +0 -1241
- package/build/server/chunks/markdown-Bxrl3cCF.js.map +0 -1
- package/build/server/chunks/pty-manager-C0FhBiVq.js.map +0 -1
- package/build/server/chunks/stores-D0HorpgL.js +0 -36
- package/build/server/chunks/stores-D0HorpgL.js.map +0 -1
|
@@ -0,0 +1,1171 @@
|
|
|
1
|
+
import { w as render, x as set, L as LEGACY_PROPS, y as get, z as flushSync, A as define_property, B as mutable_source, C as init_operations, E as get_first_child, F as COMMENT_NODE, H as HYDRATION_START, G as get_next_sibling, I as HYDRATION_ERROR, J as hydration_failed, K as clear_text_content, M as component_root, N as create_text, O as array_from, P as is_passive_event, Q as set_active_reaction, R as set_active_effect, S as active_reaction, T as active_effect, U as setContext, V as BOUNDARY_EFFECT, W as block, X as branch, Y as queue_micro_task, Z as pause_effect, _ as current_batch, $ as move_effect, a0 as defer_effect, a1 as set_component_context, a2 as Batch, a3 as handle_error, a4 as component_context, a5 as internal_set, a6 as destroy_effect, a7 as invoke_error_boundary, t as derived, a8 as effect_tracking, a9 as render_effect, aa as HYDRATION_END, ab as HYDRATION_START_ELSE, ac as svelte_boundary_reset_onerror, ad as source, ae as untrack, af as increment, ag as HYDRATION_START_FAILED, ah as push$1, ai as pop$1, aj as EFFECT_TRANSPARENT, ak as EFFECT_PRESERVED } from './index-DwaY1cAm.js';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line n/prefer-global/process
|
|
4
|
+
const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
|
|
5
|
+
|
|
6
|
+
/** @import { RequestEvent } from '@sveltejs/kit' */
|
|
7
|
+
/** @import { RequestStore } from 'types' */
|
|
8
|
+
/** @import { AsyncLocalStorage } from 'node:async_hooks' */
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
/** @type {RequestStore | null} */
|
|
12
|
+
let sync_store = null;
|
|
13
|
+
|
|
14
|
+
/** @type {AsyncLocalStorage<RequestStore | null> | null} */
|
|
15
|
+
let als;
|
|
16
|
+
|
|
17
|
+
import('node:async_hooks')
|
|
18
|
+
.then((hooks) => (als = new hooks.AsyncLocalStorage()))
|
|
19
|
+
.catch(() => {
|
|
20
|
+
// can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.
|
|
21
|
+
// this isn't behind `supports` because it's basically just StackBlitz (i.e.
|
|
22
|
+
// in-browser usage) that doesn't support it AFAICT
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @template T
|
|
27
|
+
* @param {RequestStore | null} store
|
|
28
|
+
* @param {() => T} fn
|
|
29
|
+
*/
|
|
30
|
+
function with_request_store(store, fn) {
|
|
31
|
+
try {
|
|
32
|
+
sync_store = store;
|
|
33
|
+
return als ? als.run(store, fn) : fn();
|
|
34
|
+
} finally {
|
|
35
|
+
// Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`
|
|
36
|
+
// and handle only one request at a time in `src/runtime/server/index.js`.
|
|
37
|
+
if (!IN_WEBCONTAINER) {
|
|
38
|
+
sync_store = null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const text_encoder = new TextEncoder();
|
|
44
|
+
const text_decoder = new TextDecoder();
|
|
45
|
+
function get_relative_path(from, to) {
|
|
46
|
+
const from_parts = from.split(/[/\\]/);
|
|
47
|
+
const to_parts = to.split(/[/\\]/);
|
|
48
|
+
from_parts.pop();
|
|
49
|
+
while (from_parts[0] === to_parts[0]) {
|
|
50
|
+
from_parts.shift();
|
|
51
|
+
to_parts.shift();
|
|
52
|
+
}
|
|
53
|
+
let i = from_parts.length;
|
|
54
|
+
while (i--) from_parts[i] = "..";
|
|
55
|
+
return from_parts.concat(to_parts).join("/");
|
|
56
|
+
}
|
|
57
|
+
function base64_encode(bytes) {
|
|
58
|
+
if (globalThis.Buffer) {
|
|
59
|
+
return globalThis.Buffer.from(bytes).toString("base64");
|
|
60
|
+
}
|
|
61
|
+
let binary = "";
|
|
62
|
+
for (let i = 0; i < bytes.length; i++) {
|
|
63
|
+
binary += String.fromCharCode(bytes[i]);
|
|
64
|
+
}
|
|
65
|
+
return btoa(binary);
|
|
66
|
+
}
|
|
67
|
+
function base64_decode(encoded) {
|
|
68
|
+
if (globalThis.Buffer) {
|
|
69
|
+
const buffer = globalThis.Buffer.from(encoded, "base64");
|
|
70
|
+
return new Uint8Array(buffer);
|
|
71
|
+
}
|
|
72
|
+
const binary = atob(encoded);
|
|
73
|
+
const bytes = new Uint8Array(binary.length);
|
|
74
|
+
for (let i = 0; i < binary.length; i++) {
|
|
75
|
+
bytes[i] = binary.charCodeAt(i);
|
|
76
|
+
}
|
|
77
|
+
return bytes;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const internal = new URL("sveltekit-internal://");
|
|
81
|
+
function resolve(base, path) {
|
|
82
|
+
if (path[0] === "/" && path[1] === "/") return path;
|
|
83
|
+
let url = new URL(base, internal);
|
|
84
|
+
url = new URL(path, url);
|
|
85
|
+
return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
|
|
86
|
+
}
|
|
87
|
+
function normalize_path(path, trailing_slash) {
|
|
88
|
+
if (path === "/" || trailing_slash === "ignore") return path;
|
|
89
|
+
if (trailing_slash === "never") {
|
|
90
|
+
return path.endsWith("/") ? path.slice(0, -1) : path;
|
|
91
|
+
} else if (trailing_slash === "always" && !path.endsWith("/")) {
|
|
92
|
+
return path + "/";
|
|
93
|
+
}
|
|
94
|
+
return path;
|
|
95
|
+
}
|
|
96
|
+
function decode_pathname(pathname) {
|
|
97
|
+
return pathname.split("%25").map(decodeURI).join("%25");
|
|
98
|
+
}
|
|
99
|
+
function decode_params(params) {
|
|
100
|
+
for (const key in params) {
|
|
101
|
+
params[key] = decodeURIComponent(params[key]);
|
|
102
|
+
}
|
|
103
|
+
return params;
|
|
104
|
+
}
|
|
105
|
+
function make_trackable(url, callback, search_params_callback, allow_hash = false) {
|
|
106
|
+
const tracked = new URL(url);
|
|
107
|
+
Object.defineProperty(tracked, "searchParams", {
|
|
108
|
+
value: new Proxy(tracked.searchParams, {
|
|
109
|
+
get(obj, key) {
|
|
110
|
+
if (key === "get" || key === "getAll" || key === "has") {
|
|
111
|
+
return (param, ...rest) => {
|
|
112
|
+
search_params_callback(param);
|
|
113
|
+
return obj[key](param, ...rest);
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
callback();
|
|
117
|
+
const value = Reflect.get(obj, key);
|
|
118
|
+
return typeof value === "function" ? value.bind(obj) : value;
|
|
119
|
+
}
|
|
120
|
+
}),
|
|
121
|
+
enumerable: true,
|
|
122
|
+
configurable: true
|
|
123
|
+
});
|
|
124
|
+
const tracked_url_properties = ["href", "pathname", "search", "toString", "toJSON"];
|
|
125
|
+
if (allow_hash) tracked_url_properties.push("hash");
|
|
126
|
+
for (const property of tracked_url_properties) {
|
|
127
|
+
Object.defineProperty(tracked, property, {
|
|
128
|
+
get() {
|
|
129
|
+
callback();
|
|
130
|
+
return url[property];
|
|
131
|
+
},
|
|
132
|
+
enumerable: true,
|
|
133
|
+
configurable: true
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
{
|
|
137
|
+
tracked[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
|
138
|
+
return inspect(url, opts);
|
|
139
|
+
};
|
|
140
|
+
tracked.searchParams[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
|
141
|
+
return inspect(url.searchParams, opts);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
if (!allow_hash) {
|
|
145
|
+
disable_hash(tracked);
|
|
146
|
+
}
|
|
147
|
+
return tracked;
|
|
148
|
+
}
|
|
149
|
+
function disable_hash(url) {
|
|
150
|
+
allow_nodejs_console_log(url);
|
|
151
|
+
Object.defineProperty(url, "hash", {
|
|
152
|
+
get() {
|
|
153
|
+
throw new Error(
|
|
154
|
+
"Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead"
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function disable_search(url) {
|
|
160
|
+
allow_nodejs_console_log(url);
|
|
161
|
+
for (const property of ["search", "searchParams"]) {
|
|
162
|
+
Object.defineProperty(url, property, {
|
|
163
|
+
get() {
|
|
164
|
+
throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
function allow_nodejs_console_log(url) {
|
|
170
|
+
{
|
|
171
|
+
url[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
|
172
|
+
return inspect(new URL(url), opts);
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
function validator(expected) {
|
|
177
|
+
function validate(module, file) {
|
|
178
|
+
if (!module) return;
|
|
179
|
+
for (const key in module) {
|
|
180
|
+
if (key[0] === "_" || expected.has(key)) continue;
|
|
181
|
+
const values = [...expected.values()];
|
|
182
|
+
const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
|
|
183
|
+
throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return validate;
|
|
187
|
+
}
|
|
188
|
+
function hint_for_supported_files(key, ext = ".js") {
|
|
189
|
+
const supported_files = [];
|
|
190
|
+
if (valid_layout_exports.has(key)) {
|
|
191
|
+
supported_files.push(`+layout${ext}`);
|
|
192
|
+
}
|
|
193
|
+
if (valid_page_exports.has(key)) {
|
|
194
|
+
supported_files.push(`+page${ext}`);
|
|
195
|
+
}
|
|
196
|
+
if (valid_layout_server_exports.has(key)) {
|
|
197
|
+
supported_files.push(`+layout.server${ext}`);
|
|
198
|
+
}
|
|
199
|
+
if (valid_page_server_exports.has(key)) {
|
|
200
|
+
supported_files.push(`+page.server${ext}`);
|
|
201
|
+
}
|
|
202
|
+
if (valid_server_exports.has(key)) {
|
|
203
|
+
supported_files.push(`+server${ext}`);
|
|
204
|
+
}
|
|
205
|
+
if (supported_files.length > 0) {
|
|
206
|
+
return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
const valid_layout_exports = /* @__PURE__ */ new Set([
|
|
210
|
+
"load",
|
|
211
|
+
"prerender",
|
|
212
|
+
"csr",
|
|
213
|
+
"ssr",
|
|
214
|
+
"trailingSlash",
|
|
215
|
+
"config"
|
|
216
|
+
]);
|
|
217
|
+
const valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, "entries"]);
|
|
218
|
+
const valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]);
|
|
219
|
+
const valid_page_server_exports = /* @__PURE__ */ new Set([...valid_layout_server_exports, "actions", "entries"]);
|
|
220
|
+
const valid_server_exports = /* @__PURE__ */ new Set([
|
|
221
|
+
"GET",
|
|
222
|
+
"POST",
|
|
223
|
+
"PATCH",
|
|
224
|
+
"PUT",
|
|
225
|
+
"DELETE",
|
|
226
|
+
"OPTIONS",
|
|
227
|
+
"HEAD",
|
|
228
|
+
"fallback",
|
|
229
|
+
"prerender",
|
|
230
|
+
"trailingSlash",
|
|
231
|
+
"config",
|
|
232
|
+
"entries"
|
|
233
|
+
]);
|
|
234
|
+
const validate_layout_exports = validator(valid_layout_exports);
|
|
235
|
+
const validate_page_exports = validator(valid_page_exports);
|
|
236
|
+
const validate_layout_server_exports = validator(valid_layout_server_exports);
|
|
237
|
+
const validate_page_server_exports = validator(valid_page_server_exports);
|
|
238
|
+
|
|
239
|
+
function hydration_mismatch(location) {
|
|
240
|
+
{
|
|
241
|
+
console.warn(`https://svelte.dev/e/hydration_mismatch`);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
function svelte_boundary_reset_noop() {
|
|
245
|
+
{
|
|
246
|
+
console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
let hydrating = false;
|
|
250
|
+
function set_hydrating(value) {
|
|
251
|
+
hydrating = value;
|
|
252
|
+
}
|
|
253
|
+
let hydrate_node;
|
|
254
|
+
function set_hydrate_node(node) {
|
|
255
|
+
if (node === null) {
|
|
256
|
+
hydration_mismatch();
|
|
257
|
+
throw HYDRATION_ERROR;
|
|
258
|
+
}
|
|
259
|
+
return hydrate_node = node;
|
|
260
|
+
}
|
|
261
|
+
function hydrate_next() {
|
|
262
|
+
return set_hydrate_node(get_next_sibling(hydrate_node));
|
|
263
|
+
}
|
|
264
|
+
function next(count = 1) {
|
|
265
|
+
if (hydrating) {
|
|
266
|
+
var i = count;
|
|
267
|
+
var node = hydrate_node;
|
|
268
|
+
while (i--) {
|
|
269
|
+
node = /** @type {TemplateNode} */
|
|
270
|
+
get_next_sibling(node);
|
|
271
|
+
}
|
|
272
|
+
hydrate_node = node;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
function skip_nodes(remove = true) {
|
|
276
|
+
var depth = 0;
|
|
277
|
+
var node = hydrate_node;
|
|
278
|
+
while (true) {
|
|
279
|
+
if (node.nodeType === COMMENT_NODE) {
|
|
280
|
+
var data = (
|
|
281
|
+
/** @type {Comment} */
|
|
282
|
+
node.data
|
|
283
|
+
);
|
|
284
|
+
if (data === HYDRATION_END) {
|
|
285
|
+
if (depth === 0) return node;
|
|
286
|
+
depth -= 1;
|
|
287
|
+
} else if (data === HYDRATION_START || data === HYDRATION_START_ELSE || // "[1", "[2", etc. for if blocks
|
|
288
|
+
data[0] === "[" && !isNaN(Number(data.slice(1)))) {
|
|
289
|
+
depth += 1;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
var next2 = (
|
|
293
|
+
/** @type {TemplateNode} */
|
|
294
|
+
get_next_sibling(node)
|
|
295
|
+
);
|
|
296
|
+
if (remove) node.remove();
|
|
297
|
+
node = next2;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
function createSubscriber(start) {
|
|
301
|
+
let subscribers = 0;
|
|
302
|
+
let version = source(0);
|
|
303
|
+
let stop;
|
|
304
|
+
return () => {
|
|
305
|
+
if (effect_tracking()) {
|
|
306
|
+
get(version);
|
|
307
|
+
render_effect(() => {
|
|
308
|
+
if (subscribers === 0) {
|
|
309
|
+
stop = untrack(() => start(() => increment(version)));
|
|
310
|
+
}
|
|
311
|
+
subscribers += 1;
|
|
312
|
+
return () => {
|
|
313
|
+
queue_micro_task(() => {
|
|
314
|
+
subscribers -= 1;
|
|
315
|
+
if (subscribers === 0) {
|
|
316
|
+
stop?.();
|
|
317
|
+
stop = void 0;
|
|
318
|
+
increment(version);
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
};
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
|
|
327
|
+
function boundary(node, props, children, transform_error) {
|
|
328
|
+
new Boundary(node, props, children, transform_error);
|
|
329
|
+
}
|
|
330
|
+
class Boundary {
|
|
331
|
+
/** @type {Boundary | null} */
|
|
332
|
+
parent;
|
|
333
|
+
is_pending = false;
|
|
334
|
+
/**
|
|
335
|
+
* API-level transformError transform function. Transforms errors before they reach the `failed` snippet.
|
|
336
|
+
* Inherited from parent boundary, or defaults to identity.
|
|
337
|
+
* @type {(error: unknown) => unknown}
|
|
338
|
+
*/
|
|
339
|
+
transform_error;
|
|
340
|
+
/** @type {TemplateNode} */
|
|
341
|
+
#anchor;
|
|
342
|
+
/** @type {TemplateNode | null} */
|
|
343
|
+
#hydrate_open = hydrating ? hydrate_node : null;
|
|
344
|
+
/** @type {BoundaryProps} */
|
|
345
|
+
#props;
|
|
346
|
+
/** @type {((anchor: Node) => void)} */
|
|
347
|
+
#children;
|
|
348
|
+
/** @type {Effect} */
|
|
349
|
+
#effect;
|
|
350
|
+
/** @type {Effect | null} */
|
|
351
|
+
#main_effect = null;
|
|
352
|
+
/** @type {Effect | null} */
|
|
353
|
+
#pending_effect = null;
|
|
354
|
+
/** @type {Effect | null} */
|
|
355
|
+
#failed_effect = null;
|
|
356
|
+
/** @type {DocumentFragment | null} */
|
|
357
|
+
#offscreen_fragment = null;
|
|
358
|
+
#local_pending_count = 0;
|
|
359
|
+
#pending_count = 0;
|
|
360
|
+
#pending_count_update_queued = false;
|
|
361
|
+
/** @type {Set<Effect>} */
|
|
362
|
+
#dirty_effects = /* @__PURE__ */ new Set();
|
|
363
|
+
/** @type {Set<Effect>} */
|
|
364
|
+
#maybe_dirty_effects = /* @__PURE__ */ new Set();
|
|
365
|
+
/**
|
|
366
|
+
* A source containing the number of pending async deriveds/expressions.
|
|
367
|
+
* Only created if `$effect.pending()` is used inside the boundary,
|
|
368
|
+
* otherwise updating the source results in needless `Batch.ensure()`
|
|
369
|
+
* calls followed by no-op flushes
|
|
370
|
+
* @type {Source<number> | null}
|
|
371
|
+
*/
|
|
372
|
+
#effect_pending = null;
|
|
373
|
+
#effect_pending_subscriber = createSubscriber(() => {
|
|
374
|
+
this.#effect_pending = source(this.#local_pending_count);
|
|
375
|
+
return () => {
|
|
376
|
+
this.#effect_pending = null;
|
|
377
|
+
};
|
|
378
|
+
});
|
|
379
|
+
/**
|
|
380
|
+
* @param {TemplateNode} node
|
|
381
|
+
* @param {BoundaryProps} props
|
|
382
|
+
* @param {((anchor: Node) => void)} children
|
|
383
|
+
* @param {((error: unknown) => unknown) | undefined} [transform_error]
|
|
384
|
+
*/
|
|
385
|
+
constructor(node, props, children, transform_error) {
|
|
386
|
+
this.#anchor = node;
|
|
387
|
+
this.#props = props;
|
|
388
|
+
this.#children = (anchor) => {
|
|
389
|
+
var effect = (
|
|
390
|
+
/** @type {Effect} */
|
|
391
|
+
active_effect
|
|
392
|
+
);
|
|
393
|
+
effect.b = this;
|
|
394
|
+
effect.f |= BOUNDARY_EFFECT;
|
|
395
|
+
children(anchor);
|
|
396
|
+
};
|
|
397
|
+
this.parent = /** @type {Effect} */
|
|
398
|
+
active_effect.b;
|
|
399
|
+
this.transform_error = transform_error ?? this.parent?.transform_error ?? ((e) => e);
|
|
400
|
+
this.#effect = block(() => {
|
|
401
|
+
if (hydrating) {
|
|
402
|
+
const comment = (
|
|
403
|
+
/** @type {Comment} */
|
|
404
|
+
this.#hydrate_open
|
|
405
|
+
);
|
|
406
|
+
hydrate_next();
|
|
407
|
+
const server_rendered_pending = comment.data === HYDRATION_START_ELSE;
|
|
408
|
+
const server_rendered_failed = comment.data.startsWith(HYDRATION_START_FAILED);
|
|
409
|
+
if (server_rendered_failed) {
|
|
410
|
+
const serialized_error = JSON.parse(comment.data.slice(HYDRATION_START_FAILED.length));
|
|
411
|
+
this.#hydrate_failed_content(serialized_error);
|
|
412
|
+
} else if (server_rendered_pending) {
|
|
413
|
+
this.#hydrate_pending_content();
|
|
414
|
+
} else {
|
|
415
|
+
this.#hydrate_resolved_content();
|
|
416
|
+
}
|
|
417
|
+
} else {
|
|
418
|
+
this.#render();
|
|
419
|
+
}
|
|
420
|
+
}, flags);
|
|
421
|
+
if (hydrating) {
|
|
422
|
+
this.#anchor = hydrate_node;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
#hydrate_resolved_content() {
|
|
426
|
+
try {
|
|
427
|
+
this.#main_effect = branch(() => this.#children(this.#anchor));
|
|
428
|
+
} catch (error) {
|
|
429
|
+
this.error(error);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
434
|
+
*/
|
|
435
|
+
#hydrate_failed_content(error) {
|
|
436
|
+
const failed = this.#props.failed;
|
|
437
|
+
if (!failed) return;
|
|
438
|
+
this.#failed_effect = branch(() => {
|
|
439
|
+
failed(
|
|
440
|
+
this.#anchor,
|
|
441
|
+
() => error,
|
|
442
|
+
() => () => {
|
|
443
|
+
}
|
|
444
|
+
);
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
#hydrate_pending_content() {
|
|
448
|
+
const pending = this.#props.pending;
|
|
449
|
+
if (!pending) return;
|
|
450
|
+
this.is_pending = true;
|
|
451
|
+
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
452
|
+
queue_micro_task(() => {
|
|
453
|
+
var fragment = this.#offscreen_fragment = document.createDocumentFragment();
|
|
454
|
+
var anchor = create_text();
|
|
455
|
+
fragment.append(anchor);
|
|
456
|
+
this.#main_effect = this.#run(() => {
|
|
457
|
+
return branch(() => this.#children(anchor));
|
|
458
|
+
});
|
|
459
|
+
if (this.#pending_count === 0) {
|
|
460
|
+
this.#anchor.before(fragment);
|
|
461
|
+
this.#offscreen_fragment = null;
|
|
462
|
+
pause_effect(
|
|
463
|
+
/** @type {Effect} */
|
|
464
|
+
this.#pending_effect,
|
|
465
|
+
() => {
|
|
466
|
+
this.#pending_effect = null;
|
|
467
|
+
}
|
|
468
|
+
);
|
|
469
|
+
this.#resolve(
|
|
470
|
+
/** @type {Batch} */
|
|
471
|
+
current_batch
|
|
472
|
+
);
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
#render() {
|
|
477
|
+
try {
|
|
478
|
+
this.is_pending = this.has_pending_snippet();
|
|
479
|
+
this.#pending_count = 0;
|
|
480
|
+
this.#local_pending_count = 0;
|
|
481
|
+
this.#main_effect = branch(() => {
|
|
482
|
+
this.#children(this.#anchor);
|
|
483
|
+
});
|
|
484
|
+
if (this.#pending_count > 0) {
|
|
485
|
+
var fragment = this.#offscreen_fragment = document.createDocumentFragment();
|
|
486
|
+
move_effect(this.#main_effect, fragment);
|
|
487
|
+
const pending = (
|
|
488
|
+
/** @type {(anchor: Node) => void} */
|
|
489
|
+
this.#props.pending
|
|
490
|
+
);
|
|
491
|
+
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
492
|
+
} else {
|
|
493
|
+
this.#resolve(
|
|
494
|
+
/** @type {Batch} */
|
|
495
|
+
current_batch
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
} catch (error) {
|
|
499
|
+
this.error(error);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* @param {Batch} batch
|
|
504
|
+
*/
|
|
505
|
+
#resolve(batch) {
|
|
506
|
+
this.is_pending = false;
|
|
507
|
+
batch.transfer_effects(this.#dirty_effects, this.#maybe_dirty_effects);
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Defer an effect inside a pending boundary until the boundary resolves
|
|
511
|
+
* @param {Effect} effect
|
|
512
|
+
*/
|
|
513
|
+
defer_effect(effect) {
|
|
514
|
+
defer_effect(effect, this.#dirty_effects, this.#maybe_dirty_effects);
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
518
|
+
* @returns {boolean}
|
|
519
|
+
*/
|
|
520
|
+
is_rendered() {
|
|
521
|
+
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
522
|
+
}
|
|
523
|
+
has_pending_snippet() {
|
|
524
|
+
return !!this.#props.pending;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* @template T
|
|
528
|
+
* @param {() => T} fn
|
|
529
|
+
*/
|
|
530
|
+
#run(fn) {
|
|
531
|
+
var previous_effect = active_effect;
|
|
532
|
+
var previous_reaction = active_reaction;
|
|
533
|
+
var previous_ctx = component_context;
|
|
534
|
+
set_active_effect(this.#effect);
|
|
535
|
+
set_active_reaction(this.#effect);
|
|
536
|
+
set_component_context(this.#effect.ctx);
|
|
537
|
+
try {
|
|
538
|
+
Batch.ensure();
|
|
539
|
+
return fn();
|
|
540
|
+
} catch (e) {
|
|
541
|
+
handle_error(e);
|
|
542
|
+
return null;
|
|
543
|
+
} finally {
|
|
544
|
+
set_active_effect(previous_effect);
|
|
545
|
+
set_active_reaction(previous_reaction);
|
|
546
|
+
set_component_context(previous_ctx);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Updates the pending count associated with the currently visible pending snippet,
|
|
551
|
+
* if any, such that we can replace the snippet with content once work is done
|
|
552
|
+
* @param {1 | -1} d
|
|
553
|
+
* @param {Batch} batch
|
|
554
|
+
*/
|
|
555
|
+
#update_pending_count(d, batch) {
|
|
556
|
+
if (!this.has_pending_snippet()) {
|
|
557
|
+
if (this.parent) {
|
|
558
|
+
this.parent.#update_pending_count(d, batch);
|
|
559
|
+
}
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
this.#pending_count += d;
|
|
563
|
+
if (this.#pending_count === 0) {
|
|
564
|
+
this.#resolve(batch);
|
|
565
|
+
if (this.#pending_effect) {
|
|
566
|
+
pause_effect(this.#pending_effect, () => {
|
|
567
|
+
this.#pending_effect = null;
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
if (this.#offscreen_fragment) {
|
|
571
|
+
this.#anchor.before(this.#offscreen_fragment);
|
|
572
|
+
this.#offscreen_fragment = null;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
578
|
+
* and controls when the current `pending` snippet (if any) is removed.
|
|
579
|
+
* Do not call from inside the class
|
|
580
|
+
* @param {1 | -1} d
|
|
581
|
+
* @param {Batch} batch
|
|
582
|
+
*/
|
|
583
|
+
update_pending_count(d, batch) {
|
|
584
|
+
this.#update_pending_count(d, batch);
|
|
585
|
+
this.#local_pending_count += d;
|
|
586
|
+
if (!this.#effect_pending || this.#pending_count_update_queued) return;
|
|
587
|
+
this.#pending_count_update_queued = true;
|
|
588
|
+
queue_micro_task(() => {
|
|
589
|
+
this.#pending_count_update_queued = false;
|
|
590
|
+
if (this.#effect_pending) {
|
|
591
|
+
internal_set(this.#effect_pending, this.#local_pending_count);
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
get_effect_pending() {
|
|
596
|
+
this.#effect_pending_subscriber();
|
|
597
|
+
return get(
|
|
598
|
+
/** @type {Source<number>} */
|
|
599
|
+
this.#effect_pending
|
|
600
|
+
);
|
|
601
|
+
}
|
|
602
|
+
/** @param {unknown} error */
|
|
603
|
+
error(error) {
|
|
604
|
+
var onerror = this.#props.onerror;
|
|
605
|
+
let failed = this.#props.failed;
|
|
606
|
+
if (!onerror && !failed) {
|
|
607
|
+
throw error;
|
|
608
|
+
}
|
|
609
|
+
if (this.#main_effect) {
|
|
610
|
+
destroy_effect(this.#main_effect);
|
|
611
|
+
this.#main_effect = null;
|
|
612
|
+
}
|
|
613
|
+
if (this.#pending_effect) {
|
|
614
|
+
destroy_effect(this.#pending_effect);
|
|
615
|
+
this.#pending_effect = null;
|
|
616
|
+
}
|
|
617
|
+
if (this.#failed_effect) {
|
|
618
|
+
destroy_effect(this.#failed_effect);
|
|
619
|
+
this.#failed_effect = null;
|
|
620
|
+
}
|
|
621
|
+
if (hydrating) {
|
|
622
|
+
set_hydrate_node(
|
|
623
|
+
/** @type {TemplateNode} */
|
|
624
|
+
this.#hydrate_open
|
|
625
|
+
);
|
|
626
|
+
next();
|
|
627
|
+
set_hydrate_node(skip_nodes());
|
|
628
|
+
}
|
|
629
|
+
var did_reset = false;
|
|
630
|
+
var calling_on_error = false;
|
|
631
|
+
const reset = () => {
|
|
632
|
+
if (did_reset) {
|
|
633
|
+
svelte_boundary_reset_noop();
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
did_reset = true;
|
|
637
|
+
if (calling_on_error) {
|
|
638
|
+
svelte_boundary_reset_onerror();
|
|
639
|
+
}
|
|
640
|
+
if (this.#failed_effect !== null) {
|
|
641
|
+
pause_effect(this.#failed_effect, () => {
|
|
642
|
+
this.#failed_effect = null;
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
this.#run(() => {
|
|
646
|
+
this.#render();
|
|
647
|
+
});
|
|
648
|
+
};
|
|
649
|
+
const handle_error_result = (transformed_error) => {
|
|
650
|
+
try {
|
|
651
|
+
calling_on_error = true;
|
|
652
|
+
onerror?.(transformed_error, reset);
|
|
653
|
+
calling_on_error = false;
|
|
654
|
+
} catch (error2) {
|
|
655
|
+
invoke_error_boundary(error2, this.#effect && this.#effect.parent);
|
|
656
|
+
}
|
|
657
|
+
if (failed) {
|
|
658
|
+
this.#failed_effect = this.#run(() => {
|
|
659
|
+
try {
|
|
660
|
+
return branch(() => {
|
|
661
|
+
var effect = (
|
|
662
|
+
/** @type {Effect} */
|
|
663
|
+
active_effect
|
|
664
|
+
);
|
|
665
|
+
effect.b = this;
|
|
666
|
+
effect.f |= BOUNDARY_EFFECT;
|
|
667
|
+
failed(
|
|
668
|
+
this.#anchor,
|
|
669
|
+
() => transformed_error,
|
|
670
|
+
() => reset
|
|
671
|
+
);
|
|
672
|
+
});
|
|
673
|
+
} catch (error2) {
|
|
674
|
+
invoke_error_boundary(
|
|
675
|
+
error2,
|
|
676
|
+
/** @type {Effect} */
|
|
677
|
+
this.#effect.parent
|
|
678
|
+
);
|
|
679
|
+
return null;
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
queue_micro_task(() => {
|
|
685
|
+
var result;
|
|
686
|
+
try {
|
|
687
|
+
result = this.transform_error(error);
|
|
688
|
+
} catch (e) {
|
|
689
|
+
invoke_error_boundary(e, this.#effect && this.#effect.parent);
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
if (result !== null && typeof result === "object" && typeof /** @type {any} */
|
|
693
|
+
result.then === "function") {
|
|
694
|
+
result.then(
|
|
695
|
+
handle_error_result,
|
|
696
|
+
/** @param {unknown} e */
|
|
697
|
+
(e) => invoke_error_boundary(e, this.#effect && this.#effect.parent)
|
|
698
|
+
);
|
|
699
|
+
} else {
|
|
700
|
+
handle_error_result(result);
|
|
701
|
+
}
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
const event_symbol = /* @__PURE__ */ Symbol("events");
|
|
706
|
+
const all_registered_events = /* @__PURE__ */ new Set();
|
|
707
|
+
const root_event_handles = /* @__PURE__ */ new Set();
|
|
708
|
+
let last_propagated_event = null;
|
|
709
|
+
function handle_event_propagation(event) {
|
|
710
|
+
var handler_element = this;
|
|
711
|
+
var owner_document = (
|
|
712
|
+
/** @type {Node} */
|
|
713
|
+
handler_element.ownerDocument
|
|
714
|
+
);
|
|
715
|
+
var event_name = event.type;
|
|
716
|
+
var path = event.composedPath?.() || [];
|
|
717
|
+
var current_target = (
|
|
718
|
+
/** @type {null | Element} */
|
|
719
|
+
path[0] || event.target
|
|
720
|
+
);
|
|
721
|
+
last_propagated_event = event;
|
|
722
|
+
var path_idx = 0;
|
|
723
|
+
var handled_at = last_propagated_event === event && event[event_symbol];
|
|
724
|
+
if (handled_at) {
|
|
725
|
+
var at_idx = path.indexOf(handled_at);
|
|
726
|
+
if (at_idx !== -1 && (handler_element === document || handler_element === /** @type {any} */
|
|
727
|
+
window)) {
|
|
728
|
+
event[event_symbol] = handler_element;
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
var handler_idx = path.indexOf(handler_element);
|
|
732
|
+
if (handler_idx === -1) {
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
if (at_idx <= handler_idx) {
|
|
736
|
+
path_idx = at_idx;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
current_target = /** @type {Element} */
|
|
740
|
+
path[path_idx] || event.target;
|
|
741
|
+
if (current_target === handler_element) return;
|
|
742
|
+
define_property(event, "currentTarget", {
|
|
743
|
+
configurable: true,
|
|
744
|
+
get() {
|
|
745
|
+
return current_target || owner_document;
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
var previous_reaction = active_reaction;
|
|
749
|
+
var previous_effect = active_effect;
|
|
750
|
+
set_active_reaction(null);
|
|
751
|
+
set_active_effect(null);
|
|
752
|
+
try {
|
|
753
|
+
var throw_error;
|
|
754
|
+
var other_errors = [];
|
|
755
|
+
while (current_target !== null) {
|
|
756
|
+
var parent_element = current_target.assignedSlot || current_target.parentNode || /** @type {any} */
|
|
757
|
+
current_target.host || null;
|
|
758
|
+
try {
|
|
759
|
+
var delegated = current_target[event_symbol]?.[event_name];
|
|
760
|
+
if (delegated != null && (!/** @type {any} */
|
|
761
|
+
current_target.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
762
|
+
// -> the target could not have been disabled because it emits the event in the first place
|
|
763
|
+
event.target === current_target)) {
|
|
764
|
+
delegated.call(current_target, event);
|
|
765
|
+
}
|
|
766
|
+
} catch (error) {
|
|
767
|
+
if (throw_error) {
|
|
768
|
+
other_errors.push(error);
|
|
769
|
+
} else {
|
|
770
|
+
throw_error = error;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
if (event.cancelBubble || parent_element === handler_element || parent_element === null) {
|
|
774
|
+
break;
|
|
775
|
+
}
|
|
776
|
+
current_target = parent_element;
|
|
777
|
+
}
|
|
778
|
+
if (throw_error) {
|
|
779
|
+
for (let error of other_errors) {
|
|
780
|
+
queueMicrotask(() => {
|
|
781
|
+
throw error;
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
throw throw_error;
|
|
785
|
+
}
|
|
786
|
+
} finally {
|
|
787
|
+
event[event_symbol] = handler_element;
|
|
788
|
+
delete event.currentTarget;
|
|
789
|
+
set_active_reaction(previous_reaction);
|
|
790
|
+
set_active_effect(previous_effect);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
function assign_nodes(start, end) {
|
|
794
|
+
var effect = (
|
|
795
|
+
/** @type {Effect} */
|
|
796
|
+
active_effect
|
|
797
|
+
);
|
|
798
|
+
if (effect.nodes === null) {
|
|
799
|
+
effect.nodes = { start, end, a: null, t: null };
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
function mount(component, options) {
|
|
803
|
+
return _mount(component, options);
|
|
804
|
+
}
|
|
805
|
+
function hydrate(component, options) {
|
|
806
|
+
init_operations();
|
|
807
|
+
options.intro = options.intro ?? false;
|
|
808
|
+
const target = options.target;
|
|
809
|
+
const was_hydrating = hydrating;
|
|
810
|
+
const previous_hydrate_node = hydrate_node;
|
|
811
|
+
try {
|
|
812
|
+
var anchor = get_first_child(target);
|
|
813
|
+
while (anchor && (anchor.nodeType !== COMMENT_NODE || /** @type {Comment} */
|
|
814
|
+
anchor.data !== HYDRATION_START)) {
|
|
815
|
+
anchor = get_next_sibling(anchor);
|
|
816
|
+
}
|
|
817
|
+
if (!anchor) {
|
|
818
|
+
throw HYDRATION_ERROR;
|
|
819
|
+
}
|
|
820
|
+
set_hydrating(true);
|
|
821
|
+
set_hydrate_node(
|
|
822
|
+
/** @type {Comment} */
|
|
823
|
+
anchor
|
|
824
|
+
);
|
|
825
|
+
const instance = _mount(component, { ...options, anchor });
|
|
826
|
+
set_hydrating(false);
|
|
827
|
+
return (
|
|
828
|
+
/** @type {Exports} */
|
|
829
|
+
instance
|
|
830
|
+
);
|
|
831
|
+
} catch (error) {
|
|
832
|
+
if (error instanceof Error && error.message.split("\n").some((line) => line.startsWith("https://svelte.dev/e/"))) {
|
|
833
|
+
throw error;
|
|
834
|
+
}
|
|
835
|
+
if (error !== HYDRATION_ERROR) {
|
|
836
|
+
console.warn("Failed to hydrate: ", error);
|
|
837
|
+
}
|
|
838
|
+
if (options.recover === false) {
|
|
839
|
+
hydration_failed();
|
|
840
|
+
}
|
|
841
|
+
init_operations();
|
|
842
|
+
clear_text_content(target);
|
|
843
|
+
set_hydrating(false);
|
|
844
|
+
return mount(component, options);
|
|
845
|
+
} finally {
|
|
846
|
+
set_hydrating(was_hydrating);
|
|
847
|
+
set_hydrate_node(previous_hydrate_node);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
const listeners = /* @__PURE__ */ new Map();
|
|
851
|
+
function _mount(Component, { target, anchor, props = {}, events, context, intro = true, transformError }) {
|
|
852
|
+
init_operations();
|
|
853
|
+
var component = void 0;
|
|
854
|
+
var unmount2 = component_root(() => {
|
|
855
|
+
var anchor_node = anchor ?? target.appendChild(create_text());
|
|
856
|
+
boundary(
|
|
857
|
+
/** @type {TemplateNode} */
|
|
858
|
+
anchor_node,
|
|
859
|
+
{
|
|
860
|
+
pending: () => {
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
(anchor_node2) => {
|
|
864
|
+
push$1({});
|
|
865
|
+
var ctx = (
|
|
866
|
+
/** @type {ComponentContext} */
|
|
867
|
+
component_context
|
|
868
|
+
);
|
|
869
|
+
if (context) ctx.c = context;
|
|
870
|
+
if (events) {
|
|
871
|
+
props.$$events = events;
|
|
872
|
+
}
|
|
873
|
+
if (hydrating) {
|
|
874
|
+
assign_nodes(
|
|
875
|
+
/** @type {TemplateNode} */
|
|
876
|
+
anchor_node2,
|
|
877
|
+
null
|
|
878
|
+
);
|
|
879
|
+
}
|
|
880
|
+
component = Component(anchor_node2, props) || {};
|
|
881
|
+
if (hydrating) {
|
|
882
|
+
active_effect.nodes.end = hydrate_node;
|
|
883
|
+
if (hydrate_node === null || hydrate_node.nodeType !== COMMENT_NODE || /** @type {Comment} */
|
|
884
|
+
hydrate_node.data !== HYDRATION_END) {
|
|
885
|
+
hydration_mismatch();
|
|
886
|
+
throw HYDRATION_ERROR;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
pop$1();
|
|
890
|
+
},
|
|
891
|
+
transformError
|
|
892
|
+
);
|
|
893
|
+
var registered_events = /* @__PURE__ */ new Set();
|
|
894
|
+
var event_handle = (events2) => {
|
|
895
|
+
for (var i = 0; i < events2.length; i++) {
|
|
896
|
+
var event_name = events2[i];
|
|
897
|
+
if (registered_events.has(event_name)) continue;
|
|
898
|
+
registered_events.add(event_name);
|
|
899
|
+
var passive = is_passive_event(event_name);
|
|
900
|
+
for (const node of [target, document]) {
|
|
901
|
+
var counts = listeners.get(node);
|
|
902
|
+
if (counts === void 0) {
|
|
903
|
+
counts = /* @__PURE__ */ new Map();
|
|
904
|
+
listeners.set(node, counts);
|
|
905
|
+
}
|
|
906
|
+
var count = counts.get(event_name);
|
|
907
|
+
if (count === void 0) {
|
|
908
|
+
node.addEventListener(event_name, handle_event_propagation, { passive });
|
|
909
|
+
counts.set(event_name, 1);
|
|
910
|
+
} else {
|
|
911
|
+
counts.set(event_name, count + 1);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
event_handle(array_from(all_registered_events));
|
|
917
|
+
root_event_handles.add(event_handle);
|
|
918
|
+
return () => {
|
|
919
|
+
for (var event_name of registered_events) {
|
|
920
|
+
for (const node of [target, document]) {
|
|
921
|
+
var counts = (
|
|
922
|
+
/** @type {Map<string, number>} */
|
|
923
|
+
listeners.get(node)
|
|
924
|
+
);
|
|
925
|
+
var count = (
|
|
926
|
+
/** @type {number} */
|
|
927
|
+
counts.get(event_name)
|
|
928
|
+
);
|
|
929
|
+
if (--count == 0) {
|
|
930
|
+
node.removeEventListener(event_name, handle_event_propagation);
|
|
931
|
+
counts.delete(event_name);
|
|
932
|
+
if (counts.size === 0) {
|
|
933
|
+
listeners.delete(node);
|
|
934
|
+
}
|
|
935
|
+
} else {
|
|
936
|
+
counts.set(event_name, count);
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
root_event_handles.delete(event_handle);
|
|
941
|
+
if (anchor_node !== anchor) {
|
|
942
|
+
anchor_node.parentNode?.removeChild(anchor_node);
|
|
943
|
+
}
|
|
944
|
+
};
|
|
945
|
+
});
|
|
946
|
+
mounted_components.set(component, unmount2);
|
|
947
|
+
return component;
|
|
948
|
+
}
|
|
949
|
+
let mounted_components = /* @__PURE__ */ new WeakMap();
|
|
950
|
+
function unmount(component, options) {
|
|
951
|
+
const fn = mounted_components.get(component);
|
|
952
|
+
if (fn) {
|
|
953
|
+
mounted_components.delete(component);
|
|
954
|
+
return fn(options);
|
|
955
|
+
}
|
|
956
|
+
return Promise.resolve();
|
|
957
|
+
}
|
|
958
|
+
function asClassComponent$1(component) {
|
|
959
|
+
return class extends Svelte4Component {
|
|
960
|
+
/** @param {any} options */
|
|
961
|
+
constructor(options) {
|
|
962
|
+
super({
|
|
963
|
+
component,
|
|
964
|
+
...options
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
class Svelte4Component {
|
|
970
|
+
/** @type {any} */
|
|
971
|
+
#events;
|
|
972
|
+
/** @type {Record<string, any>} */
|
|
973
|
+
#instance;
|
|
974
|
+
/**
|
|
975
|
+
* @param {ComponentConstructorOptions & {
|
|
976
|
+
* component: any;
|
|
977
|
+
* }} options
|
|
978
|
+
*/
|
|
979
|
+
constructor(options) {
|
|
980
|
+
var sources = /* @__PURE__ */ new Map();
|
|
981
|
+
var add_source = (key, value) => {
|
|
982
|
+
var s = mutable_source(value, false, false);
|
|
983
|
+
sources.set(key, s);
|
|
984
|
+
return s;
|
|
985
|
+
};
|
|
986
|
+
const props = new Proxy(
|
|
987
|
+
{ ...options.props || {}, $$events: {} },
|
|
988
|
+
{
|
|
989
|
+
get(target, prop) {
|
|
990
|
+
return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
|
991
|
+
},
|
|
992
|
+
has(target, prop) {
|
|
993
|
+
if (prop === LEGACY_PROPS) return true;
|
|
994
|
+
get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
|
995
|
+
return Reflect.has(target, prop);
|
|
996
|
+
},
|
|
997
|
+
set(target, prop, value) {
|
|
998
|
+
set(sources.get(prop) ?? add_source(prop, value), value);
|
|
999
|
+
return Reflect.set(target, prop, value);
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
);
|
|
1003
|
+
this.#instance = (options.hydrate ? hydrate : mount)(options.component, {
|
|
1004
|
+
target: options.target,
|
|
1005
|
+
anchor: options.anchor,
|
|
1006
|
+
props,
|
|
1007
|
+
context: options.context,
|
|
1008
|
+
intro: options.intro ?? false,
|
|
1009
|
+
recover: options.recover,
|
|
1010
|
+
transformError: options.transformError
|
|
1011
|
+
});
|
|
1012
|
+
if (!options?.props?.$$host || options.sync === false) {
|
|
1013
|
+
flushSync();
|
|
1014
|
+
}
|
|
1015
|
+
this.#events = props.$$events;
|
|
1016
|
+
for (const key of Object.keys(this.#instance)) {
|
|
1017
|
+
if (key === "$set" || key === "$destroy" || key === "$on") continue;
|
|
1018
|
+
define_property(this, key, {
|
|
1019
|
+
get() {
|
|
1020
|
+
return this.#instance[key];
|
|
1021
|
+
},
|
|
1022
|
+
/** @param {any} value */
|
|
1023
|
+
set(value) {
|
|
1024
|
+
this.#instance[key] = value;
|
|
1025
|
+
},
|
|
1026
|
+
enumerable: true
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
this.#instance.$set = /** @param {Record<string, any>} next */
|
|
1030
|
+
(next2) => {
|
|
1031
|
+
Object.assign(props, next2);
|
|
1032
|
+
};
|
|
1033
|
+
this.#instance.$destroy = () => {
|
|
1034
|
+
unmount(this.#instance);
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
/** @param {Record<string, any>} props */
|
|
1038
|
+
$set(props) {
|
|
1039
|
+
this.#instance.$set(props);
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* @param {string} event
|
|
1043
|
+
* @param {(...args: any[]) => any} callback
|
|
1044
|
+
* @returns {any}
|
|
1045
|
+
*/
|
|
1046
|
+
$on(event, callback) {
|
|
1047
|
+
this.#events[event] = this.#events[event] || [];
|
|
1048
|
+
const cb = (...args) => callback.call(this, ...args);
|
|
1049
|
+
this.#events[event].push(cb);
|
|
1050
|
+
return () => {
|
|
1051
|
+
this.#events[event] = this.#events[event].filter(
|
|
1052
|
+
/** @param {any} fn */
|
|
1053
|
+
(fn) => fn !== cb
|
|
1054
|
+
);
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
$destroy() {
|
|
1058
|
+
this.#instance.$destroy();
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
function asClassComponent(component) {
|
|
1062
|
+
const component_constructor = asClassComponent$1(component);
|
|
1063
|
+
const _render = (props, { context, csp, transformError } = {}) => {
|
|
1064
|
+
const result = render(component, { props, context, csp, transformError });
|
|
1065
|
+
const munged = Object.defineProperties(
|
|
1066
|
+
/** @type {LegacyRenderResult & PromiseLike<LegacyRenderResult>} */
|
|
1067
|
+
{},
|
|
1068
|
+
{
|
|
1069
|
+
css: {
|
|
1070
|
+
value: { code: "", map: null }
|
|
1071
|
+
},
|
|
1072
|
+
head: {
|
|
1073
|
+
get: () => result.head
|
|
1074
|
+
},
|
|
1075
|
+
html: {
|
|
1076
|
+
get: () => result.body
|
|
1077
|
+
},
|
|
1078
|
+
then: {
|
|
1079
|
+
/**
|
|
1080
|
+
* this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
|
|
1081
|
+
*
|
|
1082
|
+
* @template TResult1
|
|
1083
|
+
* @template [TResult2=never]
|
|
1084
|
+
* @param { (value: LegacyRenderResult) => TResult1 } onfulfilled
|
|
1085
|
+
* @param { (reason: unknown) => TResult2 } onrejected
|
|
1086
|
+
*/
|
|
1087
|
+
value: (onfulfilled, onrejected) => {
|
|
1088
|
+
{
|
|
1089
|
+
const user_result = onfulfilled({
|
|
1090
|
+
css: munged.css,
|
|
1091
|
+
head: munged.head,
|
|
1092
|
+
html: munged.html
|
|
1093
|
+
});
|
|
1094
|
+
return Promise.resolve(user_result);
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
);
|
|
1100
|
+
return munged;
|
|
1101
|
+
};
|
|
1102
|
+
component_constructor.render = _render;
|
|
1103
|
+
return component_constructor;
|
|
1104
|
+
}
|
|
1105
|
+
function Root($$renderer, $$props) {
|
|
1106
|
+
$$renderer.component(($$renderer2) => {
|
|
1107
|
+
let {
|
|
1108
|
+
stores,
|
|
1109
|
+
page,
|
|
1110
|
+
constructors,
|
|
1111
|
+
components = [],
|
|
1112
|
+
form,
|
|
1113
|
+
data_0 = null,
|
|
1114
|
+
data_1 = null
|
|
1115
|
+
} = $$props;
|
|
1116
|
+
{
|
|
1117
|
+
setContext("__svelte__", stores);
|
|
1118
|
+
}
|
|
1119
|
+
{
|
|
1120
|
+
stores.page.set(page);
|
|
1121
|
+
}
|
|
1122
|
+
const Pyramid_1 = derived(() => constructors[1]);
|
|
1123
|
+
if (constructors[1]) {
|
|
1124
|
+
$$renderer2.push("<!--[0-->");
|
|
1125
|
+
const Pyramid_0 = constructors[0];
|
|
1126
|
+
if (Pyramid_0) {
|
|
1127
|
+
$$renderer2.push("<!--[-->");
|
|
1128
|
+
Pyramid_0($$renderer2, {
|
|
1129
|
+
data: data_0,
|
|
1130
|
+
form,
|
|
1131
|
+
params: page.params,
|
|
1132
|
+
children: ($$renderer3) => {
|
|
1133
|
+
if (Pyramid_1()) {
|
|
1134
|
+
$$renderer3.push("<!--[-->");
|
|
1135
|
+
Pyramid_1()($$renderer3, { data: data_1, form, params: page.params });
|
|
1136
|
+
$$renderer3.push("<!--]-->");
|
|
1137
|
+
} else {
|
|
1138
|
+
$$renderer3.push("<!--[!-->");
|
|
1139
|
+
$$renderer3.push("<!--]-->");
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
$$slots: { default: true }
|
|
1143
|
+
});
|
|
1144
|
+
$$renderer2.push("<!--]-->");
|
|
1145
|
+
} else {
|
|
1146
|
+
$$renderer2.push("<!--[!-->");
|
|
1147
|
+
$$renderer2.push("<!--]-->");
|
|
1148
|
+
}
|
|
1149
|
+
} else {
|
|
1150
|
+
$$renderer2.push("<!--[-1-->");
|
|
1151
|
+
const Pyramid_0 = constructors[0];
|
|
1152
|
+
if (Pyramid_0) {
|
|
1153
|
+
$$renderer2.push("<!--[-->");
|
|
1154
|
+
Pyramid_0($$renderer2, { data: data_0, form, params: page.params });
|
|
1155
|
+
$$renderer2.push("<!--]-->");
|
|
1156
|
+
} else {
|
|
1157
|
+
$$renderer2.push("<!--[!-->");
|
|
1158
|
+
$$renderer2.push("<!--]-->");
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
$$renderer2.push(`<!--]--> `);
|
|
1162
|
+
{
|
|
1163
|
+
$$renderer2.push("<!--[-1-->");
|
|
1164
|
+
}
|
|
1165
|
+
$$renderer2.push(`<!--]-->`);
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
const root = asClassComponent(Root);
|
|
1169
|
+
|
|
1170
|
+
export { disable_search as a, base64_decode as b, decode_params as c, decode_pathname as d, validate_layout_exports as e, validate_page_server_exports as f, validate_page_exports as g, text_encoder as h, resolve as i, get_relative_path as j, base64_encode as k, make_trackable as m, normalize_path as n, root as r, text_decoder as t, validate_layout_server_exports as v, with_request_store as w };
|
|
1171
|
+
//# sourceMappingURL=root-DDSnEAZv.js.map
|