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.
Files changed (100) hide show
  1. package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/SKILL.md +97 -135
  2. package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/api-reference.md +30 -47
  3. package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/standards.md +7 -6
  4. package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/scripts/agent.py +65 -57
  5. package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/agent.py +36 -17
  6. package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/process.py +25 -13
  7. package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-adcs-with-certipy/scripts/agent.py +35 -19
  8. package/.agents/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-constrained-delegation-abuse/scripts/agent.py +30 -8
  9. package/.agents/skills.fingerprint +1 -1
  10. package/README.md +4 -4
  11. package/apps/web/build/adapter-node.js +1 -1
  12. package/apps/web/build/client/_app/immutable/entry/{app.DwlgEXmV.js → app.DLayTcYu.js} +2 -2
  13. package/apps/web/build/client/_app/immutable/entry/app.DLayTcYu.js.br +0 -0
  14. package/apps/web/build/client/_app/immutable/entry/app.DLayTcYu.js.gz +0 -0
  15. package/apps/web/build/client/_app/immutable/nodes/{9.CVBlvZqX.js → 9.CGMmeMVC.js} +1 -1
  16. package/apps/web/build/client/_app/immutable/nodes/9.CGMmeMVC.js.br +0 -0
  17. package/apps/web/build/client/_app/immutable/nodes/9.CGMmeMVC.js.gz +0 -0
  18. package/apps/web/build/client/_app/version.json +1 -1
  19. package/apps/web/build/client/_app/version.json.br +0 -0
  20. package/apps/web/build/client/_app/version.json.gz +0 -0
  21. package/apps/web/build/server/.vite/manifest.json +15 -15
  22. package/apps/web/build/server/adapter-index.js +1 -1
  23. package/apps/web/build/server/adapter-index.js.map +1 -1
  24. package/apps/web/build/server/adapter-node-env.js +1 -1
  25. package/apps/web/build/server/adapter-node-env.js.map +1 -1
  26. package/apps/web/build/server/adapter-node-handler.js +4 -4
  27. package/apps/web/build/server/adapter-node-handler.js.map +1 -1
  28. package/apps/web/build/server/chunks/exports.js +9 -9
  29. package/apps/web/build/server/chunks/exports.js.map +1 -1
  30. package/apps/web/build/server/chunks/functions.js +1 -1
  31. package/apps/web/build/server/chunks/functions.js.map +1 -1
  32. package/apps/web/build/server/chunks/instance.js +33 -33
  33. package/apps/web/build/server/chunks/instance.js.map +1 -1
  34. package/apps/web/build/server/chunks/internal.js +19 -19
  35. package/apps/web/build/server/chunks/internal.js.map +1 -1
  36. package/apps/web/build/server/chunks/server-errors.js +2 -2
  37. package/apps/web/build/server/chunks/server-errors.js.map +1 -1
  38. package/apps/web/build/server/chunks/server.js.map +1 -1
  39. package/apps/web/build/server/chunks/shared.js +1 -1
  40. package/apps/web/build/server/chunks/shared.js.map +1 -1
  41. package/apps/web/build/server/chunks/state.js +1 -1
  42. package/apps/web/build/server/chunks/state.js.map +1 -1
  43. package/apps/web/build/server/chunks/sweetAlert.svelte.js.map +1 -1
  44. package/apps/web/build/server/chunks/uiState.svelte.js.map +1 -1
  45. package/apps/web/build/server/entries/fallbacks/error.svelte.js +1 -1
  46. package/apps/web/build/server/entries/fallbacks/error.svelte.js.map +1 -1
  47. package/apps/web/build/server/entries/pages/_layout.svelte.js.map +1 -1
  48. package/apps/web/build/server/entries/pages/bridges/_page.svelte.js.map +1 -1
  49. package/apps/web/build/server/entries/pages/clients/_page.svelte.js.map +1 -1
  50. package/apps/web/build/server/entries/pages/detector/_page.svelte.js.map +1 -1
  51. package/apps/web/build/server/entries/pages/docs/_page.svelte.js +1 -1
  52. package/apps/web/build/server/entries/pages/docs/_page.svelte.js.map +1 -1
  53. package/apps/web/build/server/entries/pages/persona/_page.svelte.js.map +1 -1
  54. package/apps/web/build/server/entries/pages/search/_page.svelte.js.map +1 -1
  55. package/apps/web/build/server/entries/pages/semble/_page.svelte.js.map +1 -1
  56. package/apps/web/build/server/entries/pages/skills/_page.svelte.js.map +1 -1
  57. package/apps/web/build/server/entries/pages/tasks/_page.svelte.js.map +1 -1
  58. package/apps/web/build/server/index.js +1 -1
  59. package/apps/web/build/server/index.js.map +1 -1
  60. package/apps/web/build/server/manifest-full.js +1 -1
  61. package/apps/web/build/server/manifest.js +1 -1
  62. package/apps/web/build/server/nodes/9.js +1 -1
  63. package/apps/web/build/server/remote-entry.js +7 -7
  64. package/apps/web/build/server/remote-entry.js.map +1 -1
  65. package/apps/web/build/server/server.js +1 -1
  66. package/apps/web/package.json +2 -2
  67. package/bin/cli.js +6 -6
  68. package/bin/lib/ui_commands.js +4 -3
  69. package/docs/SecurityCompliance/qa_report_2.1.5_2026-10-07.md +65 -0
  70. package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.5_2026-10-07.md +74 -0
  71. package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.6_2026-10-07.md +78 -0
  72. package/docs/SecurityCompliance/socket_baseline_2026-10-07.md +60 -0
  73. package/docs/SecurityCompliance/socket_burndown_2.1.5_2026-10-07.md +73 -0
  74. package/docs/SecurityCompliance/socket_report_2.1.5_2026-10-07.md +54 -0
  75. package/docs/architecture/TOKEN-BASELINE.md +1 -1
  76. package/package.json +3 -17
  77. package/src/antigravity_manager.js +81 -15
  78. package/src/db.js +2 -2
  79. package/src/db_agents.js +1 -1
  80. package/src/db_bridges.js +1 -1
  81. package/src/db_savings.js +1 -1
  82. package/src/db_stats.js +1 -1
  83. package/src/deploy_utils.js +4 -5
  84. package/src/doctor.js +10 -0
  85. package/src/migrate.js +1 -1
  86. package/src/persona_memory.js +1 -1
  87. package/src/sqlite_driver.js +211 -0
  88. package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/SKILL.md +97 -135
  89. package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/api-reference.md +30 -47
  90. package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/references/standards.md +7 -6
  91. package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/abusing-shadow-credentials-for-privesc/scripts/agent.py +65 -57
  92. package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/agent.py +36 -17
  93. package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-active-directory-certificate-services-esc1/scripts/process.py +25 -13
  94. package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-adcs-with-certipy/scripts/agent.py +35 -19
  95. package/src/templates/skills/anbu-skill/references/anthropic-cybersecurity-skills-assets/skills/exploiting-constrained-delegation-abuse/scripts/agent.py +30 -8
  96. package/src/vector_search.js +1 -1
  97. package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js.br +0 -0
  98. package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js.gz +0 -0
  99. package/apps/web/build/client/_app/immutable/nodes/9.CVBlvZqX.js.br +0 -0
  100. package/apps/web/build/client/_app/immutable/nodes/9.CVBlvZqX.js.gz +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"exports.js","names":["e.url_hash_unavailable","server_errors.url_search_unavailable_prerender"],"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/shared.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/constants.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/exports/internal/server/event.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/exports/internal/server/index.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/shared-errors.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/utils/url.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/exports/url.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/shared-warnings.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/exports/index.js"],"sourcesContent":["/**\n * Whether shared errors include their full text on the server even though `DEV` is false. This is\n * enabled while the app is being built (analysed or prerendered)\n */\nexport let verbose = false;\n\nexport function enable_verbose_errors() {\n\tverbose = true;\n}\n\n/**\n * @typedef {{ element?: Element }} ClientWarningOptions\n * - `element`: logged after the warning, so that it can be inspected in the browser's devtools\n */\n\n/** `console.warn` styles for the code and text of shared runtime warnings, as in Svelte */\nexport const bold = 'font-weight: bold';\nexport const normal = 'font-weight: normal';\n\n/**\n * Throws the full diagnostic. Generated helpers throw their URL-only production error inline, so\n * bundlers can remove both this call and the message text from production browser builds\n * @param {string} code\n * @param {string} message\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, caller) {\n\tconst error = new Error(`${code}\\n${message}\\nhttps://svelte.dev/e/kit/${code}`);\n\terror.name = 'SvelteKit error';\n\n\t// not available in every browser, in which case the stack also includes these two frames\n\tError.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`) rather than throwing it. Unlike `capture_error` in `./server.js`, this can be\n * bundled for browsers, so the thrown error only contains the URL in production\n * @param {() => never} fn A function that calls a generated `client-errors` or `shared-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","/**\n * A fake asset path used in `vite dev` and `vite preview`, so that we can\n * serve local assets while verifying that requests are correctly prefixed\n */\nexport const SVELTE_KIT_ASSETS = '/_svelte_kit_assets';\n\nexport const GENERATED_COMMENT = '// this file is generated — do not edit it';\n\nexport const ENDPOINT_METHODS = [\n\t'GET',\n\t'POST',\n\t'PUT',\n\t'PATCH',\n\t'DELETE',\n\t'OPTIONS',\n\t'HEAD',\n\t'QUERY'\n];\n\nexport const MUTATIVE_METHODS = ['POST', 'PUT', 'PATCH', 'DELETE'];\n\n/** methods whose responses depend on the request body, so they can never be prerendered */\nexport const BODY_DEPENDENT_METHODS = [...MUTATIVE_METHODS, 'QUERY'];\n\nexport const PAGE_METHODS = ['GET', 'POST', 'HEAD'];\n\nexport const SRC_ROOT = import.meta.dirname;\n\n// eslint-disable-next-line n/prefer-global/process\nexport const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;\n\n/**\n * If an an adapter deploys a catch-all serverless function, the rerouted URL\n * is stored in this header.\n */\nexport const REROUTED_URL_HEADER = 'x-sveltekit-rerouted-url';\n","/** @import { RequestEvent } from '@sveltejs/kit' */\n/** @import { RequestStore } from 'types' */\n/** @import { AsyncLocalStorage } from 'node:async_hooks' */\nimport { IN_WEBCONTAINER } from '../../../constants.js';\nimport * as e from '../../../messages/server-errors.js';\n\n/** @type {RequestStore | null} */\nlet sync_store = null;\n\n/** @type {AsyncLocalStorage<RequestStore | null> | null} */\nlet als;\n\nimport('node:async_hooks')\n\t.then((hooks) => (als = new hooks.AsyncLocalStorage()))\n\t.catch(() => {\n\t\t// can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.\n\t\t// this isn't behind `supports` because it's basically just StackBlitz (i.e.\n\t\t// in-browser usage) that doesn't support it AFAICT\n\t});\n\n/**\n * Returns the current `RequestEvent`. Can be used inside server hooks, server `load` functions, actions, and endpoints (and functions called by them).\n *\n * In environments without [`AsyncLocalStorage`](https://nodejs.org/api/async_context.html#class-asynclocalstorage), this must be called synchronously (i.e. not after an `await`).\n * @since 2.20.0\n *\n * @returns {RequestEvent}\n */\nexport function getRequestEvent() {\n\tconst event = try_get_request_store()?.event;\n\n\tif (!event) {\n\t\tif (als) e.request_event_unavailable();\n\t\te.request_event_after_await();\n\t}\n\n\treturn event;\n}\n\nexport function get_request_store() {\n\tconst result = try_get_request_store();\n\tif (!result) {\n\t\tif (als) throw new Error('Could not get the request store. This is an internal error.');\n\t\te.request_store_after_await();\n\t}\n\treturn result;\n}\n\nexport function try_get_request_store() {\n\treturn sync_store ?? als?.getStore() ?? null;\n}\n\n/**\n * @template T\n * @param {RequestStore | null} store\n * @param {() => T} fn\n */\nexport function with_request_store(store, fn) {\n\ttry {\n\t\tsync_store = store;\n\t\treturn als ? als.run(store, fn) : fn();\n\t} finally {\n\t\t// Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`\n\t\t// and handle only one request at a time in `src/runtime/server/index.js`.\n\t\tif (!IN_WEBCONTAINER) {\n\t\t\tsync_store = null;\n\t\t}\n\t}\n}\n","/** @import { Span } from '@opentelemetry/api' */\nimport { try_get_request_store } from './event.js';\n\nexport function get_origin() {\n\t// `request.url` rather than `event.url`, which throws inside queries\n\tconst request = try_get_request_store()?.event.request;\n\treturn request && new URL(request.url).origin;\n}\n\n/**\n * @template {{ tracing: { enabled: boolean, root: Span, current: Span } }} T\n * @param {T} event_like\n * @param {Span} current\n * @returns {T}\n */\nexport function merge_tracing(event_like, current) {\n\treturn {\n\t\t...event_like,\n\t\ttracing: {\n\t\t\t...event_like.tracing,\n\t\t\tcurrent\n\t\t}\n\t};\n}\n\nexport {\n\twith_request_store,\n\tgetRequestEvent,\n\tget_request_store,\n\ttry_get_request_store\n} from './event.js';\n\nexport { init_remote_functions } from './remote-functions.js';\n\nexport { init_tracing, otel, record_span } from './telemetry.js';\n\nexport * from '../shared.js';\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { BROWSER, DEV } from 'esm-env';\nimport { throw_error, verbose } from './internal/shared.js';\n\n/**\n * `$app/stores` has been removed in favour of `$app/state`\n * @param {void} _values\n * @returns {never}\n */\nexport function app_stores_removed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('app_stores_removed', `\\`$app/stores\\` has been removed in favour of \\`$app/state\\``, app_stores_removed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/app_stores_removed');\n}\n\n/**\n * Invalid array key `%key%`\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_array_conflict(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_array_conflict', `Invalid array key \\`${_values.key}\\``, form_field_array_conflict);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_array_conflict');\n}\n\n/**\n * Form cannot contain duplicated keys — `%name%` has %count% values\n * @param {{ \"name\": string; \"count\": string }} _values\n * @returns {never}\n */\nexport function form_field_duplicate(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_duplicate', `Form cannot contain duplicated keys — \\`${_values.name}\\` has ${_values.count} values`, form_field_duplicate);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_duplicate');\n}\n\n/**\n * Invalid key `%key%`: This key is not allowed to prevent prototype pollution.\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_forbidden_key(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_forbidden_key', `Invalid key \\`${_values.key}\\`: This key is not allowed to prevent prototype pollution.`, form_field_forbidden_key);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_forbidden_key');\n}\n\n/**\n * Invalid field name `%name%`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_invalid_name(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_invalid_name', `Invalid field name \\`${_values.name}\\`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields`, form_field_invalid_name);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_invalid_name');\n}\n\n/**\n * Form contained a field that wasn't created with `form.fields.as(...)`: `%name%`\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_unbound(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_unbound', `Form contained a field that wasn't created with \\`form.fields.as(...)\\`: \\`${_values.name}\\``, form_field_unbound);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_unbound');\n}\n\n/**\n * %type% inputs must have a value\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function form_input_missing_value(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_input_missing_value', `${_values.type} inputs must have a value`, form_input_missing_value);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_input_missing_value');\n}\n\n/**\n * HTTP error status codes must be between 400 and 599 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_error_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_error_status', `HTTP error status codes must be between 400 and 599 — ${_values.status} is invalid`, invalid_error_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_error_status');\n}\n\n/**\n * Invalid export `%key%` (valid exports are %exports%, or anything with a `'_'` prefix)\n * @param {{ \"key\": string; \"exports\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)` : `Invalid export \\`${_values.key}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)`), invalid_export);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export');\n}\n\n/**\n * Invalid export `%key%` (`%key%` is a valid export in %locations%)\n * @param {{ \"key\": string; \"locations\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export_location(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export_location', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})` : `Invalid export \\`${_values.key}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})`), invalid_export_location);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export_location');\n}\n\n/**\n * Redirect status codes must be between 300 and 308 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_redirect_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_redirect_status', `Redirect status codes must be between 300 and 308 — ${_values.status} is invalid`, invalid_redirect_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_redirect_status');\n}\n\n/**\n * a `load` function %location% returned %type%, but must return a plain object at the top level (i.e. `return {...}`)\n * @param {{ \"location\": string; \"type\": string }} _values\n * @returns {never}\n */\nexport function load_invalid_response(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('load_invalid_response', `a \\`load\\` function ${_values.location} returned ${_values.type}, but must return a plain object at the top level (i.e. \\`return {...}\\`)`, load_invalid_response);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/load_invalid_response');\n}\n\n/**\n * Cannot use `match(...)` inside a service worker, as it depends on the SvelteKit client instance\n * @param {void} _values\n * @returns {never}\n */\nexport function match_in_service_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('match_in_service_worker', `Cannot use \\`match(...)\\` inside a service worker, as it depends on the SvelteKit client instance`, match_in_service_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/match_in_service_worker');\n}\n\n/**\n * Invalid param definition\n * @param {void} _values\n * @returns {never}\n */\nexport function param_definition_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_definition_invalid', `Invalid param definition`, param_definition_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_definition_invalid');\n}\n\n/**\n * Async param matchers are not supported\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_async(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_async', `Async param matchers are not supported`, param_matcher_async);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_async');\n}\n\n/**\n * Param matcher must return a string, number, boolean, or bigint\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_result_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_result_invalid', `Param matcher must return a string, number, boolean, or bigint`, param_matcher_result_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_result_invalid');\n}\n\n/**\n * Cannot redirect to `%location%` with `{ external: true }`. The `javascript:` and `data:` protocols must be explicitly listed in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_javascript(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_javascript', `Cannot redirect to \\`${_values.location}\\` with \\`{ external: true }\\`. The \\`javascript:\\` and \\`data:\\` protocols must be explicitly listed in the \\`external\\` allowlist`, redirect_external_javascript);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_javascript');\n}\n\n/**\n * Cannot redirect to external URL `%location%`. To redirect to an external URL, pass `{ external: true }` or an allowlist of permitted origins as the third argument to `redirect`\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_allowed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_allowed', `Cannot redirect to external URL \\`${_values.location}\\`. To redirect to an external URL, pass \\`{ external: true }\\` or an allowlist of permitted origins as the third argument to \\`redirect\\``, redirect_external_not_allowed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_allowed');\n}\n\n/**\n * Cannot redirect to `%location%`: URL origin is not included in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_in_allowlist(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_in_allowlist', `Cannot redirect to \\`${_values.location}\\`: URL origin is not included in the \\`external\\` allowlist`, redirect_external_not_in_allowlist);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_in_allowlist');\n}\n\n/**\n * `redirect` `options.external` must be `true` or an array of allowed origins\n * @param {void} _values\n * @returns {never}\n */\nexport function redirect_external_option_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_option_invalid', `\\`redirect\\` \\`options.external\\` must be \\`true\\` or an array of allowed origins`, redirect_external_option_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_option_invalid');\n}\n\n/**\n * %type% are not valid remote function arguments\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function remote_argument_unsupported(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('remote_argument_unsupported', `${_values.type} are not valid remote function arguments`, remote_argument_unsupported);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/remote_argument_unsupported');\n}\n\n/**\n * Missing params for dynamic route ID `%id%`\n * @param {{ \"id\": string }} _values\n * @returns {never}\n */\nexport function resolve_params_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('resolve_params_missing', `Missing params for dynamic route ID \\`${_values.id}\\``, resolve_params_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/resolve_params_missing');\n}\n\n/**\n * Missing parameter `%name%` in route `%id%`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_missing', `Missing parameter \\`${_values.name}\\` in route \\`${_values.id}\\``, route_param_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_missing');\n}\n\n/**\n * Parameter `%name%` in route `%id%` cannot start or end with a slash — this would cause an invalid route like `foo/bar`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_slash(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_slash', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` cannot start or end with a slash — this would cause an invalid route like \\`foo/bar\\``, route_param_slash);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_slash');\n}\n\n/**\n * Parameter `%name%` in route `%id%` must be a string, number, boolean, or bigint\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_value_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_value_invalid', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` must be a string, number, boolean, or bigint`, route_param_value_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_value_invalid');\n}\n\n/**\n * Page options are ignored when `router.type === 'hash'` (`%source%` has %options%)\n * @param {{ \"source\": string; \"options\": string }} _values\n * @returns {never}\n */\nexport function router_hash_page_options(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('router_hash_page_options', `Page options are ignored when \\`router.type === 'hash'\\` (\\`${_values.source}\\` has ${_values.options})`, router_hash_page_options);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/router_hash_page_options');\n}\n\n/**\n * The `$app/service-worker` module can only be imported into a service worker\n * @param {void} _values\n * @returns {never}\n */\nexport function service_worker_module_outside_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('service_worker_module_outside_worker', `The \\`$app/service-worker\\` module can only be imported into a service worker`, service_worker_module_outside_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/service_worker_module_outside_worker');\n}\n\n/**\n * Cannot access `event.url.hash`. Consider using `page.url.hash` inside a component instead\n * @param {void} _values\n * @returns {never}\n */\nexport function url_hash_unavailable(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('url_hash_unavailable', `Cannot access \\`event.url.hash\\`. Consider using \\`page.url.hash\\` inside a component instead`, url_hash_unavailable);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/url_hash_unavailable');\n}\n","import { BROWSER, DEV } from 'esm-env';\nimport * as e from '../messages/shared-errors.js';\nimport * as server_errors from '../messages/server-errors.js';\n\n/**\n * Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1\n * @type {RegExp}\n */\nexport const SCHEME = /^[a-z][a-z\\d+\\-.]*:/i;\n\nconst internal = new URL('a://');\n\n/**\n * @param {string} base\n * @param {string} path\n */\nexport function resolve(base, path) {\n\t// special case\n\tif (path[0] === '/' && path[1] === '/') return path;\n\n\tlet url = new URL(base, internal);\n\turl = new URL(path, url);\n\n\treturn url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\n\n/** @param {string} path */\nexport function is_root_relative(path) {\n\treturn path[0] === '/' && path[1] !== '/';\n}\n\n/**\n * Relative reference from `from` to `to`, which must differ only by a trailing slash\n * @param {string} from\n * @param {string} to\n * @returns {string}\n */\nexport function relative_pathname(from, to) {\n\tconst segment = to.replace(/\\/$/, '').split('/').at(-1);\n\n\t// The prefix prevents a colon in the segment from being interpreted as a URL scheme.\n\treturn from.endsWith('/') ? `../${segment}` : `./${segment}/`;\n}\n\n/**\n * @param {string} location\n * @param {string} allowed\n */\nexport function matches_external_allowlist_entry(location, allowed) {\n\tif (location === allowed) return true;\n\n\t// TODO replace the try/catch with `URL.parse` when browser support allows (Chrome 126, Firefox 126, Safari 18)\n\ttry {\n\t\tconst allow = new URL(allowed);\n\t\tconst loc = new URL(location, allow);\n\n\t\t// this is stricter than `loc.origin === allow.origin`, which can fail in `blob:` cases\n\t\treturn loc.protocol === allow.protocol && loc.host === allow.host;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/**\n * @param {string} path\n * @param {import('types').TrailingSlash} trailing_slash\n */\nexport function normalize_path(path, trailing_slash) {\n\tif (path === '/' || trailing_slash === 'ignore') return path;\n\n\tif (trailing_slash === 'never') {\n\t\treturn path.endsWith('/') ? path.slice(0, -1) : path;\n\t} else if (trailing_slash === 'always' && !path.endsWith('/')) {\n\t\treturn path + '/';\n\t}\n\n\treturn path;\n}\n\n/**\n * Decode pathname excluding %25 to prevent further double decoding of params\n * @param {string} pathname\n */\nexport function decode_pathname(pathname) {\n\treturn pathname.split('%25').map(decodeURI).join('%25');\n}\n\n/**\n * The error when a URL is malformed is not very helpful, so we augment it with the URI\n * @param {string} uri\n */\nexport function decode_uri(uri) {\n\ttry {\n\t\treturn decodeURI(uri);\n\t} catch (e) {\n\t\tif (e instanceof Error) {\n\t\t\te.message = `Failed to decode URI: ${uri}\\n` + e.message;\n\t\t}\n\t\tthrow e;\n\t}\n}\n\n/**\n * Returns everything up to the first `#` in a URL\n * @param {{href: string}} url_like\n */\nexport function strip_hash({ href }) {\n\treturn href.split('#')[0];\n}\n\n/**\n * @param {URL} url\n * @param {() => void} callback\n * @param {(search_param: string) => void} search_params_callback\n * @param {boolean} [allow_hash]\n */\nexport function make_trackable(url, callback, search_params_callback, allow_hash = false) {\n\tconst tracked = new URL(url);\n\n\tObject.defineProperty(tracked, 'searchParams', {\n\t\tvalue: new Proxy(tracked.searchParams, {\n\t\t\tget(obj, key) {\n\t\t\t\tif (key === 'get' || key === 'getAll' || key === 'has') {\n\t\t\t\t\treturn (/** @type {string} */ param, /** @type {string[]} */ ...rest) => {\n\t\t\t\t\t\tsearch_params_callback(param);\n\t\t\t\t\t\treturn obj[key](param, ...rest);\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// if they try to access something different from what is in `tracked_search_params_properties`\n\t\t\t\t// we track the whole url (entries, values, keys etc)\n\t\t\t\tcallback();\n\n\t\t\t\tconst value = Reflect.get(obj, key);\n\t\t\t\treturn typeof value === 'function' ? value.bind(obj) : value;\n\t\t\t}\n\t\t}),\n\t\tenumerable: true,\n\t\tconfigurable: true\n\t});\n\n\t/**\n\t * URL properties that could change during the lifetime of the page,\n\t * which excludes things like `origin`\n\t * @type {(keyof URL)[]}\n\t */\n\tconst tracked_url_properties = ['href', 'pathname', 'search', 'toString', 'toJSON'];\n\tif (allow_hash) tracked_url_properties.push('hash');\n\n\tfor (const property of tracked_url_properties) {\n\t\tObject.defineProperty(tracked, property, {\n\t\t\tget() {\n\t\t\t\tcallback();\n\t\t\t\treturn url[property];\n\t\t\t},\n\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\ttracked[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url, opts);\n\t\t};\n\n\t\t// @ts-ignore\n\t\ttracked.searchParams[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url.searchParams, opts);\n\t\t};\n\t}\n\n\tif ((DEV || !BROWSER) && !allow_hash) {\n\t\tdisable_hash(tracked);\n\t}\n\n\treturn tracked;\n}\n\n/**\n * Disallow access to `url.hash` on the server and in `load`\n * @param {URL} url\n */\nfunction disable_hash(url) {\n\tallow_nodejs_console_log(url);\n\n\tObject.defineProperty(url, 'hash', {\n\t\tget() {\n\t\t\treturn e.url_hash_unavailable();\n\t\t}\n\t});\n}\n\n/**\n * Disallow access to `url.search` and `url.searchParams` during prerendering\n * @param {URL} url\n */\nexport function disable_search(url) {\n\tallow_nodejs_console_log(url);\n\n\tfor (const property of ['search', 'searchParams']) {\n\t\tObject.defineProperty(url, property, {\n\t\t\tget() {\n\t\t\t\treturn server_errors.url_search_unavailable_prerender({ property });\n\t\t\t}\n\t\t});\n\t}\n}\n\n/**\n * Allow URL to be console logged, bypassing disabled properties.\n * @param {URL} url\n */\nfunction allow_nodejs_console_log(url) {\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\turl[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(new URL(url), opts);\n\t\t};\n\t}\n}\n","// we use the export subpath to conditionally import the client/server `get_origin`\n// so that `node:async_hooks` isn't pulled into the client build\nimport { get_origin } from '#internal';\nimport { matches_external_allowlist_entry } from '../utils/url.js';\nimport * as e from '../messages/shared-errors.js';\n\n// See https://datatracker.ietf.org/doc/html/rfc2606 - no domains under the .invalid TLD can be registered\nconst REDIRECT_BASE = 'https://sveltekit-redirect.invalid';\n\n/**\n * Whether a redirect location is absolute, i.e. not a root-relative or path-relative URL,\n * and not pointing to the same origin as we're currently on (if determineable).\n * @param {string} location\n */\nexport function is_external_location(location) {\n\tconst origin = get_origin();\n\n\ttry {\n\t\treturn !matches_external_allowlist_entry(location, origin ?? REDIRECT_BASE);\n\t} catch {\n\t\treturn true;\n\t}\n}\n\nconst javascript_protocols = new Set(['javascript:', 'data:']);\n\n/**\n * @param {string} location\n */\nfunction is_javascript_location(location) {\n\ttry {\n\t\treturn javascript_protocols.has(new URL(location, REDIRECT_BASE).protocol);\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/**\n * @param {string} location\n * @param {{ external?: boolean | string[] }} [options]\n */\nexport function validate_redirect_location(location, options) {\n\tif (!is_external_location(location)) return;\n\n\tconst external = options?.external;\n\n\tif (!external) {\n\t\te.redirect_external_not_allowed({ location: JSON.stringify(location) });\n\t}\n\n\tif (external === true) {\n\t\tif (is_javascript_location(location)) {\n\t\t\te.redirect_external_javascript({ location: JSON.stringify(location) });\n\t\t}\n\n\t\treturn;\n\t}\n\n\tif (Array.isArray(external)) {\n\t\tif (!external.some((allowed) => matches_external_allowlist_entry(location, allowed))) {\n\t\t\te.redirect_external_not_in_allowlist({ location: JSON.stringify(location) });\n\t\t}\n\n\t\treturn;\n\t}\n\n\te.redirect_external_option_invalid();\n}\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { DEV } from 'esm-env';\nimport { bold, normal } from './internal/shared.js';\n\n/**\n * `$app/environment` is deprecated, use `$app/env` instead\n * @param {void} _values\n */\nexport function app_environment_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'app_environment_deprecated'}\\n%c${`\\`$app/environment\\` is deprecated, use \\`$app/env\\` instead`}\\nhttps://svelte.dev/e/kit/${'app_environment_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/app_environment_deprecated');\n\t}\n}\n\n/**\n * `asset('%path%')` should now be `asset('%fixed%')`\n * @param {{ \"path\": string; \"fixed\": string }} _values\n */\nexport function asset_leading_slash(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'asset_leading_slash'}\\n%c${`\\`asset('${_values.path}')\\` should now be \\`asset('${_values.fixed}')\\``}\\nhttps://svelte.dev/e/kit/${'asset_leading_slash'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/asset_leading_slash');\n\t}\n}\n\n/**\n * `%route%`: Calling `depends('%dependency%')` will throw an error in Firefox because `%scheme%` is a special URI scheme\n * @param {{ \"route\": string; \"dependency\": string; \"scheme\": string }} _values\n */\nexport function depends_special_scheme(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'depends_special_scheme'}\\n%c${`\\`${_values.route}\\`: Calling \\`depends('${_values.dependency}')\\` will throw an error in Firefox because \\`${_values.scheme}\\` is a special URI scheme`}\\nhttps://svelte.dev/e/kit/${'depends_special_scheme'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/depends_special_scheme');\n\t}\n}\n\n/**\n * `%module%` is deprecated, use `%replacement%` instead\n * @param {{ \"module\": string; \"replacement\": string }} _values\n */\nexport function env_module_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'env_module_deprecated'}\\n%c${`\\`${_values.module}\\` is deprecated, use \\`${_values.replacement}\\` instead`}\\nhttps://svelte.dev/e/kit/${'env_module_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/env_module_deprecated');\n\t}\n}\n\n/**\n * Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {void} _values\n */\nexport function error_body_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'error_body_deprecated'}\\n%c${`Passing an \\`App.Error\\` body as the second argument is deprecated — pass the \\`message\\` as the second argument, and any additional properties as the third`}\\nhttps://svelte.dev/e/kit/${'error_body_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/error_body_deprecated');\n\t}\n}\n\n/**\n * The properties of `form.fields` are virtual, so operators like `in` and `Object.keys` are meaningless. If you need the current value of a form field, use `form.fields.x.value()`\n * @param {void} _values\n */\nexport function form_fields_enumerated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'form_fields_enumerated'}\\n%c${`The properties of \\`form.fields\\` are virtual, so operators like \\`in\\` and \\`Object.keys\\` are meaningless. If you need the current value of a form field, use \\`form.fields.x.value()\\``}\\nhttps://svelte.dev/e/kit/${'form_fields_enumerated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/form_fields_enumerated');\n\t}\n}\n\n/**\n * The `message` property of `handleError` is deprecated. Use `error.message` for expected and framework errors, or `'Internal Error'` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_message_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_message_deprecated'}\\n%c${`The \\`message\\` property of \\`handleError\\` is deprecated. Use \\`error.message\\` for expected and framework errors, or \\`'Internal Error'\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_message_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_message_deprecated');\n\t}\n}\n\n/**\n * The `status` property of `handleError` is deprecated. Use `error.status` for expected and framework errors, or `500` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_status_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_status_deprecated'}\\n%c${`The \\`status\\` property of \\`handleError\\` is deprecated. Use \\`error.status\\` for expected and framework errors, or \\`500\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_status_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_status_deprecated');\n\t}\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/shared.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../pathname.js';\nimport { validate_redirect_location } from './url.js';\nimport * as e from '../messages/shared-errors.js';\nimport * as w from '../messages/shared-warnings.js';\n\nconst text_encoder = new TextEncoder();\n\nexport { VERSION } from '../version.js';\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} [message] The error message.\n * @overload\n * @param {{ status: number; message: string } extends App.Error ? number : never} status\n * @param {{ status: number; message: string } extends App.Error ? string : never} [message]\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} message The error message.\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties Additional properties of the App.Error type.\n * @overload\n * @param {number} status\n * @param {string} message\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @deprecated Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {any} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {any} [message] A string, or (deprecated) a partial App.Error object\n * @param {any} [properties] Additional properties of the App.Error type when passing a string message.\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, message, properties) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\te.invalid_error_status({ status: String(status) });\n\t}\n\n\tif (message !== undefined && typeof message !== 'string') {\n\t\tif (DEV) {\n\t\t\tw.error_body_deprecated();\n\t\t}\n\n\t\t({ message, ...properties } = message);\n\t}\n\n\tthrow new HttpError({ ...properties, status, message: message ?? `Error: ${status}` });\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (import('./public.js').HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @param {{ external?: boolean | string[] }} [options] To redirect to an external URL, you must pass `{ external: true }` to allow any external URL except `javascript:` URLs, or `{ external: [...] }` with an allowlist of permitted origins.\n * @throws {import('./public.js').Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid, the location cannot be used as a header value, or the location is an external URL without permission.\n * @return {never}\n */\nexport function redirect(status, location, options) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\te.invalid_redirect_status({ status: String(status) });\n\t}\n\n\tconst href = location.toString();\n\tvalidate_redirect_location(href, options);\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\thref\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n * @deprecated use `Response.json`\n */\nexport function json(data, init) {\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n * @deprecated use `new Response`\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '#lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is a validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ValidationError}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'a://a');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t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ACnD,IAA0B,MAAM,MAAM,KAAK,SAAS,OAAO,SAAS,KACnE,wBAA0B,EAAE,QAAQ,OAAO,MAAM,EAAE,CAAC;CAGrD,MAAM,OAAO,SAAS,SAAS;CAC/B,2BAA2B,MAAM,OAAO;CAExC,MAAM,IAAI,SAET,QACA,IACD;AACD;;;;;;AAOA,SAAgB,WAAW,GAAG;CAC7B,OAAO,aAAa;AACrB;;;;;;;AAmCA,SAAgB,KAAK,MAAM,MAAM;CAChC,MAAM,UAAU,IAAI,QAAQ,MAAM,OAAO;CACzC,IAAI,CAAC,QAAQ,IAAI,gBAAgB,GAAG;EACnC,MAAM,UAAU,aAAa,OAAO,IAAI;EACxC,QAAQ,IAAI,kBAAkB,QAAQ,WAAW,SAAS,CAAC;EAC3D,OAAO,IAAI,SAAS,SAAS;GAC5B,GAAG;GACH;EACD,CAAC;CACF;CAEA,OAAO,IAAI,SAAS,MAAM;EACzB,GAAG;EACH;CACD,CAAC;AACF"}
1
+ {"version":3,"file":"exports.js","names":["e.url_hash_unavailable","server_errors.url_search_unavailable_prerender"],"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/shared.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/constants.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/exports/internal/server/event.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/exports/internal/server/index.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/shared-errors.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/utils/url.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/exports/url.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/shared-warnings.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/exports/index.js"],"sourcesContent":["/**\n * Whether shared errors include their full text on the server even though `DEV` is false. This is\n * enabled while the app is being built (analysed or prerendered)\n */\nexport let verbose = false;\n\nexport function enable_verbose_errors() {\n\tverbose = true;\n}\n\n/**\n * @typedef {{ element?: Element }} ClientWarningOptions\n * - `element`: logged after the warning, so that it can be inspected in the browser's devtools\n */\n\n/** `console.warn` styles for the code and text of shared runtime warnings, as in Svelte */\nexport const bold = 'font-weight: bold';\nexport const normal = 'font-weight: normal';\n\n/**\n * Throws the full diagnostic. Generated helpers throw their URL-only production error inline, so\n * bundlers can remove both this call and the message text from production browser builds\n * @param {string} code\n * @param {string} message\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, caller) {\n\tconst error = new Error(`${code}\\n${message}\\nhttps://svelte.dev/e/kit/${code}`);\n\terror.name = 'SvelteKit error';\n\n\t// not available in every browser, in which case the stack also includes these two frames\n\tError.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`) rather than throwing it. Unlike `capture_error` in `./server.js`, this can be\n * bundled for browsers, so the thrown error only contains the URL in production\n * @param {() => never} fn A function that calls a generated `client-errors` or `shared-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","/**\n * A fake asset path used in `vite dev` and `vite preview`, so that we can\n * serve local assets while verifying that requests are correctly prefixed\n */\nexport const SVELTE_KIT_ASSETS = '/_svelte_kit_assets';\n\nexport const GENERATED_COMMENT = '// this file is generated — do not edit it';\n\nexport const ENDPOINT_METHODS = [\n\t'GET',\n\t'POST',\n\t'PUT',\n\t'PATCH',\n\t'DELETE',\n\t'OPTIONS',\n\t'HEAD',\n\t'QUERY'\n];\n\nexport const MUTATIVE_METHODS = ['POST', 'PUT', 'PATCH', 'DELETE'];\n\n/** methods whose responses depend on the request body, so they can never be prerendered */\nexport const BODY_DEPENDENT_METHODS = [...MUTATIVE_METHODS, 'QUERY'];\n\nexport const PAGE_METHODS = ['GET', 'POST', 'HEAD'];\n\nexport const SRC_ROOT = import.meta.dirname;\n\n// eslint-disable-next-line n/prefer-global/process\nexport const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;\n\n/**\n * If an an adapter deploys a catch-all serverless function, the rerouted URL\n * is stored in this header.\n */\nexport const REROUTED_URL_HEADER = 'x-sveltekit-rerouted-url';\n","/** @import { RequestEvent } from '@sveltejs/kit' */\n/** @import { RequestStore } from 'types' */\n/** @import { AsyncLocalStorage } from 'node:async_hooks' */\nimport { IN_WEBCONTAINER } from '../../../constants.js';\nimport * as e from '../../../messages/server-errors.js';\n\n/** @type {RequestStore | null} */\nlet sync_store = null;\n\n/** @type {AsyncLocalStorage<RequestStore | null> | null} */\nlet als;\n\nimport('node:async_hooks')\n\t.then((hooks) => (als = new hooks.AsyncLocalStorage()))\n\t.catch(() => {\n\t\t// can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.\n\t\t// this isn't behind `supports` because it's basically just StackBlitz (i.e.\n\t\t// in-browser usage) that doesn't support it AFAICT\n\t});\n\n/**\n * Returns the current `RequestEvent`. Can be used inside server hooks, server `load` functions, actions, and endpoints (and functions called by them).\n *\n * In environments without [`AsyncLocalStorage`](https://nodejs.org/api/async_context.html#class-asynclocalstorage), this must be called synchronously (i.e. not after an `await`).\n * @since 2.20.0\n *\n * @returns {RequestEvent}\n */\nexport function getRequestEvent() {\n\tconst event = try_get_request_store()?.event;\n\n\tif (!event) {\n\t\tif (als) e.request_event_unavailable();\n\t\te.request_event_after_await();\n\t}\n\n\treturn event;\n}\n\nexport function get_request_store() {\n\tconst result = try_get_request_store();\n\tif (!result) {\n\t\tif (als) throw new Error('Could not get the request store. This is an internal error.');\n\t\te.request_store_after_await();\n\t}\n\treturn result;\n}\n\nexport function try_get_request_store() {\n\treturn sync_store ?? als?.getStore() ?? null;\n}\n\n/**\n * @template T\n * @param {RequestStore | null} store\n * @param {() => T} fn\n */\nexport function with_request_store(store, fn) {\n\ttry {\n\t\tsync_store = store;\n\t\treturn als ? als.run(store, fn) : fn();\n\t} finally {\n\t\t// Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`\n\t\t// and handle only one request at a time in `src/runtime/server/index.js`.\n\t\tif (!IN_WEBCONTAINER) {\n\t\t\tsync_store = null;\n\t\t}\n\t}\n}\n","/** @import { Span } from '@opentelemetry/api' */\nimport { try_get_request_store } from './event.js';\n\nexport function get_origin() {\n\t// `request.url` rather than `event.url`, which throws inside queries\n\tconst request = try_get_request_store()?.event.request;\n\treturn request && new URL(request.url).origin;\n}\n\n/**\n * @template {{ tracing: { enabled: boolean, root: Span, current: Span } }} T\n * @param {T} event_like\n * @param {Span} current\n * @returns {T}\n */\nexport function merge_tracing(event_like, current) {\n\treturn {\n\t\t...event_like,\n\t\ttracing: {\n\t\t\t...event_like.tracing,\n\t\t\tcurrent\n\t\t}\n\t};\n}\n\nexport {\n\twith_request_store,\n\tgetRequestEvent,\n\tget_request_store,\n\ttry_get_request_store\n} from './event.js';\n\nexport { init_remote_functions } from './remote-functions.js';\n\nexport { init_tracing, otel, record_span } from './telemetry.js';\n\nexport * from '../shared.js';\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { BROWSER, DEV } from 'esm-env';\nimport { throw_error, verbose } from './internal/shared.js';\n\n/**\n * `$app/stores` has been removed in favour of `$app/state`\n * @param {void} _values\n * @returns {never}\n */\nexport function app_stores_removed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('app_stores_removed', `\\`$app/stores\\` has been removed in favour of \\`$app/state\\``, app_stores_removed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/app_stores_removed');\n}\n\n/**\n * Invalid array key `%key%`\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_array_conflict(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_array_conflict', `Invalid array key \\`${_values.key}\\``, form_field_array_conflict);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_array_conflict');\n}\n\n/**\n * Form cannot contain duplicated keys — `%name%` has %count% values\n * @param {{ \"name\": string; \"count\": string }} _values\n * @returns {never}\n */\nexport function form_field_duplicate(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_duplicate', `Form cannot contain duplicated keys — \\`${_values.name}\\` has ${_values.count} values`, form_field_duplicate);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_duplicate');\n}\n\n/**\n * Invalid key `%key%`: This key is not allowed to prevent prototype pollution.\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_forbidden_key(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_forbidden_key', `Invalid key \\`${_values.key}\\`: This key is not allowed to prevent prototype pollution.`, form_field_forbidden_key);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_forbidden_key');\n}\n\n/**\n * Invalid field name `%name%`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_invalid_name(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_invalid_name', `Invalid field name \\`${_values.name}\\`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields`, form_field_invalid_name);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_invalid_name');\n}\n\n/**\n * Form contained a field that wasn't created with `form.fields.as(...)`: `%name%`\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_unbound(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_unbound', `Form contained a field that wasn't created with \\`form.fields.as(...)\\`: \\`${_values.name}\\``, form_field_unbound);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_unbound');\n}\n\n/**\n * %type% inputs must have a value\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function form_input_missing_value(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_input_missing_value', `${_values.type} inputs must have a value`, form_input_missing_value);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_input_missing_value');\n}\n\n/**\n * HTTP error status codes must be between 400 and 599 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_error_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_error_status', `HTTP error status codes must be between 400 and 599 — ${_values.status} is invalid`, invalid_error_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_error_status');\n}\n\n/**\n * Invalid export `%key%` (valid exports are %exports%, or anything with a `'_'` prefix)\n * @param {{ \"key\": string; \"exports\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)` : `Invalid export \\`${_values.key}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)`), invalid_export);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export');\n}\n\n/**\n * Invalid export `%key%` (`%key%` is a valid export in %locations%)\n * @param {{ \"key\": string; \"locations\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export_location(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export_location', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})` : `Invalid export \\`${_values.key}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})`), invalid_export_location);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export_location');\n}\n\n/**\n * Redirect status codes must be between 300 and 308 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_redirect_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_redirect_status', `Redirect status codes must be between 300 and 308 — ${_values.status} is invalid`, invalid_redirect_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_redirect_status');\n}\n\n/**\n * a `load` function %location% returned %type%, but must return a plain object at the top level (i.e. `return {...}`)\n * @param {{ \"location\": string; \"type\": string }} _values\n * @returns {never}\n */\nexport function load_invalid_response(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('load_invalid_response', `a \\`load\\` function ${_values.location} returned ${_values.type}, but must return a plain object at the top level (i.e. \\`return {...}\\`)`, load_invalid_response);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/load_invalid_response');\n}\n\n/**\n * Cannot use `match(...)` inside a service worker, as it depends on the SvelteKit client instance\n * @param {void} _values\n * @returns {never}\n */\nexport function match_in_service_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('match_in_service_worker', `Cannot use \\`match(...)\\` inside a service worker, as it depends on the SvelteKit client instance`, match_in_service_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/match_in_service_worker');\n}\n\n/**\n * Invalid param definition\n * @param {void} _values\n * @returns {never}\n */\nexport function param_definition_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_definition_invalid', `Invalid param definition`, param_definition_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_definition_invalid');\n}\n\n/**\n * Async param matchers are not supported\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_async(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_async', `Async param matchers are not supported`, param_matcher_async);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_async');\n}\n\n/**\n * Param matcher must return a string, number, boolean, or bigint\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_result_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_result_invalid', `Param matcher must return a string, number, boolean, or bigint`, param_matcher_result_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_result_invalid');\n}\n\n/**\n * Cannot redirect to `%location%` with `{ external: true }`. The `javascript:` and `data:` protocols must be explicitly listed in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_javascript(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_javascript', `Cannot redirect to \\`${_values.location}\\` with \\`{ external: true }\\`. The \\`javascript:\\` and \\`data:\\` protocols must be explicitly listed in the \\`external\\` allowlist`, redirect_external_javascript);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_javascript');\n}\n\n/**\n * Cannot redirect to external URL `%location%`. To redirect to an external URL, pass `{ external: true }` or an allowlist of permitted origins as the third argument to `redirect`\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_allowed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_allowed', `Cannot redirect to external URL \\`${_values.location}\\`. To redirect to an external URL, pass \\`{ external: true }\\` or an allowlist of permitted origins as the third argument to \\`redirect\\``, redirect_external_not_allowed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_allowed');\n}\n\n/**\n * Cannot redirect to `%location%`: URL origin is not included in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_in_allowlist(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_in_allowlist', `Cannot redirect to \\`${_values.location}\\`: URL origin is not included in the \\`external\\` allowlist`, redirect_external_not_in_allowlist);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_in_allowlist');\n}\n\n/**\n * `redirect` `options.external` must be `true` or an array of allowed origins\n * @param {void} _values\n * @returns {never}\n */\nexport function redirect_external_option_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_option_invalid', `\\`redirect\\` \\`options.external\\` must be \\`true\\` or an array of allowed origins`, redirect_external_option_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_option_invalid');\n}\n\n/**\n * %type% are not valid remote function arguments\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function remote_argument_unsupported(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('remote_argument_unsupported', `${_values.type} are not valid remote function arguments`, remote_argument_unsupported);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/remote_argument_unsupported');\n}\n\n/**\n * Missing params for dynamic route ID `%id%`\n * @param {{ \"id\": string }} _values\n * @returns {never}\n */\nexport function resolve_params_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('resolve_params_missing', `Missing params for dynamic route ID \\`${_values.id}\\``, resolve_params_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/resolve_params_missing');\n}\n\n/**\n * Missing parameter `%name%` in route `%id%`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_missing', `Missing parameter \\`${_values.name}\\` in route \\`${_values.id}\\``, route_param_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_missing');\n}\n\n/**\n * Parameter `%name%` in route `%id%` cannot start or end with a slash — this would cause an invalid route like `foo/bar`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_slash(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_slash', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` cannot start or end with a slash — this would cause an invalid route like \\`foo/bar\\``, route_param_slash);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_slash');\n}\n\n/**\n * Parameter `%name%` in route `%id%` must be a string, number, boolean, or bigint\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_value_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_value_invalid', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` must be a string, number, boolean, or bigint`, route_param_value_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_value_invalid');\n}\n\n/**\n * Page options are ignored when `router.type === 'hash'` (`%source%` has %options%)\n * @param {{ \"source\": string; \"options\": string }} _values\n * @returns {never}\n */\nexport function router_hash_page_options(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('router_hash_page_options', `Page options are ignored when \\`router.type === 'hash'\\` (\\`${_values.source}\\` has ${_values.options})`, router_hash_page_options);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/router_hash_page_options');\n}\n\n/**\n * The `$app/service-worker` module can only be imported into a service worker\n * @param {void} _values\n * @returns {never}\n */\nexport function service_worker_module_outside_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('service_worker_module_outside_worker', `The \\`$app/service-worker\\` module can only be imported into a service worker`, service_worker_module_outside_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/service_worker_module_outside_worker');\n}\n\n/**\n * Cannot access `event.url.hash`. Consider using `page.url.hash` inside a component instead\n * @param {void} _values\n * @returns {never}\n */\nexport function url_hash_unavailable(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('url_hash_unavailable', `Cannot access \\`event.url.hash\\`. Consider using \\`page.url.hash\\` inside a component instead`, url_hash_unavailable);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/url_hash_unavailable');\n}\n","import { BROWSER, DEV } from 'esm-env';\nimport * as e from '../messages/shared-errors.js';\nimport * as server_errors from '../messages/server-errors.js';\n\n/**\n * Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1\n * @type {RegExp}\n */\nexport const SCHEME = /^[a-z][a-z\\d+\\-.]*:/i;\n\nconst internal = new URL('a://');\n\n/**\n * @param {string} base\n * @param {string} path\n */\nexport function resolve(base, path) {\n\t// special case\n\tif (path[0] === '/' && path[1] === '/') return path;\n\n\tlet url = new URL(base, internal);\n\turl = new URL(path, url);\n\n\treturn url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\n\n/** @param {string} path */\nexport function is_root_relative(path) {\n\treturn path[0] === '/' && path[1] !== '/';\n}\n\n/**\n * Relative reference from `from` to `to`, which must differ only by a trailing slash\n * @param {string} from\n * @param {string} to\n * @returns {string}\n */\nexport function relative_pathname(from, to) {\n\tconst segment = to.replace(/\\/$/, '').split('/').at(-1);\n\n\t// The prefix prevents a colon in the segment from being interpreted as a URL scheme.\n\treturn from.endsWith('/') ? `../${segment}` : `./${segment}/`;\n}\n\n/**\n * @param {string} location\n * @param {string} allowed\n */\nexport function matches_external_allowlist_entry(location, allowed) {\n\tif (location === allowed) return true;\n\n\t// TODO replace the try/catch with `URL.parse` when browser support allows (Chrome 126, Firefox 126, Safari 18)\n\ttry {\n\t\tconst allow = new URL(allowed);\n\t\tconst loc = new URL(location, allow);\n\n\t\t// this is stricter than `loc.origin === allow.origin`, which can fail in `blob:` cases\n\t\treturn loc.protocol === allow.protocol && loc.host === allow.host;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/**\n * @param {string} path\n * @param {import('types').TrailingSlash} trailing_slash\n */\nexport function normalize_path(path, trailing_slash) {\n\tif (path === '/' || trailing_slash === 'ignore') return path;\n\n\tif (trailing_slash === 'never') {\n\t\treturn path.endsWith('/') ? path.slice(0, -1) : path;\n\t} else if (trailing_slash === 'always' && !path.endsWith('/')) {\n\t\treturn path + '/';\n\t}\n\n\treturn path;\n}\n\n/**\n * Decode pathname excluding %25 to prevent further double decoding of params\n * @param {string} pathname\n */\nexport function decode_pathname(pathname) {\n\treturn pathname.split('%25').map(decodeURI).join('%25');\n}\n\n/**\n * The error when a URL is malformed is not very helpful, so we augment it with the URI\n * @param {string} uri\n */\nexport function decode_uri(uri) {\n\ttry {\n\t\treturn decodeURI(uri);\n\t} catch (e) {\n\t\tif (e instanceof Error) {\n\t\t\te.message = `Failed to decode URI: ${uri}\\n` + e.message;\n\t\t}\n\t\tthrow e;\n\t}\n}\n\n/**\n * Returns everything up to the first `#` in a URL\n * @param {{href: string}} url_like\n */\nexport function strip_hash({ href }) {\n\treturn href.split('#')[0];\n}\n\n/**\n * @param {URL} url\n * @param {() => void} callback\n * @param {(search_param: string) => void} search_params_callback\n * @param {boolean} [allow_hash]\n */\nexport function make_trackable(url, callback, search_params_callback, allow_hash = false) {\n\tconst tracked = new URL(url);\n\n\tObject.defineProperty(tracked, 'searchParams', {\n\t\tvalue: new Proxy(tracked.searchParams, {\n\t\t\tget(obj, key) {\n\t\t\t\tif (key === 'get' || key === 'getAll' || key === 'has') {\n\t\t\t\t\treturn (/** @type {string} */ param, /** @type {string[]} */ ...rest) => {\n\t\t\t\t\t\tsearch_params_callback(param);\n\t\t\t\t\t\treturn obj[key](param, ...rest);\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// if they try to access something different from what is in `tracked_search_params_properties`\n\t\t\t\t// we track the whole url (entries, values, keys etc)\n\t\t\t\tcallback();\n\n\t\t\t\tconst value = Reflect.get(obj, key);\n\t\t\t\treturn typeof value === 'function' ? value.bind(obj) : value;\n\t\t\t}\n\t\t}),\n\t\tenumerable: true,\n\t\tconfigurable: true\n\t});\n\n\t/**\n\t * URL properties that could change during the lifetime of the page,\n\t * which excludes things like `origin`\n\t * @type {(keyof URL)[]}\n\t */\n\tconst tracked_url_properties = ['href', 'pathname', 'search', 'toString', 'toJSON'];\n\tif (allow_hash) tracked_url_properties.push('hash');\n\n\tfor (const property of tracked_url_properties) {\n\t\tObject.defineProperty(tracked, property, {\n\t\t\tget() {\n\t\t\t\tcallback();\n\t\t\t\treturn url[property];\n\t\t\t},\n\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\ttracked[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url, opts);\n\t\t};\n\n\t\t// @ts-ignore\n\t\ttracked.searchParams[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url.searchParams, opts);\n\t\t};\n\t}\n\n\tif ((DEV || !BROWSER) && !allow_hash) {\n\t\tdisable_hash(tracked);\n\t}\n\n\treturn tracked;\n}\n\n/**\n * Disallow access to `url.hash` on the server and in `load`\n * @param {URL} url\n */\nfunction disable_hash(url) {\n\tallow_nodejs_console_log(url);\n\n\tObject.defineProperty(url, 'hash', {\n\t\tget() {\n\t\t\treturn e.url_hash_unavailable();\n\t\t}\n\t});\n}\n\n/**\n * Disallow access to `url.search` and `url.searchParams` during prerendering\n * @param {URL} url\n */\nexport function disable_search(url) {\n\tallow_nodejs_console_log(url);\n\n\tfor (const property of ['search', 'searchParams']) {\n\t\tObject.defineProperty(url, property, {\n\t\t\tget() {\n\t\t\t\treturn server_errors.url_search_unavailable_prerender({ property });\n\t\t\t}\n\t\t});\n\t}\n}\n\n/**\n * Allow URL to be console logged, bypassing disabled properties.\n * @param {URL} url\n */\nfunction allow_nodejs_console_log(url) {\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\turl[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(new URL(url), opts);\n\t\t};\n\t}\n}\n","// we use the export subpath to conditionally import the client/server `get_origin`\n// so that `node:async_hooks` isn't pulled into the client build\nimport { get_origin } from '#internal';\nimport { matches_external_allowlist_entry } from '../utils/url.js';\nimport * as e from '../messages/shared-errors.js';\n\n// See https://datatracker.ietf.org/doc/html/rfc2606 - no domains under the .invalid TLD can be registered\nconst REDIRECT_BASE = 'https://sveltekit-redirect.invalid';\n\n/**\n * Whether a redirect location is absolute, i.e. not a root-relative or path-relative URL,\n * and not pointing to the same origin as we're currently on (if determineable).\n * @param {string} location\n */\nexport function is_external_location(location) {\n\tconst origin = get_origin();\n\n\ttry {\n\t\treturn !matches_external_allowlist_entry(location, origin ?? REDIRECT_BASE);\n\t} catch {\n\t\treturn true;\n\t}\n}\n\nconst javascript_protocols = new Set(['javascript:', 'data:']);\n\n/**\n * @param {string} location\n */\nfunction is_javascript_location(location) {\n\ttry {\n\t\treturn javascript_protocols.has(new URL(location, REDIRECT_BASE).protocol);\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/**\n * @param {string} location\n * @param {{ external?: boolean | string[] }} [options]\n */\nexport function validate_redirect_location(location, options) {\n\tif (!is_external_location(location)) return;\n\n\tconst external = options?.external;\n\n\tif (!external) {\n\t\te.redirect_external_not_allowed({ location: JSON.stringify(location) });\n\t}\n\n\tif (external === true) {\n\t\tif (is_javascript_location(location)) {\n\t\t\te.redirect_external_javascript({ location: JSON.stringify(location) });\n\t\t}\n\n\t\treturn;\n\t}\n\n\tif (Array.isArray(external)) {\n\t\tif (!external.some((allowed) => matches_external_allowlist_entry(location, allowed))) {\n\t\t\te.redirect_external_not_in_allowlist({ location: JSON.stringify(location) });\n\t\t}\n\n\t\treturn;\n\t}\n\n\te.redirect_external_option_invalid();\n}\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { DEV } from 'esm-env';\nimport { bold, normal } from './internal/shared.js';\n\n/**\n * `$app/environment` is deprecated, use `$app/env` instead\n * @param {void} _values\n */\nexport function app_environment_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'app_environment_deprecated'}\\n%c${`\\`$app/environment\\` is deprecated, use \\`$app/env\\` instead`}\\nhttps://svelte.dev/e/kit/${'app_environment_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/app_environment_deprecated');\n\t}\n}\n\n/**\n * `asset('%path%')` should now be `asset('%fixed%')`\n * @param {{ \"path\": string; \"fixed\": string }} _values\n */\nexport function asset_leading_slash(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'asset_leading_slash'}\\n%c${`\\`asset('${_values.path}')\\` should now be \\`asset('${_values.fixed}')\\``}\\nhttps://svelte.dev/e/kit/${'asset_leading_slash'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/asset_leading_slash');\n\t}\n}\n\n/**\n * `%route%`: Calling `depends('%dependency%')` will throw an error in Firefox because `%scheme%` is a special URI scheme\n * @param {{ \"route\": string; \"dependency\": string; \"scheme\": string }} _values\n */\nexport function depends_special_scheme(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'depends_special_scheme'}\\n%c${`\\`${_values.route}\\`: Calling \\`depends('${_values.dependency}')\\` will throw an error in Firefox because \\`${_values.scheme}\\` is a special URI scheme`}\\nhttps://svelte.dev/e/kit/${'depends_special_scheme'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/depends_special_scheme');\n\t}\n}\n\n/**\n * `%module%` is deprecated, use `%replacement%` instead\n * @param {{ \"module\": string; \"replacement\": string }} _values\n */\nexport function env_module_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'env_module_deprecated'}\\n%c${`\\`${_values.module}\\` is deprecated, use \\`${_values.replacement}\\` instead`}\\nhttps://svelte.dev/e/kit/${'env_module_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/env_module_deprecated');\n\t}\n}\n\n/**\n * Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {void} _values\n */\nexport function error_body_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'error_body_deprecated'}\\n%c${`Passing an \\`App.Error\\` body as the second argument is deprecated — pass the \\`message\\` as the second argument, and any additional properties as the third`}\\nhttps://svelte.dev/e/kit/${'error_body_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/error_body_deprecated');\n\t}\n}\n\n/**\n * The properties of `form.fields` are virtual, so operators like `in` and `Object.keys` are meaningless. If you need the current value of a form field, use `form.fields.x.value()`\n * @param {void} _values\n */\nexport function form_fields_enumerated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'form_fields_enumerated'}\\n%c${`The properties of \\`form.fields\\` are virtual, so operators like \\`in\\` and \\`Object.keys\\` are meaningless. If you need the current value of a form field, use \\`form.fields.x.value()\\``}\\nhttps://svelte.dev/e/kit/${'form_fields_enumerated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/form_fields_enumerated');\n\t}\n}\n\n/**\n * The `message` property of `handleError` is deprecated. Use `error.message` for expected and framework errors, or `'Internal Error'` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_message_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_message_deprecated'}\\n%c${`The \\`message\\` property of \\`handleError\\` is deprecated. Use \\`error.message\\` for expected and framework errors, or \\`'Internal Error'\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_message_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_message_deprecated');\n\t}\n}\n\n/**\n * The `status` property of `handleError` is deprecated. Use `error.status` for expected and framework errors, or `500` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_status_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_status_deprecated'}\\n%c${`The \\`status\\` property of \\`handleError\\` is deprecated. Use \\`error.status\\` for expected and framework errors, or \\`500\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_status_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_status_deprecated');\n\t}\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/shared.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../pathname.js';\nimport { validate_redirect_location } from './url.js';\nimport * as e from '../messages/shared-errors.js';\nimport * as w from '../messages/shared-warnings.js';\n\nconst text_encoder = new TextEncoder();\n\nexport { VERSION } from '../version.js';\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} [message] The error message.\n * @overload\n * @param {{ status: number; message: string } extends App.Error ? number : never} status\n * @param {{ status: number; message: string } extends App.Error ? string : never} [message]\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} message The error message.\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties Additional properties of the App.Error type.\n * @overload\n * @param {number} status\n * @param {string} message\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @deprecated Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {any} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {any} [message] A string, or (deprecated) a partial App.Error object\n * @param {any} [properties] Additional properties of the App.Error type when passing a string message.\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, message, properties) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\te.invalid_error_status({ status: String(status) });\n\t}\n\n\tif (message !== undefined && typeof message !== 'string') {\n\t\tif (DEV) {\n\t\t\tw.error_body_deprecated();\n\t\t}\n\n\t\t({ message, ...properties } = message);\n\t}\n\n\tthrow new HttpError({ ...properties, status, message: message ?? `Error: ${status}` });\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (import('./public.js').HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @param {{ external?: boolean | string[] }} [options] To redirect to an external URL, you must pass `{ external: true }` to allow any external URL except `javascript:` URLs, or `{ external: [...] }` with an allowlist of permitted origins.\n * @throws {import('./public.js').Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid, the location cannot be used as a header value, or the location is an external URL without permission.\n * @return {never}\n */\nexport function redirect(status, location, options) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\te.invalid_redirect_status({ status: String(status) });\n\t}\n\n\tconst href = location.toString();\n\tvalidate_redirect_location(href, options);\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\thref\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n * @deprecated use `Response.json`\n */\nexport function json(data, init) {\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n * @deprecated use `new Response`\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '#lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is a validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ValidationError}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'a://a');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"ignoreList":[0,1,2,3,4,5,6,7,8],"mappings":";;;;;;;AAIA,IAAW,UAAU;AAErB,SAAgB,wBAAwB;CACvC,UAAU;AACX;;;;;;AAQA,IAAa,OAAO;AACpB,IAAa,SAAS;;;;;;;;;AAUtB,SAAgB,YAAY,MAAM,SAAS,QAAQ;CAClD,MAAM,wBAAQ,IAAI,MAAM,GAAG,KAAK,IAAI,QAAQ,6BAA6B,MAAM;CAC/E,MAAM,OAAO;CAGb,MAAM,oBAAoB,OAAO,MAAM;CAEvC,MAAM;AACP;;;;;;;AC/BA,IAAa,oBAAoB;AAIjC,IAAa,mBAAmB;CAC/B;CACA;CACA;C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QAAQ,WAAW,SAAS,CAAC;EAC3D,OAAO,IAAI,SAAS,SAAS;GAC5B,GAAG;GACH;EACD,CAAC;CACF;CAEA,OAAO,IAAI,SAAS,MAAM;EACzB,GAAG;EACH;CACD,CAAC;AACF"}
@@ -1,5 +1,5 @@
1
1
  import { G as server_api_unavailable } from "./server-errors.js";
2
- //#region ../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/utils/functions.js
2
+ //#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/utils/functions.js
3
3
  function noop() {}
4
4
  /**
5
5
  * @template T
@@ -1 +1 @@
1
- {"version":3,"file":"functions.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/utils/functions.js"],"sourcesContent":["import * as e from '../messages/server-errors.js';\n\nexport function noop() {}\n\n/**\n * @template T\n * @param {() => T} fn\n */\nexport function once(fn) {\n\tlet done = false;\n\n\t/** @type T */\n\tlet result;\n\n\treturn () => {\n\t\tif (done) return result;\n\t\tdone = true;\n\t\treturn (result = fn());\n\t};\n}\n\n/**\n * @param {string} name\n * @param {string} [parens]\n */\nexport function disallow_on_server(name, parens = '(...)') {\n\treturn () => {\n\t\te.server_api_unavailable({ name: `${name}${parens}` });\n\t};\n}\n"],"ignoreList":[0],"mappings":";;AAEA,SAAgB,OAAO,CAAC;;;;;AAMxB,SAAgB,KAAK,IAAI;CACxB,IAAI,OAAO;;CAGX,IAAI;CAEJ,aAAa;EACZ,IAAI,MAAM,OAAO;EACjB,OAAO;EACP,OAAQ,SAAS,GAAG;CACrB;AACD;;;;;AAMA,SAAgB,mBAAmB,MAAM,SAAS,SAAS;CAC1D,aAAa;EACZ,uBAAyB,EAAE,MAAM,GAAG,OAAO,SAAS,CAAC;CACtD;AACD"}
1
+ {"version":3,"file":"functions.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/utils/functions.js"],"sourcesContent":["import * as e from '../messages/server-errors.js';\n\nexport function noop() {}\n\n/**\n * @template T\n * @param {() => T} fn\n */\nexport function once(fn) {\n\tlet done = false;\n\n\t/** @type T */\n\tlet result;\n\n\treturn () => {\n\t\tif (done) return result;\n\t\tdone = true;\n\t\treturn (result = fn());\n\t};\n}\n\n/**\n * @param {string} name\n * @param {string} [parens]\n */\nexport function disallow_on_server(name, parens = '(...)') {\n\treturn () => {\n\t\te.server_api_unavailable({ name: `${name}${parens}` });\n\t};\n}\n"],"ignoreList":[0],"mappings":";;AAEA,SAAgB,OAAO,CAAC;;;;;AAMxB,SAAgB,KAAK,IAAI;CACxB,IAAI,OAAO;;CAGX,IAAI;CAEJ,aAAa;EACZ,IAAI,MAAM,OAAO;EACjB,OAAO;EACP,OAAQ,SAAS,GAAG;CACrB;AACD;;;;;AAMA,SAAgB,mBAAmB,MAAM,SAAS,SAAS;CAC1D,aAAa;EACZ,uBAAyB,EAAE,MAAM,GAAG,OAAO,SAAS,CAAC;CACtD;AACD"}