@sentropic/h2a 0.97.0 → 0.97.2
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-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +1 -1
- package/.mcp.json +1 -1
- package/dist/cli-command-map.d.ts.map +1 -1
- package/dist/cli-command-map.js +1 -0
- package/dist/cli-command-map.js.map +1 -1
- package/dist/cli-contract.d.ts.map +1 -1
- package/dist/cli-contract.js +11 -3
- package/dist/cli-contract.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +115 -10
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +1 -0
- package/dist/mcp.js.map +1 -1
- package/dist/runtime/identity/index.d.ts +1 -1
- package/dist/runtime/identity/index.d.ts.map +1 -1
- package/dist/runtime/identity/index.js +1 -1
- package/dist/runtime/identity/index.js.map +1 -1
- package/dist/runtime/identity/live.d.ts +4 -0
- package/dist/runtime/identity/live.d.ts.map +1 -1
- package/dist/runtime/identity/live.js +3 -3
- package/dist/runtime/identity/live.js.map +1 -1
- package/dist/runtime/mcp/agent-launch.d.ts +2 -0
- package/dist/runtime/mcp/agent-launch.d.ts.map +1 -1
- package/dist/runtime/mcp/agent-launch.js +11 -0
- package/dist/runtime/mcp/agent-launch.js.map +1 -1
- package/dist/runtime/mcp/handlers.d.ts +5 -0
- package/dist/runtime/mcp/handlers.d.ts.map +1 -1
- package/dist/runtime/mcp/handlers.js +19 -0
- package/dist/runtime/mcp/handlers.js.map +1 -1
- package/dist/runtime/mcp/server.d.ts +3 -0
- package/dist/runtime/mcp/server.d.ts.map +1 -1
- package/dist/runtime/mcp/server.js +3 -1
- package/dist/runtime/mcp/server.js.map +1 -1
- package/dist/runtime/mcp/stdio.d.ts +3 -0
- package/dist/runtime/mcp/stdio.d.ts.map +1 -1
- package/dist/runtime/mcp/stdio.js +1 -0
- package/dist/runtime/mcp/stdio.js.map +1 -1
- package/dist/runtime/mcp/tools.d.ts.map +1 -1
- package/dist/runtime/mcp/tools.js +17 -0
- package/dist/runtime/mcp/tools.js.map +1 -1
- package/dist/runtime/send.d.ts +40 -0
- package/dist/runtime/send.d.ts.map +1 -0
- package/dist/runtime/send.js +108 -0
- package/dist/runtime/send.js.map +1 -0
- package/focus-app/client/_app/immutable/chunks/BgBtu3IQ.js +2 -0
- package/focus-app/client/_app/immutable/chunks/BgBtu3IQ.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/BgBtu3IQ.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/{app.D1IjBbSs.js → app.D_yfk55R.js} +2 -2
- package/focus-app/client/_app/immutable/entry/app.D_yfk55R.js.br +0 -0
- package/focus-app/client/_app/immutable/entry/app.D_yfk55R.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/start.CoQWYNTs.js +1 -0
- package/focus-app/client/_app/immutable/entry/start.CoQWYNTs.js.br +2 -0
- package/focus-app/client/_app/immutable/entry/start.CoQWYNTs.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/{1.CcZFi3uA.js → 1.Jo1uWTw0.js} +1 -1
- package/focus-app/client/_app/immutable/nodes/1.Jo1uWTw0.js.br +4 -0
- package/focus-app/client/_app/immutable/nodes/1.Jo1uWTw0.js.gz +0 -0
- package/focus-app/client/_app/version.json +1 -1
- package/focus-app/client/_app/version.json.br +0 -0
- package/focus-app/client/_app/version.json.gz +0 -0
- package/focus-app/h2a-focus.json +61 -61
- package/focus-app/handler.js +8 -8
- package/focus-app/index.js +8 -8
- package/focus-app/server/chunks/chunks/{AppShell.js-BDEpw0ai.js → AppShell.js-BoWxjmfr.js} +2 -2
- package/focus-app/server/chunks/chunks/{AppShell.js-BDEpw0ai.js.map → AppShell.js-BoWxjmfr.js.map} +1 -1
- package/focus-app/server/chunks/chunks/{exports.js-BZfNcFtJ.js → exports.js-D45A8dcc.js} +3 -3
- package/focus-app/server/chunks/chunks/{exports.js-BZfNcFtJ.js.map → exports.js-D45A8dcc.js.map} +1 -1
- package/focus-app/server/chunks/chunks/{index.js--xmWq8-W.js → index.js-e3L5MwfB.js} +2 -2
- package/focus-app/server/chunks/chunks/{index.js--xmWq8-W.js.map → index.js-e3L5MwfB.js.map} +1 -1
- package/focus-app/server/chunks/chunks/{internal.js-o4rWftwV.js → internal.js-DAV-A6NO.js} +3 -3
- package/focus-app/server/chunks/chunks/{internal.js-o4rWftwV.js.map → internal.js-DAV-A6NO.js.map} +1 -1
- package/focus-app/server/chunks/chunks/{root.js-ve7Sv8eD.js → root.js-CEypm32A.js} +2 -2
- package/focus-app/server/chunks/chunks/{root.js-ve7Sv8eD.js.map → root.js-CEypm32A.js.map} +1 -1
- package/focus-app/server/chunks/chunks/{utils.js-h3jETFNR.js → utils.js-Bzpr6vQU.js} +406 -141
- package/focus-app/server/chunks/chunks/utils.js-Bzpr6vQU.js.map +1 -0
- package/focus-app/server/chunks/entries/endpoints/api/actions/launch/{_server.ts.js-DVeNoSe-.js → _server.ts.js-Cah_Ivgw.js} +2 -2
- package/focus-app/server/chunks/entries/endpoints/api/actions/launch/{_server.ts.js-DVeNoSe-.js.map → _server.ts.js-Cah_Ivgw.js.map} +1 -1
- package/focus-app/server/chunks/entries/endpoints/api/decisions/inject/{_server.ts.js-CLfZIM0I.js → _server.ts.js-DW5wvcgH.js} +2 -2
- package/focus-app/server/chunks/entries/endpoints/api/decisions/inject/{_server.ts.js-CLfZIM0I.js.map → _server.ts.js-DW5wvcgH.js.map} +1 -1
- package/focus-app/server/chunks/entries/endpoints/api/dossiers/agent-memory/include/{_server.ts.js-DNQwbxOr.js → _server.ts.js-C2jIx8Jr.js} +2 -2
- package/focus-app/server/chunks/entries/endpoints/api/dossiers/agent-memory/include/{_server.ts.js-DNQwbxOr.js.map → _server.ts.js-C2jIx8Jr.js.map} +1 -1
- package/focus-app/server/chunks/entries/endpoints/api/h2a/targets/{_server.ts.js-BqneXTTN.js → _server.ts.js-BkAMLcHu.js} +2 -2
- package/focus-app/server/chunks/entries/endpoints/api/h2a/targets/{_server.ts.js-BqneXTTN.js.map → _server.ts.js-BkAMLcHu.js.map} +1 -1
- package/focus-app/server/chunks/entries/fallbacks/{error.svelte.js-VpNJnNVG.js → error.svelte.js-BWuS92Wk.js} +5 -5
- package/focus-app/server/chunks/entries/fallbacks/{error.svelte.js-VpNJnNVG.js.map → error.svelte.js-BWuS92Wk.js.map} +1 -1
- package/focus-app/server/chunks/entries/pages/{_layout.svelte.js-D_Rgb6oH.js → _layout.svelte.js-CKspI0Bw.js} +3 -3
- package/focus-app/server/chunks/entries/pages/{_layout.svelte.js-D_Rgb6oH.js.map → _layout.svelte.js-CKspI0Bw.js.map} +1 -1
- package/focus-app/server/chunks/entries/pages/{_page.svelte.js-2a7ZxK1n.js → _page.svelte.js-B8EWZmZj.js} +4 -4
- package/focus-app/server/chunks/entries/pages/{_page.svelte.js-2a7ZxK1n.js.map → _page.svelte.js-B8EWZmZj.js.map} +1 -1
- package/focus-app/server/chunks/entries/pages/dossier/agent-memory/{_page.svelte.js-Bl_4XjaL.js → _page.svelte.js-BZvcKeya.js} +4 -4
- package/focus-app/server/chunks/entries/pages/dossier/agent-memory/{_page.svelte.js-Bl_4XjaL.js.map → _page.svelte.js-BZvcKeya.js.map} +1 -1
- package/focus-app/server/chunks/{handler-B897YV9_.js → handler-BCBpURX0.js} +4 -4
- package/focus-app/server/chunks/{handler-B897YV9_.js.map → handler-BCBpURX0.js.map} +1 -1
- package/focus-app/server/chunks/{index.js-BkPsDsTn.js → index.js-CZWB6FqQ.js} +5 -5
- package/focus-app/server/chunks/{index.js-BkPsDsTn.js.map → index.js-CZWB6FqQ.js.map} +1 -1
- package/focus-app/server/chunks/{manifest.js-DZ6J-aM3.js → manifest.js-C2CyTiUe.js} +10 -10
- package/focus-app/server/chunks/{manifest.js-DZ6J-aM3.js.map → manifest.js-C2CyTiUe.js.map} +1 -1
- package/focus-app/server/chunks/nodes/{0.js-tlwNtUnO.js → 0.js-Cp9RMJ1x.js} +2 -2
- package/focus-app/server/chunks/nodes/{0.js-tlwNtUnO.js.map → 0.js-Cp9RMJ1x.js.map} +1 -1
- package/focus-app/server/chunks/nodes/1.js-DMWmTj0d.js +9 -0
- package/focus-app/server/chunks/nodes/{1.js-mLYMqMM3.js.map → 1.js-DMWmTj0d.js.map} +1 -1
- package/focus-app/server/chunks/nodes/{2.js-C_y8BeMm.js → 2.js-Dv8Q6LQc.js} +2 -2
- package/focus-app/server/chunks/nodes/{2.js-C_y8BeMm.js.map → 2.js-Dv8Q6LQc.js.map} +1 -1
- package/focus-app/server/chunks/nodes/{3.js-13r5MUAa.js → 3.js-DJH-zOae.js} +2 -2
- package/focus-app/server/chunks/nodes/{3.js-13r5MUAa.js.map → 3.js-DJH-zOae.js.map} +1 -1
- package/package.json +3 -3
- package/skills/h2a/SKILL.md +11 -33
- package/focus-app/client/_app/immutable/chunks/DAAR3e-c.js +0 -2
- package/focus-app/client/_app/immutable/chunks/DAAR3e-c.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/DAAR3e-c.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/app.D1IjBbSs.js.br +0 -0
- package/focus-app/client/_app/immutable/entry/app.D1IjBbSs.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/start.DHa1k4dG.js +0 -1
- package/focus-app/client/_app/immutable/entry/start.DHa1k4dG.js.br +0 -2
- package/focus-app/client/_app/immutable/entry/start.DHa1k4dG.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/1.CcZFi3uA.js.br +0 -0
- package/focus-app/client/_app/immutable/nodes/1.CcZFi3uA.js.gz +0 -0
- package/focus-app/server/chunks/chunks/utils.js-h3jETFNR.js.map +0 -1
- package/focus-app/server/chunks/nodes/1.js-mLYMqMM3.js +0 -9
|
@@ -10,12 +10,12 @@ return {
|
|
|
10
10
|
assets: new Set([]),
|
|
11
11
|
mimeTypes: {},
|
|
12
12
|
_: {
|
|
13
|
-
client: {start:"_app/immutable/entry/start.
|
|
13
|
+
client: {start:"_app/immutable/entry/start.CoQWYNTs.js",app:"_app/immutable/entry/app.D_yfk55R.js",imports:["_app/immutable/entry/start.CoQWYNTs.js","_app/immutable/chunks/BgBtu3IQ.js","_app/immutable/chunks/x-hq5fDG.js","_app/immutable/chunks/1NK_OeRJ.js","_app/immutable/entry/app.D_yfk55R.js","_app/immutable/chunks/x-hq5fDG.js","_app/immutable/chunks/B1veta3r.js","_app/immutable/chunks/kCE9wz0g.js","_app/immutable/chunks/1NK_OeRJ.js","_app/immutable/chunks/C6KhNEX3.js","_app/immutable/chunks/BZ4lcC0v.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
14
14
|
nodes: [
|
|
15
|
-
__memo(() => import('./nodes/0.js-
|
|
16
|
-
__memo(() => import('./nodes/1.js-
|
|
17
|
-
__memo(() => import('./nodes/2.js-
|
|
18
|
-
__memo(() => import('./nodes/3.js-
|
|
15
|
+
__memo(() => import('./nodes/0.js-Cp9RMJ1x.js')),
|
|
16
|
+
__memo(() => import('./nodes/1.js-DMWmTj0d.js')),
|
|
17
|
+
__memo(() => import('./nodes/2.js-Dv8Q6LQc.js')),
|
|
18
|
+
__memo(() => import('./nodes/3.js-DJH-zOae.js'))
|
|
19
19
|
],
|
|
20
20
|
remotes: {
|
|
21
21
|
|
|
@@ -33,28 +33,28 @@ return {
|
|
|
33
33
|
pattern: /^\/api\/actions\/launch\/?$/,
|
|
34
34
|
params: [],
|
|
35
35
|
page: null,
|
|
36
|
-
endpoint: __memo(() => import('./entries/endpoints/api/actions/launch/_server.ts.js-
|
|
36
|
+
endpoint: __memo(() => import('./entries/endpoints/api/actions/launch/_server.ts.js-Cah_Ivgw.js'))
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
id: "/api/decisions/inject",
|
|
40
40
|
pattern: /^\/api\/decisions\/inject\/?$/,
|
|
41
41
|
params: [],
|
|
42
42
|
page: null,
|
|
43
|
-
endpoint: __memo(() => import('./entries/endpoints/api/decisions/inject/_server.ts.js-
|
|
43
|
+
endpoint: __memo(() => import('./entries/endpoints/api/decisions/inject/_server.ts.js-DW5wvcgH.js'))
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
id: "/api/dossiers/agent-memory/include",
|
|
47
47
|
pattern: /^\/api\/dossiers\/agent-memory\/include\/?$/,
|
|
48
48
|
params: [],
|
|
49
49
|
page: null,
|
|
50
|
-
endpoint: __memo(() => import('./entries/endpoints/api/dossiers/agent-memory/include/_server.ts.js-
|
|
50
|
+
endpoint: __memo(() => import('./entries/endpoints/api/dossiers/agent-memory/include/_server.ts.js-C2jIx8Jr.js'))
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
id: "/api/h2a/targets",
|
|
54
54
|
pattern: /^\/api\/h2a\/targets\/?$/,
|
|
55
55
|
params: [],
|
|
56
56
|
page: null,
|
|
57
|
-
endpoint: __memo(() => import('./entries/endpoints/api/h2a/targets/_server.ts.js-
|
|
57
|
+
endpoint: __memo(() => import('./entries/endpoints/api/h2a/targets/_server.ts.js-BkAMLcHu.js'))
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
id: "/dossier/agent-memory",
|
|
@@ -75,4 +75,4 @@ return {
|
|
|
75
75
|
})();
|
|
76
76
|
|
|
77
77
|
export { manifest as m };
|
|
78
|
-
//# sourceMappingURL=manifest.js-
|
|
78
|
+
//# sourceMappingURL=manifest.js-C2CyTiUe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js-
|
|
1
|
+
{"version":3,"file":"manifest.js-C2CyTiUe.js","sources":["../../../.svelte-kit/output/server/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([]),\n\tmimeTypes: {},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.CoQWYNTs.js\",app:\"_app/immutable/entry/app.D_yfk55R.js\",imports:[\"_app/immutable/entry/start.CoQWYNTs.js\",\"_app/immutable/chunks/BgBtu3IQ.js\",\"_app/immutable/chunks/x-hq5fDG.js\",\"_app/immutable/chunks/1NK_OeRJ.js\",\"_app/immutable/entry/app.D_yfk55R.js\",\"_app/immutable/chunks/x-hq5fDG.js\",\"_app/immutable/chunks/B1veta3r.js\",\"_app/immutable/chunks/kCE9wz0g.js\",\"_app/immutable/chunks/1NK_OeRJ.js\",\"_app/immutable/chunks/C6KhNEX3.js\",\"_app/immutable/chunks/BZ4lcC0v.js\"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/2.js')),\n\t\t\t__memo(() => import('./nodes/3.js'))\n\t\t],\n\t\tremotes: {\n\t\t\t\n\t\t},\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/\",\n\t\t\t\tpattern: /^\\/$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/actions/launch\",\n\t\t\t\tpattern: /^\\/api\\/actions\\/launch\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/actions/launch/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/decisions/inject\",\n\t\t\t\tpattern: /^\\/api\\/decisions\\/inject\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/decisions/inject/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/dossiers/agent-memory/include\",\n\t\t\t\tpattern: /^\\/api\\/dossiers\\/agent-memory\\/include\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/dossiers/agent-memory/include/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/h2a/targets\",\n\t\t\t\tpattern: /^\\/api\\/h2a\\/targets\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/h2a/targets/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/dossier/agent-memory\",\n\t\t\t\tpattern: /^\\/dossier\\/agent-memory\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t}\n\t\t],\n\t\tprerendered_routes: new Set([]),\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t},\n\t\tserver_assets: {}\n\t}\n}\n})();\n"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;AACpB,CAAC,IAAI,KAAK;AACV,CAAC,OAAO,MAAM,KAAK,MAAM,KAAK,GAAG,EAAE,EAAE,CAAC;AACtC;;AAEA,OAAO;AACP,CAAC,MAAM,EAAE,MAAM;AACf,CAAC,OAAO,EAAE,MAAM;AAChB,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,EAAE,CAAC;AACpB,CAAC,SAAS,EAAE,EAAE;AACd,CAAC,CAAC,EAAE;AACJ,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,wCAAwC,CAAC,GAAG,CAAC,sCAAsC,CAAC,OAAO,CAAC,CAAC,wCAAwC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,sCAAsC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC;AACzjB,EAAE,KAAK,EAAE;AACT,GAAG,MAAM,CAAC,MAAM,OAAO,0BAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,0BAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,0BAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,0BAAc,CAAC;AACtC,GAAG;AACH,EAAE,OAAO,EAAE;AACX;AACA,GAAG;AACH,EAAE,MAAM,EAAE;AACV,GAAG;AACH,IAAI,EAAE,EAAE,GAAG;AACX,IAAI,OAAO,EAAE,MAAM;AACnB,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE;AACd,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,qBAAqB;AAC7B,IAAI,OAAO,EAAE,6BAA6B;AAC1C,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,kEAAsD,CAAC;AACzF,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,uBAAuB;AAC/B,IAAI,OAAO,EAAE,+BAA+B;AAC5C,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,oEAAwD,CAAC;AAC3F,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,oCAAoC;AAC5C,IAAI,OAAO,EAAE,6CAA6C;AAC1D,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iFAAqE,CAAC;AACxG,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,kBAAkB;AAC1B,IAAI,OAAO,EAAE,0BAA0B;AACvC,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,+DAAmD,CAAC;AACtF,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,uBAAuB;AAC/B,IAAI,OAAO,EAAE,8BAA8B;AAC3C,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE;AACd;AACA,GAAG;AACH,EAAE,kBAAkB,EAAE,IAAI,GAAG,CAAC,EAAE,CAAC;AACjC,EAAE,QAAQ,EAAE,YAAY;AACxB;AACA,GAAG,OAAO,IAAI;AACd,EAAE,CAAC;AACH,EAAE,aAAa,EAAE;AACjB;AACA;AACA,CAAC;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 0;
|
|
2
2
|
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js-
|
|
3
|
+
const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js-CKspI0Bw.js')).default;
|
|
4
4
|
const imports = ["_app/immutable/nodes/0.gLl44WzG.js","_app/immutable/chunks/kCE9wz0g.js","_app/immutable/chunks/x-hq5fDG.js","_app/immutable/chunks/Bu7F9NOv.js","_app/immutable/chunks/BZ4lcC0v.js"];
|
|
5
5
|
const stylesheets = ["_app/immutable/assets/0.CgEVz9YW.css"];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=0.js-
|
|
9
|
+
//# sourceMappingURL=0.js-Cp9RMJ1x.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0.js-
|
|
1
|
+
{"version":3,"file":"0.js-Cp9RMJ1x.js","sources":["../../../../.svelte-kit/output/server/nodes/0.js"],"sourcesContent":["\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/0.gLl44WzG.js\",\"_app/immutable/chunks/kCE9wz0g.js\",\"_app/immutable/chunks/x-hq5fDG.js\",\"_app/immutable/chunks/Bu7F9NOv.js\",\"_app/immutable/chunks/BZ4lcC0v.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.CgEVz9YW.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,gDAAoC,CAAC,EAAE;AAClG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChM,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 1;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js-BWuS92Wk.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.Jo1uWTw0.js","_app/immutable/chunks/kCE9wz0g.js","_app/immutable/chunks/x-hq5fDG.js","_app/immutable/chunks/B1veta3r.js","_app/immutable/chunks/BgBtu3IQ.js","_app/immutable/chunks/1NK_OeRJ.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=1.js-DMWmTj0d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1.js-
|
|
1
|
+
{"version":3,"file":"1.js-DMWmTj0d.js","sources":["../../../../.svelte-kit/output/server/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.Jo1uWTw0.js\",\"_app/immutable/chunks/kCE9wz0g.js\",\"_app/immutable/chunks/x-hq5fDG.js\",\"_app/immutable/chunks/B1veta3r.js\",\"_app/immutable/chunks/BgBtu3IQ.js\",\"_app/immutable/chunks/1NK_OeRJ.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,kDAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -9,11 +9,11 @@ import 'node:os';
|
|
|
9
9
|
|
|
10
10
|
const index = 2;
|
|
11
11
|
let component_cache;
|
|
12
|
-
const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js-
|
|
12
|
+
const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js-B8EWZmZj.js')).default;
|
|
13
13
|
const server_id = "src/routes/+page.server.ts";
|
|
14
14
|
const imports = ["_app/immutable/nodes/2.Bp7JE7Pz.js","_app/immutable/chunks/kCE9wz0g.js","_app/immutable/chunks/x-hq5fDG.js","_app/immutable/chunks/B1veta3r.js","_app/immutable/chunks/C6KhNEX3.js","_app/immutable/chunks/BZ4lcC0v.js","_app/immutable/chunks/DIljKPJN.js","_app/immutable/chunks/Bu7F9NOv.js"];
|
|
15
15
|
const stylesheets = ["_app/immutable/assets/AppShell.CDPwj3zU.css","_app/immutable/assets/2.DaTmt6o7.css"];
|
|
16
16
|
const fonts = [];
|
|
17
17
|
|
|
18
18
|
export { component, fonts, imports, index, server_id, stylesheets };
|
|
19
|
-
//# sourceMappingURL=2.js-
|
|
19
|
+
//# sourceMappingURL=2.js-Dv8Q6LQc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2.js-
|
|
1
|
+
{"version":3,"file":"2.js-Dv8Q6LQc.js","sources":["../../../../.svelte-kit/output/server/nodes/2.js"],"sourcesContent":["import * as server from '../entries/pages/_page.server.ts.js';\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/2.Bp7JE7Pz.js\",\"_app/immutable/chunks/kCE9wz0g.js\",\"_app/immutable/chunks/x-hq5fDG.js\",\"_app/immutable/chunks/B1veta3r.js\",\"_app/immutable/chunks/C6KhNEX3.js\",\"_app/immutable/chunks/BZ4lcC0v.js\",\"_app/immutable/chunks/DIljKPJN.js\",\"_app/immutable/chunks/Bu7F9NOv.js\"];\nexport const stylesheets = [\"_app/immutable/assets/AppShell.CDPwj3zU.css\",\"_app/immutable/assets/2.DaTmt6o7.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8CAAkC,CAAC,EAAE;AAEhG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG,CAAC,6CAA6C,CAAC,sCAAsC;AACpG,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -8,11 +8,11 @@ import '../chunks/agent-memory-dossier.js-nmFG_rgx.js';
|
|
|
8
8
|
|
|
9
9
|
const index = 3;
|
|
10
10
|
let component_cache;
|
|
11
|
-
const component = async () => component_cache ??= (await import('../entries/pages/dossier/agent-memory/_page.svelte.js-
|
|
11
|
+
const component = async () => component_cache ??= (await import('../entries/pages/dossier/agent-memory/_page.svelte.js-BZvcKeya.js')).default;
|
|
12
12
|
const server_id = "src/routes/dossier/agent-memory/+page.server.ts";
|
|
13
13
|
const imports = ["_app/immutable/nodes/3.Cml8enOG.js","_app/immutable/chunks/kCE9wz0g.js","_app/immutable/chunks/x-hq5fDG.js","_app/immutable/chunks/1NK_OeRJ.js","_app/immutable/chunks/B1veta3r.js","_app/immutable/chunks/C6KhNEX3.js","_app/immutable/chunks/BZ4lcC0v.js","_app/immutable/chunks/DIljKPJN.js","_app/immutable/chunks/Bu7F9NOv.js"];
|
|
14
14
|
const stylesheets = ["_app/immutable/assets/AppShell.CDPwj3zU.css","_app/immutable/assets/3.vWQUAHjz.css"];
|
|
15
15
|
const fonts = [];
|
|
16
16
|
|
|
17
17
|
export { component, fonts, imports, index, server_id, stylesheets };
|
|
18
|
-
//# sourceMappingURL=3.js-
|
|
18
|
+
//# sourceMappingURL=3.js-DJH-zOae.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3.js-
|
|
1
|
+
{"version":3,"file":"3.js-DJH-zOae.js","sources":["../../../../.svelte-kit/output/server/nodes/3.js"],"sourcesContent":["import * as server from '../entries/pages/dossier/agent-memory/_page.server.ts.js';\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/dossier/agent-memory/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/dossier/agent-memory/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/3.Cml8enOG.js\",\"_app/immutable/chunks/kCE9wz0g.js\",\"_app/immutable/chunks/x-hq5fDG.js\",\"_app/immutable/chunks/1NK_OeRJ.js\",\"_app/immutable/chunks/B1veta3r.js\",\"_app/immutable/chunks/C6KhNEX3.js\",\"_app/immutable/chunks/BZ4lcC0v.js\",\"_app/immutable/chunks/DIljKPJN.js\",\"_app/immutable/chunks/Bu7F9NOv.js\"];\nexport const stylesheets = [\"_app/immutable/assets/AppShell.CDPwj3zU.css\",\"_app/immutable/assets/3.vWQUAHjz.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,mEAAuD,CAAC,EAAE;AAErH,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChV,MAAC,WAAW,GAAG,CAAC,6CAA6C,CAAC,sCAAsC;AACpG,MAAC,KAAK,GAAG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentropic/h2a",
|
|
3
|
-
"version": "0.97.
|
|
3
|
+
"version": "0.97.2",
|
|
4
4
|
"description": "h2a — the unified CLI + core for human-to-agent coordination.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"@sentropic/cluster-mesh": "0.9.0",
|
|
56
56
|
"@sentropic/contracts": "^0.3.0",
|
|
57
57
|
"@sentropic/events": "^0.2.0",
|
|
58
|
-
"@sentropic/track": "^0.97.
|
|
58
|
+
"@sentropic/track": "^0.97.2",
|
|
59
59
|
"hono": "^4.13.7"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@sentropic/h2a-runtime": "^0.97.
|
|
62
|
+
"@sentropic/h2a-runtime": "^0.97.2"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/skills/h2a/SKILL.md
CHANGED
|
@@ -148,7 +148,7 @@ Return shape (all cases exit 0 except user errors):
|
|
|
148
148
|
|
|
149
149
|
### `/h2a send <peer> "<text>"`
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
Send an authenticated message to a named peer through the native core tool.
|
|
152
152
|
|
|
153
153
|
**Resolve-before-send rule (0.59.0+):** Always resolve the peer to its LIVE full id (`host:label:uuid12`) via `h2a_discover_sessions` BEFORE sending. A bare `host:label` sent to an ambiguous target (>1 live agent sharing that alias) or a phantom target (0 live, 0 registered) is now **REFUSED** by `h2a_inbox put` / `h2a` CLI with exit 1. Never invent a sub-label. The safe pattern is: discover → pick the exact live `host:label:uuid12` → send to that. A bare alias is only acceptable for a dormant/wake-drop or exactly 1 live match (the tool surfaces the live candidate in `liveCandidate`).
|
|
154
154
|
|
|
@@ -160,41 +160,19 @@ Steps:
|
|
|
160
160
|
- If the user names a peer by PURPOSE/role, call `h2a_discover_sessions` with `{ scope: "<purpose>" }`. If the user names a peer by FRIENDLY NAME, call `h2a_discover_sessions` with `{ name: "<substring>" }`. NEVER grep the registry for a name: instance ids are workspace-derived (`host:slug(workspace):uuid`) so a text search misses. If several match, list and ask; if none, the agent hasn't advertised that scope/name.
|
|
161
161
|
- If `<peer>` is missing, list discover and ask the user to pick.
|
|
162
162
|
2. If `"<text>"` is missing, prompt the user for the content.
|
|
163
|
-
3.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"instance": "<this-agent-instance>",
|
|
172
|
-
"role": "<this-agent-role-or-AGENTS>",
|
|
173
|
-
"scope": "<shared-scope-or-default>"
|
|
174
|
-
},
|
|
175
|
-
"body": { "kind": "message", "text": "<text>" },
|
|
176
|
-
"createdAt": "<ISO-8601-now>"
|
|
177
|
-
}
|
|
178
|
-
```
|
|
179
|
-
4. **Hard rule: the recipient MUST be host-qualified (`<host>:<label>`, e.g. `claude:radar-immobilier`). A bare label (e.g. `radar-immobilier`) is rejected — the same label can live on several hosts (claude, codex, …), so a bare label is ambiguous and routes to an orphan inbox nobody reads.**
|
|
180
|
-
|
|
181
|
-
Call `h2a_inbox` with `{ action: "put", instance: "<peer>", envelope }`.
|
|
182
|
-
|
|
183
|
-
**Conversation threading (optional, lightweight):** To continue an existing back-and-forth as a thread, add two top-level fields to the envelope JSON before putting it:
|
|
184
|
-
- `"threadId": "<id>"` — reuse the `threadId` from the peer's previous envelope, or mint a fresh one as `thr:<epoch-ms>:<4hex>` to start a new thread.
|
|
185
|
-
- `"replyTo": "<prev-envelope-id>"` — the `id` of the envelope you are replying to.
|
|
186
|
-
|
|
187
|
-
To reconstruct the ordered fil of a thread (for supervision or before opening a formal negotiation):
|
|
188
|
-
```sh
|
|
189
|
-
h2a thread --id <threadId> --instance <self-instance> --root <root>
|
|
190
|
-
```
|
|
191
|
-
This returns the envelopes (from your inbox + outbox) that share that `threadId`, sorted ascending by `createdAt`, deduped. No new store — storage is derived on the fly.
|
|
192
|
-
|
|
193
|
-
5. **Report honestly per the target's liveness** (h2a writes the inbox unconditionally — it does NOT yet error on a dead target, so YOU must say which it was):
|
|
163
|
+
3. Call `h2a_send` with exactly `{ to: "<peer>", message: "<text>" }`.
|
|
164
|
+
The local MCP sidecar supplies its trusted signing identity; never request,
|
|
165
|
+
construct, or pass a private key or sender field. The tool resolves the peer,
|
|
166
|
+
constructs the canonical envelope, verifies the sender's active key, and only
|
|
167
|
+
then writes the inbox. If the tool is unavailable because the sidecar has no
|
|
168
|
+
auto-open signing identity, report that error; do not fall back to unsigned
|
|
169
|
+
`h2a_inbox put`.
|
|
170
|
+
4. **Report honestly from the tool result:**
|
|
194
171
|
- target was **live** in discover → *"Delivered to `<peer>` (live) — push fires if subscribed."*
|
|
195
172
|
- target was **NOT live** → *"`<peer>` is dormant — envelope deposited for its wake (no live session; it will only see this once woken)."* Never claim "Delivered" to a dormant/unknown peer.
|
|
196
173
|
|
|
197
|
-
For richer payloads
|
|
174
|
+
For richer payloads, use the formal negotiation/inbox contracts; `h2a_send` is
|
|
175
|
+
deliberately the small signed text-message primitive.
|
|
198
176
|
|
|
199
177
|
### `/h2a receive`
|
|
200
178
|
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b0 as Ae,bh as It,au as le,bi as Tt,av as P,I as N,M as j}from"./x-hq5fDG.js";import{o as Ge}from"./1NK_OeRJ.js";const H=[];function Oe(e,t=Ae){let n=null;const r=new Set;function o(i){if(It(e,i)&&(e=i,n)){const c=!H.length;for(const l of r)l[1](),H.push(l,e);if(c){for(let l=0;l<H.length;l+=2)H[l][0](H[l+1]);H.length=0}}}function s(i){o(i(e))}function a(i,c=Ae){const l=[i,c];return r.add(l),r.size===1&&(n=t(o,s)||Ae),i(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:o,update:s,subscribe:a}}const Ut="h2a-focus-829c91eef206f0a2",L=globalThis.__sveltekit_9ixev1?.base??"",Lt=globalThis.__sveltekit_9ixev1?.assets??L??"";new URL("sveltekit-internal://");function Pt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Nt(e){return e.split("%25").map(decodeURI).join("%25")}function jt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Se({href:e}){return e.split("#")[0]}const Ot=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,xt=/^\/\((?:[^)]+)\)$/;function Ct(e){const t=[];return{pattern:e==="/"||xt.test(e)?/^\/$/:new RegExp(`^${Dt(e).map(r=>{const o=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const a=r.split(/\[(.+?)\](?!\])/);return"/"+a.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return Re(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Re(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const u=Ot.exec(c),[,d,p,h,f]=u;return t.push({name:h,matcher:f,optional:!!d,rest:!!p,chained:p?l===1&&a[0]==="":!1}),p?"([^]*?)":d?"([^/]*)?":"([^/]+?)"}return Re(c)}).join("")}).join("")}/?$`),params:t}}function $t(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Dt(e){return e.slice(1).split("/").filter($t)}function Mt(e,t,n){const r={},o=e.slice(1),s=o.filter(i=>i!==void 0);let a=0;for(let i=0;i<t.length;i+=1){const c=t[i];let l=o[i-a];if(c.chained&&c.rest&&a&&(l=o.slice(i-a,i+1).filter(u=>u).join("/"),a=0),l===void 0)if(c.rest)l="";else continue;if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const u=t[i+1],d=o[i+1];u&&!u.rest&&u.optional&&d&&c.chained&&(a=0),!u&&!d&&Object.keys(r).length===s.length&&(a=0);continue}if(c.optional&&c.chained){a++;continue}return}if(!a)return r}function Re(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}class se{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class xe{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Ce extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}function $(){}function Bt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let o=r.length;for(;o;)t=t*33^r[--o]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function Ft(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const qt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Q.delete($e(e)),qt(e,t));const Q=new Map;function Vt(e,t){const n=$e(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:o,...s}=JSON.parse(r.textContent);r.getAttribute("data-b64")!==null&&(o=Ft(o));const i=r.getAttribute("data-ttl");return i&&Q.set(n,{body:o,init:s,ttl:1e3*Number(i)}),Promise.resolve(new Response(o,s))}return window.fetch(e,t)}function Ht(e,t,n){if(Q.size>0){const r=$e(e,n),o=Q.get(r);if(o){if(performance.now()<o.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(o.body,o.init);Q.delete(r)}}return window.fetch(t,n)}function $e(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const o=[];t.headers&&o.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&o.push(t.body),r+=`[data-hash="${Bt(...o)}"]`}return r}function Yt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const o=new Set(t);return Object.entries(n).map(([i,[c,l,u]])=>{const{pattern:d,params:p}=Ct(i),h={id:i,exec:f=>{const m=d.exec(f);if(m)return Mt(m,p,r)},errors:[1,...u||[]].map(f=>e[f]),layouts:[0,...l||[]].map(a),leaf:s(c)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function s(i){const c=i<0;return c&&(i=~i),[c,e[i]]}function a(i){return i===void 0?i:[o.has(i),e[i]]}}function rt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ke(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const Gt=-1,Kt=-2,Wt=-3,zt=-4,Xt=-5,Jt=-6,Zt=-7,at=2**32-1,Ue=at-1;function Qt(e){return!(!Number.isInteger(e)||e<0||e>Ue)}function en(e){return!(!Number.isInteger(e)||e<0||e>at)}function tn(e){return Uint8Array.fromBase64(e).buffer}function nn(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function rn(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t.charCodeAt(o);return r.buffer}const an=typeof Uint8Array.fromBase64=="function",on=typeof process=="object"&&process.versions?.node!==void 0,sn=an?tn:on?nn:rn;function cn(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let o=null;function s(a,i=!1){if(a===Gt)return;if(a===Wt)return NaN;if(a===zt)return 1/0;if(a===Xt)return-1/0;if(a===Jt)return-0;if(i||typeof a!="number")throw new Error("Invalid input");if(a in r)return r[a];const c=n[a];if(!c||typeof c!="object")r[a]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const l=c[0],u=t&&Object.hasOwn(t,l)?t[l]:void 0;if(u){let d=c[1];if(typeof d!="number"&&(d=n.push(c[1])-1),o??=new Set,o.has(d))throw new Error("Invalid circular reference");return o.add(d),r[a]=u(s(d)),o.delete(d),r[a]}switch(l){case"Date":r[a]=new Date(c[1]);break;case"Set":const d=new Set;r[a]=d;for(let f=1;f<c.length;f+=1)d.add(s(c[f]));break;case"Map":const p=new Map;r[a]=p;for(let f=1;f<c.length;f+=2)p.set(s(c[f]),s(c[f+1]));break;case"RegExp":r[a]=new RegExp(c[1],c[2]);break;case"Object":{const f=c[1];if(typeof n[f]=="object"&&n[f][0]!=="BigInt")throw new Error("Invalid input");r[a]=Object(s(f));break}case"BigInt":r[a]=BigInt(c[1]);break;case"null":const h=Object.create(null);r[a]=h;for(let f=1;f<c.length;f+=2){if(c[f]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");h[c[f]]=s(c[f+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[c[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const f=globalThis[l],m=s(c[1]);r[a]=c[2]!==void 0?new f(m,c[2],c[3]):new f(m);break}case"ArrayBuffer":{const f=c[1];if(typeof f!="string")throw new Error("Invalid ArrayBuffer encoding");const m=sn(f);r[a]=m;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const f=l.slice(9);r[a]=Temporal[f].from(c[1]);break}case"URL":{const f=new URL(c[1]);r[a]=f;break}case"URLSearchParams":{const f=new URLSearchParams(c[1]);r[a]=f;break}default:throw new Error(`Unknown type ${l}`)}}else if(c[0]===Zt){const l=c[1];if(!en(l))throw new Error("Invalid input");const u=[];r[a]=u,u[Ue]=void 0,delete u[Ue];for(let d=2;d<c.length;d+=2){const p=c[d];if(!Qt(p)||p>=l)throw new Error("Invalid input");u[p]=s(c[d+1])}u.length=l}else{const l=new Array(c.length);r[a]=l;for(let u=0;u<c.length;u+=1){const d=c[u];d!==Kt&&(l[u]=s(d))}}else{const l={};r[a]=l;for(const u of Object.keys(c)){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=c[u];l[u]=s(d)}}return r[a]}return s(0)}const ot="sveltekit:snapshot",st="sveltekit:scroll",it="sveltekit:states",ln="sveltekit:pageurl",K="sveltekit:history",ne="sveltekit:navigation",F={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ct=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ct];const fn=new Set([...ct]);[...fn];function un(e){return e.filter(t=>t!=null)}const dn="x-sveltekit-invalidated",hn="x-sveltekit-trailing-slash";function ie(e,t){return e+"/"+t}function fe(e){return e instanceof se||e instanceof Ce?e.status:500}function pn(e){return e instanceof Ce?e.text:"Internal Error"}const _n="/__data.json",mn=".html__data.json";function gn(e){return e.endsWith(".html")?e.replace(/\.html$/,mn):e.replace(/\/$/,"")+_n}async function*wn(e,t){let n=!1,r="";const o=new TextDecoder;for(;;){let s=r.indexOf(t);for(;s!==-1;)yield r.slice(0,s),r=r.slice(s+t.length),s=r.indexOf(t);if(n){r&&(yield r);return}const a=await e.read();n=a.done,a.value&&(r+=o.decode(a.value,{stream:!0})),n&&(r+=o.decode())}}async function*yn(e){for await(const t of wn(e,`
|
|
2
|
-
`)){const n=t.trim();n&&(yield JSON.parse(n))}}const vn=new Set(["icon","shortcut icon","apple-touch-icon"]);let J=null;const M=rt(st)??{},re=rt(ot)??{},D={url:tt({}),page:tt({}),navigating:Oe(null),updated:Dn()};function De(e){M[e]=V()}function bn(e,t){let n=e+1;for(;M[n];)delete M[n],n+=1;for(n=t+1;re[n];)delete re[n],n+=1}function z(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise($)}async function lt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let Me,Le,ue,x,Pe,b;const de=[],he=[];let I=null;function pe(){I?.fork?.then(e=>e?.discard()),I=null,G={element:void 0,href:void 0}}const ce=new Map,ft=new Set,En=new Set,ee=new Set;let w={branch:[],error:null,url:null},Be=!1,_e=!1,We=!0,ae=!1,Z=!1,ut=!1,Fe=!1,dt,A,T,C;const te=new Set,ze=new Map,Xe=new Map;async function qn(e,t,n){if(globalThis.__sveltekit_9ixev1.data){const{q:s={},p:a={},l:i={},f:c={}}=globalThis.__sveltekit_9ixev1.data;for(const l in s)s[l];for(const l in i)i[l];for(const l in c)c[l];for(const l in a)a[l]}document.URL!==location.href&&(location.href=location.href),b=e,await e.hooks.init?.(),Me=Yt(e),x=document.documentElement,Pe=t,Le=e.nodes[0],ue=e.nodes[1],Le(),ue(),A=history.state?.[K],T=history.state?.[ne],A||(A=T=Date.now(),history.replaceState({...history.state,[K]:A,[ne]:T},""));const r=M[A];function o(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(o(),await On(Pe,n)):(await W({type:"enter",url:Et(b.hash?$n(new URL(location.href)):location.href),replace_state:!0}),o()),jn()}function kn(){de.length=0,Fe=!1}function ht(e){he.some(t=>t?.snapshot)&&(re[e]=he.map(t=>t?.snapshot?.capture()))}function pt(e){re[e]?.forEach((t,n)=>{he[n]?.snapshot?.restore(t)})}function Je(){De(A),Ke(st,M),ht(T),Ke(ot,re)}async function An(e,t,n,r){let o,s;t.invalidateAll&&pe(),await W({type:"goto",url:Et(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{if(t.invalidateAll){Fe=!0,o=new Set;for(const[a,i]of ze)for(const[c,l]of i)l.resource?.reset(),o.add(ie(a,c));s=new Set;for(const[a,i]of Xe)for(const c of i.keys())s.add(ie(a,c))}t.invalidate&&t.invalidate.forEach(Nn)}}),t.invalidateAll&&le().then(le).then(()=>{for(const[a,i]of ze)for(const[c,{resource:l}]of i)o?.has(ie(a,c))&&l.start();for(const[a,i]of Xe)for(const[c,{resource:l}]of i)s?.has(ie(a,c))&&l.reconnect()})}async function Sn(e){if(e.id!==I?.id){pe();const t={};te.add(t),I={id:e.id,token:t,promise:mt({...e,preload:t}).then(n=>(te.delete(t),n.type==="loaded"&&n.state.error&&pe(),n)),fork:null}}return I.promise}async function Ie(e){const t=(await ve(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function _t(e,t,n){const r={params:w.params,route:{id:w.route?.id??null},url:new URL(location.href)};if(w={...e.state,nav:r},Rt(e.props.page),dt=new b.root({target:t,props:{...e.props,stores:D,components:he},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){const o={from:null,to:{...r,scroll:M[A]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};ee.forEach(s=>s(o))}pt(T),_e=!0}async function me({url:e,params:t,branch:n,errors:r,status:o,error:s,route:a,form:i}){let c="never";if(L&&(e.pathname===L||e.pathname===L+"/"))c="always";else for(const f of n)f?.slash!==void 0&&(c=f.slash);e.pathname=Pt(e.pathname,c),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:s,route:a},props:{constructors:un(n).map(f=>f.node.component),page:Ye(U)}};i!==void 0&&(l.props.form=i);let u={},d=!U,p=0;for(let f=0;f<Math.max(n.length,w.branch.length);f+=1){const m=n[f],S=w.branch[f];m?.data!==S?.data&&(d=!0),m&&(u={...u,...m.data},d&&(l.props[`data_${p}`]=u),p+=1)}return(!w.url||e.href!==w.url.href||w.error!==s||i!==void 0&&i!==U.form||d)&&(l.props.page={error:s,params:t,route:{id:a?.id??null},state:{},status:o,url:new URL(e),form:i??null,data:d?u:U.data}),l}async function qe({loader:e,parent:t,url:n,params:r,route:o,server_data_node:s}){let a=null;const i={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:s,universal:c.universal?.load?{type:"data",data:a,uses:i}:null,data:a??s?.data??null,slash:c.universal?.trailingSlash??s?.slash}}function Rn(e,t,n){let r=e instanceof Request?e.url:e;const o=new URL(r,n);o.origin===n.origin&&(r=o.href.slice(n.origin.length));const s=_e?Ht(r,o.href,t):Vt(r,t);return{resolved:o,promise:s}}function Ze(e,t,n,r,o,s){if(Fe)return!0;if(!o)return!1;if(o.parent&&e||o.route&&t||o.url&&n)return!0;for(const a of o.search_params)if(r.has(a))return!0;for(const a of o.params)if(s[a]!==w.params[a])return!0;for(const a of o.dependencies)if(de.some(i=>i(new URL(a))))return!0;return!1}function Ve(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function In(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const o=e.searchParams.getAll(r),s=t.searchParams.getAll(r);o.every(a=>s.includes(a))&&s.every(a=>o.includes(a))&&n.delete(r)}return n}function Qe({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ye(U),constructors:[]}}}async function mt({id:e,invalidating:t,url:n,params:r,route:o,preload:s}){if(I?.id===e)return te.delete(I.token),I.promise;const{errors:a,layouts:i,leaf:c}=o,l=[...i,c];a.forEach(g=>g?.().catch($)),l.forEach(g=>g?.[1]().catch($));let u=null;const d=w.url?e!==ge(w.url):!1,p=w.route?o.id!==w.route.id:!1,h=In(w.url,n);let f=!1;{const g=l.map((y,E)=>{const k=w.branch[E],v=!!y?.[0]&&(k?.loader!==y[1]||Ze(f,p,d,h,k.server?.uses,r));return v&&(f=!0),v});if(g.some(Boolean)){try{u=await yt(n,g)}catch(y){const E=await q(y,{url:n,params:r,route:{id:e}});return s&&te.has(s)?Qe({error:E,url:n,params:r,route:o}):ye({status:fe(y),error:E,url:n,route:o})}if(u.type==="redirect")return u}}const m=u?.nodes;let S=!1;const _=l.map(async(g,y)=>{if(!g)return;const E=w.branch[y],k=m?.[y];if((!k||k.type==="skip")&&g[1]===E?.loader&&!Ze(S,p,d,h,E.universal?.uses,r))return E;if(S=!0,k?.type==="error")throw k;return qe({loader:g[1],url:n,params:r,route:o,parent:async()=>{const O={};for(let B=0;B<y;B+=1)Object.assign(O,(await _[B])?.data);return O},server_data_node:Ve(k===void 0&&g[0]?{type:"skip"}:k??null,g[0]?E?.server:void 0)})});for(const g of _)g.catch($);const R=[];for(let g=0;g<l.length;g+=1)if(l[g])try{R.push(await _[g])}catch(y){if(y instanceof xe)return{type:"redirect",location:y.location};if(s&&te.has(s))return Qe({error:await q(y,{params:r,url:n,route:{id:o.id}}),url:n,params:r,route:o});let E=fe(y),k;if(m?.includes(y))E=y.status??E,k=y.error;else if(y instanceof se)k=y.body;else{if(await D.updated.check())return await lt(),await z(n);k=await q(y,{params:r,url:n,route:{id:o.id}})}const v=await Tn(g,R,a);return v?me({url:n,params:r,branch:R.slice(0,v.idx).concat(v.node),errors:a,status:E,error:k,route:o}):await wt(n,{id:o.id},k,E)}else R.push(void 0);return me({url:n,params:r,branch:R,errors:a,status:200,error:null,route:o,form:t?void 0:null})}async function Tn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function ye({status:e,error:t,url:n,route:r}){const o={};let s=null;if(b.server_loads[0]===0)try{const i=await yt(n,[!0]);if(i.type!=="data"||i.nodes[0]&&i.nodes[0].type!=="data")throw 0;s=i.nodes[0]??null}catch(i){if(!(i instanceof se&&i.status===404)&&(n.origin!==be||n.pathname!==location.pathname||Be))return await z(n)}try{const a=await qe({loader:Le,url:n,params:o,route:r,parent:()=>Promise.resolve({}),server_data_node:Ve(s)}),i={node:await ue(),loader:ue,universal:null,server:null,data:null};return me({url:n,params:o,branch:[a,i],status:e,error:t,errors:[],route:null})}catch(a){if(a instanceof xe){await An(new URL(a.location,location.href),{},0);return}const i=await b.get_error_template(),c=await q(a,{url:n,params:o,route:r}),l=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),u=i({status:e,message:l}),d=new DOMParser().parseFromString(u,"text/html");throw document.documentElement.replaceChild(document.adoptNode(d.head),document.head),document.documentElement.replaceChild(document.adoptNode(d.body),document.body),a}}async function Un(e){const t=e.href;if(ce.has(t))return ce.get(t);let n;try{const r=(async()=>{let o=await b.hooks.reroute({url:new URL(e),fetch:async(s,a)=>Rn(s,a,e).promise})??e;if(typeof o=="string"){const s=new URL(e);b.hash?s.hash=o:s.pathname=o,o=s}return o})();ce.set(t,r),n=await r}catch{ce.delete(t);return}return n}async function ve(e,t){if(e&&!Ee(e,L,b.hash)){const n=await Un(e);if(!n)return;const r=Ln(n);for(const o of Me){const s=o.exec(r);if(s)return{id:ge(e),invalidating:t,route:o,params:jt(s),url:e}}}}function Ln(e){return Nt(b.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ge(e){return(b.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function gt({url:e,type:t,intent:n,delta:r,event:o,scroll:s}){let a=!1;const i=He(w,n,e,t,s??null);r!==void 0&&(i.navigation.delta=r),o!==void 0&&(i.navigation.event=o);const c={...i.navigation,cancel:()=>{a=!0,i.reject(new Error("navigation cancelled"))}};return ae||ft.forEach(l=>l(c)),a?null:i}async function W({type:e,url:t,popped:n,keepfocus:r,noscroll:o,replace_state:s,state:a={},redirect_count:i=0,nav_token:c={},accept:l=$,block:u=$,event:d}){const p=C;C=c;const h=await ve(t,!1),f=e==="enter"?He(w,h,t,e):gt({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:d});if(!f){u(),C===c&&(C=p);return}const m=A,S=T;l(),ae=!0,_e&&f.navigation.type!=="enter"&&D.navigating.set(oe.current=f.navigation);let _=h&&await mt(h);if(!_){if(Ee(t,L,b.hash))return await z(t,s);_=await wt(t,{id:null},await q(new Ce(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=h?.url||t,C!==c){f.reject(new Error("navigation aborted"));return}if(!_)return;if(_.type==="redirect"){if(i<20){await W({type:e,url:new URL(_.location,t),popped:n,keepfocus:r,noscroll:o,replace_state:s,state:a,redirect_count:i+1,nav_token:c}),f.fulfil(void 0);return}if(_=await ye({status:500,error:await q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!_)return}else if(_.props.page.status>=400&&await D.updated.check())return await lt(),await z(t,s);if(kn(),De(m),ht(S),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),a=n?n.state:a,!n){const v=s?0:1,O={[K]:A+=v,[ne]:T+=v,[it]:a};(s?history.replaceState:history.pushState).call(history,O,"",t),s||bn(A,T)}const R=h&&I?.id===h.id?I.fork:null;I?.fork&&!R?pe():(I=null,G={element:void 0,href:void 0}),_.props.page.state=a;let g;if(_e){const v=(await Promise.all(Array.from(En,X=>X(f.navigation)))).filter(X=>typeof X=="function");if(v.length>0){let X=function(){v.forEach(ke=>{ee.delete(ke)})};v.push(X),v.forEach(ke=>{ee.add(ke)})}const O=f.navigation.to;w={..._.state,nav:{params:O.params,route:O.route,url:O.url}},_.props.page&&(_.props.page.url=t),!r&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const B=R&&await R;B?g=B.commit():(J=null,dt.$set(_.props),J&&Object.assign(_.props.page,J),Rt(_.props.page),g=Tt?.()),ut=!0}else await _t(_,Pe,!1);const{activeElement:y}=document;if(await g,await le(),await le(),C!==c){f.reject(new Error("navigation aborted"));return}_.props.page&&J&&Object.assign(_.props.page,J);let E=null;if(We){const v=n?n.scroll:o?V():null;v?scrollTo(v.x,v.y):(E=t.hash&&document.getElementById(bt(t)))?E.scrollIntoView():scrollTo(0,0)}const k=document.activeElement!==y&&document.activeElement!==document.body;!r&&!k&&Cn(t,!E),We=!0,ae=!1,f.fulfil(void 0),f.navigation.to&&(f.navigation.to.scroll=V()),ee.forEach(v=>v(f.navigation)),e==="popstate"&&pt(T),D.navigating.set(oe.current=null)}async function wt(e,t,n,r,o){return e.origin===be&&e.pathname===location.pathname&&!Be?await ye({status:r,error:n,url:e,route:t}):await z(e,o)}let G={element:void 0,href:void 0};function Pn(){let e,t;x.addEventListener("mousemove",a=>{const i=a.target;clearTimeout(e),e=setTimeout(()=>{o(i,F.hover)},20)});function n(a){a.defaultPrevented||o(a.composedPath()[0],F.tap)}x.addEventListener("mousedown",n),x.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(a=>{for(const i of a)i.isIntersecting&&(Ie(new URL(i.target.href)),r.unobserve(i.target))},{threshold:0});async function o(a,i){const c=At(a,x),l=c===G.element&&c?.href===G.href&&i>=t;if(!c||l)return;const{url:u,external:d,download:p}=je(c,L,b.hash);if(d||p)return;const h=we(c),f=u&&ge(w.url)===ge(u);if(!(h.reload||f))if(i<=h.preload_data){G={element:c,href:c.href},t=F.tap;const m=await ve(u,!1);if(!m)return;Sn(m)}else i<=h.preload_code&&(G={element:c,href:c.href},t=i,Ie(u))}function s(){r.disconnect();for(const a of x.querySelectorAll("a")){const{url:i,external:c,download:l}=je(a,L,b.hash);if(c||l)continue;const u=we(a);u.reload||(u.preload_code===F.viewport&&r.observe(a),u.preload_code===F.eager&&Ie(i))}}ee.add(s),s()}function q(e,t){if(e instanceof se)return e.body;const n=fe(e),r=pn(e);return b.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Nn(e){if(typeof e=="function")de.push(e);else{const{href:t}=new URL(e,location.href);de.push(n=>n.href===t)}}function jn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Je(),!ae){const r=He(w,void 0,null,"leave"),o={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ft.forEach(s=>s(o))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Je()}),navigator.connection?.saveData||Pn(),x.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=At(t.composedPath()[0],x);if(!n)return;const{url:r,external:o,target:s,download:a}=je(n,L,b.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const i=we(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||a)return;const[l,u]=(b.hash?r.hash.replace(/^#/,""):r.href).split("#"),d=l===Se(location);if(o||i.reload&&(!d||!u)){gt({url:r,type:"link",event:t})?ae=!0:t.preventDefault();return}if(u!==void 0&&d){const[,p]=w.url.href.split("#");if(p===u){if(t.preventDefault(),u===""||u==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=n.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(Z=!0,De(A),e(r),!i.replace_state)return;Z=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await W({type:"link",url:r,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??r.href===location.href,event:t})}),x.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const a=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(Ee(a,L,!1))return;const i=t.target,c=we(i);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(i,r);a.search=new URLSearchParams(l).toString(),W({type:"form",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ne){if(t.state?.[K]){const n=t.state[K];if(C={},n===A)return;const r=M[n],o=t.state[it]??{},s=new URL(t.state[ln]??location.href),a=t.state[ne],i=w.url?Se(location)===Se(w.url):!1;if(a===T&&(ut||i)){o!==U.state&&(U.state=o),e(s),M[A]=V(),r&&scrollTo(r.x,r.y),A=n;return}const l=n-A;await W({type:"popstate",url:s,popped:{state:o,scroll:r,delta:l},accept:()=>{A=n,T=a},block:()=>{history.go(-l)},nav_token:C,event:t})}else if(!Z){const n=new URL(location.href);e(n),b.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Z&&(Z=!1,history.replaceState({...history.state,[K]:++A,[ne]:T},"",location.href))});for(const t of document.querySelectorAll("link"))vn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(oe.current=null)});function e(t){w.url=U.url=t,D.page.set(Ye(U)),D.page.notify()}}async function On(e,{status:t=200,error:n,node_ids:r,params:o,route:s,server_route:a,data:i,form:c}){Be=!0;const l=new URL(location.href);let u;({params:o={},route:s={id:null}}=await ve(l,!1)||{}),u=Me.find(({id:h})=>h===s.id);let d,p=!0;try{const h=r.map(async(m,S)=>{const _=i[S];return _?.uses&&(_.uses=vt(_.uses)),qe({loader:b.nodes[m],url:l,params:o,route:s,parent:async()=>{const R={};for(let g=0;g<S;g+=1)Object.assign(R,(await h[g]).data);return R},server_data_node:Ve(_)})}),f=await Promise.all(h);if(u){const m=u.layouts;for(let S=0;S<m.length;S++)m[S]||f.splice(S,0,void 0)}d=await me({url:l,params:o,branch:f,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(h){if(h instanceof xe)return await z(new URL(h.location,location.href));d=await ye({status:fe(h),error:await q(h,{url:l,params:o,route:s}),url:l,route:s}),e.textContent="",p=!1}d&&(d.props.page&&(d.props.page.state={}),await _t(d,e,p))}async function yt(e,t){const n=new URL(e);n.pathname=gn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(hn,"1"),n.searchParams.append(dn,t.map(s=>s?"1":"0").join(""));const r=window.fetch,o=await r(n.href,{});if(!o.ok){let s;throw o.headers.get("content-type")?.includes("application/json")?s=await o.json():o.status===404?s="Not Found":o.status===500&&(s="Internal Error"),new se(o.status,s)}return new Promise((s,a)=>{xn(s,o).catch(a)})}async function xn(e,t){const n=t.body.getReader(),r=new Map;function o(s){return cn(s,{...b.decoders,Promise:a=>new Promise((i,c)=>{r.set(a,{fulfil:i,reject:c})})})}for await(const s of yn(n)){if(s.type==="redirect")return e(s);if(s.type==="data")s.nodes?.forEach(a=>{a?.type==="data"&&(a.uses=vt(a.uses),a.data=o(a.data))}),e(s);else if(s.type==="chunk"){const{id:a,data:i,error:c}=s,l=r.get(a);r.delete(a),c?l.reject(o(c)):l.fulfil(o(i))}}}function vt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ne=!1;function Cn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=bt(e);if(r&&document.getElementById(r)){const{x:s,y:a}=V();setTimeout(()=>{const i=history.state;Ne=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(i,"",e),t&&scrollTo(s,a),Ne=!1})}else{const s=document.body,a=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),a!==null?s.setAttribute("tabindex",a):s.removeAttribute("tabindex")}const o=getSelection();if(o&&o.type!=="None"){const s=[];for(let a=0;a<o.rangeCount;a+=1)s.push(o.getRangeAt(a));setTimeout(()=>{if(o.rangeCount===s.length){for(let a=0;a<o.rangeCount;a+=1){const i=s[a],c=o.getRangeAt(a);if(i.commonAncestorContainer!==c.commonAncestorContainer||i.startContainer!==c.startContainer||i.endContainer!==c.endContainer||i.startOffset!==c.startOffset||i.endOffset!==c.endOffset)return}o.removeAllRanges()}})}}}function He(e,t,n,r,o=null){let s,a;const i=new Promise((l,u)=>{s=l,a=u});return i.catch($),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:V()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:o},willUnload:!t,type:r,complete:i},fulfil:s,reject:a}}function Ye(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function $n(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function bt(e){let t;if(b.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}const be=location.origin;function Et(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function V(){return{x:pageXOffset,y:pageYOffset}}function Y(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const et={...F,"":F.hover};function kt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function At(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=kt(e)}}function je(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const i=location.hash.split("#")[1]||"/";r.hash=`#${i}${r.hash}`}}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!o||Ee(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=r?.origin===be&&e.hasAttribute("download");return{url:r,external:s,target:o,download:a}}function we(e){let t=null,n=null,r=null,o=null,s=null,a=null,i=e;for(;i&&i!==document.documentElement;)r===null&&(r=Y(i,"preload-code")),o===null&&(o=Y(i,"preload-data")),t===null&&(t=Y(i,"keepfocus")),n===null&&(n=Y(i,"noscroll")),s===null&&(s=Y(i,"reload")),a===null&&(a=Y(i,"replacestate")),i=kt(i);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:et[r??"off"],preload_data:et[o??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(a)}}function tt(e){const t=Oe(e);let n=!0;function r(){n=!0,t.update(a=>a)}function o(a){n=!1,t.set(a)}function s(a){let i;return t.subscribe(c=>{(i===void 0||n&&c!==i)&&a(i=c)})}return{notify:r,set:o,subscribe:s}}const St={v:$};function Dn(){const{set:e,subscribe:t}=Oe(!1);let n;async function r(){clearTimeout(n);try{const o=await fetch(`${Lt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!o.ok)return!1;const a=(await o.json()).version!==Ut;return a&&(e(!0),St.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:r}}function Ee(e,t,n){return e.origin!==be||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Vn(e){}let U,oe,Te;const Mn=Ge.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ge.toString()),nt="a:";Mn?(U={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(nt)},oe={current:null},Te={current:!1}):(U=new class{#e=P({});get data(){return N(this.#e)}set data(t){j(this.#e,t)}#t=P(null);get form(){return N(this.#t)}set form(t){j(this.#t,t)}#n=P(null);get error(){return N(this.#n)}set error(t){j(this.#n,t)}#r=P({});get params(){return N(this.#r)}set params(t){j(this.#r,t)}#a=P({id:null});get route(){return N(this.#a)}set route(t){j(this.#a,t)}#o=P({});get state(){return N(this.#o)}set state(t){j(this.#o,t)}#s=P(-1);get status(){return N(this.#s)}set status(t){j(this.#s,t)}#i=P(new URL(nt));get url(){return N(this.#i)}set url(t){j(this.#i,t)}},oe=new class{#e=P(null);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},Te=new class{#e=P(!1);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},St.v=()=>Te.current=!0);function Rt(e){Object.assign(U,e)}export{qn as a,Vn as l,U as p,D as s};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/DAAR3e-c.js";export{o as load_css,r as start};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|