konoha-mcp 2.1.4 → 2.1.6
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/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/SKILL.md +97 -135
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/api-reference.md +30 -47
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/standards.md +7 -6
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/scripts/agent.py +65 -57
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/agent.py +36 -17
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/process.py +25 -13
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-adcs-with-certipy/scripts/agent.py +35 -19
- package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-constrained-delegation-abuse/scripts/agent.py +30 -8
- package/.agents/skills.fingerprint +1 -1
- package/README.md +4 -4
- package/apps/web/build/adapter-node.js +1 -1
- package/apps/web/build/client/_app/immutable/entry/{app.DwlgEXmV.js → app.DLayTcYu.js} +2 -2
- package/apps/web/build/client/_app/immutable/entry/app.DLayTcYu.js.br +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.DLayTcYu.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{9.CVBlvZqX.js → 9.CGMmeMVC.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/9.CGMmeMVC.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CGMmeMVC.js.gz +0 -0
- package/apps/web/build/client/_app/version.json +1 -1
- package/apps/web/build/client/_app/version.json.br +0 -0
- package/apps/web/build/client/_app/version.json.gz +0 -0
- package/apps/web/build/server/.vite/manifest.json +15 -15
- package/apps/web/build/server/adapter-index.js +1 -1
- package/apps/web/build/server/adapter-index.js.map +1 -1
- package/apps/web/build/server/adapter-node-env.js +1 -1
- package/apps/web/build/server/adapter-node-env.js.map +1 -1
- package/apps/web/build/server/adapter-node-handler.js +4 -4
- package/apps/web/build/server/adapter-node-handler.js.map +1 -1
- package/apps/web/build/server/chunks/exports.js +9 -9
- package/apps/web/build/server/chunks/exports.js.map +1 -1
- package/apps/web/build/server/chunks/functions.js +1 -1
- package/apps/web/build/server/chunks/functions.js.map +1 -1
- package/apps/web/build/server/chunks/instance.js +33 -33
- package/apps/web/build/server/chunks/instance.js.map +1 -1
- package/apps/web/build/server/chunks/internal.js +19 -19
- package/apps/web/build/server/chunks/internal.js.map +1 -1
- package/apps/web/build/server/chunks/server-errors.js +2 -2
- package/apps/web/build/server/chunks/server-errors.js.map +1 -1
- package/apps/web/build/server/chunks/server.js.map +1 -1
- package/apps/web/build/server/chunks/shared.js +1 -1
- package/apps/web/build/server/chunks/shared.js.map +1 -1
- package/apps/web/build/server/chunks/state.js +1 -1
- package/apps/web/build/server/chunks/state.js.map +1 -1
- package/apps/web/build/server/chunks/sweetAlert.svelte.js.map +1 -1
- package/apps/web/build/server/chunks/uiState.svelte.js.map +1 -1
- package/apps/web/build/server/entries/fallbacks/error.svelte.js +1 -1
- package/apps/web/build/server/entries/fallbacks/error.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/_layout.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/bridges/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/clients/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/detector/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/docs/_page.svelte.js +1 -1
- package/apps/web/build/server/entries/pages/docs/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/persona/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/search/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/semble/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/skills/_page.svelte.js.map +1 -1
- package/apps/web/build/server/entries/pages/tasks/_page.svelte.js.map +1 -1
- package/apps/web/build/server/index.js +1 -1
- package/apps/web/build/server/index.js.map +1 -1
- package/apps/web/build/server/manifest-full.js +1 -1
- package/apps/web/build/server/manifest.js +1 -1
- package/apps/web/build/server/nodes/9.js +1 -1
- package/apps/web/build/server/remote-entry.js +7 -7
- package/apps/web/build/server/remote-entry.js.map +1 -1
- package/apps/web/build/server/server.js +1 -1
- package/apps/web/package.json +2 -2
- package/bin/cli.js +6 -6
- package/bin/lib/ui_commands.js +4 -3
- package/docs/SecurityCompliance/qa_report_2.1.5_2026-10-07.md +65 -0
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.5_2026-10-07.md +74 -0
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.6_2026-10-07.md +78 -0
- package/docs/SecurityCompliance/socket_baseline_2026-10-07.md +60 -0
- package/docs/SecurityCompliance/socket_burndown_2.1.5_2026-10-07.md +73 -0
- package/docs/SecurityCompliance/socket_report_2.1.5_2026-10-07.md +54 -0
- package/docs/architecture/TOKEN-BASELINE.md +1 -1
- package/package.json +3 -17
- package/src/antigravity_manager.js +81 -15
- package/src/db.js +2 -2
- package/src/db_agents.js +1 -1
- package/src/db_bridges.js +1 -1
- package/src/db_savings.js +1 -1
- package/src/db_stats.js +1 -1
- package/src/deploy_utils.js +4 -5
- package/src/doctor.js +10 -0
- package/src/migrate.js +1 -1
- package/src/persona_memory.js +1 -1
- package/src/sqlite_driver.js +211 -0
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/SKILL.md +97 -135
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/api-reference.md +30 -47
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/standards.md +7 -6
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/scripts/agent.py +65 -57
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/agent.py +36 -17
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/process.py +25 -13
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-adcs-with-certipy/scripts/agent.py +35 -19
- package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-constrained-delegation-abuse/scripts/agent.py +30 -8
- package/src/vector_search.js +1 -1
- package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js.br +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CVBlvZqX.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CVBlvZqX.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/messages/internal/server.js
|
|
2
2
|
/**
|
|
3
3
|
* @typedef {{ cause?: unknown; stackless?: boolean }} ServerThrowOptions
|
|
4
4
|
*/
|
|
@@ -31,7 +31,7 @@ function capture_error(fn) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
34
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/messages/server-errors.js
|
|
35
35
|
/** @import { ServerThrowOptions } from './internal/server.js' */
|
|
36
36
|
/**
|
|
37
37
|
* Data returned from action inside `%id%` is not serializable: %message%
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-errors.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/messages/internal/server.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/messages/server-errors.js"],"sourcesContent":["/**\n * @typedef {{ cause?: unknown; stackless?: boolean }} ServerThrowOptions\n */\n\n/**\n * Throws the full diagnostic. Unlike shared errors, server-only errors keep their full text in production\n * @param {string} code\n * @param {string} message\n * @param {ServerThrowOptions | undefined} options\n * @param {Function} caller The generated helper, which is omitted from the stack along with this function\n * @returns {never}\n */\nexport function throw_error(code, message, options, caller) {\n\tconst error = new Error(\n\t\t`${code}\\n${message}\\nhttps://svelte.dev/e/kit/${code}`,\n\t\toptions?.cause === undefined ? undefined : { cause: options.cause }\n\t);\n\terror.name = 'SvelteKit error';\n\n\tif (options?.stackless) error.stack = '';\n\t// not available in every runtime, in which case the stack also includes these two frames\n\telse Error.captureStackTrace?.(error, caller);\n\n\tthrow error;\n}\n\n/**\n * Returns the error thrown by `fn`, for the few places that pass an error on (for example to\n * `handleError` or a later `console.error`) rather than throwing it. Its stack starts inside `fn`\n * @param {() => never} fn A function that calls a generated `server-errors` helper\n * @returns {Error}\n */\nexport function capture_error(fn) {\n\ttry {\n\t\tfn();\n\t} catch (error) {\n\t\treturn /** @type {Error} */ (error);\n\t}\n}\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\n/** @import { ServerThrowOptions } from './internal/server.js' */\nimport { throw_error } from './internal/server.js';\n\n/**\n * Data returned from action inside `%id%` is not serializable: %message%\n * @param {{ \"id\": string; \"message\": string; \"path\"?: string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_data_not_serializable(_values, options) {\n\tthrow_error('action_data_not_serializable', (_values?.path !== undefined ? `Data returned from action inside \\`${_values.id}\\` is not serializable: ${_values.message} (\\`${_values.path}\\`)` : `Data returned from action inside \\`${_values.id}\\` is not serializable: ${_values.message}`), options, action_data_not_serializable);\n}\n\n/**\n * When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#Named-actions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_default_with_named(_values, options) {\n\tthrow_error('action_default_with_named', `When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#Named-actions`, options, action_default_with_named);\n}\n\n/**\n * Cannot use reserved action name `default`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_name_reserved(_values, options) {\n\tthrow_error('action_name_reserved', `Cannot use reserved action name \\`default\\``, options, action_name_reserved);\n}\n\n/**\n * Data returned from action inside `%id%` is not serializable. Form actions need to return plain objects or `fail()`. E.g. `return { success: true }` or `return fail(400, { message: \"invalid\" });`\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_response_not_serializable(_values, options) {\n\tthrow_error('action_response_not_serializable', `Data returned from action inside \\`${_values.id}\\` is not serializable. Form actions need to return plain objects or \\`fail()\\`. E.g. \\`return { success: true }\\` or \\`return fail(400, { message: \"invalid\" });\\``, options, action_response_not_serializable);\n}\n\n/**\n * Cannot `return error(...)` — use `error(...)` or `return fail(...)` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_return_error(_values, options) {\n\tthrow_error('action_return_error', `Cannot \\`return error(...)\\` — use \\`error(...)\\` or \\`return fail(...)\\` instead`, options, action_return_error);\n}\n\n/**\n * Cannot `return redirect(...)` — use `redirect(...)` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_return_redirect(_values, options) {\n\tthrow_error('action_return_redirect', `Cannot \\`return redirect(...)\\` — use \\`redirect(...)\\` instead`, options, action_return_redirect);\n}\n\n/**\n * Cannot `throw fail()`. Use `return fail()`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_throw_fail(_values, options) {\n\tthrow_error('action_throw_fail', `Cannot \\`throw fail()\\`. Use \\`return fail()\\``, options, action_throw_fail);\n}\n\n/**\n * `%adapter%` does not specify `getClientAddress`. Please raise an issue\n * @param {{ \"adapter\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function client_address_unsupported(_values, options) {\n\tthrow_error('client_address_unsupported', `\\`${_values.adapter}\\` does not specify \\`getClientAddress\\`. Please raise an issue`, options, client_address_unsupported);\n}\n\n/**\n * Cookie `%name%` is too large, and will be discarded by the browser\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookie_too_large(_values, options) {\n\tthrow_error('cookie_too_large', `Cookie \\`${_values.name}\\` is too large, and will be discarded by the browser`, options, cookie_too_large);\n}\n\n/**\n * Cannot serialize cookies until after the route is determined\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookies_serialize_before_route(_values, options) {\n\tthrow_error('cookies_serialize_before_route', `Cannot serialize cookies until after the route is determined`, options, cookies_serialize_before_route);\n}\n\n/**\n * Cannot use `cookies.set(...)` after the response has been generated\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookies_set_after_response(_values, options) {\n\tthrow_error('cookies_set_after_response', `Cannot use \\`cookies.set(...)\\` after the response has been generated`, options, cookies_set_after_response);\n}\n\n/**\n * `content-security-policy-report-only` must be specified with either the `report-to` or `report-uri` directives, or both\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function csp_report_only_missing_report(_values, options) {\n\tthrow_error('csp_report_only_missing_report', `\\`content-security-policy-report-only\\` must be specified with either the \\`report-to\\` or \\`report-uri\\` directives, or both`, options, csp_report_only_missing_report);\n}\n\n/**\n * `defineEnvVars` has moved — import it from `@sveltejs/kit/env` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function define_env_vars_moved(_values, options) {\n\tthrow_error('define_env_vars_moved', `\\`defineEnvVars\\` has moved — import it from \\`@sveltejs/kit/env\\` instead`, options, define_env_vars_moved);\n}\n\n/**\n * Invalid response from route `%path%`: handler should return a `Response` object\n * @param {{ \"path\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function endpoint_invalid_response(_values, options) {\n\tthrow_error('endpoint_invalid_response', `Invalid response from route \\`${_values.path}\\`: handler should return a \\`Response\\` object`, options, endpoint_invalid_response);\n}\n\n/**\n * Invalid environment variables:\n%issues%\n * @param {{ \"issues\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function env_invalid(_values, options) {\n\tthrow_error('env_invalid', `Invalid environment variables:\n${_values.issues}`, options, env_invalid);\n}\n\n/**\n * Cannot return `fetch(...)` directly from a handler if the response has a `Content-Encoding: %encoding%` header. The body has already been decoded\n * @param {{ \"encoding\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function fetch_response_decoded(_values, options) {\n\tthrow_error('fetch_response_decoded', `Cannot return \\`fetch(...)\\` directly from a handler if the response has a \\`Content-Encoding: ${_values.encoding}\\` header. The body has already been decoded`, options, fetch_response_decoded);\n}\n\n/**\n * The `handleError` hook failed\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function handle_error_hook_failed(_values, options) {\n\tthrow_error('handle_error_hook_failed', `The \\`handleError\\` hook failed`, options, handle_error_hook_failed);\n}\n\n/**\n * `%name%` header is already set\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function header_already_set(_values, options) {\n\tthrow_error('header_already_set', `\\`${_values.name}\\` header is already set`, options, header_already_set);\n}\n\n/**\n * CORS error: %reason% `Access-Control-Allow-Origin` header is present on the requested resource\n * @param {{ \"reason\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_fetch_cors(_values, options) {\n\tthrow_error('load_fetch_cors', `CORS error: ${_values.reason} \\`Access-Control-Allow-Origin\\` header is present on the requested resource`, options, load_fetch_cors);\n}\n\n/**\n * Data returned from `load` while rendering `%id%` is not a plain object\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_not_plain_object(_values, options) {\n\tthrow_error('load_not_plain_object', `Data returned from \\`load\\` while rendering \\`${_values.id}\\` is not a plain object`, options, load_not_plain_object);\n}\n\n/**\n * Data returned from `load` while rendering `%id%` is not serializable: %message% (`%path%`). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#transport.\n * @param {{ \"id\": string; \"message\": string; \"path\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_not_serializable(_values, options) {\n\tthrow_error('load_not_serializable', `Data returned from \\`load\\` while rendering \\`${_values.id}\\` is not serializable: ${_values.message} (\\`${_values.path}\\`). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#transport.`, options, load_not_serializable);\n}\n\n/**\n * Failed to serialize promise while rendering `%id%`\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_promise_not_serializable(_values, options) {\n\tthrow_error('load_promise_not_serializable', `Failed to serialize promise while rendering \\`${_values.id}\\``, options, load_promise_not_serializable);\n}\n\n/**\n * Failed to get response header `%name%` — it must be included by the `filterSerializedResponseHeaders` option: https://svelte.dev/docs/kit/hooks#handle (at `%id%`)\n * @param {{ \"name\": string; \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_response_header_not_serialized(_values, options) {\n\tthrow_error('load_response_header_not_serialized', `Failed to get response header \\`${_values.name}\\` — it must be included by the \\`filterSerializedResponseHeaders\\` option: https://svelte.dev/docs/kit/hooks#handle (at \\`${_values.id}\\`)`, options, load_response_header_not_serialized);\n}\n\n/**\n * Cannot prerender pages with actions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_actions(_values, options) {\n\tthrow_error('prerender_actions', `Cannot prerender pages with actions`, options, prerender_actions);\n}\n\n/**\n * Cannot prerender a `+server` file with %methods% or fallback handlers (`%id%`)\n * @param {{ \"methods\": string; \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_endpoint_methods(_values, options) {\n\tthrow_error('prerender_endpoint_methods', `Cannot prerender a \\`+server\\` file with ${_values.methods} or fallback handlers (\\`${_values.id}\\`)`, options, prerender_endpoint_methods);\n}\n\n/**\n * `%id%` is not prerenderable\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_endpoint_not_prerenderable(_values, options) {\n\tthrow_error('prerender_endpoint_not_prerenderable', `\\`${_values.id}\\` is not prerenderable`, options, prerender_endpoint_not_prerenderable);\n}\n\n/**\n * Cannot use prerendering if `config.csp.mode === 'nonce'`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_nonce(_values, options) {\n\tthrow_error('prerender_nonce', `Cannot use prerendering if \\`config.csp.mode === 'nonce'\\``, options, prerender_nonce);\n}\n\n/**\n * Cannot use prerendering if page template contains `%tag%`\n * @param {{ \"tag\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_template_nonce(_values, options) {\n\tthrow_error('prerender_template_nonce', `Cannot use prerendering if page template contains \\`${_values.tag}\\``, options, prerender_template_nonce);\n}\n\n/**\n * Asset does not exist: `%file%`\n * @param {{ \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function read_asset_missing(_values, options) {\n\tthrow_error('read_asset_missing', `Asset does not exist: \\`${_values.file}\\``, options, read_asset_missing);\n}\n\n/**\n * No `read` implementation was provided. Please ensure that your adapter is up to date and supports this feature\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function read_implementation_missing(_values, options) {\n\tthrow_error('read_implementation_missing', `No \\`read\\` implementation was provided. Please ensure that your adapter is up to date and supports this feature`, options, read_implementation_missing);\n}\n\n/**\n * Cannot call a command (`%name%`) from a `%method%` handler\n * @param {{ \"name\": string; \"method\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_method(_values, options) {\n\tthrow_error('remote_command_method', `Cannot call a command (\\`${_values.name}\\`) from a \\`${_values.method}\\` handler`, options, remote_command_method);\n}\n\n/**\n * Cannot call a command (`%name%`) inside a query or prerender function\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_readonly(_values, options) {\n\tthrow_error('remote_command_readonly', `Cannot call a command (\\`${_values.name}\\`) inside a query or prerender function`, options, remote_command_readonly);\n}\n\n/**\n * Cannot call a command (`%name%`) during server-side rendering\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_render(_values, options) {\n\tthrow_error('remote_command_render', `Cannot call a command (\\`${_values.name}\\`) during server-side rendering`, options, remote_command_render);\n}\n\n/**\n * Cannot %operation% cookies in `query` or `prerender` functions\n * @param {{ \"operation\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_cookie_forbidden(_values, options) {\n\tthrow_error('remote_cookie_forbidden', `Cannot ${_values.operation} cookies in \\`query\\` or \\`prerender\\` functions`, options, remote_cookie_forbidden);\n}\n\n/**\n * Cookies %operation% in remote functions must have an absolute path\n * @param {{ \"operation\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_cookie_path_relative(_values, options) {\n\tthrow_error('remote_cookie_path_relative', `Cookies ${_values.operation} in remote functions must have an absolute path`, options, remote_cookie_path_relative);\n}\n\n/**\n * `fail(...)` is for form actions. A remote `form` handler should call `invalid(...)` instead. See https://svelte.dev/docs/kit/remote-functions#form-Programmatic-validation\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_form_fail(_values, options) {\n\tthrow_error('remote_form_fail', `\\`fail(...)\\` is for form actions. A remote \\`form\\` handler should call \\`invalid(...)\\` instead. See https://svelte.dev/docs/kit/remote-functions#form-Programmatic-validation`, options, remote_form_fail);\n}\n\n/**\n * `setHeaders` is not allowed in remote functions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_headers_forbidden(_values, options) {\n\tthrow_error('remote_headers_forbidden', `\\`setHeaders\\` is not allowed in remote functions`, options, remote_headers_forbidden);\n}\n\n/**\n * Invalid validator passed to remote function. Expected `'unchecked'` or a Standard Schema (https://standardschema.dev)\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_invalid_validator(_values, options) {\n\tthrow_error('remote_invalid_validator', `Invalid validator passed to remote function. Expected \\`'unchecked'\\` or a Standard Schema (https://standardschema.dev)`, options, remote_invalid_validator);\n}\n\n/**\n * Cannot export `default` from a remote module (`%file%`) — please use named exports instead\n * @param {{ \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_module_default_export(_values, options) {\n\tthrow_error('remote_module_default_export', `Cannot export \\`default\\` from a remote module (\\`${_values.file}\\`) — please use named exports instead`, options, remote_module_default_export);\n}\n\n/**\n * `%name%` exported from `%file%` is invalid — all exports from this file must be remote functions\n * @param {{ \"name\": string; \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_module_invalid_export(_values, options) {\n\tthrow_error('remote_module_invalid_export', `\\`${_values.name}\\` exported from \\`${_values.file}\\` is invalid — all exports from this file must be remote functions`, options, remote_module_invalid_export);\n}\n\n/**\n * `query.live` `%name%` did not yield a value\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_live_no_value(_values, options) {\n\tthrow_error('remote_query_live_no_value', `\\`query.live\\` \\`${_values.name}\\` did not yield a value`, options, remote_query_live_no_value);\n}\n\n/**\n * `query.live` `%name%` must return an `Iterator`, `Iterable`, `AsyncIterator` or `AsyncIterable`\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_live_not_iterable(_values, options) {\n\tthrow_error('remote_query_live_not_iterable', `\\`query.live\\` \\`${_values.name}\\` must return an \\`Iterator\\`, \\`Iterable\\`, \\`AsyncIterator\\` or \\`AsyncIterable\\``, options, remote_query_live_not_iterable);\n}\n\n/**\n * Cannot call `%type%` `%name%` while prerendering, as prerendered pages need static data. Use `prerender` from `$app/server` instead\n * @param {{ \"type\": string; \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_prerender(_values, options) {\n\tthrow_error('remote_query_prerender', `Cannot call \\`${_values.type}\\` \\`${_values.name}\\` while prerendering, as prerendered pages need static data. Use \\`prerender\\` from \\`$app/server\\` instead`, options, remote_query_prerender);\n}\n\n/**\n * Cannot access `event.%property%` in a query. Pass the value as an argument to the query instead\n * @param {{ \"property\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_request_property(_values, options) {\n\tthrow_error('remote_request_property', `Cannot access \\`event.${_values.property}\\` in a query. Pass the value as an argument to the query instead`, options, remote_request_property);\n}\n\n/**\n * `requested(%name%, %limit%)` cannot be used with synchronous iteration because the query validator is async. Use `for await ... of` instead\n * @param {{ \"name\": string; \"limit\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_async_validator(_values, options) {\n\tthrow_error('remote_requested_async_validator', `\\`requested(${_values.name}, ${_values.limit})\\` cannot be used with synchronous iteration because the query validator is async. Use \\`for await ... of\\` instead`, options, remote_requested_async_validator);\n}\n\n/**\n * `requested(...)` can only be called in the context of a command/form remote function\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_context(_values, options) {\n\tthrow_error('remote_requested_context', `\\`requested(...)\\` can only be called in the context of a command/form remote function`, options, remote_requested_context);\n}\n\n/**\n * Limit must be a non-negative integer or `Infinity`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_invalid_limit(_values, options) {\n\tthrow_error('remote_requested_invalid_limit', `Limit must be a non-negative integer or \\`Infinity\\``, options, remote_requested_invalid_limit);\n}\n\n/**\n * `requested(...)` expects a query function created with `query(...)`, `query.batch(...)`, or `query.live(...)`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_invalid_query(_values, options) {\n\tthrow_error('remote_requested_invalid_query', `\\`requested(...)\\` expects a query function created with \\`query(...)\\`, \\`query.batch(...)\\`, or \\`query.live(...)\\``, options, remote_requested_invalid_query);\n}\n\n/**\n * `%method%()` is invalid for %type% queries. Use `%replacement%()` instead.\n * @param {{ \"method\": string; \"type\": string; \"replacement\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_wrong_method(_values, options) {\n\tthrow_error('remote_requested_wrong_method', `\\`${_values.method}()\\` is invalid for ${_values.type} queries. Use \\`${_values.replacement}()\\` instead.`, options, remote_requested_wrong_method);\n}\n\n/**\n * Can only read the current request event inside functions invoked during `handle`, such as server `load` functions, actions, endpoints, and other server hooks. In environments without `AsyncLocalStorage`, the event must be read synchronously, not after an `await`.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_event_after_await(_values, options) {\n\tthrow_error('request_event_after_await', `Can only read the current request event inside functions invoked during \\`handle\\`, such as server \\`load\\` functions, actions, endpoints, and other server hooks. In environments without \\`AsyncLocalStorage\\`, the event must be read synchronously, not after an \\`await\\`.`, options, request_event_after_await);\n}\n\n/**\n * Can only read the current request event inside functions invoked during `handle`, such as server `load` functions, actions, endpoints, and other server hooks.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_event_unavailable(_values, options) {\n\tthrow_error('request_event_unavailable', `Can only read the current request event inside functions invoked during \\`handle\\`, such as server \\`load\\` functions, actions, endpoints, and other server hooks.`, options, request_event_unavailable);\n}\n\n/**\n * Could not get the request store. In environments without `AsyncLocalStorage`, the request store (used by e.g. remote functions) must be accessed synchronously, not after an `await`. If it was accessed synchronously then this is an internal error.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_store_after_await(_values, options) {\n\tthrow_error('request_store_after_await', `Could not get the request store. In environments without \\`AsyncLocalStorage\\`, the request store (used by e.g. remote functions) must be accessed synchronously, not after an \\`await\\`. If it was accessed synchronously then this is an internal error.`, options, request_store_after_await);\n}\n\n/**\n * Cannot call `%name%` on the server\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function server_api_unavailable(_values, options) {\n\tthrow_error('server_api_unavailable', `Cannot call \\`${_values.name}\\` on the server`, options, server_api_unavailable);\n}\n\n/**\n * Cannot use `setHeaders(...)` after the response has been generated\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function set_headers_after_response(_values, options) {\n\tthrow_error('set_headers_after_response', `Cannot use \\`setHeaders(...)\\` after the response has been generated`, options, set_headers_after_response);\n}\n\n/**\n * Use `event.cookies.set(name, value, options)` instead of `event.setHeaders` to set cookies\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function set_headers_cookie(_values, options) {\n\tthrow_error('set_headers_cookie', `Use \\`event.cookies.set(name, value, options)\\` instead of \\`event.setHeaders\\` to set cookies`, options, set_headers_cookie);\n}\n\n/**\n * Cannot call `fetch` eagerly during server-side rendering with relative URL (`%url%`) — put your `fetch` calls inside `onMount` or a `load` function instead\n * @param {{ \"url\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function ssr_fetch_relative_url(_values, options) {\n\tthrow_error('ssr_fetch_relative_url', `Cannot call \\`fetch\\` eagerly during server-side rendering with relative URL (\\`${_values.url}\\`) — put your \\`fetch\\` calls inside \\`onMount\\` or a \\`load\\` function instead`, options, ssr_fetch_relative_url);\n}\n\n/**\n * Can only read `%name%` on the server during rendering (not in e.g. `load` functions), as it is bound to the current request via component context. This prevents state from leaking between users.\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function state_read_outside_render(_values, options) {\n\tthrow_error('state_read_outside_render', `Can only read \\`${_values.name}\\` on the server during rendering (not in e.g. \\`load\\` functions), as it is bound to the current request via component context. This prevents state from leaking between users.`, options, state_read_outside_render);\n}\n\n/**\n * Tracing is enabled (see the SvelteKit plugin `tracing.server` option in your `vite.config.js`), but `@opentelemetry/api` is not available. This error will likely resolve itself when you set up your tracing instrumentation in `instrumentation.server.js`. For more information, see https://svelte.dev/docs/kit/observability#opentelemetry-api\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function tracing_api_missing(_values, options) {\n\tthrow_error('tracing_api_missing', `Tracing is enabled (see the SvelteKit plugin \\`tracing.server\\` option in your \\`vite.config.js\\`), but \\`@opentelemetry/api\\` is not available. This error will likely resolve itself when you set up your tracing instrumentation in \\`instrumentation.server.js\\`. For more information, see https://svelte.dev/docs/kit/observability#opentelemetry-api`, options, tracing_api_missing);\n}\n\n/**\n * Cannot access `url.%property%` on a page with prerendering enabled\n * @param {{ \"property\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function url_search_unavailable_prerender(_values, options) {\n\tthrow_error('url_search_unavailable_prerender', `Cannot access \\`url.${_values.property}\\` on a page with prerendering enabled`, options, url_search_unavailable_prerender);\n}\n"],"ignoreList":[0,1],"mappings":";;;;;;;;;;;;AAYA,SAAgB,YAAY,MAAM,SAAS,SAAS,QAAQ;CAC3D,MAAM,QAAQ,IAAI,MACjB,GAAG,KAAK,IAAI,QAAQ,6BAA6B,QACjD,SAAS,UAAU,KAAA,IAAY,KAAA,IAAY,EAAE,OAAO,QAAQ,MAAM,CACnE;CACA,MAAM,OAAO;CAEb,IAAI,SAAS,WAAW,MAAM,QAAQ;MAEjC,MAAM,oBAAoB,OAAO,MAAM;CAE5C,MAAM;AACP;;;;;;;AAQA,SAAgB,cAAc,IAAI;CACjC,IAAI;EACH,GAAG;CACJ,SAAS,OAAO;EACf,OAA6B;CAC9B;AACD;;;;;;;;;;AC3BA,SAAgB,6BAA6B,SAAS,SAAS;CAC9D,YAAY,gCAAiC,SAAS,SAAS,KAAA,IAAY,sCAAsC,QAAQ,GAAG,0BAA0B,QAAQ,QAAQ,MAAM,QAAQ,KAAK,OAAO,sCAAsC,QAAQ,GAAG,0BAA0B,QAAQ,WAAY,SAAS,4BAA4B;AACrU;;;;;;;AAQA,SAAgB,0BAA0B,SAAS,SAAS;CAC3D,YAAY,6BAA6B,mJAAmJ,SAAS,yBAAyB;AAC/N;;;;;;;AAQA,SAAgB,qBAAqB,SAAS,SAAS;CACtD,YAAY,wBAAwB,+CAA+C,SAAS,oBAAoB;AACjH;;;;;;;AAQA,SAAgB,iCAAiC,SAAS,SAA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;;;;;;AAkBA,SAAgB,iCAAiC,SAAS,SAAS;CAClE,YAAY,oCAAoC,uBAAuB,QAAQ,SAAS,yCAAyC,SAAS,gCAAgC;AAC3K"}
|
|
1
|
+
{"version":3,"file":"server-errors.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/messages/internal/server.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/messages/server-errors.js"],"sourcesContent":["/**\n * @typedef {{ cause?: unknown; stackless?: boolean }} ServerThrowOptions\n */\n\n/**\n * Throws the full diagnostic. Unlike shared errors, server-only errors keep their full text in production\n * @param {string} code\n * @param {string} message\n * @param {ServerThrowOptions | undefined} options\n * @param {Function} caller The generated helper, which is omitted from the stack along with this function\n * @returns {never}\n */\nexport function throw_error(code, message, options, caller) {\n\tconst error = new Error(\n\t\t`${code}\\n${message}\\nhttps://svelte.dev/e/kit/${code}`,\n\t\toptions?.cause === undefined ? undefined : { cause: options.cause }\n\t);\n\terror.name = 'SvelteKit error';\n\n\tif (options?.stackless) error.stack = '';\n\t// not available in every runtime, in which case the stack also includes these two frames\n\telse Error.captureStackTrace?.(error, caller);\n\n\tthrow error;\n}\n\n/**\n * Returns the error thrown by `fn`, for the few places that pass an error on (for example to\n * `handleError` or a later `console.error`) rather than throwing it. Its stack starts inside `fn`\n * @param {() => never} fn A function that calls a generated `server-errors` helper\n * @returns {Error}\n */\nexport function capture_error(fn) {\n\ttry {\n\t\tfn();\n\t} catch (error) {\n\t\treturn /** @type {Error} */ (error);\n\t}\n}\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\n/** @import { ServerThrowOptions } from './internal/server.js' */\nimport { throw_error } from './internal/server.js';\n\n/**\n * Data returned from action inside `%id%` is not serializable: %message%\n * @param {{ \"id\": string; \"message\": string; \"path\"?: string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_data_not_serializable(_values, options) {\n\tthrow_error('action_data_not_serializable', (_values?.path !== undefined ? `Data returned from action inside \\`${_values.id}\\` is not serializable: ${_values.message} (\\`${_values.path}\\`)` : `Data returned from action inside \\`${_values.id}\\` is not serializable: ${_values.message}`), options, action_data_not_serializable);\n}\n\n/**\n * When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#Named-actions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_default_with_named(_values, options) {\n\tthrow_error('action_default_with_named', `When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#Named-actions`, options, action_default_with_named);\n}\n\n/**\n * Cannot use reserved action name `default`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_name_reserved(_values, options) {\n\tthrow_error('action_name_reserved', `Cannot use reserved action name \\`default\\``, options, action_name_reserved);\n}\n\n/**\n * Data returned from action inside `%id%` is not serializable. Form actions need to return plain objects or `fail()`. E.g. `return { success: true }` or `return fail(400, { message: \"invalid\" });`\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_response_not_serializable(_values, options) {\n\tthrow_error('action_response_not_serializable', `Data returned from action inside \\`${_values.id}\\` is not serializable. Form actions need to return plain objects or \\`fail()\\`. E.g. \\`return { success: true }\\` or \\`return fail(400, { message: \"invalid\" });\\``, options, action_response_not_serializable);\n}\n\n/**\n * Cannot `return error(...)` — use `error(...)` or `return fail(...)` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_return_error(_values, options) {\n\tthrow_error('action_return_error', `Cannot \\`return error(...)\\` — use \\`error(...)\\` or \\`return fail(...)\\` instead`, options, action_return_error);\n}\n\n/**\n * Cannot `return redirect(...)` — use `redirect(...)` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_return_redirect(_values, options) {\n\tthrow_error('action_return_redirect', `Cannot \\`return redirect(...)\\` — use \\`redirect(...)\\` instead`, options, action_return_redirect);\n}\n\n/**\n * Cannot `throw fail()`. Use `return fail()`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_throw_fail(_values, options) {\n\tthrow_error('action_throw_fail', `Cannot \\`throw fail()\\`. Use \\`return fail()\\``, options, action_throw_fail);\n}\n\n/**\n * `%adapter%` does not specify `getClientAddress`. Please raise an issue\n * @param {{ \"adapter\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function client_address_unsupported(_values, options) {\n\tthrow_error('client_address_unsupported', `\\`${_values.adapter}\\` does not specify \\`getClientAddress\\`. Please raise an issue`, options, client_address_unsupported);\n}\n\n/**\n * Cookie `%name%` is too large, and will be discarded by the browser\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookie_too_large(_values, options) {\n\tthrow_error('cookie_too_large', `Cookie \\`${_values.name}\\` is too large, and will be discarded by the browser`, options, cookie_too_large);\n}\n\n/**\n * Cannot serialize cookies until after the route is determined\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookies_serialize_before_route(_values, options) {\n\tthrow_error('cookies_serialize_before_route', `Cannot serialize cookies until after the route is determined`, options, cookies_serialize_before_route);\n}\n\n/**\n * Cannot use `cookies.set(...)` after the response has been generated\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookies_set_after_response(_values, options) {\n\tthrow_error('cookies_set_after_response', `Cannot use \\`cookies.set(...)\\` after the response has been generated`, options, cookies_set_after_response);\n}\n\n/**\n * `content-security-policy-report-only` must be specified with either the `report-to` or `report-uri` directives, or both\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function csp_report_only_missing_report(_values, options) {\n\tthrow_error('csp_report_only_missing_report', `\\`content-security-policy-report-only\\` must be specified with either the \\`report-to\\` or \\`report-uri\\` directives, or both`, options, csp_report_only_missing_report);\n}\n\n/**\n * `defineEnvVars` has moved — import it from `@sveltejs/kit/env` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function define_env_vars_moved(_values, options) {\n\tthrow_error('define_env_vars_moved', `\\`defineEnvVars\\` has moved — import it from \\`@sveltejs/kit/env\\` instead`, options, define_env_vars_moved);\n}\n\n/**\n * Invalid response from route `%path%`: handler should return a `Response` object\n * @param {{ \"path\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function endpoint_invalid_response(_values, options) {\n\tthrow_error('endpoint_invalid_response', `Invalid response from route \\`${_values.path}\\`: handler should return a \\`Response\\` object`, options, endpoint_invalid_response);\n}\n\n/**\n * Invalid environment variables:\n%issues%\n * @param {{ \"issues\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function env_invalid(_values, options) {\n\tthrow_error('env_invalid', `Invalid environment variables:\n${_values.issues}`, options, env_invalid);\n}\n\n/**\n * Cannot return `fetch(...)` directly from a handler if the response has a `Content-Encoding: %encoding%` header. The body has already been decoded\n * @param {{ \"encoding\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function fetch_response_decoded(_values, options) {\n\tthrow_error('fetch_response_decoded', `Cannot return \\`fetch(...)\\` directly from a handler if the response has a \\`Content-Encoding: ${_values.encoding}\\` header. The body has already been decoded`, options, fetch_response_decoded);\n}\n\n/**\n * The `handleError` hook failed\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function handle_error_hook_failed(_values, options) {\n\tthrow_error('handle_error_hook_failed', `The \\`handleError\\` hook failed`, options, handle_error_hook_failed);\n}\n\n/**\n * `%name%` header is already set\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function header_already_set(_values, options) {\n\tthrow_error('header_already_set', `\\`${_values.name}\\` header is already set`, options, header_already_set);\n}\n\n/**\n * CORS error: %reason% `Access-Control-Allow-Origin` header is present on the requested resource\n * @param {{ \"reason\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_fetch_cors(_values, options) {\n\tthrow_error('load_fetch_cors', `CORS error: ${_values.reason} \\`Access-Control-Allow-Origin\\` header is present on the requested resource`, options, load_fetch_cors);\n}\n\n/**\n * Data returned from `load` while rendering `%id%` is not a plain object\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_not_plain_object(_values, options) {\n\tthrow_error('load_not_plain_object', `Data returned from \\`load\\` while rendering \\`${_values.id}\\` is not a plain object`, options, load_not_plain_object);\n}\n\n/**\n * Data returned from `load` while rendering `%id%` is not serializable: %message% (`%path%`). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#transport.\n * @param {{ \"id\": string; \"message\": string; \"path\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_not_serializable(_values, options) {\n\tthrow_error('load_not_serializable', `Data returned from \\`load\\` while rendering \\`${_values.id}\\` is not serializable: ${_values.message} (\\`${_values.path}\\`). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#transport.`, options, load_not_serializable);\n}\n\n/**\n * Failed to serialize promise while rendering `%id%`\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_promise_not_serializable(_values, options) {\n\tthrow_error('load_promise_not_serializable', `Failed to serialize promise while rendering \\`${_values.id}\\``, options, load_promise_not_serializable);\n}\n\n/**\n * Failed to get response header `%name%` — it must be included by the `filterSerializedResponseHeaders` option: https://svelte.dev/docs/kit/hooks#handle (at `%id%`)\n * @param {{ \"name\": string; \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_response_header_not_serialized(_values, options) {\n\tthrow_error('load_response_header_not_serialized', `Failed to get response header \\`${_values.name}\\` — it must be included by the \\`filterSerializedResponseHeaders\\` option: https://svelte.dev/docs/kit/hooks#handle (at \\`${_values.id}\\`)`, options, load_response_header_not_serialized);\n}\n\n/**\n * Cannot prerender pages with actions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_actions(_values, options) {\n\tthrow_error('prerender_actions', `Cannot prerender pages with actions`, options, prerender_actions);\n}\n\n/**\n * Cannot prerender a `+server` file with %methods% or fallback handlers (`%id%`)\n * @param {{ \"methods\": string; \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_endpoint_methods(_values, options) {\n\tthrow_error('prerender_endpoint_methods', `Cannot prerender a \\`+server\\` file with ${_values.methods} or fallback handlers (\\`${_values.id}\\`)`, options, prerender_endpoint_methods);\n}\n\n/**\n * `%id%` is not prerenderable\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_endpoint_not_prerenderable(_values, options) {\n\tthrow_error('prerender_endpoint_not_prerenderable', `\\`${_values.id}\\` is not prerenderable`, options, prerender_endpoint_not_prerenderable);\n}\n\n/**\n * Cannot use prerendering if `config.csp.mode === 'nonce'`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_nonce(_values, options) {\n\tthrow_error('prerender_nonce', `Cannot use prerendering if \\`config.csp.mode === 'nonce'\\``, options, prerender_nonce);\n}\n\n/**\n * Cannot use prerendering if page template contains `%tag%`\n * @param {{ \"tag\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_template_nonce(_values, options) {\n\tthrow_error('prerender_template_nonce', `Cannot use prerendering if page template contains \\`${_values.tag}\\``, options, prerender_template_nonce);\n}\n\n/**\n * Asset does not exist: `%file%`\n * @param {{ \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function read_asset_missing(_values, options) {\n\tthrow_error('read_asset_missing', `Asset does not exist: \\`${_values.file}\\``, options, read_asset_missing);\n}\n\n/**\n * No `read` implementation was provided. Please ensure that your adapter is up to date and supports this feature\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function read_implementation_missing(_values, options) {\n\tthrow_error('read_implementation_missing', `No \\`read\\` implementation was provided. Please ensure that your adapter is up to date and supports this feature`, options, read_implementation_missing);\n}\n\n/**\n * Cannot call a command (`%name%`) from a `%method%` handler\n * @param {{ \"name\": string; \"method\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_method(_values, options) {\n\tthrow_error('remote_command_method', `Cannot call a command (\\`${_values.name}\\`) from a \\`${_values.method}\\` handler`, options, remote_command_method);\n}\n\n/**\n * Cannot call a command (`%name%`) inside a query or prerender function\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_readonly(_values, options) {\n\tthrow_error('remote_command_readonly', `Cannot call a command (\\`${_values.name}\\`) inside a query or prerender function`, options, remote_command_readonly);\n}\n\n/**\n * Cannot call a command (`%name%`) during server-side rendering\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_render(_values, options) {\n\tthrow_error('remote_command_render', `Cannot call a command (\\`${_values.name}\\`) during server-side rendering`, options, remote_command_render);\n}\n\n/**\n * Cannot %operation% cookies in `query` or `prerender` functions\n * @param {{ \"operation\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_cookie_forbidden(_values, options) {\n\tthrow_error('remote_cookie_forbidden', `Cannot ${_values.operation} cookies in \\`query\\` or \\`prerender\\` functions`, options, remote_cookie_forbidden);\n}\n\n/**\n * Cookies %operation% in remote functions must have an absolute path\n * @param {{ \"operation\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_cookie_path_relative(_values, options) {\n\tthrow_error('remote_cookie_path_relative', `Cookies ${_values.operation} in remote functions must have an absolute path`, options, remote_cookie_path_relative);\n}\n\n/**\n * `fail(...)` is for form actions. A remote `form` handler should call `invalid(...)` instead. See https://svelte.dev/docs/kit/remote-functions#form-Programmatic-validation\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_form_fail(_values, options) {\n\tthrow_error('remote_form_fail', `\\`fail(...)\\` is for form actions. A remote \\`form\\` handler should call \\`invalid(...)\\` instead. See https://svelte.dev/docs/kit/remote-functions#form-Programmatic-validation`, options, remote_form_fail);\n}\n\n/**\n * `setHeaders` is not allowed in remote functions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_headers_forbidden(_values, options) {\n\tthrow_error('remote_headers_forbidden', `\\`setHeaders\\` is not allowed in remote functions`, options, remote_headers_forbidden);\n}\n\n/**\n * Invalid validator passed to remote function. Expected `'unchecked'` or a Standard Schema (https://standardschema.dev)\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_invalid_validator(_values, options) {\n\tthrow_error('remote_invalid_validator', `Invalid validator passed to remote function. Expected \\`'unchecked'\\` or a Standard Schema (https://standardschema.dev)`, options, remote_invalid_validator);\n}\n\n/**\n * Cannot export `default` from a remote module (`%file%`) — please use named exports instead\n * @param {{ \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_module_default_export(_values, options) {\n\tthrow_error('remote_module_default_export', `Cannot export \\`default\\` from a remote module (\\`${_values.file}\\`) — please use named exports instead`, options, remote_module_default_export);\n}\n\n/**\n * `%name%` exported from `%file%` is invalid — all exports from this file must be remote functions\n * @param {{ \"name\": string; \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_module_invalid_export(_values, options) {\n\tthrow_error('remote_module_invalid_export', `\\`${_values.name}\\` exported from \\`${_values.file}\\` is invalid — all exports from this file must be remote functions`, options, remote_module_invalid_export);\n}\n\n/**\n * `query.live` `%name%` did not yield a value\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_live_no_value(_values, options) {\n\tthrow_error('remote_query_live_no_value', `\\`query.live\\` \\`${_values.name}\\` did not yield a value`, options, remote_query_live_no_value);\n}\n\n/**\n * `query.live` `%name%` must return an `Iterator`, `Iterable`, `AsyncIterator` or `AsyncIterable`\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_live_not_iterable(_values, options) {\n\tthrow_error('remote_query_live_not_iterable', `\\`query.live\\` \\`${_values.name}\\` must return an \\`Iterator\\`, \\`Iterable\\`, \\`AsyncIterator\\` or \\`AsyncIterable\\``, options, remote_query_live_not_iterable);\n}\n\n/**\n * Cannot call `%type%` `%name%` while prerendering, as prerendered pages need static data. Use `prerender` from `$app/server` instead\n * @param {{ \"type\": string; \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_prerender(_values, options) {\n\tthrow_error('remote_query_prerender', `Cannot call \\`${_values.type}\\` \\`${_values.name}\\` while prerendering, as prerendered pages need static data. Use \\`prerender\\` from \\`$app/server\\` instead`, options, remote_query_prerender);\n}\n\n/**\n * Cannot access `event.%property%` in a query. Pass the value as an argument to the query instead\n * @param {{ \"property\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_request_property(_values, options) {\n\tthrow_error('remote_request_property', `Cannot access \\`event.${_values.property}\\` in a query. Pass the value as an argument to the query instead`, options, remote_request_property);\n}\n\n/**\n * `requested(%name%, %limit%)` cannot be used with synchronous iteration because the query validator is async. Use `for await ... of` instead\n * @param {{ \"name\": string; \"limit\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_async_validator(_values, options) {\n\tthrow_error('remote_requested_async_validator', `\\`requested(${_values.name}, ${_values.limit})\\` cannot be used with synchronous iteration because the query validator is async. Use \\`for await ... of\\` instead`, options, remote_requested_async_validator);\n}\n\n/**\n * `requested(...)` can only be called in the context of a command/form remote function\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_context(_values, options) {\n\tthrow_error('remote_requested_context', `\\`requested(...)\\` can only be called in the context of a command/form remote function`, options, remote_requested_context);\n}\n\n/**\n * Limit must be a non-negative integer or `Infinity`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_invalid_limit(_values, options) {\n\tthrow_error('remote_requested_invalid_limit', `Limit must be a non-negative integer or \\`Infinity\\``, options, remote_requested_invalid_limit);\n}\n\n/**\n * `requested(...)` expects a query function created with `query(...)`, `query.batch(...)`, or `query.live(...)`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_invalid_query(_values, options) {\n\tthrow_error('remote_requested_invalid_query', `\\`requested(...)\\` expects a query function created with \\`query(...)\\`, \\`query.batch(...)\\`, or \\`query.live(...)\\``, options, remote_requested_invalid_query);\n}\n\n/**\n * `%method%()` is invalid for %type% queries. Use `%replacement%()` instead.\n * @param {{ \"method\": string; \"type\": string; \"replacement\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_wrong_method(_values, options) {\n\tthrow_error('remote_requested_wrong_method', `\\`${_values.method}()\\` is invalid for ${_values.type} queries. Use \\`${_values.replacement}()\\` instead.`, options, remote_requested_wrong_method);\n}\n\n/**\n * Can only read the current request event inside functions invoked during `handle`, such as server `load` functions, actions, endpoints, and other server hooks. In environments without `AsyncLocalStorage`, the event must be read synchronously, not after an `await`.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_event_after_await(_values, options) {\n\tthrow_error('request_event_after_await', `Can only read the current request event inside functions invoked during \\`handle\\`, such as server \\`load\\` functions, actions, endpoints, and other server hooks. In environments without \\`AsyncLocalStorage\\`, the event must be read synchronously, not after an \\`await\\`.`, options, request_event_after_await);\n}\n\n/**\n * Can only read the current request event inside functions invoked during `handle`, such as server `load` functions, actions, endpoints, and other server hooks.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_event_unavailable(_values, options) {\n\tthrow_error('request_event_unavailable', `Can only read the current request event inside functions invoked during \\`handle\\`, such as server \\`load\\` functions, actions, endpoints, and other server hooks.`, options, request_event_unavailable);\n}\n\n/**\n * Could not get the request store. In environments without `AsyncLocalStorage`, the request store (used by e.g. remote functions) must be accessed synchronously, not after an `await`. If it was accessed synchronously then this is an internal error.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_store_after_await(_values, options) {\n\tthrow_error('request_store_after_await', `Could not get the request store. In environments without \\`AsyncLocalStorage\\`, the request store (used by e.g. remote functions) must be accessed synchronously, not after an \\`await\\`. If it was accessed synchronously then this is an internal error.`, options, request_store_after_await);\n}\n\n/**\n * Cannot call `%name%` on the server\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function server_api_unavailable(_values, options) {\n\tthrow_error('server_api_unavailable', `Cannot call \\`${_values.name}\\` on the server`, options, server_api_unavailable);\n}\n\n/**\n * Cannot use `setHeaders(...)` after the response has been generated\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function set_headers_after_response(_values, options) {\n\tthrow_error('set_headers_after_response', `Cannot use \\`setHeaders(...)\\` after the response has been generated`, options, set_headers_after_response);\n}\n\n/**\n * Use `event.cookies.set(name, value, options)` instead of `event.setHeaders` to set cookies\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function set_headers_cookie(_values, options) {\n\tthrow_error('set_headers_cookie', `Use \\`event.cookies.set(name, value, options)\\` instead of \\`event.setHeaders\\` to set cookies`, options, set_headers_cookie);\n}\n\n/**\n * Cannot call `fetch` eagerly during server-side rendering with relative URL (`%url%`) — put your `fetch` calls inside `onMount` or a `load` function instead\n * @param {{ \"url\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function ssr_fetch_relative_url(_values, options) {\n\tthrow_error('ssr_fetch_relative_url', `Cannot call \\`fetch\\` eagerly during server-side rendering with relative URL (\\`${_values.url}\\`) — put your \\`fetch\\` calls inside \\`onMount\\` or a \\`load\\` function instead`, options, ssr_fetch_relative_url);\n}\n\n/**\n * Can only read `%name%` on the server during rendering (not in e.g. `load` functions), as it is bound to the current request via component context. This prevents state from leaking between users.\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function state_read_outside_render(_values, options) {\n\tthrow_error('state_read_outside_render', `Can only read \\`${_values.name}\\` on the server during rendering (not in e.g. \\`load\\` functions), as it is bound to the current request via component context. This prevents state from leaking between users.`, options, state_read_outside_render);\n}\n\n/**\n * Tracing is enabled (see the SvelteKit plugin `tracing.server` option in your `vite.config.js`), but `@opentelemetry/api` is not available. This error will likely resolve itself when you set up your tracing instrumentation in `instrumentation.server.js`. For more information, see https://svelte.dev/docs/kit/observability#opentelemetry-api\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function tracing_api_missing(_values, options) {\n\tthrow_error('tracing_api_missing', `Tracing is enabled (see the SvelteKit plugin \\`tracing.server\\` option in your \\`vite.config.js\\`), but \\`@opentelemetry/api\\` is not available. This error will likely resolve itself when you set up your tracing instrumentation in \\`instrumentation.server.js\\`. For more information, see https://svelte.dev/docs/kit/observability#opentelemetry-api`, options, tracing_api_missing);\n}\n\n/**\n * Cannot access `url.%property%` on a page with prerendering enabled\n * @param {{ \"property\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function url_search_unavailable_prerender(_values, options) {\n\tthrow_error('url_search_unavailable_prerender', `Cannot access \\`url.${_values.property}\\` on a page with prerendering enabled`, options, url_search_unavailable_prerender);\n}\n"],"ignoreList":[0,1],"mappings":";;;;;;;;;;;;AAYA,SAAgB,YAAY,MAAM,SAAS,SAAS,QAAQ;CAC3D,MAAM,QAAQ,IAAI,MACjB,GAAG,KAAK,IAAI,QAAQ,6BAA6B,QACjD,SAAS,UAAU,KAAA,IAAY,KAAA,IAAY,EAAE,OAAO,QAAQ,MAAM,CACnE;CACA,MAAM,OAAO;CAEb,IAAI,SAAS,WAAW,MAAM,QAAQ;MAEjC,MAAM,oBAAoB,OAAO,MAAM;CAE5C,MAAM;AACP;;;;;;;AAQA,SAAgB,cAAc,IAAI;CACjC,IAAI;EACH,GAAG;CACJ,SAAS,OAAO;EACf,OAA6B;CAC9B;AACD;;;;;;;;;;AC3BA,SAAgB,6BAA6B,SAAS,SAAS;CAC9D,YAAY,gCAAiC,SAAS,SAAS,KAAA,IAAY,sCAAsC,QAAQ,GAAG,0BAA0B,QAAQ,QAAQ,MAAM,QAAQ,KAAK,OAAO,sCAAsC,QAAQ,GAAG,0BAA0B,QAAQ,WAAY,SAAS,4BAA4B;AACrU;;;;;;;AAQA,SAAgB,0BAA0B,SAAS,SAAS;CAC3D,YAAY,6BAA6B,mJAAmJ,SAAS,yBAAyB;AAC/N;;;;;;;AAQA,SAAgB,qBAAqB,SAAS,SAAS;CACtD,YAAY,wBAAwB,+CAA+C,SAAS,oBAAoB;AACjH;;;;;;;AAQA,SAAgB,iCAAiC,SAAS,SAAS;CAClE,YAAY,oCAAoC,sCAAsC,QAAQ,GAAG,sKAAsK,SAAS,gCAAgC;AACjT;;;;;;;AAQA,SAAgB,oBAAoB,SAAS,SAAS;CACrD,YAAY,uBAAuB,qFAAqF,SAAS,mBAAmB;AACrJ;;;;;;;AAQA,SAAgB,uBAAuB,SAAS,SAAS;CACxD,YAAY,0BAA0B,mEAAmE,SAAS,sBAAsB;AACzI;;;;;;;AAQA,SAAgB,kBAAkB,SAAS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":"server.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/env/server.js"],"sourcesContent":["export const browser = false;\nexport const dev = __SVELTEKIT_DEV__;\nexport const version = __SVELTEKIT_APP_VERSION__;\nexport let building = false;\n\nexport let prerendering = false;\n\nexport function set_building() {\n\tbuilding = true;\n}\n\nexport function set_prerendering() {\n\tprerendering = true;\n}\n"],"ignoreList":[0],"mappings":"AAKA,IAAW,eAAe;AAE1B,SAAgB,eAAe,CAE/B;AAEA,SAAgB,mBAAmB;CAClC,eAAe;AAChB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/exports/internal/shared.js
|
|
2
2
|
/** @import { StandardSchemaV1 } from '@standard-schema/spec' */
|
|
3
3
|
var HttpError = class {
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
1
|
+
{"version":3,"file":"shared.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/exports/internal/shared.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {App.Error} error\n\t */\n\tconstructor(error) {\n\t\tthis.status = error.status;\n\t\tthis.body = error;\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\n/**\n * An `HttpError` whose body is already in its final, user-facing form — either produced by the\n * `handleError` hook on the server and reconstructed here from the response, or authored directly\n * by the client runtime. Unlike a plain `HttpError` (which represents a fresh `error(...)` call\n * that the hook has yet to see), `handleError` must not run on it.\n * @extends HttpError\n */\nexport class HandledHttpError extends HttpError {}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\ttry {\n\t\t\tnew Headers({ location });\n\t\t} catch {\n\t\t\tthrow new Error(\n\t\t\t\t`Invalid redirect location ${JSON.stringify(location)}: ` +\n\t\t\t\t\t'this string contains characters that cannot be used in HTTP headers'\n\t\t\t);\n\t\t}\n\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n"],"ignoreList":[0],"mappings":";;AAEA,IAAa,YAAb,MAAuB;;;;CAItB,YAAY,OAAO;EAClB,KAAK,SAAS,MAAM;EACpB,KAAK,OAAO;CACb;CAEA,WAAW;EACV,OAAO,KAAK,UAAU,KAAK,IAAI;CAChC;AACD;;;;;;;;AASA,IAAa,mBAAb,cAAsC,UAAU,CAAC;AAEjD,IAAa,WAAb,MAAsB;;;;;CAKrB,YAAY,QAAQ,UAAU;EAC7B,IAAI;GACH,IAAI,QAAQ,EAAE,SAAS,CAAC;EACzB,QAAQ;GACP,MAAM,IAAI,MACT,6BAA6B,KAAK,UAAU,QAAQ,EAAE,sEAEvD;EACD;EAEA,KAAK,SAAS;EACd,KAAK,WAAW;CACjB;AACD;;;;;;AAOA,IAAa,iBAAb,cAAoC,MAAM;;;;;;CAMzC,YAAY,QAAQ,MAAM,SAAS;EAClC,MAAM,OAAO;EACb,KAAK,SAAS;EACd,KAAK,OAAO;CACb;AACD;;;;AAKA,IAAa,gBAAb,MAA2B;;;;;CAK1B,YAAY,QAAQ,MAAM;EACzB,KAAK,SAAS;EACd,KAAK,OAAO;CACb;AACD;;;;AAKA,IAAa,kBAAb,cAAqC,MAAM;;;;CAI1C,YAAY,QAAQ;EACnB,MAAM,mBAAmB;EACzB,KAAK,OAAO;EACZ,KAAK,SAAS;CACf;AACD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./server-errors.js";
|
|
2
2
|
import { c as getContext } from "./server2.js";
|
|
3
3
|
import "./index-server.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
4
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/state/server.js
|
|
5
5
|
function context() {
|
|
6
6
|
return getContext("__request__");
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
1
|
+
{"version":3,"file":"state.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/state/server.js"],"sourcesContent":["import { DEV } from 'esm-env';\nimport { getContext } from 'svelte';\nimport * as e from '../../../messages/server-errors.js';\n\nfunction context() {\n\treturn getContext('__request__');\n}\n\n/** @param {string} name */\nfunction context_dev(name) {\n\ttry {\n\t\treturn context();\n\t} catch {\n\t\te.state_read_outside_render({ name });\n\t}\n}\n\nexport const page = {\n\tget data() {\n\t\treturn (DEV ? context_dev('page.data') : context()).page.data;\n\t},\n\tget error() {\n\t\treturn (DEV ? context_dev('page.error') : context()).page.error;\n\t},\n\tget form() {\n\t\treturn (DEV ? context_dev('page.form') : context()).page.form;\n\t},\n\tget params() {\n\t\treturn (DEV ? context_dev('page.params') : context()).page.params;\n\t},\n\tget route() {\n\t\treturn (DEV ? context_dev('page.route') : context()).page.route;\n\t},\n\tget shallow() {\n\t\treturn (DEV ? context_dev('page.shallow') : context()).page.shallow;\n\t},\n\tget state() {\n\t\treturn (DEV ? context_dev('page.state') : context()).page.state;\n\t},\n\tget status() {\n\t\treturn (DEV ? context_dev('page.status') : context()).page.status;\n\t},\n\tget url() {\n\t\treturn (DEV ? context_dev('page.url') : context()).page.url;\n\t}\n};\n\nexport const navigating = {\n\tfrom: null,\n\tto: null,\n\ttype: null,\n\twillUnload: null,\n\tdelta: null,\n\tcomplete: null\n};\n\nexport const updated = {\n\tget current() {\n\t\treturn false;\n\t},\n\tcheck: () => {\n\t\te.server_api_unavailable({ name: 'updated.check()' });\n\t}\n};\n"],"ignoreList":[0],"mappings":";;;;AAIA,SAAS,UAAU;CAClB,OAAO,WAAW,aAAa;AAChC;AAWA,IAAa,OAAO;CACnB,IAAI,OAAO;EACV,OAAyC,QAAQ,CAAA,CAAG,KAAK;CAC1D;CACA,IAAI,QAAQ;EACX,OAA0C,QAAQ,CAAA,CAAG,KAAK;CAC3D;CACA,IAAI,OAAO;EACV,OAAyC,QAAQ,CAAA,CAAG,KAAK;CAC1D;CACA,IAAI,SAAS;EACZ,OAA2C,QAAQ,CAAA,CAAG,KAAK;CAC5D;CACA,IAAI,QAAQ;EACX,OAA0C,QAAQ,CAAA,CAAG,KAAK;CAC3D;CACA,IAAI,UAAU;EACb,OAA4C,QAAQ,CAAA,CAAG,KAAK;CAC7D;CACA,IAAI,QAAQ;EACX,OAA0C,QAAQ,CAAA,CAAG,KAAK;CAC3D;CACA,IAAI,SAAS;EACZ,OAA2C,QAAQ,CAAA,CAAG,KAAK;CAC5D;CACA,IAAI,MAAM;EACT,OAAwC,QAAQ,CAAA,CAAG,KAAK;CACzD;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sweetAlert.svelte.js","names":[],"sources":["../../../src/lib/sweetAlert.svelte.js"],"sourcesContent":["/* eslint-disable no-undef */\n// Svelte 5 Runes State for 3D SweetAlert Modal System\n\nfunction createSweetAlertState() {\n let isOpen = $state(false);\n let title = $state(\"\");\n let text = $state(\"\");\n let icon = $state(\"info\"); // \"success\" | \"error\" | \"warning\" | \"info\"\n let showCancel = $state(false);\n let confirmText = $state(\"OK\");\n let cancelText = $state(\"Cancel\");\n let resolvePromise = null;\n let autoDismissTimer = null;\n\n function clearAutoDismiss() {\n if (autoDismissTimer) {\n clearTimeout(autoDismissTimer);\n autoDismissTimer = null;\n }\n }\n\n function settlePendingResolve() {\n // A new modal replacing a pending one must settle the old promise (as\n // cancelled), otherwise the caller's `await` hangs forever.\n if (resolvePromise) {\n resolvePromise(false);\n resolvePromise = null;\n }\n }\n\n function fire({ title: t, text: msg, icon: ic = \"info\", confirmText: cText = \"OK\", timer = 0 }) {\n clearAutoDismiss();\n settlePendingResolve();\n title = t || \"Notification\";\n text = msg || \"\";\n icon = ic;\n showCancel = false;\n confirmText = cText;\n isOpen = true;\n const promise = new Promise((resolve) => {\n resolvePromise = resolve;\n });\n if (timer > 0) {\n autoDismissTimer = setTimeout(() => {\n if (resolvePromise) resolvePromise(true);\n resolvePromise = null;\n isOpen = false;\n }, timer);\n }\n return promise;\n }\n\n function confirm({ title: t, text: msg, icon: ic = \"warning\", confirmText: cText = \"Confirm\", cancelText: canText = \"Cancel\" }) {\n clearAutoDismiss();\n settlePendingResolve();\n title = t || \"Are you sure?\";\n text = msg || \"\";\n icon = ic;\n showCancel = true;\n confirmText = cText;\n cancelText = canText;\n isOpen = true;\n return new Promise((resolve) => {\n resolvePromise = resolve;\n });\n }\n\n function handleConfirm() {\n clearAutoDismiss();\n isOpen = false;\n if (resolvePromise) resolvePromise(true);\n resolvePromise = null;\n }\n\n function handleCancel() {\n clearAutoDismiss();\n isOpen = false;\n if (resolvePromise) resolvePromise(false);\n resolvePromise = null;\n }\n\n return {\n get isOpen() { return isOpen; },\n get title() { return title; },\n get text() { return text; },\n get icon() { return icon; },\n get showCancel() { return showCancel; },\n get confirmText() { return confirmText; },\n get cancelText() { return cancelText; },\n fire,\n confirm,\n handleConfirm,\n handleCancel\n };\n}\n\nexport const sweetAlert = createSweetAlertState();\n"],"mappings":";;AAGA,SAAS,wBAAwB;CAC/B,IAAI,SAAgB;CACpB,IAAI,QAAe;CACnB,IAAI,OAAc;CAClB,IAAI,OAAc;CAClB,IAAI,aAAoB;CACxB,IAAI,cAAqB;CACzB,IAAI,aAAoB;CACxB,IAAI,iBAAiB;CACrB,IAAI,mBAAmB;CAEvB,SAAS,mBAAmB;EAC1B,IAAI,kBAAkB;GACpB,aAAa,gBAAgB;GAC7B,mBAAmB;EACrB;CACF;CAEA,SAAS,uBAAuB;EAG9B,IAAI,gBAAgB;GAClB,eAAe,KAAK;GACpB,iBAAiB;EACnB;CACF;CAEA,SAAS,
|
|
1
|
+
{"version":3,"file":"sweetAlert.svelte.js","names":[],"sources":["../../../src/lib/sweetAlert.svelte.js"],"sourcesContent":["/* eslint-disable no-undef */\n// Svelte 5 Runes State for 3D SweetAlert Modal System\n\nfunction createSweetAlertState() {\n let isOpen = $state(false);\n let title = $state(\"\");\n let text = $state(\"\");\n let icon = $state(\"info\"); // \"success\" | \"error\" | \"warning\" | \"info\"\n let showCancel = $state(false);\n let confirmText = $state(\"OK\");\n let cancelText = $state(\"Cancel\");\n let resolvePromise = null;\n let autoDismissTimer = null;\n\n function clearAutoDismiss() {\n if (autoDismissTimer) {\n clearTimeout(autoDismissTimer);\n autoDismissTimer = null;\n }\n }\n\n function settlePendingResolve() {\n // A new modal replacing a pending one must settle the old promise (as\n // cancelled), otherwise the caller's `await` hangs forever.\n if (resolvePromise) {\n resolvePromise(false);\n resolvePromise = null;\n }\n }\n\n function fire({ title: t, text: msg, icon: ic = \"info\", confirmText: cText = \"OK\", timer = 0 }) {\n clearAutoDismiss();\n settlePendingResolve();\n title = t || \"Notification\";\n text = msg || \"\";\n icon = ic;\n showCancel = false;\n confirmText = cText;\n isOpen = true;\n const promise = new Promise((resolve) => {\n resolvePromise = resolve;\n });\n if (timer > 0) {\n autoDismissTimer = setTimeout(() => {\n if (resolvePromise) resolvePromise(true);\n resolvePromise = null;\n isOpen = false;\n }, timer);\n }\n return promise;\n }\n\n function confirm({ title: t, text: msg, icon: ic = \"warning\", confirmText: cText = \"Confirm\", cancelText: canText = \"Cancel\" }) {\n clearAutoDismiss();\n settlePendingResolve();\n title = t || \"Are you sure?\";\n text = msg || \"\";\n icon = ic;\n showCancel = true;\n confirmText = cText;\n cancelText = canText;\n isOpen = true;\n return new Promise((resolve) => {\n resolvePromise = resolve;\n });\n }\n\n function handleConfirm() {\n clearAutoDismiss();\n isOpen = false;\n if (resolvePromise) resolvePromise(true);\n resolvePromise = null;\n }\n\n function handleCancel() {\n clearAutoDismiss();\n isOpen = false;\n if (resolvePromise) resolvePromise(false);\n resolvePromise = null;\n }\n\n return {\n get isOpen() { return isOpen; },\n get title() { return title; },\n get text() { return text; },\n get icon() { return icon; },\n get showCancel() { return showCancel; },\n get confirmText() { return confirmText; },\n get cancelText() { return cancelText; },\n fire,\n confirm,\n handleConfirm,\n handleCancel\n };\n}\n\nexport const sweetAlert = createSweetAlertState();\n"],"mappings":";;AAGA,SAAS,wBAAwB;CAC/B,IAAI,SAAgB;CACpB,IAAI,QAAe;CACnB,IAAI,OAAc;CAClB,IAAI,OAAc;CAClB,IAAI,aAAoB;CACxB,IAAI,cAAqB;CACzB,IAAI,aAAoB;CACxB,IAAI,iBAAiB;CACrB,IAAI,mBAAmB;CAEvB,SAAS,mBAAmB;EAC1B,IAAI,kBAAkB;GACpB,aAAa,gBAAgB;GAC7B,mBAAmB;EACrB;CACF;CAEA,SAAS,uBAAuB;EAG9B,IAAI,gBAAgB;GAClB,eAAe,KAAK;GACpB,iBAAiB;EACnB;CACF;CAEA,SAAS,KAAK,EAAE,OAAO,GAAG,MAAM,KAAK,MAAM,KAAK,QAAQ,aAAa,QAAQ,MAAM,QAAQ,KAAK;EAC9F,iBAAgB;EAChB,qBAAoB;EACpB,QAAQ,KAAK;EACb,OAAO,OAAO;EACd,OAAO;EACP,aAAa;EACb,cAAc;EACd,SAAS;EACT,MAAM,UAAU,IAAI,SAAS,YAAY;GACvC,iBAAiB;EACnB,CAAC;EACD,IAAI,QAAQ,GACV,mBAAmB,iBAAiB;GAClC,IAAI,gBAAgB,eAAe,IAAI;GACvC,iBAAiB;GACjB,SAAS;EACX,GAAG,KAAM;EAEX,OAAO;CACT;CAEA,SAAS,QAAQ,EAAE,OAAO,GAAG,MAAM,KAAK,MAAM,KAAK,WAAW,aAAa,QAAQ,WAAW,YAAY,UAAU,YAAY;EAC9H,iBAAgB;EAChB,qBAAoB;EACpB,QAAQ,KAAK;EACb,OAAO,OAAO;EACd,OAAO;EACP,aAAa;EACb,cAAc;EACd,aAAa;EACb,SAAS;EACT,OAAO,IAAI,SAAS,YAAY;GAC9B,iBAAiB;EACnB,CAAC;CACH;CAEA,SAAS,gBAAgB;EACvB,iBAAgB;EAChB,SAAS;EACT,IAAI,gBAAgB,eAAe,IAAI;EACvC,iBAAiB;CACnB;CAEA,SAAS,eAAe;EACtB,iBAAgB;EAChB,SAAS;EACT,IAAI,gBAAgB,eAAe,KAAK;EACxC,iBAAiB;CACnB;CAEA,OAAO;EACL,IAAI,SAAS;GAAE,OAAO;EAAQ;EAC9B,IAAI,QAAQ;GAAE,OAAO;EAAO;EAC5B,IAAI,OAAO;GAAE,OAAO;EAAM;EAC1B,IAAI,OAAO;GAAE,OAAO;EAAM;EAC1B,IAAI,aAAa;GAAE,OAAO;EAAY;EACtC,IAAI,cAAc;GAAE,OAAO;EAAa;EACxC,IAAI,aAAa;GAAE,OAAO;EAAY;EACtC;EACA;EACA;EACA;CACD;AACH;AAEA,IAAa,aAAa,sBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uiState.svelte.js","names":[],"sources":["../../../src/lib/state/uiState.svelte.js"],"sourcesContent":["/* eslint-disable no-undef */\n// Svelte 5 Runes state management for Konoha Web UI\n\nexport function createUiState() {\n let activeScreen = $state('bridges');\n let notifications = $state([]);\n let isConnected = $state(false);\n let nextNotificationId = 1;\n\n return {\n get activeScreen() { return activeScreen; },\n set activeScreen(screen) { activeScreen = screen; },\n get notifications() { return notifications; },\n get isConnected() { return isConnected; },\n set isConnected(val) { isConnected = val; },\n addNotification(text, type = 'info') {\n const id = nextNotificationId++;\n notifications = [...notifications, { id, text, type }];\n setTimeout(() => {\n notifications = notifications.filter(n => n.id !== id);\n }, 4000);\n }\n };\n}\n\nexport const uiState = createUiState();\n"],"mappings":";;AAGA,SAAgB,gBAAgB;CAC9B,IAAI,eAAsB;CAC1B,IAAI,
|
|
1
|
+
{"version":3,"file":"uiState.svelte.js","names":[],"sources":["../../../src/lib/state/uiState.svelte.js"],"sourcesContent":["/* eslint-disable no-undef */\n// Svelte 5 Runes state management for Konoha Web UI\n\nexport function createUiState() {\n let activeScreen = $state('bridges');\n let notifications = $state([]);\n let isConnected = $state(false);\n let nextNotificationId = 1;\n\n return {\n get activeScreen() { return activeScreen; },\n set activeScreen(screen) { activeScreen = screen; },\n get notifications() { return notifications; },\n get isConnected() { return isConnected; },\n set isConnected(val) { isConnected = val; },\n addNotification(text, type = 'info') {\n const id = nextNotificationId++;\n notifications = [...notifications, { id, text, type }];\n setTimeout(() => {\n notifications = notifications.filter(n => n.id !== id);\n }, 4000);\n }\n };\n}\n\nexport const uiState = createUiState();\n"],"mappings":";;AAGA,SAAgB,gBAAgB;CAC9B,IAAI,eAAsB;CAC1B,IAAI,gBAAuB,CAAA;CAC3B,IAAI,cAAqB;CACzB,IAAI,qBAAqB;CAEzB,OAAO;EACL,IAAI,eAAe;GAAE,OAAO;EAAc;EAC1C,IAAI,aAAa,QAAQ;GAAE,eAAe;EAAQ;EAClD,IAAI,gBAAgB;GAAE,OAAO;EAAe;EAC5C,IAAI,cAAc;GAAE,OAAO;EAAa;EACxC,IAAI,YAAY,KAAK;GAAE,cAAc;EAAK;EAC1C,gBAAgB,MAAM,OAAO,QAAQ;GACnC,MAAM,KAAK;GACX,gBAAgB,CAAC,GAAG,eAAe;IAAE;IAAI;IAAM;GAAI,CAAE;GACrD,iBAAiB;IACf,gBAAgB,cAAc,QAAO,MAAK,EAAE,OAAO,EAAE;GACvD,GAAG,GAAK;EACV;CACD;AACH;AAEA,IAAa,UAAU,cAAa"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as escape_html } from "../../chunks/server2.js";
|
|
2
2
|
import { t as page } from "../../chunks/state.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
3
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/components/error.svelte
|
|
4
4
|
function Error($$renderer, $$props) {
|
|
5
5
|
$$renderer.component(($$renderer) => {
|
|
6
6
|
$$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.svelte.js","names":["$.escape"],"sources":["../../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.
|
|
1
|
+
{"version":3,"file":"error.svelte.js","names":["$.escape"],"sources":["../../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/components/error.svelte"],"sourcesContent":["<svelte:options runes={true} />\n\n<script>\n\timport { page } from '$app/state';\n</script>\n\n<h1>{page.status}</h1>\n<p>{page.error?.message}</p>\n"],"ignoreList":[0],"mappings":";;;;CAEA,WAAA,WAAA,eAAA;EAIK,WAAA,KAAA,OAAAA,YAAA,KAAK,MAAM,EAAA,WAAAA,YACZ,KAAK,OAAO,OAAO,EAAA,KAAA;CAHf,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_layout.svelte.js","names":["$.attr","$.stringify","$.escape","$.ensure_array_like","$.attr_class","$.escape","$.ensure_array_like","$.attr_style","$.attr"],"sources":["../../../../src/lib/state/themeState.svelte.js","../../../../src/components/ThemeSwitcher.svelte","../../../../src/components/SweetAlertModal.svelte","../../../../src/routes/+layout.svelte"],"sourcesContent":["/* eslint-disable no-undef */\n// Svelte 5 Runes State for Konoha 10-Theme System\n\nexport const THEMES = [\n { id: 'chidori', name: 'Chidori Azure Light', description: 'Crackling sky-blue precision with lightning focus', color: '#0284c7', accent: '#06b6d4', gradient: ['#0284c7', '#06b6d4', '#38bdf8', '#818cf8'], glow: 'rgba(2,132,199,0.12)', bg: '#f0f9ff', surface: '#ffffff', border: '#bae6fd', light: true },\n { id: 'byakugan', name: 'Byakugan Pure Light', description: 'Violet focus with 360° clarity', color: '#7c3aed', accent: '#6366f1', gradient: ['#7c3aed', '#6366f1', '#8b5cf6', '#a855f7'], glow: 'rgba(124,58,237,0.12)', bg: '#f8fafc', surface: '#ffffff', border: '#e2e8f0', light: true },\n { id: 'konoha-leaf', name: 'Konoha Emerald Light', description: 'Hidden leaf green serenity', color: '#059669', accent: '#14b8a6', gradient: ['#059669', '#10b981', '#14b8a6', '#34d399'], glow: 'rgba(5,150,105,0.12)', bg: '#f0fdf4', surface: '#ffffff', border: '#bbf7d0', light: true },\n { id: 'rasengan', name: 'Rasengan Breeze Light', description: 'Spiralling royal-blue energy', color: '#2563eb', accent: '#3b82f6', gradient: ['#1d4ed8', '#2563eb', '#3b82f6', '#60a5fa'], glow: 'rgba(37,99,235,0.12)', bg: '#eff6ff', surface: '#ffffff', border: '#bfdbfe', light: true },\n { id: 'sharingan', name: 'Sharingan Rose Light', description: 'Crimson perception, softly lit', color: '#dc2626', accent: '#f43f5e', gradient: ['#be123c', '#dc2626', '#e11d48', '#f43f5e'], glow: 'rgba(220,38,38,0.12)', bg: '#fff1f2', surface: '#ffffff', border: '#fecdd3', light: true },\n { id: 'hokage-gold', name: 'Hokage Amber Light', description: 'Warm gold of the village leader', color: '#d97706', accent: '#f59e0b', gradient: ['#b45309', '#d97706', '#f59e0b', '#fbbf24'], glow: 'rgba(217,119,6,0.12)', bg: '#fffbeb', surface: '#ffffff', border: '#fde68a', light: true },\n { id: 'anbu-shadow', name: 'Anbu Platinum Light', description: 'Cool steel-grey operative tone', color: '#475569', accent: '#64748b', gradient: ['#334155', '#475569', '#64748b', '#94a3b8'], glow: 'rgba(71,85,105,0.12)', bg: '#f8fafc', surface: '#ffffff', border: '#cbd5e1', light: true },\n { id: 'sage-mode', name: 'Sage Coral Light', description: 'Natural orange toad-sage warmth', color: '#ea580c', accent: '#f97316', gradient: ['#c2410c', '#ea580c', '#f97316', '#fb923c'], glow: 'rgba(234,88,12,0.12)', bg: '#fff7ed', surface: '#ffffff', border: '#fed7aa', light: true },\n { id: 'sound-village', name: 'Sound Orchid Light', description: 'Orchid purple with sonic depth', color: '#9333ea', accent: '#a855f7', gradient: ['#7e22ce', '#9333ea', '#a855f7', '#c084fc'], glow: 'rgba(147,51,234,0.12)', bg: '#faf5ff', surface: '#ffffff', border: '#e9d5ff', light: true },\n { id: 'akatsuki', name: 'Akatsuki Dusk Plum Light', description: 'Mysterious plum dusk with rogue ninja cloak aura', color: '#86198f', accent: '#c026d3', gradient: ['#581c87', '#701a75', '#86198f', '#c026d3'], glow: 'rgba(134,25,143,0.12)', bg: '#fdf4ff', surface: '#ffffff', border: '#f5d0fe', light: true }\n];\n\nexport function createThemeState() {\n let currentTheme = $state('chidori');\n let isModalOpen = $state(false);\n\n function applyTheme(themeId) {\n currentTheme = themeId;\n const found = THEMES.find(t => t.id === themeId) || THEMES[0];\n if (typeof document !== 'undefined') {\n document.documentElement.setAttribute('data-theme', themeId);\n document.documentElement.style.setProperty('--color-primary', found.color);\n document.documentElement.style.setProperty('--color-accent', found.accent);\n document.documentElement.style.setProperty('--color-primary-glow', found.glow);\n document.documentElement.style.setProperty('--color-bg', found.bg);\n document.documentElement.style.setProperty('--color-surface', found.surface);\n document.documentElement.style.setProperty('--color-border', found.border);\n document.documentElement.classList.add('theme-light');\n document.documentElement.classList.remove('theme-dark');\n document.documentElement.style.setProperty('--color-text', '#0f172a');\n document.documentElement.style.setProperty('--color-text-muted', '#334155');\n document.documentElement.style.setProperty('--color-card-bg', '#ffffff');\n document.documentElement.style.setProperty('--color-card-border', found.border);\n if (found.gradient && found.gradient.length >= 4) {\n document.documentElement.style.setProperty('--theme-grad-1', found.gradient[0]);\n document.documentElement.style.setProperty('--theme-grad-2', found.gradient[1]);\n document.documentElement.style.setProperty('--theme-grad-3', found.gradient[2]);\n document.documentElement.style.setProperty('--theme-grad-4', found.gradient[3]);\n document.documentElement.style.setProperty('--theme-4gradient', `linear-gradient(135deg, ${found.gradient[0]} 0%, ${found.gradient[1]} 33%, ${found.gradient[2]} 66%, ${found.gradient[3]} 100%)`);\n document.documentElement.style.setProperty('--theme-4gradient-bar', `linear-gradient(90deg, ${found.gradient[0]}, ${found.gradient[1]}, ${found.gradient[2]}, ${found.gradient[3]})`);\n document.documentElement.style.setProperty('--theme-4gradient-subtle', `linear-gradient(135deg, ${found.gradient[0]}22 0%, ${found.gradient[1]}22 33%, ${found.gradient[2]}22 66%, ${found.gradient[3]}22 100%)`);\n }\n try {\n localStorage.setItem('konoha-theme', themeId);\n } catch (_) {\n // Ignore localStorage errors in SSR or restricted environments\n }\n }\n }\n\n function init() {\n if (typeof window !== 'undefined') {\n let saved = 'chidori';\n try {\n saved = localStorage.getItem('konoha-theme') || 'chidori';\n } catch (_) {\n // Fallback to default theme if storage is unavailable\n }\n applyTheme(saved);\n }\n }\n\n return {\n get currentTheme() { return currentTheme; },\n get isModalOpen() { return isModalOpen; },\n set isModalOpen(val) { isModalOpen = val; },\n applyTheme,\n init,\n themes: THEMES\n };\n}\n\nexport const themeState = createThemeState();\n","<script>\n import { themeState, THEMES } from '../lib/state/themeState.svelte.js';\n import { useScrollLock } from '#lib/scrollLock.svelte.js';\n\n let isModalOpen = $state(false);\n\n useScrollLock(() => isModalOpen);\n\n function selectTheme(id) {\n themeState.applyTheme(id);\n isModalOpen = false;\n }\n\n function toggleModal() {\n isModalOpen = !isModalOpen;\n }\n\n function handleModalKeydown(e) {\n if (e.key === 'Escape' && isModalOpen) isModalOpen = false;\n }\n</script>\n\n<svelte:window onkeydown={handleModalKeydown} />\n\n<!-- Floating Bottom-Left Theme Switcher Button (FAB) -->\n<div class=\"fixed bottom-20 left-5 lg:bottom-6 lg:left-6 z-50\">\n <button\n type=\"button\"\n onclick={toggleModal}\n class=\"w-11 h-11 rounded-full border shadow-2xl flex items-center justify-center transition-all duration-200 hover:scale-110 active:scale-95 cursor-pointer group\"\n style=\"background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text); box-shadow: var(--shadow-3d);\"\n title=\"Switch Theme ({themeState.currentTheme.replace('-', ' ')})\"\n aria-label=\"Toggle Theme Selection Modal\"\n >\n <span\n class=\"w-4.5 h-4.5 rounded-full shadow-md transition-transform duration-200 group-hover:scale-110\"\n style=\"background: linear-gradient(135deg, var(--color-primary, #7c3aed), var(--color-accent, #6366f1));\"\n ></span>\n </button>\n</div>\n\n<!-- Shared Full Popup Modal (Fixed Center Overlay for Both Desktop & Mobile) -->\n{#if isModalOpen}\n <!-- svelte-ignore a11y_click_events_have_key_events -->\n <!-- svelte-ignore a11y_no_static_element_interactions -->\n <div\n class=\"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/35 backdrop-blur-sm animate-in fade-in duration-150\"\n onclick={() => isModalOpen = false}\n >\n <!-- Centered Modal Popup Dialog -->\n <div\n class=\"modal-card w-full max-w-lg p-6 rounded-[5px] border shadow-2xl space-y-4 animate-in zoom-in-95 duration-150 glass-frost-strong\"\n style=\"background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text); box-shadow: var(--shadow-3d);\"\n onclick={(e) => e.stopPropagation()}\n >\n <!-- Header -->\n <div class=\"flex items-center justify-between pb-3 border-b\" style=\"border-color: var(--color-border);\">\n <div class=\"flex items-center gap-2.5\">\n <div class=\"w-8 h-8 rounded-[5px] flex items-center justify-center border\" style=\"background: var(--theme-4gradient, linear-gradient(135deg, var(--color-primary), var(--color-accent))); border-color: var(--color-primary); color: #ffffff;\">\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01\" />\n </svg>\n </div>\n <div>\n <h3 class=\"text-sm font-bold tracking-tight\" style=\"color: var(--color-text);\">Konoha 4-Gradient Theme Palette</h3>\n <p class=\"text-[11px]\" style=\"color: var(--color-text-muted);\">10 Light-Mode calibrated palettes with 4-stop vibrant gradients</p>\n </div>\n </div>\n <button\n type=\"button\"\n onclick={() => isModalOpen = false}\n class=\"w-7 h-7 rounded-[5px] flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105\"\n style=\"background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);\"\n >\n ✕\n </button>\n </div>\n\n <!-- 10 Themes Grid (2 Columns) -->\n <div class=\"grid grid-cols-1 sm:grid-cols-2 gap-2.5 max-h-[60vh] overflow-y-auto pr-1\">\n {#each THEMES as t}\n {@const isCurrent = themeState.currentTheme === t.id}\n {@const gradBg = t.gradient ? `linear-gradient(135deg, ${t.gradient[0]} 0%, ${t.gradient[1]} 33%, ${t.gradient[2]} 66%, ${t.gradient[3]} 100%)` : `linear-gradient(135deg, ${t.color}, ${t.accent})`}\n <button\n type=\"button\"\n class=\"w-full flex items-center gap-3 p-3 rounded-[5px] border text-left transition-all duration-150 hover:scale-[1.02] cursor-pointer\"\n style=\"{isCurrent\n ? 'border-color: var(--color-primary); background-color: var(--color-primary-glow); box-shadow: 0 0 0 1.5px var(--color-primary);'\n : 'border-color: var(--color-border); background-color: var(--color-surface);'}\"\n onclick={() => selectTheme(t.id)}\n >\n <div class=\"relative shrink-0\">\n <span class=\"w-8 h-8 rounded-[5px] flex items-center justify-center shadow-md border border-black/10\" style=\"background: {gradBg};\">\n {#if isCurrent}\n <span class=\"w-2.5 h-2.5 rounded-full bg-white shadow-sm ring-1 ring-black/20\"></span>\n {/if}\n </span>\n </div>\n <div class=\"flex flex-col min-w-0 flex-1\">\n <div class=\"flex items-center justify-between gap-1\">\n <span class=\"text-xs font-black truncate\" style=\"color: var(--color-text);\">{t.name}</span>\n {#if isCurrent}\n <span class=\"text-[10px] font-bold px-1.5 py-0.5 rounded-[5px] border text-sky-700 dark:text-sky-300 border-sky-500/30 bg-sky-500/10 shrink-0\">Active</span>\n {/if}\n </div>\n <span class=\"text-[10px] truncate\" style=\"color: var(--color-text-muted);\">{t.description}</span>\n {#if t.gradient}\n <div class=\"flex items-center gap-1 pt-1.5\">\n {#each t.gradient as colorHex}\n <span class=\"w-2.5 h-2 rounded-[2px] shadow-xs\" style=\"background-color: {colorHex};\"></span>\n {/each}\n </div>\n {/if}\n </div>\n </button>\n {/each}\n </div>\n </div>\n </div>\n{/if}\n","<script>\n import { sweetAlert } from \"#lib/sweetAlert.svelte.js\";\n import { useScrollLock } from \"#lib/scrollLock.svelte.js\";\n\n useScrollLock(() => sweetAlert.isOpen);\n</script>\n\n<svelte:window onkeydown={(e) => { if (e.key === 'Escape' && sweetAlert.isOpen) sweetAlert.handleCancel(); }} />\n\n{#if sweetAlert.isOpen}\n <!-- svelte-ignore a11y_click_events_have_key_events -->\n <!-- svelte-ignore a11y_no_static_element_interactions -->\n <div\n class=\"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-slate-900/40 backdrop-blur-md animate-in fade-in duration-200\"\n onclick={(e) => { if (e.target === e.currentTarget) sweetAlert.handleCancel(); }}\n >\n <!-- 3D Perspective Modal Card -->\n <div\n class=\"modal-card relative w-full max-w-lg rounded-[5px] p-6 sm:p-8 border shadow-2xl transition-all duration-300 transform scale-100 overflow-hidden\"\n style=\"background: var(--glass-card); border-color: var(--color-border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);\"\n role=\"alertdialog\"\n aria-modal=\"true\"\n >\n <button\n type=\"button\"\n onclick={sweetAlert.handleCancel}\n class=\"absolute top-3 right-3 p-1.5 rounded-full text-slate-400 hover:text-slate-700 hover:bg-slate-100 transition-colors cursor-pointer z-10\"\n aria-label=\"Close dialog\"\n >\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </button>\n\n <!-- 3D Animated Icon Header -->\n <div class=\"flex justify-center mb-5\">\n {#if sweetAlert.icon === \"success\"}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-emerald-200 bg-emerald-50 text-emerald-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M5 13l4 4L19 7\" />\n </svg>\n </div>\n {:else if sweetAlert.icon === \"error\"}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-rose-200 bg-rose-50 text-rose-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </div>\n {:else if sweetAlert.icon === \"warning\"}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-amber-200 bg-amber-50 text-amber-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z\" />\n </svg>\n </div>\n {:else}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-sky-200 bg-sky-50 text-sky-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z\" />\n </svg>\n </div>\n {/if}\n </div>\n\n <!-- Content Area with High Contrast Typography -->\n <div class=\"text-center space-y-3 mb-6 w-full max-w-full overflow-hidden px-1\">\n <h3 class=\"text-xl font-extrabold text-slate-900 tracking-tight break-words [overflow-wrap:anywhere]\">\n {sweetAlert.title}\n </h3>\n {#if sweetAlert.text}\n <div class=\"text-sm font-medium text-slate-700 leading-relaxed max-w-full mx-auto space-y-2.5\">\n {#each sweetAlert.text.split('\\n') as line}\n {#if line.trim().startsWith('/') || line.trim().startsWith('C:\\\\') || line.trim().startsWith('~')}\n <div class=\"font-mono text-xs p-2.5 rounded-[5px] bg-slate-900/5 text-slate-800 border border-slate-200/80 break-all select-all text-left shadow-inner max-h-32 overflow-y-auto\">\n {line.trim()}\n </div>\n {:else if line.trim()}\n <p class=\"break-words [overflow-wrap:anywhere] whitespace-pre-line\">\n {line}\n </p>\n {/if}\n {/each}\n </div>\n {/if}\n </div>\n\n <!-- 3D Actions with Tactile Depth -->\n <div class=\"flex items-center justify-center gap-3\">\n {#if sweetAlert.showCancel}\n <button\n type=\"button\"\n onclick={sweetAlert.handleCancel}\n class=\"btn-3d px-5 py-2.5 rounded-[5px] text-xs font-bold text-slate-700 bg-slate-100 hover:bg-slate-200 border border-slate-300 transition-all cursor-pointer\"\n >\n {sweetAlert.cancelText}\n </button>\n {/if}\n <button\n type=\"button\"\n onclick={sweetAlert.handleConfirm}\n class=\"btn-3d px-6 py-2.5 rounded-[5px] text-xs font-bold text-white transition-all cursor-pointer shadow-lg\"\n style=\"background-color: var(--color-primary, #7c3aed);\"\n >\n {sweetAlert.confirmText}\n </button>\n </div>\n </div>\n </div>\n{/if}\n","<script>\n import '../app.css';\n import { page } from '$app/state';\n import { onMount } from 'svelte';\n import { apiRequest, initToken } from '#lib/api.js';\n import { uiState } from '#lib/state/uiState.svelte.js';\n import { themeState } from '#lib/state/themeState.svelte.js';\n import ThemeSwitcher from '../components/ThemeSwitcher.svelte';\n import SweetAlertModal from '../components/SweetAlertModal.svelte';\n\n let { children } = $props();\n\n let health = $state({ status: 'checking', port: 1404, version: '2.1.0' });\n\n const navSections = [\n {\n title: 'Overview',\n items: [\n { id: 'dashboard', path: '/dashboard', label: 'Dashboard', iconSvg: 'M3 3v7h7M21 21v-7h-7M3 10a9 9 0 0115-5.7L21 8M21 14a9 9 0 01-15 5.7L3 16' }\n ]\n },\n {\n title: 'Clients & Finance',\n items: [\n { id: 'clients', path: '/clients', label: 'Clients', iconSvg: 'M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z' },\n { id: 'savings', path: '/savings', label: 'Savings', iconSvg: 'M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z' },\n { id: 'bridges', path: '/bridges', label: 'Bridges', iconSvg: 'M8 9l4-4 4 4m0 6l-4 4-4-4' }\n ]\n },\n {\n title: 'Tools & Integrations',\n items: [\n { id: 'search', path: '/search', label: 'Web Search', iconSvg: 'M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z', badge: 'SearXNG' },\n { id: 'semble', path: '/semble', label: 'Semble MCP', iconSvg: 'M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4', badge: '98%' },\n { id: 'detector', path: '/detector', label: 'AI Detector', iconSvg: 'M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c.5.633 1.2 1 2 1s1.5-.367 2-1m2-3a2 2 0 100-4 2 2 0 000 4z', badge: 'Web & Docs' }\n ]\n },\n {\n title: 'Configuration',\n items: [\n { id: 'persona', path: '/persona', label: 'Persona', iconSvg: 'M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z' },\n { id: 'context', path: '/context', label: 'Context', iconSvg: 'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10' },\n { id: 'agents', path: '/agents', label: 'Agents', iconSvg: 'M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z' },\n { id: 'skills', path: '/skills', label: 'Skills', iconSvg: 'M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253' }\n ]\n },\n {\n title: 'Operations',\n items: [\n { id: 'tasks', path: '/tasks', label: 'SDLC Tasks', iconSvg: 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4' },\n { id: 'doctor', path: '/doctor', label: 'Doctor', iconSvg: 'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z' }\n ]\n },\n {\n title: 'Resources',\n items: [\n { id: 'docs', path: '/docs', label: 'Documentation', iconSvg: 'M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253' }\n ]\n }\n ];\n\n const allNavItems = navSections.flatMap(s => s.items);\n\n let isSidebarOpen = $state(true);\n let openSections = $state(new Set(navSections.map(s => s.title)));\n\n function toggleSection(title) {\n if (openSections.has(title)) {\n openSections.delete(title);\n } else {\n openSections.add(title);\n }\n openSections = new Set(openSections);\n }\n\n function toggleSidebar() {\n isSidebarOpen = !isSidebarOpen;\n }\n\n $effect(() => {\n const activeSection = navSections.find(s =>\n s.items.some(it => page.url.pathname === it.path || (it.path === '/dashboard' && page.url.pathname === '/'))\n );\n if (activeSection && !openSections.has(activeSection.title)) {\n openSections.add(activeSection.title);\n openSections = new Set(openSections);\n }\n });\n\n async function checkHealth() {\n try {\n const data = await apiRequest('/api/v1/health');\n health = data;\n uiState.isConnected = true;\n } catch (_) {\n uiState.isConnected = false;\n }\n }\n\n onMount(() => {\n themeState.init();\n initToken();\n checkHealth();\n const interval = setInterval(checkHealth, 10000);\n\n let eventSource;\n try {\n eventSource = new EventSource('/api/v1/events');\n eventSource.onopen = () => { uiState.isConnected = true; };\n eventSource.onerror = () => { uiState.isConnected = false; };\n eventSource.addEventListener('bridge_status', (e) => {\n try {\n const payload = JSON.parse(e.data);\n uiState.addNotification(`Bridge ${payload.name || ''} updated`, 'info');\n } catch (_) {}\n });\n } catch (_) {}\n\n return () => {\n clearInterval(interval);\n if (eventSource) eventSource.close();\n };\n });\n</script>\n\n<div class=\"flex h-screen overflow-hidden font-sans transition-colors duration-200\" style=\"background-color: var(--color-bg); color: var(--color-text);\">\n <!-- Desktop Fixed Left Sidebar (Collapsible for Maximum Center Space) -->\n <aside\n class=\"glass-frost hidden lg:flex border-r flex-col shrink-0 transition-all duration-300 ease-in-out overflow-hidden {isSidebarOpen ? 'w-64' : 'w-0 border-r-0 opacity-0 pointer-events-none'}\"\n style=\"background: var(--glass-sidebar), var(--glass-tint); border-color: var(--color-border); color: var(--color-text);\"\n >\n <div class=\"flex-1 overflow-y-auto scrollbar-thin w-64\">\n <!-- Brand Header (Far-Left Logo + Sidebar Collapse Button) -->\n <div class=\"p-4 border-b flex items-center justify-between sticky top-0 z-10 glass-frost\" style=\"border-color: var(--color-border); background: var(--glass-sidebar), var(--glass-tint);\">\n <div class=\"flex items-center gap-3 min-w-0\">\n <div class=\"w-9 h-9 rounded-[5px] overflow-hidden flex items-center justify-center shadow-md border bg-white shrink-0\" style=\"border-color: var(--color-primary);\">\n <img src=\"/fox_kyubi_192.png\" alt=\"Konoha Kyubi logo\" class=\"w-full h-full object-cover\" width=\"36\" height=\"36\" loading=\"eager\" />\n </div>\n <div class=\"min-w-0\">\n <h1 class=\"text-sm font-extrabold tracking-tight flex items-center gap-1.5\" style=\"color: var(--color-text);\">\n Konoha <span class=\"text-[9px] px-1.5 py-0.5 rounded-[5px] font-mono border\" style=\"color: var(--color-primary); background-color: var(--color-primary-glow); border-color: var(--color-primary);\">v{health.version || '2.0.0'}</span>\n </h1>\n <p class=\"text-[10px] font-medium truncate\" style=\"color: var(--color-text-muted);\">Ninja Agent Village</p>\n </div>\n </div>\n <button\n type=\"button\"\n onclick={toggleSidebar}\n class=\"w-7 h-7 rounded-[5px] border flex items-center justify-center text-xs transition-colors hover:bg-slate-200/50 dark:hover:bg-slate-800/50 cursor-pointer shrink-0\"\n style=\"border-color: var(--color-border); color: var(--color-text-muted);\"\n title=\"Collapse sidebar to give more space in center\"\n aria-label=\"Collapse sidebar\"\n >\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M11 19l-7-7 7-7m8 14l-7-7 7-7\" />\n </svg>\n </button>\n </div>\n\n <!-- Grouped Navigation with Clickable Sub-menu Accordions -->\n <nav class=\"p-2 space-y-1.5\">\n {#each navSections as section}\n {@const isExpanded = openSections.has(section.title)}\n {@const hasActiveChild = section.items.some(it => page.url.pathname === it.path || (it.path === '/dashboard' && page.url.pathname === '/'))}\n <div class=\"rounded-[5px] overflow-hidden border border-transparent transition-colors {hasActiveChild ? 'bg-sky-500/5 dark:bg-sky-500/10 border-sky-500/20' : ''}\">\n <button\n type=\"button\"\n onclick={() => toggleSection(section.title)}\n class=\"w-full flex items-center justify-between px-3 py-1.5 text-[11px] font-bold uppercase tracking-wider select-none hover:bg-black/5 dark:hover:bg-white/5 rounded-[5px] transition-colors cursor-pointer\"\n style=\"color: {hasActiveChild ? 'var(--color-primary)' : 'var(--color-text-muted)'};\"\n aria-expanded={isExpanded}\n >\n <div class=\"flex items-center gap-1.5\">\n <span class=\"w-1.5 h-1.5 rounded-full {hasActiveChild ? 'bg-sky-500' : 'bg-slate-400/40'}\"></span>\n <span>{section.title}</span>\n </div>\n <svg class=\"w-3.5 h-3.5 transition-transform duration-200 {isExpanded ? 'rotate-90' : 'rotate-0'}\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 5l7 7-7 7\" />\n </svg>\n </button>\n\n {#if isExpanded}\n <div class=\"space-y-0.5 pt-0.5 pb-1 pl-1 transition-all duration-200\">\n {#each section.items as item}\n {@const isActive = page.url.pathname === item.path || (item.path === '/dashboard' && page.url.pathname === '/')}\n <a\n href={item.path}\n class=\"nav-depth flex items-center justify-between px-2.5 py-1.5 rounded-[5px] text-xs font-semibold transition-all duration-150\"\n style=\"{isActive ? 'color: var(--color-primary); background-color: var(--color-primary-glow); border: 1.5px solid var(--color-primary); box-shadow: 0 0 12px var(--color-primary-glow);' : 'color: var(--color-text-muted);'}\"\n >\n <div class=\"flex items-center gap-2 min-w-0\">\n <svg class=\"w-3.5 h-3.5 shrink-0\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d={item.iconSvg} />\n </svg>\n <span class=\"truncate\">{item.label}</span>\n </div>\n {#if item.badge}\n <span class=\"px-1.5 py-0.5 rounded-[5px] text-[9px] font-mono bg-emerald-500/20 text-emerald-600 dark:text-emerald-400 border border-emerald-500/30 shrink-0\">{item.badge}</span>\n {/if}\n </a>\n {/each}\n </div>\n {/if}\n </div>\n {/each}\n </nav>\n </div>\n\n <!-- System Status Footer: Live MCP Gateway -->\n <div class=\"p-4 border-t shrink-0 transition-colors duration-200 w-64\" style=\"border-color: var(--color-border); background-color: var(--color-bg);\">\n <div class=\"flex items-center justify-between text-xs mb-2\" style=\"color: var(--color-text-muted);\">\n <span class=\"flex items-center gap-2\">\n <span class=\"w-2 h-2 rounded-full {uiState.isConnected ? 'bg-emerald-400 shadow-[0_0_8px_rgba(52,211,153,0.8)]' : 'bg-rose-500'}\"></span>\n <span class=\"text-xs font-medium\">{uiState.isConnected ? 'Live MCP Gateway' : 'Disconnected'}</span>\n </span>\n <span class=\"font-mono text-[11px]\" style=\"color: var(--color-text-muted);\">:{health.port || 1404}</span>\n </div>\n <div class=\"text-[10px] flex justify-between pt-1\" style=\"color: var(--color-text-muted);\">\n <span>SQLite FTS5 + Semble</span>\n <span>Localhost</span>\n </div>\n </div>\n </aside>\n\n <!-- Main Content Stage (Expands to Full Width When Sidebar is Collapsed) -->\n <main class=\"flex-1 flex flex-col overflow-hidden pb-16 lg:pb-0 transition-all duration-300 ease-in-out\" style=\"background-color: var(--color-bg); color: var(--color-text);\">\n <!-- Top 4-Gradient Vibrant Accent Stripe -->\n <div class=\"h-1 w-full shrink-0\" style=\"background: var(--theme-4gradient-bar);\"></div>\n\n <!-- Top Header: Brand Logo on Far LEFT + Sidebar Toggle (Mandatory Invariant) -->\n <header class=\"glass-frost h-14 border-b px-4 lg:px-6 flex items-center justify-between shrink-0 transition-colors duration-200\" style=\"background: var(--glass-header), var(--glass-tint); border-color: var(--color-border);\">\n <!-- Far-Left Logo & Title + Sidebar Open/Close Toggle Button -->\n <div class=\"flex items-center gap-3\">\n <!-- Desktop Sidebar Toggle Button -->\n <button\n type=\"button\"\n onclick={toggleSidebar}\n class=\"hidden lg:flex w-8 h-8 rounded-[5px] border items-center justify-center text-xs transition-all hover:scale-105 cursor-pointer shrink-0\"\n style=\"border-color: var(--color-border); background-color: var(--color-surface); color: var(--color-text);\"\n title={isSidebarOpen ? \"Close sidebar to give more space in center\" : \"Open sidebar\"}\n aria-label=\"Toggle sidebar\"\n >\n <svg class=\"w-4 h-4 transition-transform duration-200 {isSidebarOpen ? '' : 'rotate-180'}\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 6h16M4 12h16M4 18h7\" />\n </svg>\n </button>\n\n <div class=\"lg:hidden flex items-center gap-2\">\n <img src=\"/fox_kyubi_64.png\" alt=\"Konoha\" class=\"w-7 h-7 rounded-[5px] border object-cover bg-white\" style=\"border-color: var(--color-primary);\" width=\"28\" height=\"28\" loading=\"eager\" />\n <span class=\"text-sm font-bold tracking-tight\" style=\"color: var(--color-text);\">Konoha</span>\n </div>\n <div class=\"hidden sm:flex items-center gap-2 text-xs\">\n <span class=\"uppercase tracking-widest text-[10px] font-bold\" style=\"color: var(--color-text-muted);\">Dashboard</span>\n <span style=\"color: var(--color-border);\">/</span>\n <span class=\"font-semibold capitalize\" style=\"color: var(--color-primary);\">{page.url.pathname.replace('/', '') || 'dashboard'}</span>\n </div>\n </div>\n\n <!-- Action Buttons & Status -->\n <div class=\"flex items-center gap-3\">\n <div class=\"hidden sm:flex items-center gap-2 px-3 py-1 rounded-[5px] border text-[11px] font-mono\" style=\"background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text);\">\n <span class=\"w-1.5 h-1.5 rounded-full bg-emerald-400\"></span>\n <span>127.0.0.1:{health.port || 1404}</span>\n </div>\n <span class=\"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-[5px] text-[11px] font-semibold bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20\">\n SSE Active\n </span>\n </div>\n </header>\n\n <!-- Page Body (extra bottom padding clears the mobile dock + theme FAB) -->\n <div class=\"flex-1 overflow-y-auto p-6 pb-28 lg:p-8 lg:pb-8 transition-colors duration-200\" style=\"background-color: var(--color-bg);\">\n {@render children()}\n </div>\n </main>\n\n <!-- Mobile Navigation Dock (Mandatory Invariant — Zero Hamburger Menu in Header) -->\n <nav class=\"glass-frost lg:hidden fixed bottom-0 inset-x-0 z-40 border-t flex flex-nowrap items-center gap-1 overflow-x-auto scrollbar-none py-2 px-2 shadow-2xl transition-colors duration-200\" style=\"background: var(--glass-dock), var(--glass-tint); border-color: var(--color-border); padding-bottom: max(0.5rem, env(safe-area-inset-bottom));\">\n {#each allNavItems as item}\n {@const isActive = page.url.pathname === item.path || (item.path === '/dashboard' && page.url.pathname === '/')}\n <a\n href={item.path}\n class=\"nav-depth flex flex-col items-center gap-1 py-1 px-2.5 rounded-[5px] text-[10px] font-semibold transition-all shrink-0\"\n style=\"{isActive ? 'color: var(--color-primary); background-color: var(--color-primary-glow);' : 'color: var(--color-text-muted);'}\"\n >\n <svg class=\"w-4 h-4 shrink-0\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d={item.iconSvg} />\n </svg>\n <span class=\"whitespace-nowrap\">{item.label}</span>\n </a>\n {/each}\n </nav>\n\n <!-- Floating Theme Switcher Button -->\n <ThemeSwitcher />\n\n <!-- Global 3D SweetAlert Modal -->\n <SweetAlertModal />\n\n <!-- Global Notification Toasts (lifted above the mobile dock on small screens) -->\n {#if uiState.notifications.length > 0}\n <div class=\"fixed bottom-20 right-5 z-[90] lg:bottom-6 lg:right-6 space-y-2 max-w-[calc(100vw-2.5rem)]\">\n {#each uiState.notifications as n (n.id)}\n <div class=\"px-4 py-3 rounded-[5px] text-xs font-semibold shadow-2xl border backdrop-blur-2xl bg-slate-900/95 text-white border-sky-500/50 flex items-center gap-2\">\n <span class=\"w-2 h-2 rounded-full bg-sky-400 animate-ping\"></span>\n <span>{n.text}</span>\n </div>\n {/each}\n </div>\n {/if}\n</div>\n"],"mappings":";;;;;;;;AAGA,IAAa,SAAM;;EACf,IAAI;EAAW,MAAM;EAAuB,aAAa;EAAqD,OAAO;EAAW,QAAQ;EAAW,UAAQ;GAAG;GAAW;GAAW;GAAW;EAAS;EAAG,MAAM;EAAwB,IAAI;EAAW,SAAS;EAAW,QAAQ;EAAW,OAAO;;;EACtS,IAAI;EAAY,MAAM;EAAuB,aAAa;EAAkC,OAAO;EAAW,QAAQ;EAAW,UAAQ;GAAG;GAAW;GAAW;GAAW;EAAS;EAAG,MAAM;EAAyB,IAAI;EAAW,SAAS;EAAW,QAAQ;EAAW,OAAO;;;EACrR,IAAI;EAAe,MAAM;EAAwB,aAAa;EAA8B,OAAO;EAAW,QAAQ;EAAW,UAAQ;GAAG;GAAW;GAAW;GAAW;EAAS;EAAG,MAAM;EAAwB,IAAI;EAAW,SAAS;EAAW,QAAQ;EAAW,OAAO;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_style","$.attr"],"sources":["../../../../src/lib/state/themeState.svelte.js","../../../../src/components/ThemeSwitcher.svelte","../../../../src/components/SweetAlertModal.svelte","../../../../src/routes/+layout.svelte"],"sourcesContent":["/* eslint-disable no-undef */\n// Svelte 5 Runes State for Konoha 10-Theme System\n\nexport const THEMES = [\n { id: 'chidori', name: 'Chidori Azure Light', description: 'Crackling sky-blue precision with lightning focus', color: '#0284c7', accent: '#06b6d4', gradient: ['#0284c7', '#06b6d4', '#38bdf8', '#818cf8'], glow: 'rgba(2,132,199,0.12)', bg: '#f0f9ff', surface: '#ffffff', border: '#bae6fd', light: true },\n { id: 'byakugan', name: 'Byakugan Pure Light', description: 'Violet focus with 360° clarity', color: '#7c3aed', accent: '#6366f1', gradient: ['#7c3aed', '#6366f1', '#8b5cf6', '#a855f7'], glow: 'rgba(124,58,237,0.12)', bg: '#f8fafc', surface: '#ffffff', border: '#e2e8f0', light: true },\n { id: 'konoha-leaf', name: 'Konoha Emerald Light', description: 'Hidden leaf green serenity', color: '#059669', accent: '#14b8a6', gradient: ['#059669', '#10b981', '#14b8a6', '#34d399'], glow: 'rgba(5,150,105,0.12)', bg: '#f0fdf4', surface: '#ffffff', border: '#bbf7d0', light: true },\n { id: 'rasengan', name: 'Rasengan Breeze Light', description: 'Spiralling royal-blue energy', color: '#2563eb', accent: '#3b82f6', gradient: ['#1d4ed8', '#2563eb', '#3b82f6', '#60a5fa'], glow: 'rgba(37,99,235,0.12)', bg: '#eff6ff', surface: '#ffffff', border: '#bfdbfe', light: true },\n { id: 'sharingan', name: 'Sharingan Rose Light', description: 'Crimson perception, softly lit', color: '#dc2626', accent: '#f43f5e', gradient: ['#be123c', '#dc2626', '#e11d48', '#f43f5e'], glow: 'rgba(220,38,38,0.12)', bg: '#fff1f2', surface: '#ffffff', border: '#fecdd3', light: true },\n { id: 'hokage-gold', name: 'Hokage Amber Light', description: 'Warm gold of the village leader', color: '#d97706', accent: '#f59e0b', gradient: ['#b45309', '#d97706', '#f59e0b', '#fbbf24'], glow: 'rgba(217,119,6,0.12)', bg: '#fffbeb', surface: '#ffffff', border: '#fde68a', light: true },\n { id: 'anbu-shadow', name: 'Anbu Platinum Light', description: 'Cool steel-grey operative tone', color: '#475569', accent: '#64748b', gradient: ['#334155', '#475569', '#64748b', '#94a3b8'], glow: 'rgba(71,85,105,0.12)', bg: '#f8fafc', surface: '#ffffff', border: '#cbd5e1', light: true },\n { id: 'sage-mode', name: 'Sage Coral Light', description: 'Natural orange toad-sage warmth', color: '#ea580c', accent: '#f97316', gradient: ['#c2410c', '#ea580c', '#f97316', '#fb923c'], glow: 'rgba(234,88,12,0.12)', bg: '#fff7ed', surface: '#ffffff', border: '#fed7aa', light: true },\n { id: 'sound-village', name: 'Sound Orchid Light', description: 'Orchid purple with sonic depth', color: '#9333ea', accent: '#a855f7', gradient: ['#7e22ce', '#9333ea', '#a855f7', '#c084fc'], glow: 'rgba(147,51,234,0.12)', bg: '#faf5ff', surface: '#ffffff', border: '#e9d5ff', light: true },\n { id: 'akatsuki', name: 'Akatsuki Dusk Plum Light', description: 'Mysterious plum dusk with rogue ninja cloak aura', color: '#86198f', accent: '#c026d3', gradient: ['#581c87', '#701a75', '#86198f', '#c026d3'], glow: 'rgba(134,25,143,0.12)', bg: '#fdf4ff', surface: '#ffffff', border: '#f5d0fe', light: true }\n];\n\nexport function createThemeState() {\n let currentTheme = $state('chidori');\n let isModalOpen = $state(false);\n\n function applyTheme(themeId) {\n currentTheme = themeId;\n const found = THEMES.find(t => t.id === themeId) || THEMES[0];\n if (typeof document !== 'undefined') {\n document.documentElement.setAttribute('data-theme', themeId);\n document.documentElement.style.setProperty('--color-primary', found.color);\n document.documentElement.style.setProperty('--color-accent', found.accent);\n document.documentElement.style.setProperty('--color-primary-glow', found.glow);\n document.documentElement.style.setProperty('--color-bg', found.bg);\n document.documentElement.style.setProperty('--color-surface', found.surface);\n document.documentElement.style.setProperty('--color-border', found.border);\n document.documentElement.classList.add('theme-light');\n document.documentElement.classList.remove('theme-dark');\n document.documentElement.style.setProperty('--color-text', '#0f172a');\n document.documentElement.style.setProperty('--color-text-muted', '#334155');\n document.documentElement.style.setProperty('--color-card-bg', '#ffffff');\n document.documentElement.style.setProperty('--color-card-border', found.border);\n if (found.gradient && found.gradient.length >= 4) {\n document.documentElement.style.setProperty('--theme-grad-1', found.gradient[0]);\n document.documentElement.style.setProperty('--theme-grad-2', found.gradient[1]);\n document.documentElement.style.setProperty('--theme-grad-3', found.gradient[2]);\n document.documentElement.style.setProperty('--theme-grad-4', found.gradient[3]);\n document.documentElement.style.setProperty('--theme-4gradient', `linear-gradient(135deg, ${found.gradient[0]} 0%, ${found.gradient[1]} 33%, ${found.gradient[2]} 66%, ${found.gradient[3]} 100%)`);\n document.documentElement.style.setProperty('--theme-4gradient-bar', `linear-gradient(90deg, ${found.gradient[0]}, ${found.gradient[1]}, ${found.gradient[2]}, ${found.gradient[3]})`);\n document.documentElement.style.setProperty('--theme-4gradient-subtle', `linear-gradient(135deg, ${found.gradient[0]}22 0%, ${found.gradient[1]}22 33%, ${found.gradient[2]}22 66%, ${found.gradient[3]}22 100%)`);\n }\n try {\n localStorage.setItem('konoha-theme', themeId);\n } catch (_) {\n // Ignore localStorage errors in SSR or restricted environments\n }\n }\n }\n\n function init() {\n if (typeof window !== 'undefined') {\n let saved = 'chidori';\n try {\n saved = localStorage.getItem('konoha-theme') || 'chidori';\n } catch (_) {\n // Fallback to default theme if storage is unavailable\n }\n applyTheme(saved);\n }\n }\n\n return {\n get currentTheme() { return currentTheme; },\n get isModalOpen() { return isModalOpen; },\n set isModalOpen(val) { isModalOpen = val; },\n applyTheme,\n init,\n themes: THEMES\n };\n}\n\nexport const themeState = createThemeState();\n","<script>\n import { themeState, THEMES } from '../lib/state/themeState.svelte.js';\n import { useScrollLock } from '#lib/scrollLock.svelte.js';\n\n let isModalOpen = $state(false);\n\n useScrollLock(() => isModalOpen);\n\n function selectTheme(id) {\n themeState.applyTheme(id);\n isModalOpen = false;\n }\n\n function toggleModal() {\n isModalOpen = !isModalOpen;\n }\n\n function handleModalKeydown(e) {\n if (e.key === 'Escape' && isModalOpen) isModalOpen = false;\n }\n</script>\n\n<svelte:window onkeydown={handleModalKeydown} />\n\n<!-- Floating Bottom-Left Theme Switcher Button (FAB) -->\n<div class=\"fixed bottom-20 left-5 lg:bottom-6 lg:left-6 z-50\">\n <button\n type=\"button\"\n onclick={toggleModal}\n class=\"w-11 h-11 rounded-full border shadow-2xl flex items-center justify-center transition-all duration-200 hover:scale-110 active:scale-95 cursor-pointer group\"\n style=\"background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text); box-shadow: var(--shadow-3d);\"\n title=\"Switch Theme ({themeState.currentTheme.replace('-', ' ')})\"\n aria-label=\"Toggle Theme Selection Modal\"\n >\n <span\n class=\"w-4.5 h-4.5 rounded-full shadow-md transition-transform duration-200 group-hover:scale-110\"\n style=\"background: linear-gradient(135deg, var(--color-primary, #7c3aed), var(--color-accent, #6366f1));\"\n ></span>\n </button>\n</div>\n\n<!-- Shared Full Popup Modal (Fixed Center Overlay for Both Desktop & Mobile) -->\n{#if isModalOpen}\n <!-- svelte-ignore a11y_click_events_have_key_events -->\n <!-- svelte-ignore a11y_no_static_element_interactions -->\n <div\n class=\"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/35 backdrop-blur-sm animate-in fade-in duration-150\"\n onclick={() => isModalOpen = false}\n >\n <!-- Centered Modal Popup Dialog -->\n <div\n class=\"modal-card w-full max-w-lg p-6 rounded-[5px] border shadow-2xl space-y-4 animate-in zoom-in-95 duration-150 glass-frost-strong\"\n style=\"background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text); box-shadow: var(--shadow-3d);\"\n onclick={(e) => e.stopPropagation()}\n >\n <!-- Header -->\n <div class=\"flex items-center justify-between pb-3 border-b\" style=\"border-color: var(--color-border);\">\n <div class=\"flex items-center gap-2.5\">\n <div class=\"w-8 h-8 rounded-[5px] flex items-center justify-center border\" style=\"background: var(--theme-4gradient, linear-gradient(135deg, var(--color-primary), var(--color-accent))); border-color: var(--color-primary); color: #ffffff;\">\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01\" />\n </svg>\n </div>\n <div>\n <h3 class=\"text-sm font-bold tracking-tight\" style=\"color: var(--color-text);\">Konoha 4-Gradient Theme Palette</h3>\n <p class=\"text-[11px]\" style=\"color: var(--color-text-muted);\">10 Light-Mode calibrated palettes with 4-stop vibrant gradients</p>\n </div>\n </div>\n <button\n type=\"button\"\n onclick={() => isModalOpen = false}\n class=\"w-7 h-7 rounded-[5px] flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105\"\n style=\"background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);\"\n >\n ✕\n </button>\n </div>\n\n <!-- 10 Themes Grid (2 Columns) -->\n <div class=\"grid grid-cols-1 sm:grid-cols-2 gap-2.5 max-h-[60vh] overflow-y-auto pr-1\">\n {#each THEMES as t}\n {@const isCurrent = themeState.currentTheme === t.id}\n {@const gradBg = t.gradient ? `linear-gradient(135deg, ${t.gradient[0]} 0%, ${t.gradient[1]} 33%, ${t.gradient[2]} 66%, ${t.gradient[3]} 100%)` : `linear-gradient(135deg, ${t.color}, ${t.accent})`}\n <button\n type=\"button\"\n class=\"w-full flex items-center gap-3 p-3 rounded-[5px] border text-left transition-all duration-150 hover:scale-[1.02] cursor-pointer\"\n style=\"{isCurrent\n ? 'border-color: var(--color-primary); background-color: var(--color-primary-glow); box-shadow: 0 0 0 1.5px var(--color-primary);'\n : 'border-color: var(--color-border); background-color: var(--color-surface);'}\"\n onclick={() => selectTheme(t.id)}\n >\n <div class=\"relative shrink-0\">\n <span class=\"w-8 h-8 rounded-[5px] flex items-center justify-center shadow-md border border-black/10\" style=\"background: {gradBg};\">\n {#if isCurrent}\n <span class=\"w-2.5 h-2.5 rounded-full bg-white shadow-sm ring-1 ring-black/20\"></span>\n {/if}\n </span>\n </div>\n <div class=\"flex flex-col min-w-0 flex-1\">\n <div class=\"flex items-center justify-between gap-1\">\n <span class=\"text-xs font-black truncate\" style=\"color: var(--color-text);\">{t.name}</span>\n {#if isCurrent}\n <span class=\"text-[10px] font-bold px-1.5 py-0.5 rounded-[5px] border text-sky-700 dark:text-sky-300 border-sky-500/30 bg-sky-500/10 shrink-0\">Active</span>\n {/if}\n </div>\n <span class=\"text-[10px] truncate\" style=\"color: var(--color-text-muted);\">{t.description}</span>\n {#if t.gradient}\n <div class=\"flex items-center gap-1 pt-1.5\">\n {#each t.gradient as colorHex}\n <span class=\"w-2.5 h-2 rounded-[2px] shadow-xs\" style=\"background-color: {colorHex};\"></span>\n {/each}\n </div>\n {/if}\n </div>\n </button>\n {/each}\n </div>\n </div>\n </div>\n{/if}\n","<script>\n import { sweetAlert } from \"#lib/sweetAlert.svelte.js\";\n import { useScrollLock } from \"#lib/scrollLock.svelte.js\";\n\n useScrollLock(() => sweetAlert.isOpen);\n</script>\n\n<svelte:window onkeydown={(e) => { if (e.key === 'Escape' && sweetAlert.isOpen) sweetAlert.handleCancel(); }} />\n\n{#if sweetAlert.isOpen}\n <!-- svelte-ignore a11y_click_events_have_key_events -->\n <!-- svelte-ignore a11y_no_static_element_interactions -->\n <div\n class=\"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-slate-900/40 backdrop-blur-md animate-in fade-in duration-200\"\n onclick={(e) => { if (e.target === e.currentTarget) sweetAlert.handleCancel(); }}\n >\n <!-- 3D Perspective Modal Card -->\n <div\n class=\"modal-card relative w-full max-w-lg rounded-[5px] p-6 sm:p-8 border shadow-2xl transition-all duration-300 transform scale-100 overflow-hidden\"\n style=\"background: var(--glass-card); border-color: var(--color-border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);\"\n role=\"alertdialog\"\n aria-modal=\"true\"\n >\n <button\n type=\"button\"\n onclick={sweetAlert.handleCancel}\n class=\"absolute top-3 right-3 p-1.5 rounded-full text-slate-400 hover:text-slate-700 hover:bg-slate-100 transition-colors cursor-pointer z-10\"\n aria-label=\"Close dialog\"\n >\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </button>\n\n <!-- 3D Animated Icon Header -->\n <div class=\"flex justify-center mb-5\">\n {#if sweetAlert.icon === \"success\"}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-emerald-200 bg-emerald-50 text-emerald-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M5 13l4 4L19 7\" />\n </svg>\n </div>\n {:else if sweetAlert.icon === \"error\"}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-rose-200 bg-rose-50 text-rose-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </div>\n {:else if sweetAlert.icon === \"warning\"}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-amber-200 bg-amber-50 text-amber-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z\" />\n </svg>\n </div>\n {:else}\n <div class=\"w-16 h-16 rounded-[5px] flex items-center justify-center shadow-xl border border-sky-200 bg-sky-50 text-sky-600 transition-transform duration-300 hover:scale-105\">\n <svg class=\"w-9 h-9\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z\" />\n </svg>\n </div>\n {/if}\n </div>\n\n <!-- Content Area with High Contrast Typography -->\n <div class=\"text-center space-y-3 mb-6 w-full max-w-full overflow-hidden px-1\">\n <h3 class=\"text-xl font-extrabold text-slate-900 tracking-tight break-words [overflow-wrap:anywhere]\">\n {sweetAlert.title}\n </h3>\n {#if sweetAlert.text}\n <div class=\"text-sm font-medium text-slate-700 leading-relaxed max-w-full mx-auto space-y-2.5\">\n {#each sweetAlert.text.split('\\n') as line}\n {#if line.trim().startsWith('/') || line.trim().startsWith('C:\\\\') || line.trim().startsWith('~')}\n <div class=\"font-mono text-xs p-2.5 rounded-[5px] bg-slate-900/5 text-slate-800 border border-slate-200/80 break-all select-all text-left shadow-inner max-h-32 overflow-y-auto\">\n {line.trim()}\n </div>\n {:else if line.trim()}\n <p class=\"break-words [overflow-wrap:anywhere] whitespace-pre-line\">\n {line}\n </p>\n {/if}\n {/each}\n </div>\n {/if}\n </div>\n\n <!-- 3D Actions with Tactile Depth -->\n <div class=\"flex items-center justify-center gap-3\">\n {#if sweetAlert.showCancel}\n <button\n type=\"button\"\n onclick={sweetAlert.handleCancel}\n class=\"btn-3d px-5 py-2.5 rounded-[5px] text-xs font-bold text-slate-700 bg-slate-100 hover:bg-slate-200 border border-slate-300 transition-all cursor-pointer\"\n >\n {sweetAlert.cancelText}\n </button>\n {/if}\n <button\n type=\"button\"\n onclick={sweetAlert.handleConfirm}\n class=\"btn-3d px-6 py-2.5 rounded-[5px] text-xs font-bold text-white transition-all cursor-pointer shadow-lg\"\n style=\"background-color: var(--color-primary, #7c3aed);\"\n >\n {sweetAlert.confirmText}\n </button>\n </div>\n </div>\n </div>\n{/if}\n","<script>\n import '../app.css';\n import { page } from '$app/state';\n import { onMount } from 'svelte';\n import { apiRequest, initToken } from '#lib/api.js';\n import { uiState } from '#lib/state/uiState.svelte.js';\n import { themeState } from '#lib/state/themeState.svelte.js';\n import ThemeSwitcher from '../components/ThemeSwitcher.svelte';\n import SweetAlertModal from '../components/SweetAlertModal.svelte';\n\n let { children } = $props();\n\n let health = $state({ status: 'checking', port: 1404, version: '2.1.0' });\n\n const navSections = [\n {\n title: 'Overview',\n items: [\n { id: 'dashboard', path: '/dashboard', label: 'Dashboard', iconSvg: 'M3 3v7h7M21 21v-7h-7M3 10a9 9 0 0115-5.7L21 8M21 14a9 9 0 01-15 5.7L3 16' }\n ]\n },\n {\n title: 'Clients & Finance',\n items: [\n { id: 'clients', path: '/clients', label: 'Clients', iconSvg: 'M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z' },\n { id: 'savings', path: '/savings', label: 'Savings', iconSvg: 'M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z' },\n { id: 'bridges', path: '/bridges', label: 'Bridges', iconSvg: 'M8 9l4-4 4 4m0 6l-4 4-4-4' }\n ]\n },\n {\n title: 'Tools & Integrations',\n items: [\n { id: 'search', path: '/search', label: 'Web Search', iconSvg: 'M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z', badge: 'SearXNG' },\n { id: 'semble', path: '/semble', label: 'Semble MCP', iconSvg: 'M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4', badge: '98%' },\n { id: 'detector', path: '/detector', label: 'AI Detector', iconSvg: 'M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c.5.633 1.2 1 2 1s1.5-.367 2-1m2-3a2 2 0 100-4 2 2 0 000 4z', badge: 'Web & Docs' }\n ]\n },\n {\n title: 'Configuration',\n items: [\n { id: 'persona', path: '/persona', label: 'Persona', iconSvg: 'M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z' },\n { id: 'context', path: '/context', label: 'Context', iconSvg: 'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10' },\n { id: 'agents', path: '/agents', label: 'Agents', iconSvg: 'M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z' },\n { id: 'skills', path: '/skills', label: 'Skills', iconSvg: 'M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253' }\n ]\n },\n {\n title: 'Operations',\n items: [\n { id: 'tasks', path: '/tasks', label: 'SDLC Tasks', iconSvg: 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4' },\n { id: 'doctor', path: '/doctor', label: 'Doctor', iconSvg: 'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z' }\n ]\n },\n {\n title: 'Resources',\n items: [\n { id: 'docs', path: '/docs', label: 'Documentation', iconSvg: 'M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253' }\n ]\n }\n ];\n\n const allNavItems = navSections.flatMap(s => s.items);\n\n let isSidebarOpen = $state(true);\n let openSections = $state(new Set(navSections.map(s => s.title)));\n\n function toggleSection(title) {\n if (openSections.has(title)) {\n openSections.delete(title);\n } else {\n openSections.add(title);\n }\n openSections = new Set(openSections);\n }\n\n function toggleSidebar() {\n isSidebarOpen = !isSidebarOpen;\n }\n\n $effect(() => {\n const activeSection = navSections.find(s =>\n s.items.some(it => page.url.pathname === it.path || (it.path === '/dashboard' && page.url.pathname === '/'))\n );\n if (activeSection && !openSections.has(activeSection.title)) {\n openSections.add(activeSection.title);\n openSections = new Set(openSections);\n }\n });\n\n async function checkHealth() {\n try {\n const data = await apiRequest('/api/v1/health');\n health = data;\n uiState.isConnected = true;\n } catch (_) {\n uiState.isConnected = false;\n }\n }\n\n onMount(() => {\n themeState.init();\n initToken();\n checkHealth();\n const interval = setInterval(checkHealth, 10000);\n\n let eventSource;\n try {\n eventSource = new EventSource('/api/v1/events');\n eventSource.onopen = () => { uiState.isConnected = true; };\n eventSource.onerror = () => { uiState.isConnected = false; };\n eventSource.addEventListener('bridge_status', (e) => {\n try {\n const payload = JSON.parse(e.data);\n uiState.addNotification(`Bridge ${payload.name || ''} updated`, 'info');\n } catch (_) {}\n });\n } catch (_) {}\n\n return () => {\n clearInterval(interval);\n if (eventSource) eventSource.close();\n };\n });\n</script>\n\n<div class=\"flex h-screen overflow-hidden font-sans transition-colors duration-200\" style=\"background-color: var(--color-bg); color: var(--color-text);\">\n <!-- Desktop Fixed Left Sidebar (Collapsible for Maximum Center Space) -->\n <aside\n class=\"glass-frost hidden lg:flex border-r flex-col shrink-0 transition-all duration-300 ease-in-out overflow-hidden {isSidebarOpen ? 'w-64' : 'w-0 border-r-0 opacity-0 pointer-events-none'}\"\n style=\"background: var(--glass-sidebar), var(--glass-tint); border-color: var(--color-border); color: var(--color-text);\"\n >\n <div class=\"flex-1 overflow-y-auto scrollbar-thin w-64\">\n <!-- Brand Header (Far-Left Logo + Sidebar Collapse Button) -->\n <div class=\"p-4 border-b flex items-center justify-between sticky top-0 z-10 glass-frost\" style=\"border-color: var(--color-border); background: var(--glass-sidebar), var(--glass-tint);\">\n <div class=\"flex items-center gap-3 min-w-0\">\n <div class=\"w-9 h-9 rounded-[5px] overflow-hidden flex items-center justify-center shadow-md border bg-white shrink-0\" style=\"border-color: var(--color-primary);\">\n <img src=\"/fox_kyubi_192.png\" alt=\"Konoha Kyubi logo\" class=\"w-full h-full object-cover\" width=\"36\" height=\"36\" loading=\"eager\" />\n </div>\n <div class=\"min-w-0\">\n <h1 class=\"text-sm font-extrabold tracking-tight flex items-center gap-1.5\" style=\"color: var(--color-text);\">\n Konoha <span class=\"text-[9px] px-1.5 py-0.5 rounded-[5px] font-mono border\" style=\"color: var(--color-primary); background-color: var(--color-primary-glow); border-color: var(--color-primary);\">v{health.version || '2.0.0'}</span>\n </h1>\n <p class=\"text-[10px] font-medium truncate\" style=\"color: var(--color-text-muted);\">Ninja Agent Village</p>\n </div>\n </div>\n <button\n type=\"button\"\n onclick={toggleSidebar}\n class=\"w-7 h-7 rounded-[5px] border flex items-center justify-center text-xs transition-colors hover:bg-slate-200/50 dark:hover:bg-slate-800/50 cursor-pointer shrink-0\"\n style=\"border-color: var(--color-border); color: var(--color-text-muted);\"\n title=\"Collapse sidebar to give more space in center\"\n aria-label=\"Collapse sidebar\"\n >\n <svg class=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M11 19l-7-7 7-7m8 14l-7-7 7-7\" />\n </svg>\n </button>\n </div>\n\n <!-- Grouped Navigation with Clickable Sub-menu Accordions -->\n <nav class=\"p-2 space-y-1.5\">\n {#each navSections as section}\n {@const isExpanded = openSections.has(section.title)}\n {@const hasActiveChild = section.items.some(it => page.url.pathname === it.path || (it.path === '/dashboard' && page.url.pathname === '/'))}\n <div class=\"rounded-[5px] overflow-hidden border border-transparent transition-colors {hasActiveChild ? 'bg-sky-500/5 dark:bg-sky-500/10 border-sky-500/20' : ''}\">\n <button\n type=\"button\"\n onclick={() => toggleSection(section.title)}\n class=\"w-full flex items-center justify-between px-3 py-1.5 text-[11px] font-bold uppercase tracking-wider select-none hover:bg-black/5 dark:hover:bg-white/5 rounded-[5px] transition-colors cursor-pointer\"\n style=\"color: {hasActiveChild ? 'var(--color-primary)' : 'var(--color-text-muted)'};\"\n aria-expanded={isExpanded}\n >\n <div class=\"flex items-center gap-1.5\">\n <span class=\"w-1.5 h-1.5 rounded-full {hasActiveChild ? 'bg-sky-500' : 'bg-slate-400/40'}\"></span>\n <span>{section.title}</span>\n </div>\n <svg class=\"w-3.5 h-3.5 transition-transform duration-200 {isExpanded ? 'rotate-90' : 'rotate-0'}\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 5l7 7-7 7\" />\n </svg>\n </button>\n\n {#if isExpanded}\n <div class=\"space-y-0.5 pt-0.5 pb-1 pl-1 transition-all duration-200\">\n {#each section.items as item}\n {@const isActive = page.url.pathname === item.path || (item.path === '/dashboard' && page.url.pathname === '/')}\n <a\n href={item.path}\n class=\"nav-depth flex items-center justify-between px-2.5 py-1.5 rounded-[5px] text-xs font-semibold transition-all duration-150\"\n style=\"{isActive ? 'color: var(--color-primary); background-color: var(--color-primary-glow); border: 1.5px solid var(--color-primary); box-shadow: 0 0 12px var(--color-primary-glow);' : 'color: var(--color-text-muted);'}\"\n >\n <div class=\"flex items-center gap-2 min-w-0\">\n <svg class=\"w-3.5 h-3.5 shrink-0\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d={item.iconSvg} />\n </svg>\n <span class=\"truncate\">{item.label}</span>\n </div>\n {#if item.badge}\n <span class=\"px-1.5 py-0.5 rounded-[5px] text-[9px] font-mono bg-emerald-500/20 text-emerald-600 dark:text-emerald-400 border border-emerald-500/30 shrink-0\">{item.badge}</span>\n {/if}\n </a>\n {/each}\n </div>\n {/if}\n </div>\n {/each}\n </nav>\n </div>\n\n <!-- System Status Footer: Live MCP Gateway -->\n <div class=\"p-4 border-t shrink-0 transition-colors duration-200 w-64\" style=\"border-color: var(--color-border); background-color: var(--color-bg);\">\n <div class=\"flex items-center justify-between text-xs mb-2\" style=\"color: var(--color-text-muted);\">\n <span class=\"flex items-center gap-2\">\n <span class=\"w-2 h-2 rounded-full {uiState.isConnected ? 'bg-emerald-400 shadow-[0_0_8px_rgba(52,211,153,0.8)]' : 'bg-rose-500'}\"></span>\n <span class=\"text-xs font-medium\">{uiState.isConnected ? 'Live MCP Gateway' : 'Disconnected'}</span>\n </span>\n <span class=\"font-mono text-[11px]\" style=\"color: var(--color-text-muted);\">:{health.port || 1404}</span>\n </div>\n <div class=\"text-[10px] flex justify-between pt-1\" style=\"color: var(--color-text-muted);\">\n <span>SQLite FTS5 + Semble</span>\n <span>Localhost</span>\n </div>\n </div>\n </aside>\n\n <!-- Main Content Stage (Expands to Full Width When Sidebar is Collapsed) -->\n <main class=\"flex-1 flex flex-col overflow-hidden pb-16 lg:pb-0 transition-all duration-300 ease-in-out\" style=\"background-color: var(--color-bg); color: var(--color-text);\">\n <!-- Top 4-Gradient Vibrant Accent Stripe -->\n <div class=\"h-1 w-full shrink-0\" style=\"background: var(--theme-4gradient-bar);\"></div>\n\n <!-- Top Header: Brand Logo on Far LEFT + Sidebar Toggle (Mandatory Invariant) -->\n <header class=\"glass-frost h-14 border-b px-4 lg:px-6 flex items-center justify-between shrink-0 transition-colors duration-200\" style=\"background: var(--glass-header), var(--glass-tint); border-color: var(--color-border);\">\n <!-- Far-Left Logo & Title + Sidebar Open/Close Toggle Button -->\n <div class=\"flex items-center gap-3\">\n <!-- Desktop Sidebar Toggle Button -->\n <button\n type=\"button\"\n onclick={toggleSidebar}\n class=\"hidden lg:flex w-8 h-8 rounded-[5px] border items-center justify-center text-xs transition-all hover:scale-105 cursor-pointer shrink-0\"\n style=\"border-color: var(--color-border); background-color: var(--color-surface); color: var(--color-text);\"\n title={isSidebarOpen ? \"Close sidebar to give more space in center\" : \"Open sidebar\"}\n aria-label=\"Toggle sidebar\"\n >\n <svg class=\"w-4 h-4 transition-transform duration-200 {isSidebarOpen ? '' : 'rotate-180'}\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 6h16M4 12h16M4 18h7\" />\n </svg>\n </button>\n\n <div class=\"lg:hidden flex items-center gap-2\">\n <img src=\"/fox_kyubi_64.png\" alt=\"Konoha\" class=\"w-7 h-7 rounded-[5px] border object-cover bg-white\" style=\"border-color: var(--color-primary);\" width=\"28\" height=\"28\" loading=\"eager\" />\n <span class=\"text-sm font-bold tracking-tight\" style=\"color: var(--color-text);\">Konoha</span>\n </div>\n <div class=\"hidden sm:flex items-center gap-2 text-xs\">\n <span class=\"uppercase tracking-widest text-[10px] font-bold\" style=\"color: var(--color-text-muted);\">Dashboard</span>\n <span style=\"color: var(--color-border);\">/</span>\n <span class=\"font-semibold capitalize\" style=\"color: var(--color-primary);\">{page.url.pathname.replace('/', '') || 'dashboard'}</span>\n </div>\n </div>\n\n <!-- Action Buttons & Status -->\n <div class=\"flex items-center gap-3\">\n <div class=\"hidden sm:flex items-center gap-2 px-3 py-1 rounded-[5px] border text-[11px] font-mono\" style=\"background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text);\">\n <span class=\"w-1.5 h-1.5 rounded-full bg-emerald-400\"></span>\n <span>127.0.0.1:{health.port || 1404}</span>\n </div>\n <span class=\"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-[5px] text-[11px] font-semibold bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20\">\n SSE Active\n </span>\n </div>\n </header>\n\n <!-- Page Body (extra bottom padding clears the mobile dock + theme FAB) -->\n <div class=\"flex-1 overflow-y-auto p-6 pb-28 lg:p-8 lg:pb-8 transition-colors duration-200\" style=\"background-color: var(--color-bg);\">\n {@render children()}\n </div>\n </main>\n\n <!-- Mobile Navigation Dock (Mandatory Invariant — Zero Hamburger Menu in Header) -->\n <nav class=\"glass-frost lg:hidden fixed bottom-0 inset-x-0 z-40 border-t flex flex-nowrap items-center gap-1 overflow-x-auto scrollbar-none py-2 px-2 shadow-2xl transition-colors duration-200\" style=\"background: var(--glass-dock), var(--glass-tint); border-color: var(--color-border); padding-bottom: max(0.5rem, env(safe-area-inset-bottom));\">\n {#each allNavItems as item}\n {@const isActive = page.url.pathname === item.path || (item.path === '/dashboard' && page.url.pathname === '/')}\n <a\n href={item.path}\n class=\"nav-depth flex flex-col items-center gap-1 py-1 px-2.5 rounded-[5px] text-[10px] font-semibold transition-all shrink-0\"\n style=\"{isActive ? 'color: var(--color-primary); background-color: var(--color-primary-glow);' : 'color: var(--color-text-muted);'}\"\n >\n <svg class=\"w-4 h-4 shrink-0\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d={item.iconSvg} />\n </svg>\n <span class=\"whitespace-nowrap\">{item.label}</span>\n </a>\n {/each}\n </nav>\n\n <!-- Floating Theme Switcher Button -->\n <ThemeSwitcher />\n\n <!-- Global 3D SweetAlert Modal -->\n <SweetAlertModal />\n\n <!-- Global Notification Toasts (lifted above the mobile dock on small screens) -->\n {#if uiState.notifications.length > 0}\n <div class=\"fixed bottom-20 right-5 z-[90] lg:bottom-6 lg:right-6 space-y-2 max-w-[calc(100vw-2.5rem)]\">\n {#each uiState.notifications as n (n.id)}\n <div class=\"px-4 py-3 rounded-[5px] text-xs font-semibold shadow-2xl border backdrop-blur-2xl bg-slate-900/95 text-white border-sky-500/50 flex items-center gap-2\">\n <span class=\"w-2 h-2 rounded-full bg-sky-400 animate-ping\"></span>\n <span>{n.text}</span>\n </div>\n {/each}\n </div>\n {/if}\n</div>\n"],"mappings":";;;;;;;;AAGA,IAAa,SAAS;CACpB;EAAE,IAAI;EAAW,MAAM;EAAuB,aAAa;EAAqD,OAAO;EAAW,QAAQ;EAAW,UAAU;GAAC;GAAW;GAAW;GAAW;EAAS;EAAG,MAAM;EAAwB,IAAI;EAAW,SAAS;EAAW,QAAQ;EAAW,OAAO;CAAM;CAC9S;EAAE,IAAI;EAAY,MAAM;EAAuB,aAAa;EAAkC,OAAO;EAAW,QAAQ;EAAW,UAAU;GAAC;GAAW;GAAW;GAAW;EAAS;EAAG,MAAM;EAAyB,IAAI;EAAW,SAAS;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