import{i as e,n as t}from"./jsx-runtime-bzQ4Vb5N.js";var n=`__root__`;function r(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function i(e){return e instanceof Response&&!!e.options}function a(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return r(e)}var o=e(t(),1),s=o.createContext(void 0),c=o.createContext(void 0);export{r as a,a as i,s as n,n as o,i as r,c as t};