@selvajs/selva 4.21.0-beta.18 → 4.21.0-beta.20

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 (31) hide show
  1. package/build/adapter-node.js +2 -2
  2. package/build/client/_app/version.json +1 -1
  3. package/build/client/_app/version.json.br +0 -0
  4. package/build/client/_app/version.json.gz +0 -0
  5. package/build/server/.vite/manifest.json +8 -34
  6. package/build/server/chunks/baseHDR.js +2 -2
  7. package/build/server/chunks/baseHDR.js.map +1 -1
  8. package/build/server/chunks/capture.js +1 -1
  9. package/build/server/chunks/functions.js +1 -1
  10. package/build/server/chunks/grasshopper.js +23 -1
  11. package/build/server/chunks/grasshopper.js.map +1 -1
  12. package/build/server/chunks/instance.js +5 -5
  13. package/build/server/chunks/internal.js +3 -3
  14. package/build/server/chunks/package.js +1 -1
  15. package/build/server/chunks/package.js.map +1 -1
  16. package/build/server/chunks/rhino3dm.js.map +1 -1
  17. package/build/server/chunks/server-errors.js +1 -19
  18. package/build/server/chunks/server-errors.js.map +1 -1
  19. package/build/server/chunks/solve.js +1 -1
  20. package/build/server/entries/endpoints/mcp/_server.ts.js +227 -42
  21. package/build/server/entries/endpoints/mcp/_server.ts.js.map +1 -1
  22. package/build/server/index.js +1 -1
  23. package/build/server/remote-entry.js +1559 -1
  24. package/build/server/remote-entry.js.map +1 -0
  25. package/package.json +4 -4
  26. package/build/client/_app/immutable/assets/baseHDR.Dkr46J8-.hdr +0 -0
  27. package/build/server/_app/immutable/assets/baseHDR.Dkr46J8-.hdr +0 -0
  28. package/build/server/chunks/remote.js +0 -1559
  29. package/build/server/chunks/remote.js.map +0 -1
  30. package/build/server/chunks/server5.js +0 -52
  31. package/build/server/chunks/server5.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { A as ENDPOINT_METHODS, At as invalid_export_location, Bt as text_encoder, C as has_prerendered_path, Ct as disable_search, D as throw_devalue_error, Dt as resolve, E as serialize_uses, Et as relative_pathname, Ft as strip_data_suffix, I as handle_error_and_jsonify, It as strip_resolution_suffix, J as normalize_error, Mt as add_resolution_suffix, N as PAGE_METHODS, Nt as has_data_suffix, O as with_version_header, Ot as find_route, P as REROUTED_URL_HEADER, Pt as has_resolution_suffix, Q as fetch_cache_url, Rt as base64_encode, S as get_node_type, St as decode_pathname, T as redirect_response, Tt as normalize_path, Ut as app_dir, Wt as assets, X as TRAILING_SLASH_PARAM, Y as INVALIDATED_PARAM, _ as handle_action_request, _t as stringify, a as set_hooks, at as init_transport, b as uneval_action_response, bt as options, ct as uneval, d as get_remote_action, f as get_remote_id, g as handle_action_json_request, h as action_json_redirect, i as read_implementation, it as has_custom_transporters, j as IN_WEBCONTAINER, jt as add_data_suffix, k as BODY_DEPENDENT_METHODS, kt as invalid_export, lt as negotiate, m as handle_remote_form_post, n as hooks, p as handle_remote_call, q as get_status, r as manifest, rt as encoders, u as collect_remote_data, v as is_action_json_request, w as method_not_allowed, wt as make_trackable, y as is_action_request, yt as get_hooks, zt as stream_text } from "./internal.js";
2
- import { C as prerender_endpoint_methods, E as prerender_template_nonce, J as set_headers_cookie, Q as capture_error, S as prerender_actions, T as prerender_nonce, _ as load_fetch_cors, b as load_promise_not_serializable, c as client_address_unsupported, d as cookies_set_after_response, f as csp_report_only_missing_report, g as header_already_set, p as endpoint_invalid_response, q as set_headers_after_response, u as cookies_serialize_before_route, w as prerender_endpoint_not_prerenderable, x as load_response_header_not_serialized } from "./server-errors.js";
1
+ import { A as ENDPOINT_METHODS, At as invalid_export_location, C as has_prerendered_path, Ct as disable_search, D as throw_devalue_error, Dt as resolve, E as serialize_uses, Et as relative_pathname, Ft as strip_data_suffix, Ht as app_dir, I as handle_error_and_jsonify, It as strip_resolution_suffix, J as normalize_error, Lt as base64_encode, Mt as add_resolution_suffix, N as PAGE_METHODS, Nt as has_data_suffix, O as with_version_header, Ot as find_route, P as REROUTED_URL_HEADER, Pt as has_resolution_suffix, Q as fetch_cache_url, Rt as stream_text, S as get_node_type, St as decode_pathname, T as redirect_response, Tt as normalize_path, Ut as assets, X as TRAILING_SLASH_PARAM, Y as INVALIDATED_PARAM, _ as handle_action_request, _t as stringify, a as set_hooks, at as init_transport, b as uneval_action_response, bt as options, ct as uneval, d as get_remote_action, f as get_remote_id, g as handle_action_json_request, h as action_json_redirect, i as read_implementation, it as has_custom_transporters, j as IN_WEBCONTAINER, jt as add_data_suffix, k as BODY_DEPENDENT_METHODS, kt as invalid_export, lt as negotiate, m as handle_remote_form_post, n as hooks, p as handle_remote_call, q as get_status, r as manifest, rt as encoders, u as collect_remote_data, v as is_action_json_request, w as method_not_allowed, wt as make_trackable, y as is_action_request, yt as get_hooks, zt as text_encoder } from "./internal.js";
2
+ import { C as prerender_endpoint_methods, E as prerender_template_nonce, G as set_headers_after_response, K as set_headers_cookie, S as prerender_actions, T as prerender_nonce, X as capture_error, _ as load_fetch_cors, b as load_promise_not_serializable, c as client_address_unsupported, d as cookies_set_after_response, f as csp_report_only_missing_report, g as header_already_set, p as endpoint_invalid_response, u as cookies_serialize_before_route, w as prerender_endpoint_not_prerenderable, x as load_response_header_not_serialized } from "./server-errors.js";
3
3
  import { t as uneval$1 } from "./uneval.js";
4
4
  import { n as noop, r as once } from "./functions.js";
5
5
  import { i as set_env, n as explicit_public_env, r as rendered_env } from "./config.js";
@@ -213,7 +213,7 @@ function server_data_serializer(event, state) {
213
213
  let promise_id = 1;
214
214
  let max_nodes = -1;
215
215
  const iterator = create_async_iterator();
216
- const global = "__sveltekit_l2wc46";
216
+ const global = "__sveltekit_fk9lbq";
217
217
  /** @param {number} index */
218
218
  function get_replacer(index) {
219
219
  /** @param {any} thing */
@@ -1443,7 +1443,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
1443
1443
  "crossorigin"
1444
1444
  ]);
1445
1445
  }
1446
- const global = "__sveltekit_l2wc46";
1446
+ const global = "__sveltekit_fk9lbq";
1447
1447
  const { data, chunks } = data_serializer.get_data(csp);
1448
1448
  if (page_config.ssr && page_config.csr) body += `\n\t\t\t${fetched.map((item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, !!(state.prerendering || state.prerender_default === true))).join("\n ")}`;
1449
1449
  if (page_config.csr && client) {
@@ -1467,7 +1467,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
1467
1467
  }
1468
1468
  }
1469
1469
  const blocks = [];
1470
- const properties = [`base: ${base_expression}`, `version: ${s("1795082151789")}`];
1470
+ const properties = [`base: ${base_expression}`, `version: ${s("1795160513911")}`];
1471
1471
  if (assets) properties.push(`assets: ${s(assets)}`);
1472
1472
  if (client.uses_env_dynamic_public) properties.push(`env: ${load_env_eagerly ? "null" : uneval$1(rendered_env)}`);
1473
1473
  if (chunks) {
@@ -1,4 +1,4 @@
1
- import { Q as capture_error, Z as url_search_unavailable_prerender, h as handle_error_hook_failed, i as action_response_not_serializable, n as action_default_with_named, r as action_name_reserved, s as action_throw_fail, t as action_data_not_serializable, v as load_not_plain_object, y as load_not_serializable } from "./server-errors.js";
1
+ import { X as capture_error, Y as url_search_unavailable_prerender, h as handle_error_hook_failed, i as action_response_not_serializable, n as action_default_with_named, r as action_name_reserved, s as action_throw_fail, t as action_data_not_serializable, v as load_not_plain_object, y as load_not_serializable } from "./server-errors.js";
2
2
  import { a as is_buffer, c as is_valid_array_len, d as valid_array_indices, f as MAX_ARRAY_INDEX, i as get_type, l as stringify_key, n as DevalueError, o as is_plain_object$1, r as enumerable_symbols, s as is_valid_array_index, t as uneval$1, u as stringify_string } from "./uneval.js";
3
3
  import { n as noop } from "./functions.js";
4
4
  import { error, text } from "@sveltejs/kit";
@@ -2363,7 +2363,7 @@ function redirect_response(status, location) {
2363
2363
  * @param {Response} response
2364
2364
  */
2365
2365
  function with_version_header(response) {
2366
- response.headers.set("x-sveltekit-version", "1795082151789");
2366
+ response.headers.set("x-sveltekit-version", "1795160513911");
2367
2367
  return response;
2368
2368
  }
2369
2369
  /**
@@ -3185,6 +3185,6 @@ function format_response(status, request) {
3185
3185
  } else log += requested;
3186
3186
  return log;
3187
3187
  }
3188
- export { parse_remote_arg as $, ENDPOINT_METHODS as A, invalid_export_location as At, cookie_path_mismatch as B, text_encoder as Bt, has_prerendered_path as C, disable_search as Ct, throw_devalue_error as D, resolve$1 as Dt, serialize_uses as E, relative_pathname as Et, SVELTE_KIT_ASSETS as F, strip_data_suffix as Ft, streaming_without_csr as G, set_assets as Gt, form_action_error_without_ssr as H, save as Ht, handle_error_and_jsonify as I, strip_resolution_suffix as It, normalize_error as J, transform_page_chunk_comments as K, enable_verbose_errors as Kt, cache_control_empty_directive as L, base64_decode as Lt, MUTATIVE_METHODS as M, add_resolution_suffix as Mt, PAGE_METHODS as N, has_data_suffix as Nt, with_version_header as O, find_route as Ot, REROUTED_URL_HEADER as P, has_resolution_suffix as Pt, fetch_cache_url as Q, cache_control_invalid_directive as R, base64_encode as Rt, get_node_type as S, decode_pathname as St, redirect_response as T, normalize_path as Tt, load_tracking_after_return as U, app_dir as Ut, form_action_data_without_ssr as V, restore as Vt, ssr_fetch_eager as W, assets as Wt, TRAILING_SLASH_PARAM as X, INVALIDATED_PARAM as Y, create_remote_key as Z, handle_action_request as _, stringify$1 as _t, set_hooks as a, init_transport as at, uneval_action_response as b, options as bt, fix_stack_trace as c, uneval as ct, get_remote_action as d, deep_set as dt, stringify_remote_arg as et, get_remote_id as f, flatten_issues as ft, handle_action_json_request as g, split_path as gt, action_json_redirect as h, parse_form_key as ht, read_implementation as i, has_custom_transporters as it, IN_WEBCONTAINER as j, add_data_suffix as jt, BODY_DEPENDENT_METHODS as k, invalid_export as kt, set_fix_stack_trace as l, negotiate as lt, handle_remote_form_post as m, normalize_issue as mt, hooks as n, validate_load_response as nt, set_manifest as o, parse as ot, handle_remote_call as p, group_formdata as pt, get_status as q, manifest as r, encoders as rt, set_read_implementation as s, stringify as st, format_response as t, validate_depends as tt, collect_remote_data as u, create_field_proxy as ut, is_action_json_request as v, resolve as vt, method_not_allowed as w, make_trackable as wt, count_non_ssi_comments as x, SCHEME as xt, is_action_request as y, get_hooks as yt, content_type_invalid as z, stream_text as zt };
3188
+ export { parse_remote_arg as $, ENDPOINT_METHODS as A, invalid_export_location as At, cookie_path_mismatch as B, restore as Bt, has_prerendered_path as C, disable_search as Ct, throw_devalue_error as D, resolve$1 as Dt, serialize_uses as E, relative_pathname as Et, SVELTE_KIT_ASSETS as F, strip_data_suffix as Ft, streaming_without_csr as G, enable_verbose_errors as Gt, form_action_error_without_ssr as H, app_dir as Ht, handle_error_and_jsonify as I, strip_resolution_suffix as It, normalize_error as J, transform_page_chunk_comments as K, cache_control_empty_directive as L, base64_encode as Lt, MUTATIVE_METHODS as M, add_resolution_suffix as Mt, PAGE_METHODS as N, has_data_suffix as Nt, with_version_header as O, find_route as Ot, REROUTED_URL_HEADER as P, has_resolution_suffix as Pt, fetch_cache_url as Q, cache_control_invalid_directive as R, stream_text as Rt, get_node_type as S, decode_pathname as St, redirect_response as T, normalize_path as Tt, load_tracking_after_return as U, assets as Ut, form_action_data_without_ssr as V, save as Vt, ssr_fetch_eager as W, set_assets as Wt, TRAILING_SLASH_PARAM as X, INVALIDATED_PARAM as Y, create_remote_key as Z, handle_action_request as _, stringify$1 as _t, set_hooks as a, init_transport as at, uneval_action_response as b, options as bt, fix_stack_trace as c, uneval as ct, get_remote_action as d, deep_set as dt, stringify_remote_arg as et, get_remote_id as f, flatten_issues as ft, handle_action_json_request as g, split_path as gt, action_json_redirect as h, parse_form_key as ht, read_implementation as i, has_custom_transporters as it, IN_WEBCONTAINER as j, add_data_suffix as jt, BODY_DEPENDENT_METHODS as k, invalid_export as kt, set_fix_stack_trace as l, negotiate as lt, handle_remote_form_post as m, normalize_issue as mt, hooks as n, validate_load_response as nt, set_manifest as o, parse as ot, handle_remote_call as p, group_formdata as pt, get_status as q, manifest as r, encoders as rt, set_read_implementation as s, stringify as st, format_response as t, validate_depends as tt, collect_remote_data as u, create_field_proxy as ut, is_action_json_request as v, resolve as vt, method_not_allowed as w, make_trackable as wt, count_non_ssi_comments as x, SCHEME as xt, is_action_request as y, get_hooks as yt, content_type_invalid as z, text_encoder as zt };
3189
3189
 
3190
3190
  //# sourceMappingURL=internal.js.map
@@ -1,6 +1,6 @@
1
1
  var package_default = {
2
2
  name: "@selvajs/selva",
3
- version: "4.21.0-beta.18",
3
+ version: "4.21.0-beta.20",
4
4
  description: "Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.",
5
5
  license: "MIT",
6
6
  author: "VektorNode",
@@ -1 +1 @@
1
- {"version":3,"file":"package.js","names":[],"sources":["../../../package.json"],"sourcesContent":["{\n\t\"name\": \"@selvajs/selva\",\n\t\"version\": \"4.21.0-beta.18\",\n\t\"description\": \"Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.\",\n\t\"license\": \"MIT\",\n\t\"author\": \"VektorNode\",\n\t\"homepage\": \"https://selva.dev\",\n\t\"bugs\": \"https://github.com/VektorNode/selva/issues\",\n\t\"keywords\": [\n\t\t\"grasshopper\",\n\t\t\"rhino\",\n\t\t\"rhino-compute\",\n\t\t\"parametric-design\",\n\t\t\"web-app\",\n\t\t\"sveltekit\"\n\t],\n\t\"publishConfig\": {\n\t\t\"access\": \"public\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"git+https://github.com/VektorNode/selva.git\",\n\t\t\"directory\": \"packages/selva\"\n\t},\n\t\"type\": \"module\",\n\t\"main\": \"./build/index.js\",\n\t\"files\": [\n\t\t\"build\",\n\t\t\"templates\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=24.0.0\"\n\t},\n\t\"selva\": {\n\t\t\"dataFormat\": 3\n\t},\n\t\"scripts\": {\n\t\t\"dev\": \"vite dev\",\n\t\t\"dev:lan\": \"vite dev --host\",\n\t\t\"build\": \"rimraf build && vite build && node ./scripts/generate-templates.js && node ./scripts/write-runtime-meta.js\",\n\t\t\"preview\": \"vite preview\",\n\t\t\"start\": \"node build/index.js\",\n\t\t\"clean\": \"rimraf build templates\",\n\t\t\"prepare\": \"svelte-kit sync || echo ''\",\n\t\t\"check\": \"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json\",\n\t\t\"test\": \"vitest run\",\n\t\t\"test:watch\": \"vitest\",\n\t\t\"openapi:generate\": \"node scripts/generate-openapi.js\",\n\t\t\"test:e2e\": \"playwright test\",\n\t\t\"lint\": \"eslint .\",\n\t\t\"lint:types\": \"eslint . --config eslint.typed.config.js\",\n\t\t\"generate:cli-config\": \"node scripts/generate-cli-config.js\"\n\t},\n\t\"dependencies\": {\n\t\t\"@lucide/svelte\": \"catalog:\",\n\t\t\"@supabase/supabase-js\": \"catalog:\",\n\t\t\"@sveltejs/kit\": \"catalog:\",\n\t\t\"bits-ui\": \"catalog:\",\n\t\t\"clsx\": \"catalog:\",\n\t\t\"mode-watcher\": \"catalog:\",\n\t\t\"nodemailer\": \"catalog:\",\n\t\t\"pino\": \"^10.4.0\",\n\t\t\"playwright-core\": \"catalog:\",\n\t\t\"rhino3dm\": \"catalog:\",\n\t\t\"sharp\": \"catalog:\",\n\t\t\"tailwind-merge\": \"catalog:\",\n\t\t\"tailwind-variants\": \"catalog:\",\n\t\t\"three\": \"catalog:\",\n\t\t\"zod\": \"catalog:\"\n\t},\n\t\"optionalDependencies\": {\n\t\t\"@sentry/node\": \"^11.10.0\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@playwright/test\": \"catalog:\",\n\t\t\"@selvajs/compute\": \"workspace:*\",\n\t\t\"@selvajs/config\": \"workspace:*\",\n\t\t\"@selvajs/header-auth-provider\": \"workspace:*\",\n\t\t\"@selvajs/local-provider\": \"workspace:*\",\n\t\t\"@selvajs/mcp\": \"workspace:*\",\n\t\t\"@selvajs/notifications\": \"workspace:*\",\n\t\t\"@selvajs/platform\": \"workspace:*\",\n\t\t\"@selvajs/schemas\": \"workspace:*\",\n\t\t\"@selvajs/server\": \"workspace:*\",\n\t\t\"@selvajs/solve\": \"workspace:*\",\n\t\t\"@selvajs/supabase-provider\": \"workspace:*\",\n\t\t\"@selvajs/ui\": \"workspace:*\",\n\t\t\"@selvajs/visualization\": \"workspace:*\",\n\t\t\"@sveltejs/adapter-node\": \"catalog:\",\n\t\t\"@types/nodemailer\": \"catalog:\",\n\t\t\"@types/three\": \"catalog:\",\n\t\t\"rimraf\": \"catalog:\",\n\t\t\"tw-animate-css\": \"catalog:\",\n\t\t\"vitest\": \"catalog:\"\n\t},\n\t\"imports\": {\n\t\t\"#lib/*\": \"./src/lib/*\"\n\t}\n}\n"],"mappings":""}
1
+ {"version":3,"file":"package.js","names":[],"sources":["../../../package.json"],"sourcesContent":["{\n\t\"name\": \"@selvajs/selva\",\n\t\"version\": \"4.21.0-beta.20\",\n\t\"description\": \"Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.\",\n\t\"license\": \"MIT\",\n\t\"author\": \"VektorNode\",\n\t\"homepage\": \"https://selva.dev\",\n\t\"bugs\": \"https://github.com/VektorNode/selva/issues\",\n\t\"keywords\": [\n\t\t\"grasshopper\",\n\t\t\"rhino\",\n\t\t\"rhino-compute\",\n\t\t\"parametric-design\",\n\t\t\"web-app\",\n\t\t\"sveltekit\"\n\t],\n\t\"publishConfig\": {\n\t\t\"access\": \"public\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"git+https://github.com/VektorNode/selva.git\",\n\t\t\"directory\": \"packages/selva\"\n\t},\n\t\"type\": \"module\",\n\t\"main\": \"./build/index.js\",\n\t\"files\": [\n\t\t\"build\",\n\t\t\"templates\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=24.0.0\"\n\t},\n\t\"selva\": {\n\t\t\"dataFormat\": 3\n\t},\n\t\"scripts\": {\n\t\t\"dev\": \"vite dev\",\n\t\t\"dev:lan\": \"vite dev --host\",\n\t\t\"build\": \"rimraf build && vite build && node ./scripts/generate-templates.js && node ./scripts/write-runtime-meta.js\",\n\t\t\"preview\": \"vite preview\",\n\t\t\"start\": \"node build/index.js\",\n\t\t\"clean\": \"rimraf build templates\",\n\t\t\"prepare\": \"svelte-kit sync || echo ''\",\n\t\t\"check\": \"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json\",\n\t\t\"test\": \"vitest run\",\n\t\t\"test:watch\": \"vitest\",\n\t\t\"openapi:generate\": \"node scripts/generate-openapi.js\",\n\t\t\"test:e2e\": \"playwright test\",\n\t\t\"lint\": \"eslint .\",\n\t\t\"lint:types\": \"eslint . --config eslint.typed.config.js\",\n\t\t\"generate:cli-config\": \"node scripts/generate-cli-config.js\"\n\t},\n\t\"dependencies\": {\n\t\t\"@lucide/svelte\": \"catalog:\",\n\t\t\"@supabase/supabase-js\": \"catalog:\",\n\t\t\"@sveltejs/kit\": \"catalog:\",\n\t\t\"bits-ui\": \"catalog:\",\n\t\t\"clsx\": \"catalog:\",\n\t\t\"mode-watcher\": \"catalog:\",\n\t\t\"nodemailer\": \"catalog:\",\n\t\t\"pino\": \"^10.4.0\",\n\t\t\"playwright-core\": \"catalog:\",\n\t\t\"rhino3dm\": \"catalog:\",\n\t\t\"sharp\": \"catalog:\",\n\t\t\"tailwind-merge\": \"catalog:\",\n\t\t\"tailwind-variants\": \"catalog:\",\n\t\t\"three\": \"catalog:\",\n\t\t\"zod\": \"catalog:\"\n\t},\n\t\"optionalDependencies\": {\n\t\t\"@sentry/node\": \"^11.10.0\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@playwright/test\": \"catalog:\",\n\t\t\"@selvajs/compute\": \"workspace:*\",\n\t\t\"@selvajs/config\": \"workspace:*\",\n\t\t\"@selvajs/header-auth-provider\": \"workspace:*\",\n\t\t\"@selvajs/local-provider\": \"workspace:*\",\n\t\t\"@selvajs/mcp\": \"workspace:*\",\n\t\t\"@selvajs/notifications\": \"workspace:*\",\n\t\t\"@selvajs/platform\": \"workspace:*\",\n\t\t\"@selvajs/schemas\": \"workspace:*\",\n\t\t\"@selvajs/server\": \"workspace:*\",\n\t\t\"@selvajs/solve\": \"workspace:*\",\n\t\t\"@selvajs/supabase-provider\": \"workspace:*\",\n\t\t\"@selvajs/ui\": \"workspace:*\",\n\t\t\"@selvajs/visualization\": \"workspace:*\",\n\t\t\"@sveltejs/adapter-node\": \"catalog:\",\n\t\t\"@types/nodemailer\": \"catalog:\",\n\t\t\"@types/three\": \"catalog:\",\n\t\t\"rimraf\": \"catalog:\",\n\t\t\"tw-animate-css\": \"catalog:\",\n\t\t\"vitest\": \"catalog:\"\n\t},\n\t\"imports\": {\n\t\t\"#lib/*\": \"./src/lib/*\"\n\t}\n}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"rhino3dm.js","names":[],"sources":["../../../../../node_modules/.pnpm/rhino3dm@8.35.0/node_modules/rhino3dm/rhino3dm.wasm?url"],"sourcesContent":["export default import.meta.ROLLDOWN_FILE_URL_WPGYjwIlzWVNM1bYhOc83w"],"ignoreList":[0],"mappings":";AAAA,IAAA,mBAAe"}
1
+ {"version":3,"file":"rhino3dm.js","names":[],"sources":["../../../../../node_modules/.pnpm/rhino3dm@8.35.0/node_modules/rhino3dm/rhino3dm.wasm?url"],"sourcesContent":["export default import.meta.ROLLDOWN_FILE_URL_VRAku6fjghkApIISiBWPzg"],"ignoreList":[0],"mappings":";AAAA,IAAA,mBAAe"}
@@ -267,24 +267,6 @@ function prerender_template_nonce(_values, options) {
267
267
  throw_error("prerender_template_nonce", `Cannot use prerendering if page template contains \`${_values.tag}\``, options, prerender_template_nonce);
268
268
  }
269
269
  /**
270
- * Asset does not exist: `%file%`
271
- * @param {{ "file": string }} _values
272
- * @param {ServerThrowOptions} [options]
273
- * @returns {never}
274
- */
275
- function read_asset_missing(_values, options) {
276
- throw_error("read_asset_missing", `Asset does not exist: \`${_values.file}\``, options, read_asset_missing);
277
- }
278
- /**
279
- * No `read` implementation was provided. Please ensure that your adapter is up to date and supports this feature
280
- * @param {void} _values
281
- * @param {ServerThrowOptions} [options]
282
- * @returns {never}
283
- */
284
- function read_implementation_missing(_values, options) {
285
- throw_error("read_implementation_missing", `No \`read\` implementation was provided. Please ensure that your adapter is up to date and supports this feature`, options, read_implementation_missing);
286
- }
287
- /**
288
270
  * Cannot call a command (`%name%`) from a `%method%` handler
289
271
  * @param {{ "name": string; "method": string }} _values
290
272
  * @param {ServerThrowOptions} [options]
@@ -491,6 +473,6 @@ function state_read_outside_render(_values, options) {
491
473
  function url_search_unavailable_prerender(_values, options) {
492
474
  throw_error("url_search_unavailable_prerender", `Cannot access \`url.${_values.property}\` on a page with prerendering enabled`, options, url_search_unavailable_prerender);
493
475
  }
494
- export { remote_command_readonly as A, remote_request_property as B, prerender_endpoint_methods as C, read_asset_missing as D, prerender_template_nonce as E, remote_headers_forbidden as F, remote_requested_wrong_method as G, remote_requested_context as H, remote_invalid_validator as I, set_headers_cookie as J, server_api_unavailable as K, remote_query_live_no_value as L, remote_cookie_forbidden as M, remote_cookie_path_relative as N, read_implementation_missing as O, remote_form_fail as P, capture_error as Q, remote_query_live_not_iterable as R, prerender_actions as S, prerender_nonce as T, remote_requested_invalid_limit as U, remote_requested_async_validator as V, remote_requested_invalid_query as W, state_read_outside_render as X, ssr_fetch_relative_url as Y, url_search_unavailable_prerender as Z, load_fetch_cors as _, action_return_error as a, load_promise_not_serializable as b, client_address_unsupported as c, cookies_set_after_response as d, csp_report_only_missing_report as f, header_already_set as g, handle_error_hook_failed as h, action_response_not_serializable as i, remote_command_render as j, remote_command_method as k, cookie_too_large as l, fetch_response_decoded as m, action_default_with_named as n, action_return_redirect as o, endpoint_invalid_response as p, set_headers_after_response as q, action_name_reserved as r, action_throw_fail as s, action_data_not_serializable as t, cookies_serialize_before_route as u, load_not_plain_object as v, prerender_endpoint_not_prerenderable as w, load_response_header_not_serialized as x, load_not_serializable as y, remote_query_prerender as z };
476
+ export { remote_cookie_forbidden as A, remote_requested_context as B, prerender_endpoint_methods as C, remote_command_method as D, prerender_template_nonce as E, remote_query_live_no_value as F, set_headers_after_response as G, remote_requested_invalid_query as H, remote_query_live_not_iterable as I, state_read_outside_render as J, set_headers_cookie as K, remote_query_prerender as L, remote_form_fail as M, remote_headers_forbidden as N, remote_command_readonly as O, remote_invalid_validator as P, remote_request_property as R, prerender_actions as S, prerender_nonce as T, remote_requested_wrong_method as U, remote_requested_invalid_limit as V, server_api_unavailable as W, capture_error as X, url_search_unavailable_prerender as Y, load_fetch_cors as _, action_return_error as a, load_promise_not_serializable as b, client_address_unsupported as c, cookies_set_after_response as d, csp_report_only_missing_report as f, header_already_set as g, handle_error_hook_failed as h, action_response_not_serializable as i, remote_cookie_path_relative as j, remote_command_render as k, cookie_too_large as l, fetch_response_decoded as m, action_default_with_named as n, action_return_redirect as o, endpoint_invalid_response as p, ssr_fetch_relative_url as q, action_name_reserved as r, action_throw_fail as s, action_data_not_serializable as t, cookies_serialize_before_route as u, load_not_plain_object as v, prerender_endpoint_not_prerenderable as w, load_response_header_not_serialized as x, load_not_serializable as y, remote_requested_async_validator as z };
495
477
 
496
478
  //# sourceMappingURL=server-errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-errors.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.1.1_@opentelemetry+api@1.10.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte_f967bc3fd8a221ab5730ab7d29103078/node_modules/@sveltejs/kit/src/messages/internal/server.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.1.1_@opentelemetry+api@1.10.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte_f967bc3fd8a221ab5730ab7d29103078/node_modules/@sveltejs/kit/src/messages/server-errors.js"],"sourcesContent":["/**\n * @typedef {{ cause?: unknown; stackless?: boolean }} ServerThrowOptions\n */\n\n/**\n * Throws the full diagnostic. Unlike shared errors, server-only errors keep their full text in production\n * @param {string} code\n * @param {string} message\n * @param {ServerThrowOptions | undefined} options\n * @param {Function} caller The generated helper, which is omitted from the stack along with this function\n * @returns {never}\n */\nexport function throw_error(code, message, options, caller) {\n\tconst error = new Error(\n\t\t`${code}\\n${message}\\nhttps://svelte.dev/e/kit/${code}`,\n\t\toptions?.cause === undefined ? undefined : { cause: options.cause }\n\t);\n\terror.name = 'SvelteKit error';\n\n\tif (options?.stackless) error.stack = '';\n\t// not available in every runtime, in which case the stack also includes these two frames\n\telse Error.captureStackTrace?.(error, caller);\n\n\tthrow error;\n}\n\n/**\n * Returns the error thrown by `fn`, for the few places that pass an error on (for example to\n * `handleError` or a later `console.error`) rather than throwing it. Its stack starts inside `fn`\n * @param {() => never} fn A function that calls a generated `server-errors` helper\n * @returns {Error}\n */\nexport function capture_error(fn) {\n\ttry {\n\t\tfn();\n\t} catch (error) {\n\t\treturn /** @type {Error} */ (error);\n\t}\n}\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\n/** @import { ServerThrowOptions } from './internal/server.js' */\nimport { throw_error } from './internal/server.js';\n\n/**\n * Data returned from action inside `%id%` is not serializable: %message%\n * @param {{ \"id\": string; \"message\": string; \"path\"?: string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_data_not_serializable(_values, options) {\n\tthrow_error('action_data_not_serializable', (_values?.path !== undefined ? `Data returned from action inside \\`${_values.id}\\` is not serializable: ${_values.message} (\\`${_values.path}\\`)` : `Data returned from action inside \\`${_values.id}\\` is not serializable: ${_values.message}`), options, action_data_not_serializable);\n}\n\n/**\n * When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#Named-actions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_default_with_named(_values, options) {\n\tthrow_error('action_default_with_named', `When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#Named-actions`, options, action_default_with_named);\n}\n\n/**\n * Cannot use reserved action name `default`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_name_reserved(_values, options) {\n\tthrow_error('action_name_reserved', `Cannot use reserved action name \\`default\\``, options, action_name_reserved);\n}\n\n/**\n * Data returned from action inside `%id%` is not serializable. Form actions need to return plain objects or `fail()`. E.g. `return { success: true }` or `return fail(400, { message: \"invalid\" });`\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_response_not_serializable(_values, options) {\n\tthrow_error('action_response_not_serializable', `Data returned from action inside \\`${_values.id}\\` is not serializable. Form actions need to return plain objects or \\`fail()\\`. E.g. \\`return { success: true }\\` or \\`return fail(400, { message: \"invalid\" });\\``, options, action_response_not_serializable);\n}\n\n/**\n * Cannot `return error(...)` — use `error(...)` or `return fail(...)` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_return_error(_values, options) {\n\tthrow_error('action_return_error', `Cannot \\`return error(...)\\` — use \\`error(...)\\` or \\`return fail(...)\\` instead`, options, action_return_error);\n}\n\n/**\n * Cannot `return redirect(...)` — use `redirect(...)` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_return_redirect(_values, options) {\n\tthrow_error('action_return_redirect', `Cannot \\`return redirect(...)\\` — use \\`redirect(...)\\` instead`, options, action_return_redirect);\n}\n\n/**\n * Cannot `throw fail()`. Use `return fail()`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_throw_fail(_values, options) {\n\tthrow_error('action_throw_fail', `Cannot \\`throw fail()\\`. Use \\`return fail()\\``, options, action_throw_fail);\n}\n\n/**\n * `%adapter%` does not specify `getClientAddress`. Please raise an issue\n * @param {{ \"adapter\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function client_address_unsupported(_values, options) {\n\tthrow_error('client_address_unsupported', `\\`${_values.adapter}\\` does not specify \\`getClientAddress\\`. Please raise an issue`, options, client_address_unsupported);\n}\n\n/**\n * Cookie `%name%` is too large, and will be discarded by the browser\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookie_too_large(_values, options) {\n\tthrow_error('cookie_too_large', `Cookie \\`${_values.name}\\` is too large, and will be discarded by the browser`, options, cookie_too_large);\n}\n\n/**\n * Cannot serialize cookies until after the route is determined\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookies_serialize_before_route(_values, options) {\n\tthrow_error('cookies_serialize_before_route', `Cannot serialize cookies until after the route is determined`, options, cookies_serialize_before_route);\n}\n\n/**\n * Cannot use `cookies.set(...)` after the response has been generated\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookies_set_after_response(_values, options) {\n\tthrow_error('cookies_set_after_response', `Cannot use \\`cookies.set(...)\\` after the response has been generated`, options, cookies_set_after_response);\n}\n\n/**\n * `content-security-policy-report-only` must be specified with either the `report-to` or `report-uri` directives, or both\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function csp_report_only_missing_report(_values, options) {\n\tthrow_error('csp_report_only_missing_report', `\\`content-security-policy-report-only\\` must be specified with either the \\`report-to\\` or \\`report-uri\\` directives, or both`, options, csp_report_only_missing_report);\n}\n\n/**\n * `defineEnvVars` has moved — import it from `@sveltejs/kit/env` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function define_env_vars_moved(_values, options) {\n\tthrow_error('define_env_vars_moved', `\\`defineEnvVars\\` has moved — import it from \\`@sveltejs/kit/env\\` instead`, options, define_env_vars_moved);\n}\n\n/**\n * Invalid response from route `%path%`: handler should return a `Response` object\n * @param {{ \"path\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function endpoint_invalid_response(_values, options) {\n\tthrow_error('endpoint_invalid_response', `Invalid response from route \\`${_values.path}\\`: handler should return a \\`Response\\` object`, options, endpoint_invalid_response);\n}\n\n/**\n * Invalid environment variables:\n%issues%\n * @param {{ \"issues\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function env_invalid(_values, options) {\n\tthrow_error('env_invalid', `Invalid environment variables:\n${_values.issues}`, options, env_invalid);\n}\n\n/**\n * Cannot return `fetch(...)` directly from a handler if the response has a `Content-Encoding: %encoding%` header. The body has already been decoded\n * @param {{ \"encoding\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function fetch_response_decoded(_values, options) {\n\tthrow_error('fetch_response_decoded', `Cannot return \\`fetch(...)\\` directly from a handler if the response has a \\`Content-Encoding: ${_values.encoding}\\` header. The body has already been decoded`, options, fetch_response_decoded);\n}\n\n/**\n * The `handleError` hook failed\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function handle_error_hook_failed(_values, options) {\n\tthrow_error('handle_error_hook_failed', `The \\`handleError\\` hook failed`, options, handle_error_hook_failed);\n}\n\n/**\n * `%name%` header is already set\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function header_already_set(_values, options) {\n\tthrow_error('header_already_set', `\\`${_values.name}\\` header is already set`, options, header_already_set);\n}\n\n/**\n * CORS error: %reason% `Access-Control-Allow-Origin` header is present on the requested resource\n * @param {{ \"reason\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_fetch_cors(_values, options) {\n\tthrow_error('load_fetch_cors', `CORS error: ${_values.reason} \\`Access-Control-Allow-Origin\\` header is present on the requested resource`, options, load_fetch_cors);\n}\n\n/**\n * Data returned from `load` while rendering `%id%` is not a plain object\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_not_plain_object(_values, options) {\n\tthrow_error('load_not_plain_object', `Data returned from \\`load\\` while rendering \\`${_values.id}\\` is not a plain object`, options, load_not_plain_object);\n}\n\n/**\n * Data returned from `load` while rendering `%id%` is not serializable: %message% (`%path%`). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#transport.\n * @param {{ \"id\": string; \"message\": string; \"path\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_not_serializable(_values, options) {\n\tthrow_error('load_not_serializable', `Data returned from \\`load\\` while rendering \\`${_values.id}\\` is not serializable: ${_values.message} (\\`${_values.path}\\`). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#transport.`, options, load_not_serializable);\n}\n\n/**\n * Failed to serialize promise while rendering `%id%`\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_promise_not_serializable(_values, options) {\n\tthrow_error('load_promise_not_serializable', `Failed to serialize promise while rendering \\`${_values.id}\\``, options, load_promise_not_serializable);\n}\n\n/**\n * Failed to get response header `%name%` — it must be included by the `filterSerializedResponseHeaders` option: https://svelte.dev/docs/kit/hooks#handle (at `%id%`)\n * @param {{ \"name\": string; \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_response_header_not_serialized(_values, options) {\n\tthrow_error('load_response_header_not_serialized', `Failed to get response header \\`${_values.name}\\` — it must be included by the \\`filterSerializedResponseHeaders\\` option: https://svelte.dev/docs/kit/hooks#handle (at \\`${_values.id}\\`)`, options, load_response_header_not_serialized);\n}\n\n/**\n * Cannot prerender pages with actions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_actions(_values, options) {\n\tthrow_error('prerender_actions', `Cannot prerender pages with actions`, options, prerender_actions);\n}\n\n/**\n * Cannot prerender a `+server` file with %methods% or fallback handlers (`%id%`)\n * @param {{ \"methods\": string; \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_endpoint_methods(_values, options) {\n\tthrow_error('prerender_endpoint_methods', `Cannot prerender a \\`+server\\` file with ${_values.methods} or fallback handlers (\\`${_values.id}\\`)`, options, prerender_endpoint_methods);\n}\n\n/**\n * `%id%` is not prerenderable\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_endpoint_not_prerenderable(_values, options) {\n\tthrow_error('prerender_endpoint_not_prerenderable', `\\`${_values.id}\\` is not prerenderable`, options, prerender_endpoint_not_prerenderable);\n}\n\n/**\n * Cannot use prerendering if `config.csp.mode === 'nonce'`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_nonce(_values, options) {\n\tthrow_error('prerender_nonce', `Cannot use prerendering if \\`config.csp.mode === 'nonce'\\``, options, prerender_nonce);\n}\n\n/**\n * Cannot use prerendering if page template contains `%tag%`\n * @param {{ \"tag\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_template_nonce(_values, options) {\n\tthrow_error('prerender_template_nonce', `Cannot use prerendering if page template contains \\`${_values.tag}\\``, options, prerender_template_nonce);\n}\n\n/**\n * Asset does not exist: `%file%`\n * @param {{ \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function read_asset_missing(_values, options) {\n\tthrow_error('read_asset_missing', `Asset does not exist: \\`${_values.file}\\``, options, read_asset_missing);\n}\n\n/**\n * No `read` implementation was provided. Please ensure that your adapter is up to date and supports this feature\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function read_implementation_missing(_values, options) {\n\tthrow_error('read_implementation_missing', `No \\`read\\` implementation was provided. Please ensure that your adapter is up to date and supports this feature`, options, read_implementation_missing);\n}\n\n/**\n * Cannot call a command (`%name%`) from a `%method%` handler\n * @param {{ \"name\": string; \"method\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_method(_values, options) {\n\tthrow_error('remote_command_method', `Cannot call a command (\\`${_values.name}\\`) from a \\`${_values.method}\\` handler`, options, remote_command_method);\n}\n\n/**\n * Cannot call a command (`%name%`) inside a query or prerender function\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_readonly(_values, options) {\n\tthrow_error('remote_command_readonly', `Cannot call a command (\\`${_values.name}\\`) inside a query or prerender function`, options, remote_command_readonly);\n}\n\n/**\n * Cannot call a command (`%name%`) during server-side rendering\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_render(_values, options) {\n\tthrow_error('remote_command_render', `Cannot call a command (\\`${_values.name}\\`) during server-side rendering`, options, remote_command_render);\n}\n\n/**\n * Cannot %operation% cookies in `query` or `prerender` functions\n * @param {{ \"operation\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_cookie_forbidden(_values, options) {\n\tthrow_error('remote_cookie_forbidden', `Cannot ${_values.operation} cookies in \\`query\\` or \\`prerender\\` functions`, options, remote_cookie_forbidden);\n}\n\n/**\n * Cookies %operation% in remote functions must have an absolute path\n * @param {{ \"operation\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_cookie_path_relative(_values, options) {\n\tthrow_error('remote_cookie_path_relative', `Cookies ${_values.operation} in remote functions must have an absolute path`, options, remote_cookie_path_relative);\n}\n\n/**\n * `fail(...)` is for form actions. A remote `form` handler should call `invalid(...)` instead. See https://svelte.dev/docs/kit/remote-functions#form-Programmatic-validation\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_form_fail(_values, options) {\n\tthrow_error('remote_form_fail', `\\`fail(...)\\` is for form actions. A remote \\`form\\` handler should call \\`invalid(...)\\` instead. See https://svelte.dev/docs/kit/remote-functions#form-Programmatic-validation`, options, remote_form_fail);\n}\n\n/**\n * `setHeaders` is not allowed in remote functions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_headers_forbidden(_values, options) {\n\tthrow_error('remote_headers_forbidden', `\\`setHeaders\\` is not allowed in remote functions`, options, remote_headers_forbidden);\n}\n\n/**\n * Invalid validator passed to remote function. Expected `'unchecked'` or a Standard Schema (https://standardschema.dev)\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_invalid_validator(_values, options) {\n\tthrow_error('remote_invalid_validator', `Invalid validator passed to remote function. Expected \\`'unchecked'\\` or a Standard Schema (https://standardschema.dev)`, options, remote_invalid_validator);\n}\n\n/**\n * Cannot export `default` from a remote module (`%file%`) — please use named exports instead\n * @param {{ \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_module_default_export(_values, options) {\n\tthrow_error('remote_module_default_export', `Cannot export \\`default\\` from a remote module (\\`${_values.file}\\`) — please use named exports instead`, options, remote_module_default_export);\n}\n\n/**\n * `%name%` exported from `%file%` is invalid — all exports from this file must be remote functions\n * @param {{ \"name\": string; \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_module_invalid_export(_values, options) {\n\tthrow_error('remote_module_invalid_export', `\\`${_values.name}\\` exported from \\`${_values.file}\\` is invalid — all exports from this file must be remote functions`, options, remote_module_invalid_export);\n}\n\n/**\n * `query.live` `%name%` did not yield a value\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_live_no_value(_values, options) {\n\tthrow_error('remote_query_live_no_value', `\\`query.live\\` \\`${_values.name}\\` did not yield a value`, options, remote_query_live_no_value);\n}\n\n/**\n * `query.live` `%name%` must return an `Iterator`, `Iterable`, `AsyncIterator` or `AsyncIterable`\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_live_not_iterable(_values, options) {\n\tthrow_error('remote_query_live_not_iterable', `\\`query.live\\` \\`${_values.name}\\` must return an \\`Iterator\\`, \\`Iterable\\`, \\`AsyncIterator\\` or \\`AsyncIterable\\``, options, remote_query_live_not_iterable);\n}\n\n/**\n * Cannot call `%type%` `%name%` while prerendering, as prerendered pages need static data. Use `prerender` from `$app/server` instead\n * @param {{ \"type\": string; \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_prerender(_values, options) {\n\tthrow_error('remote_query_prerender', `Cannot call \\`${_values.type}\\` \\`${_values.name}\\` while prerendering, as prerendered pages need static data. Use \\`prerender\\` from \\`$app/server\\` instead`, options, remote_query_prerender);\n}\n\n/**\n * Cannot access `event.%property%` in a query. Pass the value as an argument to the query instead\n * @param {{ \"property\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_request_property(_values, options) {\n\tthrow_error('remote_request_property', `Cannot access \\`event.${_values.property}\\` in a query. Pass the value as an argument to the query instead`, options, remote_request_property);\n}\n\n/**\n * `requested(%name%, %limit%)` cannot be used with synchronous iteration because the query validator is async. Use `for await ... of` instead\n * @param {{ \"name\": string; \"limit\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_async_validator(_values, options) {\n\tthrow_error('remote_requested_async_validator', `\\`requested(${_values.name}, ${_values.limit})\\` cannot be used with synchronous iteration because the query validator is async. Use \\`for await ... of\\` instead`, options, remote_requested_async_validator);\n}\n\n/**\n * `requested(...)` can only be called in the context of a command/form remote function\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_context(_values, options) {\n\tthrow_error('remote_requested_context', `\\`requested(...)\\` can only be called in the context of a command/form remote function`, options, remote_requested_context);\n}\n\n/**\n * Limit must be a non-negative integer or `Infinity`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_invalid_limit(_values, options) {\n\tthrow_error('remote_requested_invalid_limit', `Limit must be a non-negative integer or \\`Infinity\\``, options, remote_requested_invalid_limit);\n}\n\n/**\n * `requested(...)` expects a query function created with `query(...)`, `query.batch(...)`, or `query.live(...)`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_invalid_query(_values, options) {\n\tthrow_error('remote_requested_invalid_query', `\\`requested(...)\\` expects a query function created with \\`query(...)\\`, \\`query.batch(...)\\`, or \\`query.live(...)\\``, options, remote_requested_invalid_query);\n}\n\n/**\n * `%method%()` is invalid for %type% queries. Use `%replacement%()` instead.\n * @param {{ \"method\": string; \"type\": string; \"replacement\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_wrong_method(_values, options) {\n\tthrow_error('remote_requested_wrong_method', `\\`${_values.method}()\\` is invalid for ${_values.type} queries. Use \\`${_values.replacement}()\\` instead.`, options, remote_requested_wrong_method);\n}\n\n/**\n * Can only read the current request event inside functions invoked during `handle`, such as server `load` functions, actions, endpoints, and other server hooks. In environments without `AsyncLocalStorage`, the event must be read synchronously, not after an `await`.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_event_after_await(_values, options) {\n\tthrow_error('request_event_after_await', `Can only read the current request event inside functions invoked during \\`handle\\`, such as server \\`load\\` functions, actions, endpoints, and other server hooks. In environments without \\`AsyncLocalStorage\\`, the event must be read synchronously, not after an \\`await\\`.`, options, request_event_after_await);\n}\n\n/**\n * Can only read the current request event inside functions invoked during `handle`, such as server `load` functions, actions, endpoints, and other server hooks.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_event_unavailable(_values, options) {\n\tthrow_error('request_event_unavailable', `Can only read the current request event inside functions invoked during \\`handle\\`, such as server \\`load\\` functions, actions, endpoints, and other server hooks.`, options, request_event_unavailable);\n}\n\n/**\n * Could not get the request store. In environments without `AsyncLocalStorage`, the request store (used by e.g. remote functions) must be accessed synchronously, not after an `await`. If it was accessed synchronously then this is an internal error.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_store_after_await(_values, options) {\n\tthrow_error('request_store_after_await', `Could not get the request store. In environments without \\`AsyncLocalStorage\\`, the request store (used by e.g. remote functions) must be accessed synchronously, not after an \\`await\\`. If it was accessed synchronously then this is an internal error.`, options, request_store_after_await);\n}\n\n/**\n * Cannot call `%name%` on the server\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function server_api_unavailable(_values, options) {\n\tthrow_error('server_api_unavailable', `Cannot call \\`${_values.name}\\` on the server`, options, server_api_unavailable);\n}\n\n/**\n * Cannot use `setHeaders(...)` after the response has been generated\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function set_headers_after_response(_values, options) {\n\tthrow_error('set_headers_after_response', `Cannot use \\`setHeaders(...)\\` after the response has been generated`, options, set_headers_after_response);\n}\n\n/**\n * Use `event.cookies.set(name, value, options)` instead of `event.setHeaders` to set cookies\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function set_headers_cookie(_values, options) {\n\tthrow_error('set_headers_cookie', `Use \\`event.cookies.set(name, value, options)\\` instead of \\`event.setHeaders\\` to set cookies`, options, set_headers_cookie);\n}\n\n/**\n * Cannot call `fetch` eagerly during server-side rendering with relative URL (`%url%`) — put your `fetch` calls inside `onMount` or a `load` function instead\n * @param {{ \"url\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function ssr_fetch_relative_url(_values, options) {\n\tthrow_error('ssr_fetch_relative_url', `Cannot call \\`fetch\\` eagerly during server-side rendering with relative URL (\\`${_values.url}\\`) — put your \\`fetch\\` calls inside \\`onMount\\` or a \\`load\\` function instead`, options, ssr_fetch_relative_url);\n}\n\n/**\n * Can only read `%name%` on the server during rendering (not in e.g. `load` functions), as it is bound to the current request via component context. This prevents state from leaking between users.\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function state_read_outside_render(_values, options) {\n\tthrow_error('state_read_outside_render', `Can only read \\`${_values.name}\\` on the server during rendering (not in e.g. \\`load\\` functions), as it is bound to the current request via component context. This prevents state from leaking between users.`, options, state_read_outside_render);\n}\n\n/**\n * Tracing is enabled (see the SvelteKit plugin `tracing.server` option in your `vite.config.js`), but `@opentelemetry/api` is not available. This error will likely resolve itself when you set up your tracing instrumentation in `instrumentation.server.js`. For more information, see https://svelte.dev/docs/kit/observability#opentelemetry-api\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function tracing_api_missing(_values, options) {\n\tthrow_error('tracing_api_missing', `Tracing is enabled (see the SvelteKit plugin \\`tracing.server\\` option in your \\`vite.config.js\\`), but \\`@opentelemetry/api\\` is not available. This error will likely resolve itself when you set up your tracing instrumentation in \\`instrumentation.server.js\\`. For more information, see https://svelte.dev/docs/kit/observability#opentelemetry-api`, options, tracing_api_missing);\n}\n\n/**\n * Cannot access `url.%property%` on a page with prerendering enabled\n * @param {{ \"property\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function url_search_unavailable_prerender(_values, options) {\n\tthrow_error('url_search_unavailable_prerender', `Cannot access \\`url.${_values.property}\\` on a page with prerendering enabled`, options, url_search_unavailable_prerender);\n}\n"],"ignoreList":[0,1],"mappings":";;;;;;;;;;;;AAYA,SAAgB,YAAY,MAAM,SAAS,SAAS,QAAQ;CAC3D,MAAM,QAAQ,IAAI,MACjB,GAAG,KAAK,IAAI,QAAQ,6BAA6B,QACjD,SAAS,UAAU,KAAA,IAAY,KAAA,IAAY,EAAE,OAAO,QAAQ,MAAM,CACnE;CACA,MAAM,OAAO;CAEb,IAAI,SAAS,WAAW,MAAM,QAAQ;MAEjC,MAAM,oBAAoB,OAAO,MAAM;CAE5C,MAAM;AACP;;;;;;;AAQA,SAAgB,cAAc,IAAI;CACjC,IAAI;EACH,GAAG;CACJ,SAAS,OAAO;EACf,OAA6B;CAC9B;AACD;;;;;;;;;AC3BA,SAAgB,6BAA6B,SAAS,SAAS;CAC9D,YAAY,gCAAiC,SAAS,SAAS,KAAA,IAAY,sCAAsC,QAAQ,GAAG,0BAA0B,QAAQ,QAAQ,MAAM,QAAQ,KAAK,OAAO,sCAAsC,QAAQ,GAAG,0BAA0B,QAAQ,WAAY,SAAS,4BAA4B;AACrU;;;;;;;AAQA,SAAgB,0BAA0B,SAAS,SAAS;CAC3D,YAAY,6BAA6B,mJAA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sBAAsB,kGAAkG,SAAS,kBAAkB;AAChK;;;;;;;AAQA,SAAgB,uBAAuB,SAAS,SAAS;CACxD,YAAY,0BAA0B,mFAAmF,QAAQ,IAAI,mFAAmF,SAAS,sBAAsB;AACxP;;;;;;;AAQA,SAAgB,0BAA0B,SAAS,SAAS;CAC3D,YAAY,6BAA6B,mBAAmB,QAAQ,KAAK,mLAAmL,SAAS,yBAAyB;AAC/R;;;;;;;AAkBA,SAAgB,iCAAiC,SAAS,SAAS;CAClE,YAAY,oCAAoC,uBAAuB,QAAQ,SAAS,yCAAyC,SAAS,gCAAgC;AAC3K"}
1
+ {"version":3,"file":"server-errors.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.1.1_@opentelemetry+api@1.10.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte_f967bc3fd8a221ab5730ab7d29103078/node_modules/@sveltejs/kit/src/messages/internal/server.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.1.1_@opentelemetry+api@1.10.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte_f967bc3fd8a221ab5730ab7d29103078/node_modules/@sveltejs/kit/src/messages/server-errors.js"],"sourcesContent":["/**\n * @typedef {{ cause?: unknown; stackless?: boolean }} ServerThrowOptions\n */\n\n/**\n * Throws the full diagnostic. Unlike shared errors, server-only errors keep their full text in production\n * @param {string} code\n * @param {string} message\n * @param {ServerThrowOptions | undefined} options\n * @param {Function} caller The generated helper, which is omitted from the stack along with this function\n * @returns {never}\n */\nexport function throw_error(code, message, options, caller) {\n\tconst error = new Error(\n\t\t`${code}\\n${message}\\nhttps://svelte.dev/e/kit/${code}`,\n\t\toptions?.cause === undefined ? undefined : { cause: options.cause }\n\t);\n\terror.name = 'SvelteKit error';\n\n\tif (options?.stackless) error.stack = '';\n\t// not available in every runtime, in which case the stack also includes these two frames\n\telse Error.captureStackTrace?.(error, caller);\n\n\tthrow error;\n}\n\n/**\n * Returns the error thrown by `fn`, for the few places that pass an error on (for example to\n * `handleError` or a later `console.error`) rather than throwing it. Its stack starts inside `fn`\n * @param {() => never} fn A function that calls a generated `server-errors` helper\n * @returns {Error}\n */\nexport function capture_error(fn) {\n\ttry {\n\t\tfn();\n\t} catch (error) {\n\t\treturn /** @type {Error} */ (error);\n\t}\n}\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\n/** @import { ServerThrowOptions } from './internal/server.js' */\nimport { throw_error } from './internal/server.js';\n\n/**\n * Data returned from action inside `%id%` is not serializable: %message%\n * @param {{ \"id\": string; \"message\": string; \"path\"?: string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_data_not_serializable(_values, options) {\n\tthrow_error('action_data_not_serializable', (_values?.path !== undefined ? `Data returned from action inside \\`${_values.id}\\` is not serializable: ${_values.message} (\\`${_values.path}\\`)` : `Data returned from action inside \\`${_values.id}\\` is not serializable: ${_values.message}`), options, action_data_not_serializable);\n}\n\n/**\n * When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#Named-actions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_default_with_named(_values, options) {\n\tthrow_error('action_default_with_named', `When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#Named-actions`, options, action_default_with_named);\n}\n\n/**\n * Cannot use reserved action name `default`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_name_reserved(_values, options) {\n\tthrow_error('action_name_reserved', `Cannot use reserved action name \\`default\\``, options, action_name_reserved);\n}\n\n/**\n * Data returned from action inside `%id%` is not serializable. Form actions need to return plain objects or `fail()`. E.g. `return { success: true }` or `return fail(400, { message: \"invalid\" });`\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_response_not_serializable(_values, options) {\n\tthrow_error('action_response_not_serializable', `Data returned from action inside \\`${_values.id}\\` is not serializable. Form actions need to return plain objects or \\`fail()\\`. E.g. \\`return { success: true }\\` or \\`return fail(400, { message: \"invalid\" });\\``, options, action_response_not_serializable);\n}\n\n/**\n * Cannot `return error(...)` — use `error(...)` or `return fail(...)` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_return_error(_values, options) {\n\tthrow_error('action_return_error', `Cannot \\`return error(...)\\` — use \\`error(...)\\` or \\`return fail(...)\\` instead`, options, action_return_error);\n}\n\n/**\n * Cannot `return redirect(...)` — use `redirect(...)` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_return_redirect(_values, options) {\n\tthrow_error('action_return_redirect', `Cannot \\`return redirect(...)\\` — use \\`redirect(...)\\` instead`, options, action_return_redirect);\n}\n\n/**\n * Cannot `throw fail()`. Use `return fail()`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function action_throw_fail(_values, options) {\n\tthrow_error('action_throw_fail', `Cannot \\`throw fail()\\`. Use \\`return fail()\\``, options, action_throw_fail);\n}\n\n/**\n * `%adapter%` does not specify `getClientAddress`. Please raise an issue\n * @param {{ \"adapter\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function client_address_unsupported(_values, options) {\n\tthrow_error('client_address_unsupported', `\\`${_values.adapter}\\` does not specify \\`getClientAddress\\`. Please raise an issue`, options, client_address_unsupported);\n}\n\n/**\n * Cookie `%name%` is too large, and will be discarded by the browser\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookie_too_large(_values, options) {\n\tthrow_error('cookie_too_large', `Cookie \\`${_values.name}\\` is too large, and will be discarded by the browser`, options, cookie_too_large);\n}\n\n/**\n * Cannot serialize cookies until after the route is determined\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookies_serialize_before_route(_values, options) {\n\tthrow_error('cookies_serialize_before_route', `Cannot serialize cookies until after the route is determined`, options, cookies_serialize_before_route);\n}\n\n/**\n * Cannot use `cookies.set(...)` after the response has been generated\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function cookies_set_after_response(_values, options) {\n\tthrow_error('cookies_set_after_response', `Cannot use \\`cookies.set(...)\\` after the response has been generated`, options, cookies_set_after_response);\n}\n\n/**\n * `content-security-policy-report-only` must be specified with either the `report-to` or `report-uri` directives, or both\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function csp_report_only_missing_report(_values, options) {\n\tthrow_error('csp_report_only_missing_report', `\\`content-security-policy-report-only\\` must be specified with either the \\`report-to\\` or \\`report-uri\\` directives, or both`, options, csp_report_only_missing_report);\n}\n\n/**\n * `defineEnvVars` has moved — import it from `@sveltejs/kit/env` instead\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function define_env_vars_moved(_values, options) {\n\tthrow_error('define_env_vars_moved', `\\`defineEnvVars\\` has moved — import it from \\`@sveltejs/kit/env\\` instead`, options, define_env_vars_moved);\n}\n\n/**\n * Invalid response from route `%path%`: handler should return a `Response` object\n * @param {{ \"path\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function endpoint_invalid_response(_values, options) {\n\tthrow_error('endpoint_invalid_response', `Invalid response from route \\`${_values.path}\\`: handler should return a \\`Response\\` object`, options, endpoint_invalid_response);\n}\n\n/**\n * Invalid environment variables:\n%issues%\n * @param {{ \"issues\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function env_invalid(_values, options) {\n\tthrow_error('env_invalid', `Invalid environment variables:\n${_values.issues}`, options, env_invalid);\n}\n\n/**\n * Cannot return `fetch(...)` directly from a handler if the response has a `Content-Encoding: %encoding%` header. The body has already been decoded\n * @param {{ \"encoding\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function fetch_response_decoded(_values, options) {\n\tthrow_error('fetch_response_decoded', `Cannot return \\`fetch(...)\\` directly from a handler if the response has a \\`Content-Encoding: ${_values.encoding}\\` header. The body has already been decoded`, options, fetch_response_decoded);\n}\n\n/**\n * The `handleError` hook failed\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function handle_error_hook_failed(_values, options) {\n\tthrow_error('handle_error_hook_failed', `The \\`handleError\\` hook failed`, options, handle_error_hook_failed);\n}\n\n/**\n * `%name%` header is already set\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function header_already_set(_values, options) {\n\tthrow_error('header_already_set', `\\`${_values.name}\\` header is already set`, options, header_already_set);\n}\n\n/**\n * CORS error: %reason% `Access-Control-Allow-Origin` header is present on the requested resource\n * @param {{ \"reason\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_fetch_cors(_values, options) {\n\tthrow_error('load_fetch_cors', `CORS error: ${_values.reason} \\`Access-Control-Allow-Origin\\` header is present on the requested resource`, options, load_fetch_cors);\n}\n\n/**\n * Data returned from `load` while rendering `%id%` is not a plain object\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_not_plain_object(_values, options) {\n\tthrow_error('load_not_plain_object', `Data returned from \\`load\\` while rendering \\`${_values.id}\\` is not a plain object`, options, load_not_plain_object);\n}\n\n/**\n * Data returned from `load` while rendering `%id%` is not serializable: %message% (`%path%`). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#transport.\n * @param {{ \"id\": string; \"message\": string; \"path\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_not_serializable(_values, options) {\n\tthrow_error('load_not_serializable', `Data returned from \\`load\\` while rendering \\`${_values.id}\\` is not serializable: ${_values.message} (\\`${_values.path}\\`). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#transport.`, options, load_not_serializable);\n}\n\n/**\n * Failed to serialize promise while rendering `%id%`\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_promise_not_serializable(_values, options) {\n\tthrow_error('load_promise_not_serializable', `Failed to serialize promise while rendering \\`${_values.id}\\``, options, load_promise_not_serializable);\n}\n\n/**\n * Failed to get response header `%name%` — it must be included by the `filterSerializedResponseHeaders` option: https://svelte.dev/docs/kit/hooks#handle (at `%id%`)\n * @param {{ \"name\": string; \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function load_response_header_not_serialized(_values, options) {\n\tthrow_error('load_response_header_not_serialized', `Failed to get response header \\`${_values.name}\\` — it must be included by the \\`filterSerializedResponseHeaders\\` option: https://svelte.dev/docs/kit/hooks#handle (at \\`${_values.id}\\`)`, options, load_response_header_not_serialized);\n}\n\n/**\n * Cannot prerender pages with actions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_actions(_values, options) {\n\tthrow_error('prerender_actions', `Cannot prerender pages with actions`, options, prerender_actions);\n}\n\n/**\n * Cannot prerender a `+server` file with %methods% or fallback handlers (`%id%`)\n * @param {{ \"methods\": string; \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_endpoint_methods(_values, options) {\n\tthrow_error('prerender_endpoint_methods', `Cannot prerender a \\`+server\\` file with ${_values.methods} or fallback handlers (\\`${_values.id}\\`)`, options, prerender_endpoint_methods);\n}\n\n/**\n * `%id%` is not prerenderable\n * @param {{ \"id\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_endpoint_not_prerenderable(_values, options) {\n\tthrow_error('prerender_endpoint_not_prerenderable', `\\`${_values.id}\\` is not prerenderable`, options, prerender_endpoint_not_prerenderable);\n}\n\n/**\n * Cannot use prerendering if `config.csp.mode === 'nonce'`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_nonce(_values, options) {\n\tthrow_error('prerender_nonce', `Cannot use prerendering if \\`config.csp.mode === 'nonce'\\``, options, prerender_nonce);\n}\n\n/**\n * Cannot use prerendering if page template contains `%tag%`\n * @param {{ \"tag\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function prerender_template_nonce(_values, options) {\n\tthrow_error('prerender_template_nonce', `Cannot use prerendering if page template contains \\`${_values.tag}\\``, options, prerender_template_nonce);\n}\n\n/**\n * Asset does not exist: `%file%`\n * @param {{ \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function read_asset_missing(_values, options) {\n\tthrow_error('read_asset_missing', `Asset does not exist: \\`${_values.file}\\``, options, read_asset_missing);\n}\n\n/**\n * No `read` implementation was provided. Please ensure that your adapter is up to date and supports this feature\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function read_implementation_missing(_values, options) {\n\tthrow_error('read_implementation_missing', `No \\`read\\` implementation was provided. Please ensure that your adapter is up to date and supports this feature`, options, read_implementation_missing);\n}\n\n/**\n * Cannot call a command (`%name%`) from a `%method%` handler\n * @param {{ \"name\": string; \"method\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_method(_values, options) {\n\tthrow_error('remote_command_method', `Cannot call a command (\\`${_values.name}\\`) from a \\`${_values.method}\\` handler`, options, remote_command_method);\n}\n\n/**\n * Cannot call a command (`%name%`) inside a query or prerender function\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_readonly(_values, options) {\n\tthrow_error('remote_command_readonly', `Cannot call a command (\\`${_values.name}\\`) inside a query or prerender function`, options, remote_command_readonly);\n}\n\n/**\n * Cannot call a command (`%name%`) during server-side rendering\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_command_render(_values, options) {\n\tthrow_error('remote_command_render', `Cannot call a command (\\`${_values.name}\\`) during server-side rendering`, options, remote_command_render);\n}\n\n/**\n * Cannot %operation% cookies in `query` or `prerender` functions\n * @param {{ \"operation\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_cookie_forbidden(_values, options) {\n\tthrow_error('remote_cookie_forbidden', `Cannot ${_values.operation} cookies in \\`query\\` or \\`prerender\\` functions`, options, remote_cookie_forbidden);\n}\n\n/**\n * Cookies %operation% in remote functions must have an absolute path\n * @param {{ \"operation\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_cookie_path_relative(_values, options) {\n\tthrow_error('remote_cookie_path_relative', `Cookies ${_values.operation} in remote functions must have an absolute path`, options, remote_cookie_path_relative);\n}\n\n/**\n * `fail(...)` is for form actions. A remote `form` handler should call `invalid(...)` instead. See https://svelte.dev/docs/kit/remote-functions#form-Programmatic-validation\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_form_fail(_values, options) {\n\tthrow_error('remote_form_fail', `\\`fail(...)\\` is for form actions. A remote \\`form\\` handler should call \\`invalid(...)\\` instead. See https://svelte.dev/docs/kit/remote-functions#form-Programmatic-validation`, options, remote_form_fail);\n}\n\n/**\n * `setHeaders` is not allowed in remote functions\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_headers_forbidden(_values, options) {\n\tthrow_error('remote_headers_forbidden', `\\`setHeaders\\` is not allowed in remote functions`, options, remote_headers_forbidden);\n}\n\n/**\n * Invalid validator passed to remote function. Expected `'unchecked'` or a Standard Schema (https://standardschema.dev)\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_invalid_validator(_values, options) {\n\tthrow_error('remote_invalid_validator', `Invalid validator passed to remote function. Expected \\`'unchecked'\\` or a Standard Schema (https://standardschema.dev)`, options, remote_invalid_validator);\n}\n\n/**\n * Cannot export `default` from a remote module (`%file%`) — please use named exports instead\n * @param {{ \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_module_default_export(_values, options) {\n\tthrow_error('remote_module_default_export', `Cannot export \\`default\\` from a remote module (\\`${_values.file}\\`) — please use named exports instead`, options, remote_module_default_export);\n}\n\n/**\n * `%name%` exported from `%file%` is invalid — all exports from this file must be remote functions\n * @param {{ \"name\": string; \"file\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_module_invalid_export(_values, options) {\n\tthrow_error('remote_module_invalid_export', `\\`${_values.name}\\` exported from \\`${_values.file}\\` is invalid — all exports from this file must be remote functions`, options, remote_module_invalid_export);\n}\n\n/**\n * `query.live` `%name%` did not yield a value\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_live_no_value(_values, options) {\n\tthrow_error('remote_query_live_no_value', `\\`query.live\\` \\`${_values.name}\\` did not yield a value`, options, remote_query_live_no_value);\n}\n\n/**\n * `query.live` `%name%` must return an `Iterator`, `Iterable`, `AsyncIterator` or `AsyncIterable`\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_live_not_iterable(_values, options) {\n\tthrow_error('remote_query_live_not_iterable', `\\`query.live\\` \\`${_values.name}\\` must return an \\`Iterator\\`, \\`Iterable\\`, \\`AsyncIterator\\` or \\`AsyncIterable\\``, options, remote_query_live_not_iterable);\n}\n\n/**\n * Cannot call `%type%` `%name%` while prerendering, as prerendered pages need static data. Use `prerender` from `$app/server` instead\n * @param {{ \"type\": string; \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_query_prerender(_values, options) {\n\tthrow_error('remote_query_prerender', `Cannot call \\`${_values.type}\\` \\`${_values.name}\\` while prerendering, as prerendered pages need static data. Use \\`prerender\\` from \\`$app/server\\` instead`, options, remote_query_prerender);\n}\n\n/**\n * Cannot access `event.%property%` in a query. Pass the value as an argument to the query instead\n * @param {{ \"property\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_request_property(_values, options) {\n\tthrow_error('remote_request_property', `Cannot access \\`event.${_values.property}\\` in a query. Pass the value as an argument to the query instead`, options, remote_request_property);\n}\n\n/**\n * `requested(%name%, %limit%)` cannot be used with synchronous iteration because the query validator is async. Use `for await ... of` instead\n * @param {{ \"name\": string; \"limit\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_async_validator(_values, options) {\n\tthrow_error('remote_requested_async_validator', `\\`requested(${_values.name}, ${_values.limit})\\` cannot be used with synchronous iteration because the query validator is async. Use \\`for await ... of\\` instead`, options, remote_requested_async_validator);\n}\n\n/**\n * `requested(...)` can only be called in the context of a command/form remote function\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_context(_values, options) {\n\tthrow_error('remote_requested_context', `\\`requested(...)\\` can only be called in the context of a command/form remote function`, options, remote_requested_context);\n}\n\n/**\n * Limit must be a non-negative integer or `Infinity`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_invalid_limit(_values, options) {\n\tthrow_error('remote_requested_invalid_limit', `Limit must be a non-negative integer or \\`Infinity\\``, options, remote_requested_invalid_limit);\n}\n\n/**\n * `requested(...)` expects a query function created with `query(...)`, `query.batch(...)`, or `query.live(...)`\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_invalid_query(_values, options) {\n\tthrow_error('remote_requested_invalid_query', `\\`requested(...)\\` expects a query function created with \\`query(...)\\`, \\`query.batch(...)\\`, or \\`query.live(...)\\``, options, remote_requested_invalid_query);\n}\n\n/**\n * `%method%()` is invalid for %type% queries. Use `%replacement%()` instead.\n * @param {{ \"method\": string; \"type\": string; \"replacement\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function remote_requested_wrong_method(_values, options) {\n\tthrow_error('remote_requested_wrong_method', `\\`${_values.method}()\\` is invalid for ${_values.type} queries. Use \\`${_values.replacement}()\\` instead.`, options, remote_requested_wrong_method);\n}\n\n/**\n * Can only read the current request event inside functions invoked during `handle`, such as server `load` functions, actions, endpoints, and other server hooks. In environments without `AsyncLocalStorage`, the event must be read synchronously, not after an `await`.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_event_after_await(_values, options) {\n\tthrow_error('request_event_after_await', `Can only read the current request event inside functions invoked during \\`handle\\`, such as server \\`load\\` functions, actions, endpoints, and other server hooks. In environments without \\`AsyncLocalStorage\\`, the event must be read synchronously, not after an \\`await\\`.`, options, request_event_after_await);\n}\n\n/**\n * Can only read the current request event inside functions invoked during `handle`, such as server `load` functions, actions, endpoints, and other server hooks.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_event_unavailable(_values, options) {\n\tthrow_error('request_event_unavailable', `Can only read the current request event inside functions invoked during \\`handle\\`, such as server \\`load\\` functions, actions, endpoints, and other server hooks.`, options, request_event_unavailable);\n}\n\n/**\n * Could not get the request store. In environments without `AsyncLocalStorage`, the request store (used by e.g. remote functions) must be accessed synchronously, not after an `await`. If it was accessed synchronously then this is an internal error.\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function request_store_after_await(_values, options) {\n\tthrow_error('request_store_after_await', `Could not get the request store. In environments without \\`AsyncLocalStorage\\`, the request store (used by e.g. remote functions) must be accessed synchronously, not after an \\`await\\`. If it was accessed synchronously then this is an internal error.`, options, request_store_after_await);\n}\n\n/**\n * Cannot call `%name%` on the server\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function server_api_unavailable(_values, options) {\n\tthrow_error('server_api_unavailable', `Cannot call \\`${_values.name}\\` on the server`, options, server_api_unavailable);\n}\n\n/**\n * Cannot use `setHeaders(...)` after the response has been generated\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function set_headers_after_response(_values, options) {\n\tthrow_error('set_headers_after_response', `Cannot use \\`setHeaders(...)\\` after the response has been generated`, options, set_headers_after_response);\n}\n\n/**\n * Use `event.cookies.set(name, value, options)` instead of `event.setHeaders` to set cookies\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function set_headers_cookie(_values, options) {\n\tthrow_error('set_headers_cookie', `Use \\`event.cookies.set(name, value, options)\\` instead of \\`event.setHeaders\\` to set cookies`, options, set_headers_cookie);\n}\n\n/**\n * Cannot call `fetch` eagerly during server-side rendering with relative URL (`%url%`) — put your `fetch` calls inside `onMount` or a `load` function instead\n * @param {{ \"url\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function ssr_fetch_relative_url(_values, options) {\n\tthrow_error('ssr_fetch_relative_url', `Cannot call \\`fetch\\` eagerly during server-side rendering with relative URL (\\`${_values.url}\\`) — put your \\`fetch\\` calls inside \\`onMount\\` or a \\`load\\` function instead`, options, ssr_fetch_relative_url);\n}\n\n/**\n * Can only read `%name%` on the server during rendering (not in e.g. `load` functions), as it is bound to the current request via component context. This prevents state from leaking between users.\n * @param {{ \"name\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function state_read_outside_render(_values, options) {\n\tthrow_error('state_read_outside_render', `Can only read \\`${_values.name}\\` on the server during rendering (not in e.g. \\`load\\` functions), as it is bound to the current request via component context. This prevents state from leaking between users.`, options, state_read_outside_render);\n}\n\n/**\n * Tracing is enabled (see the SvelteKit plugin `tracing.server` option in your `vite.config.js`), but `@opentelemetry/api` is not available. This error will likely resolve itself when you set up your tracing instrumentation in `instrumentation.server.js`. For more information, see https://svelte.dev/docs/kit/observability#opentelemetry-api\n * @param {void} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function tracing_api_missing(_values, options) {\n\tthrow_error('tracing_api_missing', `Tracing is enabled (see the SvelteKit plugin \\`tracing.server\\` option in your \\`vite.config.js\\`), but \\`@opentelemetry/api\\` is not available. This error will likely resolve itself when you set up your tracing instrumentation in \\`instrumentation.server.js\\`. For more information, see https://svelte.dev/docs/kit/observability#opentelemetry-api`, options, tracing_api_missing);\n}\n\n/**\n * Cannot access `url.%property%` on a page with prerendering enabled\n * @param {{ \"property\": string }} _values\n * @param {ServerThrowOptions} [options]\n * @returns {never}\n */\nexport function url_search_unavailable_prerender(_values, options) {\n\tthrow_error('url_search_unavailable_prerender', `Cannot access \\`url.${_values.property}\\` on a page with prerendering enabled`, options, url_search_unavailable_prerender);\n}\n"],"ignoreList":[0,1],"mappings":";;;;;;;;;;;;AAYA,SAAgB,YAAY,MAAM,SAAS,SAAS,QAAQ;CAC3D,MAAM,QAAQ,IAAI,MACjB,GAAG,KAAK,IAAI,QAAQ,6BAA6B,QACjD,SAAS,UAAU,KAAA,IAAY,KAAA,IAAY,EAAE,OAAO,QAAQ,MAAM,CACnE;CACA,MAAM,OAAO;CAEb,IAAI,SAAS,WAAW,MAAM,QAAQ;MAEjC,MAAM,oBAAoB,OAAO,MAAM;CAE5C,MAAM;AACP;;;;;;;AAQA,SAAgB,cAAc,IAAI;CACjC,IAAI;EACH,GAAG;CACJ,SAAS,OAAO;EACf,OAA6B;CAC9B;AACD;;;;;;;;;AC3BA,SAAgB,6BAA6B,SAAS,SAAS;CAC9D,YAAY,gCAAiC,SAAS,SAAS,KAAA,IAAY,sCAAsC,QAAQ,GAAG,0BAA0B,QAAQ,QAAQ,MAAM,QAAQ,KAAK,OAAO,sCAAsC,QAAQ,GAAG,0BAA0B,QAAQ,WAAY,SAAS,4BAA4B;AACrU;;;;;;;AAQA,SAAgB,0BAA0B,SAAS,SAAS;CAC3D,YAAY,6BAA6B,mJAAmJ,SAAS,yBAAyB;AAC/N;;;;;;;AAQA,SAAgB,qBAAqB,SAAS,SAAS;CACtD,YAAY,wBAAwB,+CAA+C,SAAS,oBAAoB;AACjH;;;;;;;AAQA,SAAgB,iCAAiC,SAAS,SAAS;CAClE,YAAY,oCAAoC,sCAAsC,QAAQ,GA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