import{r as t,j as R}from"./jsx-runtime-BMrMXMSG.js";import{c as v,i as h,d as y,a as C,s as b,g as E,b as g,u as F,R as $,e as k,f as S,r as H}from"./components-Cr-DqYPJ.js";import{E as O,m as B,c as P,a as j}from"./index-XrU1i-Uc.js";/**
 * React Router v6.28.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */new Promise(()=>{});function D(r){let s={hasErrorBoundary:r.ErrorBoundary!=null||r.errorElement!=null};return r.Component&&Object.assign(s,{element:t.createElement(r.Component),Component:void 0}),r.HydrateFallback&&Object.assign(s,{hydrateFallbackElement:t.createElement(r.HydrateFallback),HydrateFallback:void 0}),r.ErrorBoundary&&Object.assign(s,{errorElement:t.createElement(r.ErrorBoundary),ErrorBoundary:void 0}),s}/**
 * @remix-run/react v2.15.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function z(r){if(!r)return null;let s=Object.entries(r),u={};for(let[n,e]of s)if(e&&e.__type==="RouteErrorResponse")u[n]=new O(e.status,e.statusText,e.data,e.internal===!0);else if(e&&e.__type==="Error"){if(e.__subType){let a=window[e.__subType];if(typeof a=="function")try{let i=new a(e.message);i.stack=e.stack,u[n]=i}catch{}}if(u[n]==null){let a=new Error(e.message);a.stack=e.stack,u[n]=a}}else u[n]=e;return u}/**
 * @remix-run/react v2.15.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */let d,o,c=!1;let f,N=new Promise(r=>{f=r}).catch(()=>{});function A(r){if(!o){if(window.__remixContext.future.v3_singleFetch){if(!d){let l=window.__remixContext.stream;h(l,"No stream found for single fetch decoding"),window.__remixContext.stream=void 0,d=y(l,window).then(_=>{window.__remixContext.state=_.value,d.value=!0}).catch(_=>{d.error=_})}if(d.error)throw d.error;if(!d.value)throw d}let a=C(window.__remixManifest.routes,window.__remixRouteModules,window.__remixContext.state,window.__remixContext.future,window.__remixContext.isSpaMode),i;if(!window.__remixContext.isSpaMode){i={...window.__remixContext.state,loaderData:{...window.__remixContext.state.loaderData}};let l=B(a,window.location,window.__remixContext.basename);if(l)for(let _ of l){let m=_.route.id,x=window.__remixRouteModules[m],w=window.__remixManifest.routes[m];x&&b(w,x,window.__remixContext.isSpaMode)&&(x.HydrateFallback||!w.hasLoader)?i.loaderData[m]=void 0:w&&!w.hasLoader&&(i.loaderData[m]=null)}i&&i.errors&&(i.errors=z(i.errors))}o=P({routes:a,history:j(),basename:window.__remixContext.basename,future:{v7_normalizeFormMethod:!0,v7_fetcherPersist:window.__remixContext.future.v3_fetcherPersist,v7_partialHydration:!0,v7_prependBasename:!0,v7_relativeSplatPath:window.__remixContext.future.v3_relativeSplatPath,v7_skipActionErrorRevalidation:window.__remixContext.future.v3_singleFetch===!0},hydrationData:i,mapRouteProperties:D,dataStrategy:window.__remixContext.future.v3_singleFetch?E(window.__remixManifest,window.__remixRouteModules,()=>o):void 0,patchRoutesOnNavigation:g(window.__remixManifest,window.__remixRouteModules,window.__remixContext.future,window.__remixContext.isSpaMode,window.__remixContext.basename)}),o.state.initialized&&(c=!0,o.initialize()),o.createRoutesForHMR=v,window.__remixRouter=o,f&&f(o)}let[s,u]=t.useState(void 0),[n,e]=t.useState(o.state.location);return t.useLayoutEffect(()=>{c||(c=!0,o.initialize())},[]),t.useLayoutEffect(()=>o.subscribe(a=>{a.location!==n&&e(a.location)}),[n]),F(o,window.__remixManifest,window.__remixRouteModules,window.__remixContext.future,window.__remixContext.isSpaMode),t.createElement(t.Fragment,null,t.createElement($.Provider,{value:{manifest:window.__remixManifest,routeModules:window.__remixRouteModules,future:window.__remixContext.future,criticalCss:s,isSpaMode:window.__remixContext.isSpaMode}},t.createElement(k,{location:n},t.createElement(S,{router:o,fallbackElement:null,future:{v7_startTransition:!0}}))),window.__remixContext.future.v3_singleFetch?t.createElement(t.Fragment,null):null)}var M,p=H;p.createRoot,M=p.hydrateRoot;t.startTransition(()=>{M(document,R.jsx(t.StrictMode,{children:R.jsx(A,{})}))});
