claude-sessions-mcp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +145 -0
  3. package/dist/chunk-D2SPLCNE.js +48 -0
  4. package/dist/chunk-D2SPLCNE.js.map +1 -0
  5. package/dist/mcp/index.d.ts +1 -0
  6. package/dist/mcp/index.js +369 -0
  7. package/dist/mcp/index.js.map +1 -0
  8. package/dist/server.d.ts +10 -0
  9. package/dist/server.js +9 -0
  10. package/dist/server.js.map +1 -0
  11. package/dist/web/client/_app/immutable/assets/0.BNKw18IQ.css +1 -0
  12. package/dist/web/client/_app/immutable/assets/0.BNKw18IQ.css.br +0 -0
  13. package/dist/web/client/_app/immutable/assets/0.BNKw18IQ.css.gz +0 -0
  14. package/dist/web/client/_app/immutable/chunks/9luERNGW.js +1 -0
  15. package/dist/web/client/_app/immutable/chunks/9luERNGW.js.br +0 -0
  16. package/dist/web/client/_app/immutable/chunks/9luERNGW.js.gz +0 -0
  17. package/dist/web/client/_app/immutable/chunks/B4TJWzDE.js +1 -0
  18. package/dist/web/client/_app/immutable/chunks/B4TJWzDE.js.br +0 -0
  19. package/dist/web/client/_app/immutable/chunks/B4TJWzDE.js.gz +0 -0
  20. package/dist/web/client/_app/immutable/chunks/ChOgyrGO.js +2 -0
  21. package/dist/web/client/_app/immutable/chunks/ChOgyrGO.js.br +0 -0
  22. package/dist/web/client/_app/immutable/chunks/ChOgyrGO.js.gz +0 -0
  23. package/dist/web/client/_app/immutable/chunks/DUFLAPco.js +1 -0
  24. package/dist/web/client/_app/immutable/chunks/DUFLAPco.js.br +0 -0
  25. package/dist/web/client/_app/immutable/chunks/DUFLAPco.js.gz +0 -0
  26. package/dist/web/client/_app/immutable/chunks/DbCO4Be8.js +1 -0
  27. package/dist/web/client/_app/immutable/chunks/DbCO4Be8.js.br +1 -0
  28. package/dist/web/client/_app/immutable/chunks/DbCO4Be8.js.gz +0 -0
  29. package/dist/web/client/_app/immutable/entry/app.CQAI9q_h.js +2 -0
  30. package/dist/web/client/_app/immutable/entry/app.CQAI9q_h.js.br +0 -0
  31. package/dist/web/client/_app/immutable/entry/app.CQAI9q_h.js.gz +0 -0
  32. package/dist/web/client/_app/immutable/entry/start.lvsJ5TiJ.js +1 -0
  33. package/dist/web/client/_app/immutable/entry/start.lvsJ5TiJ.js.br +2 -0
  34. package/dist/web/client/_app/immutable/entry/start.lvsJ5TiJ.js.gz +0 -0
  35. package/dist/web/client/_app/immutable/nodes/0.Cd8eOV9t.js +1 -0
  36. package/dist/web/client/_app/immutable/nodes/0.Cd8eOV9t.js.br +0 -0
  37. package/dist/web/client/_app/immutable/nodes/0.Cd8eOV9t.js.gz +0 -0
  38. package/dist/web/client/_app/immutable/nodes/1.DVVhj1K8.js +1 -0
  39. package/dist/web/client/_app/immutable/nodes/1.DVVhj1K8.js.br +0 -0
  40. package/dist/web/client/_app/immutable/nodes/1.DVVhj1K8.js.gz +0 -0
  41. package/dist/web/client/_app/immutable/nodes/2.DqJoUS41.js +1 -0
  42. package/dist/web/client/_app/immutable/nodes/2.DqJoUS41.js.br +0 -0
  43. package/dist/web/client/_app/immutable/nodes/2.DqJoUS41.js.gz +0 -0
  44. package/dist/web/client/_app/version.json +1 -0
  45. package/dist/web/client/_app/version.json.br +0 -0
  46. package/dist/web/client/_app/version.json.gz +0 -0
  47. package/dist/web/client/favicon.png +0 -0
  48. package/dist/web/env.js +45 -0
  49. package/dist/web/handler.js +1390 -0
  50. package/dist/web/index.js +334 -0
  51. package/dist/web/server/chunks/0-D_Gx_HFy.js +17 -0
  52. package/dist/web/server/chunks/0-D_Gx_HFy.js.map +1 -0
  53. package/dist/web/server/chunks/1-B6558drr.js +9 -0
  54. package/dist/web/server/chunks/1-B6558drr.js.map +1 -0
  55. package/dist/web/server/chunks/2-Bx262N6m.js +9 -0
  56. package/dist/web/server/chunks/2-Bx262N6m.js.map +1 -0
  57. package/dist/web/server/chunks/_layout.svelte-Dqh3cdpb.js +28 -0
  58. package/dist/web/server/chunks/_layout.svelte-Dqh3cdpb.js.map +1 -0
  59. package/dist/web/server/chunks/_page.svelte-BzYm1sb_.js +65 -0
  60. package/dist/web/server/chunks/_page.svelte-BzYm1sb_.js.map +1 -0
  61. package/dist/web/server/chunks/_server.ts-BXCTPhzX.js +28 -0
  62. package/dist/web/server/chunks/_server.ts-BXCTPhzX.js.map +1 -0
  63. package/dist/web/server/chunks/_server.ts-Bxqo8tYS.js +14 -0
  64. package/dist/web/server/chunks/_server.ts-Bxqo8tYS.js.map +1 -0
  65. package/dist/web/server/chunks/_server.ts-C5Bf6au4.js +26 -0
  66. package/dist/web/server/chunks/_server.ts-C5Bf6au4.js.map +1 -0
  67. package/dist/web/server/chunks/_server.ts-C88EFL4g.js +19 -0
  68. package/dist/web/server/chunks/_server.ts-C88EFL4g.js.map +1 -0
  69. package/dist/web/server/chunks/_server.ts-D8vMV9FN.js +18 -0
  70. package/dist/web/server/chunks/_server.ts-D8vMV9FN.js.map +1 -0
  71. package/dist/web/server/chunks/_server.ts-DW3OhHzP.js +37 -0
  72. package/dist/web/server/chunks/_server.ts-DW3OhHzP.js.map +1 -0
  73. package/dist/web/server/chunks/_server.ts-Ne8LE0dr.js +18 -0
  74. package/dist/web/server/chunks/_server.ts-Ne8LE0dr.js.map +1 -0
  75. package/dist/web/server/chunks/context-R2425nfV.js +64 -0
  76. package/dist/web/server/chunks/context-R2425nfV.js.map +1 -0
  77. package/dist/web/server/chunks/error.svelte-DazOwnSn.js +45 -0
  78. package/dist/web/server/chunks/error.svelte-DazOwnSn.js.map +1 -0
  79. package/dist/web/server/chunks/exports-BzHwARwz.js +326 -0
  80. package/dist/web/server/chunks/exports-BzHwARwz.js.map +1 -0
  81. package/dist/web/server/chunks/index-CXFDTUAl.js +913 -0
  82. package/dist/web/server/chunks/index-CXFDTUAl.js.map +1 -0
  83. package/dist/web/server/chunks/index-CoD1IJuy.js +190 -0
  84. package/dist/web/server/chunks/index-CoD1IJuy.js.map +1 -0
  85. package/dist/web/server/chunks/session-ioLIuaZI.js +302 -0
  86. package/dist/web/server/chunks/session-ioLIuaZI.js.map +1 -0
  87. package/dist/web/server/index.js +8132 -0
  88. package/dist/web/server/index.js.map +1 -0
  89. package/dist/web/server/manifest.js +95 -0
  90. package/dist/web/server/manifest.js.map +1 -0
  91. package/dist/web/shims.js +32 -0
  92. package/package.json +94 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CXFDTUAl.js","sources":["../../../../web/.svelte-kit/adapter-node/chunks/index.js"],"sourcesContent":["import { e as escape_html, a as set_ssr_context, b as ssr_context, p as push, c as pop } from \"./context.js\";\nconst DERIVED = 1 << 1;\nconst EFFECT = 1 << 2;\nconst RENDER_EFFECT = 1 << 3;\nconst MANAGED_EFFECT = 1 << 24;\nconst BLOCK_EFFECT = 1 << 4;\nconst BRANCH_EFFECT = 1 << 5;\nconst ROOT_EFFECT = 1 << 6;\nconst BOUNDARY_EFFECT = 1 << 7;\nconst CONNECTED = 1 << 9;\nconst CLEAN = 1 << 10;\nconst DIRTY = 1 << 11;\nconst MAYBE_DIRTY = 1 << 12;\nconst INERT = 1 << 13;\nconst DESTROYED = 1 << 14;\nconst EFFECT_RAN = 1 << 15;\nconst EFFECT_TRANSPARENT = 1 << 16;\nconst EAGER_EFFECT = 1 << 17;\nconst HEAD_EFFECT = 1 << 18;\nconst EFFECT_PRESERVED = 1 << 19;\nconst USER_EFFECT = 1 << 20;\nconst WAS_MARKED = 1 << 15;\nconst REACTION_IS_UPDATING = 1 << 21;\nconst ASYNC = 1 << 22;\nconst ERROR_VALUE = 1 << 23;\nconst STATE_SYMBOL = Symbol(\"$state\");\nconst LEGACY_PROPS = Symbol(\"legacy props\");\nconst STALE_REACTION = new class StaleReactionError extends Error {\n name = \"StaleReactionError\";\n message = \"The reaction that called `getAbortSignal()` was re-run or destroyed\";\n}();\nconst COMMENT_NODE = 8;\nconst HYDRATION_START = \"[\";\nconst HYDRATION_START_ELSE = \"[!\";\nconst HYDRATION_END = \"]\";\nconst HYDRATION_ERROR = {};\nconst ELEMENT_IS_NAMESPACED = 1;\nconst ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1;\nconst ELEMENT_IS_INPUT = 1 << 2;\nconst UNINITIALIZED = Symbol();\nconst DOM_BOOLEAN_ATTRIBUTES = [\n \"allowfullscreen\",\n \"async\",\n \"autofocus\",\n \"autoplay\",\n \"checked\",\n \"controls\",\n \"default\",\n \"disabled\",\n \"formnovalidate\",\n \"indeterminate\",\n \"inert\",\n \"ismap\",\n \"loop\",\n \"multiple\",\n \"muted\",\n \"nomodule\",\n \"novalidate\",\n \"open\",\n \"playsinline\",\n \"readonly\",\n \"required\",\n \"reversed\",\n \"seamless\",\n \"selected\",\n \"webkitdirectory\",\n \"defer\",\n \"disablepictureinpicture\",\n \"disableremoteplayback\"\n];\nfunction is_boolean_attribute(name) {\n return DOM_BOOLEAN_ATTRIBUTES.includes(name);\n}\nconst PASSIVE_EVENTS = [\"touchstart\", \"touchmove\"];\nfunction is_passive_event(name) {\n return PASSIVE_EVENTS.includes(name);\n}\nfunction r(e) {\n var t, f, n = \"\";\n if (\"string\" == typeof e || \"number\" == typeof e) n += e;\n else if (\"object\" == typeof e) if (Array.isArray(e)) {\n var o = e.length;\n for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += \" \"), n += f);\n } else for (f in e) e[f] && (n && (n += \" \"), n += f);\n return n;\n}\nfunction clsx$1() {\n for (var e, t, f = 0, n = \"\", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += \" \"), n += t);\n return n;\n}\nconst replacements = {\n translate: /* @__PURE__ */ new Map([\n [true, \"yes\"],\n [false, \"no\"]\n ])\n};\nfunction attr(name, value, is_boolean = false) {\n if (name === \"hidden\" && value !== \"until-found\") {\n is_boolean = true;\n }\n if (value == null || !value && is_boolean) return \"\";\n const normalized = name in replacements && replacements[name].get(value) || value;\n const assignment = is_boolean ? \"\" : `=\"${escape_html(normalized, true)}\"`;\n return ` ${name}${assignment}`;\n}\nfunction clsx(value) {\n if (typeof value === \"object\") {\n return clsx$1(value);\n } else {\n return value ?? \"\";\n }\n}\nconst whitespace = [...\" \t\\n\\r\\f \\v\\uFEFF\"];\nfunction to_class(value, hash, directives) {\n var classname = value == null ? \"\" : \"\" + value;\n if (hash) {\n classname = classname ? classname + \" \" + hash : hash;\n }\n if (directives) {\n for (var key in directives) {\n if (directives[key]) {\n classname = classname ? classname + \" \" + key : key;\n } else if (classname.length) {\n var len = key.length;\n var a = 0;\n while ((a = classname.indexOf(key, a)) >= 0) {\n var b = a + len;\n if ((a === 0 || whitespace.includes(classname[a - 1])) && (b === classname.length || whitespace.includes(classname[b]))) {\n classname = (a === 0 ? \"\" : classname.substring(0, a)) + classname.substring(b + 1);\n } else {\n a = b;\n }\n }\n }\n }\n }\n return classname === \"\" ? null : classname;\n}\nfunction append_styles(styles, important = false) {\n var separator = important ? \" !important;\" : \";\";\n var css = \"\";\n for (var key in styles) {\n var value = styles[key];\n if (value != null && value !== \"\") {\n css += \" \" + key + \": \" + value + separator;\n }\n }\n return css;\n}\nfunction to_css_name(name) {\n if (name[0] !== \"-\" || name[1] !== \"-\") {\n return name.toLowerCase();\n }\n return name;\n}\nfunction to_style(value, styles) {\n if (styles) {\n var new_style = \"\";\n var normal_styles;\n var important_styles;\n if (Array.isArray(styles)) {\n normal_styles = styles[0];\n important_styles = styles[1];\n } else {\n normal_styles = styles;\n }\n if (value) {\n value = String(value).replaceAll(/\\s*\\/\\*.*?\\*\\/\\s*/g, \"\").trim();\n var in_str = false;\n var in_apo = 0;\n var in_comment = false;\n var reserved_names = [];\n if (normal_styles) {\n reserved_names.push(...Object.keys(normal_styles).map(to_css_name));\n }\n if (important_styles) {\n reserved_names.push(...Object.keys(important_styles).map(to_css_name));\n }\n var start_index = 0;\n var name_index = -1;\n const len = value.length;\n for (var i = 0; i < len; i++) {\n var c = value[i];\n if (in_comment) {\n if (c === \"/\" && value[i - 1] === \"*\") {\n in_comment = false;\n }\n } else if (in_str) {\n if (in_str === c) {\n in_str = false;\n }\n } else if (c === \"/\" && value[i + 1] === \"*\") {\n in_comment = true;\n } else if (c === '\"' || c === \"'\") {\n in_str = c;\n } else if (c === \"(\") {\n in_apo++;\n } else if (c === \")\") {\n in_apo--;\n }\n if (!in_comment && in_str === false && in_apo === 0) {\n if (c === \":\" && name_index === -1) {\n name_index = i;\n } else if (c === \";\" || i === len - 1) {\n if (name_index !== -1) {\n var name = to_css_name(value.substring(start_index, name_index).trim());\n if (!reserved_names.includes(name)) {\n if (c !== \";\") {\n i++;\n }\n var property = value.substring(start_index, i).trim();\n new_style += \" \" + property + \";\";\n }\n }\n start_index = i + 1;\n name_index = -1;\n }\n }\n }\n }\n if (normal_styles) {\n new_style += append_styles(normal_styles);\n }\n if (important_styles) {\n new_style += append_styles(important_styles, true);\n }\n new_style = new_style.trim();\n return new_style === \"\" ? null : new_style;\n }\n return value == null ? null : String(value);\n}\nconst BLOCK_OPEN = `<!--${HYDRATION_START}-->`;\nconst BLOCK_CLOSE = `<!--${HYDRATION_END}-->`;\nconst EMPTY_COMMENT = `<!---->`;\nlet controller = null;\nfunction abort() {\n controller?.abort(STALE_REACTION);\n controller = null;\n}\nfunction await_invalid() {\n const error = new Error(`await_invalid\nEncountered asynchronous work while rendering synchronously.\nhttps://svelte.dev/e/await_invalid`);\n error.name = \"Svelte error\";\n throw error;\n}\nfunction server_context_required() {\n const error = new Error(`server_context_required\nCould not resolve \\`render\\` context.\nhttps://svelte.dev/e/server_context_required`);\n error.name = \"Svelte error\";\n throw error;\n}\nfunction unresolved_hydratable(key, stack) {\n {\n console.warn(`https://svelte.dev/e/unresolved_hydratable`);\n }\n}\nfunction get_render_context() {\n const store = als?.getStore();\n {\n server_context_required();\n }\n return store;\n}\nlet als = null;\nclass Renderer {\n /**\n * The contents of the renderer.\n * @type {RendererItem[]}\n */\n #out = [];\n /**\n * Any `onDestroy` callbacks registered during execution of this renderer.\n * @type {(() => void)[] | undefined}\n */\n #on_destroy = void 0;\n /**\n * Whether this renderer is a component body.\n * @type {boolean}\n */\n #is_component_body = false;\n /**\n * The type of string content that this renderer is accumulating.\n * @type {RendererType}\n */\n type;\n /** @type {Renderer | undefined} */\n #parent;\n /**\n * Asynchronous work associated with this renderer\n * @type {Promise<void> | undefined}\n */\n promise = void 0;\n /**\n * State which is associated with the content tree as a whole.\n * It will be re-exposed, uncopied, on all children.\n * @type {SSRState}\n * @readonly\n */\n global;\n /**\n * State that is local to the branch it is declared in.\n * It will be shallow-copied to all children.\n *\n * @type {{ select_value: string | undefined }}\n */\n local;\n /**\n * @param {SSRState} global\n * @param {Renderer | undefined} [parent]\n */\n constructor(global, parent) {\n this.#parent = parent;\n this.global = global;\n this.local = parent ? { ...parent.local } : { select_value: void 0 };\n this.type = parent ? parent.type : \"body\";\n }\n /**\n * @param {(renderer: Renderer) => void} fn\n */\n head(fn) {\n const head2 = new Renderer(this.global, this);\n head2.type = \"head\";\n this.#out.push(head2);\n head2.child(fn);\n }\n /**\n * @param {Array<Promise<void>>} blockers\n * @param {(renderer: Renderer) => void} fn\n */\n async_block(blockers, fn) {\n this.#out.push(BLOCK_OPEN);\n this.async(blockers, fn);\n this.#out.push(BLOCK_CLOSE);\n }\n /**\n * @param {Array<Promise<void>>} blockers\n * @param {(renderer: Renderer) => void} fn\n */\n async(blockers, fn) {\n let callback = fn;\n if (blockers.length > 0) {\n const context = ssr_context;\n callback = (renderer) => {\n return Promise.all(blockers).then(() => {\n const previous_context = ssr_context;\n try {\n set_ssr_context(context);\n return fn(renderer);\n } finally {\n set_ssr_context(previous_context);\n }\n });\n };\n }\n this.child(callback);\n }\n /**\n * @param {Array<() => void>} thunks\n */\n run(thunks) {\n const context = ssr_context;\n let promise = Promise.resolve(thunks[0]());\n const promises = [promise];\n for (const fn of thunks.slice(1)) {\n promise = promise.then(() => {\n const previous_context = ssr_context;\n set_ssr_context(context);\n try {\n return fn();\n } finally {\n set_ssr_context(previous_context);\n }\n });\n promises.push(promise);\n }\n return promises;\n }\n /**\n * Create a child renderer. The child renderer inherits the state from the parent,\n * but has its own content.\n * @param {(renderer: Renderer) => MaybePromise<void>} fn\n */\n child(fn) {\n const child = new Renderer(this.global, this);\n this.#out.push(child);\n const parent = ssr_context;\n set_ssr_context({\n ...ssr_context,\n p: parent,\n c: null,\n r: child\n });\n const result = fn(child);\n set_ssr_context(parent);\n if (result instanceof Promise) {\n if (child.global.mode === \"sync\") {\n await_invalid();\n }\n result.catch(() => {\n });\n child.promise = result;\n }\n return child;\n }\n /**\n * Create a component renderer. The component renderer inherits the state from the parent,\n * but has its own content. It is treated as an ordering boundary for ondestroy callbacks.\n * @param {(renderer: Renderer) => MaybePromise<void>} fn\n * @param {Function} [component_fn]\n * @returns {void}\n */\n component(fn, component_fn) {\n push();\n const child = this.child(fn);\n child.#is_component_body = true;\n pop();\n }\n /**\n * @param {Record<string, any>} attrs\n * @param {(renderer: Renderer) => void} fn\n * @param {string | undefined} [css_hash]\n * @param {Record<string, boolean> | undefined} [classes]\n * @param {Record<string, string> | undefined} [styles]\n * @param {number | undefined} [flags]\n * @returns {void}\n */\n select(attrs, fn, css_hash, classes, styles, flags) {\n const { value, ...select_attrs } = attrs;\n this.push(`<select${attributes(select_attrs, css_hash, classes, styles, flags)}>`);\n this.child((renderer) => {\n renderer.local.select_value = value;\n fn(renderer);\n });\n this.push(\"</select>\");\n }\n /**\n * @param {Record<string, any>} attrs\n * @param {string | number | boolean | ((renderer: Renderer) => void)} body\n * @param {string | undefined} [css_hash]\n * @param {Record<string, boolean> | undefined} [classes]\n * @param {Record<string, string> | undefined} [styles]\n * @param {number | undefined} [flags]\n */\n option(attrs, body, css_hash, classes, styles, flags) {\n this.#out.push(`<option${attributes(attrs, css_hash, classes, styles, flags)}`);\n const close = (renderer, value, { head: head2, body: body2 }) => {\n if (\"value\" in attrs) {\n value = attrs.value;\n }\n if (value === this.local.select_value) {\n renderer.#out.push(\" selected\");\n }\n renderer.#out.push(`>${body2}</option>`);\n if (head2) {\n renderer.head((child) => child.push(head2));\n }\n };\n if (typeof body === \"function\") {\n this.child((renderer) => {\n const r2 = new Renderer(this.global, this);\n body(r2);\n if (this.global.mode === \"async\") {\n return r2.#collect_content_async().then((content) => {\n close(renderer, content.body.replaceAll(\"<!---->\", \"\"), content);\n });\n } else {\n const content = r2.#collect_content();\n close(renderer, content.body.replaceAll(\"<!---->\", \"\"), content);\n }\n });\n } else {\n close(this, body, { body });\n }\n }\n /**\n * @param {(renderer: Renderer) => void} fn\n */\n title(fn) {\n const path = this.get_path();\n const close = (head2) => {\n this.global.set_title(head2, path);\n };\n this.child((renderer) => {\n const r2 = new Renderer(renderer.global, renderer);\n fn(r2);\n if (renderer.global.mode === \"async\") {\n return r2.#collect_content_async().then((content) => {\n close(content.head);\n });\n } else {\n const content = r2.#collect_content();\n close(content.head);\n }\n });\n }\n /**\n * @param {string | (() => Promise<string>)} content\n */\n push(content) {\n if (typeof content === \"function\") {\n this.child(async (renderer) => renderer.push(await content()));\n } else {\n this.#out.push(content);\n }\n }\n /**\n * @param {() => void} fn\n */\n on_destroy(fn) {\n (this.#on_destroy ??= []).push(fn);\n }\n /**\n * @returns {number[]}\n */\n get_path() {\n return this.#parent ? [...this.#parent.get_path(), this.#parent.#out.indexOf(this)] : [];\n }\n /**\n * @deprecated this is needed for legacy component bindings\n */\n copy() {\n const copy = new Renderer(this.global, this.#parent);\n copy.#out = this.#out.map((item) => item instanceof Renderer ? item.copy() : item);\n copy.promise = this.promise;\n return copy;\n }\n /**\n * @param {Renderer} other\n * @deprecated this is needed for legacy component bindings\n */\n subsume(other) {\n if (this.global.mode !== other.global.mode) {\n throw new Error(\n \"invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!\"\n );\n }\n this.local = other.local;\n this.#out = other.#out.map((item) => {\n if (item instanceof Renderer) {\n item.subsume(item);\n }\n return item;\n });\n this.promise = other.promise;\n this.type = other.type;\n }\n get length() {\n return this.#out.length;\n }\n /**\n * Only available on the server and when compiling with the `server` option.\n * Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app.\n * @template {Record<string, any>} Props\n * @param {Component<Props>} component\n * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} [options]\n * @returns {RenderOutput}\n */\n static render(component, options = {}) {\n let sync;\n const result = (\n /** @type {RenderOutput} */\n {}\n );\n Object.defineProperties(result, {\n html: {\n get: () => {\n return (sync ??= Renderer.#render(component, options)).body;\n }\n },\n head: {\n get: () => {\n return (sync ??= Renderer.#render(component, options)).head;\n }\n },\n body: {\n get: () => {\n return (sync ??= Renderer.#render(component, options)).body;\n }\n },\n then: {\n value: (\n /**\n * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.\n *\n * @template TResult1\n * @template [TResult2=never]\n * @param { (value: SyncRenderOutput) => TResult1 } onfulfilled\n * @param { (reason: unknown) => TResult2 } onrejected\n */\n (onfulfilled, onrejected) => {\n {\n const result2 = sync ??= Renderer.#render(component, options);\n const user_result = onfulfilled({\n head: result2.head,\n body: result2.body,\n html: result2.body\n });\n return Promise.resolve(user_result);\n }\n }\n )\n }\n });\n return result;\n }\n /**\n * Collect all of the `onDestroy` callbacks registered during rendering. In an async context, this is only safe to call\n * after awaiting `collect_async`.\n *\n * Child renderers are \"porous\" and don't affect execution order, but component body renderers\n * create ordering boundaries. Within a renderer, callbacks run in order until hitting a component boundary.\n * @returns {Iterable<() => void>}\n */\n *#collect_on_destroy() {\n for (const component of this.#traverse_components()) {\n yield* component.#collect_ondestroy();\n }\n }\n /**\n * Performs a depth-first search of renderers, yielding the deepest components first, then additional components as we backtrack up the tree.\n * @returns {Iterable<Renderer>}\n */\n *#traverse_components() {\n for (const child of this.#out) {\n if (typeof child !== \"string\") {\n yield* child.#traverse_components();\n }\n }\n if (this.#is_component_body) {\n yield this;\n }\n }\n /**\n * @returns {Iterable<() => void>}\n */\n *#collect_ondestroy() {\n if (this.#on_destroy) {\n for (const fn of this.#on_destroy) {\n yield fn;\n }\n }\n for (const child of this.#out) {\n if (child instanceof Renderer && !child.#is_component_body) {\n yield* child.#collect_ondestroy();\n }\n }\n }\n /**\n * Render a component. Throws if any of the children are performing asynchronous work.\n *\n * @template {Record<string, any>} Props\n * @param {Component<Props>} component\n * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} options\n * @returns {AccumulatedContent}\n */\n static #render(component, options) {\n var previous_context = ssr_context;\n try {\n const renderer = Renderer.#open_render(\"sync\", component, options);\n const content = renderer.#collect_content();\n return Renderer.#close_render(content, renderer);\n } finally {\n abort();\n set_ssr_context(previous_context);\n }\n }\n /**\n * Render a component.\n *\n * @template {Record<string, any>} Props\n * @param {Component<Props>} component\n * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} options\n * @returns {Promise<AccumulatedContent>}\n */\n static async #render_async(component, options) {\n const previous_context = ssr_context;\n try {\n const renderer = Renderer.#open_render(\"async\", component, options);\n const content = await renderer.#collect_content_async();\n const hydratables = await renderer.#collect_hydratables();\n if (hydratables !== null) {\n content.head = hydratables + content.head;\n }\n return Renderer.#close_render(content, renderer);\n } finally {\n set_ssr_context(previous_context);\n abort();\n }\n }\n /**\n * Collect all of the code from the `out` array and return it as a string, or a promise resolving to a string.\n * @param {AccumulatedContent} content\n * @returns {AccumulatedContent}\n */\n #collect_content(content = { head: \"\", body: \"\" }) {\n for (const item of this.#out) {\n if (typeof item === \"string\") {\n content[this.type] += item;\n } else if (item instanceof Renderer) {\n item.#collect_content(content);\n }\n }\n return content;\n }\n /**\n * Collect all of the code from the `out` array and return it as a string.\n * @param {AccumulatedContent} content\n * @returns {Promise<AccumulatedContent>}\n */\n async #collect_content_async(content = { head: \"\", body: \"\" }) {\n await this.promise;\n for (const item of this.#out) {\n if (typeof item === \"string\") {\n content[this.type] += item;\n } else if (item instanceof Renderer) {\n await item.#collect_content_async(content);\n }\n }\n return content;\n }\n async #collect_hydratables() {\n const ctx = get_render_context().hydratable;\n for (const [_, key] of ctx.unresolved_promises) {\n unresolved_hydratable(key, ctx.lookup.get(key)?.stack ?? \"<missing stack trace>\");\n }\n for (const comparison of ctx.comparisons) {\n await comparison;\n }\n return await Renderer.#hydratable_block(ctx);\n }\n /**\n * @template {Record<string, any>} Props\n * @param {'sync' | 'async'} mode\n * @param {import('svelte').Component<Props>} component\n * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} options\n * @returns {Renderer}\n */\n static #open_render(mode, component, options) {\n const renderer = new Renderer(\n new SSRState(mode, options.idPrefix ? options.idPrefix + \"-\" : \"\")\n );\n renderer.push(BLOCK_OPEN);\n if (options.context) {\n push();\n ssr_context.c = options.context;\n ssr_context.r = renderer;\n }\n component(renderer, options.props ?? {});\n if (options.context) {\n pop();\n }\n renderer.push(BLOCK_CLOSE);\n return renderer;\n }\n /**\n * @param {AccumulatedContent} content\n * @param {Renderer} renderer\n */\n static #close_render(content, renderer) {\n for (const cleanup of renderer.#collect_on_destroy()) {\n cleanup();\n }\n let head2 = content.head + renderer.global.get_title();\n let body = content.body;\n for (const { hash, code } of renderer.global.css) {\n head2 += `<style id=\"${hash}\">${code}</style>`;\n }\n return {\n head: head2,\n body\n };\n }\n /**\n * @param {HydratableContext} ctx\n */\n static async #hydratable_block(ctx) {\n if (ctx.lookup.size === 0) {\n return null;\n }\n let entries = [];\n let has_promises = false;\n for (const [k, v] of ctx.lookup) {\n if (v.promises) {\n has_promises = true;\n for (const p of v.promises) await p;\n }\n entries.push(`[${JSON.stringify(k)},${v.serialized}]`);\n }\n let prelude = `const h = (window.__svelte ??= {}).h ??= new Map();`;\n if (has_promises) {\n prelude = `const r = (v) => Promise.resolve(v);\n\t\t\t\t${prelude}`;\n }\n return `\n\t\t<script>\n\t\t\t{\n\t\t\t\t${prelude}\n\n\t\t\t\tfor (const [k, v] of [\n\t\t\t\t\t${entries.join(\",\\n\t\t\t\t\t\")}\n\t\t\t\t]) {\n\t\t\t\t\th.set(k, v);\n\t\t\t\t}\n\t\t\t}\n\t\t<\\/script>`;\n }\n}\nclass SSRState {\n /** @readonly @type {'sync' | 'async'} */\n mode;\n /** @readonly @type {() => string} */\n uid;\n /** @readonly @type {Set<{ hash: string; code: string }>} */\n css = /* @__PURE__ */ new Set();\n /** @type {{ path: number[], value: string }} */\n #title = { path: [], value: \"\" };\n /**\n * @param {'sync' | 'async'} mode\n * @param {string} [id_prefix]\n */\n constructor(mode, id_prefix = \"\") {\n this.mode = mode;\n let uid = 1;\n this.uid = () => `${id_prefix}s${uid++}`;\n }\n get_title() {\n return this.#title.value;\n }\n /**\n * Performs a depth-first (lexicographic) comparison using the path. Rejects sets\n * from earlier than or equal to the current value.\n * @param {string} value\n * @param {number[]} path\n */\n set_title(value, path) {\n const current = this.#title.path;\n let i = 0;\n let l = Math.min(path.length, current.length);\n while (i < l && path[i] === current[i]) i += 1;\n if (path[i] === void 0) return;\n if (current[i] === void 0 || path[i] > current[i]) {\n this.#title.path = path;\n this.#title.value = value;\n }\n }\n}\nconst INVALID_ATTR_NAME_CHAR_REGEX = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\nfunction render(component, options = {}) {\n return Renderer.render(\n /** @type {Component<Props>} */\n component,\n options\n );\n}\nfunction head(hash, renderer, fn) {\n renderer.head((renderer2) => {\n renderer2.push(`<!--${hash}-->`);\n renderer2.child(fn);\n renderer2.push(EMPTY_COMMENT);\n });\n}\nfunction attributes(attrs, css_hash, classes, styles, flags = 0) {\n if (styles) {\n attrs.style = to_style(attrs.style, styles);\n }\n if (attrs.class) {\n attrs.class = clsx(attrs.class);\n }\n if (css_hash || classes) {\n attrs.class = to_class(attrs.class, css_hash, classes);\n }\n let attr_str = \"\";\n let name;\n const is_html = (flags & ELEMENT_IS_NAMESPACED) === 0;\n const lowercase = (flags & ELEMENT_PRESERVE_ATTRIBUTE_CASE) === 0;\n const is_input = (flags & ELEMENT_IS_INPUT) !== 0;\n for (name in attrs) {\n if (typeof attrs[name] === \"function\") continue;\n if (name[0] === \"$\" && name[1] === \"$\") continue;\n if (INVALID_ATTR_NAME_CHAR_REGEX.test(name)) continue;\n var value = attrs[name];\n if (lowercase) {\n name = name.toLowerCase();\n }\n if (is_input) {\n if (name === \"defaultvalue\" || name === \"defaultchecked\") {\n name = name === \"defaultvalue\" ? \"value\" : \"checked\";\n if (attrs[name]) continue;\n }\n }\n attr_str += attr(name, value, is_html && is_boolean_attribute(name));\n }\n return attr_str;\n}\nfunction stringify(value) {\n return typeof value === \"string\" ? value : value == null ? \"\" : value + \"\";\n}\nfunction attr_class(value, hash, directives) {\n var result = to_class(value, hash, directives);\n return result ? ` class=\"${escape_html(result, true)}\"` : \"\";\n}\nfunction ensure_array_like(array_like_or_iterator) {\n if (array_like_or_iterator) {\n return array_like_or_iterator.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator);\n }\n return [];\n}\nexport {\n ASYNC as A,\n BOUNDARY_EFFECT as B,\n COMMENT_NODE as C,\n DIRTY as D,\n ERROR_VALUE as E,\n stringify as F,\n HYDRATION_ERROR as H,\n INERT as I,\n LEGACY_PROPS as L,\n MAYBE_DIRTY as M,\n ROOT_EFFECT as R,\n STATE_SYMBOL as S,\n UNINITIALIZED as U,\n WAS_MARKED as W,\n HYDRATION_END as a,\n HYDRATION_START as b,\n HYDRATION_START_ELSE as c,\n EFFECT_RAN as d,\n CLEAN as e,\n EFFECT as f,\n BLOCK_EFFECT as g,\n DERIVED as h,\n BRANCH_EFFECT as i,\n DESTROYED as j,\n HEAD_EFFECT as k,\n EFFECT_TRANSPARENT as l,\n EFFECT_PRESERVED as m,\n CONNECTED as n,\n EAGER_EFFECT as o,\n STALE_REACTION as p,\n RENDER_EFFECT as q,\n USER_EFFECT as r,\n MANAGED_EFFECT as s,\n REACTION_IS_UPDATING as t,\n is_passive_event as u,\n render as v,\n head as w,\n attr as x,\n ensure_array_like as y,\n attr_class as z\n};\n"],"names":[],"mappings":";;AACK,MAAC,OAAO,GAAG,CAAC,IAAI;AAChB,MAAC,MAAM,GAAG,CAAC,IAAI;AACf,MAAC,aAAa,GAAG,CAAC,IAAI;AACtB,MAAC,cAAc,GAAG,CAAC,IAAI;AACvB,MAAC,YAAY,GAAG,CAAC,IAAI;AACrB,MAAC,aAAa,GAAG,CAAC,IAAI;AACtB,MAAC,WAAW,GAAG,CAAC,IAAI;AACpB,MAAC,eAAe,GAAG,CAAC,IAAI;AACxB,MAAC,SAAS,GAAG,CAAC,IAAI;AAClB,MAAC,KAAK,GAAG,CAAC,IAAI;AACd,MAAC,KAAK,GAAG,CAAC,IAAI;AACd,MAAC,WAAW,GAAG,CAAC,IAAI;AACpB,MAAC,KAAK,GAAG,CAAC,IAAI;AACd,MAAC,SAAS,GAAG,CAAC,IAAI;AAClB,MAAC,UAAU,GAAG,CAAC,IAAI;AACnB,MAAC,kBAAkB,GAAG,CAAC,IAAI;AAC3B,MAAC,YAAY,GAAG,CAAC,IAAI;AACrB,MAAC,WAAW,GAAG,CAAC,IAAI;AACpB,MAAC,gBAAgB,GAAG,CAAC,IAAI;AACzB,MAAC,WAAW,GAAG,CAAC,IAAI;AACpB,MAAC,UAAU,GAAG,CAAC,IAAI;AACnB,MAAC,oBAAoB,GAAG,CAAC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sB,GAAG,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC;AACjH,EAAE;AACF,EAAE,OAAO,EAAE;AACX;;;;"}
@@ -0,0 +1,190 @@
1
+ /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
2
+
3
+ class HttpError {
4
+ /**
5
+ * @param {number} status
6
+ * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body
7
+ */
8
+ constructor(status, body) {
9
+ this.status = status;
10
+ if (typeof body === 'string') {
11
+ this.body = { message: body };
12
+ } else if (body) {
13
+ this.body = body;
14
+ } else {
15
+ this.body = { message: `Error: ${status}` };
16
+ }
17
+ }
18
+
19
+ toString() {
20
+ return JSON.stringify(this.body);
21
+ }
22
+ }
23
+
24
+ class Redirect {
25
+ /**
26
+ * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status
27
+ * @param {string} location
28
+ */
29
+ constructor(status, location) {
30
+ this.status = status;
31
+ this.location = location;
32
+ }
33
+ }
34
+
35
+ /**
36
+ * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.
37
+ * `SvelteKitError` goes through `handleError`.
38
+ * @extends Error
39
+ */
40
+ class SvelteKitError extends Error {
41
+ /**
42
+ * @param {number} status
43
+ * @param {string} text
44
+ * @param {string} message
45
+ */
46
+ constructor(status, text, message) {
47
+ super(message);
48
+ this.status = status;
49
+ this.text = text;
50
+ }
51
+ }
52
+
53
+ /**
54
+ * @template [T=undefined]
55
+ */
56
+ class ActionFailure {
57
+ /**
58
+ * @param {number} status
59
+ * @param {T} data
60
+ */
61
+ constructor(status, data) {
62
+ this.status = status;
63
+ this.data = data;
64
+ }
65
+ }
66
+
67
+ const text_encoder = new TextEncoder();
68
+ new TextDecoder();
69
+
70
+ /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
71
+
72
+
73
+ // TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)
74
+ /**
75
+ * @template {number} TNumber
76
+ * @template {any[]} [TArray=[]]
77
+ * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan
78
+ */
79
+
80
+ /**
81
+ * @template {number} TStart
82
+ * @template {number} TEnd
83
+ * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange
84
+ */
85
+
86
+ // Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits
87
+ // (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780
88
+
89
+ // we have to repeat the JSDoc because the display for function overloads is broken
90
+ // see https://github.com/microsoft/TypeScript/issues/55056
91
+
92
+ /**
93
+ * Throws an error with a HTTP status code and an optional message.
94
+ * When called during request handling, this will cause SvelteKit to
95
+ * return an error response without invoking `handleError`.
96
+ * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.
97
+ * @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.
98
+ * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.
99
+ * @overload
100
+ * @param {number} status
101
+ * @param {App.Error} body
102
+ * @return {never}
103
+ * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.
104
+ * @throws {Error} If the provided status is invalid (not between 400 and 599).
105
+ */
106
+ /**
107
+ * Throws an error with a HTTP status code and an optional message.
108
+ * When called during request handling, this will cause SvelteKit to
109
+ * return an error response without invoking `handleError`.
110
+ * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.
111
+ * @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.
112
+ * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.
113
+ * @overload
114
+ * @param {number} status
115
+ * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]
116
+ * @return {never}
117
+ * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.
118
+ * @throws {Error} If the provided status is invalid (not between 400 and 599).
119
+ */
120
+ /**
121
+ * Throws an error with a HTTP status code and an optional message.
122
+ * When called during request handling, this will cause SvelteKit to
123
+ * return an error response without invoking `handleError`.
124
+ * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.
125
+ * @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.
126
+ * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.
127
+ * @return {never}
128
+ * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.
129
+ * @throws {Error} If the provided status is invalid (not between 400 and 599).
130
+ */
131
+ function error(status, body) {
132
+ if ((isNaN(status) || status < 400 || status > 599)) {
133
+ throw new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);
134
+ }
135
+
136
+ throw new HttpError(status, body);
137
+ }
138
+
139
+ /**
140
+ * Create a JSON `Response` object from the supplied data.
141
+ * @param {any} data The value that will be serialized as JSON.
142
+ * @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.
143
+ */
144
+ function json(data, init) {
145
+ // TODO deprecate this in favour of `Response.json` when it's
146
+ // more widely supported
147
+ const body = JSON.stringify(data);
148
+
149
+ // we can't just do `text(JSON.stringify(data), init)` because
150
+ // it will set a default `content-type` header. duplicated code
151
+ // means less duplicated work
152
+ const headers = new Headers(init?.headers);
153
+ if (!headers.has('content-length')) {
154
+ headers.set('content-length', text_encoder.encode(body).byteLength.toString());
155
+ }
156
+
157
+ if (!headers.has('content-type')) {
158
+ headers.set('content-type', 'application/json');
159
+ }
160
+
161
+ return new Response(body, {
162
+ ...init,
163
+ headers
164
+ });
165
+ }
166
+
167
+ /**
168
+ * Create a `Response` object from the supplied body.
169
+ * @param {string} body The value that will be used as-is.
170
+ * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.
171
+ */
172
+ function text(body, init) {
173
+ const headers = new Headers(init?.headers);
174
+ if (!headers.has('content-length')) {
175
+ const encoded = text_encoder.encode(body);
176
+ headers.set('content-length', encoded.byteLength.toString());
177
+ return new Response(encoded, {
178
+ ...init,
179
+ headers
180
+ });
181
+ }
182
+
183
+ return new Response(body, {
184
+ ...init,
185
+ headers
186
+ });
187
+ }
188
+
189
+ export { ActionFailure as A, HttpError as H, Redirect as R, SvelteKitError as S, error as e, json as j, text as t };
190
+ //# sourceMappingURL=index-CoD1IJuy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CoD1IJuy.js","sources":["../../../../web/node_modules/.pnpm/@sveltejs+kit@2.49.2_@sveltejs+vite-plugin-svelte@5.1.1_svelte@5.45.10_vite@6.4.1_jiti@_5ca3ec39f4034011545cc65b7321071d/node_modules/@sveltejs/kit/src/exports/internal/index.js","../../../../web/node_modules/.pnpm/@sveltejs+kit@2.49.2_@sveltejs+vite-plugin-svelte@5.1.1_svelte@5.45.10_vite@6.4.1_jiti@_5ca3ec39f4034011545cc65b7321071d/node_modules/@sveltejs/kit/src/runtime/utils.js","../../../../web/node_modules/.pnpm/@sveltejs+kit@2.49.2_@sveltejs+vite-plugin-svelte@5.1.1_svelte@5.45.10_vite@6.4.1_jiti@_5ca3ec39f4034011545cc65b7321071d/node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {number} status\n\t * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n\t */\n\tconstructor(status, body) {\n\t\tthis.status = status;\n\t\tif (typeof body === 'string') {\n\t\t\tthis.body = { message: body };\n\t\t} else if (body) {\n\t\t\tthis.body = body;\n\t\t} else {\n\t\t\tthis.body = { message: `Error: ${status}` };\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n\nexport { init_remote_functions } from './remote-functions.js';\n","import { BROWSER } from 'esm-env';\n\nexport const text_encoder = new TextEncoder();\nexport const text_decoder = new TextDecoder();\n\n/**\n * Like node's path.relative, but without using node\n * @param {string} from\n * @param {string} to\n */\nexport function get_relative_path(from, to) {\n\tconst from_parts = from.split(/[/\\\\]/);\n\tconst to_parts = to.split(/[/\\\\]/);\n\tfrom_parts.pop(); // get dirname\n\n\twhile (from_parts[0] === to_parts[0]) {\n\t\tfrom_parts.shift();\n\t\tto_parts.shift();\n\t}\n\n\tlet i = from_parts.length;\n\twhile (i--) from_parts[i] = '..';\n\n\treturn from_parts.concat(to_parts).join('/');\n}\n\n/**\n * @param {Uint8Array} bytes\n * @returns {string}\n */\nexport function base64_encode(bytes) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\treturn globalThis.Buffer.from(bytes).toString('base64');\n\t}\n\n\tlet binary = '';\n\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbinary += String.fromCharCode(bytes[i]);\n\t}\n\n\treturn btoa(binary);\n}\n\n/**\n * @param {string} encoded\n * @returns {Uint8Array}\n */\nexport function base64_decode(encoded) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\tconst buffer = globalThis.Buffer.from(encoded, 'base64');\n\t\treturn new Uint8Array(buffer);\n\t}\n\n\tconst binary = atob(encoded);\n\tconst bytes = new Uint8Array(binary.length);\n\n\tfor (let i = 0; i < binary.length; i++) {\n\t\tbytes[i] = binary.charCodeAt(i);\n\t}\n\n\treturn bytes;\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/index.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 '../runtime/pathname.js';\nimport { text_encoder } from '../runtime/utils.js';\n\nexport { VERSION } from '../version.js';\n\n// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)\n/**\n * @template {number} TNumber\n * @template {any[]} [TArray=[]]\n * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan\n */\n\n/**\n * @template {number} TStart\n * @template {number} TEnd\n * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange\n */\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 without invoking `handleError`.\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 {App.Error} 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 {App.Error} body\n * @return {never}\n * @throws {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 without invoking `handleError`.\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 {{ message: string } extends App.Error ? App.Error | string | undefined : never} [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 {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]\n * @return {never}\n * @throws {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 without invoking `handleError`.\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 {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @return {never}\n * @throws {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, body) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\tthrow new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);\n\t}\n\n\tthrow new HttpError(status, body);\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 (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 * @throws {Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid.\n * @return {never}\n */\nexport function redirect(status, location) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\tthrow new Error('Invalid status code');\n\t}\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\tlocation.toString()\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 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 */\nexport function json(data, init) {\n\t// TODO deprecate this in favour of `Response.json` when it's\n\t// more widely supported\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 */\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 an validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\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, 'http://internal');\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"],"names":[],"mappings":"AAAA;;AAEO,MAAM,SAAS,CAAC;AACvB;AACA;AACA;AACA;AACA,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE;AAC3B,EAAE,IAAI,CAAC,MAAM,GAAG,MAAM;AACtB,EAAE,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAChC,GAAG,IAAI,CAAC,IAAI,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE;AAChC,EAAE,CAAC,MAAM,IAAI,IAAI,EAAE;AACnB,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI;AACnB,EAAE,CAAC,MAAM;AACT,GAAG,IAAI,CAAC,IAAI,GAAG,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE;AAC9C,EAAE;AACF,CAAC;;AAED,CAAC,QAAQ,GAAG;AACZ,EAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;AAClC,CAAC;AACD;;AAEO,MAAM,QAAQ,CAAC;AACtB;AACA;AACA;AACA;AACA,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE;AAC/B,EAAE,IAAI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