import { r as redirect } from './index-Djsj11qr.js';

function load({ url }) {
  const agent = url.searchParams.get("agent");
  const step = url.searchParams.get("step");
  if (!agent) {
    redirect(307, "/edit");
  }
  const base = `/edit/${encodeURIComponent(agent)}/roleplay`;
  redirect(307, step ? `${base}?step=${encodeURIComponent(step)}` : base);
}

var _page_ts = /*#__PURE__*/Object.freeze({
  __proto__: null,
  load: load
});

const index = 11;
const universal_id = "src/routes/roleplay/+page.ts";
const imports = ["_app/immutable/nodes/11.BVI-eEdV.js","_app/immutable/chunks/hp4PFHFv.js","_app/immutable/chunks/BUApaBEI.js"];
const stylesheets = [];
const fonts = [];

export { fonts, imports, index, stylesheets, _page_ts as universal, universal_id };
//# sourceMappingURL=11-D9ueFvgV.js.map
