import { c as create_ssr_component, f as escape } from "../../_app/immutable/chunks/index-27250121.js";
const __error_svelte_svelte_type_style_lang = "";
const css = {
  code: ".wrapper.svelte-1ldjxpt{flex-direction:column;display:flex;justify-content:center;align-items:center;height:calc(100vh - 3rem)}",
  map: null
};
function load({ error, status }) {
  var _a;
  const actualError = ((_a = error == null ? void 0 : error.message) == null ? void 0 : _a.trim()) || "An unexpected error occurred.";
  return {
    props: {
      status,
      error: actualError.endsWith(".") ? actualError : `${actualError}.`
    }
  };
}
const _error = create_ssr_component(($$result, $$props, $$bindings, slots) => {
  let { status } = $$props;
  let { error } = $$props;
  if ($$props.status === void 0 && $$bindings.status && status !== void 0)
    $$bindings.status(status);
  if ($$props.error === void 0 && $$bindings.error && error !== void 0)
    $$bindings.error(error);
  $$result.css.add(css);
  return `${$$result.head += `${$$result.title = `<title>Error ${escape(status ? ` - ${status}` : "")}</title>`, ""}`, ""}

<div class="${"wrapper svelte-1ldjxpt"}">${status ? `<h1>${escape(status)}</h1>` : ``}

  <p>${escape(error)}</p>
</div>`;
});
export {
  _error as default,
  load
};
